@blackglory/observe 0.1.1 → 0.1.5
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/dist/es2015/index.min.mjs +1 -8
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +971 -7553
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +973 -7555
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -9
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -8
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +971 -7553
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +973 -7555
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -9
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/observe-addtion-of-descendant-nodes.js +2 -2
- package/lib/es2015/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2015/observe-removal-of-descendant-nodes.js +2 -2
- package/lib/es2015/observe-removal-of-descendant-nodes.js.map +1 -1
- package/lib/es2015/observe-state-changes.js +5 -3
- package/lib/es2015/observe-state-changes.js.map +1 -1
- package/lib/es2015/observe-url-changes.js +1 -1
- package/lib/es2015/observe-url-changes.js.map +1 -1
- package/lib/es2018/observe-addtion-of-descendant-nodes.js +2 -2
- package/lib/es2018/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-removal-of-descendant-nodes.js +2 -2
- package/lib/es2018/observe-removal-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-state-changes.js +5 -3
- package/lib/es2018/observe-state-changes.js.map +1 -1
- package/lib/es2018/observe-url-changes.js +1 -1
- package/lib/es2018/observe-url-changes.js.map +1 -1
- package/package.json +22 -22
- package/CHANGELOG.md +0 -12
|
@@ -12,12 +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 e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function r(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))}function n(e,t){var r,n,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}function o(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s}function s(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function i(e){return this instanceof i?(this.v=e,this):new i(e)}function c(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof i?Promise.resolve(r.value.v).then(u,l):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function u(e){c("next",e)}function l(e){c("throw",e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function u(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=o(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function l(e){return"function"==typeof e}var f,d=((f=function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}((function(e){Error.call(e),e.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),f.prototype.constructor=f,f);function h(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var p=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=o(c),f=u.next();!f.done;f=u.next()){f.value.remove(this)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else c.remove(this);var h=this.initialTeardown;if(l(h))try{h()}catch(e){i=e instanceof d?e.errors:[e]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var y=o(p),v=y.next();!v.done;v=y.next()){var b=v.value;try{m(b)}catch(e){i=null!=i?i:[],e instanceof d?i=s(s([],a(i)),a(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}}if(i)throw new d(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)m(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&h(t,e)},e.prototype.remove=function(t){var r=this._teardowns;r&&h(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function y(e){return e instanceof p||e&&"closed"in e&&l(e.remove)&&l(e.add)&&l(e.unsubscribe)}function m(e){l(e)?e():e.unsubscribe()}var v={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,s([],a(e)))};function g(e){b((function(){throw e}))}function w(){}var _=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,y(t)&&t.add(r)):r.destination=E,r}return t(r,e),r.create=function(e,t,r){return new $(e,t,r)},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(p),$=function(e){function r(t,r,n){var o,a=e.call(this)||this;if(l(t))o=t;else if(t){var s;o=t.next,r=t.error,n=t.complete,a&&v.useDeprecatedNextContext?(s=Object.create(t)).unsubscribe=function(){return a.unsubscribe()}:s=t,o=null==o?void 0:o.bind(s),r=null==r?void 0:r.bind(s),n=null==n?void 0:n.bind(s)}return a.destination={next:o?S(o):w,error:S(null!=r?r:A),complete:n?S(n):w},a}return t(r,e),r}(_);function S(e,t){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{e.apply(void 0,s([],a(t)))}catch(e){g(e)}}}function A(e){throw e}var E={closed:!0,next:w,error:A,complete:w},O="function"==typeof Symbol&&Symbol.observable||"@@observable";function I(e){return e}function x(e){return 0===e.length?I:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var P=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=(n=e)&&n instanceof _||function(e){return e&&l(e.next)&&l(e.error)&&l(e.complete)}(n)&&y(n)?e:new $(e,t,r),a=this.operator,s=this.source;return o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o)),o},e.prototype._deprecatedSyncErrorSubscribe=function(e){var t=e;t._syncErrorHack_isSubscribing=!0;var r=this.operator;if(r)e.add(r.call(e,this.source));else try{e.add(this._subscribe(e))}catch(e){t.__syncError=e}for(var n=t;n;){if("__syncError"in n)try{throw n.__syncError}finally{e.unsubscribe()}n=n.destination}t._syncErrorHack_isSubscribing=!1},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=k(t))((function(t,n){var o;o=r.subscribe((function(t){try{e(t)}catch(e){n(e),null==o||o.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[O]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?x(e)(this):this},e.prototype.toPromise=function(e){var t=this;return new(e=k(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function k(e){var t;return null!==(t=null!=e?e:v.Promise)&&void 0!==t?t:Promise}function T(e){return function(t){if(function(e){return l(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var C=function(e){function r(t,r,n,o,a){var s=e.call(this,t)||this;return s.onFinalize=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return t(r,e),r.prototype.unsubscribe=function(){var t,r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},r}(_),j={now:function(){return(j.delegate||performance).now()},delegate:void 0},N=function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=t((function(t){r=void 0,e(t)}));return new p((function(){return null==r?void 0:r(n)}))};function R(e){var t=N;return new P((function(r){var n=new p,o=e||j,a=o.now(),s=function(i){var c=o.now();r.next({timestamp:e?c:i,elapsed:c-a}),r.closed||n.add(t(s))};return n.add(t(s)),n}))}var D=R(),B=new P((function(e){return e.complete()}));var V=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var U="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function F(e){if(e instanceof P)return e;if(null!=e){if(function(e){return l(e[O])}(e))return a=e,new P((function(e){var t=a[O]();if(l(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(V(e))return q(e);if(l(null==(r=e)?void 0:r.then))return t=e,new P((function(e){t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,g)}));if(function(e){return Symbol.asyncIterator&&l(null==e?void 0:e[Symbol.asyncIterator])}(e))return M(e);if(function(e){return l(null==e?void 0:e[U])}(e))return function(e){return new P((function(t){var r,n;try{for(var a=o(e),s=a.next();!s.done;s=a.next()){var i=s.value;if(t.next(i),t.closed)return}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}t.complete()}))}(e);if(function(e){return l(null==e?void 0:e.getReader)}(e))return M(function(e){return c(this,arguments,(function(){var t,r,o;return n(this,(function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),o=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(o)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e))}var t,r,a;throw function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}(e)}function q(e){return new P((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function M(e){return new P((function(t){(function(e,t){var o,a,s,i;return r(this,void 0,void 0,(function(){var r,c;return n(this,(function(n){switch(n.label){case 0:n.trys.push([0,5,6,11]),o=u(e),n.label=1;case 1:return[4,o.next()];case 2:if((a=n.sent()).done)return[3,4];if(r=a.value,t.next(r),t.closed)return[2];n.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=n.sent(),s={error:c},[3,11];case 6:return n.trys.push([6,,9,10]),a&&!a.done&&(i=o.return)?[4,i.call(o)]:[3,8];case 7:n.sent(),n.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function z(e,t){return t?function(e,t){return new P((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}(e,t):q(e)}function L(e){return e[e.length-1]}function K(e){return(t=L(e))&&l(t.schedule)?e.pop():void 0;var t}function G(e,t){return"number"==typeof L(e)?e.pop():t}function J(e,t){return T((function(r,n){var o=0;r.subscribe(new C(n,(function(r){n.next(e.call(t,r,o++))})))}))}var H=Array.isArray;function W(e){return J((function(t){return function(e,t){return H(t)?e.apply(void 0,s([],a(t))):e(t)}(e,t)}))}function Z(e,t,r){return void 0===r&&(r=1/0),l(t)?Z((function(r,n){return J((function(e,o){return t(r,e,n,o)}))(F(e(r,n)))}),r):("number"==typeof t&&(r=t),T((function(t,n){return function(e,t,r,n,o,a,s,i){var c=[],u=0,l=0,f=!1,d=function(){!f||c.length||u||t.complete()},h=function(e){return u<n?p(e):c.push(e)},p=function(e){a&&t.next(e),u++;var i=!1;F(r(e,l++)).subscribe(new C(t,(function(e){null==o||o(e),a?h(e):t.next(e)}),(function(){i=!0}),void 0,(function(){if(i)try{u--;for(var e=function(){var e=c.shift();s?t.add(s.schedule((function(){return p(e)}))):p(e)};c.length&&u<n;)e();d()}catch(e){t.error(e)}})))};return e.subscribe(new C(t,h,(function(){f=!0,d()}))),function(){null==i||i()}}(t,n,e,r)})))}function Q(e){return void 0===e&&(e=1/0),Z(I,e)}var Y=["addListener","removeListener"],X=["addEventListener","removeEventListener"],ee=["on","off"];function te(e,t,r,n){if(l(r)&&(n=r,r=void 0),n)return te(e,t,r).pipe(W(n));var o=a(function(e){return l(e.addEventListener)&&l(e.removeEventListener)}(e)?X.map((function(n){return function(o){return e[n](t,o,r)}})):function(e){return l(e.addListener)&&l(e.removeListener)}(e)?Y.map(re(e,t)):function(e){return l(e.on)&&l(e.off)}(e)?ee.map(re(e,t)):[],2),s=o[0],i=o[1];if(!s&&V(e))return Z((function(e){return te(e,t,r)}))(z(e));if(!s)throw new TypeError("Invalid event target");return new P((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return s(t),function(){return i(t)}}))}function re(e,t){return function(r){return function(n){return e[r](t,n)}}}function ne(e,t){return T((function(r,n){var o=0;r.subscribe(new C(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}function oe(...e){return new P((t=>{const r=new MutationObserver((e=>t.next(e)));return r.observe(...e),()=>r.disconnect()}))}var ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},se={},ie={},ce={};ce.mixinDecorators=void 0,ce.mixinDecorators=function(e,t){for(const r of t)for(const t of Object.getOwnPropertyNames(r.prototype)){if("constructor"===t)continue;const n=Object.getOwnPropertyDescriptor(r.prototype,t);Object.defineProperty(e.prototype,t,n)}};var ue={},le={Subject:void 0};le.Subject=class{constructor(e){this.subject=e}},ue.IterableOperatorBase=void 0;const fe=le;class de extends fe.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}ue.IterableOperatorBase=de;var he={},pe={},ye={},me={AsyncIterableOperatorBase:void 0};const ve=le;class be extends ve.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}me.AsyncIterableOperatorBase=be;var ge,we,_e={},$e={},Se={},Ae={};Ae.go=void 0,Ae.go=function(e){return e()},ge=Se,we=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),(ae&&ae.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||we(t,e,r)})(Ae,ge);var Ee={},Oe={CustomError:void 0};class Ie extends Error{get name(){return this.constructor.name}}Oe.CustomError=Ie;var xe={ExpectedError:void 0};const Pe=Oe;class ke extends Pe.CustomError{}xe.ExpectedError=ke;var Te={AssertionError:void 0};const Ce=Oe;class je extends Ce.CustomError{}Te.AssertionError=je;var Ne={};Ne.normalize=void 0,Ne.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Re={refute:void 0};const De=xe;Re.refute=function(e,t){if(e)throw new De.ExpectedError(t)};var Be={assert:void 0};const Ve=Te;Be.assert=function(e,t){if(!e)throw new Ve.AssertionError(t)},function(e){var t=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ae&&ae.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Oe,e),r(xe,e),r(Te,e),r(Ne,e),r(Re,e),r(Be,e)}(Ee);var Ue=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Fe=ae&&ae.__await||function(e){return this instanceof Fe?(this.v=e,this):new Fe(e)},qe=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Fe?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};$e.chunkAsync=void 0;const Me=Se,ze=Ee;$e.chunkAsync=function(e,t){return ze.assert(Number.isInteger(t),"The parameter size must be an integer"),ze.assert(t>0,"The parameter size must be greater than 0"),Me.go((function(){return qe(this,arguments,(function*(){var r,n;let o=[];try{for(var a,s=Ue(e);!(a=yield Fe(s.next())).done;){const e=a.value;o.push(e),o.length>=t&&(yield yield Fe(o),o=[])}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Fe(n.call(s)))}finally{if(r)throw r.error}}o.length&&(yield yield Fe(o))}))}))},_e.ChunkAsyncOperator=void 0;const Le=pe,Ke=me,Ge=$e;class Je extends Ke.AsyncIterableOperatorBase{chunkAsync(...e){return Le.applyChainingAsync(this.subject,Ge.chunkAsync,e)}}_e.ChunkAsyncOperator=Je;var He={},We={},Ze={},Qe={},Ye={};function Xe(e){return null===e}Ye.isntNull=Ye.isNull=void 0,Ye.isNull=Xe,Ye.isntNull=function(e){return!Xe(e)};var et={};function tt(e){return void 0===e}et.isntUndefined=et.isUndefined=void 0,et.isUndefined=tt,et.isntUndefined=function(e){return!tt(e)},Qe.isntAsyncIterable=Qe.isAsyncIterable=void 0;const rt=Ye,nt=et;function ot(e){return rt.isntNull(e)&&nt.isntUndefined(e)&&"function"==typeof e[Symbol.asyncIterator]}Qe.isAsyncIterable=ot,Qe.isntAsyncIterable=function(e){return!ot(e)};var at={};function st(e){return"boolean"==typeof e}at.isntBoolean=at.isBoolean=void 0,at.isBoolean=st,at.isntBoolean=function(e){return!st(e)};var it={},ct={};function ut(e){return lt(e)||ft(e)}function lt(e){return"string"==typeof e}function ft(e){return"object"==typeof e&&e instanceof String}ct.isntStringObject=ct.isStringObject=ct.isntStringPrimitive=ct.isStringPrimitive=ct.isntString=ct.isString=void 0,ct.isString=ut,ct.isntString=function(e){return!ut(e)},ct.isStringPrimitive=lt,ct.isntStringPrimitive=function(e){return!lt(e)},ct.isStringObject=ft,ct.isntStringObject=function(e){return!ft(e)},it.isntCharObject=it.isCharObject=it.isntCharPrimitive=it.isCharPrimitive=it.isntChar=it.isChar=void 0;const dt=ct;function ht(e){return(dt.isString(e)||dt.isStringObject(e))&&1===e.length}function pt(e){return dt.isString(e)&&1===e.length}function yt(e){return dt.isStringObject(e)&&1===e.length}it.isChar=ht,it.isntChar=function(e){return!ht(e)},it.isCharPrimitive=pt,it.isntCharPrimitive=function(e){return!pt(e)},it.isCharObject=yt,it.isntCharObject=function(e){return!yt(e)};var mt={};function vt(e){return e instanceof Date}mt.isntDate=mt.isDate=void 0,mt.isDate=vt,mt.isntDate=function(e){return!vt(e)};var bt={};function gt(e){return!e}bt.isntFalsy=bt.isFalsy=void 0,bt.isFalsy=gt,bt.isntFalsy=function(e){return!gt(e)};var wt={};function _t(e){return"function"==typeof e}wt.isntFunction=wt.isFunction=void 0,wt.isFunction=_t,wt.isntFunction=function(e){return!_t(e)};var $t={};$t.isntIterable=$t.isIterable=void 0;const St=Ye,At=et;function Et(e){return St.isntNull(e)&&At.isntUndefined(e)&&"function"==typeof e[Symbol.iterator]}$t.isIterable=Et,$t.isntIterable=function(e){return!Et(e)};var Ot={},It={exports:{}},xt={},Pt={},kt={},Tt={},Ct={},jt={};!function(e){e.regexpCode=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)i(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function s(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),i(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=c(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function i(e,t){var o;t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:u(Array.isArray(o)?o.join(","):o))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=s,e.addCodeArg=i,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.regexpCode=function(e){return new n(e.toString())}}(jt);var Nt={};!function(e){e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=jt;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const s=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[o];if(s){const e=s.get(a);if(e)return e}else s=this._values[o]=new Map;s.set(a,n);const i=this._scope[o]||(this._scope[o]=[]),c=i.length;return i[c]=t.ref,n.setValue(t,{property:o,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,s={},i){let c=t.nil;for(const u in o){const l=o[u];if(!l)continue;const f=s[u]=s[u]||new Map;l.forEach((o=>{if(f.has(o))return;f.set(o,n.Started);let s=a(o);if(s){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;c=t._`${c}${r} ${o} = ${s};${this.opts._n}`}else{if(!(s=null==i?void 0:i(o)))throw new r(o);c=t._`${c}${s}${this.opts._n}`}f.set(o,n.Completed)}))}return c}}}(Nt),function(e){e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=jt,r=Nt;var n=jt;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=Nt;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,e,r),this}get names(){return x(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class c extends i{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class l extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class d extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=P(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(k(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>I(e,t.names)),{})}}class p extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends h{}class m extends p{}m.kind="else";class v extends p{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new m(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(T(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=P(this.condition,e,t),this}get names(){const e=super.names;return x(e,this.condition),this.else&&I(e,this.else.names),e}}v.kind="if";class b extends p{}b.kind="for";class g extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=P(this.iteration,e,t),this}get names(){return I(super.names,this.iteration.names)}}class w extends b{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=x(super.names,this.from);return x(e,this.to)}}class _ extends b{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=P(this.iterable,e,t),this}get names(){return I(super.names,this.iterable.names)}}class $ extends p{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class A extends p{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&I(e,this.catch.names),this.finally&&I(e,this.finally.names),e}}class E extends p{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class O extends p{render(e){return"finally"+super.render(e)}}O.kind="finally";function I(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,r){return r instanceof t._CodeOrName?I(e,r.names):e}function P(e,r,n){return e instanceof t.Name?a(e):(o=e)instanceof t._Code&&o._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=a(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;var o;function a(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function k(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function T(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${R(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new s(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new i(e,t,r))}add(t,r){return this._leafNode(new c(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new d(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),t.addCodeArg(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(v,m)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(a,s,t,n),(()=>o(s)))}forOf(e,n,o,a=r.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(s,t._`${e}[${r}]`),o(s)}))}return this._for(new _("of",a,s,n),(()=>o(s)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const s=this._scope.toName(e);return this._for(new _("in",a,s,n),(()=>o(s)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new l(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new A;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new E(e),t(e)}return r&&(this._currNode=n.finally=new O,this.code(r)),this._endBlockNode(E,O)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new $(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=T;const C=N(e.operators.AND);e.and=function(...e){return e.reduce(C)};const j=N(e.operators.OR);function N(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${R(r)} ${e} ${R(n)}`}function R(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(j)}}(Ct);var Rt={};!function(e){e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Ct,r=jt;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||d(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function s(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function i({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,s,i,c)=>{const u=void 0===i?s:i instanceof t.Name?(s instanceof t.Name?e(a,s,i):r(a,s,i),i):s instanceof t.Name?(r(a,i,s),s):n(s,i);return c!==t.Name||u instanceof t.Name?u:o(a,u)}}function c(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${t.getProperty(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${t.getProperty(o)}`},e.unescapeFragment=function(e){return s(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=s,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:i({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:i({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=c,e.setEvaluated=u;const l={};var f;function d(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:l[t.code]||(l[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===f.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?t.getProperty(e).toString():"/"+a(e)},e.checkStrictMode=d}(Rt);var Dt={};const Bt=Ct,Vt={data:new Bt.Name("data"),valCxt:new Bt.Name("valCxt"),instancePath:new Bt.Name("instancePath"),parentData:new Bt.Name("parentData"),parentDataProperty:new Bt.Name("parentDataProperty"),rootData:new Bt.Name("rootData"),dynamicAnchors:new Bt.Name("dynamicAnchors"),vErrors:new Bt.Name("vErrors"),errors:new Bt.Name("errors"),this:new Bt.Name("this"),self:new Bt.Name("self"),scope:new Bt.Name("scope"),json:new Bt.Name("json"),jsonPos:new Bt.Name("jsonPos"),jsonLen:new Bt.Name("jsonLen"),jsonPart:new Bt.Name("jsonPart")};Dt.default=Vt,function(e){e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Ct,r=Rt,n=Dt;function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`should pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,s,c){const{it:u}=r,{gen:l,compositeRule:f,allErrors:d}=u,h=i(r,n,s);(null!=c?c:f||d)?o(l,h):a(u,t._`[${h}]`)},e.reportExtraError=function(t,r=e.keywordError,s){const{it:c}=t,{gen:u,compositeRule:l,allErrors:f}=c;o(u,i(t,r,s)),l||f||a(c,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:s,it:i}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,n.default.errors,(s=>{e.const(c,t._`${n.default.vErrors}[${s}]`),e.if(t._`${c}.instancePath === undefined`,(()=>e.assign(t._`${c}.instancePath`,t.strConcat(n.default.instancePath,i.errorPath)))),e.assign(t._`${c}.schemaPath`,t.str`${i.errSchemaPath}/${r}`),i.opts.verbose&&(e.assign(t._`${c}.schema`,o),e.assign(t._`${c}.data`,a))}))};const s={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function i(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:i}=e,l=[c(i,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:i,data:c,schemaValue:u,it:l}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:p}=l;a.push([s.keyword,i],[s.params,"function"==typeof r?r(e):r||t._`{}`]),f.messages&&a.push([s.message,"function"==typeof o?o(e):o]);f.verbose&&a.push([s.schema,u],[s.parentSchema,t._`${h}${p}`],[n.default.data,c]);d&&a.push([s.propertyName,d])}(e,r,l),a.object(...l)}(e,r,o)}function c({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${r.getErrorPath(o,r.Type.Str)}`:e;return[n.default.instancePath,t.strConcat(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let i=a?n:t.str`${n}/${e}`;return o&&(i=t.str`${i}${r.getErrorPath(o,r.Type.Str)}`),[s.schemaPath,i]}}(Tt),kt.boolOrEmptySchema=kt.topBoolOrEmptySchema=void 0;const Ut=Tt,Ft=Ct,qt=Dt,Mt={message:"boolean schema is false"};function zt(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};Ut.reportError(o,Mt,void 0,t)}kt.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?zt(e,!1):"object"==typeof r&&!0===r.$async?t.return(qt.default.data):(t.assign(Ft._`${n}.errors`,null),t.return(!0))},kt.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),zt(e)):r.var(t,!0)};var Lt={},Kt={};Kt.getRules=Kt.isJSONType=void 0;const Gt=new Set(["string","number","integer","boolean","null","object","array"]);Kt.isJSONType=function(e){return"string"==typeof e&&Gt.has(e)},Kt.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var Jt={};function Ht(e,t){return t.rules.some((t=>Wt(e,t)))}function Wt(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Jt.shouldUseRule=Jt.shouldUseGroup=Jt.schemaHasRulesForType=void 0,Jt.schemaHasRulesForType=function({schema:e,self:t},r){const n=t.RULES.types[r];return n&&!0!==n&&Ht(e,n)},Jt.shouldUseGroup=Ht,Jt.shouldUseRule=Wt,function(e){e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Kt,r=Jt,n=Tt,o=Ct,a=Rt;var s;function i(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(s=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=i(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=i,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:i}=e,u=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,i.coerceTypes),f=t.length>0&&!(0===u.length&&1===t.length&&r.schemaHasRulesForType(e,t[0]));if(f){const r=l(t,a,i.strictNumbers,s.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:s}=e,i=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===s.coerceTypes&&n.if(o._`${i} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(i,o._`typeof ${a}`).if(l(t,a,s.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(c.has(e)||"array"===e&&"array"===s.coerceTypes)&&f(e);function f(e){switch(e){case"string":return void n.elseIf(o._`${i} == "number" || ${i} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${i} == "boolean" || ${a} === null
|
|
16
|
-
|| (${i} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${i} === "boolean" || ${a} === null
|
|
17
|
-
|| (${i} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${i} === "string" || ${i} === "number"
|
|
18
|
-
|| ${i} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),d(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):d(e)}))}return f};const c=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=s.Correct){const a=n===s.Correct?o.operators.EQ:o.operators.NEQ;let i;switch(e){case"null":return o._`${t} ${a} null`;case"array":i=o._`Array.isArray(${t})`;break;case"object":i=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=c(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=c();break;default:return o._`typeof ${t} ${a} ${e}`}return n===s.Correct?i:o.not(i);function c(e=o.nil){return o.and(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function l(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let s;const i=a.toHash(e);if(i.array&&i.object){const e=o._`typeof ${t} != "object"`;s=i.null?e:o._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else s=o.nil;i.number&&delete i.integer;for(const e in i)s=o.and(s,u(e,t,r,n));return s}e.checkDataType=u,e.checkDataTypes=l;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function d(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=a.schemaRefOrVal(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);n.reportError(t,f)}e.reportTypeError=d}(Lt);var Zt={assignDefaults:void 0};const Qt=Ct,Yt=Rt;function Xt(e,t,r){const{gen:n,compositeRule:o,data:a,opts:s}=e;if(void 0===r)return;const i=Qt._`${a}${Qt.getProperty(t)}`;if(o)return void Yt.checkStrictMode(e,`default is ignored for: ${i}`);let c=Qt._`${i} === undefined`;"empty"===s.useDefaults&&(c=Qt._`${c} || ${i} === null || ${i} === ""`),n.if(c,Qt._`${i} = ${Qt.stringify(r)}`)}Zt.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)Xt(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>Xt(e,r,t.default)))};var er={},tr={};tr.validateUnion=tr.validateArray=tr.usePattern=tr.callValidateCode=tr.schemaProperties=tr.allSchemaProperties=tr.noPropertyInData=tr.propertyInData=tr.isOwnProperty=tr.hasPropFunc=tr.reportMissingProp=tr.checkMissingProp=tr.checkReportMissingProp=void 0;const rr=Ct,nr=Rt,or=Dt;function ar(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:rr._`Object.prototype.hasOwnProperty`})}function sr(e,t,r){return rr._`${ar(e)}.call(${t}, ${r})`}function ir(e,t,r,n){const o=rr._`${t}${rr.getProperty(r)} === undefined`;return n?rr.or(o,rr.not(sr(e,t,r))):o}function cr(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}tr.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:o}=e;r.if(ir(r,n,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:rr._`${t}`},!0),e.error()}))},tr.checkMissingProp=function({gen:e,data:t,it:{opts:r}},n,o){return rr.or(...n.map((n=>rr.and(ir(e,t,n,r.ownProperties),rr._`${o} = ${n}`))))},tr.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},tr.hasPropFunc=ar,tr.isOwnProperty=sr,tr.propertyInData=function(e,t,r,n){const o=rr._`${t}${rr.getProperty(r)} !== undefined`;return n?rr._`${o} && ${sr(e,t,r)}`:o},tr.noPropertyInData=ir,tr.allSchemaProperties=cr,tr.schemaProperties=function(e,t){return cr(t).filter((r=>!nr.alwaysValidSchema(e,t[r])))},tr.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:s},i,c,u){const l=u?rr._`${e}, ${t}, ${n}${o}`:t,f=[[or.default.instancePath,rr.strConcat(or.default.instancePath,a)],[or.default.parentData,s.parentData],[or.default.parentDataProperty,s.parentDataProperty],[or.default.rootData,or.default.rootData]];s.opts.dynamicRef&&f.push([or.default.dynamicAnchors,or.default.dynamicAnchors]);const d=rr._`${l}, ${r.object(...f)}`;return c!==rr.nil?rr._`${i}.call(${c}, ${d})`:rr._`${i}(${d})`},tr.usePattern=function({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"";return e.scopeValue("pattern",{key:r,ref:new RegExp(r,n),code:rr._`new RegExp(${r}, ${n})`})},tr.validateArray=function(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return s((()=>t.assign(e,!1))),e}return t.var(a,!0),s((()=>t.break())),a;function s(o){const s=t.const("len",rr._`${r}.length`);t.forRange("i",0,s,(r=>{e.subschema({keyword:n,dataProp:r,dataPropType:nr.Type.Num},a),t.if(rr.not(a),o)}))}},tr.validateUnion=function(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>nr.alwaysValidSchema(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),s=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const i=e.subschema({keyword:n,schemaProp:o,compositeRule:!0},s);t.assign(a,rr._`${a} || ${s}`);e.mergeValidEvaluated(i,s)||t.if(rr.not(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))},er.validateKeywordUsage=er.validSchemaType=er.funcKeywordCode=er.macroKeywordCode=void 0;const ur=Ct,lr=Dt,fr=tr,dr=Tt;function hr(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,ur._`${n.parentData}[${n.parentDataProperty}]`)))}function pr(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:ur.stringify(r)})}er.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:s}=e,i=t.macro.call(s.self,o,a,s),c=pr(r,n,i);!1!==s.opts.validateSchema&&s.self.validateSchema(i,!0);const u=r.name("valid");e.subschema({schema:i,schemaPath:ur.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},er.funcKeywordCode=function(e,t){var r;const{gen:n,keyword:o,schema:a,parentSchema:s,$data:i,it:c}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(c,t);const u=!i&&t.compile?t.compile.call(c.self,a,s,c):t.validate,l=pr(n,o,u),f=n.let("valid");function d(r=(t.async?ur._`await `:ur.nil)){const o=c.opts.passContext?lr.default.this:lr.default.self,a=!("compile"in t&&!i||!1===t.schema);n.assign(f,ur._`${r}${fr.callValidateCode(e,l,o,a)}`,t.modifying)}function h(e){var r;n.if(ur.not(null!==(r=t.valid)&&void 0!==r?r:f),e)}e.block$data(f,(function(){if(!1===t.errors)d(),t.modifying&&hr(e),h((()=>e.error()));else{const r=t.async?function(){const e=n.let("ruleErrs",null);return n.try((()=>d(ur._`await `)),(t=>n.assign(f,!1).if(ur._`${t} instanceof ${c.ValidationError}`,(()=>n.assign(e,ur._`${t}.errors`)),(()=>n.throw(t))))),e}():function(){const e=ur._`${l}.errors`;return n.assign(e,null),d(ur.nil),e}();t.modifying&&hr(e),h((()=>function(e,t){const{gen:r}=e;r.if(ur._`Array.isArray(${t})`,(()=>{r.assign(lr.default.vErrors,ur._`${lr.default.vErrors} === null ? ${t} : ${lr.default.vErrors}.concat(${t})`).assign(lr.default.errors,ur._`${lr.default.vErrors}.length`),dr.extendErrors(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:f)},er.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},er.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const s=o.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}};var yr={};yr.extendSubschemaMode=yr.extendSubschemaData=yr.getSubschema=void 0;const mr=Ct,vr=Rt;yr.getSubschema=function(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:a,topSchemaRef:s}){if(void 0!==t&&void 0!==n)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const n=e.schema[t];return void 0===r?{schema:n,schemaPath:mr._`${e.schemaPath}${mr.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:n[r],schemaPath:mr._`${e.schemaPath}${mr.getProperty(t)}${mr.getProperty(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${vr.escapeFragment(r)}`}}if(void 0!==n){if(void 0===o||void 0===a||void 0===s)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},yr.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:a,propertyName:s}){if(void 0!==o&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:i}=t;if(void 0!==r){const{errorPath:o,dataPathArr:a,opts:s}=t;c(i.let("data",mr._`${t.data}${mr.getProperty(r)}`,!0)),e.errorPath=mr.str`${o}${vr.getErrorPath(r,n,s.jsPropertySyntax)}`,e.parentDataProperty=mr._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==o){c(o instanceof mr.Name?o:i.let("data",o,!0)),void 0!==s&&(e.propertyName=s)}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}a&&(e.dataTypes=a)},yr.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r};var br={},gr=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var s=a[o];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r},wr={exports:{}},_r=wr.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),$r(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function $r(e,t,r,n,o,a,s,i,c,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var l in t(n,o,a,s,i,c,u),n){var f=n[l];if(Array.isArray(f)){if(l in _r.arrayKeywords)for(var d=0;d<f.length;d++)$r(e,t,r,f[d],o+"/"+l+"/"+d,a,o,l,n,d)}else if(l in _r.propsKeywords){if(f&&"object"==typeof f)for(var h in f)$r(e,t,r,f[h],o+"/"+l+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,l,n,h)}else(l in _r.keywords||e.allKeys&&!(l in _r.skipKeywords))&&$r(e,t,r,f,o+"/"+l,a,o,l,n)}r(n,o,a,s,i,c,u)}}_r.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},_r.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},_r.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},_r.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var Sr={exports:{}};
|
|
19
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function s(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function i(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),s=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",i),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(s+"|"+t(l,i,"[\\:]"))+"*");var f=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),d=r(f+"\\."+f+"\\."+f+"\\."+f),h=r(a+"{1,4}"),p=r(r(h+"\\:"+h)+"|"+d),y=r(r(h+"\\:")+"{6}"+p),m=r("\\:\\:"+r(h+"\\:")+"{5}"+p),v=r(r(h)+"?\\:\\:"+r(h+"\\:")+"{4}"+p),b=r(r(r(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+r(h+"\\:")+"{3}"+p),g=r(r(r(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+r(h+"\\:")+"{2}"+p),w=r(r(r(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+p),_=r(r(r(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+p),$=r(r(r(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),S=r(r(r(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),A=r([y,m,v,b,g,w,_,$,S].join("|")),E=r(r(l+"|"+s)+"+");r("[vV]"+a+"+\\."+t(l,i,"[\\:]")+"+"),r(r(s+"|"+t(l,i))+"*");var O=r(s+"|"+t(l,i,"[\\:\\@]"));return r(r(s+"|"+t(l,i,"[\\@]"))+"+"),r(r(O+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,i),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,i),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,i),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,i),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,i),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+A+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+E+")")+"?\\]?$")}}var c=i(!1),u=i(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i.return&&i.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},d=2147483647,h=36,p=1,y=26,m=38,v=700,b=72,g=128,w="-",_=/^xn--/,$=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=h-p,O=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(A[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var C=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},j=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},N=function(e,t,r){var n=0;for(e=r?O(e/v):e>>1,e+=O(e/t);e>E*y>>1;n+=h)e=O(e/E);return O(n+(E+1)*e/(e+m))},R=function(e){var t=[],r=e.length,n=0,o=g,a=b,s=e.lastIndexOf(w);s<0&&(s=0);for(var i=0;i<s;++i)e.charCodeAt(i)>=128&&x("not-basic"),t.push(e.charCodeAt(i));for(var c=s>0?s+1:0;c<r;){for(var u=n,l=1,f=h;;f+=h){c>=r&&x("invalid-input");var m=C(e.charCodeAt(c++));(m>=h||m>O((d-n)/l))&&x("overflow"),n+=m*l;var v=f<=a?p:f>=a+y?y:f-a;if(m<v)break;var _=h-v;l>O(d/_)&&x("overflow"),l*=_}var $=t.length+1;a=N(n-u,$,0==u),O(n/$)>d-o&&x("overflow"),o+=O(n/$),n%=$,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},D=function(e){var t=[],r=(e=T(e)).length,n=g,o=0,a=b,s=!0,i=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(s=(u=l.next()).done);s=!0){var f=u.value;f<128&&t.push(I(f))}}catch(e){i=!0,c=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw c}}var m=t.length,v=m;for(m&&t.push(w);v<r;){var _=d,$=!0,S=!1,A=void 0;try{for(var E,P=e[Symbol.iterator]();!($=(E=P.next()).done);$=!0){var k=E.value;k>=n&&k<_&&(_=k)}}catch(e){S=!0,A=e}finally{try{!$&&P.return&&P.return()}finally{if(S)throw A}}var C=v+1;_-n>O((d-o)/C)&&x("overflow"),o+=(_-n)*C,n=_;var R=!0,D=!1,B=void 0;try{for(var V,U=e[Symbol.iterator]();!(R=(V=U.next()).done);R=!0){var F=V.value;if(F<n&&++o>d&&x("overflow"),F==n){for(var q=o,M=h;;M+=h){var z=M<=a?p:M>=a+y?y:M-a;if(q<z)break;var L=q-z,K=h-z;t.push(I(j(z+L%K,0))),q=O(L/K)}t.push(I(j(q,0))),a=N(o,C,v==m),o=0,++v}}}catch(e){D=!0,B=e}finally{try{!R&&U.return&&U.return()}finally{if(D)throw B}}++o,++n}return t.join("")},B=function(e){return k(e,(function(e){return _.test(e)?R(e.slice(4).toLowerCase()):e}))},V=function(e){return k(e,(function(e){return $.test(e)?"xn--"+D(e):e}))},U={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:D,toASCII:V,toUnicode:B},F={};function q(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function M(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=M(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,o)),e}function L(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(L).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],a=n[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),i=l(s,2),c=i[0],u=i[1],f=u?u.split(":").map(L):[],d=c.split(":").map(L),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,y=d.length-p,m=Array(p),v=0;v<p;++v)m[v]=f[v]||d[y+v]||"";h&&(m[p-1]=K(m[p-1],t));var b=m.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],g=void 0;if(b&&b.length>1){var w=m.slice(0,b.index),_=m.slice(b.index+b.length);g=w.join(":")+"::"+_.join(":")}else g=m.join(":");return a&&(g+="%"+a),g}return e}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,H=void 0==="".match(/(){0}/)[1];function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(J);if(o){H?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=G(K(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=F[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=U.toASCII(r.host.replace(n.PCT_ENCODED,M).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(K(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Q=/^\.\.?\//,Y=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Q))e=e.replace(Q,"");else if(e.match(Y))e=e.replace(Y,"/");else if(e.match(X))e=e.replace(X,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],o=F[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?U.toUnicode(e.host):U.toASCII(e.host.replace(r.PCT_ENCODED,M).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=Z(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var s=e.path;t.absolutePath||o&&o.absolutePath||(s=te(s)),void 0===a&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=W(re(e,r),r),t=W(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=s({scheme:"null"},r);return re(ne(W(e,n),W(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(W(e,t),t):"object"===n(e)&&(e=W(re(e,t),t)),e}function se(e,t,r){return"string"==typeof e?e=re(W(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(W(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function ie(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,q)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,M)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var de={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:de.domainHost,parse:de.parse,serialize:de.serialize},pe={},ye="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",me="[0-9A-Fa-f]",ve=r(r("%[EFef]"+me+"%"+me+me+"%"+me+me)+"|"+r("%[89A-Fa-f]"+me+"%"+me+me)+"|"+r("%"+me+me)),be="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_e=new RegExp(ye,"g"),$e=new RegExp(ve,"g"),Se=new RegExp(t("[^]",be,"[\\.]",'[\\"]',ge),"g"),Ae=new RegExp(t("[^]",ye,we),"g"),Ee=Ae;function Oe(e){var t=M(e);return t.match(_e)?t:e}var Ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},s=r.query.split("&"),i=0,c=s.length;i<c;++i){var u=s[i].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,a[ce(u[0],t)]=ce(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var h=0,p=n.length;h<p;++h){var y=n[h].split("@");if(y[0]=ce(y[0]),t.unicodeSupport)y[1]=ce(y[1],t).toLowerCase();else try{y[1]=U.toASCII(ce(y[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=y.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var s=0,i=n.length;s<i;++s){var c=String(n[s]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace($e,Oe).replace($e,o).replace(Se,q),f=c.slice(u+1);try{f=t.iri?U.toUnicode(f):U.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[s]=l+"@"+f}r.path=n.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==pe[p]&&h.push(p.replace($e,Oe).replace($e,o).replace(Ae,q)+"="+d[p].replace($e,Oe).replace($e,o).replace(Ee,q));return h.length&&(r.query=h.join("&")),r}},xe=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(xe),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),s=r[2],i=o+":"+(t.nid||a),c=F[i];n.nid=a,n.nss=s,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=F[o];a&&(e=a.serialize(e,t));var s=e,i=e.nss;return s.path=(n||t.nid)+":"+i,s}},ke=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(ke)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};F[ue.scheme]=ue,F[le.scheme]=le,F[de.scheme]=de,F[he.scheme]=he,F[Ie.scheme]=Ie,F[Pe.scheme]=Pe,F[Te.scheme]=Te,e.SCHEMES=F,e.pctEncChar=q,e.pctDecChars=M,e.parse=W,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=se,e.escapeComponent=ie,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(Sr.exports),br.getSchemaRefs=br.resolveUrl=br.normalizeId=br._getFullPath=br.getFullPath=br.inlineRef=void 0;const Ar=Rt,Er=gr,Or=wr.exports,Ir=Sr.exports,xr=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);br.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!kr(e):!!t&&Tr(e)<=t)};const Pr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kr(e){for(const t in e){if(Pr.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(kr))return!0;if("object"==typeof r&&kr(r))return!0}return!1}function Tr(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!xr.has(r)&&("object"==typeof e[r]&&Ar.eachItem(e[r],(e=>t+=Tr(e))),t===1/0))return 1/0}return t}function Cr(e="",t){!1!==t&&(e=Rr(e));return jr(Ir.parse(e))}function jr(e){return Ir.serialize(e).split("#")[0]+"#"}br.getFullPath=Cr,br._getFullPath=jr;const Nr=/#\/?$/;function Rr(e){return e?e.replace(Nr,""):""}br.normalizeId=Rr,br.resolveUrl=function(e,t){return t=Rr(t),Ir.resolve(e,t)};const Dr=/^[a-z_][-a-z0-9._]*$/i;br.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const t=Rr(e.$id),r={"":t},n=Cr(t,!1),o={},a=new Set;return Or(e,{allKeys:!0},((e,t,c,u)=>{if(void 0===u)return;const l=n+t;let f=r[u];function d(t){if(t=Rr(f?Ir.resolve(f,t):t),a.has(t))throw i(t);a.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?s(e,r.schema,t):t!==Rr(l)&&("#"===t[0]?(s(e,o[t],t),o[t]=e):this.refs[t]=l),t}function h(e){if("string"==typeof e){if(!Dr.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}"string"==typeof e.$id&&(f=d.call(this,e.$id)),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),r[t]=f})),o;function s(e,t,r){if(void 0!==t&&!Er(e,t))throw i(r)}function i(e){return new Error(`reference "${e}" resolves to more than one schema`)}},Pt.getData=Pt.KeywordCxt=Pt.validateFunctionCode=void 0;const Br=kt,Vr=Lt,Ur=Jt,Fr=Lt,qr=Zt,Mr=er,zr=yr,Lr=Ct,Kr=Dt,Gr=br,Jr=Rt,Hr=Tt;function Wr({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,Lr._`${Kr.default.data}, ${Kr.default.valCxt}`,n.$async,(()=>{e.code(Lr._`"use strict"; ${Zr(r,o)}`),function(e,t){e.if(Kr.default.valCxt,(()=>{e.var(Kr.default.instancePath,Lr._`${Kr.default.valCxt}.${Kr.default.instancePath}`),e.var(Kr.default.parentData,Lr._`${Kr.default.valCxt}.${Kr.default.parentData}`),e.var(Kr.default.parentDataProperty,Lr._`${Kr.default.valCxt}.${Kr.default.parentDataProperty}`),e.var(Kr.default.rootData,Lr._`${Kr.default.valCxt}.${Kr.default.rootData}`),t.dynamicRef&&e.var(Kr.default.dynamicAnchors,Lr._`${Kr.default.valCxt}.${Kr.default.dynamicAnchors}`)}),(()=>{e.var(Kr.default.instancePath,Lr._`""`),e.var(Kr.default.parentData,Lr._`undefined`),e.var(Kr.default.parentDataProperty,Lr._`undefined`),e.var(Kr.default.rootData,Kr.default.data),t.dynamicRef&&e.var(Kr.default.dynamicAnchors,Lr._`{}`)}))}(e,o),e.code(a)})):e.func(t,Lr._`${Kr.default.data}, ${function(e){return Lr._`{${Kr.default.instancePath}="", ${Kr.default.parentData}, ${Kr.default.parentDataProperty}, ${Kr.default.rootData}=${Kr.default.data}${e.dynamicRef?Lr._`, ${Kr.default.dynamicAnchors}={}`:Lr.nil}}={}`}(o)}`,n.$async,(()=>e.code(Zr(r,o)).code(a)))}function Zr(e,t){return"object"==typeof e&&e.$id&&(t.code.source||t.code.process)?Lr._`/*# sourceURL=${e.$id} */`:Lr.nil}function Qr(e,t){Xr(e)&&(en(e),Yr(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&rn(e);(function(e){e.schema.$id&&(e.baseId=Gr.resolveUrl(e.baseId,e.schema.$id))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",Kr.default.errors);tn(e,a),n.var(t,Lr._`${a} === ${Kr.default.errors}`)}(e,t):Br.boolOrEmptySchema(e,t)}function Yr({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Xr(e){return"boolean"!=typeof e.schema}function en(e){Jr.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&Jr.schemaHasRulesButRef(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function tn(e,t){if(e.opts.jtd)return nn(e,[],!1,t);const r=Vr.getSchemaTypes(e.schema);nn(e,r,!Vr.coerceAndCheckDataType(e,r),t)}function rn({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(Lr._`${Kr.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=Lr.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(Lr._`${Kr.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function nn(e,t,r,n){const{gen:o,schema:a,data:s,allErrors:i,opts:c,self:u}=e,{RULES:l}=u;function f(u){Ur.shouldUseGroup(a,u)&&(u.type?(o.if(Fr.checkDataType(u.type,s,c.strictNumbers)),on(e,u),1===t.length&&t[0]===u.type&&r&&(o.else(),Fr.reportTypeError(e)),o.endIf()):on(e,u),i||o.if(Lr._`${Kr.default.errors} === ${n||0}`))}!a.$ref||!c.ignoreKeywordsWithRef&&Jr.schemaHasRulesButRef(a,l)?(c.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{sn(e.dataTypes,t)||cn(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>sn(t,e)))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&cn(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&Ur.shouldUseRule(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>an(t,e)))&&cn(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of l.rules)f(e);f(l.post)}))):o.block((()=>ln(e,"$ref",l.all.$ref.definition)))}function on(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&qr.assignDefaults(e,t.type),r.block((()=>{for(const r of t.rules)Ur.shouldUseRule(n,r)&&ln(e,r.keyword,r.definition,t.type)}))}function an(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function sn(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function cn(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,Jr.checkStrictMode(e,t,e.opts.strictTypes)}Pt.validateFunctionCode=function(e){Xr(e)&&(en(e),Yr(e))?function(e){const{schema:t,opts:r,gen:n}=e;Wr(e,(()=>{r.$comment&&t.$comment&&rn(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&Jr.checkStrictMode(e,"default is ignored in the schema root")}(e),n.let(Kr.default.vErrors,null),n.let(Kr.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",Lr._`${r}.evaluated`),t.if(Lr._`${e.evaluated}.dynamicProps`,(()=>t.assign(Lr._`${e.evaluated}.props`,Lr._`undefined`))),t.if(Lr._`${e.evaluated}.dynamicItems`,(()=>t.assign(Lr._`${e.evaluated}.items`,Lr._`undefined`)))}(e),tn(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(Lr._`${Kr.default.errors} === 0`,(()=>t.return(Kr.default.data)),(()=>t.throw(Lr._`new ${o}(${Kr.default.vErrors})`))):(t.assign(Lr._`${n}.errors`,Kr.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof Lr.Name&&e.assign(Lr._`${t}.props`,r);n instanceof Lr.Name&&e.assign(Lr._`${t}.items`,n)}(e),t.return(Lr._`${Kr.default.errors} === 0`))}(e)}))}(e):Wr(e,(()=>Br.topBoolOrEmptySchema(e)))};class un{constructor(e,t,r){if(Mr.validateKeywordUsage(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Jr.schemaRefOrVal(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",hn(this.$data,e));else if(this.schemaCode=this.schemaValue,!Mr.validSchemaType(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",Kr.default.errors))}result(e,t,r){this.gen.if(Lr.not(e)),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(e,void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(Lr._`${t} !== undefined && (${Lr.or(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?Hr.reportExtraError:Hr.reportError)(this,this.def.error,t)}$dataError(){Hr.reportError(this,this.def.$dataError||Hr.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');Hr.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=Lr.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=Lr.nil,t=Lr.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if(Lr.or(Lr._`${n} === undefined`,t)),e!==Lr.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==Lr.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return Lr.or(function(){if(r.length){if(!(t instanceof Lr.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return Lr._`${Fr.checkDataTypes(e,t,o.opts.strictNumbers,Fr.DataType.Wrong)}`}return Lr.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return Lr._`!${r}(${t})`}return Lr.nil}())}subschema(e,t){const r=zr.getSubschema(this.it,e);zr.extendSubschemaData(r,this.it,e),zr.extendSubschemaMode(r,e);const n={...this.it,...r,items:void 0,props:void 0};return Qr(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=Jr.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=Jr.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,Lr.Name))),!0}}function ln(e,t,r,n){const o=new un(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?Mr.funcKeywordCode(o,r):"macro"in r?Mr.macroKeywordCode(o,r):(r.compile||r.validate)&&Mr.funcKeywordCode(o,r)}Pt.KeywordCxt=un;const fn=/^\/(?:[^~]|~0|~1)*$/,dn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function hn(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return Kr.default.rootData;if("/"===e[0]){if(!fn.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Kr.default.rootData}else{const s=dn.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+s[1];if(o=s[2],"#"===o){if(i>=t)throw new Error(c("property/index",i));return n[t-i]}if(i>t)throw new Error(c("data",i));if(a=r[t-i],!o)return a}let s=a;const i=o.split("/");for(const e of i)e&&(a=Lr._`${a}${Lr.getProperty(Jr.unescapeJsonPointer(e))}`,s=Lr._`${s} && ${a}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}Pt.getData=hn;var pn={};class yn extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}pn.default=yn;var mn={};const vn=br;class bn extends Error{constructor(e,t,r){super(r||`can't resolve reference ${t} from id ${e}`),this.missingRef=vn.resolveUrl(e,t),this.missingSchema=vn.normalizeId(vn.getFullPath(this.missingRef))}}mn.default=bn;var gn={};gn.resolveSchema=gn.getCompilingSchema=gn.resolveRef=gn.compileSchema=gn.SchemaEnv=void 0;const wn=Ct,_n=pn,$n=Dt,Sn=br,An=Rt,En=Pt,On=Sr.exports;class In{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:Sn.normalizeId(null==r?void 0:r.$id),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function xn(e){const t=kn.call(this,e);if(t)return t;const r=Sn.getFullPath(e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,s=new wn.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let i;e.$async&&(i=s.scopeValue("Error",{ref:_n.default,code:wn._`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const u={gen:s,allErrors:this.opts.allErrors,data:$n.default.data,parentData:$n.default.parentData,parentDataProperty:$n.default.parentDataProperty,dataNames:[$n.default.data],dataPathArr:[wn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:wn.stringify(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:i,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:wn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:wn._`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),En.validateFunctionCode(u),s.optimize(this.opts.code.optimize);const t=s.toString();l=`${s.scopeRefs($n.default.scope)}return ${t}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const r=new Function(`${$n.default.self}`,`${$n.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:c,validateCode:t,scopeValues:s._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof wn.Name?void 0:e,items:t instanceof wn.Name?void 0:t,dynamicProps:e instanceof wn.Name,dynamicItems:t instanceof wn.Name},r.source&&(r.source.evaluated=wn.stringify(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),t}finally{this._compilations.delete(e)}}function Pn(e){return Sn.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:xn.call(this,e)}function kn(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function Tn(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||Cn.call(this,e,t)}function Cn(e,t){const r=On.parse(t),n=Sn._getFullPath(r);let o=Sn.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&n===o)return Nn.call(this,r,e);const a=Sn.normalizeId(n),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=Cn.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return Nn.call(this,r,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||xn.call(this,s),a===Sn.normalizeId(t)){const{schema:t}=s;return t.$id&&(o=Sn.resolveUrl(o,t.$id)),new In({schema:t,root:e,baseId:o})}return Nn.call(this,r,s)}}gn.SchemaEnv=In,gn.compileSchema=xn,gn.resolveRef=function(e,t,r){var n;r=Sn.resolveUrl(t,r);const o=e.refs[r];if(o)return o;let a=Tn.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r];o&&(a=new In({schema:o,root:e,baseId:t}))}return void 0!==a?e.refs[r]=Pn.call(this,a):void 0},gn.getCompilingSchema=kn,gn.resolveSchema=Cn;const jn=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Nn(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;if(void 0===(r=r[An.unescapeFragment(n)]))return;!jn.has(n)&&"object"==typeof r&&r.$id&&(t=Sn.resolveUrl(t,r.$id))}let a;if("boolean"!=typeof r&&r.$ref&&!An.schemaHasRulesButRef(r,this.RULES)){const e=Sn.resolveUrl(t,r.$ref);a=Cn.call(this,n,e)}return a=a||new In({schema:r,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var Rn={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};!function(e){e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Pt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Ct;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=pn,o=mn,a=Kt,s=gn,i=Ct,c=br,u=Lt,l=Rt,f=Rn,d=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7/8.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now, see option `strict`."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function m(e){var t,r,n,o,a,s,i,c,u,l,f,d,h,p,y,m,v,b,g,w;const _=e.strict,$=null===(t=e.code)||void 0===t?void 0:t.optimize,S=!0===$||void 0===$?1:$||0;return{strictSchema:null===(n=null!==(r=e.strictSchema)&&void 0!==r?r:_)||void 0===n||n,strictNumbers:null===(a=null!==(o=e.strictNumbers)&&void 0!==o?o:_)||void 0===a||a,strictTypes:null!==(i=null!==(s=e.strictTypes)&&void 0!==s?s:_)&&void 0!==i?i:"log",strictTuples:null!==(u=null!==(c=e.strictTuples)&&void 0!==c?c:_)&&void 0!==u?u:"log",strictRequired:null!==(f=null!==(l=e.strictRequired)&&void 0!==l?l:_)&&void 0!==f&&f,code:e.code?{...e.code,optimize:S}:{optimize:S},loopRequired:null!==(d=e.loopRequired)&&void 0!==d?d:200,loopEnum:null!==(h=e.loopEnum)&&void 0!==h?h:200,meta:null===(p=e.meta)||void 0===p||p,messages:null===(y=e.messages)||void 0===y||y,inlineRefs:null===(m=e.inlineRefs)||void 0===m||m,addUsedSchema:null===(v=e.addUsedSchema)||void 0===v||v,validateSchema:null===(b=e.validateSchema)||void 0===b||b,validateFormats:null===(g=e.validateFormats)||void 0===g||g,unicodeRegExp:null===(w=e.unicodeRegExp)||void 0===w||w}}class v{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...m(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=a.getRules(),b.call(this,p,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t}=this.opts;t&&e&&this.addMetaSchema(f,f.$id,!1)}defaultMeta(){const{meta:e}=this.opts;return this.opts.defaultMeta="object"==typeof e?e.$id||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e&&(o=e.$id,void 0!==o&&"string"!=typeof o))throw new Error("schema $id must be string");return t=c.normalizeId(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=g.call(this,e));)e=t;if(void 0===t){const r=new s.SchemaEnv({schema:{}});if(t=s.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=g.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e.$id;return r&&(r=c.normalizeId(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(O.call(this,r,t),!t)return l.eachItem(r,(e=>I.call(this,e))),this;P.call(this,t);const n={...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)};return l.eachItem(r,0===n.type.length?e=>I.call(this,e,n):e=>n.type.forEach((t=>I.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;if("object"==typeof e)a=e.$id;else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;const u=c.getSchemaRefs.call(this,e);return r=c.normalizeId(a||r),i=new s.SchemaEnv({schema:e,meta:t,baseId:r,localRefs:u}),this._cache.set(i.schema,i),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function g(e){return e=c.normalizeId(e),this.schemas[e]||this.refs[e]}function w(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function S(){const e={...this.opts};for(const t of d)delete e[t];return e}e.default=v,v.ValidationError=n.default,v.MissingRefError=o.default;const A={log(){},warn(){},error(){}};const E=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){const{RULES:r}=this;if(l.eachItem(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!E.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let s=o?a.post:a.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},a.rules.push(s)),a.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)}};t.before?x.call(this,s,i,t.before):s.rules.push(i),a.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function x(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function P(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const k={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,k]}}}(xt);var Dn={},Bn={},Vn={};const Un={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vn.default=Un;var Fn={};Fn.callRef=Fn.getValidate=void 0;const qn=mn,Mn=tr,zn=Ct,Ln=Dt,Kn=gn,Gn=Rt,Jn={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:s,opts:i,self:c}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return Wn(e,s,a,a.$async);const r=t.scopeValue("root",{ref:u});return Wn(e,zn._`${r}.validate`,u,u.$async)}();const l=Kn.resolveRef.call(c,u,o,r);if(void 0===l)throw new qn.default(o,r);return l instanceof Kn.SchemaEnv?function(t){const r=Hn(e,t);Wn(e,r,t,t.$async)}(l):function(n){const o=t.scopeValue("schema",!0===i.code.source?{ref:n,code:zn.stringify(n)}:{ref:n}),a=t.name("valid"),s=e.subschema({schema:n,dataTypes:[],schemaPath:zn.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(s),e.ok(a)}(l)}};function Hn(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):zn._`${r.scopeValue("wrapper",{ref:t})}.validate`}function Wn(e,t,r,n){const{gen:o,it:a}=e,{allErrors:s,schemaEnv:i,opts:c}=a,u=c.passContext?Ln.default.this:zn.nil;function l(e){const t=zn._`${e}.errors`;o.assign(Ln.default.vErrors,zn._`${Ln.default.vErrors} === null ? ${t} : ${Ln.default.vErrors}.concat(${t})`),o.assign(Ln.default.errors,zn._`${Ln.default.vErrors}.length`)}function f(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=Gn.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",zn._`${e}.evaluated.props`);a.props=Gn.mergeEvaluated.props(o,t,a.props,zn.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=Gn.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",zn._`${e}.evaluated.items`);a.items=Gn.mergeEvaluated.items(o,t,a.items,zn.Name)}}n?function(){if(!i.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(zn._`await ${Mn.callValidateCode(e,t,u)}`),f(t),s||o.assign(r,!0)}),(e=>{o.if(zn._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),l(e),s||o.assign(r,!1)})),e.ok(r)}():e.result(Mn.callValidateCode(e,t,u),(()=>f(t)),(()=>l(t)))}Fn.getValidate=Hn,Fn.callRef=Wn,Fn.default=Jn;const Zn=Fn,Qn=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Vn.default,Zn.default];Bn.default=Qn;var Yn={},Xn={};const eo=Ct,to=eo.operators,ro={maximum:{okStr:"<=",ok:to.LTE,fail:to.GT},minimum:{okStr:">=",ok:to.GTE,fail:to.LT},exclusiveMaximum:{okStr:"<",ok:to.LT,fail:to.GTE},exclusiveMinimum:{okStr:">",ok:to.GT,fail:to.LTE}},no={message:({keyword:e,schemaCode:t})=>eo.str`must be ${ro[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>eo._`{comparison: ${ro[e].okStr}, limit: ${t}}`},oo={keyword:Object.keys(ro),type:"number",schemaType:"number",$data:!0,error:no,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(eo._`${r} ${ro[t].fail} ${n} || isNaN(${r})`)}};Xn.default=oo;var ao={};const so=Ct,io={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>so.str`must be multiple of ${e}`,params:({schemaCode:e})=>so._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),i=a?so._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:so._`${s} !== parseInt(${s})`;e.fail$data(so._`(${n} === 0 || (${s} = ${r}/${n}, ${i}))`)}};ao.default=io;var co={},uo={};function lo(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}uo.default=lo,lo.code='require("ajv/dist/runtime/ucs2length").default';const fo=Ct,ho=Rt,po=uo,yo={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>fo.str`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>fo._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?fo.operators.GT:fo.operators.LT,s=!1===o.opts.unicode?fo._`${r}.length`:fo._`${ho.useFunc(e.gen,po.default)}(${r})`;e.fail$data(fo._`${s} ${a} ${n}`)}};co.default=yo;var mo={};const vo=tr,bo=Ct,go={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>bo.str`must match pattern "${e}"`,params:({schemaCode:e})=>bo._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,s=a.opts.unicodeRegExp?"u":"",i=r?bo._`(new RegExp(${o}, ${s}))`:vo.usePattern(e,n);e.fail$data(bo._`!${i}.test(${t})`)}};mo.default=go;var wo={};const _o=Ct,$o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>_o.str`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>_o._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?_o.operators.GT:_o.operators.LT;e.fail$data(_o._`Object.keys(${r}).length ${o} ${n}`)}};wo.default=$o;var So={};const Ao=tr,Eo=Ct,Oo=Rt,Io={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>Eo.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Eo._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:s}=e,{opts:i}=s;if(!a&&0===r.length)return;const c=r.length>=i.loopRequired;if(s.allErrors?function(){if(c||a)e.block$data(Eo.nil,u);else for(const t of r)Ao.checkReportMissingProp(e,t)}():function(){const s=t.let("missing");if(c||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,Ao.propertyInData(t,o,r,i.ownProperties)),t.if(Eo.not(a),(()=>{e.error(),t.break()}))}),Eo.nil)}(s,r))),e.ok(r)}else t.if(Ao.checkMissingProp(e,r,s)),Ao.reportMissingProp(e,s),t.else()}(),i.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`;Oo.checkStrictMode(s,t,s.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if(Ao.noPropertyInData(t,o,r,i.ownProperties),(()=>e.error()))}))}}};So.default=Io;var xo={};const Po=Ct,ko={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>Po.str`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>Po._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?Po.operators.GT:Po.operators.LT;e.fail$data(Po._`${r}.length ${o} ${n}`)}};xo.default=ko;var To={},Co={};const jo=gr;jo.code='require("ajv/dist/runtime/equal").default',Co.default=jo;const No=Lt,Ro=Ct,Do=Rt,Bo=Co,Vo={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>Ro.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>Ro._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:s,it:i}=e;if(!n&&!o)return;const c=t.let("valid"),u=a.items?No.getSchemaTypes(a.items):[];function l(n,o){const a=t.name("item"),s=No.checkDataTypes(u,a,i.opts.strictNumbers,No.DataType.Wrong),l=t.const("indices",Ro._`{}`);t.for(Ro._`;${n}--;`,(()=>{t.let(a,Ro._`${r}[${n}]`),t.if(s,Ro._`continue`),u.length>1&&t.if(Ro._`typeof ${a} == "string"`,Ro._`${a} += "_"`),t.if(Ro._`typeof ${l}[${a}] == "number"`,(()=>{t.assign(o,Ro._`${l}[${a}]`),e.error(),t.assign(c,!1).break()})).code(Ro._`${l}[${a}] = ${n}`)}))}function f(n,o){const a=Do.useFunc(t,Bo.default),s=t.name("outer");t.label(s).for(Ro._`;${n}--;`,(()=>t.for(Ro._`${o} = ${n}; ${o}--;`,(()=>t.if(Ro._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(c,!1).break(s)}))))))}e.block$data(c,(function(){const n=t.let("i",Ro._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(c,!0),t.if(Ro._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?l:f)(n,o)))}),Ro._`${s} === false`),e.ok(c)}};To.default=Vo;var Uo={};const Fo=Ct,qo=Rt,Mo=Co,zo={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Fo._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n}=e;e.fail$data(Fo._`!${qo.useFunc(t,Mo.default)}(${r}, ${n})`)}};Uo.default=zo;var Lo={};const Ko=Ct,Go=Rt,Jo=Co,Ho={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>Ko._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:s}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const i=o.length>=s.opts.loopEnum,c=Go.useFunc(t,Jo.default);let u;if(i||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(Ko._`${c}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=Ko.or(...o.map(((t,n)=>function(e,t){const n=o[t];return n&&"object"==typeof n?Ko._`${c}(${r}, ${e}[${t}])`:Ko._`${r} === ${n}`}(e,n))))}e.pass(u)}};Lo.default=Ho;const Wo=ao,Zo=co,Qo=mo,Yo=wo,Xo=So,ea=xo,ta=To,ra=Uo,na=Lo,oa=[Xn.default,Wo.default,Zo.default,Qo.default,Yo.default,Xo.default,ea.default,ta.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ra.default,na.default];Yn.default=oa;var aa={},sa={validateAdditionalItems:void 0};const ia=Ct,ca=Rt,ua={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>ia.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>ia._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?la(e,n):ca.checkStrictMode(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function la(e,t){const{gen:r,schema:n,data:o,keyword:a,it:s}=e;s.items=!0;const i=r.const("len",ia._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(ia._`${i} <= ${t.length}`);else if("object"==typeof n&&!ca.alwaysValidSchema(s,n)){const n=r.var("valid",ia._`${i} <= ${t.length}`);r.if(ia.not(n),(()=>function(n){r.forRange("i",t.length,i,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:ca.Type.Num},n),s.allErrors||r.if(ia.not(n),(()=>r.break()))}))}(n))),e.ok(n)}}sa.validateAdditionalItems=la,sa.default=ua;var fa={},da={validateTuple:void 0};const ha=Ct,pa=Rt,ya=tr,ma={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return va(e,"additionalItems",t);r.items=!0,pa.alwaysValidSchema(r,t)||e.ok(ya.validateArray(e))}};function va(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:s,it:i}=e;!function(e){const{opts:n,errSchemaPath:o}=i,a=r.length,c=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!c){const e=`"${s}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;pa.checkStrictMode(i,e,n.strictTuples)}}(o),i.opts.unevaluated&&r.length&&!0!==i.items&&(i.items=pa.mergeEvaluated.items(n,r.length,i.items));const c=n.name("valid"),u=n.const("len",ha._`${a}.length`);r.forEach(((t,r)=>{pa.alwaysValidSchema(i,t)||(n.if(ha._`${u} > ${r}`,(()=>e.subschema({keyword:s,schemaProp:r,dataProp:r},c))),e.ok(c))}))}da.validateTuple=va,da.default=ma;const ba=da,ga={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>ba.validateTuple(e,"items")};fa.default=ga;var wa={};const _a=Ct,$a=Rt,Sa=tr,Aa=sa,Ea={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>_a.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>_a._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,$a.alwaysValidSchema(n,t)||(o?Aa.validateAdditionalItems(e,o):e.ok(Sa.validateArray(e)))}};wa.default=Ea;var Oa={};const Ia=Ct,xa=Rt,Pa={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Ia.str`must contain at least ${e} valid item(s)`:Ia.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Ia._`{minContains: ${e}}`:Ia._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let s,i;const{minContains:c,maxContains:u}=n;a.opts.next?(s=void 0===c?1:c,i=u):s=1;const l=t.const("len",Ia._`${o}.length`);if(e.setParams({min:s,max:i}),void 0===i&&0===s)return void xa.checkStrictMode(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==i&&s>i)return xa.checkStrictMode(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if(xa.alwaysValidSchema(a,r)){let t=Ia._`${l} >= ${s}`;return void 0!==i&&(t=Ia._`${t} && ${l} <= ${i}`),void e.pass(t)}a.items=!0;const f=t.name("valid");if(void 0===i&&1===s)d(f,(()=>t.if(f,(()=>t.break()))));else{t.let(f,!1);const e=t.name("_valid"),r=t.let("count",0);d(e,(()=>t.if(e,(()=>function(e){t.code(Ia._`${e}++`),void 0===i?t.if(Ia._`${e} >= ${s}`,(()=>t.assign(f,!0).break())):(t.if(Ia._`${e} > ${i}`,(()=>t.assign(f,!1).break())),1===s?t.assign(f,!0):t.if(Ia._`${e} >= ${s}`,(()=>t.assign(f,!0))))}(r)))))}function d(r,n){t.forRange("i",0,l,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:xa.Type.Num,compositeRule:!0},r),n()}))}e.result(f,(()=>e.reset()))}};Oa.default=Pa;var ka={};!function(e){e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Ct,r=Rt,n=tr;e.error={message:({params:{property:e,depsCount:r,deps:n}})=>t.str`must have ${1===r?"property":"properties"} ${n} when property ${e} is present`,params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
20
|
-
missingProperty: ${o},
|
|
21
|
-
depsCount: ${r},
|
|
22
|
-
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),s(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:s}=e;if(0===Object.keys(r).length)return;const i=o.let("missing");for(const c in r){const u=r[c];if(0===u.length)continue;const l=n.propertyInData(o,a,c,s.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),s.allErrors?o.if(l,(()=>{for(const t of u)n.checkReportMissingProp(e,t)})):(o.if(t._`${l} && (${n.checkMissingProp(e,u,i)})`),n.reportMissingProp(e,i),o.else())}}function s(e,t=e.schema){const{gen:o,data:a,keyword:s,it:i}=e,c=o.name("valid");for(const u in t)r.alwaysValidSchema(i,t[u])||(o.if(n.propertyInData(o,a,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>o.var(c,!0))),e.ok(c))}e.validatePropertyDeps=a,e.validateSchemaDeps=s,e.default=o}(ka);var Ta={};const Ca=Ct,ja=Rt,Na={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Ca._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if(ja.alwaysValidSchema(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if(Ca.not(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};Ta.default=Na;var Ra={};const Da=tr,Ba=Ct,Va=Dt,Ua=Rt,Fa={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Ba._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:s}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:i,opts:c}=s;if(s.props=!0,"all"!==c.removeAdditional&&Ua.alwaysValidSchema(s,r))return;const u=Da.allSchemaProperties(n.properties),l=Da.allSchemaProperties(n.patternProperties);function f(e){t.code(Ba._`delete ${o}[${e}]`)}function d(n){if("all"===c.removeAdditional||c.removeAdditional&&!1===r)f(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(i||t.break());if("object"==typeof r&&!Ua.alwaysValidSchema(s,r)){const r=t.name("valid");"failing"===c.removeAdditional?(h(n,r,!1),t.if(Ba.not(r),(()=>{e.reset(),f(n)}))):(h(n,r),i||t.if(Ba.not(r),(()=>t.break())))}}}function h(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:Ua.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||l.length?t.if(function(r){let o;if(u.length>8){const e=Ua.schemaRefOrVal(s,n.properties,"properties");o=Da.isOwnProperty(t,e,r)}else o=u.length?Ba.or(...u.map((e=>Ba._`${r} === ${e}`))):Ba.nil;return l.length&&(o=Ba.or(o,...l.map((t=>Ba._`${Da.usePattern(e,t)}.test(${r})`)))),Ba.not(o)}(r),(()=>d(r))):d(r)})),e.ok(Ba._`${a} === ${Va.default.errors}`)}};Ra.default=Fa;var qa={};const Ma=Pt,za=tr,La=Rt,Ka=Ra,Ga={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&Ka.default.code(new Ma.KeywordCxt(a,Ka.default,"additionalProperties"));const s=za.allSchemaProperties(r);for(const e of s)a.definedProperties.add(e);a.opts.unevaluated&&s.length&&!0!==a.props&&(a.props=La.mergeEvaluated.props(t,La.toHash(s),a.props));const i=s.filter((e=>!La.alwaysValidSchema(a,r[e])));if(0===i.length)return;const c=t.name("valid");for(const r of i)u(r)?l(r):(t.if(za.propertyInData(t,o,r,a.opts.ownProperties)),l(r),a.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(c);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function l(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},c)}}};qa.default=Ga;var Ja={};const Ha=tr,Wa=Ct,Za=Rt,Qa=Rt,Ya={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:s}=a,i=Ha.schemaProperties(a,r);if(0===i.length)return;const c=s.strictSchema&&!s.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof Wa.Name||(a.props=Qa.evaluatedPropsToName(t,a.props));const{props:l}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&Za.checkStrictMode(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function d(r){t.forIn("key",n,(n=>{t.if(Wa._`${Ha.usePattern(e,r)}.test(${n})`,(()=>{e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:Qa.Type.Str},u),a.opts.unevaluated&&!0!==l?t.assign(Wa._`${l}[${n}]`,!0):a.allErrors||t.if(Wa.not(u),(()=>t.break()))}))}))}!function(){for(const e of i)c&&f(e),a.allErrors?d(e):(t.var(u,!0),d(e),t.if(u))}()}};Ja.default=Ya;var Xa={};const es=Rt,ts={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if(es.alwaysValidSchema(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.result(o,(()=>e.error()),(()=>e.reset()))},error:{message:"must NOT be valid"}};Xa.default=ts;var rs={};const ns={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:tr.validateUnion,error:{message:"must match a schema in anyOf"}};rs.default=ns;var os={};const as=Ct,ss=Rt,is={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>as._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,s=t.let("valid",!1),i=t.let("passing",null),c=t.name("_valid");e.setParams({passing:i}),t.block((function(){a.forEach(((r,n)=>{let a;ss.alwaysValidSchema(o,r)?t.var(c,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},c),n>0&&t.if(as._`${c} && ${s}`).assign(s,!1).assign(i,as._`[${i}, ${n}]`).else(),t.if(c,(()=>{t.assign(s,!0),t.assign(i,n),a&&e.mergeEvaluated(a,as.Name)}))}))})),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}};os.default=is;var cs={};const us=Rt,ls={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if(us.alwaysValidSchema(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};cs.default=ls;var fs={};const ds=Ct,hs=Rt,ps={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>ds.str`must match "${e.ifClause}" schema`,params:({params:e})=>ds._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&hs.checkStrictMode(n,'"if" without "then" and "else" is ignored');const o=ys(n,"then"),a=ys(n,"else");if(!o&&!a)return;const s=t.let("valid",!0),i=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},i);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(i,c("then",r),c("else",r))}else o?t.if(i,c("then")):t.if(ds.not(i),c("else"));function c(r,n){return()=>{const o=e.subschema({keyword:r},i);t.assign(s,i),e.mergeValidEvaluated(o,s),n?t.assign(n,ds._`${r}`):e.setParams({ifClause:r})}}e.pass(s,(()=>e.error(!0)))}};function ys(e,t){const r=e.schema[t];return void 0!==r&&!hs.alwaysValidSchema(e,r)}fs.default=ps;var ms={};const vs=Rt,bs={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&vs.checkStrictMode(r,`"${e}" without "if" is ignored`)}};ms.default=bs;const gs=sa,ws=fa,_s=da,$s=wa,Ss=Oa,As=ka,Es=Ta,Os=Ra,Is=qa,xs=Ja,Ps=Xa,ks=rs,Ts=os,Cs=cs,js=fs,Ns=ms;aa.default=function(e=!1){const t=[Ps.default,ks.default,Ts.default,Cs.default,js.default,Ns.default,Es.default,Os.default,As.default,Is.default,xs.default];return e?t.push(ws.default,$s.default):t.push(gs.default,_s.default),t.push(Ss.default),t};var Rs={},Ds={};const Bs=Ct,Vs={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Bs.str`must match format "${e}"`,params:({schemaCode:e})=>Bs._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:s,it:i}=e,{opts:c,errSchemaPath:u,schemaEnv:l,self:f}=i;c.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),a=r.const("fDef",Bs._`${o}[${s}]`),i=r.let("fType"),u=r.let("format");r.if(Bs._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(i,Bs._`${a}.type || "string"`).assign(u,Bs._`${a}.validate`)),(()=>r.assign(i,Bs._`"string"`).assign(u,a))),e.fail$data(Bs.or(!1===c.strictSchema?Bs.nil:Bs._`${s} && !${u}`,function(){const e=l.$async?Bs._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:Bs._`${u}(${n})`,r=Bs._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return Bs._`${u} && ${u} !== true && ${i} === ${t} && !${r}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1===c.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[s,i,d]=function(e){const t=e instanceof RegExp?Bs.regexpCode(e):c.code.formats?Bs._`${c.code.formats}${Bs.getProperty(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Bs._`${n}.validate`];return["string",e,n]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return Bs._`await ${d}(${n})`}return"function"==typeof i?Bs._`${d}(${n})`:Bs._`${d}.test(${n})`}())}())}};Ds.default=Vs;const Us=[Ds.default];Rs.default=Us;var Fs={};Fs.contentVocabulary=Fs.metadataVocabulary=void 0,Fs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Fs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const qs=Yn,Ms=aa,zs=Rs,Ls=Fs,Ks=[Bn.default,qs.default,Ms.default(),zs.default,Ls.metadataVocabulary,Ls.contentVocabulary];Dn.default=Ks;var Gs={},Js={};!function(e){var t;e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Js);const Hs=Ct,Ws=Js,Zs={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===Ws.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Hs._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:s}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const i=n.propertyName;if("string"!=typeof i)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),u=t.const("tag",Hs._`${r}${Hs.getProperty(i)}`);function l(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Hs.Name),n}t.if(Hs._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=a(o);let n=!0;for(let t=0;t<s.length;t++){const o=s[t],u=null===(e=o.properties)||void 0===e?void 0:e[i];if("object"!=typeof u)throw new Error(`discriminator: oneOf schemas must have "properties/${i}"`);n=n&&(r||a(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${i}" must be required`);return t;function a({required:e}){return Array.isArray(e)&&e.includes(i)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${i}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${i}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Hs._`${u} === ${e}`),t.assign(c,l(r[e]));t.else(),e.error(!1,{discrError:Ws.DiscrError.Mapping,tag:u,tagName:i}),t.endIf()}()),(()=>e.error(!1,{discrError:Ws.DiscrError.Tag,tag:u,tagName:i}))),e.ok(c)}};Gs.default=Zs;var Qs={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=xt,n=Dn,o=Gs,a=Qs,s=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}e.exports=t=c,t.default=c;var u=Pt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=Ct;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}})}(It,It.exports),Ot.isntJsonRpcError=Ot.isJsonRpcError=Ot.isntJsonRpcSuccess=Ot.isJsonRpcSuccess=Ot.isntJsonRpcRequest=Ot.isJsonRpcRequest=Ot.isntJsonRpcNotification=Ot.isJsonRpcNotification=void 0;const Ys=It.exports,Xs={oneOf:[{type:"string"},{type:"number"}]},ei={oneOf:[{type:"array"},{type:"object"}]},ti={type:"object",properties:{jsonrpc:{type:"string"},method:{type:"string"},params:ei,id:!1},required:["jsonrpc","method"]},ri={type:"object",properties:{jsonrpc:{type:"string"},id:Xs,method:{type:"string"},params:ei},required:["jsonrpc","id","method"]},ni={type:"object",properties:{jsonrpc:{type:"string"},id:Xs,result:{}},required:["jsonrpc","id","result"]},oi={type:"object",properties:{jsonrpc:{type:"string"},id:Xs,error:{type:"object",properties:{code:{type:"number"},message:{type:"string"},data:{}},required:["code","message"]}},required:["jsonrpc","id","error"]};let ai;function si(e){return ai||(ai=new Ys.default),ai.validate(ti,e)}function ii(e){return ai||(ai=new Ys.default),ai.validate(ri,e)}function ci(e){return ai||(ai=new Ys.default),ai.validate(ni,e)}function ui(e){return ai||(ai=new Ys.default),ai.validate(oi,e)}Ot.isJsonRpcNotification=si,Ot.isntJsonRpcNotification=function(e){return!si(e)},Ot.isJsonRpcRequest=ii,Ot.isntJsonRpcRequest=function(e){return!ii(e)},Ot.isJsonRpcSuccess=ci,Ot.isntJsonRpcSuccess=function(e){return!ci(e)},Ot.isJsonRpcError=ui,Ot.isntJsonRpcError=function(e){return!ui(e)};var li={};li.isntJson=li.isJson=void 0,li.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},li.isntJson=function e(t){return!e()};var fi={};function di(e){return"number"==typeof e}fi.isntNumber=fi.isNumber=void 0,fi.isNumber=di,fi.isntNumber=function(e){return!di(e)};var hi={};function pi(e){return null!==e&&"object"==typeof e}hi.isntObject=hi.isObject=void 0,hi.isObject=pi,hi.isntObject=function(e){return!pi(e)};var yi={};yi.isAbsoluteURL=void 0,yi.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var t=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ae&&ae.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Qe,e),r(at,e),r(it,e),r(mt,e),r(bt,e),r(wt,e),r($t,e),r(Ot,e),r(li,e),r(Ye,e),r(fi,e),r(hi,e),r(ct,e),r(et,e),r(yi,e)}(Ze);var mi=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},vi=ae&&ae.__await||function(e){return this instanceof vi?(this.v=e,this):new vi(e)},bi=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof vi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};We.chunkByAsync=void 0;const gi=Ze;We.chunkByAsync=function(e,t){return gi.isAsyncIterable(e)?function(e){return bi(this,arguments,(function*(){var r,n;let o=[],a=0;try{for(var s,i=mi(e);!(s=yield vi(i.next())).done;){const e=s.value;o.push(e),(yield vi(t(e,a)))&&(yield yield vi(o),o=[]),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield vi(n.call(i)))}finally{if(r)throw r.error}}o.length&&(yield yield vi(o))}))}(e):function(e){return bi(this,arguments,(function*(){let r=[],n=0;for(const o of e)r.push(o),(yield vi(t(o,n)))&&(yield yield vi(r),r=[]),n++;r.length&&(yield yield vi(r))}))}(e)},He.ChunkByAsyncOperator=void 0;const wi=pe,_i=We,$i=le;class Si extends $i.Subject{chunkByAsync(...e){return wi.applyChainingAsync(this.subject,_i.chunkByAsync,e)}}He.ChunkByAsyncOperator=Si;var Ai={},Ei={},Oi=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ii=ae&&ae.__await||function(e){return this instanceof Ii?(this.v=e,this):new Ii(e)},xi=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ii?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Ei.concatAsync=void 0;const Pi=Ze,ki=Se;Ei.concatAsync=function(e,...t){return ki.go((function(){return xi(this,arguments,(function*(){var r,n;for(const s of[e,...t])if(Pi.isAsyncIterable(s))try{for(var o,a=(r=void 0,Oi(s));!(o=yield Ii(a.next())).done;){const e=o.value;yield yield Ii(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&(yield Ii(n.call(a)))}finally{if(r)throw r.error}}else for(const e of s)yield yield Ii(e)}))}))},Ai.ConcatAsyncOperator=void 0;const Ti=pe,Ci=Ei,ji=le;class Ni extends ji.Subject{concatAsync(...e){return Ti.applyChainingAsync(this.subject,Ci.concatAsync,e)}}Ai.ConcatAsyncOperator=Ni;var Ri={},Di={},Bi={},Vi=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ui=ae&&ae.__await||function(e){return this instanceof Ui?(this.v=e,this):new Ui(e)},Fi=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ui?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Bi.copyIterable=Bi.copyAsyncIterable=void 0,Bi.copyAsyncIterable=function(e){return Fi(this,arguments,(function*(){var t,r;try{for(var n,o=Vi(e);!(n=yield Ui(o.next())).done;){const e=n.value;yield yield Ui(e)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=o.return)&&(yield Ui(r.call(o)))}finally{if(t)throw t.error}}}))},Bi.copyIterable=function*(e){for(const t of e)yield t};var qi=ae&&ae.__await||function(e){return this instanceof qi?(this.v=e,this):new qi(e)},Mi=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof qi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Di.dropAsync=void 0;const zi=Se,Li=Bi,Ki=Ee;Di.dropAsync=function(e,t){return Ki.assert(Number.isInteger(t),"The parameter count must be an integer"),Ki.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?Li.copyAsyncIterable(e):zi.go((function(){return Mi(this,arguments,(function*(){const r=e[Symbol.asyncIterator]();let n;for(;!(n=yield qi(r.next()),n.done||t<=0);)t--;for(;!n.done;)yield yield qi(n.value),n=yield qi(r.next())}))}))},Ri.DropAsyncOperator=void 0;const Gi=pe,Ji=me,Hi=Di;class Wi extends Ji.AsyncIterableOperatorBase{dropAsync(...e){return Gi.applyChainingAsync(this.subject,Hi.dropAsync,e)}}Ri.DropAsyncOperator=Wi;var Zi={},Qi={},Yi=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Xi=ae&&ae.__await||function(e){return this instanceof Xi?(this.v=e,this):new Xi(e)},ec=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Xi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},tc=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Qi.dropRightAsync=void 0;const rc=Se,nc=Bi,oc=Ee;function ac(e){var t,r,n,o;return Yi(this,void 0,void 0,(function*(){const a=[];try{for(t=tc(e);!(r=yield t.next()).done;){const e=r.value;a.push(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}Qi.dropRightAsync=function(e,t){return oc.assert(Number.isInteger(t),"The parameter count must be an integer"),oc.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?nc.copyAsyncIterable(e):rc.go((function(){return ec(this,arguments,(function*(){const r=(yield Xi(ac(e))).slice(0,-t);for(const e of r)yield yield Xi(e)}))}))},Zi.DropRightAsyncOperator=void 0;const sc=pe,ic=me,cc=Qi;class uc extends ic.AsyncIterableOperatorBase{dropRightAsync(...e){return sc.applyChainingAsync(this.subject,cc.dropRightAsync,e)}}Zi.DropRightAsyncOperator=uc;var lc={},fc={},dc=ae&&ae.__await||function(e){return this instanceof dc?(this.v=e,this):new dc(e)},hc=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof dc?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};fc.dropUntilAsync=void 0;const pc=Ze;fc.dropUntilAsync=function(e,t){return pc.isAsyncIterable(e)?function(e){return hc(this,arguments,(function*(){const r=e[Symbol.asyncIterator]();let n,o=0;for(;!(n=yield dc(r.next()),n.done||(yield dc(t(n.value,o++)))););for(;!n.done;)yield yield dc(n.value),n=yield dc(r.next())}))}(e):function(e){return hc(this,arguments,(function*(){const r=e[Symbol.iterator]();let n,o=0;for(;!(n=r.next(),n.done||(yield dc(t(n.value,o++)))););for(;!n.done;)yield yield dc(n.value),n=r.next()}))}(e)},lc.DropUntilAsyncOperator=void 0;const yc=pe,mc=le,vc=fc;class bc extends mc.Subject{dropUntilAsync(...e){return yc.applyChainingAsync(this.subject,vc.dropUntilAsync,e)}}lc.DropUntilAsyncOperator=bc;var gc={},wc={},_c=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},$c=ae&&ae.__await||function(e){return this instanceof $c?(this.v=e,this):new $c(e)},Sc=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof $c?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};wc.filterAsync=void 0;const Ac=Ze;wc.filterAsync=function(e,t){return Ac.isAsyncIterable(e)?function(e){return Sc(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=_c(e);!(a=yield $c(s.next())).done;){const e=a.value;(yield $c(t(e,o)))&&(yield yield $c(e)),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield $c(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return Sc(this,arguments,(function*(){let r=0;for(const n of e)(yield $c(t(n,r)))&&(yield yield $c(n)),r++}))}(e)},gc.FilterAsyncOperator=void 0;const Ec=pe,Oc=le,Ic=wc;class xc extends Oc.Subject{filterAsync(...e){return Ec.applyChainingAsync(this.subject,Ic.filterAsync,e)}}gc.FilterAsyncOperator=xc;var Pc={},kc={},Tc={},Cc={},jc=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Nc=ae&&ae.__await||function(e){return this instanceof Nc?(this.v=e,this):new Nc(e)},Rc=ae&&ae.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:Nc(e[n](t)),done:"return"===n}:o?o(t):t}:o}},Dc=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Nc?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Cc.flattenByAsync=void 0;const Bc=Ze;function Vc(e){return Bc.isIterable(e)&&Bc.isntChar(e)}Cc.flattenByAsync=function(e,t){return Bc.isAsyncIterable(e)?function(e){return Dc(this,arguments,(function*(){var n,o;const a=1;try{for(var s,i=jc(e);!(s=yield Nc(i.next())).done;){const e=s.value;Vc(e)&&(yield Nc(t(e,a)))?yield Nc(yield*Rc(jc(r(e,a+1)))):yield yield Nc(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&(yield Nc(o.call(i)))}finally{if(n)throw n.error}}}))}(e):function(e){return r(e,1)}(e);function r(e,n){return Dc(this,arguments,(function*(){for(const o of e)Vc(o)&&(yield Nc(t(o,n)))?yield Nc(yield*Rc(jc(r(o,n+1)))):yield yield Nc(o)}))}},Tc.flattenDeepAsync=void 0;const Uc=Cc,Fc=Ee;Tc.flattenDeepAsync=function(e,t=1/0){return Fc.assert(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),Fc.assert(t>=0,"The parameter depth must be greater than or equal to 0"),Uc.flattenByAsync(e,((e,r)=>r<=t))},kc.flattenAsync=void 0;const qc=Tc;kc.flattenAsync=function(e){return qc.flattenDeepAsync(e,1)},Pc.FlattenAsyncOperator=void 0;const Mc=pe,zc=me,Lc=kc;class Kc extends zc.AsyncIterableOperatorBase{flattenAsync(...e){return Mc.applyChainingAsync(this.subject,Lc.flattenAsync,e)}}Pc.FlattenAsyncOperator=Kc;var Gc={FlattenByAsync:void 0};const Jc=pe,Hc=le,Wc=Cc;class Zc extends Hc.Subject{flattenByAsync(...e){return Jc.applyChainingAsync(this.subject,Wc.flattenByAsync,e)}}Gc.FlattenByAsync=Zc;var Qc={FlattenDeepAsyncOperator:void 0};const Yc=pe,Xc=me,eu=Tc;class tu extends Xc.AsyncIterableOperatorBase{flattenDeepAsync(...e){return Yc.applyChainingAsync(this.subject,eu.flattenDeepAsync,e)}}Qc.FlattenDeepAsyncOperator=tu;var ru={},nu={},ou=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},au=ae&&ae.__await||function(e){return this instanceof au?(this.v=e,this):new au(e)},su=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof au?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};nu.mapAsync=void 0;const iu=Ze;nu.mapAsync=function(e,t){return iu.isAsyncIterable(e)?function(e){return su(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=ou(e);!(a=yield au(s.next())).done;){const e=a.value;yield yield au(yield au(t(e,o))),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield au(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return su(this,arguments,(function*(){let r=0;for(const n of e)yield yield au(yield au(t(n,r))),r++}))}(e)},ru.MapAsyncOperator=void 0;const cu=pe,uu=le,lu=nu;class fu extends uu.Subject{mapAsync(...e){return cu.applyChainingAsync(this.subject,lu.mapAsync,e)}}ru.MapAsyncOperator=fu;var du={},hu={},pu=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},yu=ae&&ae.__await||function(e){return this instanceof yu?(this.v=e,this):new yu(e)},mu=ae&&ae.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:yu(e[n](t)),done:"return"===n}:o?o(t):t}:o}},vu=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof yu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};hu.repeatAsync=void 0;const bu=Se,gu=Ee;hu.repeatAsync=function(e,t){return gu.assert(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),gu.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")}(),bu.go((function(){return vu(this,arguments,(function*(){var r,n;const o=[];if(t>0){try{for(var a,s=pu(e);!(a=yield yu(s.next())).done;){const e=a.value;yield yield yu(e),o.push(e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield yu(n.call(s)))}finally{if(r)throw r.error}}t--}for(;t>0;)yield yu(yield*mu(pu(o))),t--}))}))},du.RepeatAsyncOperator=void 0;const wu=pe,_u=me,$u=hu;class Su extends _u.AsyncIterableOperatorBase{repeatAsync(...e){return wu.applyChainingAsync(this.subject,$u.repeatAsync,e)}}du.RepeatAsyncOperator=Su;var Au={},Eu={},Ou=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Iu=ae&&ae.__await||function(e){return this instanceof Iu?(this.v=e,this):new Iu(e)},xu=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Iu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Eu.sliceAsync=void 0;const Pu=Se,ku=Ee;Eu.sliceAsync=function(e,t,r=1/0){return ku.assert(Number.isInteger(t),"The parameter start must be an integer"),ku.assert(t>=0,"The parameter start must be greater than or equal to 0"),ku.assert(Number.isInteger(r),"The parameter end must be an integer"),ku.assert(r>=t,"The parameter end must be greater than or equal to start"),Pu.go((function(){return xu(this,arguments,(function*(){var n,o;let a=0;try{for(var s,i=Ou(e);!(s=yield Iu(i.next())).done;){const e=s.value;if(a>=r)break;a>=t&&(yield yield Iu(e)),a++}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&(yield Iu(o.call(i)))}finally{if(n)throw n.error}}}))}))},Au.SliceAsyncOperator=void 0;const Tu=pe,Cu=me,ju=Eu;class Nu extends Cu.AsyncIterableOperatorBase{sliceAsync(...e){return Tu.applyChainingAsync(this.subject,ju.sliceAsync,e)}}Au.SliceAsyncOperator=Nu;var Ru={},Du={},Bu=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Vu=ae&&ae.__await||function(e){return this instanceof Vu?(this.v=e,this):new Vu(e)},Uu=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Vu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Du.splitAsync=void 0,Du.splitAsync=function(e,t){return Uu(this,arguments,(function*(){var r,n;let o=[];try{for(var a,s=Bu(e);!(a=yield Vu(s.next())).done;){const e=a.value;e===t?(yield yield Vu(o),o=[]):o.push(e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Vu(n.call(s)))}finally{if(r)throw r.error}}yield yield Vu(o)}))},Ru.SplitAsyncOperator=void 0;const Fu=pe,qu=me,Mu=Du;class zu extends qu.AsyncIterableOperatorBase{splitAsync(...e){return Fu.applyChainingAsync(this.subject,Mu.splitAsync,e)}}Ru.SplitAsyncOperator=zu;var Lu={},Ku={},Gu=ae&&ae.__await||function(e){return this instanceof Gu?(this.v=e,this):new Gu(e)},Ju=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Gu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},Hu=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Ku.splitByAsync=void 0;const Wu=Ze;Ku.splitByAsync=function(e,t){return Wu.isAsyncIterable(e)?function(e){return Ju(this,arguments,(function*(){var r,n;let o=[],a=0;try{for(var s,i=Hu(e);!(s=yield Gu(i.next())).done;){const e=s.value;(yield Gu(t(e,a)))?(yield yield Gu(o),o=[]):o.push(e),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield Gu(n.call(i)))}finally{if(r)throw r.error}}yield yield Gu(o)}))}(e):function(e){return Ju(this,arguments,(function*(){let r=[],n=0;for(const o of e)(yield Gu(t(o,n)))?(yield yield Gu(r),r=[]):r.push(o),n++;yield yield Gu(r)}))}(e)},Lu.SplitByAsyncOperator=void 0;const Zu=pe,Qu=le,Yu=Ku;class Xu extends Qu.Subject{splitByAsync(...e){return Zu.applyChainingAsync(this.subject,Yu.splitByAsync,e)}}Lu.SplitByAsyncOperator=Xu;var el={},tl={},rl=ae&&ae.__await||function(e){return this instanceof rl?(this.v=e,this):new rl(e)},nl=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},ol=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof rl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};tl.takeAsync=void 0;const al=Se,sl=Ee;tl.takeAsync=function(e,t){return sl.assert(Number.isInteger(t),"The parameter count must be an integer"),sl.assert(t>=0,"The parameter count must be greater than or equal to 0"),al.go((function(){return ol(this,arguments,(function*(){var r,n;if(0===t)return yield rl(void 0);try{for(var o,a=nl(e);!(o=yield rl(a.next())).done;){const e=o.value;if(yield yield rl(e),0===--t)break}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&(yield rl(n.call(a)))}finally{if(r)throw r.error}}}))}))},el.TakeAsyncOperator=void 0;const il=pe,cl=me,ul=tl;class ll extends cl.AsyncIterableOperatorBase{takeAsync(...e){return il.applyChainingAsync(this.subject,ul.takeAsync,e)}}el.TakeAsyncOperator=ll;var fl={},dl={},hl=ae&&ae.__await||function(e){return this instanceof hl?(this.v=e,this):new hl(e)},pl=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},yl=ae&&ae.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:hl(e[n](t)),done:"return"===n}:o?o(t):t}:o}},ml=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof hl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};dl.takeRightAsync=void 0;const vl=Se,bl=Ee;dl.takeRightAsync=function(e,t){return bl.assert(Number.isInteger(t),"The parameter count must be an integer"),bl.assert(t>=0,"The parameter count must be greater than or equal to 0"),vl.go((function(){return ml(this,arguments,(function*(){const r=e[Symbol.asyncIterator](),n=[];let o;for(;o=yield hl(r.next()),!o.done;)n.push(o.value),n.length>t&&n.shift();yield hl(yield*yl(pl(n)))}))}))},fl.TakeRightAsyncOperator=void 0;const gl=pe,wl=me,_l=dl;class $l extends wl.AsyncIterableOperatorBase{takeRightAsync(...e){return gl.applyChainingAsync(this.subject,_l.takeRightAsync,e)}}fl.TakeRightAsyncOperator=$l;var Sl={},Al={},El=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ol=ae&&ae.__await||function(e){return this instanceof Ol?(this.v=e,this):new Ol(e)},Il=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ol?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Al.takeUntilAsync=void 0;const xl=Ze;Al.takeUntilAsync=function(e,t){return xl.isAsyncIterable(e)?function(e){return Il(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=El(e);!(a=yield Ol(s.next())).done;){const e=a.value;if(yield Ol(t(e,o)))break;yield yield Ol(e),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Ol(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return Il(this,arguments,(function*(){let r=0;for(const n of e){if(yield Ol(t(n,r)))break;yield yield Ol(n),r++}}))}(e)},Sl.TakeUntilAsyncOperator=void 0;const Pl=pe,kl=le,Tl=Al;class Cl extends kl.Subject{takeUntilAsync(...e){return Pl.applyChainingAsync(this.subject,Tl.takeUntilAsync,e)}}Sl.TakeUntilAsyncOperator=Cl;var jl={},Nl={},Rl=ae&&ae.__await||function(e){return this instanceof Rl?(this.v=e,this):new Rl(e)},Dl=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Rl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},Bl=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Nl.tapAsync=void 0;const Vl=Ze;Nl.tapAsync=function(e,t){return Vl.isAsyncIterable(e)?function(e){return Dl(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=Bl(e);!(a=yield Rl(s.next())).done;){const e=a.value;yield Rl(t(e,o)),yield yield Rl(e),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Rl(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return Dl(this,arguments,(function*(){let r=0;for(const n of e)yield Rl(t(n,r)),yield yield Rl(n),r++}))}(e)},jl.TapAsyncOperator=void 0;const Ul=pe,Fl=le,ql=Nl;class Ml extends Fl.Subject{tapAsync(...e){return Ul.applyChainingAsync(this.subject,ql.tapAsync,e)}}jl.TapAsyncOperator=Ml;var zl={},Ll={},Kl=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Gl=ae&&ae.__await||function(e){return this instanceof Gl?(this.v=e,this):new Gl(e)},Jl=ae&&ae.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:Gl(e[n](t)),done:"return"===n}:o?o(t):t}:o}},Hl=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Gl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Ll.transformAsync=void 0,Ll.transformAsync=function(e,t){return Hl(this,arguments,(function*(){yield Gl(yield*Jl(Kl(t(e))))}))},zl.TransformAsyncOperator=void 0;const Wl=pe,Zl=le,Ql=Ll;class Yl extends Zl.Subject{transformAsync(...e){return Wl.applyChainingAsync(this.subject,Ql.transformAsync,e)}}zl.TransformAsyncOperator=Yl;var Xl={},ef={},tf=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},rf=ae&&ae.__await||function(e){return this instanceof rf?(this.v=e,this):new rf(e)},nf=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof rf?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};ef.uniqAsync=void 0,ef.uniqAsync=function(e){return nf(this,arguments,(function*(){var t,r;const n=new Set;try{for(var o,a=tf(e);!(o=yield rf(a.next())).done;){const e=o.value;n.has(e)||(yield yield rf(e),n.add(e))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&(yield rf(r.call(a)))}finally{if(t)throw t.error}}}))},Xl.UniqAsyncOperator=void 0;const of=pe,af=me,sf=ef;class cf extends af.AsyncIterableOperatorBase{uniqAsync(...e){return of.applyChainingAsync(this.subject,sf.uniqAsync,e)}}Xl.UniqAsyncOperator=cf;var uf={},lf={},ff=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},df=ae&&ae.__await||function(e){return this instanceof df?(this.v=e,this):new df(e)},hf=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof df?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};lf.uniqByAsync=void 0;const pf=Ze;lf.uniqByAsync=function(e,t){return pf.isAsyncIterable(e)?function(e){return hf(this,arguments,(function*(){var r,n;const o=new Set;let a=0;try{for(var s,i=ff(e);!(s=yield df(i.next())).done;){const e=s.value,r=yield df(t(e,a));o.has(r)||(yield yield df(e),o.add(r)),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield df(n.call(i)))}finally{if(r)throw r.error}}}))}(e):function(e){return hf(this,arguments,(function*(){const r=new Set;let n=0;for(const o of e){const e=yield df(t(o,n));r.has(e)||(yield yield df(o),r.add(e)),n++}}))}(e)},uf.UniqByAsyncOperator=void 0;const yf=pe,mf=le,vf=lf;class bf extends mf.Subject{uniqByAsync(...e){return yf.applyChainingAsync(this.subject,vf.uniqByAsync,e)}}uf.UniqByAsyncOperator=bf;var gf={},wf={},_f=ae&&ae.__await||function(e){return this instanceof _f?(this.v=e,this):new _f(e)},$f=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof _f?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};wf.zipAsync=void 0;const Sf=Ze;wf.zipAsync=function(e,...t){return function(...e){return $f(this,arguments,(function*(){const t=e.length,r=e.map((e=>Sf.isAsyncIterable(e)?[Symbol.asyncIterator,e[Symbol.asyncIterator]()]:[Symbol.iterator,e[Symbol.iterator]()]));for(;;){const e=new Array(t);for(let n=0;n<t;n++){const[t,o]=r[n];let a;if(a=t===Symbol.asyncIterator?yield _f(o.next()):o.next(),a.done)return yield _f(void 0);e[n]=a.value}yield yield _f(e)}}))}(e,...t)},gf.ZipAsyncOperator=void 0;const Af=pe,Ef=le,Of=wf;class If extends Ef.Subject{zipAsync(...e){return Af.applyChainingAsync(this.subject,Of.zipAsync,e)}}gf.ZipAsyncOperator=If;var xf={},Pf={};Pf.consume=void 0,Pf.consume=function(e,t){return t(e)},xf.ConsumeOperator=void 0;const kf=pe,Tf=Pf,Cf=le;class jf extends Cf.Subject{consume(...e){return kf.applyBinding(this.subject,Tf.consume,e)}}xf.ConsumeOperator=jf;var Nf={},Rf={},Df=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Bf=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Rf.eachAsync=void 0;const Vf=Ze;Rf.eachAsync=function(e,t){return Vf.isAsyncIterable(e)?function(e){var r,n,o,a;return Df(this,void 0,void 0,(function*(){let s=0;try{for(r=Bf(e);!(n=yield r.next()).done;){const e=n.value;yield t(e,s),s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}}))}(e):function(e){return Df(this,void 0,void 0,(function*(){let r=0;for(const n of e)yield t(n,r),r++}))}(e)},Nf.EachAsyncOperator=void 0;const Uf=pe,Ff=le,qf=Rf;class Mf extends Ff.Subject{eachAsync(...e){return Uf.applyBinding(this.subject,qf.eachAsync,e)}}Nf.EachAsyncOperator=Mf;var zf={},Lf={},Kf=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Gf=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Lf.everyAsync=void 0;const Jf=Ze;Lf.everyAsync=function(e,t){return Jf.isAsyncIterable(e)?function(e){var r,n,o,a;return Kf(this,void 0,void 0,(function*(){let s=0;try{for(r=Gf(e);!(n=yield r.next()).done;){const e=n.value;if(!(yield t(e,s)))return!1;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!0}))}(e):function(e){return Kf(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(!(yield t(n,r)))return!1;r++}return!0}))}(e)},zf.EveryAsyncOperator=void 0;const Hf=pe,Wf=le,Zf=Lf;class Qf extends Wf.Subject{everyAsync(...e){return Hf.applyBinding(this.subject,Zf.everyAsync,e)}}zf.EveryAsyncOperator=Qf;var Yf={},Xf={},ed=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},td=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Xf.findAsync=void 0;const rd=Ze;Xf.findAsync=function(e,t){return rd.isAsyncIterable(e)?function(e){var r,n,o,a;return ed(this,void 0,void 0,(function*(){let s=0;try{for(r=td(e);!(n=yield r.next()).done;){const e=n.value;if(yield t(e,s))return e;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}}))}(e):function(e){return ed(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(yield t(n,r))return n;r++}}))}(e)},Yf.FindAsyncOperator=void 0;const nd=pe,od=le,ad=Xf;class sd extends od.Subject{findAsync(...e){return nd.applyBinding(this.subject,ad.findAsync,e)}}Yf.FindAsyncOperator=sd;var id={},cd={},ud=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},ld=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};cd.firstAsync=void 0,cd.firstAsync=function(e){var t,r,n,o;return ud(this,void 0,void 0,(function*(){try{for(t=ld(e);!(r=yield t.next()).done;){return r.value}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}}))},id.FirstAsyncOperator=void 0;const fd=pe,dd=me,hd=cd;class pd extends dd.AsyncIterableOperatorBase{firstAsync(...e){return fd.applyBinding(this.subject,hd.firstAsync,e)}}id.FirstAsyncOperator=pd;var yd={},md={},vd=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},bd=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};md.includesAsync=void 0,md.includesAsync=function(e,t){var r,n,o,a;return vd(this,void 0,void 0,(function*(){try{for(r=bd(e);!(n=yield r.next()).done;){if(n.value===t)return!0}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))},yd.IncludesAsyncOperator=void 0;const gd=pe,wd=me,_d=md;class $d extends wd.AsyncIterableOperatorBase{includesAsync(...e){return gd.applyBinding(this.subject,_d.includesAsync,e)}}yd.IncludesAsyncOperator=$d;var Sd={},Ad={},Ed=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Od=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Ad.matchAsync=void 0,Ad.matchAsync=function(e,t){var r,n,o,a;return Ed(this,void 0,void 0,(function*(){const s=t.length;let i=0;try{for(r=Od(e);!(n=yield r.next()).done;){if(n.value===t[i]&&i++,i===s)return!0}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))},Sd.MatchAsyncOperator=void 0;const Id=pe,xd=me,Pd=Ad;class kd extends xd.AsyncIterableOperatorBase{matchAsync(...e){return Id.applyBinding(this.subject,Pd.matchAsync,e)}}Sd.MatchAsyncOperator=kd;var Td={},Cd={},jd=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Nd=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Cd.reduceAsync=void 0;const Rd=Ze;Cd.reduceAsync=function(e,t,r){return Rd.isUndefined(r)?function(e,t){return Rd.isAsyncIterable(e)?r(e):n(e);function r(e){return jd(this,void 0,void 0,(function*(){const[r,n]=yield s(e);let o=r,a=1;for(;;){const e=yield n.next();if(e.done)break;const r=e.value;o=yield t(o,r,a++)}return o;function s(e){return jd(this,void 0,void 0,(function*(){const t=e[Symbol.asyncIterator](),r=yield t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}))}}))}function n(e){return jd(this,void 0,void 0,(function*(){const[r,n]=s(e);let o=r,a=1;for(;;){const e=n.next();if(e.done)break;const r=e.value;o=yield t(o,r,a++)}return o;function s(e){const t=e[Symbol.iterator](),r=t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}}))}}(e,t):function(e,t,r){return Rd.isAsyncIterable(e)?o(e):n(e);function n(e){return jd(this,void 0,void 0,(function*(){let n=r,o=0;for(const r of e)n=yield t(n,r,o++);return n}))}function o(e){var n,o,a,s;return jd(this,void 0,void 0,(function*(){let i=r,c=0;try{for(n=Nd(e);!(o=yield n.next()).done;){const e=o.value;i=yield t(i,e,c++)}}catch(e){a={error:e}}finally{try{o&&!o.done&&(s=n.return)&&(yield s.call(n))}finally{if(a)throw a.error}}return i}))}}(e,t,r)},Td.ReduceAsyncOperator=void 0;const Dd=pe,Bd=le,Vd=Cd;class Ud extends Bd.Subject{reduceAsync(...e){return Dd.applyBinding(this.subject,Vd.reduceAsync,e)}}Td.ReduceAsyncOperator=Ud;var Fd={},qd={},Md=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},zd=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};qd.someAsync=void 0;const Ld=Ze;qd.someAsync=function(e,t){return Ld.isAsyncIterable(e)?function(e){var r,n,o,a;return Md(this,void 0,void 0,(function*(){let s=0;try{for(r=zd(e);!(n=yield r.next()).done;){const e=n.value;if(yield t(e,s))return!0;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))}(e):function(e){return Md(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(yield t(n,r))return!0;r++}return!1}))}(e)},Fd.SomeAsyncOperator=void 0;const Kd=pe,Gd=le,Jd=qd;class Hd extends Gd.Subject{someAsync(...e){return Kd.applyBinding(this.subject,Jd.someAsync,e)}}Fd.SomeAsyncOperator=Hd;var Wd={},Zd={},Qd=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))};Zd.lastAsync=void 0,Zd.lastAsync=function(e){return Qd(this,void 0,void 0,(function*(){const t=e[Symbol.asyncIterator]();let{value:r,done:n}=yield t.next();if(n)return;let o=r;for(;({value:r,done:n}=yield t.next()),!n;)o=r;return o}))},Wd.LastAsyncOperator=void 0;const Yd=pe,Xd=me,eh=Zd;class th extends Xd.AsyncIterableOperatorBase{lastAsync(...e){return Yd.applyBinding(this.subject,eh.lastAsync,e)}}Wd.LastAsyncOperator=th;var rh={},nh={},oh=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},ah=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};nh.toArrayAsync=void 0;const sh=Pf;nh.toArrayAsync=function(e){return sh.consume(e,(e=>{var t,r;return oh(this,void 0,void 0,(function*(){var n,o;const a=[];try{for(t=ah(e);!(r=yield t.next()).done;){const e=r.value;a.push(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}))},rh.ToArrayAsyncOperator=void 0;const ih=pe,ch=me,uh=nh;class lh extends ch.AsyncIterableOperatorBase{toArrayAsync(...e){return ih.applyBinding(this.subject,uh.toArrayAsync,e)}}rh.ToArrayAsyncOperator=lh;var fh={},dh={},hh=ae&&ae.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},ph=ae&&ae.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};dh.toSetAsync=void 0;const yh=Pf;dh.toSetAsync=function(e){return yh.consume(e,(e=>{var t,r;return hh(this,void 0,void 0,(function*(){var n,o;const a=new Set;try{for(t=ph(e);!(r=yield t.next()).done;){const e=r.value;a.add(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}))},fh.ToSetAsyncOperator=void 0;const mh=pe,vh=me,bh=dh;class gh extends vh.AsyncIterableOperatorBase{toSetAsync(...e){return mh.applyBinding(this.subject,bh.toSetAsync,e)}}fh.ToSetAsyncOperator=gh,ye.AsyncIterableOperator=void 0;const wh=ce,_h=me,$h=_e,Sh=He,Ah=Ai,Eh=Ri,Oh=Zi,Ih=lc,xh=gc,Ph=Pc,kh=Gc,Th=Qc,Ch=ru,jh=du,Nh=Au,Rh=Ru,Dh=Lu,Bh=el,Vh=fl,Uh=Sl,Fh=jl,qh=zl,Mh=Xl,zh=uf,Lh=gf,Kh=xf,Gh=Nf,Jh=zf,Hh=Yf,Wh=id,Zh=yd,Qh=Sd,Yh=Td,Xh=Fd,ep=Wd,tp=rh,rp=fh;class np extends _h.AsyncIterableOperatorBase{}ye.AsyncIterableOperator=np,wh.mixinDecorators(np,[$h.ChunkAsyncOperator,Sh.ChunkByAsyncOperator,Ah.ConcatAsyncOperator,Eh.DropAsyncOperator,Oh.DropRightAsyncOperator,Ih.DropUntilAsyncOperator,xh.FilterAsyncOperator,Ph.FlattenAsyncOperator,kh.FlattenByAsync,Th.FlattenDeepAsyncOperator,Ch.MapAsyncOperator,jh.RepeatAsyncOperator,Nh.SliceAsyncOperator,Rh.SplitAsyncOperator,Dh.SplitByAsyncOperator,Bh.TakeAsyncOperator,Vh.TakeRightAsyncOperator,Uh.TakeUntilAsyncOperator,Fh.TapAsyncOperator,qh.TransformAsyncOperator,Mh.UniqAsyncOperator,zh.UniqByAsyncOperator,Lh.ZipAsyncOperator,Kh.ConsumeOperator,Gh.EachAsyncOperator,Jh.EveryAsyncOperator,Hh.FindAsyncOperator,Wh.FirstAsyncOperator,Zh.IncludesAsyncOperator,Qh.MatchAsyncOperator,Yh.ReduceAsyncOperator,Xh.SomeAsyncOperator,ep.LastAsyncOperator,tp.ToArrayAsyncOperator,rp.ToSetAsyncOperator]),pe.applyChainingAsync=pe.applyChaining=pe.applyBinding=pe.getPipelineProxy=void 0;const op=ie,ap=ye;pe.getPipelineProxy=function(e,t){return(...r)=>e(...r,...t)},pe.applyBinding=function(e,t,r){return t(e,...r)},pe.applyChaining=function(e,t,r){return new op.IterableOperator(t(e,...r))},pe.applyChainingAsync=function(e,t,r){return new ap.AsyncIterableOperator(t(e,...r))};var sp={};sp.chunkBy=void 0,sp.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)},he.ChunkByOperator=void 0;const ip=pe,cp=sp,up=ue;class lp extends up.IterableOperatorBase{chunkBy(...e){return ip.applyChaining(this.subject,cp.chunkBy,e)}}he.ChunkByOperator=lp;var fp={},dp={chunk:void 0};const hp=Se,pp=Ee;dp.chunk=function(e,t){return pp.assert(Number.isInteger(t),"The parameter size must be an integer"),pp.assert(t>0,"The parameter size must be greater than 0"),hp.go((function*(){let r=[];for(const n of e)r.push(n),r.length>=t&&(yield r,r=[]);r.length&&(yield r)}))},fp.ChunkOperator=void 0;const yp=pe,mp=dp,vp=ue;class bp extends vp.IterableOperatorBase{chunk(...e){return yp.applyChaining(this.subject,mp.chunk,e)}}fp.ChunkOperator=bp;var gp={},wp={concat:void 0};const _p=Se;wp.concat=function(e,...t){return _p.go((function*(){for(const r of[e,...t])yield*r}))},gp.ConcatOperator=void 0;const $p=pe,Sp=wp,Ap=ue;class Ep extends Ap.IterableOperatorBase{concat(...e){return $p.applyChaining(this.subject,Sp.concat,e)}}gp.ConcatOperator=Ep;var Op={},Ip={dropRight:void 0};const xp=Se,Pp=Bi,kp=Ee;Ip.dropRight=function(e,t){return kp.assert(Number.isInteger(t),"The parameter count must be an integer"),kp.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?Pp.copyIterable(e):xp.go((function*(){const r=Array.from(e);yield*r.slice(0,-t)}))},Op.DropRightOperator=void 0;const Tp=pe,Cp=Ip,jp=ue;class Np extends jp.IterableOperatorBase{dropRight(...e){return Tp.applyChaining(this.subject,Cp.dropRight,e)}}Op.DropRightOperator=Np;var Rp={},Dp={};Dp.dropUntil=void 0,Dp.dropUntil=function*(e,t){const r=e[Symbol.iterator]();let n,o=0;for(;!(n=r.next(),n.done||t(n.value,o++)););for(;!n.done;)yield n.value,n=r.next()},Rp.DropUntilOperator=void 0;const Bp=pe,Vp=Dp,Up=ue;class Fp extends Up.IterableOperatorBase{dropUntil(...e){return Bp.applyChaining(this.subject,Vp.dropUntil,e)}}Rp.DropUntilOperator=Fp;var qp={},Mp={drop:void 0};const zp=Se,Lp=Bi,Kp=Ee;Mp.drop=function(e,t){return Kp.assert(Number.isInteger(t),"The parameter count must be an integer"),Kp.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?Lp.copyIterable(e):zp.go((function*(){const r=e[Symbol.iterator]();let n;for(;!(n=r.next(),n.done||t<=0);)t--;for(;!n.done;)yield n.value,n=r.next()}))},qp.DropOperator=void 0;const Gp=pe,Jp=Mp,Hp=ue;class Wp extends Hp.IterableOperatorBase{drop(...e){return Gp.applyChaining(this.subject,Jp.drop,e)}}qp.DropOperator=Wp;var Zp={},Qp={};Qp.filter=void 0,Qp.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++},Zp.FilterOperator=void 0;const Yp=pe,Xp=Qp,ey=ue;class ty extends ey.IterableOperatorBase{filter(...e){return Yp.applyChaining(this.subject,Xp.filter,e)}}Zp.FilterOperator=ty;var ry={},ny={flattenBy:void 0};const oy=Ze;ny.flattenBy=function(e,t){return function*e(r,n){for(const a of r)o=a,oy.isIterable(o)&&oy.isntChar(o)&&t(a,n)?yield*e(a,n+1):yield a;var o}(e,1)},ry.FlattenByOperator=void 0;const ay=pe,sy=ny,iy=ue;class cy extends iy.IterableOperatorBase{flattenBy(...e){return ay.applyChaining(this.subject,sy.flattenBy,e)}}ry.FlattenByOperator=cy;var uy={},ly={flattenDeep:void 0};const fy=ny,dy=Ee;ly.flattenDeep=function(e,t=1/0){return dy.assert(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),dy.assert(t>=0,"The parameter depth must be greater than or equal to 0"),fy.flattenBy(e,((e,r)=>r<=t))},uy.FlattenDeepOperator=void 0;const hy=pe,py=ly,yy=ue;class my extends yy.IterableOperatorBase{flattenDeep(...e){return hy.applyChaining(this.subject,py.flattenDeep,e)}}uy.FlattenDeepOperator=my;var vy={},by={flatten:void 0};const gy=ly;by.flatten=function(e){return gy.flattenDeep(e,1)},vy.FlattenOperator=void 0;const wy=pe,_y=by,$y=ue;class Sy extends $y.IterableOperatorBase{flatten(...e){return wy.applyChaining(this.subject,_y.flatten,e)}}vy.FlattenOperator=Sy;var Ay={},Ey={};Ey.map=void 0,Ey.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++},Ay.MapOperator=void 0;const Oy=pe,Iy=Ey,xy=ue;class Py extends xy.IterableOperatorBase{map(...e){return Oy.applyChaining(this.subject,Iy.map,e)}}Ay.MapOperator=Py;var ky={},Ty={repeat:void 0};const Cy=Se,jy=Ee;Ty.repeat=function(e,t){return jy.assert(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),jy.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")}(),Cy.go((function*(){const r=[];if(t>0){for(const t of e)yield t,r.push(t);t--}for(;t>0;)yield*r,t--}))},ky.RepeatOperator=void 0;const Ny=pe,Ry=Ty,Dy=ue;class By extends Dy.IterableOperatorBase{repeat(...e){return Ny.applyChaining(this.subject,Ry.repeat,e)}}ky.RepeatOperator=By;var Vy={},Uy={slice:void 0};const Fy=Se,qy=Ee;Uy.slice=function(e,t,r=1/0){return qy.assert(Number.isInteger(t),"The parameter start must be an integer"),qy.assert(t>=0,"The parameter start must be greater than or equal to 0"),qy.assert(Number.isInteger(r),"The parameter end must be an integer"),qy.assert(r>=t,"The parameter end must be greater than or equal to start"),Fy.go((function*(){let n=0;for(const o of e){if(n>=r)break;n>=t&&(yield o),n++}}))},Vy.SliceOperator=void 0;const My=pe,zy=Uy,Ly=ue;class Ky extends Ly.IterableOperatorBase{slice(...e){return My.applyChaining(this.subject,zy.slice,e)}}Vy.SliceOperator=Ky;var Gy={},Jy={};Jy.splitBy=void 0,Jy.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r},Gy.SplitByOperator=void 0;const Hy=pe,Wy=Jy,Zy=ue;class Qy extends Zy.IterableOperatorBase{splitBy(...e){return Hy.applyChaining(this.subject,Wy.splitBy,e)}}Gy.SplitByOperator=Qy;var Yy={},Xy={};Xy.split=void 0,Xy.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r},Yy.SplitOperator=void 0;const em=pe,tm=Xy,rm=ue;class nm extends rm.IterableOperatorBase{split(...e){return em.applyChaining(this.subject,tm.split,e)}}Yy.SplitOperator=nm;var om={},am={takeRight:void 0};const sm=Se,im=Ee;am.takeRight=function(e,t){return im.assert(Number.isInteger(t),"The parameter count must be an integer"),im.assert(t>=0,"The parameter count must be greater than or equal to 0"),sm.go((function*(){const r=e[Symbol.iterator](),n=[];let o;for(;o=r.next(),!o.done;)n.push(o.value),n.length>t&&n.shift();yield*n}))},om.TakeRightOperator=void 0;const cm=pe,um=am,lm=ue;class fm extends lm.IterableOperatorBase{takeRight(...e){return cm.applyChaining(this.subject,um.takeRight,e)}}om.TakeRightOperator=fm;var dm={},hm={};hm.takeUntil=void 0,hm.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}},dm.TakeUntilOperator=void 0;const pm=pe,ym=hm,mm=ue;class vm extends mm.IterableOperatorBase{takeUntil(...e){return pm.applyChaining(this.subject,ym.takeUntil,e)}}dm.TakeUntilOperator=vm;var bm={},gm={take:void 0};const wm=Se,_m=Ee;gm.take=function(e,t){return _m.assert(Number.isInteger(t),"The parameter count must be an integer"),_m.assert(t>=0,"The parameter count must be greater than or equal to 0"),wm.go((function*(){if(0!==t)for(const r of e)if(yield r,0===--t)break}))},bm.TakeOperator=void 0;const $m=pe,Sm=gm,Am=ue;class Em extends Am.IterableOperatorBase{take(...e){return $m.applyChaining(this.subject,Sm.take,e)}}bm.TakeOperator=Em;var Om={},Im={};Im.tap=void 0,Im.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++},Om.TapOperator=void 0;const xm=pe,Pm=Im,km=ue;class Tm extends km.IterableOperatorBase{tap(...e){return xm.applyChaining(this.subject,Pm.tap,e)}}Om.TapOperator=Tm;var Cm={},jm={},Nm=ae&&ae.__await||function(e){return this instanceof Nm?(this.v=e,this):new Nm(e)},Rm=ae&&ae.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Nm?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};jm.toAsyncIterable=void 0,jm.toAsyncIterable=function(e){return Rm(this,arguments,(function*(){for(const t of e)yield yield Nm(t)}))},Cm.ToAsyncIterableOperator=void 0;const Dm=pe,Bm=ue,Vm=jm;class Um extends Bm.IterableOperatorBase{toAsyncIterable(...e){return Dm.applyChainingAsync(this.subject,Vm.toAsyncIterable,e)}}Cm.ToAsyncIterableOperator=Um;var Fm={},qm={};qm.transform=void 0,qm.transform=function*(e,t){yield*t(e)},Fm.TransformOperator=void 0;const Mm=pe,zm=qm,Lm=ue;class Km extends Lm.IterableOperatorBase{transform(...e){return Mm.applyChaining(this.subject,zm.transform,e)}}Fm.TransformOperator=Km;var Gm={},Jm={};Jm.uniqBy=void 0,Jm.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}},Gm.UniqByOperator=void 0;const Hm=pe,Wm=Jm,Zm=ue;class Qm extends Zm.IterableOperatorBase{uniqBy(...e){return Hm.applyChaining(this.subject,Wm.uniqBy,e)}}Gm.UniqByOperator=Qm;var Ym={},Xm={};Xm.uniq=void 0,Xm.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))},Ym.UniqOperator=void 0;const ev=pe,tv=Xm,rv=ue;class nv extends rv.IterableOperatorBase{uniq(...e){return ev.applyChaining(this.subject,tv.uniq,e)}}Ym.UniqOperator=nv;var ov={},av={};av.zip=void 0,av.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]()));for(;;){const e=new Array(t);for(let n=0;n<t;n++){const{value:t,done:o}=r[n].next();if(o)return;e[n]=t}yield e}}(e,...t)},ov.ZipOperator=void 0;const sv=pe,iv=av,cv=ue;class uv extends cv.IterableOperatorBase{zip(...e){return sv.applyChaining(this.subject,iv.zip,e)}}ov.ZipOperator=uv;var lv={},fv={};fv.each=void 0,fv.each=function(e,t){let r=0;for(const n of e)t(n,r),r++},lv.EachOperator=void 0;const dv=pe,hv=fv,pv=ue;class yv extends pv.IterableOperatorBase{each(...e){return dv.applyBinding(this.subject,hv.each,e)}}lv.EachOperator=yv;var mv={},vv={};vv.every=void 0,vv.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0},mv.EveryOperator=void 0;const bv=pe,gv=vv,wv=ue;class _v extends wv.IterableOperatorBase{every(...e){return bv.applyBinding(this.subject,gv.every,e)}}mv.EveryOperator=_v;var $v={},Sv={};Sv.find=void 0,Sv.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}},$v.FindOperator=void 0;const Av=pe,Ev=Sv,Ov=ue;class Iv extends Ov.IterableOperatorBase{find(...e){return Av.applyBinding(this.subject,Ev.find,e)}}$v.FindOperator=Iv;var xv={},Pv={};Pv.first=void 0,Pv.first=function(e){for(const t of e)return t},xv.FirstOperator=void 0;const kv=pe,Tv=Pv,Cv=ue;class jv extends Cv.IterableOperatorBase{first(...e){return kv.applyBinding(this.subject,Tv.first,e)}}xv.FirstOperator=jv;var Nv={},Rv={};Rv.includes=void 0,Rv.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1},Nv.IncludesOperator=void 0;const Dv=pe,Bv=Rv,Vv=ue;class Uv extends Vv.IterableOperatorBase{includes(...e){return Dv.applyBinding(this.subject,Bv.includes,e)}}Nv.IncludesOperator=Uv;var Fv={},qv={};qv.match=void 0,qv.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1},Fv.MatchOperator=void 0;const Mv=pe,zv=qv,Lv=ue;class Kv extends Lv.IterableOperatorBase{match(...e){return Mv.applyBinding(this.subject,zv.match,e)}}Fv.MatchOperator=Kv;var Gv={},Jv={reduce:void 0};const Hv=Ze;Jv.reduce=function(e,t,r){return Hv.isUndefined(r)?function(e,t){const[r,n]=s(e);let o=r,a=1;for(;;){const e=n.next();if(e.done)break;o=t(o,e.value,a++)}return o;function s(e){const t=e[Symbol.iterator](),r=t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)},Gv.ReduceOperator=void 0;const Wv=pe,Zv=Jv,Qv=ue;class Yv extends Qv.IterableOperatorBase{reduce(...e){return Wv.applyBinding(this.subject,Zv.reduce,e)}}Gv.ReduceOperator=Yv;var Xv={},eb={};eb.some=void 0,eb.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1},Xv.SomeOperator=void 0;const tb=pe,rb=eb,nb=ue;class ob extends nb.IterableOperatorBase{some(...e){return tb.applyBinding(this.subject,rb.some,e)}}Xv.SomeOperator=ob;var ab={},sb={};sb.last=void 0,sb.last=function(e){const t=e[Symbol.iterator]();let{value:r,done:n}=t.next();if(n)return;let o=r;for(;({value:r,done:n}=t.next()),!n;)o=r;return o},ab.LastOperator=void 0;const ib=pe,cb=sb,ub=ue;class lb extends ub.IterableOperatorBase{last(...e){return ib.applyBinding(this.subject,cb.last,e)}}ab.LastOperator=lb;var fb={},db={toArray:void 0};const hb=Pf;db.toArray=function(e){return hb.consume(e,(e=>Array.from(e)))},fb.ToArrayOperator=void 0;const pb=pe,yb=db,mb=ue;class vb extends mb.IterableOperatorBase{toArray(...e){return pb.applyBinding(this.subject,yb.toArray,e)}}fb.ToArrayOperator=vb;var bb={},gb={toSet:void 0};const wb=Pf;gb.toSet=function(e){return wb.consume(e,(e=>new Set(e)))},bb.ToSetOperator=void 0;const _b=pe,$b=gb,Sb=ue;class Ab extends Sb.IterableOperatorBase{toSet(...e){return _b.applyBinding(this.subject,$b.toSet,e)}}bb.ToSetOperator=Ab,ie.IterableOperator=void 0;const Eb=ce,Ob=ue,Ib=he,xb=fp,Pb=gp,kb=Op,Tb=Rp,Cb=qp,jb=Zp,Nb=ry,Rb=uy,Db=vy,Bb=Ay,Vb=ky,Ub=Vy,Fb=Gy,qb=Yy,Mb=om,zb=dm,Lb=bm,Kb=Om,Gb=Cm,Jb=zl,Hb=Fm,Wb=Gm,Zb=Ym,Qb=ov,Yb=He,Xb=Ai,eg=lc,tg=gc,rg=Gc,ng=ru,og=Lu,ag=Sl,sg=jl,ig=uf,cg=gf,ug=xf,lg=lv,fg=mv,dg=$v,hg=xv,pg=Nv,yg=Fv,mg=Gv,vg=Xv,bg=ab,gg=fb,wg=bb,_g=Nf,$g=zf,Sg=Yf,Ag=Td,Eg=Fd;class Og extends Ob.IterableOperatorBase{}function Ig(e){return oe(e,{childList:!0,subtree:!0}).pipe(J((e=>new se.IterableOperator(e).map((e=>e.addedNodes)).flatten().toArray())),ne((e=>e.length>0)))}function xg(e){return oe(e,{childList:!0,subtree:!0}).pipe(J((e=>new se.IterableOperator(e).map((e=>e.removedNodes)).flatten().toArray())),ne((e=>e.length>0)))}ie.IterableOperator=Og,Eb.mixinDecorators(Og,[xb.ChunkOperator,Ib.ChunkByOperator,Pb.ConcatOperator,kb.DropRightOperator,Tb.DropUntilOperator,Cb.DropOperator,jb.FilterOperator,Nb.FlattenByOperator,Rb.FlattenDeepOperator,Db.FlattenOperator,Bb.MapOperator,Vb.RepeatOperator,Ub.SliceOperator,Fb.SplitByOperator,qb.SplitOperator,Mb.TakeRightOperator,zb.TakeUntilOperator,Lb.TakeOperator,Kb.TapOperator,Hb.TransformOperator,Wb.UniqByOperator,Zb.UniqOperator,Qb.ZipOperator,Yb.ChunkByAsyncOperator,Xb.ConcatAsyncOperator,eg.DropUntilAsyncOperator,tg.FilterAsyncOperator,rg.FlattenByAsync,ng.MapAsyncOperator,og.SplitByAsyncOperator,ag.TakeUntilAsyncOperator,sg.TapAsyncOperator,Gb.ToAsyncIterableOperator,Jb.TransformAsyncOperator,ig.UniqByAsyncOperator,cg.ZipAsyncOperator,ug.ConsumeOperator,lg.EachOperator,fg.EveryOperator,dg.FindOperator,hg.FirstOperator,pg.IncludesOperator,yg.MatchOperator,mg.ReduceOperator,vg.SomeOperator,bg.LastOperator,gg.ToArrayOperator,wg.ToSetOperator,_g.EachAsyncOperator,$g.EveryAsyncOperator,Sg.FindAsyncOperator,Ag.ReduceAsyncOperator,Eg.SomeAsyncOperator]),function(e){var t=ae&&ae.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ae&&ae.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ie,e),r(ye,e)}(se);const Pg=new Set,kg=new Set;let Tg=!1,Cg=!1;function jg(){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=K(e),n=G(e,1/0),o=e;return o.length?1===o.length?F(o[0]):Q(n)(z(o,r)):B}(new P((e=>(Tg||function(){const e=history.pushState;history.pushState=function(...t){Reflect.apply(e,this,t),Pg.forEach((e=>e.next()))},Tg=!0}(),Pg.add(e),()=>Pg.delete(e)))),new P((e=>(Cg||function(){const e=history.replaceState;history.replaceState=function(...t){Reflect.apply(e,this,t),kg.forEach((e=>e.next()))},Cg=!0}(),kg.add(e),()=>kg.delete(e)))),te(window,"popstate")).pipe(J((e=>{})))}function Ng(){let e=document.URL;return(t?R(t):D).pipe(ne((()=>e!==document.URL)),function(e,t,r){var n=l(e)||t||r?{next:e,error:t,complete:r}:e;return n?T((function(e,t){e.subscribe(new C(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)})))})):I}((()=>e=document.URL)),J((()=>{})));var t}export{Ig as observeAdditionOfDescendantNodes,xg as observeRemovalOfDescendantNodes,jg as observeStateChanges,Ng as observeUrlChanges};
|
|
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};
|
|
23
16
|
//# sourceMappingURL=index.min.mjs.map
|