@blackglory/observe 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -0
- package/lib/observe-addtion-of-descendant-nodes.js +7 -0
- package/lib/observe-addtion-of-descendant-nodes.js.map +1 -0
- package/lib/observe-removal-of-descendant-nodes.js +7 -0
- package/lib/observe-removal-of-descendant-nodes.js.map +1 -0
- package/lib/{es2015/observe-state-changes.js → observe-state-changes.js} +6 -10
- package/lib/observe-state-changes.js.map +1 -0
- package/lib/observe-url-changes.d.ts +2 -0
- package/lib/observe-url-changes.js +7 -0
- package/lib/observe-url-changes.js.map +1 -0
- package/lib/utils/from-mutation-observer.js +9 -0
- package/lib/utils/from-mutation-observer.js.map +1 -0
- package/package.json +31 -43
- package/dist/es2015/index.min.mjs +0 -16
- package/dist/es2015/index.min.mjs.map +0 -1
- package/dist/es2015/index.mjs +0 -5364
- package/dist/es2015/index.mjs.map +0 -1
- package/dist/es2015/index.umd.js +0 -5377
- package/dist/es2015/index.umd.js.map +0 -1
- package/dist/es2015/index.umd.min.js +0 -16
- package/dist/es2015/index.umd.min.js.map +0 -1
- package/dist/es2018/index.min.mjs +0 -16
- package/dist/es2018/index.min.mjs.map +0 -1
- package/dist/es2018/index.mjs +0 -5364
- package/dist/es2018/index.mjs.map +0 -1
- package/dist/es2018/index.umd.js +0 -5377
- package/dist/es2018/index.umd.js.map +0 -1
- package/dist/es2018/index.umd.min.js +0 -16
- package/dist/es2018/index.umd.min.js.map +0 -1
- package/lib/es2015/index.d.ts +0 -4
- package/lib/es2015/index.js +0 -21
- package/lib/es2015/index.js.map +0 -1
- package/lib/es2015/observe-addtion-of-descendant-nodes.js +0 -11
- package/lib/es2015/observe-addtion-of-descendant-nodes.js.map +0 -1
- package/lib/es2015/observe-removal-of-descendant-nodes.js +0 -11
- package/lib/es2015/observe-removal-of-descendant-nodes.js.map +0 -1
- package/lib/es2015/observe-state-changes.js.map +0 -1
- package/lib/es2015/observe-url-changes.d.ts +0 -2
- package/lib/es2015/observe-url-changes.js +0 -11
- package/lib/es2015/observe-url-changes.js.map +0 -1
- package/lib/es2015/utils/from-mutation-observer.js +0 -13
- package/lib/es2015/utils/from-mutation-observer.js.map +0 -1
- package/lib/es2018/index.d.ts +0 -4
- package/lib/es2018/index.js +0 -21
- package/lib/es2018/index.js.map +0 -1
- package/lib/es2018/observe-addtion-of-descendant-nodes.d.ts +0 -2
- package/lib/es2018/observe-addtion-of-descendant-nodes.js +0 -11
- package/lib/es2018/observe-addtion-of-descendant-nodes.js.map +0 -1
- package/lib/es2018/observe-removal-of-descendant-nodes.d.ts +0 -2
- package/lib/es2018/observe-removal-of-descendant-nodes.js +0 -11
- package/lib/es2018/observe-removal-of-descendant-nodes.js.map +0 -1
- package/lib/es2018/observe-state-changes.d.ts +0 -2
- package/lib/es2018/observe-state-changes.js +0 -48
- package/lib/es2018/observe-state-changes.js.map +0 -1
- package/lib/es2018/observe-url-changes.d.ts +0 -2
- package/lib/es2018/observe-url-changes.js +0 -11
- package/lib/es2018/observe-url-changes.js.map +0 -1
- package/lib/es2018/utils/from-mutation-observer.d.ts +0 -2
- package/lib/es2018/utils/from-mutation-observer.js +0 -13
- package/lib/es2018/utils/from-mutation-observer.js.map +0 -1
- /package/lib/{es2015/observe-addtion-of-descendant-nodes.d.ts → observe-addtion-of-descendant-nodes.d.ts} +0 -0
- /package/lib/{es2015/observe-removal-of-descendant-nodes.d.ts → observe-removal-of-descendant-nodes.d.ts} +0 -0
- /package/lib/{es2015/observe-state-changes.d.ts → observe-state-changes.d.ts} +0 -0
- /package/lib/{es2015/utils → utils}/from-mutation-observer.d.ts +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).Observe={})}(this,(function(t){"use strict";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var n=function(t,e){return(n=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])})(t,e)};function e(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 r(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 o(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 i(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 u(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 c(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 s(t){return this instanceof s?(this.v=t,this):new s(t)}function a(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||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof s?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){c("next",t)}function l(t){c("throw",t)}function f(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}}function l(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=i(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 f(t){return"function"==typeof t}function d(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 y=d((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 v(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var h=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,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=i(s),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(n){t={error:n}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(f(d))try{d()}catch(t){o=t instanceof y?t.errors:[t]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=i(v),p=h.next();!p.done;p=h.next()){var b=p.value;try{m(b)}catch(t){o=null!=o?o:[],t instanceof y?o=c(c([],u(o)),u(t.errors)):o.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(o)throw new y(o)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)m(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)&&v(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&v(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),p=h.EMPTY;function b(t){return t instanceof h||t&&"closed"in t&&f(t.remove)&&f(t.add)&&f(t.unsubscribe)}function m(t){f(t)?t():t.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,c([t,n],u(e)))};function _(t){g((function(){throw t}))}function A(){}function x(t){t()}var S=function(t){function n(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,b(n)&&n.add(e)):e.destination=P,e}return e(n,t),n.create=function(t,n,e){return new j(t,n,e)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(h),I=Function.prototype.bind;function O(t,n){return I.call(t,n)}var E=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){T(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){T(t)}else T(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){T(t)}},t}(),j=function(t){function n(n,e,r){var o,i,u=t.call(this)||this;f(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:u&&w.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return u.unsubscribe()},o={next:n.next&&O(n.next,i),error:n.error&&O(n.error,i),complete:n.complete&&O(n.complete,i)}):o=n;return u.destination=new E(o),u}return e(n,t),n}(S);function T(t){_(t)}var P={closed:!0,next:A,error:function(t){throw t},complete:A},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(t){return t}function B(t){return 0===t.length?k:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var q=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 S||function(t){return t&&f(t.next)&&f(t.error)&&f(t.complete)}(r)&&b(r)?t:new j(t,n,e);return x((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=C(n))((function(n,r){var o=new j({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[N]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return B(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=C(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 C(t){var n;return null!==(n=null!=t?t:w.Promise)&&void 0!==n?n:Promise}function F(t){return f(null==t?void 0:t.lift)}function M(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 R(t,n,e,r,o){return new U(t,n,e,r,o)}var U=function(t){function n(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 e(n,t),n.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))}},n}(S);!function(t){function n(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}e(n,t),n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},n.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new h;var e=this.getSubject();n.add(this.source.subscribe(R(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=h.EMPTY)}return n},n.prototype.refCount=function(){return M((function(t,n){var e=null;t._refCount++;var r=R(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)}}(q);var D={now:function(){return(D.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 h((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,c([],u(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,c([],u(t)))},delegate:void 0};function L(t){var n=z.schedule;return new q((function(e){var r=new h,o=t||D,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 J=L(),V=d((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),W=function(t){function n(){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 e(n,t),n.prototype.lift=function(t){var n=new Y(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new V},n.prototype.next=function(t){var n=this;x((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=i(n.currentObservers),u=o.next();!u.done;u=o.next()){u.value.next(t)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}}))},n.prototype.error=function(t){var n=this;x((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)}}))},n.prototype.complete=function(){var t=this;x((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?p:(this.currentObservers=null,i.push(t),new h((function(){n.currentObservers=null,v(i,t)})))},n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},n.prototype.asObservable=function(){var t=new q;return t.source=this,t},n.create=function(t,n){return new Y(t,n)},n}(q),Y=function(t){function n(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return e(n,t),n.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)},n.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)},n.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)},n.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:p},n}(W);!function(t){function n(n){var e=t.call(this)||this;return e._value=n,e}e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},n.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(W);var G={now:function(){return(G.delegate||Date).now()},delegate:void 0};!function(t){function n(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=G);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}e(n,t),n.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)},n.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},n.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)}}}(W),function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}e(n,t),n.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())},n.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},n.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))}}(W);var H,X=function(t){function n(n,e){return t.call(this)||this}return e(n,t),n.prototype.schedule=function(t,n){return this},n}(h),K=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,c([t,n],u(e)))},Q=function(t){return clearInterval(t)},Z=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return e(n,t),n.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},n.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),K(t.flush.bind(t,this),e)},n.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;Q(n)},n.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))},n.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},n.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,v(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},n}(X),$=1,tt={};function nt(t){return t in tt&&(delete tt[t],!0)}var et=function(t){var n=$++;return tt[n]=!0,H||(H=Promise.resolve()),H.then((function(){return nt(n)&&t()})),n},rt=function(t){nt(t)},ot={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=ot.delegate;return((null==e?void 0:e.setImmediate)||et).apply(void 0,c([],u(t)))},clearImmediate:function(t){return rt(t)},delegate:void 0},it=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.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=ot.setImmediate(n.flush.bind(n,void 0))))},n.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}))||(ot.clearImmediate(e),n._scheduled=void 0)},n}(Z),ut=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=G.now,t}(),ct=function(t){function n(n,e){void 0===e&&(e=ut.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return e(n,t),n.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}}},n}(ut);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.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}},n}(ct))(it),new ct(Z);var st=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.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)},n.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},n.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)},n}(Z);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(ct))(st);var at=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.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)}))))},n.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)},n}(Z);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.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}},n}(ct))(at),function(t){function n(n,e){void 0===n&&(n=lt),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}e(n,t),n.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}},n.frameTimeFactor=10}(ct);var lt=function(t){function n(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 e(n,t),n.prototype.schedule=function(e,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,e,r);this.active=!1;var o=new n(this.scheduler,this.work);return this.add(o),o.schedule(e,r)}return h.EMPTY},n.prototype.requestAsyncId=function(t,e,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,n,e){},n.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},n.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},n}(Z),ft=new q((function(t){return t.complete()}));function dt(t){return t[t.length-1]}function yt(t){return(n=dt(t))&&f(n.schedule)?t.pop():void 0;var n}function vt(t,n){return"number"==typeof dt(t)?t.pop():n}var ht=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function pt(t){return f(null==t?void 0:t.then)}function bt(t){return f(t[N])}function mt(t){return Symbol.asyncIterator&&f(null==t?void 0:t[Symbol.asyncIterator])}function wt(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 gt,_t="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function At(t){return f(null==t?void 0:t[_t])}function xt(t){return a(this,arguments,(function(){var n,e,r;return o(this,(function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,s(n.read())];case 3:return e=o.sent(),r=e.value,e.done?[4,s(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,s(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function St(t){return f(null==t?void 0:t.getReader)}function It(t){if(t instanceof q)return t;if(null!=t){if(bt(t))return n=t,new q((function(t){var e=n[N]();if(f(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(ht(t))return function(t){return new q((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(pt(t))return function(t){return new q((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,_)}))}(t);if(mt(t))return Ot(t);if(At(t))return function(t){return new q((function(n){var e,r;try{for(var o=i(t),u=o.next();!u.done;u=o.next()){var c=u.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n.complete()}))}(t);if(St(t))return Ot(xt(t))}var n;throw wt(t)}function Ot(t){return new q((function(n){(function(t,n){var e,i,u,c;return r(this,void 0,void 0,(function(){var r,s;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),e=l(t),o.label=1;case 1:return[4,e.next()];case 2:if((i=o.sent()).done)return[3,4];if(r=i.value,n.next(r),n.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),u={error:s},[3,11];case 6:return o.trys.push([6,,9,10]),i&&!i.done&&(c=e.return)?[4,c.call(e)]:[3,8];case 7:o.sent(),o.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 Et(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 jt(t,n){return void 0===n&&(n=0),M((function(e,r){e.subscribe(R(r,(function(e){return Et(r,t,(function(){return r.next(e)}),n)}),(function(){return Et(r,t,(function(){return r.complete()}),n)}),(function(e){return Et(r,t,(function(){return r.error(e)}),n)})))}))}function Tt(t,n){return void 0===n&&(n=0),M((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function Pt(t,n){if(!t)throw new Error("Iterable cannot be null");return new q((function(e){Et(e,n,(function(){var r=t[Symbol.asyncIterator]();Et(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function Nt(t,n){if(null!=t){if(bt(t))return function(t,n){return It(t).pipe(Tt(n),jt(n))}(t,n);if(ht(t))return function(t,n){return new q((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(pt(t))return function(t,n){return It(t).pipe(Tt(n),jt(n))}(t,n);if(mt(t))return Pt(t,n);if(At(t))return function(t,n){return new q((function(e){var r;return Et(e,n,(function(){r=t[_t](),Et(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 f(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(St(t))return function(t,n){return Pt(xt(t),n)}(t,n)}throw wt(t)}function kt(t,n){return n?Nt(t,n):It(t)}function Bt(t,n){return M((function(e,r){var o=0;e.subscribe(R(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(gt||(gt={})),d((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),d((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),d((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),d((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),d((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var qt=Array.isArray;function Ct(t){return Bt((function(n){return function(t,n){return qt(n)?t.apply(void 0,c([],u(n))):t(n)}(t,n)}))}function Ft(t,n,e){return void 0===e&&(e=1/0),f(n)?Ft((function(e,r){return Bt((function(t,o){return n(e,t,r,o)}))(It(t(e,r)))}),e):("number"==typeof n&&(e=n),M((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;It(e(t,l++)).subscribe(R(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?Et(n,u,(function(){return v(t)})):v(t)};s.length&&a<r;)t();d()}catch(t){n.error(t)}})))};return t.subscribe(R(n,y,(function(){f=!0,d()}))),function(){null==c||c()}}(n,r,t,e)})))}function Mt(t){return void 0===t&&(t=1/0),Ft(k,t)}var Rt=["addListener","removeListener"],Ut=["addEventListener","removeEventListener"],Dt=["on","off"];function zt(t,n,e,r){if(f(e)&&(r=e,e=void 0),r)return zt(t,n,e).pipe(Ct(r));var o=u(function(t){return f(t.addEventListener)&&f(t.removeEventListener)}(t)?Ut.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return f(t.addListener)&&f(t.removeListener)}(t)?Rt.map(Lt(t,n)):function(t){return f(t.on)&&f(t.off)}(t)?Dt.map(Lt(t,n)):[],2),i=o[0],c=o[1];if(!i&&ht(t))return Ft((function(t){return zt(t,n,e)}))(It(t));if(!i)throw new TypeError("Invalid event target");return new q((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 i(n),function(){return c(n)}}))}function Lt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Jt(t,n){return M((function(e,r){var o=0;e.subscribe(R(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Vt(...t){return new q((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new q(A);var Wt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yt={},Gt={},Ht={},Xt={},Kt={};Kt.go=void 0,Kt.go=function(t){return t()};var Qt={};Qt.goMicrotask=void 0,Qt.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var Zt={},$t={},tn={},nn={},en={};en.random=void 0,en.random=function(t,n){return Math.random()*(n-t)+t};var rn={};rn.randomInt=void 0,rn.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var on={};on.randomIntInclusive=void 0,on.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(en,t),e(rn,t),e(on,t)}(nn),tn.calculateExponentialBackoffTimeout=void 0;const un=nn;tn.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,un.randomIntInclusive)(0,i):i};var cn={};cn.setTimeout=void 0,cn.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var sn={setSchedule:void 0};const an=cn;sn.setSchedule=function(t,n){const e=t-Date.now();return(0,an.setTimeout)(e,n)};var ln={};ln.setInterval=void 0,ln.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var fn={setImmediate:void 0};const dn=cn;fn.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,dn.setTimeout)(0,t)};var yn={setTimeoutLoop:void 0};const vn=cn;yn.setTimeoutLoop=function(t,n){let e=!1,r=(0,vn.setTimeout)(t,(async function o(){await n(),e||(r=(0,vn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var hn={setDynamicTimeoutLoop:void 0};const pn=cn;hn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,pn.setTimeout)(t,(async function o(){const i=Date.now();await n();const u=Date.now()-i;e||(r=(0,pn.setTimeout)(Math.max(t-u,0),o))}));return()=>{e=!0,r()}},function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(tn,t),e(cn,t),e(sn,t),e(ln,t),e(fn,t),e(yn,t),e(hn,t)}($t),Zt.goMacrotask=void 0;const bn=$t;Zt.goMacrotask=function(t){return new Promise(((n,e)=>{(0,bn.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Kt,t),e(Qt,t),e(Zt,t)}(Xt);var mn={},wn={},gn={},_n={},An={};function xn(t){return Array.isArray(t)}An.isntEmptyArray=An.isEmptyArray=An.isntArray=An.isArray=void 0,An.isArray=xn,An.isntArray=function(t){return!xn(t)},An.isEmptyArray=function(t){return 0===t.length},An.isntEmptyArray=function(t){return 0!==t.length};var Sn={},In={};function On(t){return null===t}In.isntNull=In.isNull=void 0,In.isNull=On,In.isntNull=function(t){return!On(t)};var En={};function jn(t){return void 0===t}En.isntUndefined=En.isUndefined=void 0,En.isUndefined=jn,En.isntUndefined=function(t){return!jn(t)};var Tn={};function Pn(t){return"function"==typeof t}Tn.isntFunction=Tn.isFunction=void 0,Tn.isFunction=Pn,Tn.isntFunction=function(t){return!Pn(t)},Sn.isntAsyncIterable=Sn.isAsyncIterable=void 0;const Nn=In,kn=En,Bn=Tn;function qn(t){return(0,Nn.isntNull)(t)&&(0,kn.isntUndefined)(t)&&(0,Bn.isFunction)(t[Symbol.asyncIterator])}Sn.isAsyncIterable=qn,Sn.isntAsyncIterable=function(t){return!qn(t)};var Cn={};function Fn(t){return"bigint"==typeof t}Cn.isntBigInt=Cn.isBigInt=void 0,Cn.isBigInt=Fn,Cn.isntBigInt=function(t){return!Fn(t)};var Mn={};function Rn(t){return"boolean"==typeof t}Mn.isntBoolean=Mn.isBoolean=void 0,Mn.isBoolean=Rn,Mn.isntBoolean=function(t){return!Rn(t)};var Un={},Dn={};function zn(t){return"string"==typeof t}Dn.isntString=Dn.isString=void 0,Dn.isString=zn,Dn.isntString=function(t){return!zn(t)},Un.isntChar=Un.isChar=void 0;const Ln=Dn;function Jn(t){return(0,Ln.isString)(t)&&1===t.length}Un.isChar=Jn,Un.isntChar=function(t){return!Jn(t)};var Vn={};function Wn(t){return t instanceof Date}Vn.isntDate=Vn.isDate=void 0,Vn.isDate=Wn,Vn.isntDate=function(t){return!Wn(t)};var Yn={};Yn.inEnum=void 0,Yn.inEnum=function(t,n){return Object.values(n).includes(t)};var Gn={};function Hn(t){return t instanceof Error}Gn.isntError=Gn.isError=void 0,Gn.isError=Hn,Gn.isntError=function(t){return!Hn(t)};var Xn={};function Kn(t){return!t}Xn.isntFalsy=Xn.isFalsy=void 0,Xn.isFalsy=Kn,Xn.isntFalsy=function(t){return!Kn(t)};var Qn={};Qn.isntIterable=Qn.isIterable=void 0;const Zn=In,$n=En,te=Tn;function ne(t){return(0,Zn.isntNull)(t)&&(0,$n.isntUndefined)(t)&&(0,te.isFunction)(t[Symbol.iterator])}Qn.isIterable=ne,Qn.isntIterable=function(t){return!ne(t)};var ee={},re={};function oe(t){return"number"==typeof t}function ie(t){return Number.isNaN(t)}re.isntNaN=re.isNaN=re.isNegativeInfinity=re.isPositiveInfinity=re.isFinite=re.isntNumber=re.isNumber=void 0,re.isNumber=oe,re.isntNumber=function(t){return!oe(t)},re.isFinite=function(t){return Number.isFinite(t)},re.isPositiveInfinity=function(t){return t===1/0},re.isNegativeInfinity=function(t){return t===-1/0},re.isNaN=ie,re.isntNaN=function(t){return!ie(t)};var ue={},ce="object"==typeof Wt&&Wt&&Wt.Object===Object&&Wt,se="object"==typeof self&&self&&self.Object===Object&&self,ae=(ce||se||Function("return this")()).Symbol,le=ae,fe=Object.prototype,de=fe.hasOwnProperty,ye=fe.toString,ve=le?le.toStringTag:void 0;var he=function(t){var n=de.call(t,ve),e=t[ve];try{t[ve]=void 0;var r=!0}catch(t){}var o=ye.call(t);return r&&(n?t[ve]=e:delete t[ve]),o},pe=Object.prototype.toString;var be=he,me=function(t){return pe.call(t)},we=ae?ae.toStringTag:void 0;var ge=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":we&&we in Object(t)?be(t):me(t)};var _e=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Ae=ge,xe=_e,Se=function(t){return null!=t&&"object"==typeof t},Ie=Function.prototype,Oe=Object.prototype,Ee=Ie.toString,je=Oe.hasOwnProperty,Te=Ee.call(Object);var Pe=function(t){if(!Se(t)||"[object Object]"!=Ae(t))return!1;var n=xe(t);if(null===n)return!0;var e=je.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Ee.call(e)==Te},Ne=Wt&&Wt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};ue.isntEmptyObject=ue.isEmptyObject=ue.isntPlainObject=ue.isPlainObject=ue.isntObject=ue.isObject=void 0;const ke=Ne(Pe);function Be(t){return null!==t&&"object"==typeof t}function qe(t){return(0,ke.default)(t)}ue.isObject=Be,ue.isntObject=function(t){return!Be(t)},ue.isPlainObject=qe,ue.isntPlainObject=function(t){return!qe(t)},ue.isEmptyObject=function(t){return 0===Object.keys(t).length},ue.isntEmptyObject=function(t){return 0!==Object.keys(t).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Ce=In,Fe=Mn,Me=Dn,Re=re,Ue=An,De=ue;function ze(t){return(0,Ce.isNull)(t)||(0,Fe.isBoolean)(t)||(0,Me.isString)(t)||(0,Re.isNumber)(t)||(0,Ue.isArray)(t)&&t.every(ze)||(0,De.isPlainObject)(t)&&Object.values(t).every(ze)}ee.isJson=ze,ee.isntJson=function(t){return!ze(t)},ee.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},ee.isntJsonable=function t(n){return!t()};var Le={};Le.isntNullish=Le.isNullish=void 0;const Je=In,Ve=En;function We(t){return(0,Je.isNull)(t)||(0,Ve.isUndefined)(t)}Le.isNullish=We,Le.isntNullish=function(t){return!We(t)};var Ye={};Ye.isPromiseLike=Ye.isntPromiseLike=Ye.isntPromise=Ye.isPromise=void 0;const Ge=ue,He=Tn;function Xe(t){return t instanceof Promise}function Ke(t){return(0,Ge.isObject)(t)&&(0,He.isFunction)(t.then)}Ye.isPromise=Xe,Ye.isntPromise=function(t){return!Xe(t)},Ye.isntPromiseLike=function(t){return!Ke(t)},Ye.isPromiseLike=Ke;var Qe={};Qe.isAbsoluteURL=void 0,Qe.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Ze={};function $e(t){return t instanceof RegExp}Ze.isntRegExp=Ze.isRegExp=void 0,Ze.isRegExp=$e,Ze.isntRegExp=function(t){return!$e(t)};var tr={};function nr(t){return"symbol"==typeof t}tr.isntSymbol=tr.isSymbol=void 0,tr.isSymbol=nr,tr.isntSymbol=function(t){return!nr(t)},function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(An,t),e(Sn,t),e(Cn,t),e(Mn,t),e(Un,t),e(Vn,t),e(Yn,t),e(Gn,t),e(Xn,t),e(Tn,t),e(Qn,t),e(ee,t),e(In,t),e(Le,t),e(re,t),e(ue,t),e(Ye,t),e(Dn,t),e(En,t),e(Qe,t),e(Ze,t),e(tr,t)}(_n);var er={};er.traverseErrorPrototypeChain=void 0,er.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},gn.getErrorNames=void 0;const rr=_n,or=er;gn.getErrorNames=function*(t){var n;if((0,rr.isError)(t))for(const e of(0,or.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 ir={isSerializableError:void 0};const ur=_n;var cr;function sr(){if(cr)return wn;cr=1,wn.CustomError=void 0;const t=$i(),n=gn,e=_n,r=ir;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 wn.CustomError=o,wn}ir.isSerializableError=function(t){return(0,ur.isObject)(t)&&(0,ur.isString)(t.name)&&(0,ur.isString)(t.message)&&((0,ur.isString)(t.stack)||(0,ur.isNull)(t.stack))&&(0,ur.isArray)(t.ancestors)&&t.ancestors.every(ur.isString)};var ar,lr={};function fr(){if(ar)return lr;ar=1,lr.AssertionError=void 0;const t=sr();class n extends t.CustomError{}return lr.AssertionError=n,lr}var dr,yr={};var vr={},hr={},pr={};pr.pass=void 0,pr.pass=function(){},function(t){var n=Wt&&Wt.__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]});(Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(pr,t)}(hr),vr.hydrate=void 0;const br=hr;function mr(t,n){const e=function(){(0,br.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}vr.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=mr(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 wr,gr,_r,Ar={};function xr(){return gr||(gr=1,function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(sr(),t),e(fr(),t),e(ir,t),e(function(){if(dr)return yr;dr=1,yr.normalize=void 0;const t=gn,n=$i();return yr.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}},yr}(),t),e(vr,t),e(function(){if(wr)return Ar;wr=1,Ar.assert=void 0;const t=fr();return Ar.assert=function(n,e){if(!n)throw new t.AssertionError(e)},Ar}(),t),e(gn,t),e(er,t)}(mn)),mn}var Sr={chunkByAsync:void 0};const Ir=_n;Sr.chunkByAsync=function(t,n){return(0,Ir.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 Or={};Or.chunkBy=void 0,Or.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 Er,jr={};var Tr={concatAsync:void 0};const Pr=_n,Nr=Xt;Tr.concatAsync=function(t,...n){return(0,Nr.go)((async function*(){for(const e of[t,...n])if((0,Pr.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var kr={concat:void 0};const Br=Xt;kr.concat=function(t,...n){return(0,Br.go)((function*(){for(const e of[t,...n])yield*e}))};var qr={},Cr={filterAsync:void 0};const Fr=_n;Cr.filterAsync=function(t,n){return(0,Fr.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 Mr={};Mr.toSetAsync=void 0,Mr.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},qr.differenceAsync=void 0;const Rr=Cr,Ur=Mr;qr.differenceAsync=async function*(t,n){const e=await(0,Ur.toSetAsync)(n);yield*(0,Rr.filterAsync)(t,(async t=>!e.has(await t)))};var Dr={},zr={};zr.filter=void 0,zr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Lr={};Lr.toSet=void 0,Lr.toSet=function(t){return new Set(t)},Dr.difference=void 0;const Jr=zr,Vr=Lr;Dr.difference=function(t,n){const e=(0,Vr.toSet)(n);return(0,Jr.filter)(t,(t=>!e.has(t)))};var Wr,Yr={},Gr={};Gr.copyIterable=Gr.copyAsyncIterable=void 0,Gr.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Gr.copyIterable=function*(t){for(const n of t)yield n};var Hr,Xr={},Kr={};Kr.toArrayAsync=void 0,Kr.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n};var Qr,Zr={};var $r={dropUntilAsync:void 0};const to=_n;$r.dropUntilAsync=function(t,n){return(0,to.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 no={};no.dropUntil=void 0,no.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 eo,ro={};var oo={},io={},uo={flattenByAsync:void 0};const co=_n;async function*so(t,n,e){for(const r of t)ao(r)&&await n(r,e)?yield*so(r,n,e+1):yield r}function ao(t){return(0,co.isIterable)(t)&&(0,co.isntChar)(t)}var lo,fo;function yo(){if(lo)return io;lo=1,io.flattenDeepAsync=void 0;const t=uo,n=xr();return io.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))},io}uo.flattenByAsync=function(t,n){return(0,co.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ao(r)&&await n(r,e)?yield*so(r,n,e+1):yield r}(t,n):function(t,n){return so(t,n,1)}(t,n)};var vo={flattenBy:void 0};const ho=_n;function*po(t,n,e){for(const o of t)(0,ho.isIterable)(r=o)&&(0,ho.isntChar)(r)&&n(o,e)?yield*po(o,n,e+1):yield o;var r}vo.flattenBy=function(t,n){return po(t,n,1)};var bo,mo={};function wo(){if(bo)return mo;bo=1,mo.flattenDeep=void 0;const t=vo,n=xr();return mo.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))},mo}var go,_o={};var Ao={intersectionAsync:void 0};const xo=Cr,So=Mr;Ao.intersectionAsync=async function*(t,n){const e=await(0,So.toSetAsync)(n);yield*(0,xo.filterAsync)(t,(async t=>e.has(await t)))};var Io={intersection:void 0};const Oo=zr,Eo=Lr;Io.intersection=function(t,n){const e=(0,Eo.toSet)(n);return(0,Oo.filter)(t,(t=>e.has(t)))};var jo={mapAsync:void 0};const To=_n;jo.mapAsync=function(t,n){return(0,To.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 Po={};Po.map=void 0,Po.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var No,ko={};function Bo(){if(No)return ko;No=1,ko.repeatAsync=void 0;const t=Xt,n=xr();return ko.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--}))},ko}var qo,Co={};function Fo(){if(qo)return Co;qo=1,Co.repeat=void 0;const t=Xt,n=xr();return Co.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--}))},Co}var Mo,Ro={};var Uo,Do={};var zo={};zo.splitAsync=void 0,zo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Lo={splitByAsync:void 0};const Jo=_n;Lo.splitByAsync=function(t,n){return(0,Jo.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 Vo={};Vo.splitBy=void 0,Vo.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 Wo={};Wo.split=void 0,Wo.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Yo,Go={};var Ho,Xo={};var Ko,Qo={};var Zo={takeUntilAsync:void 0};const $o=_n;Zo.takeUntilAsync=function(t,n){return(0,$o.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 ti={};ti.takeUntil=void 0,ti.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var ni,ei={};var ri={tapAsync:void 0};const oi=_n;ri.tapAsync=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),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 ii={};ii.tap=void 0,ii.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var ui={};ui.toAsyncIterable=void 0,ui.toAsyncIterable=async function*(t){for(const n of t)yield await n};var ci={};ci.transformAsync=void 0,ci.transformAsync=async function*(t,n){yield*n(t)};var si={};si.transform=void 0,si.transform=function*(t,n){yield*n(t)};var ai={};ai.uniqAsync=void 0,ai.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var li={uniqByAsync:void 0};const fi=_n;li.uniqByAsync=function(t,n){return(0,fi.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 di={};di.uniqBy=void 0,di.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 yi={};yi.uniq=void 0,yi.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var vi={zipAsync:void 0};const hi=_n;var pi;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(pi||(pi={})),vi.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,u=t.map((t=>(0,hi.isAsyncIterable)(t)?[pi.Async,t[Symbol.asyncIterator]()]:[pi.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===pi.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===pi.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 bi,mi={};function wi(){return bi||(bi=1,function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(_r)return Ht;_r=1,Ht.chunkAsync=void 0;const t=Xt,n=xr();return Ht.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)}))},Ht}(),t),e(Sr,t),e(Or,t),e(function(){if(Er)return jr;Er=1,jr.chunk=void 0;const t=Xt,n=xr();return jr.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)}))},jr}(),t),e(Tr,t),e(kr,t),e(qr,t),e(Dr,t),e(function(){if(Wr)return Yr;Wr=1,Yr.dropAsync=void 0;const t=Xt,n=Gr,e=xr();return Yr.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))}}))},Yr}(),t),e(function(){if(Hr)return Xr;Hr=1,Xr.dropRightAsync=void 0;const t=Xt,n=Gr,e=xr(),r=Kr;return Xr.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}))},Xr}(),t),e(function(){if(Qr)return Zr;Qr=1,Zr.dropRight=void 0;const t=Xt,n=Gr,e=xr();return Zr.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)}))},Zr}(),t),e($r,t),e(no,t),e(function(){if(eo)return ro;eo=1,ro.drop=void 0;const t=Xt,n=Gr,e=xr();return ro.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)}}))},ro}(),t),e(Cr,t),e(zr,t),e(function(){if(fo)return oo;fo=1,oo.flattenAsync=void 0;const t=yo();return oo.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},oo}(),t),e(uo,t),e(vo,t),e(yo(),t),e(wo(),t),e(function(){if(go)return _o;go=1,_o.flatten=void 0;const t=wo();return _o.flatten=function(n){return(0,t.flattenDeep)(n,1)},_o}(),t),e(Ao,t),e(Io,t),e(jo,t),e(Po,t),e(Bo(),t),e(Fo(),t),e(function(){if(Mo)return Ro;Mo=1,Ro.sliceAsync=void 0;const t=Xt,n=xr();return Ro.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++}}))},Ro}(),t),e(function(){if(Uo)return Do;Uo=1,Do.slice=void 0;const t=Xt,n=xr();return Do.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++}}))},Do}(),t),e(zo,t),e(Lo,t),e(Vo,t),e(Wo,t),e(function(){if(Yo)return Go;Yo=1,Go.takeAsync=void 0;const t=Xt,n=xr();return Go.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}))},Go}(),t),e(function(){if(Ho)return Xo;Ho=1,Xo.takeRightAsync=void 0;const t=Xt,n=xr();return Xo.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))}}))},Xo}(),t),e(function(){if(Ko)return Qo;Ko=1,Qo.takeRight=void 0;const t=Xt,n=xr();return Qo.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)}}))},Qo}(),t),e(Zo,t),e(ti,t),e(function(){if(ni)return ei;ni=1,ei.take=void 0;const t=Xt,n=xr();return ei.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}))},ei}(),t),e(ri,t),e(ii,t),e(ui,t),e(ci,t),e(si,t),e(ai,t),e(li,t),e(di,t),e(yi,t),e(vi,t),e(mi,t)}(Gt)),Gt}mi.zip=void 0,mi.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 gi={},_i={};_i.consume=void 0,_i.consume=function(t,n){return n(t)};var Ai={};Ai.consumeAsync=void 0,Ai.consumeAsync=async function(t,n){return await n(t)};var xi={eachAsync:void 0};const Si=_n;xi.eachAsync=function(t,n){return(0,Si.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 Ii={};Ii.each=void 0,Ii.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Oi={everyAsync:void 0};const Ei=_n;Oi.everyAsync=function(t,n){return(0,Ei.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 ji={};ji.every=void 0,ji.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ti={findAsync:void 0};const Pi=_n;Ti.findAsync=function(t,n){return(0,Pi.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 Ni={};Ni.find=void 0,Ni.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var ki={};ki.firstAsync=void 0,ki.firstAsync=async function(t){for await(const n of t)return n};var Bi={};Bi.first=void 0,Bi.first=function(t){for(const n of t)return n};var qi={};qi.includesAsync=void 0,qi.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Ci={};Ci.includes=void 0,Ci.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Fi={reduceAsync:void 0};const Mi=_n;Fi.reduceAsync=function(t,n,e){return(0,Mi.isUndefined)(e)?function(t,n){return(0,Mi.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,Mi.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 Ri={reduce:void 0};const Ui=_n;Ri.reduce=function(t,n,e){return(0,Ui.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 Di={someAsync:void 0};const zi=_n;Di.someAsync=function(t,n){return(0,zi.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 Li={};Li.some=void 0,Li.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Ji={};Ji.lastAsync=void 0,Ji.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 Vi={};Vi.last=void 0,Vi.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 Wi={};Wi.toArray=void 0,Wi.toArray=function(t){return Array.from(t)};var Yi={};Yi.count=void 0,Yi.count=function(t){let n=0;for(const e of t)n++;return n};var Gi={};Gi.countAsync=void 0,Gi.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Hi={groupBy:void 0};const Xi=Ii;Hi.groupBy=function(t,n){const e=new Map;return(0,Xi.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Ki={groupByAsync:void 0};const Qi=xi;var Zi;function $i(){return Zi||(Zi=1,function(t){var n=Wt&&Wt.__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=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(wi(),t),e(gi,t)}(Yt)),Yt}Ki.groupByAsync=async function(t,n){const e=new Map;return await(0,Qi.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=Wt&&Wt.__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=Wt&&Wt.__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),e(xi,t),e(Ii,t),e(Oi,t),e(ji,t),e(Ti,t),e(Ni,t),e(ki,t),e(Bi,t),e(qi,t),e(Ci,t),e(Fi,t),e(Ri,t),e(Di,t),e(Li,t),e(Ji,t),e(Vi,t),e(Kr,t),e(Wi,t),e(Mr,t),e(Lr,t),e(Yi,t),e(Gi,t),e(Hi,t),e(Ki,t)}(gi);var tu=$i();const nu=new Set,eu=new Set;let ru=!1,ou=!1;t.observeAdditionOfDescendantNodes=function(t){return Vt(t,{childList:!0,subtree:!0}).pipe(Bt((t=>tu.toArray(tu.flatten(tu.map(t,(t=>t.addedNodes)))))),Jt((t=>t.length>0)))},t.observeRemovalOfDescendantNodes=function(t){return Vt(t,{childList:!0,subtree:!0}).pipe(Bt((t=>tu.toArray(tu.flatten(tu.map(t,(t=>t.removedNodes)))))),Jt((t=>t.length>0)))},t.observeStateChanges=function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=yt(t),r=vt(t,1/0),o=t;return o.length?1===o.length?It(o[0]):Mt(r)(kt(o,e)):ft}(new q((t=>(ru||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),nu.forEach((t=>t.next()))},ru=!0}(),nu.add(t),()=>nu.delete(t)))),new q((t=>(ou||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),eu.forEach((t=>t.next()))},ou=!0}(),eu.add(t),()=>eu.delete(t)))),zt(window,"popstate")).pipe(Bt((t=>{})))},t.observeUrlChanges=function(){let t=document.URL;return(n?L(n):J).pipe(Jt((()=>t!==document.URL)),function(t,n,e){var r=f(t)||n||e?{next:t,error:n,complete:e}:t;return r?M((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(R(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)})))})):k}((()=>t=document.URL)),Bt((()=>{})));var n},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
|
-
//# sourceMappingURL=index.umd.min.js.map
|