neo4j-driver 4.4.8 → 5.0.0-beta01

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.
@@ -1 +1 @@
1
- !function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).neo4j=t()}(function(){return function n(o,i,s){function u(e,t){if(!i[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(a)return a(e,!0);throw(r=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",r}r=i[e]={exports:{}},o[e][0].call(r.exports,function(t){return u(o[e][1][t]||t)},r,r.exports,n,o,i,s)}return i[e].exports}for(var a="function"==typeof require&&require,t=0;t<s.length;t++)u(s[t]);return u}({1:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertImpersonatedUserIsEmpty=r.assertTxConfigIsEmpty=r.assertDatabaseIsEmpty=void 0;var n=t("neo4j-driver-core");r.assertTxConfigIsEmpty=function(t,e,r){if(void 0===e&&(e=function(){}),t&&!t.isEmpty()){t=(0,n.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality");throw e(t.message),r.onError(t),t}},r.assertDatabaseIsEmpty=function(t,e,r){if(void 0===e&&(e=function(){}),t){t=(0,n.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality");throw e(t.message),r.onError(t),t}},r.assertImpersonatedUserIsEmpty=function(t,e,r){if(void 0===e&&(e=function(){}),t){t=(0,n.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. Trying to impersonate "+t+".");throw e(t.message),r.onError(t),t}}},{"neo4j-driver-core":60}],2:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var p=t("./bolt-protocol-util"),o=t("../packstream"),h=n(t("./request-message")),d=t("./stream-observers"),n=t("neo4j-driver-core"),i=n.internal.bookmark.Bookmark,t=n.internal.constants,s=t.ACCESS_MODE_WRITE,u=t.BOLT_PROTOCOL_V1,a=(n.internal.logger.Logger,n.internal.txConfig.TxConfig),n=(Object.defineProperty(c.prototype,"version",{get:function(){return u},enumerable:!1,configurable:!0}),c.prototype.packer=function(){return this._packer},c.prototype.unpacker=function(){return this._unpacker},c.prototype.transformMetadata=function(t){return t},c.prototype.initialize=function(t){var e=this,r=void 0===t?{}:t,n=r.userAgent,t=r.authToken,o=r.onError,i=r.onComplete,r=new d.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return e._onLoginCompleted(t,i)}});return this.write(h.default.init(n,t),r,!0),r},c.prototype.prepareToClose=function(){},c.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,r=e.bookmark,n=e.txConfig,o=e.database,i=e.mode,s=e.impersonatedUser,u=e.beforeError,a=e.afterError,t=e.beforeComplete,e=e.afterComplete;return this.run("BEGIN",r?r.asBeginTransactionParameters():{},{bookmark:r,txConfig:n,database:o,mode:i,impersonatedUser:s,beforeError:u,afterError:a,beforeComplete:t,afterComplete:e,flush:!1})},c.prototype.commitTransaction=function(t){var e=void 0===t?{}:t,r=e.beforeError,n=e.afterError,t=e.beforeComplete,e=e.afterComplete;return this.run("COMMIT",{},{bookmark:i.empty(),txConfig:a.empty(),mode:s,beforeError:r,afterError:n,beforeComplete:t,afterComplete:e})},c.prototype.rollbackTransaction=function(t){var e=void 0===t?{}:t,r=e.beforeError,n=e.afterError,t=e.beforeComplete,e=e.afterComplete;return this.run("ROLLBACK",{},{bookmark:i.empty(),txConfig:a.empty(),mode:s,beforeError:r,afterError:n,beforeComplete:t,afterComplete:e})},c.prototype.run=function(t,e,r){var n=void 0===r?{}:r,o=(n.bookmark,n.txConfig),i=n.database,s=(n.mode,n.impersonatedUser),u=n.beforeKeys,a=n.afterKeys,c=n.beforeError,l=n.afterError,f=n.beforeComplete,r=n.afterComplete,n=n.flush,n=void 0===n||n,r=new d.ResultStreamObserver({server:this._server,beforeKeys:u,afterKeys:a,beforeError:c,afterError:l,beforeComplete:f,afterComplete:r});return(0,p.assertTxConfigIsEmpty)(o,this._onProtocolError,r),(0,p.assertDatabaseIsEmpty)(i,this._onProtocolError,r),(0,p.assertImpersonatedUserIsEmpty)(s,this._onProtocolError,r),this.write(h.default.run(t,e),r,!1),this.write(h.default.pullAll(),r,n),r},Object.defineProperty(c.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:!1,configurable:!0}),c.prototype.reset=function(t){var e=void 0===t?{}:t,t=e.onError,e=e.onComplete,e=new d.ResetObserver({onProtocolError:this._onProtocolError,onError:t,onComplete:e});return this.write(h.default.reset(),e,!0),e},c.prototype._createPacker=function(t){return new o.v1.Packer(t)},c.prototype._createUnpacker=function(t,e){return new o.v1.Unpacker(t,e)},c.prototype.write=function(t,e,r){var n=this;this.queueObserverIfProtocolIsNotBroken(e)&&(this._log.isDebugEnabled()&&this._log.debug("C: "+t),this.packer().packStruct(t.signature,t.fields.map(function(t){return n.packer().packable(t)})),this._chunker.messageBoundary(),r&&this._chunker.flush())},c.prototype.notifyFatalError=function(t){return this._fatalError=t,this._responseHandler._notifyErrorToObservers(t)},c.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()},c.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()},c.prototype.queueObserverIfProtocolIsNotBroken=function(t){return this.isBroken()?(this.notifyFatalErrorToObserver(t),!1):this._responseHandler._queueObserver(t)},c.prototype.isBroken=function(){return!!this._fatalError},c.prototype.notifyFatalErrorToObserver=function(t){t&&t.onError&&t.onError(this._fatalError)},c.prototype.resetFailure=function(){this._responseHandler._resetFailure()},c.prototype._onLoginCompleted=function(t,e){var r;t&&(r=t.server,this._server.version||(this._server.version=r)),e&&e(t)},c.prototype._onLoginError=function(t,e){this._onProtocolError(t.message),e&&e(t)},c);function c(t,e,r,n,o,i){var s=void 0===r?{}:r,r=s.disableLosslessIntegers,s=s.useBigInt;void 0===n&&(n=function(){return null}),this._server=t||{},this._chunker=e,this._packer=this._createPacker(e),this._unpacker=this._createUnpacker(r,s),this._responseHandler=n(this),this._log=o,this._onProtocolError=i,this._fatalError=null}r.default=n},{"../packstream":43,"./bolt-protocol-util":1,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],3:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,u=i(t("./bolt-protocol-v1")),a=i(t("../packstream")),c=t("neo4j-driver-core").internal.constants.BOLT_PROTOCOL_V2,o=(s=u.default,o(l,s),l.prototype._createPacker=function(t){return new a.default.Packer(t)},l.prototype._createUnpacker=function(t,e){return new a.default.Unpacker(t,e)},Object.defineProperty(l.prototype,"version",{get:function(){return c},enumerable:!1,configurable:!0}),l);function l(){return null!==s&&s.apply(this,arguments)||this}r.default=o},{"../packstream":43,"./bolt-protocol-v1":2,"neo4j-driver-core":60}],4:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var u,a=s(t("./bolt-protocol-v2")),d=s(t("./request-message")),b=t("./bolt-protocol-util"),_=t("./stream-observers"),t=t("neo4j-driver-core"),c=(t.internal.bookmark.Bookmark,t.internal.constants.BOLT_PROTOCOL_V3),l=t.internal.txConfig.TxConfig,f="context",p=new _.StreamObserver,o=(u=a.default,o(h,u),Object.defineProperty(h.prototype,"version",{get:function(){return c},enumerable:!1,configurable:!0}),h.prototype.transformMetadata=function(t){return"t_first"in t&&(t.result_available_after=t.t_first,delete t.t_first),"t_last"in t&&(t.result_consumed_after=t.t_last,delete t.t_last),t},h.prototype.initialize=function(t){var e=this,r=void 0===t?{}:t,n=r.userAgent,t=r.authToken,o=r.onError,i=r.onComplete,r=new _.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return e._onLoginCompleted(t,i)}});return this.write(d.default.hello(n,t),r,!0),r},h.prototype.prepareToClose=function(){this.write(d.default.goodbye(),p,!0)},h.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,r=e.bookmark,n=e.txConfig,o=e.database,i=e.impersonatedUser,s=e.mode,u=e.beforeError,a=e.afterError,t=e.beforeComplete,e=e.afterComplete,e=new _.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:t,afterComplete:e});return e.prepareToHandleSingleResponse(),(0,b.assertDatabaseIsEmpty)(o,this._onProtocolError,e),(0,b.assertImpersonatedUserIsEmpty)(i,this._onProtocolError,e),this.write(d.default.begin({bookmark:r,txConfig:n,mode:s}),e,!0),e},h.prototype.commitTransaction=function(t){var e=void 0===t?{}:t,r=e.beforeError,n=e.afterError,t=e.beforeComplete,e=e.afterComplete,e=new _.ResultStreamObserver({server:this._server,beforeError:r,afterError:n,beforeComplete:t,afterComplete:e});return e.prepareToHandleSingleResponse(),this.write(d.default.commit(),e,!0),e},h.prototype.rollbackTransaction=function(t){var e=void 0===t?{}:t,r=e.beforeError,n=e.afterError,t=e.beforeComplete,e=e.afterComplete,e=new _.ResultStreamObserver({server:this._server,beforeError:r,afterError:n,beforeComplete:t,afterComplete:e});return e.prepareToHandleSingleResponse(),this.write(d.default.rollback(),e,!0),e},h.prototype.run=function(t,e,r){var n=void 0===r?{}:r,o=n.bookmark,i=n.txConfig,s=n.database,u=n.impersonatedUser,a=n.mode,c=n.beforeKeys,l=n.afterKeys,f=n.beforeError,p=n.afterError,h=n.beforeComplete,r=n.afterComplete,n=n.flush,n=void 0===n||n,r=new _.ResultStreamObserver({server:this._server,beforeKeys:c,afterKeys:l,beforeError:f,afterError:p,beforeComplete:h,afterComplete:r});return(0,b.assertDatabaseIsEmpty)(s,this._onProtocolError,r),(0,b.assertImpersonatedUserIsEmpty)(u,this._onProtocolError,r),this.write(d.default.runWithMetadata(t,e,{bookmark:o,txConfig:i,mode:a}),r,!1),this.write(d.default.pullAll(),r,n),r},h.prototype.requestRoutingInformation=function(t){var e=t.routingContext,r=t.sessionContext,n=void 0===r?{}:r,o=t.onError,r=t.onCompleted,n=this.run("CALL dbms.cluster.routing.getRoutingTable($context)",((t={})[f]=void 0===e?{}:e,t),i(i({},n),{txConfig:l.empty()}));return new _.ProcedureRouteObserver({resultObserver:n,onProtocolError:this._onProtocolError,onError:o,onCompleted:r})},h);function h(){return null!==u&&u.apply(this,arguments)||this}r.default=o},{"./bolt-protocol-util":1,"./bolt-protocol-v2":3,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],5:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var u,a=i(t("./bolt-protocol-v3")),_=i(t("./request-message")),y=t("./bolt-protocol-util"),v=t("./stream-observers"),i=t("neo4j-driver-core"),t=(i.internal.bookmark.Bookmark,i.internal.constants),c=t.BOLT_PROTOCOL_V4_0,m=t.FETCH_ALL,l=i.internal.txConfig.TxConfig,f="context",p="database",o=(u=a.default,o(h,u),Object.defineProperty(h.prototype,"version",{get:function(){return c},enumerable:!1,configurable:!0}),h.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,r=e.bookmark,n=e.txConfig,o=e.database,i=e.impersonatedUser,s=e.mode,u=e.beforeError,a=e.afterError,t=e.beforeComplete,e=e.afterComplete,e=new v.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:t,afterComplete:e});return e.prepareToHandleSingleResponse(),(0,y.assertImpersonatedUserIsEmpty)(i,this._onProtocolError,e),this.write(_.default.begin({bookmark:r,txConfig:n,database:o,mode:s}),e,!0),e},h.prototype.run=function(t,e,r){var n=void 0===r?{}:r,o=n.bookmark,i=n.txConfig,s=n.database,u=n.impersonatedUser,a=n.mode,c=n.beforeKeys,l=n.afterKeys,f=n.beforeError,p=n.afterError,h=n.beforeComplete,d=n.afterComplete,b=n.flush,r=void 0===b||b,b=n.reactive,b=void 0!==b&&b,n=n.fetchSize,n=void 0===n?m:n,d=new v.ResultStreamObserver({server:this._server,reactive:b,fetchSize:n,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:c,afterKeys:l,beforeError:f,afterError:p,beforeComplete:h,afterComplete:d});(0,y.assertImpersonatedUserIsEmpty)(u,this._onProtocolError,d);u=b;return this.write(_.default.runWithMetadata(t,e,{bookmark:o,txConfig:i,database:s,mode:a}),d,u&&r),b||this.write(_.default.pull({n:n}),d,r),d},h.prototype._requestMore=function(t,e,r){this.write(_.default.pull({stmtId:t,n:e}),r,!0)},h.prototype._requestDiscard=function(t,e){this.write(_.default.discard({stmtId:t}),e,!0)},h.prototype._noOp=function(){},h.prototype.requestRoutingInformation=function(t){var e=t.routingContext,r=t.databaseName,n=void 0===r?null:r,o=t.sessionContext,i=void 0===o?{}:o,r=t.onError,o=t.onCompleted,i=this.run("CALL dbms.routing.getRoutingTable($context, $database)",((t={})[f]=void 0===e?{}:e,t[p]=n,t),s(s({},i),{txConfig:l.empty()}));return new v.ProcedureRouteObserver({resultObserver:i,onProtocolError:this._onProtocolError,onError:r,onCompleted:o})},h);function h(){return null!==u&&u.apply(this,arguments)||this}r.default=o},{"./bolt-protocol-util":1,"./bolt-protocol-v3":4,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],6:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var u,s=i(t("./bolt-protocol-v4x0")),a=i(t("./request-message")),c=t("./stream-observers"),l=t("neo4j-driver-core").internal.constants.BOLT_PROTOCOL_V4_1,o=(u=s.default,o(f,u),Object.defineProperty(f.prototype,"version",{get:function(){return l},enumerable:!1,configurable:!0}),f.prototype.initialize=function(t){var e=this,r=void 0===t?{}:t,n=r.userAgent,t=r.authToken,o=r.onError,i=r.onComplete,r=new c.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return e._onLoginCompleted(t,i)}});return this.write(a.default.hello(n,t,this._serversideRouting),r,!0),r},f);function f(t,e,r,n,o,i,s){i=u.call(this,t,e,r,n=void 0===n?function(){return null}:n,o,i)||this;return i._serversideRouting=s,i}r.default=o},{"./bolt-protocol-v4x0":5,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],7:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,i=i(t("./bolt-protocol-v4x1")),u=t("neo4j-driver-core").internal.constants.BOLT_PROTOCOL_V4_2,o=(s=i.default,o(a,s),Object.defineProperty(a.prototype,"version",{get:function(){return u},enumerable:!1,configurable:!0}),a);function a(){return null!==s&&s.apply(this,arguments)||this}r.default=o},{"./bolt-protocol-v4x1":6,"neo4j-driver-core":60}],8:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,u=i(t("./bolt-protocol-v4x2")),a=i(t("./request-message")),c=t("./stream-observers"),l=t("./stream-observers"),t=t("neo4j-driver-core"),f=t.internal.bookmark.Bookmark,p=t.internal.constants.BOLT_PROTOCOL_V4_3,o=(s=u.default,o(h,s),Object.defineProperty(h.prototype,"version",{get:function(){return p},enumerable:!1,configurable:!0}),h.prototype.requestRoutingInformation=function(t){var e=t.routingContext,r=void 0===e?{}:e,n=t.databaseName,o=void 0===n?null:n,e=t.sessionContext,n=void 0===e?{}:e,e=t.onError,t=t.onCompleted,t=new c.RouteObserver({onProtocolError:this._onProtocolError,onError:e,onCompleted:t}),n=n.bookmark||f.empty();return this.write(a.default.route(r,n.values(),o),t,!0),t},h.prototype.initialize=function(t){var e=this,r=void 0===t?{}:t,n=r.userAgent,t=r.authToken,o=r.onError,i=r.onComplete,r=new l.LoginObserver({onError:function(t){return e._onLoginError(t,o)},onCompleted:function(t){return void 0!==t.patch_bolt&&e._applyPatches(t.patch_bolt),e._onLoginCompleted(t,i)}});return this.write(a.default.hello(n,t,this._serversideRouting,["utc"]),r,!0),r},h.prototype._applyPatches=function(t){t.includes("utc")&&this._applyUtcPatch()},h.prototype._applyUtcPatch=function(){this._packer.useUtc=!0,this._unpacker.useUtc=!0},h);function h(){return null!==s&&s.apply(this,arguments)||this}r.default=o},{"./bolt-protocol-v4x2":7,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],9:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,u=i(t("./bolt-protocol-v4x3")),a=t("neo4j-driver-core"),_=i(t("./request-message")),y=t("./stream-observers"),t=a.internal.constants,c=t.BOLT_PROTOCOL_V4_4,v=t.FETCH_ALL,l=a.internal.bookmark.Bookmark,o=(s=u.default,o(f,s),Object.defineProperty(f.prototype,"version",{get:function(){return c},enumerable:!1,configurable:!0}),f.prototype.requestRoutingInformation=function(t){var e=t.routingContext,r=void 0===e?{}:e,n=t.databaseName,o=void 0===n?null:n,i=t.impersonatedUser,e=void 0===i?null:i,n=t.sessionContext,i=void 0===n?{}:n,n=t.onError,t=t.onCompleted,t=new y.RouteObserver({onProtocolError:this._onProtocolError,onError:n,onCompleted:t}),i=i.bookmark||l.empty();return this.write(_.default.routeV4x4(r,i.values(),{databaseName:o,impersonatedUser:e}),t,!0),t},f.prototype.run=function(t,e,r){var n=void 0===r?{}:r,o=n.bookmark,i=n.txConfig,s=n.database,u=n.mode,a=n.impersonatedUser,c=n.beforeKeys,l=n.afterKeys,f=n.beforeError,p=n.afterError,h=n.beforeComplete,d=n.afterComplete,b=n.flush,r=void 0===b||b,b=n.reactive,b=void 0!==b&&b,n=n.fetchSize,n=void 0===n?v:n,h=new y.ResultStreamObserver({server:this._server,reactive:b,fetchSize:n,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:c,afterKeys:l,beforeError:f,afterError:p,beforeComplete:h,afterComplete:d}),d=b;return this.write(_.default.runWithMetadata(t,e,{bookmark:o,txConfig:i,database:s,mode:u,impersonatedUser:a}),h,d&&r),b||this.write(_.default.pull({n:n}),h,r),h},f.prototype.beginTransaction=function(t){var e=void 0===t?{}:t,r=e.bookmark,n=e.txConfig,o=e.database,i=e.mode,s=e.impersonatedUser,u=e.beforeError,a=e.afterError,t=e.beforeComplete,e=e.afterComplete,e=new y.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:t,afterComplete:e});return e.prepareToHandleSingleResponse(),this.write(_.default.begin({bookmark:r,txConfig:n,database:o,mode:i,impersonatedUser:s}),e,!0),e},f);function f(){return null!==s&&s.apply(this,arguments)||this}r.default=o},{"./bolt-protocol-v4x3":8,"./request-message":13,"./stream-observers":16,"neo4j-driver-core":60}],10:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var f=t("neo4j-driver-core"),p=n(t("./bolt-protocol-v1")),h=n(t("./bolt-protocol-v2")),d=n(t("./bolt-protocol-v3")),b=n(t("./bolt-protocol-v4x0")),_=n(t("./bolt-protocol-v4x1")),y=n(t("./bolt-protocol-v4x2")),v=n(t("./bolt-protocol-v4x3")),m=n(t("./bolt-protocol-v4x4")),g=n(t("./response-handler"));r.default=function(t){var e=void 0===t?{}:t,r=e.version,n=e.chunker,o=e.dechunker,i=e.channel,s=e.disableLosslessIntegers,u=e.useBigInt,a=e.serversideRouting,t=e.server,c=e.log,l=e.observer;return function(t,e,r,n,o,i,s,u){switch(t){case 1:return new p.default(e,r,n,i,u,s);case 2:return new h.default(e,r,n,i,u,s);case 3:return new d.default(e,r,n,i,u,s);case 4:return new b.default(e,r,n,i,u,s);case 4.1:return new _.default(e,r,n,i,u,s,o);case 4.2:return new y.default(e,r,n,i,u,s,o);case 4.3:return new v.default(e,r,n,i,u,s,o);case 4.4:return new m.default(e,r,n,i,u,s,o);default:throw(0,f.newError)("Unknown Bolt protocol version: "+t)}}(r,t,n,{disableLosslessIntegers:s,useBigInt:u},a,function(e){var r=new g.default({transformMetadata:e.transformMetadata.bind(e),log:c,observer:l});return i.onerror=l.onError.bind(l),i.onmessage=function(t){return o.write(t)},o.onmessage=function(t){try{r.handleResponse(e.unpacker().unpack(t))}catch(t){return l.onError(t)}},r},l.onProtocolError.bind(l),c)}},{"./bolt-protocol-v1":2,"./bolt-protocol-v2":3,"./bolt-protocol-v3":4,"./bolt-protocol-v4x0":5,"./bolt-protocol-v4x1":6,"./bolt-protocol-v4x2":7,"./bolt-protocol-v4x3":8,"./bolt-protocol-v4x4":9,"./response-handler":14,"neo4j-driver-core":60}],11:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../channel"),i=t("neo4j-driver-core"),s=1616949271;function o(t,e){return{major:t,minor:e}}function u(){return function(t){if(4<t.length)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var o=(0,n.alloc)(20);return o.writeInt32(s),t.forEach(function(t){var e,r,n;t instanceof Array?(r=(e=t[0]).major,n=e.minor,e=t[1].minor,o.writeInt32(n-e<<16|n<<8|r)):(r=t.major,n=t.minor,o.writeInt32(n<<8|r))}),o.reset(),o}([[o(4,4),o(4,2)],o(4,1),o(4,0),o(3,0)])}r.default=function(e){var o=this;return new Promise(function(r,n){function t(t){n(t)}e.onerror=t.bind(o),e._error&&t(e._error),e.onmessage=function(e){try{var t=function(t){if(72===(t=[t.readUInt8(),t.readUInt8(),t.readUInt8(),t.readUInt8()])[0]&&84===t[1]&&84===t[2]&&80===t[3])throw(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return Number(t[3]+"."+t[2])}(e);r({protocolVersion:t,consumeRemainingBuffer:function(t){e.hasRemaining()&&t(e.readSlice(e.remaining()))}})}catch(t){n(t)}},e.write(u())})}},{"../channel":26,"neo4j-driver-core":60}],12:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.RawRoutingTable=r.BoltProtocol=void 0;var s=i(t("./handshake")),u=i(t("./create")),a=i(t("./bolt-protocol-v4x3")),i=i(t("./routing-table-raw"));o(t("./stream-observers"),r),r.BoltProtocol=a.default,r.RawRoutingTable=i.default,r.default={handshake:s.default,create:u.default}},{"./bolt-protocol-v4x3":8,"./create":10,"./handshake":11,"./routing-table-raw":15,"./stream-observers":16}],13:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("neo4j-driver-core"),t=o.internal.constants,s=t.ACCESS_MODE_READ,n=t.FETCH_ALL,u=o.internal.util.assertString,t=(i.init=function(t,e){return new i(1,[t,e],function(){return"INIT "+t+" {...}"})},i.run=function(t,e){return new i(16,[t,e],function(){return"RUN "+t+" "+o.json.stringify(e)})},i.pullAll=function(){return l},i.reset=function(){return f},i.hello=function(t,e,r,n){void 0===r&&(r=null),void 0===n&&(n=null);e=Object.assign({user_agent:t},e);return r&&(e.routing=r),n&&(e.patch_bolt=n),new i(1,[e],function(){return"HELLO {user_agent: '"+t+"', ...}"})},i.begin=function(t){var t=void 0===t?{}:t,e=a(t.bookmark,t.txConfig,t.database,t.mode,t.impersonatedUser);return new i(17,[e],function(){return"BEGIN "+o.json.stringify(e)})},i.commit=function(){return p},i.rollback=function(){return h},i.runWithMetadata=function(t,e,r){var r=void 0===r?{}:r,n=a(r.bookmark,r.txConfig,r.database,r.mode,r.impersonatedUser);return new i(16,[t,e,n],function(){return"RUN "+t+" "+o.json.stringify(e)+" "+o.json.stringify(n)})},i.goodbye=function(){return d},i.pull=function(t){var e=void 0===t?{}:t,t=e.stmtId,t=void 0===t?-1:t,e=e.n,r=c(null==t?-1:t,(void 0===e?n:e)||n);return new i(63,[r],function(){return"PULL "+o.json.stringify(r)})},i.discard=function(t){var e=void 0===t?{}:t,t=e.stmtId,t=void 0===t?-1:t,e=e.n,r=c(null==t?-1:t,(void 0===e?n:e)||n);return new i(47,[r],function(){return"DISCARD "+o.json.stringify(r)})},i.route=function(t,e,r){return new i(102,[t=void 0===t?{}:t,e=void 0===e?[]:e,r=void 0===r?null:r],function(){return"ROUTE "+o.json.stringify(t)+" "+o.json.stringify(e)+" "+r})},i.routeV4x4=function(t,e,r){void 0===t&&(t={}),void 0===e&&(e=[]);var n={};return(r=void 0===r?{}:r).databaseName&&(n.db=r.databaseName),r.impersonatedUser&&(n.imp_user=r.impersonatedUser),new i(102,[t,e,n],function(){return"ROUTE "+o.json.stringify(t)+" "+o.json.stringify(e)+" "+o.json.stringify(n)})},i);function i(t,e,r){this.signature=t,this.fields=e,this.toString=r}function a(t,e,r,n,o){var i={};return t.isEmpty()||(i.bookmarks=t.values()),e.timeout&&(i.tx_timeout=e.timeout),e.metadata&&(i.tx_metadata=e.metadata),r&&(i.db=u(r,"database")),o&&(i.imp_user=u(o,"impersonatedUser")),n===s&&(i.mode="r"),i}function c(t,e){e={n:(0,o.int)(e)};return-1!==t&&(e.qid=(0,o.int)(t)),e}var l=new(r.default=t)(63,[],function(){return"PULL_ALL"}),f=new t(15,[],function(){return"RESET"}),p=new t(18,[],function(){return"COMMIT"}),h=new t(19,[],function(){return"ROLLBACK"}),d=new t(2,[],function(){return"GOODBYE"})},{"neo4j-driver-core":60}],14:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("neo4j-driver-core");function n(){}function i(t){return t}var s={onNext:n,onCompleted:n,onError:n},t=(Object.defineProperty(u.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),u.prototype.handleResponse=function(t){var e=t.fields[0];switch(t.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD "+o.json.stringify(t)),this._currentObserver.onNext(e);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS "+o.json.stringify(t));try{var r=this._transformMetadata(e);this._currentObserver.onCompleted(r)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE "+o.json.stringify(t));try{var n=(0,o.newError)(e.message,e.code);this._currentFailure=this._observer.onErrorApplyTransformation(n),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED "+o.json.stringify(t));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,o.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,o.newError)("Unknown Bolt protocol message: "+t))}},u.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onPendingObserversChange(this._pendingObservers.length)},u.prototype._queueObserver=function(t){return(t=t||s).onCompleted=t.onCompleted||n,t.onError=t.onError||n,t.onNext=t.onNext||n,void 0===this._currentObserver?this._currentObserver=t:this._pendingObservers.push(t),this._observer.onPendingObserversChange(this._pendingObservers.length),!0},u.prototype._notifyErrorToObservers=function(t){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(t);0<this._pendingObservers.length;){var e=this._pendingObservers.shift();e&&e.onError&&e.onError(t)}},u.prototype.hasOngoingObservableRequests=function(){return null!=this._currentObserver||0<this._pendingObservers.length},u.prototype._resetFailure=function(){this._currentFailure=null},u);function u(t){var e=void 0===t?{}:t,r=e.transformMetadata,t=e.log,e=e.observer;this._pendingObservers=[],this._log=t,this._transformMetadata=r||i,this._observer=Object.assign({onPendingObserversChange:n,onError:n,onFailure:n,onErrorApplyTransformation:i},e)}r.default=t},{"neo4j-driver-core":60}],15:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0});var i=(s.ofRecord=function(t){return null===t?s.ofNull():new d(t)},s.ofMessageResponse=function(t){return null===t?s.ofNull():new a(t)},s.ofNull=function(){return new f},Object.defineProperty(s.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),s);function s(){}r.default=i;var u,a=(o(c,u=i),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return null===this._response},enumerable:!1,configurable:!0}),c);function c(t){var e=u.call(this)||this;return e._response=t,e}var l,f=(o(p,l=i),Object.defineProperty(p.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0}),p);function p(){return null!==l&&l.apply(this,arguments)||this}var h,d=(o(b,h=i),Object.defineProperty(b.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isNull",{get:function(){return null===this._record},enumerable:!1,configurable:!0}),b);function b(t){var e=h.call(this)||this;return e._record=t,e}},{}],16:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProcedureRouteObserver=r.RouteObserver=r.CompletedObserver=r.FailedObserver=r.ResetObserver=r.LoginObserver=r.ResultStreamObserver=r.StreamObserver=void 0;var s=t("neo4j-driver-core"),u=i(t("./routing-table-raw")),p=s.internal.constants.FETCH_ALL,a=s.error.PROTOCOL_ERROR,c=(l.prototype.onNext=function(t){},l.prototype.onError=function(t){},l.prototype.onCompleted=function(t){},l);function l(){}r.StreamObserver=c;var h,i=(o(f,h=c),f.prototype.onNext=function(t){var e=new s.Record(this._fieldKeys,t,this._fieldLookup);this._observers.some(function(t){return t.onNext})?this._observers.forEach(function(t){t.onNext&&t.onNext(e)}):(this._queuedRecords.push(e),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},f.prototype.onCompleted=function(t){this._state.onSuccess(this,t)},f.prototype.onError=function(t){this._state.onError(this,t)},f.prototype.cancel=function(){this._discard=!0},f.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(j.STREAMING)},f.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(j.SUCCEEDED)},f.prototype.subscribe=function(t){if(this._error)t.onError(this._error);else{if(this._head&&t.onKeys&&t.onKeys(this._head),0<this._queuedRecords.length&&t.onNext)for(var e=0;e<this._queuedRecords.length;e++)t.onNext(this._queuedRecords[e]),this._queuedRecords.length-e-1<=this._lowRecordWatermark&&(this._autoPull=!0,this._state===j.READY&&this._handleStreaming());this._tail&&t.onCompleted&&t.onCompleted(this._tail),this._observers.push(t),this._state===j.READY&&this._handleStreaming()}},f.prototype._handleHasMore=function(t){this._setState(j.READY),this._handleStreaming(),delete t.has_more},f.prototype._handlePullSuccess=function(t){var e=this;this._setState(j.SUCCEEDED);var r=Object.assign(this._server?{server:this._server}:{},this._meta,t),n=null;this._beforeComplete&&(n=this._beforeComplete(r));t=function(){e._tail=r,e._observers.some(function(t){return t.onCompleted})&&e._observers.forEach(function(t){t.onCompleted&&t.onCompleted(r)}),e._afterComplete&&e._afterComplete(r)};n?Promise.resolve(n).then(t):t()},f.prototype._handleRunSuccess=function(t,e){var r=this;if(null===this._fieldKeys){if(this._fieldKeys=[],this._fieldLookup={},t.fields&&0<t.fields.length){this._fieldKeys=t.fields;for(var n=0;n<t.fields.length;n++)this._fieldLookup[t.fields[n]]=n;delete t.fields}null!==t.qid&&void 0!==t.qid&&(this._queryId=t.qid,delete t.qid),this._storeMetadataForCompletion(t);var o=null;this._beforeKeys&&(o=this._beforeKeys(this._fieldKeys));var i=function(){r._head=r._fieldKeys,r._observers.some(function(t){return t.onKeys})&&r._observers.forEach(function(t){t.onKeys&&t.onKeys(r._fieldKeys)}),r._afterKeys&&r._afterKeys(r._fieldKeys),e()};o?Promise.resolve(o).then(i):i()}},f.prototype._handleError=function(e){var t=this;this._setState(j.FAILED),this._error=e;var r=null;this._beforeError&&(r=this._beforeError(e));function n(){t._observers.some(function(t){return t.onError})&&t._observers.forEach(function(t){t.onError&&t.onError(e)}),t._afterError&&t._afterError(e)}r?Promise.resolve(r).then(n):n()},f.prototype._handleStreaming=function(){this._head&&this._observers.some(function(t){return t.onNext||t.onCompleted})&&(this._discard?(this._discardFunction(this._queryId,this),this._setState(j.STREAMING)):this._autoPull&&(this._moreFunction(this._queryId,this._fetchSize,this),this._setState(j.STREAMING)))},f.prototype._storeMetadataForCompletion=function(t){for(var e,r=Object.keys(t),n=r.length;n--;)e=r[n],this._meta[e]=t[e]},f.prototype._setState=function(t){this._state=t},f.prototype._setupAuoPull=function(t){this._autoPull=!0,t===p?(this._lowRecordWatermark=Number.MAX_VALUE,this._highRecordWatermark=Number.MAX_VALUE):(this._lowRecordWatermark=.3*t,this._highRecordWatermark=.7*t)},f);function f(t){var e=void 0===t?{}:t,r=e.reactive,n=void 0!==r&&r,o=e.moreFunction,i=e.discardFunction,s=e.fetchSize,u=void 0===s?p:s,a=e.beforeError,c=e.afterError,l=e.beforeKeys,f=e.afterKeys,t=e.beforeComplete,r=e.afterComplete,s=e.server,e=h.call(this)||this;return e._fieldKeys=null,e._fieldLookup=null,e._head=null,e._queuedRecords=[],e._tail=null,e._error=null,e._observers=[],e._meta={},e._server=s,e._beforeError=a,e._afterError=c,e._beforeKeys=l,e._afterKeys=f,e._beforeComplete=t,e._afterComplete=r,e._queryId=null,e._moreFunction=o,e._discardFunction=i,e._discard=!1,e._fetchSize=u,e._setState(n?j.READY:j.READY_STREAMING),e._setupAuoPull(u),e}r.ResultStreamObserver=i;var d,t=(o(b,d=c),b.prototype.onNext=function(t){this.onError((0,s.newError)("Received RECORD when initializing "+s.json.stringify(t)))},b.prototype.onError=function(t){this._onError&&this._onError(t)},b.prototype.onCompleted=function(t){this._onCompleted&&this._onCompleted(t)},b);function b(t){var e=void 0===t?{}:t,r=e.onError,t=e.onCompleted,e=d.call(this)||this;return e._onError=r,e._onCompleted=t,e}r.LoginObserver=t;var _,t=(o(y,_=c),y.prototype.onNext=function(t){this.onError((0,s.newError)("Received RECORD when resetting: received record is: "+s.json.stringify(t),a))},y.prototype.onError=function(t){t.code===a&&this._onProtocolError&&this._onProtocolError(t.message),this._onError&&this._onError(t)},y.prototype.onCompleted=function(t){this._onComplete&&this._onComplete(t)},y);function y(t){var e=void 0===t?{}:t,r=e.onProtocolError,n=e.onError,t=e.onComplete,e=_.call(this)||this;return e._onProtocolError=r,e._onError=n,e._onComplete=t,e}r.ResetObserver=t;var v,t=(o(m,v=i),m);function m(t){var e=t.error,t=t.onError,t=v.call(this,{beforeError:t})||this;return t.onError(e),t}r.FailedObserver=t;var g,i=(o(O,g=i),O);function O(){var t=g.call(this)||this;return g.prototype.markCompleted.call(t),t}r.CompletedObserver=i;var w,i=(o(S,w=c),S.prototype.onNext=function(t){this._records.push(t)},S.prototype.onError=function(t){t.code===a&&this._onProtocolError&&this._onProtocolError(t.message),this._onError&&this._onError(t)},S.prototype.onCompleted=function(){null===this._records||1===this._records.length?this._onCompleted&&this._onCompleted(u.default.ofRecord(this._records[0])):this.onError((0,s.newError)("Illegal response from router. Received "+this._records.length+" records but expected only one.\n"+s.json.stringify(this._records),a))},S);function S(t){var e=t.resultObserver,r=t.onProtocolError,n=t.onError,o=t.onCompleted,t=w.call(this)||this;return t._resultObserver=e,t._onError=n,t._onCompleted=o,t._records=[],t._onProtocolError=r,e.subscribe(t),t}r.ProcedureRouteObserver=i;var E,c=(o(P,E=c),P.prototype.onNext=function(t){this.onError((0,s.newError)("Received RECORD when resetting: received record is: "+s.json.stringify(t),a))},P.prototype.onError=function(t){t.code===a&&this._onProtocolError&&this._onProtocolError(t.message),this._onError&&this._onError(t)},P.prototype.onCompleted=function(t){this._onCompleted&&this._onCompleted(u.default.ofMessageResponse(t))},P);function P(t){var e=void 0===t?{}:t,r=e.onProtocolError,n=e.onError,t=e.onCompleted,e=E.call(this)||this;return e._onProtocolError=r,e._onError=n,e._onCompleted=t,e}r.RouteObserver=c;var j={READY_STREAMING:{onSuccess:function(t,e){t._handleRunSuccess(e,function(){t._setState(j.STREAMING)})},onError:function(t,e){t._handleError(e)},name:function(){return"READY_STREAMING"}},READY:{onSuccess:function(t,e){t._handleRunSuccess(e,function(){return t._handleStreaming()})},onError:function(t,e){t._handleError(e)},name:function(){return"READY"}},STREAMING:{onSuccess:function(t,e){e.has_more?t._handleHasMore(e):t._handlePullSuccess(e)},onError:function(t,e){t._handleError(e)},name:function(){return"STREAMING"}},FAILED:{onError:function(t){},name:function(){return"FAILED"}},SUCCEEDED:{name:function(){return"SUCCEEDED"}}}},{"./routing-table-raw":15,"neo4j-driver-core":60}],17:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0});var i=(s.prototype.getUInt8=function(t){throw new Error("Not implemented")},s.prototype.getInt8=function(t){throw new Error("Not implemented")},s.prototype.getFloat64=function(t){throw new Error("Not implemented")},s.prototype.putUInt8=function(t,e){throw new Error("Not implemented")},s.prototype.putInt8=function(t,e){throw new Error("Not implemented")},s.prototype.putFloat64=function(t,e){throw new Error("Not implemented")},s.prototype.getInt16=function(t){return this.getInt8(t)<<8|this.getUInt8(t+1)},s.prototype.getUInt16=function(t){return this.getUInt8(t)<<8|this.getUInt8(t+1)},s.prototype.getInt32=function(t){return this.getInt8(t)<<24|this.getUInt8(t+1)<<16|this.getUInt8(t+2)<<8|this.getUInt8(t+3)},s.prototype.getUInt32=function(t){return this.getUInt8(t)<<24|this.getUInt8(t+1)<<16|this.getUInt8(t+2)<<8|this.getUInt8(t+3)},s.prototype.getInt64=function(t){return this.getInt8(t)<<56|this.getUInt8(t+1)<<48|this.getUInt8(t+2)<<40|this.getUInt8(t+3)<<32|this.getUInt8(t+4)<<24|this.getUInt8(t+5)<<16|this.getUInt8(t+6)<<8|this.getUInt8(t+7)},s.prototype.getSlice=function(t,e){return new a(t,e,this)},s.prototype.putInt16=function(t,e){this.putInt8(t,e>>8),this.putUInt8(t+1,255&e)},s.prototype.putUInt16=function(t,e){this.putUInt8(t,e>>8&255),this.putUInt8(t+1,255&e)},s.prototype.putInt32=function(t,e){this.putInt8(t,e>>24),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},s.prototype.putUInt32=function(t,e){this.putUInt8(t,e>>24&255),this.putUInt8(t+1,e>>16&255),this.putUInt8(t+2,e>>8&255),this.putUInt8(t+3,255&e)},s.prototype.putInt64=function(t,e){this.putInt8(t,e>>48),this.putUInt8(t+1,e>>42&255),this.putUInt8(t+2,e>>36&255),this.putUInt8(t+3,e>>30&255),this.putUInt8(t+4,e>>24&255),this.putUInt8(t+5,e>>16&255),this.putUInt8(t+6,e>>8&255),this.putUInt8(t+7,255&e)},s.prototype.putBytes=function(t,e){for(var r=0,n=e.remaining();r<n;r++)this.putUInt8(t+r,e.readUInt8())},s.prototype.readUInt8=function(){return this.getUInt8(this._updatePos(1))},s.prototype.readInt8=function(){return this.getInt8(this._updatePos(1))},s.prototype.readUInt16=function(){return this.getUInt16(this._updatePos(2))},s.prototype.readUInt32=function(){return this.getUInt32(this._updatePos(4))},s.prototype.readInt16=function(){return this.getInt16(this._updatePos(2))},s.prototype.readInt32=function(){return this.getInt32(this._updatePos(4))},s.prototype.readInt64=function(){return this.getInt32(this._updatePos(8))},s.prototype.readFloat64=function(){return this.getFloat64(this._updatePos(8))},s.prototype.writeUInt8=function(t){this.putUInt8(this._updatePos(1),t)},s.prototype.writeInt8=function(t){this.putInt8(this._updatePos(1),t)},s.prototype.writeInt16=function(t){this.putInt16(this._updatePos(2),t)},s.prototype.writeInt32=function(t){this.putInt32(this._updatePos(4),t)},s.prototype.writeUInt32=function(t){this.putUInt32(this._updatePos(4),t)},s.prototype.writeInt64=function(t){this.putInt64(this._updatePos(8),t)},s.prototype.writeFloat64=function(t){this.putFloat64(this._updatePos(8),t)},s.prototype.writeBytes=function(t){this.putBytes(this._updatePos(t.remaining()),t)},s.prototype.readSlice=function(t){return this.getSlice(this._updatePos(t),t)},s.prototype._updatePos=function(t){var e=this.position;return this.position+=t,e},s.prototype.remaining=function(){return this.length-this.position},s.prototype.hasRemaining=function(){return 0<this.remaining()},s.prototype.reset=function(){this.position=0},s.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()},s.prototype.toHex=function(){for(var t="",e=0;e<this.length;e++){var r=this.getUInt8(e).toString(16);t+=r=1===r.length?"0"+r:r,e!==this.length-1&&(t+=" ")}return t},s);function s(t){this.position=0,this.length=t}r.default=i;var u,a=(o(c,u=i),c.prototype.putUInt8=function(t,e){this._inner.putUInt8(this._start+t,e)},c.prototype.getUInt8=function(t){return this._inner.getUInt8(this._start+t)},c.prototype.putInt8=function(t,e){this._inner.putInt8(this._start+t,e)},c.prototype.putFloat64=function(t,e){this._inner.putFloat64(this._start+t,e)},c.prototype.getInt8=function(t){return this._inner.getInt8(this._start+t)},c.prototype.getFloat64=function(t){return this._inner.getFloat64(this._start+t)},c);function c(t,e,r){e=u.call(this,e)||this;return e._start=t,e._inner=r,e}},{}],18:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseBuffer=void 0;t=n(t("./base-buf"));r.BaseBuffer=t.default,r.default=t.default},{"./base-buf":17}],19:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var i=n(t("../channel-buf")),s=t("neo4j-driver-core"),t=s.internal.util,u=t.ENCRYPTION_OFF,a=t.ENCRYPTION_ON,t=(o.prototype._handleConnectionError=function(){if(this._connectionTimeoutFired)return this._error=(0,s.newError)("Failed to establish connection in "+this._config.connectionTimeout+"ms",this._config.connectionErrorCode),void(this.onerror&&this.onerror(this._error));this._open&&(this._error=(0,s.newError)("WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: "+this._ws.readyState,this._config.connectionErrorCode),this.onerror&&this.onerror(this._error))},o.prototype.write=function(t){if(null!==this._pending)this._pending.push(t);else{if(!(t instanceof i.default))throw(0,s.newError)("Don't know how to send buffer: "+t);try{this._ws.send(t._buffer)}catch(t){if(1===this._ws.readyState)throw t;this._handleConnectionError()}}},o.prototype.close=function(){var r=this;return new Promise(function(t,e){r._ws&&3!==r._ws.readyState?(r._open=!1,r._clearConnectionTimeout(),r._ws.onclose=function(){return t()},r._ws.close()):t()})},o.prototype.setupReceiveTimeout=function(t){},o.prototype.stopReceiveTimeout=function(){},o.prototype.startReceiveTimeout=function(){},o.prototype._setupConnectionTimeout=function(){var t=this,e=this._config.connectionTimeout;if(e){var r=this._ws;return setTimeout(function(){1!==r.readyState&&(t._connectionTimeoutFired=!0,r.close())},e)}return null},o.prototype._clearConnectionTimeout=function(){var t=this._connectionTimeoutId;!t&&0!==t||(this._connectionTimeoutFired=!1,this._connectionTimeoutId=null,clearTimeout(t))},o);function o(t,e,r){void 0===e&&(e=c),void 0===r&&(r=function(t){return new WebSocket(t)}),this._open=!0,this._pending=[],this._error=null,this._handleConnectionError=this._handleConnectionError.bind(this);var n,o=function(t,e){var r=function(t){return!0===t.encrypted||t.encrypted===a}(t),n=function(t){return!1===t.encrypted||t.encrypted===u}(t),t=t.trust,e=function(t){t="function"==typeof t?t():"";return t&&0<=t.toLowerCase().indexOf("https")}(e);if(function(t,e,r){null===r||(t&&!r?console.warn("Neo4j driver is configured to use secure WebSocket on a HTTP web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to not use encryption."):e&&r&&console.warn("Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to use encryption."))}(r,n,e),n)return{scheme:"ws",error:null};if(e)return{scheme:"wss",error:null};if(r)return t&&"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"!==t?{scheme:null,error:(0,s.newError)("The browser version of this driver only supports one trust strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. "+t+' is not supported. Please either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting `encrypted:"'+u+'"` in the driver configuration.')}:{scheme:"wss",error:null};return{scheme:"ws",error:null}}(this._config=t,e),e=o.scheme,o=o.error;o?this._error=o:(this._ws=function(e,r,n){var t=e+"://"+r.asHostPort();try{return n(t)}catch(t){if(function(t,e){return"SyntaxError"===t.name&&function(t){return"["===t.charAt(0)&&-1!==t.indexOf("]")}(e.asHostPort())}(t,r)){r=function(t,e){var r=e.host().replace(new RegExp(":","g"),"-").replace("%","s");return t+"://"+r+".ipv6-literal.net:"+e.port()}(e,r);return n(r)}throw t}}(e,t.address,r),this._ws.binaryType="arraybuffer",(n=this)._ws.onclose=function(t){t&&!t.wasClean&&n._handleConnectionError(),n._open=!1},this._ws.onopen=function(){n._clearConnectionTimeout();var t=n._pending;n._pending=null;for(var e=0;e<t.length;e++)n.write(t[e])},this._ws.onmessage=function(t){n.onmessage&&(t=new i.default(t.data),n.onmessage(t))},this._ws.onerror=this._handleConnectionError,this._connectionTimeoutFired=!1,this._connectionTimeoutId=this._setupConnectionTimeout())}function c(){return"undefined"!=typeof window&&window.location?window.location.protocol:null}r.default=t},{"../channel-buf":22,"neo4j-driver-core":60}],20:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("neo4j-driver-core").internal.resolver.BaseHostNameResolver,t=(o(s,i=t),s.prototype.resolve=function(t){return this._resolveToItself(t)},s);function s(){return null!==i&&i.apply(this,arguments)||this}r.default=t},{"neo4j-driver-core":60}],21:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.HostNameResolver=r.Channel=void 0;var o=n(t("./browser-channel")),t=n(t("./browser-host-name-resolver"));r.Channel=o.default,r.HostNameResolver=t.default},{"./browser-channel":19,"./browser-host-name-resolver":20}],22:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.alloc=void 0;var s,u=i(t("buffer")),t=i(t("../buf")),a=(s=t.default,o(c,s),c.prototype.getUInt8=function(t){return this._buffer.readUInt8(t)},c.prototype.getInt8=function(t){return this._buffer.readInt8(t)},c.prototype.getFloat64=function(t){return this._buffer.readDoubleBE(t)},c.prototype.putUInt8=function(t,e){this._buffer.writeUInt8(e,t)},c.prototype.putInt8=function(t,e){this._buffer.writeInt8(e,t)},c.prototype.putFloat64=function(t,e){this._buffer.writeDoubleBE(e,t)},c.prototype.putBytes=function(t,e){var r;e instanceof c?(r=Math.min(e.length-e.position,this.length-t),e._buffer.copy(this._buffer,t,e.position,e.position+r),e.position+=r):s.prototype.putBytes.call(this,t,e)},c.prototype.getSlice=function(t,e){return new c(this._buffer.slice(t,t+e))},c);function c(t){var e=this,t=(t=t)instanceof u.default.Buffer?t:"number"==typeof t&&"function"==typeof u.default.Buffer.alloc?u.default.Buffer.alloc(t):new u.default.Buffer(t);return(e=s.call(this,t.length)||this)._buffer=t,e}r.default=a,r.alloc=function(t){return new a(t)}},{"../buf":18,buffer:99}],23:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("neo4j-driver-core"),o=n.internal.util,t=o.ENCRYPTION_OFF,o=o.ENCRYPTION_ON,i=n.error.SERVICE_UNAVAILABLE,s=3e4,u=[null,void 0,!0,!1,o,t],a=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];r.default=function(t,e,r){this.address=t,this.encrypted=function(t){t=t.encrypted;if(-1!==u.indexOf(t))return t;throw(0,n.newError)("Illegal value of the encrypted setting "+t+". Expected one of "+u)}(e),this.trust=function(t){t=t.trust;if(-1!==a.indexOf(t))return t;throw(0,n.newError)("Illegal value of the trust setting "+t+". Expected one of "+a)}(e),this.trustedCertificates=e.trustedCertificates||[],this.knownHostsPath=e.knownHosts||null,this.connectionErrorCode=r||i,this.connectionTimeout=function(t){t=parseInt(t.connectionTimeout,10);return 0===t||t&&t<0?null:t||s}(e)}},{"neo4j-driver-core":60}],24:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.Dechunker=r.Chunker=void 0;var s,u=i(t("../buf/base-buf")),a=t("./channel-buf"),c=i(t("./combined-buf")),o=(s=u.default,o(l,s),l.prototype.putUInt8=function(t,e){this._ensure(1),this._buffer.writeUInt8(e)},l.prototype.putInt8=function(t,e){this._ensure(1),this._buffer.writeInt8(e)},l.prototype.putFloat64=function(t,e){this._ensure(8),this._buffer.writeFloat64(e)},l.prototype.putBytes=function(t,e){for(;0<e.remaining();)this._ensure(1),this._buffer.remaining()>e.remaining()?this._buffer.writeBytes(e):this._buffer.writeBytes(e.readSlice(this._buffer.remaining()));return this},l.prototype.flush=function(){var t;return 0<this._buffer.position&&(this._closeChunkIfOpen(),t=this._buffer,this._buffer=null,this._ch.write(t.getSlice(0,t.position)),this._buffer=(0,a.alloc)(this._bufferSize),this._chunkOpen=!1),this},l.prototype.messageBoundary=function(){this._closeChunkIfOpen(),this._buffer.remaining()<2&&this.flush(),this._buffer.writeInt16(0)},l.prototype._ensure=function(t){t=this._chunkOpen?t:t+2;this._buffer.remaining()<t&&this.flush(),this._chunkOpen||(this._currentChunkStart=this._buffer.position,this._buffer.position=this._buffer.position+2,this._chunkOpen=!0)},l.prototype._closeChunkIfOpen=function(){var t;this._chunkOpen&&(t=this._buffer.position-(this._currentChunkStart+2),this._buffer.putUInt16(this._currentChunkStart,t),this._chunkOpen=!1)},l);function l(t,e){var r=s.call(this,0)||this;return r._bufferSize=e||1400,r._ch=t,r._buffer=(0,a.alloc)(r._bufferSize),r._currentChunkStart=0,r._chunkOpen=!1,r}r.Chunker=o;f.prototype.AWAITING_CHUNK=function(t){return 2<=t.remaining()?this._onHeader(t.readUInt16()):(this._partialChunkHeader=t.readUInt8()<<8,this.IN_HEADER)},f.prototype.IN_HEADER=function(t){return this._onHeader(65535&(this._partialChunkHeader|t.readUInt8()))},f.prototype.IN_CHUNK=function(t){return this._chunkSize<=t.remaining()?(this._currentMessage.push(t.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=t.remaining(),this._currentMessage.push(t.readSlice(t.remaining())),this.IN_CHUNK)},f.prototype.CLOSED=function(t){},f.prototype._onHeader=function(t){if(0!==t)return this._chunkSize=t,this.IN_CHUNK;var e=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:e=this._currentMessage[0];break;default:e=new c.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(e),this.AWAITING_CHUNK},f.prototype.write=function(t){for(;t.hasRemaining();)this._state=this._state(t)},o=f;function f(){this._currentMessage=[],this._partialChunkHeader=0,this._state=this.AWAITING_CHUNK}r.Dechunker=o},{"../buf/base-buf":17,"./channel-buf":22,"./combined-buf":25}],25:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("../buf"),u=t("./channel-buf"),o=(i=s.BaseBuffer,o(a,i),a.prototype.getUInt8=function(t){for(var e=0;e<this._buffers.length;e++){var r=this._buffers[e];if(!(t>=r.length))return r.getUInt8(t);t-=r.length}},a.prototype.getInt8=function(t){for(var e=0;e<this._buffers.length;e++){var r=this._buffers[e];if(!(t>=r.length))return r.getInt8(t);t-=r.length}},a.prototype.getFloat64=function(t){for(var e=(0,u.alloc)(8),r=0;r<8;r++)e.putUInt8(r,this.getUInt8(t+r));return e.getFloat64(0)},a);function a(t){for(var e=this,r=0,n=0;n<t.length;n++)r+=t[n].length;return(e=i.call(this,r)||this)._buffers=t,e}r.default=o},{"../buf":18,"./channel-buf":22}],26:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.utf8=r.alloc=r.ChannelConfig=void 0,o(t("./node"),r),o(t("./chunking"),r);var s=t("./channel-config");Object.defineProperty(r,"ChannelConfig",{enumerable:!0,get:function(){return i(s).default}});var u=t("./channel-buf");Object.defineProperty(r,"alloc",{enumerable:!0,get:function(){return u.alloc}});var a=t("./utf8");Object.defineProperty(r,"utf8",{enumerable:!0,get:function(){return i(a).default}})},{"./channel-buf":22,"./channel-config":23,"./chunking":24,"./node":21,"./utf8":27}],27:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var o=n(t("./channel-buf")),i=t("neo4j-driver-core"),s=n(t("buffer")),u=new(t("string_decoder").StringDecoder)("utf8");r.default={encode:function(t){return new o.default((t=t,"function"==typeof s.default.Buffer.from?s.default.Buffer.from(t,"utf8"):new s.default.Buffer(t,"utf8")))},decode:function(t,e){if(Object.prototype.hasOwnProperty.call(t,"_buffer"))return n=e,o=(r=t).position,n=o+n,r.position=Math.min(n,r.length),r._buffer.toString("utf8",o,n);if(Object.prototype.hasOwnProperty.call(t,"_buffers"))return function(t,e,o,r){var i=e,s=t.position;return t._updatePos(Math.min(e,t.length-s)),t._buffers.reduce(function(t,e){if(i<=0)return t;if(s>=e.length)return s-=e.length,"";e._updatePos(s-e.position);var r=Math.min(e.length-s,i),n=e.readSlice(r);return e._updatePos(r),i=Math.max(i-n.length,0),s=0,t+o(n)},"")+r()}(t,e,function(t){return u.write(t._buffer)},function(){return u.end()});throw(0,i.newError)("Don't know how to decode strings from '"+t+"'");var r,n,o}}},{"./channel-buf":22,buffer:99,"neo4j-driver-core":60,string_decoder:301}],28:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},s=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var a,c=u(t("./connection-provider-pooled")),l=t("../connection"),u=t("neo4j-driver-core"),t=u.internal.constants,f=t.BOLT_PROTOCOL_V3,p=t.BOLT_PROTOCOL_V4_0,h=t.BOLT_PROTOCOL_V4_4,d=u.error.SERVICE_UNAVAILABLE,o=(u.error.newError,a=c.default,o(b,a),b.prototype.acquireConnection=function(t){var r=this,t=void 0===t?{}:t,n=(t.accessMode,t.database),e=(t.bookmarks,l.ConnectionErrorHandler.create({errorCode:d,handleAuthorizationExpired:function(t,e){return r._handleAuthorizationExpired(t,e,n)}}));return this._connectionPool.acquire(this._address).then(function(t){return new l.DelegateConnection(t,e)})},b.prototype._handleAuthorizationExpired=function(t,e,r){return this._log.warn("Direct driver "+this._id+" will close connection to "+e+" for database '"+r+"' because of an error "+t.code+" '"+t.message+"'"),this._connectionPool.purge(e).catch(function(){}),t},b.prototype._hasProtocolVersion=function(n){return i(this,void 0,void 0,function(){var e,r;return s(this,function(t){switch(t.label){case 0:return[4,(0,l.createChannelConnection)(this._address,this._config,this._createConnectionErrorHandler(),this._log)];case 1:return e=t.sent(),r=e.protocol()?e.protocol().version:null,[4,e.close()];case 2:return t.sent(),r?[2,n(r)]:[2,!1]}})})},b.prototype.supportsMultiDb=function(){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return p<=t})];case 1:return[2,t.sent()]}})})},b.prototype.supportsTransactionConfig=function(){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return f<=t})];case 1:return[2,t.sent()]}})})},b.prototype.supportsUserImpersonation=function(){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return h<=t})];case 1:return[2,t.sent()]}})})},b);function b(t){var e=t.id,r=t.config,n=t.log,o=t.address,i=t.userAgent,t=t.authToken,t=a.call(this,{id:e,config:r,log:n,userAgent:i,authToken:t})||this;return t._address=o,t}r.default=o},{"../connection":37,"./connection-provider-pooled":29,"neo4j-driver-core":60}],29:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return s(e,t),e},a=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},c=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}};Object.defineProperty(r,"__esModule",{value:!0});var l,f=t("../connection"),p=u(t("../pool")),t=t("neo4j-driver-core"),h=t.error.SERVICE_UNAVAILABLE,o=(l=t.ConnectionProvider,o(d,l),d.prototype._createConnectionErrorHandler=function(){return new f.ConnectionErrorHandler(h)},d.prototype._createConnection=function(t,r){var n=this;return this._createChannelConnection(t).then(function(e){return e._release=function(){return r(t,e)},(n._openConnections[e.id]=e).connect(n._userAgent,n._authToken).catch(function(t){throw n._destroyConnection(e),t})})},d.prototype._validateConnection=function(t){if(!t.isOpen())return!1;var e=this._config.maxConnectionLifetime;return Date.now()-t.creationTimestamp<=e},d.prototype._destroyConnection=function(t){return delete this._openConnections[t.id],t.close()},d.prototype.close=function(){return a(this,void 0,void 0,function(){return c(this,function(t){switch(t.label){case 0:return[4,this._connectionPool.close()];case 1:return t.sent(),[4,Promise.all(Object.values(this._openConnections).map(function(t){return t.close()}))];case 2:return t.sent(),[2]}})})},d._installIdleObserverOnConnection=function(t,e){t._queueObserver(e)},d._removeIdleObserverOnConnection=function(t){t._updateCurrentObserver()},d);function d(t,e){var r=t.id,n=t.config,o=t.log,i=t.userAgent,t=t.authToken;void 0===e&&(e=null);var s=l.call(this)||this;return s._id=r,s._config=n,s._log=o,s._userAgent=i,s._authToken=t,s._createChannelConnection=e||function(t){return(0,f.createChannelConnection)(t,s._config,s._createConnectionErrorHandler(),s._log)},s._connectionPool=new p.default({create:s._createConnection.bind(s),destroy:s._destroyConnection.bind(s),validate:s._validateConnection.bind(s),installIdleObserver:d._installIdleObserverOnConnection.bind(s),removeIdleObserver:d._removeIdleObserverOnConnection.bind(s),config:p.PoolConfig.fromDriverConfig(n),log:s._log}),s._openConnections={},s}r.default=o},{"../connection":37,"../pool":48,"neo4j-driver-core":60}],30:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),l=this&&this.__assign||function(){return(l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return s(e,t),e},h=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},d=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var p,b=t("neo4j-driver-core"),_=u(t("../rediscovery")),y=t("../channel"),v=f(t("./connection-provider-single")),f=f(t("./connection-provider-pooled")),m=t("../load-balancing"),g=t("../connection"),O=b.error.SERVICE_UNAVAILABLE,w=b.error.SESSION_EXPIRED,S=b.internal.bookmark.Bookmark,t=b.internal.constants,E=t.ACCESS_MODE_READ,P=t.ACCESS_MODE_WRITE,j=t.BOLT_PROTOCOL_V3,T=t.BOLT_PROTOCOL_V4_0,C=t.BOLT_PROTOCOL_V4_4,x=null,I=(0,b.int)(3e4),o=(p=f.default,o(A,p),A.prototype._createConnectionErrorHandler=function(){return new g.ConnectionErrorHandler(w)},A.prototype._handleUnavailability=function(t,e,r){return this._log.warn("Routing driver "+this._id+" will forget "+e+" for database '"+r+"' because of an error "+t.code+" '"+t.message+"'"),this.forget(e,r||x),t},A.prototype._handleAuthorizationExpired=function(t,e,r){return this._log.warn("Routing driver "+this._id+" will close connections to "+e+" for database '"+r+"' because of an error "+t.code+" '"+t.message+"'"),this._connectionPool.purge(e).catch(function(){}),t},A.prototype._handleWriteFailure=function(t,e,r){return this._log.warn("Routing driver "+this._id+" will forget writer "+e+" for database '"+r+"' because of an error "+t.code+" '"+t.message+"'"),this.forgetWriter(e,r||x),(0,b.newError)("No longer possible to write to server at "+e,w)},A.prototype.acquireConnection=function(t){var t=void 0===t?{}:t,a=t.accessMode,c=t.database,l=t.bookmarks,f=t.impersonatedUser,p=t.onDatabaseNameResolved;return h(this,void 0,void 0,function(){var e,r,n,o,i,s,u=this;return d(this,function(t){switch(t.label){case 0:return n={database:c||x},o=new g.ConnectionErrorHandler(w,function(t,e){return u._handleUnavailability(t,e,n.database)},function(t,e){return u._handleWriteFailure(t,e,n.database)},function(t,e){return u._handleAuthorizationExpired(t,e,n.database)}),[4,this._freshRoutingTable({accessMode:a,database:n.database,bookmark:l,impersonatedUser:f,onDatabaseNameResolved:function(t){n.database=n.database||t,p&&p(t)}})];case 1:if(i=t.sent(),a===E)r=this._loadBalancingStrategy.selectReader(i.readers),e="read";else{if(a!==P)throw(0,b.newError)("Illegal mode "+a);r=this._loadBalancingStrategy.selectWriter(i.writers),e="write"}if(!r)throw(0,b.newError)("Failed to obtain connection towards "+e+" server. Known routing table is: "+i,w);t.label=2;case 2:return t.trys.push([2,4,,5]),[4,this._acquireConnectionToServer(r,e,i)];case 3:return s=t.sent(),[2,new g.DelegateConnection(s,o)];case 4:throw s=t.sent(),o.handleAndTransformError(s,r);case 5:return[2]}})})},A.prototype._hasProtocolVersion=function(i){return h(this,void 0,void 0,function(){var e,r,n,o;return d(this,function(t){switch(t.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:r=t.sent(),e=0,t.label=2;case 2:if(!(e<r.length))return[3,8];t.label=3;case 3:return t.trys.push([3,6,,7]),[4,(0,g.createChannelConnection)(r[e],this._config,this._createConnectionErrorHandler(),this._log)];case 4:return r=t.sent(),n=r.protocol()?r.protocol().version:null,[4,r.close()];case 5:return t.sent(),n?[2,i(n)]:[2,!1];case 6:return o=t.sent(),o=o,[3,7];case 7:return e++,[3,2];case 8:if(o)throw o;return[2,!1]}})})},A.prototype.supportsMultiDb=function(){return h(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return T<=t})];case 1:return[2,t.sent()]}})})},A.prototype.supportsTransactionConfig=function(){return h(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return j<=t})];case 1:return[2,t.sent()]}})})},A.prototype.supportsUserImpersonation=function(){return h(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this._hasProtocolVersion(function(t){return C<=t})];case 1:return[2,t.sent()]}})})},A.prototype.forget=function(e,t){this._routingTableRegistry.apply(t,{applyWhenExists:function(t){return t.forget(e)}}),this._connectionPool.purge(e).catch(function(){})},A.prototype.forgetWriter=function(e,t){this._routingTableRegistry.apply(t,{applyWhenExists:function(t){return t.forgetWriter(e)}})},A.prototype._acquireConnectionToServer=function(t,e,r){return this._connectionPool.acquire(t)},A.prototype._freshRoutingTable=function(t){var e=void 0===t?{}:t,r=e.accessMode,n=e.database,o=e.bookmark,i=e.impersonatedUser,t=e.onDatabaseNameResolved,e=this._routingTableRegistry.get(n,function(){return new _.RoutingTable({database:n})});return e.isStaleFor(r)?(this._log.info('Routing table is stale for database: "'+n+'" and access mode: "'+r+'": '+e),this._refreshRoutingTable(e,o,i,t)):e},A.prototype._refreshRoutingTable=function(t,e,r,n){var o=t.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(o,t,e,r,n):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(o,t,e,r,n)},A.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(n,o,i,s,u){return h(this,void 0,void 0,function(){var e,r;return d(this,function(t){switch(t.label){case 0:return e=[],[4,this._fetchRoutingTableUsingSeedRouter(e,this._seedRouter,o,i,s)];case 1:return(r=t.sent())?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(n,o,i,s)];case 3:r=t.sent(),t.label=4;case 4:return[4,this._applyRoutingTableIfPossible(o,r,u)];case 5:return[2,t.sent()]}})})},A.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(r,n,o,i,s){return h(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(r,n,o,i)];case 1:return(e=t.sent())?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(r,this._seedRouter,n,o,i)];case 2:e=t.sent(),t.label=3;case 3:return[4,this._applyRoutingTableIfPossible(n,e,s)];case 4:return[2,t.sent()]}})})},A.prototype._fetchRoutingTableUsingKnownRouters=function(r,n,o,i){return h(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this._fetchRoutingTable(r,n,o,i)];case 1:return(e=t.sent())?[2,e]:(e=r.length-1,A._forgetRouter(n,r,e),[2,null])}})})},A.prototype._fetchRoutingTableUsingSeedRouter=function(r,n,o,i,s){return h(this,void 0,void 0,function(){var e;return d(this,function(t){switch(t.label){case 0:return[4,this._resolveSeedRouter(n)];case 1:return e=t.sent(),e=e.filter(function(t){return r.indexOf(t)<0}),[4,this._fetchRoutingTable(e,o,i,s)];case 2:return[2,t.sent()]}})})},A.prototype._resolveSeedRouter=function(n){return h(this,void 0,void 0,function(){var e,r=this;return d(this,function(t){switch(t.label){case 0:return[4,this._hostNameResolver.resolve(n)];case 1:return e=t.sent(),[4,Promise.all(e.map(function(t){return r._dnsResolver.resolve(t)}))];case 2:return e=t.sent(),[2,[].concat.apply([],e)]}})})},A.prototype._fetchRoutingTable=function(s,u,a,c){var t=this;return s.reduce(function(n,o,i){return h(t,void 0,void 0,function(){var e,r;return d(this,function(t){switch(t.label){case 0:return[4,n];case 1:return(r=t.sent())?[2,r]:(A._forgetRouter(u,s,i-1),[4,this._createSessionForRediscovery(o,a,c)]);case 2:if(!(e=t.sent()))return[3,8];t.label=3;case 3:return t.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(e,u.database,o,c)];case 4:return[2,t.sent()];case 5:if((r=t.sent())&&"Neo.ClientError.Database.DatabaseNotFound"===r.code)throw r;return this._log.warn("unable to fetch routing table because of an error "+r),[2,null];case 6:return e.close(),[7];case 7:return[3,9];case 8:return[2,null];case 9:return[2]}})})},Promise.resolve(null))},A.prototype._createSessionForRediscovery=function(o,i,s){return h(this,void 0,void 0,function(){var e,r,n=this;return d(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this._connectionPool.acquire(o)];case 1:return e=t.sent(),r=g.ConnectionErrorHandler.create({errorCode:w,handleAuthorizationExpired:function(t,e){return n._handleAuthorizationExpired(t,e)}}),r=new v.default(new g.DelegateConnection(e,r)),e.protocol().version<4?[2,new b.Session({mode:P,bookmark:S.empty(),connectionProvider:r})]:[2,new b.Session({mode:E,database:"system",bookmark:i,connectionProvider:r,impersonatedUser:s})];case 2:if((r=t.sent())&&"Neo.ClientError.Security.Unauthorized"===r.code)throw r;return[2,null];case 3:return[2]}})})},A.prototype._applyRoutingTableIfPossible=function(e,r,n){return h(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:if(!r)throw(0,b.newError)("Could not perform discovery. No routing servers available. Known routing table: "+e,O);return 0===r.writers.length&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(r,n)];case 1:return t.sent(),[2,r]}})})},A.prototype._updateRoutingTable=function(e,r){return h(this,void 0,void 0,function(){return d(this,function(t){switch(t.label){case 0:return[4,this._connectionPool.keepAll(e.allServers())];case 1:return t.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(e),r(e.database),this._log.info("Updated routing table "+e),[2]}})})},A._forgetRouter=function(t,e,r){r=e[r];t&&r&&t.forgetRouter(r)},A);function A(t){var e=t.id,r=t.address,n=t.routingContext,o=t.hostNameResolver,i=t.config,s=t.log,u=t.userAgent,a=t.authToken,t=t.routingTablePurgeDelay,c=p.call(this,{id:e,config:i,log:s,userAgent:u,authToken:a},function(t){return(0,g.createChannelConnection)(t,c._config,c._createConnectionErrorHandler(),c._log,c._routingContext)})||this;return c._routingContext=l(l({},n),{address:r.toString()}),c._seedRouter=r,c._rediscovery=new _.default(c._routingContext),c._loadBalancingStrategy=new m.LeastConnectedLoadBalancingStrategy(c._connectionPool),c._hostNameResolver=o,c._dnsResolver=new y.HostNameResolver,c._log=s,c._useSeedRouter=!0,c._routingTableRegistry=new R(t?(0,b.int)(t):I),c}r.default=o;var R=(k.prototype.register=function(t){return this._tables.set(t.database,t),this},k.prototype.apply=function(t,e){var r=void 0===e?{}:e,e=r.applyWhenExists,r=r.applyWhenDontExists,r=void 0===r?function(){}:r;return this._tables.has(t)?e(this._tables.get(t)):"string"==typeof t||null===t?r():this._forEach(e),this},k.prototype.get=function(t,e){return this._tables.has(t)?this._tables.get(t):"function"==typeof e?e():e},k.prototype.removeExpired=function(){var e=this;return this._removeIf(function(t){return t.isExpiredFor(e._routingTablePurgeDelay)})},k.prototype._forEach=function(t){var e,r;try{for(var n=a(this._tables),o=n.next();!o.done;o=n.next())t(c(o.value,2)[1])}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},k.prototype._remove=function(t){return this._tables.delete(t),this},k.prototype._removeIf=function(t){var e,r;try{for(var n=a(this._tables),o=n.next();!o.done;o=n.next()){var i=c(o.value,2),s=i[0];t(i[1])&&this._remove(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}return this},k);function k(t){this._tables=new Map,this._routingTablePurgeDelay=t}},{"../channel":26,"../connection":37,"../load-balancing":39,"../rediscovery":51,"./connection-provider-pooled":29,"./connection-provider-single":31,"neo4j-driver-core":60}],31:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("neo4j-driver-core"),o=(i=t.ConnectionProvider,o(s,i),s.prototype.acquireConnection=function(t){t=void 0===t?{}:t,t.accessMode,t.database,t.bookmarks,t=this._connection;return this._connection=null,Promise.resolve(t)},s);function s(t){var e=i.call(this)||this;return e._connection=t,e}r.default=o},{"neo4j-driver-core":60}],32:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingConnectionProvider=r.DirectConnectionProvider=r.PooledConnectionProvider=r.SingleConnectionProvider=void 0;var o=t("./connection-provider-single");Object.defineProperty(r,"SingleConnectionProvider",{enumerable:!0,get:function(){return n(o).default}});var i=t("./connection-provider-pooled");Object.defineProperty(r,"PooledConnectionProvider",{enumerable:!0,get:function(){return n(i).default}});var s=t("./connection-provider-direct");Object.defineProperty(r,"DirectConnectionProvider",{enumerable:!0,get:function(){return n(s).default}});var u=t("./connection-provider-routing");Object.defineProperty(r,"RoutingConnectionProvider",{enumerable:!0,get:function(){return n(u).default}})},{"./connection-provider-direct":28,"./connection-provider-pooled":29,"./connection-provider-routing":30,"./connection-provider-single":31}],33:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},s=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.createChannelConnection=void 0;var f=t("../channel"),a=t("neo4j-driver-core"),c=u(t("./connection")),p=u(t("../bolt")),l=a.error.PROTOCOL_ERROR,h=a.internal.logger.Logger,d=0;r.createChannelConnection=function(i,s,u,a,c,t){void 0===c&&(c=null);var l=(t=void 0===t?function(t){return new f.Channel(t)}:t)(new f.ChannelConfig(i,s,u.errorCode()));return p.default.handshake(l).then(function(t){var r=t.protocolVersion,e=t.consumeRemainingBuffer,n=new f.Chunker(l),o=new f.Dechunker,t=new _(l,u,i,a,s.disableLosslessIntegers,c,n,function(e){return p.default.create({version:r,channel:l,chunker:n,dechunker:o,disableLosslessIntegers:s.disableLosslessIntegers,useBigInt:s.useBigInt,serversideRouting:c,server:e.server,log:e.logger,observer:{onPendingObserversChange:e._handleOngoingRequestsNumberChange.bind(e),onError:e._handleFatalError.bind(e),onFailure:e._resetOnFailure.bind(e),onProtocolError:e._handleProtocolError.bind(e),onErrorApplyTransformation:function(t){return e.handleAndTransformError(t,e._address)}}})});return e(function(t){return o.write(t)}),t}).catch(function(t){return l.close().then(function(){throw t})})};var b,_=(b=c.default,o(y,b),Object.defineProperty(y.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"databaseId",{get:function(){return this._dbConnectionId},set:function(t){this._dbConnectionId=t},enumerable:!1,configurable:!0}),y.prototype.connect=function(t,e){return this._initialize(t,e)},y.prototype._initialize=function(t,n){var o=this,i=this;return new Promise(function(r,e){o._protocol.initialize({userAgent:t,authToken:n,onError:function(t){return e(t)},onComplete:function(t){var e;t&&(e=t.server,o.version&&!e||(o.version=e),e=t.connection_id,o.databaseId||(o.databaseId=e),!t.hints||null!=(t=t.hints["connection.recv_timeout_seconds"])&&(t=(0,a.toNumber)(t),Number.isInteger(t)&&0<t?o._ch.setupReceiveTimeout(1e3*t):o._log.info("Server located at "+o._address+" supplied an invalid connection receive timeout value ("+t+"). Please, verify the server configuration and status because this can be the symptom of a bigger issue."))),r(i)}})})},y.prototype.protocol=function(){return this._protocol},Object.defineProperty(y.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"version",{get:function(){return this._server.version},set:function(t){this._server.version=t},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),y.prototype._handleFatalError=function(t){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||t,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by "+this._error+" ("+a.json.stringify(this._error)+")"),this._protocol.notifyFatalError(this._error)},y.prototype._queueObserver=function(t){return this._protocol.queueObserverIfProtocolIsNotBroken(t)},y.prototype.hasOngoingObservableRequests=function(){return this._protocol.hasOngoingObservableRequests()},y.prototype.resetAndFlush=function(){var r=this;return new Promise(function(t,e){r._protocol.reset({onError:function(t){r._isBroken?e(t):(t=r._handleProtocolError("Received FAILURE as a response for RESET: "+t),e(t))},onComplete:function(){t()}})})},y.prototype._resetOnFailure=function(){var t=this;this.isOpen()&&this._protocol.reset({onError:function(){t._protocol.resetFailure()},onComplete:function(){t._protocol.resetFailure()}})},y.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},y.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},y.prototype._handleOngoingRequestsNumberChange=function(t){0===t?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout()},y.prototype.close=function(){return i(this,void 0,void 0,function(){return s(this,function(t){switch(t.label){case 0:return this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return t.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}})})},y.prototype.toString=function(){return"Connection ["+this.id+"]["+(this.databaseId||"")+"]"},y.prototype._handleProtocolError=function(t){this._protocol.resetFailure(),this._updateCurrentObserver();t=(0,a.newError)(t,l);return this._handleFatalError(t),t},y);function y(t,e,r,n,o,i,s,u){void 0===o&&(o=!1),void 0===i&&(i=null);var a,c,e=b.call(this,e)||this;return e._id=d++,e._address=r,e._server={address:r.asHostPort()},e.creationTimestamp=Date.now(),e._disableLosslessIntegers=o,e._ch=t,e._chunker=s,e._log=(a=e,new h((c=n)._level,function(t,e){return c._loggerFunction(t,a+" "+e)})),e._serversideRouting=i,e._dbConnectionId=null,e._protocol=u(e),e._isBroken=!1,e._log.isDebugEnabled()&&e._log.debug("created towards "+r),e}r.default=_},{"../bolt":12,"../channel":26,"./connection":36,"neo4j-driver-core":60}],34:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,t=i(t("./connection")),o=(s=t.default,o(u,s),Object.defineProperty(u.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(t){this._delegate.databaseId=t},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"version",{get:function(){return this._delegate.version},set:function(t){this._delegate.version=t},enumerable:!1,configurable:!0}),u.prototype.isOpen=function(){return this._delegate.isOpen()},u.prototype.protocol=function(){return this._delegate.protocol()},u.prototype.connect=function(t,e){return this._delegate.connect(t,e)},u.prototype.write=function(t,e,r){return this._delegate.write(t,e,r)},u.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},u.prototype.close=function(){return this._delegate.close()},u.prototype._release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate._release()},u);function u(t,e){var r=s.call(this,e)||this;return e&&(r._originalErrorHandler=t._errorHandler,t._errorHandler=r._errorHandler),r._delegate=t,r}r.default=o},{"./connection":36}],35:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=t("neo4j-driver-core"),n=t.error.SERVICE_UNAVAILABLE,o=t.error.SESSION_EXPIRED,t=(i.create=function(t){return new i(t.errorCode,t.handleUnavailability,t.handleWriteFailure,t.handleAuthorizationExpired)},i.prototype.errorCode=function(){return this._errorCode},i.prototype.handleAndTransformError=function(t,e){return!(r=t)||"Neo.ClientError.Security.AuthorizationExpired"!==r.code&&"Neo.ClientError.Security.TokenExpired"!==r.code?function(t){if(t)return t.code===o||t.code===n||"Neo.TransientError.General.DatabaseUnavailable"===t.code;return!1}(t)?this._handleUnavailability(t,e):function(t){if(t)return"Neo.ClientError.Cluster.NotALeader"===t.code||"Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"===t.code;return!1}(t)?this._handleWriteFailure(t,e):t:this._handleAuthorizationExpired(t,e);var r},i);function i(t,e,r,n){this._errorCode=t,this._handleUnavailability=e||s,this._handleWriteFailure=r||s,this._handleAuthorizationExpired=n||s}function s(t){return t}r.default=t},{"neo4j-driver-core":60}],36:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(Object.defineProperty(o.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),o.prototype.isOpen=function(){throw new Error("not implemented")},o.prototype.protocol=function(){throw new Error("not implemented")},Object.defineProperty(o.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(t){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),o.prototype.connect=function(t,e){throw new Error("not implemented")},o.prototype.write=function(t,e,r){throw new Error("not implemented")},o.prototype.resetAndFlush=function(){throw new Error("not implemented")},o.prototype.close=function(){throw new Error("not implemented")},o.prototype.handleAndTransformError=function(t,e){return this._errorHandler?this._errorHandler.handleAndTransformError(t,e):t},o);function o(t){this._errorHandler=t}r.default=n},{}],37:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.createChannelConnection=r.ConnectionErrorHandler=r.DelegateConnection=r.ChannelConnection=r.Connection=void 0;var u=s(t("./connection"));r.Connection=u.default;var a=i(t("./connection-channel"));r.ChannelConnection=a.default,Object.defineProperty(r,"createChannelConnection",{enumerable:!0,get:function(){return a.createChannelConnection}});i=s(t("./connection-delegate"));r.DelegateConnection=i.default;t=s(t("./connection-error-handler"));r.ConnectionErrorHandler=t.default,r.default=u.default},{"./connection":36,"./connection-channel":33,"./connection-delegate":34,"./connection-error-handler":35}],38:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.pool=r.packstream=r.channel=r.buf=r.bolt=r.loadBalancing=void 0,r.loadBalancing=i(t("./load-balancing")),r.bolt=i(t("./bolt")),r.buf=i(t("./buf")),r.channel=i(t("./channel")),r.packstream=i(t("./packstream")),r.pool=i(t("./pool")),s(t("./connection-provider"),r)},{"./bolt":12,"./buf":18,"./channel":26,"./connection-provider":32,"./load-balancing":39,"./packstream":43,"./pool":48}],39:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.LeastConnectedLoadBalancingStrategy=r.LoadBalancingStrategy=void 0;var o=n(t("./load-balancing-strategy"));r.LoadBalancingStrategy=o.default;t=n(t("./least-connected-load-balancing-strategy"));r.LeastConnectedLoadBalancingStrategy=t.default,r.default=t.default},{"./least-connected-load-balancing-strategy":40,"./load-balancing-strategy":41}],40:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s,u=i(t("./round-robin-array-index")),t=i(t("./load-balancing-strategy")),o=(s=t.default,o(a,s),a.prototype.selectReader=function(t){return this._select(t,this._readersIndex)},a.prototype.selectWriter=function(t){return this._select(t,this._writersIndex)},a.prototype._select=function(t,e){var r=t.length;if(0===r)return null;var n=e.next(r),o=n,i=null,s=Number.MAX_SAFE_INTEGER;do{var u=t[o],a=this._connectionPool.activeResourceCount(u)}while(a<s&&(i=u,s=a),o===r-1?o=0:o++,o!==n);return i},a);function a(t){var e=s.call(this)||this;return e._readersIndex=new u.default,e._writersIndex=new u.default,e._connectionPool=t,e}r.default=o},{"./load-balancing-strategy":41,"./round-robin-array-index":42}],41:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.selectReader=function(t){throw new Error("Abstract function")},o.prototype.selectWriter=function(t){throw new Error("Abstract function")},o);function o(){}r.default=n},{}],42:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.next=function(t){if(0===t)return-1;var e=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),e%t},o);function o(t){this._offset=t||0}r.default=n},{}],43:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.v2=r.v1=void 0;var s=i(t("./packstream-v1"));r.v1=s;t=i(t("./packstream-v2"));r.v2=t,r.default=t},{"./packstream-v1":45,"./packstream-v2":46}],44:[function(t,e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.packDateTime=s.unpackDateTimeWithZoneId=s.unpackDateTimeWithZoneOffset=s.DATE_TIME_WITH_ZONE_ID=s.DATE_TIME_WITH_ZONE_OFFSET=void 0;var u=t("neo4j-driver-core"),a=t("./temporal-factory"),c=u.internal.temporalUtil.localDateTimeToEpochSecond;s.DATE_TIME_WITH_ZONE_OFFSET=73;s.DATE_TIME_WITH_ZONE_ID=105;function l(t,e,r){t=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"}),r=(0,a.epochSecondAndNanoToLocalDateTime)(e,r),r=Date.UTC((0,u.int)(r.year).toNumber(),(0,u.int)(r.month).toNumber()-1,(0,u.int)(r.day).toNumber(),(0,u.int)(r.hour).toNumber(),(0,u.int)(r.minute).toNumber(),(0,u.int)(r.second).toNumber()),t=t.formatToParts(r).reduce(function(t,e){return"era"===e.type?t.adjustEra="B"===e.value.toLocaleUpperCase()?function(t){return t.subtract(1).negate()}:function(t){return t}:"literal"!==e.type&&(t[e.type]=(0,u.int)(e.value)),t},{});t.year=t.adjustEra(t.year);r=c(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond);return t.timeZoneOffsetSeconds=r.subtract(e),t.hour=t.hour.modulo(24),t}function f(t,e,r){if(!e&&!r)return t;var n,o,i,s=Object.create(Object.getPrototypeOf(t));for(n in t)!0===Object.prototype.hasOwnProperty.call(t,n)&&(o=t[n],s[n]=(0,u.isInt)(o)?(i=o,r?i.toBigInt():i.toNumberOrInfinity()):o);return Object.freeze(s),s}s.unpackDateTimeWithZoneOffset=function(t,e,r,n,o){t._verifyStructSize("DateTimeWithZoneOffset",3,e);var i=t.unpackInteger(r),e=t.unpackInteger(r),r=t.unpackInteger(r),i=(0,u.int)(i).add(r),e=(0,a.epochSecondAndNanoToLocalDateTime)(i,e);return f(new u.DateTime(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond,r,null),n,o)},s.unpackDateTimeWithZoneId=function(t,e,r,n,o){t._verifyStructSize("DateTimeWithZoneId",3,e);var i=t.unpackInteger(r),e=t.unpackInteger(r),i=l(r=t.unpack(r),i,e);return f(new u.DateTime(i.year,i.month,i.day,i.hour,i.minute,i.second,(0,u.int)(e),i.timeZoneOffsetSeconds,r),n,o)},s.packDateTime=function(t,e){var r,n,o,i;t.timeZoneId?(n=e,o=c((r=t).year,r.month,r.day,r.hour,r.minute,r.second,r.nanosecond),i=null!=r.timeZoneOffsetSeconds?r.timeZoneOffsetSeconds:function(t,e,r){var n=l(t,e,r),n=c(n.year,n.month,n.day,n.hour,n.minute,n.second,r).subtract(e),n=e.subtract(n),t=l(t,n,r);return c(t.year,t.month,t.day,t.hour,t.minute,t.second,r).subtract(n)}(r.timeZoneId,o,r.nanosecond),o=o.subtract(i),i=(0,u.int)(r.nanosecond),r=r.timeZoneId,r=[n.packable(o),n.packable(i),n.packable(r)],n.packStruct(s.DATE_TIME_WITH_ZONE_ID,r)):(n=e,e=c((r=t).year,r.month,r.day,r.hour,r.minute,r.second,r.nanosecond),t=(0,u.int)(r.nanosecond),r=(0,u.int)(r.timeZoneOffsetSeconds),e=e.subtract(r),r=[n.packable(e),n.packable(t),n.packable(r)],n.packStruct(s.DATE_TIME_WITH_ZONE_OFFSET,r))}},{"./temporal-factory":47,"neo4j-driver-core":60}],45:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Structure=r.Unpacker=r.Packer=void 0;var o=t("../channel"),f=t("neo4j-driver-core"),i=f.internal.objectUtil,n=f.error.PROTOCOL_ERROR,u=(s.prototype.toString=function(){for(var t="",e=0;e<this.fields.length;e++)0<e&&(t+=", "),t+=this.fields[e];return"Structure("+this.signature+", ["+t+"])"},s);function s(t,e){this.signature=t,this.fields=e}r.Structure=u;a.prototype.packable=function(i){var t,s=this;if(null===i)return function(){return s._ch.writeUInt8(192)};if(!0===i)return function(){return s._ch.writeUInt8(195)};if(!1===i)return function(){return s._ch.writeUInt8(194)};if("number"==typeof i)return function(){return s.packFloat(i)};if("string"==typeof i)return function(){return s.packString(i)};if("bigint"==typeof i)return function(){return s.packInteger((0,f.int)(i))};if((0,f.isInt)(i))return function(){return s.packInteger(i)};if(i instanceof Int8Array)return function(){return s.packBytes(i)};if(i instanceof Array)return function(){s.packListHeader(i.length);for(var t=0;t<i.length;t++)s.packable(void 0===i[t]?null:i[t])()};if(null!=(t=i)&&"function"==typeof t[Symbol.iterator])return this.packableIterable(i);if(i instanceof f.Node)return this._nonPackableValue("It is not allowed to pass nodes in query parameters, given: "+i);if(i instanceof f.Relationship)return this._nonPackableValue("It is not allowed to pass relationships in query parameters, given: "+i);if(i instanceof f.Path)return this._nonPackableValue("It is not allowed to pass paths in query parameters, given: "+i);if(i instanceof u){for(var e=[],r=0;r<i.fields.length;r++)e[r]=this.packable(i.fields[r]);return function(){return s.packStruct(i.signature,e)}}return"object"==typeof i?function(){for(var t=Object.keys(i),e=0,r=0;r<t.length;r++)void 0!==i[t[r]]&&e++;s.packMapHeader(e);for(var n=0;n<t.length;n++){var o=t[n];void 0!==i[o]&&(s.packString(o),s.packable(i[o])())}}:this._nonPackableValue("Unable to pack the given value: "+i)},a.prototype.packableIterable=function(e){try{var t=Array.from(e);return this.packable(t)}catch(t){throw(0,f.newError)("Cannot pack given iterable, "+t.message+": "+e)}},a.prototype.packStruct=function(t,e){this.packStructHeader((e=e||[]).length,t);for(var r=0;r<e.length;r++)e[r]()},a.prototype.packInteger=function(t){var e=t.high,r=t.low;t.greaterThanOrEqual(-16)&&t.lessThan(128)?this._ch.writeInt8(r):t.greaterThanOrEqual(-128)&&t.lessThan(-16)?(this._ch.writeUInt8(200),this._ch.writeInt8(r)):t.greaterThanOrEqual(-32768)&&t.lessThan(32768)?(this._ch.writeUInt8(201),this._ch.writeInt16(r)):(t.greaterThanOrEqual(-2147483648)&&t.lessThan(2147483648)?this._ch.writeUInt8(202):(this._ch.writeUInt8(203),this._ch.writeInt32(e)),this._ch.writeInt32(r))},a.prototype.packFloat=function(t){this._ch.writeUInt8(193),this._ch.writeFloat64(t)},a.prototype.packString=function(t){var e=o.utf8.encode(t),t=e.length;if(t<16)this._ch.writeUInt8(128|t),this._ch.writeBytes(e);else if(t<256)this._ch.writeUInt8(208),this._ch.writeUInt8(t),this._ch.writeBytes(e);else if(t<65536)this._ch.writeUInt8(209),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256),this._ch.writeBytes(e);else{if(!(t<4294967296))throw(0,f.newError)("UTF-8 strings of size "+t+" are not supported");this._ch.writeUInt8(210),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256),this._ch.writeBytes(e)}},a.prototype.packListHeader=function(t){if(t<16)this._ch.writeUInt8(144|t);else if(t<256)this._ch.writeUInt8(212),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(213),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,f.newError)("Lists of size "+t+" are not supported");this._ch.writeUInt8(214),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},a.prototype.packBytes=function(t){if(!this._byteArraysSupported)throw(0,f.newError)("Byte arrays are not supported by the database this driver is connected to");this.packBytesHeader(t.length);for(var e=0;e<t.length;e++)this._ch.writeInt8(t[e])},a.prototype.packBytesHeader=function(t){if(t<256)this._ch.writeUInt8(204),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(205),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,f.newError)("Byte arrays of size "+t+" are not supported");this._ch.writeUInt8(206),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},a.prototype.packMapHeader=function(t){if(t<16)this._ch.writeUInt8(160|t);else if(t<256)this._ch.writeUInt8(216),this._ch.writeUInt8(t);else if(t<65536)this._ch.writeUInt8(217),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256);else{if(!(t<4294967296))throw(0,f.newError)("Maps of size "+t+" are not supported");this._ch.writeUInt8(218),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256)}},a.prototype.packStructHeader=function(t,e){if(t<16)this._ch.writeUInt8(176|t),this._ch.writeUInt8(e);else if(t<256)this._ch.writeUInt8(220),this._ch.writeUInt8(t),this._ch.writeUInt8(e);else{if(!(t<65536))throw(0,f.newError)("Structures of size "+t+" are not supported");this._ch.writeUInt8(221),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256)}},a.prototype.disableByteArrays=function(){this._byteArraysSupported=!1},a.prototype._nonPackableValue=function(t){return function(){throw(0,f.newError)(t,n)}},t=a;function a(t){this._ch=t,this._byteArraysSupported=!0}r.Packer=t;c.prototype.unpack=function(t){var e=t.readUInt8(),r=240&e,n=15&e;if(192===e)return null;var o=this._unpackBoolean(e);if(null!==o)return o;o=this._unpackNumberOrInteger(e,t);if(null!==o){if((0,f.isInt)(o)){if(this._useBigInt)return o.toBigInt();if(this._disableLosslessIntegers)return o.toNumberOrInfinity()}return o}o=this._unpackString(e,r,n,t);if(null!==o)return o;o=this._unpackList(e,r,n,t);if(null!==o)return o;o=this._unpackByteArray(e,t);if(null!==o)return o;o=this._unpackMap(e,r,n,t);if(null!==o)return o;t=this._unpackStruct(e,r,n,t);if(null!==t)return t;throw(0,f.newError)("Unknown packed value with marker "+e.toString(16))},c.prototype.unpackInteger=function(t){var e=t.readUInt8(),t=this._unpackInteger(e,t);if(null==t)throw(0,f.newError)("Unable to unpack integer value with marker "+e.toString(16));return t},c.prototype._unpackBoolean=function(t){return 195===t||194!==t&&null},c.prototype._unpackNumberOrInteger=function(t,e){return 193===t?e.readFloat64():this._unpackInteger(t,e)},c.prototype._unpackInteger=function(t,e){if(0<=t&&t<128)return(0,f.int)(t);if(240<=t&&t<256)return(0,f.int)(t-256);if(200===t)return(0,f.int)(e.readInt8());if(201===t)return(0,f.int)(e.readInt16());if(202===t){var r=e.readInt32();return(0,f.int)(r)}if(203!==t)return null;t=e.readInt32(),e=e.readInt32();return new f.Integer(e,t)},c.prototype._unpackString=function(t,e,r,n){return 128===e?o.utf8.decode(n,r):208===t?o.utf8.decode(n,n.readUInt8()):209===t?o.utf8.decode(n,n.readUInt16()):210===t?o.utf8.decode(n,n.readUInt32()):null},c.prototype._unpackList=function(t,e,r,n){return 144===e?this._unpackListWithSize(r,n):212===t?this._unpackListWithSize(n.readUInt8(),n):213===t?this._unpackListWithSize(n.readUInt16(),n):214===t?this._unpackListWithSize(n.readUInt32(),n):null},c.prototype._unpackListWithSize=function(t,e){for(var r=[],n=0;n<t;n++)r.push(this.unpack(e));return r},c.prototype._unpackByteArray=function(t,e){return 204===t?this._unpackByteArrayWithSize(e.readUInt8(),e):205===t?this._unpackByteArrayWithSize(e.readUInt16(),e):206===t?this._unpackByteArrayWithSize(e.readUInt32(),e):null},c.prototype._unpackByteArrayWithSize=function(t,e){for(var r=new Int8Array(t),n=0;n<t;n++)r[n]=e.readInt8();return r},c.prototype._unpackMap=function(t,e,r,n){return 160===e?this._unpackMapWithSize(r,n):216===t?this._unpackMapWithSize(n.readUInt8(),n):217===t?this._unpackMapWithSize(n.readUInt16(),n):218===t?this._unpackMapWithSize(n.readUInt32(),n):null},c.prototype._unpackMapWithSize=function(t,e){for(var r={},n=0;n<t;n++)r[this.unpack(e)]=this.unpack(e);return r},c.prototype._unpackStruct=function(t,e,r,n){try{return 176===e?this._unpackStructWithSize(r,n):220===t?this._unpackStructWithSize(n.readUInt8(),n):221===t?this._unpackStructWithSize(n.readUInt16(),n):null}catch(t){return i.createBrokenObject(t)}},c.prototype._unpackStructWithSize=function(t,e){var r=e.readUInt8();return 78===r?this._unpackNode(t,e):82===r?this._unpackRelationship(t,e):114===r?this._unpackUnboundRelationship(t,e):80===r?this._unpackPath(t,e):this._unpackUnknownStruct(r,t,e)},c.prototype._unpackNode=function(t,e){return this._verifyStructSize("Node",3,t),new f.Node(this.unpack(e),this.unpack(e),this.unpack(e))},c.prototype._unpackRelationship=function(t,e){return this._verifyStructSize("Relationship",5,t),new f.Relationship(this.unpack(e),this.unpack(e),this.unpack(e),this.unpack(e),this.unpack(e))},c.prototype._unpackUnboundRelationship=function(t,e){return this._verifyStructSize("UnboundRelationship",3,t),new f.UnboundRelationship(this.unpack(e),this.unpack(e),this.unpack(e))},c.prototype._unpackPath=function(t,e){this._verifyStructSize("Path",3,t);for(var r=this.unpack(e),n=this.unpack(e),o=this.unpack(e),i=[],s=r[0],u=0;u<o.length;u+=2){var a=r[o[u+1]],c=(0,f.toNumber)(o[u]),l=void 0;0<c?(l=n[c-1])instanceof f.UnboundRelationship&&(n[c-1]=l=l.bind(s.identity,a.identity)):(l=n[-c-1])instanceof f.UnboundRelationship&&(n[-c-1]=l=l.bind(a.identity,s.identity)),i.push(new f.PathSegment(s,l,a)),s=a}return new f.Path(r[0],r[r.length-1],i)},c.prototype._unpackUnknownStruct=function(t,e,r){for(var n=new u(t,[]),o=0;o<e;o++)n.fields.push(this.unpack(r));return n},c.prototype._verifyStructSize=function(t,e,r){if(e!==r)throw(0,f.newError)("Wrong struct size for "+t+", expected "+e+" but was "+r,n)},t=c;function c(t,e){void 0===e&&(e=!1),this._disableLosslessIntegers=t=void 0===t?!1:t,this._useBigInt=e}r.Unpacker=t},{"../channel":26,"neo4j-driver-core":60}],46:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)}),i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return s(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.Unpacker=r.Packer=void 0;var a,c=u(t("./packstream-v1")),l=u(t("./packstream-utc")),f=t("neo4j-driver-core"),p=t("./temporal-factory"),t=f.internal.temporalUtil,h=t.dateToEpochDay,d=t.localDateTimeToEpochSecond,b=t.localTimeToNanoOfDay,_=88,y=3,v=89,m=4,g=69,O=4,w=116,S=1,E=84,P=2,j=68,T=1,C=100,x=2,I=70,A=3,R=102,k=3,t=(a=c.Packer,o(N,a),N.prototype.disableByteArrays=function(){throw new Error("Bolt V2 should always support byte arrays")},N.prototype.packable=function(i){var s=this;return(0,f.isPoint)(i)?function(){var t,e;e=s,(null===(t=i).z||void 0===t.z?function(t,e){t=[e.packable((0,f.int)(t.srid)),e.packable(t.x),e.packable(t.y)];e.packStruct(_,t)}:function(t,e){t=[e.packable((0,f.int)(t.srid)),e.packable(t.x),e.packable(t.y),e.packable(t.z)];e.packStruct(v,t)})(t,e)}:(0,f.isDuration)(i)?function(){var t,e,r,n,o;t=i,e=s,r=(0,f.int)(t.months),n=(0,f.int)(t.days),o=(0,f.int)(t.seconds),t=(0,f.int)(t.nanoseconds),t=[e.packable(r),e.packable(n),e.packable(o),e.packable(t)],e.packStruct(g,t)}:(0,f.isLocalTime)(i)?function(){return function(t,e){t=b(t.hour,t.minute,t.second,t.nanosecond),t=[e.packable(t)];e.packStruct(w,t)}(i,s)}:(0,f.isTime)(i)?function(){var t,e,r;e=s,r=b((t=i).hour,t.minute,t.second,t.nanosecond),t=(0,f.int)(t.timeZoneOffsetSeconds),t=[e.packable(r),e.packable(t)],e.packStruct(E,t)}:(0,f.isDate)(i)?function(){return function(t,e){t=h(t.year,t.month,t.day),t=[e.packable(t)];e.packStruct(j,t)}(i,s)}:(0,f.isLocalDateTime)(i)?function(){var t,e,r;e=s,r=d((t=i).year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),t=(0,f.int)(t.nanosecond),t=[e.packable(r),e.packable(t)],e.packStruct(C,t)}:(0,f.isDateTime)(i)&&this.useUtc?function(){return l.packDateTime(i,s)}:(0,f.isDateTime)(i)&&!this.useUtc?function(){var t,e;e=s,((t=i).timeZoneId?function(t,e){var r=d(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),n=(0,f.int)(t.nanosecond),t=t.timeZoneId,t=[e.packable(r),e.packable(n),e.packable(t)];e.packStruct(R,t)}:function(t,e){var r=d(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond),n=(0,f.int)(t.nanosecond),t=(0,f.int)(t.timeZoneOffsetSeconds),t=[e.packable(r),e.packable(n),e.packable(t)];e.packStruct(I,t)})(t,e)}:a.prototype.packable.call(this,i)},N);function N(){return null!==a&&a.apply(this,arguments)||this}r.Packer=t;var M,o=(M=c.Unpacker,o(D,M),D.prototype._unpackUnknownStruct=function(t,e,r){return t===_?(o=e,i=r,(n=this)._verifyStructSize("Point2D",y,o),new f.Point(n.unpack(i),n.unpack(i),n.unpack(i),void 0)):t===v?(o=e,n=r,(i=this)._verifyStructSize("Point3D",m,o),new f.Point(i.unpack(n),i.unpack(n),i.unpack(n),i.unpack(n))):t===g?function(t,e,r){t._verifyStructSize("Duration",O,e);var n=t.unpack(r),o=t.unpack(r),e=t.unpack(r),r=t.unpack(r);return new f.Duration(n,o,e,r)}(this,e,r):t===w?function(t,e,r,n){t._verifyStructSize("LocalTime",S,e);r=t.unpackInteger(r);return U((0,p.nanoOfDayToLocalTime)(r),n)}(this,e,r,this._disableLosslessIntegers,this._useBigInt):t===E?function(t,e,r,n,o){t._verifyStructSize("Time",P,e);e=t.unpackInteger(r),r=t.unpackInteger(r),e=(0,p.nanoOfDayToLocalTime)(e);return U(new f.Time(e.hour,e.minute,e.second,e.nanosecond,r),n,o)}(this,e,r,this._disableLosslessIntegers,this._useBigInt):t===j?function(t,e,r,n,o){t._verifyStructSize("Date",T,e);r=t.unpackInteger(r);return U((0,p.epochDayToDate)(r),n,o)}(this,e,r,this._disableLosslessIntegers,this._useBigInt):t===C?function(t,e,r,n,o){t._verifyStructSize("LocalDateTime",x,e);e=t.unpackInteger(r),r=t.unpackInteger(r);return U((0,p.epochSecondAndNanoToLocalDateTime)(e,r),n,o)}(this,e,r,this._disableLosslessIntegers,this._useBigInt):t===l.DATE_TIME_WITH_ZONE_OFFSET&&this.useUtc?l.unpackDateTimeWithZoneOffset(this,e,r,this._disableLosslessIntegers,this._useBigInt):t!==I||this.useUtc?t===l.DATE_TIME_WITH_ZONE_ID&&this.useUtc?l.unpackDateTimeWithZoneId(this,e,r,this._disableLosslessIntegers,this._useBigInt):t!==R||this.useUtc?M.prototype._unpackUnknownStruct.call(this,t,e,r,this._disableLosslessIntegers,this._useBigInt):function(t,e,r,n,o){t._verifyStructSize("DateTimeWithZoneId",k,e);var i=t.unpackInteger(r),e=t.unpackInteger(r),r=t.unpack(r),e=(0,p.epochSecondAndNanoToLocalDateTime)(i,e);return U(new f.DateTime(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond,null,r),n,o)}(this,e,r,this._disableLosslessIntegers,this._useBigInt):function(t,e,r,n,o){t._verifyStructSize("DateTimeWithZoneOffset",A,e);var i=t.unpackInteger(r),e=t.unpackInteger(r),r=t.unpackInteger(r),e=(0,p.epochSecondAndNanoToLocalDateTime)(i,e);return U(new f.DateTime(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond,r,null),n,o)}(this,e,r,this._disableLosslessIntegers,this._useBigInt);var n,o,i},D);function D(t,e){return M.call(this,t=void 0===t?!1:t,e=void 0===e?!1:e)||this}function U(t,e,r){if(!e&&!r)return t;var n,o,i,s=Object.create(Object.getPrototypeOf(t));for(n in t)t.hasOwnProperty(n)&&(o=t[n],s[n]=(0,f.isInt)(o)?(i=o,r?i.toBigInt():i.toNumberOrInfinity()):o);return Object.freeze(s),s}r.Unpacker=o},{"./packstream-utc":44,"./packstream-v1":45,"./temporal-factory":47,"neo4j-driver-core":60}],47:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.epochSecondAndNanoToLocalDateTime=r.nanoOfDayToLocalTime=r.epochDayToDate=void 0;var o=t("neo4j-driver-core"),t=o.internal.temporalUtil,i=t.DAYS_0000_TO_1970,s=t.DAYS_PER_400_YEAR_CYCLE,u=t.NANOS_PER_HOUR,a=t.NANOS_PER_MINUTE,c=t.NANOS_PER_SECOND,n=t.SECONDS_PER_DAY,l=t.floorDiv,f=t.floorMod;function p(t){var e=(t=(0,o.int)(t)).add(i).subtract(60),r=(0,o.int)(0);e.lessThan(0)&&(r=(n=e.add(1).div(s).subtract(1)).multiply(400),e=e.add(n.multiply(-s)));var t=e.multiply(400).add(591).div(s),n=e.subtract(t.multiply(365).add(t.div(4)).subtract(t.div(100)).add(t.div(400)));n.lessThan(0)&&(t=t.subtract(1),n=e.subtract(t.multiply(365).add(t.div(4)).subtract(t.div(100)).add(t.div(400))));t=t.add(r),e=n,r=e.multiply(5).add(2).div(153),n=r.add(2).modulo(12).add(1),e=e.subtract(r.multiply(306).add(5).div(10)).add(1);return t=t.add(r.div(10)),new o.Date(t,n,e)}function h(t){var e=(t=(0,o.int)(t)).div(u),r=(t=t.subtract(e.multiply(u))).div(a),n=(t=t.subtract(r.multiply(a))).div(c),t=t.subtract(n.multiply(c));return new o.LocalTime(e,r,n,t)}r.epochDayToDate=p,r.nanoOfDayToLocalTime=h,r.epochSecondAndNanoToLocalDateTime=function(t,e){var r=l(t,n),e=f(t,n).multiply(c).add(e),r=p(r),e=h(e);return new o.LocalDateTime(r.year,r.month,r.day,e.hour,e.minute,e.second,e.nanosecond)}},{"neo4j-driver-core":60}],48:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_MAX_SIZE=r.DEFAULT_ACQUISITION_TIMEOUT=r.PoolConfig=r.Pool=void 0;var u=i(t("./pool-config"));r.PoolConfig=u.default,Object.defineProperty(r,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return u.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(r,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return u.DEFAULT_MAX_SIZE}});t=s(t("./pool"));r.Pool=t.default,r.default=t.default},{"./pool":50,"./pool-config":49}],49:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_ACQUISITION_TIMEOUT=r.DEFAULT_MAX_SIZE=void 0;r.DEFAULT_MAX_SIZE=100;r.DEFAULT_ACQUISITION_TIMEOUT=6e4;var n=(o.defaultConfig=function(){return new o(100,6e4)},o.fromDriverConfig=function(t){return new o(s(t.maxConnectionPoolSize)?t.maxConnectionPoolSize:100,s(t.connectionAcquisitionTimeout)?t.connectionAcquisitionTimeout:6e4)},o);function o(t,e){this.maxSize=i(t,100),this.acquisitionTimeout=i(e,6e4)}function i(t,e){return 0===t||t?t:e}function s(t){return 0===t||t}r.default=n},{}],50:[function(t,e,r){"use strict";var o=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},l=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var u=n(t("./pool-config")),a=t("neo4j-driver-core"),c=a.internal.logger.Logger,t=(i.prototype.acquire=function(s){var u=this;return this._acquire(s).then(function(t){var o=s.asKey();if(t)return t;var i=u._acquireRequests;return i[o]||(i[o]=[]),new Promise(function(t,e){var r=setTimeout(function(){var t,e=i[o];e&&(i[o]=e.filter(function(t){return t!==n})),n.isCompleted()||(t=u.activeResourceCount(s),e=u.has(s)?u._pools[o].length:0,n.reject((0,a.newError)("Connection acquisition timed out in "+u._acquisitionTimeout+" ms. Pool status: Active conn count = "+t+", Idle conn count = "+e+".")))},u._acquisitionTimeout),n=new p(o,t,e,r,u._log);i[o].push(n)})})},i.prototype.purge=function(t){return this._purgeKey(t.asKey())},i.prototype.close=function(){return o(this,void 0,void 0,function(){var e=this;return l(this,function(t){switch(t.label){case 0:return this._closed=!0,[4,Promise.all(Object.keys(this._pools).map(function(t){return e._purgeKey(t)}))];case 1:return[2,t.sent()]}})})},i.prototype.keepAll=function(t){var e=this,r=t.map(function(t){return t.asKey()}),t=Object.keys(this._pools).filter(function(t){return-1===r.indexOf(t)});return Promise.all(t.map(function(t){return e._purgeKey(t)}))},i.prototype.has=function(t){return t.asKey()in this._pools},i.prototype.activeResourceCount=function(t){return this._activeResourceCounts[t.asKey()]||0},i.prototype._acquire=function(u){return o(this,void 0,void 0,function(){var e,r,n,o,i,s=this;return l(this,function(t){switch(t.label){case 0:if(this._closed)throw(0,a.newError)("Pool is closed, it is no more able to serve requests.");e=u.asKey(),r=this._pools[e],n=this._poolState[e],r||(r=[],n=new h,this._pools[e]=r,this._pendingCreates[e]=0,this._poolState[e]=n),t.label=1;case 1:return r.length?(o=r.pop(),this._validate(o)?(this._removeIdleObserver&&this._removeIdleObserver(o),f(e,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug(o+" acquired from the pool "+e),[2,o]):[3,2]):[3,5];case 2:return[4,this._destroy(o)];case 3:t.sent(),t.label=4;case 4:return[3,1];case 5:if(0<this._maxSize&&this.activeResourceCount(u)+this._pendingCreates[e]>=this._maxSize)return[2,null];this._pendingCreates[e]=this._pendingCreates[e]+1,t.label=6;case 6:return t.trys.push([6,,8,9]),[4,this._create(u,function(t,e){return s._release(n,t,e)})];case 7:return i=t.sent(),f(e,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug(i+" created for the pool "+e),[3,9];case 8:return this._pendingCreates[e]=this._pendingCreates[e]-1,[7];case 9:return[2,i]}})})},i.prototype._release=function(u,a,c){return o(this,void 0,void 0,function(){var o,i,s=this;return l(this,function(t){switch(t.label){case 0:return(o=a.asKey(),(i=this._pools[o])&&u&&u.isActive())?this._validate(c)?[3,2]:(this._log.isDebugEnabled()&&this._log.debug(c+" destroyed and can't be released to the pool "+o+" because it is not functional"),[4,this._destroy(c)]):[3,4];case 1:return t.sent(),[3,3];case 2:this._installIdleObserver&&this._installIdleObserver(c,{onError:function(t){s._log.debug("Idle connection "+c+" destroyed because of error: "+t);t=s._pools[o];t&&(s._pools[o]=t.filter(function(t){return t!==c})),s._destroy(c).catch(function(){})}}),i.push(c),this._log.isDebugEnabled()&&this._log.debug(c+" released to the pool "+o),t.label=3;case 3:return[3,6];case 4:return this._log.isDebugEnabled()&&this._log.debug(c+" destroyed and can't be released to the pool "+o+" because pool has been purged"),[4,this._destroy(c)];case 5:t.sent(),t.label=6;case 6:return e=o,r=this._activeResourceCounts,0<(n=(r[e]||0)-1)?r[e]=n:delete r[e],this._processPendingAcquireRequests(a),[2]}var e,r,n})})},i.prototype._purgeKey=function(n){return o(this,void 0,void 0,function(){var e,r;return l(this,function(t){switch(t.label){case 0:r=this._pools[n]||[],e=this._poolState[n]||new h,t.label=1;case 1:return r.length?(r=r.pop(),this._removeIdleObserver&&this._removeIdleObserver(r),[4,this._destroy(r)]):[3,3];case 2:return t.sent(),[3,1];case 3:return e.close(),delete this._pools[n],delete this._poolState[n],[2]}})})},i.prototype._processPendingAcquireRequests=function(e){var r,n=this,t=e.asKey(),o=this._acquireRequests[t],i=this._poolState[t];o&&((r=o.shift())?this._acquire(e).catch(function(t){return r.reject(t),null}).then(function(t){t&&(r.isCompleted()?n._release(i,e,t):r.resolve(t))}):delete this._acquireRequests[t])},i);function i(t){var e=void 0===t?{}:t,r=e.create,n=void 0===r?function(t,e){return Promise.resolve()}:r,o=e.destroy,i=void 0===o?function(t){return Promise.resolve()}:o,s=e.validate,t=void 0===s?function(t){return!0}:s,r=e.installIdleObserver,o=void 0===r?function(t,e){}:r,s=e.removeIdleObserver,r=void 0===s?function(t){}:s,s=e.config,s=void 0===s?u.default.defaultConfig():s,e=e.log,e=void 0===e?c.noOp():e;this._create=n,this._destroy=i,this._validate=t,this._installIdleObserver=o,this._removeIdleObserver=r,this._maxSize=s.maxSize,this._acquisitionTimeout=s.acquisitionTimeout,this._pools={},this._pendingCreates={},this._acquireRequests={},this._activeResourceCounts={},this._poolState={},this._release=this._release.bind(this),this._log=e,this._closed=!1}function f(t,e){var r=e[t]||0;e[t]=r+1}var p=(s.prototype.isCompleted=function(){return this._completed},s.prototype.resolve=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug(t+" acquired from the pool "+this._key),this._resolve(t))},s.prototype.reject=function(t){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(t))},s);function s(t,e,r,n,o){this._key=t,this._resolve=e,this._reject=r,this._timeoutId=n,this._log=o,this._completed=!1}var h=(d.prototype.isActive=function(){return this._active},d.prototype.close=function(){this._active=!1},d);function d(){this._active=!0}r.default=t},{"./pool-config":49,"neo4j-driver-core":60}],51:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingTable=r.Rediscovery=void 0;var o=n(t("./rediscovery"));r.Rediscovery=o.default;t=n(t("./routing-table"));r.RoutingTable=t.default,r.default=o.default},{"./rediscovery":52,"./routing-table":53}],52:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s=n(t("./routing-table")),a=t("../bolt"),c=t("neo4j-driver-core"),l=c.error.SERVICE_UNAVAILABLE,t=(o.prototype.lookupRoutingTableOnRouter=function(e,r,n,o){var i=this;return e._acquireConnection(function(t){return i._requestRawRoutingTable(t,e,r,n,o).then(function(t){return t.isNull?null:s.default.fromRawRoutingTable(r,n,t)})})},o.prototype._requestRawRoutingTable=function(t,n,o,i,s){var u=this;return new Promise(function(e,r){t.protocol().requestRoutingInformation({routingContext:u._routingContext,databaseName:o,impersonatedUser:s,sessionContext:{bookmark:n._lastBookmark,mode:n._mode,database:n._database,afterComplete:n._onComplete},onCompleted:e,onError:function(t){"Neo.ClientError.Database.DatabaseNotFound"===t.code?r(t):"Neo.ClientError.Procedure.ProcedureNotFound"===t.code?r((0,c.newError)("Server at "+i.asHostPort()+" can't perform routing. Make sure you are connecting to a causal cluster",l)):e(a.RawRoutingTable.ofNull())}})})},o);function o(t){this._routingContext=t}r.default=t},{"../bolt":12,"./routing-table":53,"neo4j-driver-core":60}],53:[function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s},o=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||((n=n||Array.prototype.slice.call(e,0,o))[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(r,"__esModule",{value:!0}),r.createValidRoutingTable=void 0;var a=t("neo4j-driver-core"),t=a.internal.constants,i=t.ACCESS_MODE_WRITE,s=t.ACCESS_MODE_READ,c=a.internal.serverAddress.ServerAddress,l=a.error.PROTOCOL_ERROR,f=(u.fromRawRoutingTable=h,u.prototype.forget=function(t){this.readers=p(this.readers,t),this.writers=p(this.writers,t)},u.prototype.forgetRouter=function(t){this.routers=p(this.routers,t)},u.prototype.forgetWriter=function(t){this.writers=p(this.writers,t)},u.prototype.isStaleFor=function(t){return this.expirationTime.lessThan(Date.now())||this.routers.length<1||t===s&&0===this.readers.length||t===i&&0===this.writers.length},u.prototype.isExpiredFor=function(t){return this.expirationTime.add(t).lessThan(Date.now())},u.prototype.allServers=function(){return o(o(o([],n(this.routers),!1),n(this.readers),!1),n(this.writers),!1)},u.prototype.toString=function(){return"RoutingTable[database="+this.databaseName+", expirationTime="+this.expirationTime+", currentTime="+Date.now()+", routers=["+this.routers+"], readers=["+this.readers+"], writers=["+this.writers+"]]"},u);function u(t){var e=void 0===t?{}:t,r=e.database,n=e.routers,o=e.readers,i=e.writers,t=e.expirationTime,e=e.ttl;this.database=r||null,this.databaseName=r||"default database",this.routers=n||[],this.readers=o||[],this.writers=i||[],this.expirationTime=t||(0,a.int)(0),this.ttl=e}function p(t,e){return t.filter(function(t){return t.asKey()!==e.asKey()})}function h(t,e,r){var n=r.ttl,o=function(e,r){try{var t=(0,a.int)(Date.now()),n=(0,a.int)(e.ttl).multiply(1e3).add(t);return n.lessThan(t)?a.Integer.MAX_VALUE:n}catch(t){throw(0,a.newError)("Unable to parse TTL entry from router "+r+" from raw routing table:\n"+a.json.stringify(e)+"\nError message: "+t.message,l)}}(r,e),i=function(e,r){try{var n=[],o=[],i=[];return e.servers.forEach(function(t){var e=t.role,t=t.addresses;"ROUTE"===e?n=b(t).map(function(t){return c.fromUrl(t)}):"WRITE"===e?i=b(t).map(function(t){return c.fromUrl(t)}):"READ"===e&&(o=b(t).map(function(t){return c.fromUrl(t)}))}),{routers:n,readers:o,writers:i}}catch(t){throw(0,a.newError)("Unable to parse servers entry from router "+r+" from addresses:\n"+a.json.stringify(e.servers)+"\nError message: "+t.message,l)}}(r,e),s=i.routers,u=i.readers,i=i.writers;return d(s,"routers",e),d(u,"readers",e),new f({database:t||r.db,routers:s,readers:u,writers:i,expirationTime:o,ttl:n})}function d(t,e,r){if(0===t.length)throw(0,a.newError)("Received no "+e+" from router "+r,l)}function b(t){if(!Array.isArray(t))throw new TypeError("Array expected but got: "+t);return Array.from(t)}r.default=f,r.createValidRoutingTable=h},{"neo4j-driver-core":60}],54:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default={basic:function(t,e,r){return r?{scheme:"basic",principal:t,credentials:e,realm:r}:{scheme:"basic",principal:t,credentials:e}},kerberos:function(t){return{scheme:"kerberos",principal:"",credentials:t}},bearer:function(t){return{scheme:"bearer",credentials:t}},custom:function(t,e,r,n,o){return o?{scheme:n,principal:t,credentials:e,realm:r,parameters:o}:{scheme:n,principal:t,credentials:e,realm:r}}}},{}],55:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.acquireConnection=function(t){throw Error("Not implemented")},o.prototype.supportsMultiDb=function(){throw Error("Not implemented")},o.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},o.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},o.prototype.close=function(){throw Error("Not implemented")},o);function o(){}r.default=n},{}],56:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.isOpen=function(){return!1},o.prototype.protocol=function(){throw Error("Not implemented")},o.prototype.connect=function(t,e){throw Error("Not implemented")},o.prototype.write=function(t,e,r){throw Error("Not implemented")},o.prototype.resetAndFlush=function(){throw Error("Not implemented")},o.prototype.close=function(){throw Error("Not implemented")},o.prototype._release=function(){return Promise.resolve()},o);function o(){this.id="",this.databaseId=""}r.default=n},{}],57:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.WRITE=r.READ=r.Driver=void 0;var u=t("./internal/bookmark"),o=t("./internal/connectivity-verifier"),i=n(t("./internal/resolver/configured-custom-resolver")),s=t("./internal/constants"),a=t("./internal/logger"),c=n(t("./session")),l=t("./internal/util"),f=36e5,p=1e3,t=s.ACCESS_MODE_READ;r.READ=t;var h=s.ACCESS_MODE_WRITE;r.WRITE=h;var d=0,t=(b.prototype.verifyConnectivity=function(t){var e=(void 0===t?{}:t).database,t=void 0===e?"":e,e=this._getOrCreateConnectionProvider();return new o.ConnectivityVerifier(e).verify({database:t})},b.prototype.supportsMultiDb=function(){return this._getOrCreateConnectionProvider().supportsMultiDb()},b.prototype.supportsTransactionConfig=function(){return this._getOrCreateConnectionProvider().supportsTransactionConfig()},b.prototype.supportsUserImpersonation=function(){return this._getOrCreateConnectionProvider().supportsUserImpersonation()},b.prototype._supportsRouting=function(){return this._meta.routing},b.prototype._isEncrypted=function(){return this._config.encrypted===l.ENCRYPTION_ON},b.prototype._getTrust=function(){return this._config.trust},b.prototype.session=function(t){var e=void 0===t?{}:t,r=e.defaultAccessMode,n=e.bookmarks,o=e.database,t=e.impersonatedUser,e=e.fetchSize;return this._newSession({defaultAccessMode:void 0===r?h:r,bookmarkOrBookmarks:n,database:void 0===o?"":o,reactive:!1,impersonatedUser:t,fetchSize:y(e,this._config.fetchSize)})},b.prototype.close=function(){return this._log.info("Driver "+this._id+" closing"),this._connectionProvider?this._connectionProvider.close():Promise.resolve()},b.prototype._afterConstruction=function(){this._log.info(this._meta.typename+" driver "+this._id+" created for server address "+this._meta.address)},b.prototype._newSession=function(t){var e=t.defaultAccessMode,r=t.bookmarkOrBookmarks,n=t.database,o=t.reactive,i=t.impersonatedUser,s=t.fetchSize,t=c.default._validateSessionMode(e),e=this._getOrCreateConnectionProvider(),r=r?new u.Bookmark(r):u.Bookmark.empty();return this._createSession({mode:t,database:n||"",connectionProvider:e,bookmark:r,config:this._config,reactive:o,impersonatedUser:i,fetchSize:s})},b.prototype._getOrCreateConnectionProvider=function(){var t;return this._connectionProvider||(this._connectionProvider=this._createConnectionProvider(this._id,this._config,this._log,(t=this._config,new i.default(t.resolver)))),this._connectionProvider},b);function b(t,e,r,n){var o;void 0===n&&(n=function(t){return new c.default(t)}),(o=e=void 0===e?{}:e).maxConnectionLifetime=_(o.maxConnectionLifetime,f),o.maxConnectionPoolSize=_(o.maxConnectionPoolSize,s.DEFAULT_POOL_MAX_SIZE),o.connectionAcquisitionTimeout=_(o.connectionAcquisitionTimeout,s.DEFAULT_POOL_ACQUISITION_TIMEOUT),o.fetchSize=y(o.fetchSize,p),function(t){var e=t.resolver;if(e&&"function"!=typeof e)throw new TypeError("Configured resolver should be a function. Got: "+e)}(e),this._id=d++,this._meta=t,this._config=e,this._log=a.Logger.create(e),this._createConnectionProvider=r,this._createSession=n,this._connectionProvider=null,this._afterConstruction()}function _(t,e){t=parseInt(t,10);return 0<t||0===t?t:t<0?Number.MAX_SAFE_INTEGER:e}function y(t,e){t=parseInt(t,10);if(0<t||t===s.FETCH_ALL)return t;if(0===t||t<0)throw new Error("The fetch size can only be a positive value or "+s.FETCH_ALL+" for ALL. However fetchSize = "+t);return e}r.Driver=t,r.default=t},{"./internal/bookmark":62,"./internal/connectivity-verifier":64,"./internal/constants":65,"./internal/logger":67,"./internal/resolver/configured-custom-resolver":71,"./internal/util":79,"./session":84}],58:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0}),r.PROTOCOL_ERROR=r.SESSION_EXPIRED=r.SERVICE_UNAVAILABLE=r.Neo4jError=r.newError=void 0;r.SERVICE_UNAVAILABLE="ServiceUnavailable";r.SESSION_EXPIRED="SessionExpired";r.PROTOCOL_ERROR="ProtocolError";var i,s="N/A",u=(i=Error,o(a,i),a);function a(t,e){t=i.call(this,t)||this;return t.constructor=a,t.__proto__=a.prototype,t.code=e,t.name="Neo4jError",t}r.Neo4jError=u,r.newError=function(t,e){return new u(t,null!=e?e:s)}},{}],59:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPathSegment=r.PathSegment=r.isPath=r.Path=r.isUnboundRelationship=r.UnboundRelationship=r.isRelationship=r.Relationship=r.isNode=r.Node=void 0;var n=t("./json"),o={value:!0,enumerable:!1,configurable:!1,writable:!1},i="__isNode__",s="__isRelationship__",u="__isUnboundRelationship__",a="__isPath__",c="__isPathSegment__";function l(t,e){return!0===(t&&t[e])}f.prototype.toString=function(){for(var t="("+this.identity,e=0;e<this.labels.length;e++)t+=":"+this.labels[e];var r=Object.keys(this.properties);if(0<r.length){t+=" {";for(e=0;e<r.length;e++)0<e&&(t+=","),t+=r[e]+":"+(0,n.stringify)(this.properties[r[e]]);t+="}"}return t+=")"},t=f;function f(t,e,r){this.identity=t,this.labels=e,this.properties=r}r.Node=t,Object.defineProperty(t.prototype,i,o),r.isNode=function(t){return l(t,i)};var p=(h.prototype.toString=function(){var t="("+this.start+")-[:"+this.type,e=Object.keys(this.properties);if(0<e.length){t+=" {";for(var r=0;r<e.length;r++)0<r&&(t+=","),t+=e[r]+":"+(0,n.stringify)(this.properties[e[r]]);t+="}"}return t+="]->("+this.end+")"},h);function h(t,e,r,n,o){this.identity=t,this.start=e,this.end=r,this.type=n,this.properties=o}r.Relationship=p,Object.defineProperty(p.prototype,s,o),r.isRelationship=function(t){return l(t,s)};d.prototype.bind=function(t,e){return new p(this.identity,t,e,this.type,this.properties)},d.prototype.toString=function(){var t="-[:"+this.type,e=Object.keys(this.properties);if(0<e.length){t+=" {";for(var r=0;r<e.length;r++)0<r&&(t+=","),t+=e[r]+":"+(0,n.stringify)(this.properties[e[r]]);t+="}"}return t+="]->"},t=d;function d(t,e,r){this.identity=t,this.type=e,this.properties=r}r.UnboundRelationship=t,Object.defineProperty(t.prototype,u,o),r.isUnboundRelationship=function(t){return l(t,u)};t=function(t,e,r){this.start=t,this.relationship=e,this.end=r};r.PathSegment=t,Object.defineProperty(t.prototype,c,o),r.isPathSegment=function(t){return l(t,c)};t=function(t,e,r){this.start=t,this.end=e,this.segments=r,this.length=r.length};r.Path=t,Object.defineProperty(t.prototype,a,o),r.isPath=function(t){return l(t,a)}},{"./json":80}],60:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.types=r.Driver=r.Session=r.Transaction=r.Connection=r.ConnectionProvider=r.Result=r.Stats=r.QueryStatistics=r.ProfiledPlan=r.Plan=r.Notification=r.ServerInfo=r.queryType=r.ResultSummary=r.Record=r.isPathSegment=r.PathSegment=r.isPath=r.Path=r.isUnboundRelationship=r.UnboundRelationship=r.isRelationship=r.Relationship=r.isNode=r.Node=r.Time=r.LocalTime=r.LocalDateTime=r.isTime=r.isLocalTime=r.isLocalDateTime=r.isDuration=r.isDateTime=r.isDate=r.Duration=r.DateTime=r.Date=r.Point=r.isPoint=r.internal=r.toString=r.toNumber=r.inSafeRange=r.isInt=r.int=r.Integer=r.error=r.Neo4jError=r.newError=void 0,r.auth=r.json=r.driver=void 0;var u=t("./error");Object.defineProperty(r,"newError",{enumerable:!0,get:function(){return u.newError}}),Object.defineProperty(r,"Neo4jError",{enumerable:!0,get:function(){return u.Neo4jError}});var a=i(t("./integer"));r.Integer=a.default,Object.defineProperty(r,"int",{enumerable:!0,get:function(){return a.int}}),Object.defineProperty(r,"isInt",{enumerable:!0,get:function(){return a.isInt}}),Object.defineProperty(r,"inSafeRange",{enumerable:!0,get:function(){return a.inSafeRange}}),Object.defineProperty(r,"toNumber",{enumerable:!0,get:function(){return a.toNumber}}),Object.defineProperty(r,"toString",{enumerable:!0,get:function(){return a.toString}});var c=t("./temporal-types");Object.defineProperty(r,"Date",{enumerable:!0,get:function(){return c.Date}}),Object.defineProperty(r,"DateTime",{enumerable:!0,get:function(){return c.DateTime}}),Object.defineProperty(r,"Duration",{enumerable:!0,get:function(){return c.Duration}}),Object.defineProperty(r,"isDate",{enumerable:!0,get:function(){return c.isDate}}),Object.defineProperty(r,"isDateTime",{enumerable:!0,get:function(){return c.isDateTime}}),Object.defineProperty(r,"isDuration",{enumerable:!0,get:function(){return c.isDuration}}),Object.defineProperty(r,"isLocalDateTime",{enumerable:!0,get:function(){return c.isLocalDateTime}}),Object.defineProperty(r,"isLocalTime",{enumerable:!0,get:function(){return c.isLocalTime}}),Object.defineProperty(r,"isTime",{enumerable:!0,get:function(){return c.isTime}}),Object.defineProperty(r,"LocalDateTime",{enumerable:!0,get:function(){return c.LocalDateTime}}),Object.defineProperty(r,"LocalTime",{enumerable:!0,get:function(){return c.LocalTime}}),Object.defineProperty(r,"Time",{enumerable:!0,get:function(){return c.Time}});var l=t("./graph-types");Object.defineProperty(r,"Node",{enumerable:!0,get:function(){return l.Node}}),Object.defineProperty(r,"isNode",{enumerable:!0,get:function(){return l.isNode}}),Object.defineProperty(r,"Relationship",{enumerable:!0,get:function(){return l.Relationship}}),Object.defineProperty(r,"isRelationship",{enumerable:!0,get:function(){return l.isRelationship}}),Object.defineProperty(r,"UnboundRelationship",{enumerable:!0,get:function(){return l.UnboundRelationship}}),Object.defineProperty(r,"isUnboundRelationship",{enumerable:!0,get:function(){return l.isUnboundRelationship}}),Object.defineProperty(r,"Path",{enumerable:!0,get:function(){return l.Path}}),Object.defineProperty(r,"isPath",{enumerable:!0,get:function(){return l.isPath}}),Object.defineProperty(r,"PathSegment",{enumerable:!0,get:function(){return l.PathSegment}}),Object.defineProperty(r,"isPathSegment",{enumerable:!0,get:function(){return l.isPathSegment}});var f=s(t("./record"));r.Record=f.default;var p=t("./spatial-types");Object.defineProperty(r,"isPoint",{enumerable:!0,get:function(){return p.isPoint}}),Object.defineProperty(r,"Point",{enumerable:!0,get:function(){return p.Point}});var h=i(t("./result-summary"));r.ResultSummary=h.default,Object.defineProperty(r,"queryType",{enumerable:!0,get:function(){return h.queryType}}),Object.defineProperty(r,"ServerInfo",{enumerable:!0,get:function(){return h.ServerInfo}}),Object.defineProperty(r,"Notification",{enumerable:!0,get:function(){return h.Notification}}),Object.defineProperty(r,"Plan",{enumerable:!0,get:function(){return h.Plan}}),Object.defineProperty(r,"ProfiledPlan",{enumerable:!0,get:function(){return h.ProfiledPlan}}),Object.defineProperty(r,"QueryStatistics",{enumerable:!0,get:function(){return h.QueryStatistics}}),Object.defineProperty(r,"Stats",{enumerable:!0,get:function(){return h.Stats}});var d=s(t("./result"));r.Result=d.default;var b=s(t("./connection-provider"));r.ConnectionProvider=b.default;var _=s(t("./connection"));r.Connection=_.default;var y=s(t("./transaction"));r.Transaction=y.default;var v=s(t("./session"));r.Session=v.default;var m=i(t("./driver")),g=m;r.Driver=m.default,r.driver=g;var O=s(t("./auth"));r.auth=O.default;b=i(t("./types"));r.types=b;s=i(t("./json"));r.json=s;i=i(t("./internal"));r.internal=i;t={SERVICE_UNAVAILABLE:u.SERVICE_UNAVAILABLE,SESSION_EXPIRED:u.SESSION_EXPIRED,PROTOCOL_ERROR:u.PROTOCOL_ERROR};r.error=t;O={newError:u.newError,Neo4jError:u.Neo4jError,error:t,Integer:a.default,int:a.int,isInt:a.isInt,inSafeRange:a.inSafeRange,toNumber:a.toNumber,toString:a.toString,internal:i,isPoint:p.isPoint,Point:p.Point,Date:c.Date,DateTime:c.DateTime,Duration:c.Duration,isDate:c.isDate,isDateTime:c.isDateTime,isDuration:c.isDuration,isLocalDateTime:c.isLocalDateTime,isLocalTime:c.isLocalTime,isTime:c.isTime,LocalDateTime:c.LocalDateTime,LocalTime:c.LocalTime,Time:c.Time,Node:l.Node,isNode:l.isNode,Relationship:l.Relationship,isRelationship:l.isRelationship,UnboundRelationship:l.UnboundRelationship,isUnboundRelationship:l.isUnboundRelationship,Path:l.Path,isPath:l.isPath,PathSegment:l.PathSegment,isPathSegment:l.isPathSegment,Record:f.default,ResultSummary:h.default,queryType:h.queryType,ServerInfo:h.ServerInfo,Notification:h.Notification,Plan:h.Plan,ProfiledPlan:h.ProfiledPlan,QueryStatistics:h.QueryStatistics,Stats:h.Stats,Result:d.default,Transaction:y.default,Session:v.default,Driver:m.default,Connection:_.default,types:b,driver:g,json:s,auth:O.default};r.default=O},{"./auth":54,"./connection":56,"./connection-provider":55,"./driver":57,"./error":58,"./graph-types":59,"./integer":61,"./internal":66,"./json":80,"./record":81,"./result":83,"./result-summary":82,"./session":84,"./spatial-types":85,"./temporal-types":86,"./transaction":87,"./types":88}],61:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toString=r.toNumber=r.inSafeRange=r.isInt=r.int=void 0;var h=t("./error"),n=new Map,o=(d.prototype.inSafeRange=function(){return this.greaterThanOrEqual(d.MIN_SAFE_VALUE)&&this.lessThanOrEqual(d.MAX_SAFE_VALUE)},d.prototype.toInt=function(){return this.low},d.prototype.toNumber=function(){return this.high*i+(this.low>>>0)},d.prototype.toBigInt=function(){if(this.isZero())return BigInt(0);if(this.isPositive())return BigInt(this.high>>>0)*BigInt(i)+BigInt(this.low>>>0);var t=this.negate();return BigInt(-1)*(BigInt(t.high>>>0)*BigInt(i)+BigInt(t.low>>>0))},d.prototype.toNumberOrInfinity=function(){return this.lessThan(d.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(d.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},d.prototype.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix out of range: "+t);if(this.isZero())return"0";if(this.isNegative()){if(this.equals(d.MIN_VALUE)){var e=d.fromNumber(t),r=this.div(e),n=r.multiply(e).subtract(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.negate().toString(t)}var o=d.fromNumber(Math.pow(t,6));n=this;for(var i="";;){var s=n.div(o),u=(n.subtract(s.multiply(o)).toInt()>>>0).toString(t);if((n=s).isZero())return u+i;for(;u.length<6;)u="0"+u;i=""+u+i}},d.prototype.getHighBits=function(){return this.high},d.prototype.getLowBits=function(){return this.low},d.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(d.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var t=0!==this.high?this.high:this.low,e=31;0<e&&0==(t&1<<e);e--);return 0!==this.high?e+33:e+1},d.prototype.isZero=function(){return 0===this.high&&0===this.low},d.prototype.isNegative=function(){return this.high<0},d.prototype.isPositive=function(){return 0<=this.high},d.prototype.isOdd=function(){return 1==(1&this.low)},d.prototype.isEven=function(){return 0==(1&this.low)},d.prototype.equals=function(t){t=d.fromValue(t);return this.high===t.high&&this.low===t.low},d.prototype.notEquals=function(t){return!this.equals(t)},d.prototype.lessThan=function(t){return this.compare(t)<0},d.prototype.lessThanOrEqual=function(t){return this.compare(t)<=0},d.prototype.greaterThan=function(t){return 0<this.compare(t)},d.prototype.greaterThanOrEqual=function(t){return 0<=this.compare(t)},d.prototype.compare=function(t){var e=d.fromValue(t);if(this.equals(e))return 0;var r=this.isNegative(),t=e.isNegative();return r&&!t||(r||!t)&&this.subtract(e).isNegative()?-1:1},d.prototype.negate=function(){return this.equals(d.MIN_VALUE)?d.MIN_VALUE:this.not().add(d.ONE)},d.prototype.add=function(t){var e=d.fromValue(t),r=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,u=65535&e.high,a=e.low>>>16,c=0,l=0,f=0,t=0;return f+=(t+=i+(65535&e.low))>>>16,l+=(f+=o+a)>>>16,c+=(l+=n+u)>>>16,c+=r+s,d.fromBits((f&=65535)<<16|(t&=65535),(c&=65535)<<16|(l&=65535))},d.prototype.subtract=function(t){t=d.fromValue(t);return this.add(t.negate())},d.prototype.multiply=function(t){if(this.isZero())return d.ZERO;var e=d.fromValue(t);if(e.isZero())return d.ZERO;if(this.equals(d.MIN_VALUE))return e.isOdd()?d.MIN_VALUE:d.ZERO;if(e.equals(d.MIN_VALUE))return this.isOdd()?d.MIN_VALUE:d.ZERO;if(this.isNegative())return e.isNegative()?this.negate().multiply(e.negate()):this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(p)&&e.lessThan(p))return d.fromNumber(this.toNumber()*e.toNumber());var r=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,u=65535&e.high,a=e.low>>>16,c=65535&e.low,l=0,f=0,t=0,e=0;return t+=(e+=i*c)>>>16,f+=(t+=o*c)>>>16,t&=65535,f+=(t+=i*a)>>>16,l+=(f+=n*c)>>>16,f&=65535,l+=(f+=o*a)>>>16,f&=65535,l+=(f+=i*u)>>>16,l+=r*c+n*a+o*u+i*s,d.fromBits((t&=65535)<<16|(e&=65535),(l&=65535)<<16|(f&=65535))},d.prototype.div=function(t){var e,r,n,o=d.fromValue(t);if(o.isZero())throw(0,h.newError)("division by zero");if(this.isZero())return d.ZERO;{if(this.equals(d.MIN_VALUE))return o.equals(d.ONE)||o.equals(d.NEG_ONE)?d.MIN_VALUE:o.equals(d.MIN_VALUE)?d.ONE:(n=this.shiftRight(1).div(o).shiftLeft(1)).equals(d.ZERO)?o.isNegative()?d.ONE:d.NEG_ONE:(e=this.subtract(o.multiply(n)),r=n.add(e.div(o)));if(o.equals(d.MIN_VALUE))return d.ZERO}if(this.isNegative())return o.isNegative()?this.negate().div(o.negate()):this.negate().div(o).negate();if(o.isNegative())return this.div(o.negate()).negate();for(r=d.ZERO,e=this;e.greaterThanOrEqual(o);){n=Math.max(1,Math.floor(e.toNumber()/o.toNumber()));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Math.pow(2,i-48),u=d.fromNumber(n),a=u.multiply(o);a.isNegative()||a.greaterThan(e);)a=(u=d.fromNumber(n-=s)).multiply(o);u.isZero()&&(u=d.ONE),r=r.add(u),e=e.subtract(a)}return r},d.prototype.modulo=function(t){t=d.fromValue(t);return this.subtract(this.div(t).multiply(t))},d.prototype.not=function(){return d.fromBits(~this.low,~this.high)},d.prototype.and=function(t){t=d.fromValue(t);return d.fromBits(this.low&t.low,this.high&t.high)},d.prototype.or=function(t){t=d.fromValue(t);return d.fromBits(this.low|t.low,this.high|t.high)},d.prototype.xor=function(t){t=d.fromValue(t);return d.fromBits(this.low^t.low,this.high^t.high)},d.prototype.shiftLeft=function(t){t=d.toNumber(t);return 0==(t&=63)?d.ZERO:t<32?d.fromBits(this.low<<t,this.high<<t|this.low>>>32-t):d.fromBits(0,this.low<<t-32)},d.prototype.shiftRight=function(t){var e=d.toNumber(t);return 0==(e&=63)?d.ZERO:t<32?d.fromBits(this.low>>>e|this.high<<32-e,this.high>>e):d.fromBits(this.high>>e-32,0<=this.high?0:-1)},d.isInteger=function(t){return!0===(t&&t.__isInteger__)},d.fromInt=function(t){var e;return-128<=(t|=0)&&t<128&&(e=n.get(t))||(e=new d(t,t<0?-1:0),-128<=t&&t<128&&n.set(t,e)),e},d.fromBits=function(t,e){return new d(t,e)},d.fromNumber=function(t){return isNaN(t)||!isFinite(t)?d.ZERO:t<=-s?d.MIN_VALUE:s<=t+1?d.MAX_VALUE:t<0?d.fromNumber(-t).negate():new d(t%i|0,t/i|0)},d.fromString=function(t,e,r){var n=(void 0===r?{}:r).strictStringValidation;if(0===t.length)throw(0,h.newError)("number format error: empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d.ZERO;if((e=e||10)<2||36<e)throw(0,h.newError)("radix out of range: "+e);if(0<(r=t.indexOf("-")))throw(0,h.newError)('number format error: interior "-" character: '+t);if(0===r)return d.fromString(t.substring(1),e).negate();for(var o,i,s,u=d.fromNumber(Math.pow(e,8)),a=d.ZERO,c=0;c<t.length;c+=8){var l=Math.min(8,t.length-c),f=t.substring(c,c+l),p=parseInt(f,e);if(!0===n&&(o=f,i=p,s=e,Number.isNaN(o)||Number.isNaN(i)||function(t,e,r){e=t.toString(e),r=Math.max(r-e.length,0);return""+"0".repeat(r)+e}(i,s,o.length)!==o.toLowerCase()))throw(0,h.newError)('number format error: "'+f+'" is NaN in radix '+e+": "+t);a=l<8?(l=d.fromNumber(Math.pow(e,l)),a.multiply(l).add(d.fromNumber(p))):(a=a.multiply(u)).add(d.fromNumber(p))}return a},d.fromValue=function(t,e){return void 0===e&&(e={}),t instanceof d?t:"number"==typeof t?d.fromNumber(t):"string"==typeof t?d.fromString(t,void 0,e):"bigint"==typeof t?d.fromString(t.toString()):new d(t.low,t.high)},d.toNumber=function(t){switch(typeof t){case"number":return t;case"bigint":return Number(t);default:return d.fromValue(t).toNumber()}},d.toString=function(t,e){return d.fromValue(t).toString(e)},d.inSafeRange=function(t){return d.fromValue(t).inSafeRange()},d.ZERO=d.fromInt(0),d.ONE=d.fromInt(1),d.NEG_ONE=d.fromInt(-1),d.MAX_VALUE=d.fromBits(-1,2147483647),d.MIN_VALUE=d.fromBits(0,-2147483648),d.MIN_SAFE_VALUE=d.fromBits(1,-2097152),d.MAX_SAFE_VALUE=d.fromBits(-1,2097151),d.__isInteger__=!0,d);function d(t,e){this.low=t||0,this.high=e||0}Object.defineProperty(o.prototype,"__isInteger__",{value:!0,enumerable:!1,configurable:!1});var i=4294967296,s=i*i/2,p=o.fromInt(1<<24),t=o.fromValue;r.int=t;t=o.isInteger;r.isInt=t;t=o.inSafeRange;r.inSafeRange=t;t=o.toNumber;r.toNumber=t;t=o.toString;r.toString=t,r.default=o},{"./error":58}],62:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.Bookmark=void 0;var s=i(t("./util")),t=(u.empty=function(){return a},u.prototype.isEmpty=function(){return 0===this._values.length},u.prototype.values=function(){return this._values},u.prototype.asBeginTransactionParameters=function(){var t;return this.isEmpty()?{}:((t={}).bookmarks=this._values,t)},u);function u(t){this._values=function(t){if(!t)return[];if(s.isString(t))return[t];if(Array.isArray(t)){for(var e=[],r=function r(t){return t.reduce(function(t,e){return Array.isArray(e)?t.concat(r(e)):t.concat(e)},[])}(t),n=0;n<r.length;n++){var o=r[n];if(null!=o){if(!s.isString(o))throw new TypeError("Bookmark value should be a string, given: '"+o+"'");e.push(o)}}return e}throw new TypeError("Bookmark should either be a string or a string array, given: '"+t+"'")}(t)}var a=new(r.Bookmark=t)(null)},{"./util":79}],63:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0}),r.EMPTY_CONNECTION_HOLDER=r.ReadOnlyConnectionHolder=r.ConnectionHolder=void 0;var i=t("../error"),s=t("./util"),u=t("./constants"),a=t("./bookmark"),c=(l.prototype.mode=function(){return this._mode},l.prototype.database=function(){return this._database},l.prototype.setDatabase=function(t){this._database=t},l.prototype.bookmark=function(){return this._bookmark},l.prototype.connectionProvider=function(){return this._connectionProvider},l.prototype.referenceCount=function(){return this._referenceCount},l.prototype.initializeConnection=function(){return 0===this._referenceCount&&this._connectionProvider?(this._connectionPromise=this._connectionProvider.acquireConnection({accessMode:this._mode,database:this._database,bookmarks:this._bookmark,impersonatedUser:this._impersonatedUser,onDatabaseNameResolved:this._onDatabaseNameResolved}),this._referenceCount++,!0):(this._referenceCount++,!1)},l.prototype.getConnection=function(){return this._connectionPromise},l.prototype.releaseConnection=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount--,0===this._referenceCount?this._releaseConnection():this._connectionPromise)},l.prototype.close=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount=0,this._releaseConnection())},l.prototype._releaseConnection=function(){return this._connectionPromise=this._connectionPromise.then(function(t){return t?t.isOpen()?t.resetAndFlush().catch(b).then(function(){return t._release()}):t._release():Promise.resolve()}).catch(b),this._connectionPromise},l);function l(t){var e=void 0===t?{}:t,r=e.mode,n=void 0===r?u.ACCESS_MODE_WRITE:r,o=e.database,i=void 0===o?"":o,t=e.bookmark,r=e.connectionProvider,o=e.impersonatedUser,e=e.onDatabaseNameResolved;this._mode=n,this._database=i?(0,s.assertString)(i,"database"):"",this._bookmark=t||a.Bookmark.empty(),this._connectionProvider=r,this._impersonatedUser=o,this._referenceCount=0,this._connectionPromise=Promise.resolve(),this._onDatabaseNameResolved=e}r.ConnectionHolder=c;var f,p,t=(o(h,f=c),h.prototype.initializeConnection=function(){return 0!==this._connectionHolder.referenceCount()},h.prototype.getConnection=function(){return this._connectionHolder.getConnection()},h.prototype.releaseConnection=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve()})},h.prototype.close=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve()})},h);function h(t){var e=f.call(this,{mode:t.mode(),database:t.database(),bookmark:t.bookmark(),connectionProvider:t.connectionProvider()})||this;return e._connectionHolder=t,e}function d(){return null!==p&&p.apply(this,arguments)||this}r.ReadOnlyConnectionHolder=t,r.default=t;c=new(o(d,p=c),d.prototype.mode=function(){},d.prototype.database=function(){},d.prototype.initializeConnection=function(){return!0},d.prototype.getConnection=function(){return Promise.reject((0,i.newError)("This connection holder does not serve connections"))},d.prototype.releaseConnection=function(){return Promise.resolve()},d.prototype.close=function(){return Promise.resolve()},d);function b(t){}r.EMPTY_CONNECTION_HOLDER=c},{"../error":58,"./bookmark":62,"./constants":65,"./util":79}],64:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectivityVerifier=void 0;var n=t("./connection-holder"),o=t("./constants"),i=t("../error"),t=(s.prototype.verify=function(t){var e,r=(void 0===t?{}:t).database;return t=this._connectionProvider,r=void 0===r?"":r,(e=new n.ConnectionHolder({mode:o.ACCESS_MODE_READ,database:r,connectionProvider:t})).initializeConnection(),e.getConnection().then(function(t){if(!t)throw(0,i.newError)("Unexpected error acquiring transaction");return e.close().then(function(){return t.server})}).catch(function(t){return e.close().catch(function(t){}).then(function(){return Promise.reject(t)})})},s);function s(t){this._connectionProvider=t}r.ConnectivityVerifier=t},{"../error":58,"./connection-holder":63,"./constants":65}],65:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BOLT_PROTOCOL_V4_4=r.BOLT_PROTOCOL_V4_3=r.BOLT_PROTOCOL_V4_2=r.BOLT_PROTOCOL_V4_1=r.BOLT_PROTOCOL_V4_0=r.BOLT_PROTOCOL_V3=r.BOLT_PROTOCOL_V2=r.BOLT_PROTOCOL_V1=r.DEFAULT_POOL_MAX_SIZE=r.DEFAULT_POOL_ACQUISITION_TIMEOUT=r.ACCESS_MODE_WRITE=r.ACCESS_MODE_READ=r.FETCH_ALL=void 0;r.FETCH_ALL=-1;r.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4;r.DEFAULT_POOL_MAX_SIZE=100;r.ACCESS_MODE_READ="READ";r.ACCESS_MODE_WRITE="WRITE";r.BOLT_PROTOCOL_V1=1;r.BOLT_PROTOCOL_V2=2;r.BOLT_PROTOCOL_V3=3;r.BOLT_PROTOCOL_V4_0=4;r.BOLT_PROTOCOL_V4_1=4.1;r.BOLT_PROTOCOL_V4_2=4.2;r.BOLT_PROTOCOL_V4_3=4.3;r.BOLT_PROTOCOL_V4_4=4.4},{}],66:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.objectUtil=r.retryStrategy=r.resolver=r.serverAddress=r.urlUtil=r.logger=r.connectivityVerifier=r.transactionExecutor=r.txConfig=r.connectionHolder=r.constants=r.bookmark=r.observer=r.temporalUtil=r.util=void 0;var s=i(t("./util"));r.util=s;s=i(t("./temporal-util"));r.temporalUtil=s;s=i(t("./observers"));r.observer=s;s=i(t("./bookmark"));r.bookmark=s;s=i(t("./constants"));r.constants=s;s=i(t("./connection-holder"));r.connectionHolder=s;s=i(t("./tx-config"));r.txConfig=s;s=i(t("./transaction-executor"));r.transactionExecutor=s;s=i(t("./connectivity-verifier"));r.connectivityVerifier=s;s=i(t("./logger"));r.logger=s;s=i(t("./url-util"));r.urlUtil=s;s=i(t("./server-address"));r.serverAddress=s;s=i(t("./resolver"));r.resolver=s;s=i(t("./retry-strategy"));r.retryStrategy=s;t=i(t("./object-util"));r.objectUtil=t},{"./bookmark":62,"./connection-holder":63,"./connectivity-verifier":64,"./constants":65,"./logger":67,"./object-util":68,"./observers":69,"./resolver":72,"./retry-strategy":73,"./server-address":74,"./temporal-util":75,"./transaction-executor":76,"./tx-config":77,"./url-util":78,"./util":79}],67:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(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)});Object.defineProperty(r,"__esModule",{value:!0}),r.Logger=void 0;var i,s=t("../error"),u="info",a=u,c=((t={}).error=0,t.warn=1,t.info=2,t.debug=3,t),t=(l.create=function(t){if(t&&t.logging){t=t.logging;return new l(function(t){if(t&&t.level){var e=t.level,t=c[e];if(!t&&0!==t)throw(0,s.newError)("Illegal logging level: "+e+". Supported levels are: "+Object.keys(c));return e}return a}(t),function(t){if(t&&t.logger){var e=t.logger;if(e&&"function"==typeof e)return e}throw(0,s.newError)("Illegal logger function: "+t.logger)}(t))}return this.noOp()},l.noOp=function(){return p},l.prototype.isErrorEnabled=function(){return h(this._level,"error")},l.prototype.error=function(t){this.isErrorEnabled()&&this._loggerFunction("error",t)},l.prototype.isWarnEnabled=function(){return h(this._level,"warn")},l.prototype.warn=function(t){this.isWarnEnabled()&&this._loggerFunction("warn",t)},l.prototype.isInfoEnabled=function(){return h(this._level,u)},l.prototype.info=function(t){this.isInfoEnabled()&&this._loggerFunction(u,t)},l.prototype.isDebugEnabled=function(){return h(this._level,"debug")},l.prototype.debug=function(t){this.isDebugEnabled()&&this._loggerFunction("debug",t)},l);function l(t,e){this._level=t,this._loggerFunction=e}function f(){return i.call(this,u,function(t,e){})||this}r.Logger=t;var p=new(o(f,i=t),f.prototype.isErrorEnabled=function(){return!1},f.prototype.error=function(t){},f.prototype.isWarnEnabled=function(){return!1},f.prototype.warn=function(t){},f.prototype.isInfoEnabled=function(){return!1},f.prototype.info=function(t){},f.prototype.isDebugEnabled=function(){return!1},f.prototype.debug=function(t){},f);function h(t,e){return c[t]>=c[e]}},{"../error":58}],68:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getBrokenObjectReason=r.isBrokenObject=r.createBrokenObject=void 0;var o="__isBrokenObject__",i="__reason__";r.createBrokenObject=function(r,t){function n(){throw r}return void 0===t&&(t={}),new Proxy(t,{get:function(t,e){return e===o||(e===i?r:void("toJSON"!==e&&n()))},set:n,apply:n,construct:n,defineProperty:n,deleteProperty:n,getOwnPropertyDescriptor:n,getPrototypeOf:n,has:n,isExtensible:n,ownKeys:n,preventExtensions:n,setPrototypeOf:n})},r.isBrokenObject=function(t){return null!==t&&"object"==typeof t&&!0===t[o]},r.getBrokenObjectReason=function(t){return t[i]}},{}],69:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FailedObserver=r.CompletedObserver=void 0;var n=(o.prototype.subscribe=function(t){s(t,t.onKeys,[]),s(t,t.onCompleted,{})},o.prototype.cancel=function(){},o.prototype.prepareToHandleSingleResponse=function(){},o.prototype.markCompleted=function(){},o.prototype.onError=function(t){throw Error("CompletedObserver not supposed to call onError")},o);function o(){}r.CompletedObserver=n;i.prototype.subscribe=function(t){s(t,t.onError,this._error),this._observers.push(t)},i.prototype.onError=function(e){var t=this;Promise.resolve(s(this,this._beforeError,e)).then(function(){return t._observers.forEach(function(t){return s(t,t.onError,e)})})},i.prototype.cancel=function(){},i.prototype.prepareToHandleSingleResponse=function(){},i.prototype.markCompleted=function(){},n=i;function i(t){var e=t.error,t=t.onError;this._error=e,this._beforeError=t,this._observers=[],this.onError(e)}function s(t,e,r){e&&e.bind(t)(r)}r.FailedObserver=n},{}],70:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.resolve=function(){throw new Error("Abstract function")},o.prototype._resolveToItself=function(t){return Promise.resolve([t])},o);function o(){}r.default=n},{}],71:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../server-address");function o(t){return Promise.resolve([t])}i.prototype.resolve=function(e){var r=this;return new Promise(function(t){return t(r._resolverFunction(e.asHostPort()))}).then(function(t){if(!Array.isArray(t))throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses.Each address is '<host>:<port>'. Got: "+t);return t.map(function(t){return n.ServerAddress.fromUrl(t)})})},t=i;function i(t){this._resolverFunction=t||o}r.default=t},{"../server-address":74}],72:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0}),r.ConfiguredCustomResolver=r.BaseHostNameResolver=void 0;var o=n(t("./base-host-name-resolver"));r.BaseHostNameResolver=o.default;t=n(t("./configured-custom-resolver"));r.ConfiguredCustomResolver=t.default},{"./base-host-name-resolver":70,"./configured-custom-resolver":71}],73:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.canRetryOn=void 0;var n=t("../error");r.canRetryOn=function(t){return t&&t instanceof n.Neo4jError&&t.code&&(t.code===n.SERVICE_UNAVAILABLE||t.code===n.SESSION_EXPIRED||"Neo.ClientError.Security.AuthorizationExpired"===t.code||function(t){t=t.code;if(0<=t.indexOf("TransientError"))return"Neo.TransientError.Transaction.Terminated"!==t&&"Neo.TransientError.Transaction.LockClientStopped"!==t;return!1}(t))}},{"../error":58}],74:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.ServerAddress=void 0;var s=t("./util"),u=i(t("./url-util")),t=(a.prototype.host=function(){return this._host},a.prototype.resolvedHost=function(){return this._resolved||this._host},a.prototype.port=function(){return this._port},a.prototype.resolveWith=function(t){return new a(this._host,t,this._port,this._hostPort)},a.prototype.asHostPort=function(){return this._hostPort},a.prototype.asKey=function(){return this._hostPort},a.prototype.toString=function(){return this._stringValue},a.fromUrl=function(t){t=u.parseDatabaseUrl(t);return new a(t.host,null,t.port,t.hostAndPort)},a);function a(t,e,r,n){this._host=(0,s.assertString)(t,"host"),this._resolved=e?(0,s.assertString)(e,"resolved"):null,this._port=(0,s.assertNumber)(r,"port"),this._hostPort=n,this._stringValue=e?n+"("+e+")":""+n}r.ServerAddress=t},{"./url-util":78,"./util":79}],75:[function(t,e,u){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(u,"__esModule",{value:!0}),u.floorMod=u.floorDiv=u.assertValidZoneId=u.assertValidNanosecond=u.assertValidSecond=u.assertValidMinute=u.assertValidHour=u.assertValidDay=u.assertValidMonth=u.assertValidYear=u.timeZoneOffsetInSeconds=u.totalNanoseconds=u.dateToIsoString=u.timeZoneOffsetToIsoString=u.timeToIsoString=u.durationToIsoString=u.dateToEpochDay=u.localDateTimeToEpochSecond=u.localTimeToNanoOfDay=u.normalizeNanosecondsForDuration=u.normalizeSecondsForDuration=u.SECONDS_PER_DAY=u.DAYS_PER_400_YEAR_CYCLE=u.DAYS_0000_TO_1970=u.NANOS_PER_HOUR=u.NANOS_PER_MINUTE=u.NANOS_PER_MILLISECOND=u.NANOS_PER_SECOND=u.SECONDS_PER_HOUR=u.SECONDS_PER_MINUTE=u.MINUTES_PER_HOUR=u.NANOSECOND_OF_SECOND_RANGE=u.SECOND_OF_MINUTE_RANGE=u.MINUTE_OF_HOUR_RANGE=u.HOUR_OF_DAY_RANGE=u.DAY_OF_MONTH_RANGE=u.MONTH_OF_YEAR_RANGE=u.YEAR_RANGE=void 0;var a=r(t("../integer")),i=t("../error"),s=t("./util"),t=(c.prototype.contains=function(t){if((0,a.isInt)(t)&&t instanceof a.default)return t.greaterThanOrEqual(this._minInteger)&&t.lessThanOrEqual(this._maxInteger);if("bigint"!=typeof t)return t>=this._minNumber&&t<=this._maxNumber;t=(0,a.int)(t);return t.greaterThanOrEqual(this._minInteger)&&t.lessThanOrEqual(this._maxInteger)},c.prototype.toString=function(){return"["+this._minNumber+", "+this._maxNumber+"]"},c);function c(t,e){this._minNumber=t,this._maxNumber=e,this._minInteger=(0,a.int)(t),this._maxInteger=(0,a.int)(e)}function l(t,e,r){t=(0,a.int)(t),e=(0,a.int)(e),r=(0,a.int)(r);var n=t.multiply(365);return n=(n=(n=t.greaterThanOrEqual(0)?n.add(t.add(3).div(4).subtract(t.add(99).div(100)).add(t.add(399).div(400))):n.subtract(t.div(-4).subtract(t.div(-100)).add(t.div(-400)))).add(e.multiply(367).subtract(362).div(12))).add(r.subtract(1)),e.greaterThan(2)&&(n=n.subtract(1),t=t,(t=(0,a.int)(t)).modulo(4).equals(0)&&(!t.modulo(100).equals(0)||t.modulo(400).equals(0))||(n=n.subtract(1))),n.subtract(u.DAYS_0000_TO_1970)}function f(t,e,r){if((0,s.assertNumberOrInteger)(t,r),!e.contains(t))throw(0,i.newError)(r+" is expected to be in range "+e+" but was: "+t);return t}function p(t,e){t=(0,a.int)(t),e=(0,a.int)(e);var r=t.div(e);return r=t.isPositive()!==e.isPositive()&&r.multiply(e).notEquals(t)?r.subtract(1):r}function h(t,e){return t=(0,a.int)(t),e=(0,a.int)(e),t.subtract(p(t,e).multiply(e))}function d(t){return(t=(0,a.int)(t)).equals(0)?"":"."+b(t,9)}function b(t,e){var r=(t=(0,a.int)(t)).isNegative(),n=(t=r?t.negate():t).toString();if(e)for(;n.length<e;)n="0"+n;return r?"-"+n:n}u.YEAR_RANGE=new t(-999999999,999999999),u.MONTH_OF_YEAR_RANGE=new t(1,12),u.DAY_OF_MONTH_RANGE=new t(1,31),u.HOUR_OF_DAY_RANGE=new t(0,23),u.MINUTE_OF_HOUR_RANGE=new t(0,59),u.SECOND_OF_MINUTE_RANGE=new t(0,59),u.NANOSECOND_OF_SECOND_RANGE=new t(0,999999999),u.MINUTES_PER_HOUR=60,u.SECONDS_PER_MINUTE=60,u.SECONDS_PER_HOUR=u.SECONDS_PER_MINUTE*u.MINUTES_PER_HOUR,u.NANOS_PER_SECOND=1e9,u.NANOS_PER_MILLISECOND=1e6,u.NANOS_PER_MINUTE=u.NANOS_PER_SECOND*u.SECONDS_PER_MINUTE,u.NANOS_PER_HOUR=u.NANOS_PER_MINUTE*u.MINUTES_PER_HOUR,u.DAYS_0000_TO_1970=719528,u.DAYS_PER_400_YEAR_CYCLE=146097,u.SECONDS_PER_DAY=86400,u.normalizeSecondsForDuration=function(t,e){return(0,a.int)(t).add(p(e,u.NANOS_PER_SECOND))},u.normalizeNanosecondsForDuration=function(t){return h(t,u.NANOS_PER_SECOND)},u.localTimeToNanoOfDay=function(t,e,r,n){return t=(0,a.int)(t),e=(0,a.int)(e),r=(0,a.int)(r),n=(0,a.int)(n),(t=(t=(t=t.multiply(u.NANOS_PER_HOUR)).add(e.multiply(u.NANOS_PER_MINUTE))).add(r.multiply(u.NANOS_PER_SECOND))).add(n)},u.localDateTimeToEpochSecond=function(t,e,r,n,o,i,s){return r=l(t,e,r),i=function(t,e,r){t=(0,a.int)(t),e=(0,a.int)(e),r=(0,a.int)(r);t=t.multiply(u.SECONDS_PER_HOUR);return(t=t.add(e.multiply(u.SECONDS_PER_MINUTE))).add(r)}(n,o,i),r.multiply(u.SECONDS_PER_DAY).add(i)},u.dateToEpochDay=l,u.durationToIsoString=function(t,e,r,n){return"P"+b(t)+"M"+b(e)+"DT"+function(t,e){var r;t=(0,a.int)(t),e=(0,a.int)(e);var n=t.isNegative(),o=e.greaterThan(0);t=n&&o?t.equals(-1)?"-0":t.add(1).toString():t.toString();o&&(r=d((n?e.negate().add(2*u.NANOS_PER_SECOND):e.add(u.NANOS_PER_SECOND)).modulo(u.NANOS_PER_SECOND)));return r?t+r:t}(r,n)+"S"},u.timeToIsoString=function(t,e,r,n){return b(t,2)+":"+b(e,2)+":"+b(r,2)+d(n)},u.timeZoneOffsetToIsoString=function(t){if((t=(0,a.int)(t)).equals(0))return"Z";var e=(n=t.isNegative())?"-":"+",r=b((t=n?t.multiply(-1):t).div(u.SECONDS_PER_HOUR),2),n=b(t.div(u.SECONDS_PER_MINUTE).modulo(u.MINUTES_PER_HOUR),2);return(t=(t=t.modulo(u.SECONDS_PER_MINUTE)).equals(0)?null:b(t,2))?e+r+":"+n+":"+t:e+r+":"+n},u.dateToIsoString=function(t,e,r){var n=(t=(0,a.int)(t)).isNegative(),t=b(t=n?t.multiply(-1):t,4);return(t=n?"-"+t:t)+"-"+b(e,2)+"-"+b(r,2)},u.totalNanoseconds=function(t,e){return function(t,e){{if(t instanceof a.default)return t.add(e);if("bigint"==typeof t)return t+BigInt(e)}return t+e}(e=e||0,t.getMilliseconds()*u.NANOS_PER_MILLISECOND)},u.timeZoneOffsetInSeconds=function(t){return 0===(t=t.getTimezoneOffset())?0:-1*t*u.SECONDS_PER_MINUTE},u.assertValidYear=function(t){return f(t,u.YEAR_RANGE,"Year")},u.assertValidMonth=function(t){return f(t,u.MONTH_OF_YEAR_RANGE,"Month")},u.assertValidDay=function(t){return f(t,u.DAY_OF_MONTH_RANGE,"Day")},u.assertValidHour=function(t){return f(t,u.HOUR_OF_DAY_RANGE,"Hour")},u.assertValidMinute=function(t){return f(t,u.MINUTE_OF_HOUR_RANGE,"Minute")},u.assertValidSecond=function(t){return f(t,u.SECOND_OF_MINUTE_RANGE,"Second")},u.assertValidNanosecond=function(t){return f(t,u.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")},u.assertValidZoneId=function(e,r){try{Intl.DateTimeFormat(void 0,{timeZone:r})}catch(t){throw(0,i.newError)(e+' is expected to be a valid ZoneId but was: "'+r+'"')}},u.floorDiv=p,u.floorMod=h},{"../error":58,"../integer":61,"./util":79}],76:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionExecutor=void 0;var n=t("../error"),a=t("./retry-strategy"),t=(o.prototype.execute=function(n,o){var i=this;return new Promise(function(t,e){i._executeTransactionInsidePromise(n,o,t,e)}).catch(function(t){var e=Date.now(),r=i._initialRetryDelayMs;return i._retryTransactionPromise(n,o,t,e,r)})},o.prototype.close=function(){this._inFlightTimeoutIds.forEach(function(t){return clearTimeout(t)}),this._inFlightTimeoutIds=[]},o.prototype._retryTransactionPromise=function(o,i,t,r,s){var u=this;return Date.now()-r>this._maxRetryTimeMs||!(0,a.canRetryOn)(t)?Promise.reject(t):new Promise(function(t,e){var r=u._computeDelayWithJitter(s),n=setTimeout(function(){u._inFlightTimeoutIds=u._inFlightTimeoutIds.filter(function(t){return t!==n}),u._executeTransactionInsidePromise(o,i,t,e)},r);u._inFlightTimeoutIds.push(n)}).catch(function(t){var e=s*u._multiplier;return u._retryTransactionPromise(o,i,t,r,e)})},o.prototype._executeTransactionInsidePromise=function(t,e,r,n){var o,i=this;try{o=t()}catch(t){return void n(t)}this._safeExecuteTransactionWork(o,e).then(function(t){return i._handleTransactionWorkSuccess(t,o,r,n)}).catch(function(t){return i._handleTransactionWorkFailure(t,o,n)})},o.prototype._safeExecuteTransactionWork=function(t,e){try{var r=e(t);return Promise.resolve(r)}catch(t){return Promise.reject(t)}},o.prototype._handleTransactionWorkSuccess=function(t,e,r,n){e.isOpen()?e.commit().then(function(){r(t)}).catch(function(t){n(t)}):r(t)},o.prototype._handleTransactionWorkFailure=function(t,e,r){e.isOpen()?e.rollback().catch(function(t){}).then(function(){return r(t)}):r(t)},o.prototype._computeDelayWithJitter=function(t){var e=t*this._jitterFactor,r=t-e,e=t+e;return Math.random()*(e-r)+r},o.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,n.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs);if(this._initialRetryDelayMs<0)throw(0,n.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs);if(this._multiplier<1)throw(0,n.newError)("Multiplier should be >= 1.0: "+this._multiplier);if(this._jitterFactor<0||1<this._jitterFactor)throw(0,n.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor)},o);function o(t,e,r,n){this._maxRetryTimeMs=i(t,3e4),this._initialRetryDelayMs=i(e,1e3),this._multiplier=i(r,2),this._jitterFactor=i(n,.2),this._inFlightTimeoutIds=[],this._verifyAfterConstruction()}function i(t,e){return t||0===t?t:e}r.TransactionExecutor=t},{"../error":58,"./retry-strategy":73}],77:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.TxConfig=void 0;var s=i(t("./util")),u=t("../error"),a=t("../integer"),t=(c.empty=function(){return l},c.prototype.isEmpty=function(){return Object.values(this).every(function(t){return null==t})},c);function c(t){var e;(e=t)&&s.assertObject(e,"Transaction config"),this.timeout=function(t){if(!s.isObject(t)||!t.timeout&&0!==t.timeout)return null;s.assertNumberOrInteger(t.timeout,"Transaction timeout");t=(0,a.int)(t.timeout);if(t.isZero())throw(0,u.newError)("Transaction timeout should not be zero");if(t.isNegative())throw(0,u.newError)("Transaction timeout should not be negative");return t}(t),this.metadata=function(t){if(s.isObject(t)&&t.metadata){t=t.metadata;if(s.assertObject(t,"config.metadata"),0!==Object.keys(t).length)return t}return null}(t)}var l=new(r.TxConfig=t)({})},{"../error":58,"../integer":61,"./util":79}],78:[function(t,e,r){"use strict";var s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.Url=r.formatIPv6Address=r.formatIPv4Address=r.defaultPortForScheme=r.parseDatabaseUrl=void 0;var a=t("./util"),n=7687,o=7474,i=7473,c=function(t,e,r,n,o){this.scheme=t,this.host=e,this.port=r,this.hostAndPort=n,this.query=o};function l(t,e,r){if(!(t=(t||"").trim()))throw new Error("Illegal empty "+e+" in URL query '"+r+"'");return t}function f(t){var e="["===t.charAt(0),r="]"===t.charAt(t.length-1);if(e||r){if(e&&r)return t;throw new Error("Illegal IPv6 address "+t)}return"["+t+"]"}function p(t){return"http"===t?o:"https"===t?i:n}r.Url=c,r.parseDatabaseUrl=function(t){(0,a.assertString)(t,"URL");var e=function(t){function i(t,e){e=t.indexOf(e);return 0<=e?[t.substring(0,e),t[e],t.substring(e+1)]:[t,"",""]}function e(t){var e,r={};(o="@")===(e=0<=(o=(n=t).lastIndexOf(o))?[n.substring(0,o),n[o],n.substring(o+1)]:["","",n])[1]&&(r.userInfo=decodeURIComponent(e[0]),t=e[2]);var n,o,n=u((o="]",n=i(t,n="["),[(o=i(n[2],o))[0],o[2]]),2),o=n[0],n=n[1];return""!==o?(r.host=o,e=i(n,":")):(e=i(t,":"),r.host=e[0]),":"===e[1]&&(r.port=e[2]),r}var r,n={};":"===(r=i(t,":"))[1]&&(n.scheme=decodeURIComponent(r[0]),t=r[2]);"#"===(r=i(t,"#"))[1]&&(n.fragment=decodeURIComponent(r[2]),t=r[0]);"?"===(r=i(t,"?"))[1]&&(n.query=r[2],t=r[0]);t.startsWith("//")?(r=i(t.substr(2),"/"),(n=s(s({},n),e(r[0]))).path=r[1]+r[2]):n.path=t;return n}((i=-1!==(o=(o=t).trim()).indexOf("://")?{schemeMissing:!1,url:o}:{schemeMissing:!0,url:"none://"+o}).url),r=i.schemeMissing?null:function(t){if(t)return t=":"===(t=t.trim()).charAt(t.length-1)?t.substring(0,t.length-1):t;return null}(e.scheme),n=function(t,e){if(t)return t.trim();throw new Error("Unable to extract host from "+e)}(e.host),o=function(t){if(t)return 0<=t.indexOf(":")?f(t):t;throw new Error("Illegal host "+t)}(n),i=function(t,e){t="string"==typeof t?parseInt(t,10):t;return 0===t||t?t:p(e)}(e.port,r),o=o+":"+i,t=function(t,r){var t=t?function(t){(t=(t||"").trim())&&"?"===t.charAt(0)&&(t=t.substring(1,t.length));return t}(t):null,n={};t&&t.split("&").forEach(function(t){var e=t.split("=");if(2!==e.length)throw new Error("Invalid parameters: '"+e+"' in URL '"+r+"'.");t=l(e[0],"key",r),e=l(e[1],"value",r);if(n[t])throw new Error("Duplicated query parameters with key '"+t+"' in URL '"+r+"'");n[t]=e});return n}(e.query||function(t){if("string"!=typeof t)return null;t=u(t.split("?"),2),t[0];return t[1]}(e.resourceName),t);return new c(r,n,i,o,t)},r.formatIPv4Address=function(t,e){return t+":"+e},r.formatIPv6Address=function(t,e){return f(t)+":"+e},r.defaultPortForScheme=p},{"./util":79}],79:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ENCRYPTION_OFF=r.ENCRYPTION_ON=r.validateQueryAndParameters=r.assertValidDate=r.assertNumberOrInteger=r.assertNumber=r.assertString=r.assertObject=r.isString=r.isObject=r.isEmptyObjectOrNull=void 0;var n=t("../integer"),o=t("../json");r.ENCRYPTION_ON="ENCRYPTION_ON";function i(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t}function s(t,e){if(!u(t))throw new TypeError(e+" expected to be string but was: "+(0,o.stringify)(t));return t}function u(t){return"[object String]"===Object.prototype.toString.call(t)}r.ENCRYPTION_OFF="ENCRYPTION_OFF",r.isEmptyObjectOrNull=function(t){if(null===t)return!0;if(!i(t))return!1;for(var e in t)if(Object.prototype.hasOwnProperty.bind(t,e))return!1;return!0},r.isObject=i,r.validateQueryAndParameters=function(t,e,r){var n="",e=e||{},r=(null==r?void 0:r.skipAsserts)||!1;return"string"==typeof t?n=t:t instanceof String?n=t.toString():"object"==typeof t&&t.text&&(n=t.text,e=t.parameters||{}),r||(function(t){if(s(t,"Cypher query"),0===t.trim().length)throw new TypeError("Cypher query is expected to be a non-empty string.")}(n),function(t){if(!i(t)){var e=t.constructor?" "+t.constructor.name:"";throw new TypeError("Query parameters are expected to either be undefined/null or an object, given:"+e+" "+t)}}(e)),{validatedQuery:n,params:e}},r.assertObject=function(t,e){if(!i(t))throw new TypeError(e+" expected to be an object but was: "+(0,o.stringify)(t));return t},r.assertString=s,r.assertNumber=function(t,e){if("number"!=typeof t)throw new TypeError(e+" expected to be a number but was: "+(0,o.stringify)(t));return t},r.assertNumberOrInteger=function(t,e){if("number"!=typeof t&&"bigint"!=typeof t&&!(0,n.isInt)(t))throw new TypeError(e+" expected to be either a number or an Integer object but was: "+(0,o.stringify)(t));return t},r.assertValidDate=function(t,e){if("[object Date]"!==Object.prototype.toString.call(t))throw new TypeError(e+" expected to be a standard JavaScript Date but was: "+(0,o.stringify)(t));if(Number.isNaN(t.getTime()))throw new TypeError(e+" expected to be valid JavaScript Date but its time was NaN: "+(0,o.stringify)(t));return t},r.isString=u},{"../integer":61,"../json":80}],80:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.stringify=void 0;var n=t("./internal/object-util");r.stringify=function(t){return JSON.stringify(t,function(t,e){return(0,n.isBrokenObject)(e)?{__isBrokenObject__:!0,__reason__:(0,n.getBrokenObjectReason)(e)}:"bigint"==typeof e?e+"n":e})}},{"./internal/object-util":68}],81:[function(t,e,r){"use strict";var n=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},c=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("./error");i.prototype.forEach=function(t){var e,r;try{for(var n=c(this.entries()),o=n.next();!o.done;o=n.next()){var i=l(o.value,2),s=i[0];t(i[1],s,this)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}},i.prototype.map=function(t){var e,r,n=[];try{for(var o=c(this.entries()),i=o.next();!i.done;i=o.next()){var s=l(i.value,2),u=s[0],a=s[1];n.push(t(a,u,this))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n},i.prototype.entries=function(){var e;return n(this,function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.keys.length?[4,[this.keys[e],this._fields[e]]]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}})},i.prototype.values=function(){var e;return n(this,function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.keys.length?[4,this._fields[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}})},i.prototype[Symbol.iterator]=function(){var e;return n(this,function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.keys.length?[4,this._fields[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return e++,[3,1];case 4:return[2]}})},i.prototype.toObject=function(){var e,t,r={};try{for(var n=c(this.entries()),o=n.next();!o.done;o=n.next()){var i=l(o.value,2),s=i[0],u=i[1];r[s]=u}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r},i.prototype.get=function(t){var e;if("number"!=typeof t){if(void 0===(e=this._fieldLookup[t]))throw(0,o.newError)("This record has no field with key '"+t+"', available key are: ["+this.keys+"].")}else e=t;if(e>this._fields.length-1||e<0)throw(0,o.newError)("This record has no field with index '"+e+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[e]},i.prototype.has=function(t){return"number"==typeof t?0<=t&&t<this._fields.length:void 0!==this._fieldLookup[t]},t=i;function i(t,e,r){var n;this.keys=t,this.length=t.length,this._fields=e,this._fieldLookup=r||(n={},t.forEach(function(t,e){n[t]=e}),n)}r.default=t},{"./error":58}],82:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e};Object.defineProperty(r,"__esModule",{value:!0}),r.Stats=r.QueryStatistics=r.ProfiledPlan=r.Plan=r.Notification=r.ServerInfo=r.queryType=void 0;var s=i(t("./integer")),t=(u.prototype._buildNotifications=function(t){return t?t.map(function(t){return new h(t)}):[]},u.prototype.hasPlan=function(){return this.plan instanceof a},u.prototype.hasProfile=function(){return this.profile instanceof c},u);function u(t,e,r,n){this.query={text:t,parameters:e},this.queryType=r.type,this.counters=new f(r.stats||{}),this.updateStatistics=this.counters,this.plan=!(!r.plan&&!r.profile)&&new a(r.plan||r.profile),this.profile=!!r.profile&&new c(r.profile),this.notifications=this._buildNotifications(r.notifications),this.server=new b(r.server,n),this.resultConsumedAfter=r.result_consumed_after,this.resultAvailableAfter=r.result_available_after,this.database={name:r.db||null}}var a=function e(t){this.operatorType=t.operatorType,this.identifiers=t.identifiers,this.arguments=t.args,this.children=t.children?t.children.map(function(t){return new e(t)}):[]};r.Plan=a;var c=(l.prototype.hasPageCacheStats=function(){return 0<this.pageCacheMisses||0<this.pageCacheHits||0<this.pageCacheHitRatio},l);function l(t){this.operatorType=t.operatorType,this.identifiers=t.identifiers,this.arguments=t.args,this.dbHits=y("dbHits",t),this.rows=y("rows",t),this.pageCacheMisses=y("pageCacheMisses",t),this.pageCacheHits=y("pageCacheHits",t),this.pageCacheHitRatio=y("pageCacheHitRatio",t),this.time=y("time",t),this.children=t.children?t.children.map(function(t){return new l(t)}):[]}r.ProfiledPlan=c,r.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0};var f=(p.prototype.containsUpdates=function(){var r=this;return void 0!==this._containsUpdates?this._containsUpdates:0<Object.keys(this._stats).reduce(function(t,e){return t+r._stats[e]},0)},p.prototype.updates=function(){return this._stats},p.prototype.containsSystemUpdates=function(){return void 0!==this._containsSystemUpdates?this._containsSystemUpdates:0<this._systemUpdates},p.prototype.systemUpdates=function(){return this._systemUpdates},p);function p(r){var n=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(r).forEach(function(t){var e=t.replace(/(-\w)/g,function(t){return t[1].toUpperCase()});e in n._stats?n._stats[e]=_(r[t]):"systemUpdates"===e?n._systemUpdates=_(r[t]):"containsSystemUpdates"===e?n._containsSystemUpdates=r[t]:"containsUpdates"===e&&(n._containsUpdates=r[t])}),this._stats=Object.freeze(this._stats)}r.QueryStatistics=f;var h=(d._constructPosition=function(t){return t?{offset:_(t.offset),line:_(t.line),column:_(t.column)}:{}},d);function d(t){this.code=t.code,this.title=t.title,this.description=t.description,this.severity=t.severity,this.position=d._constructPosition(t.position)}r.Notification=h;var b=function(t,e){t&&(this.address=t.address,this.version=t.version,this.agent=t.version),this.protocolVersion=e};function _(t){return t instanceof s.default?t.toInt():"bigint"==typeof t?(0,s.int)(t).toInt():t}function y(t,e,r){return void 0===r&&(r=0),t in e?_(e[t]):r}r.ServerInfo=b;r.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},r.default=t},{"./integer":61}],83:[function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});function s(t){console.log("Uncaught error when processing result: "+t)}function u(t){}var i=n(t("./result-summary")),a=t("./internal"),o=a.connectionHolder.EMPTY_CONNECTION_HOLDER,t=(c.prototype.keys=function(){var t=this;return new Promise(function(e,r){t._streamObserverPromise.then(function(t){return t.subscribe({onKeys:function(t){return e(t)},onError:function(t){return r(t)}})}).catch(r)})},c.prototype.summary=function(){var n=this;return new Promise(function(e,r){n._streamObserverPromise.then(function(t){t.cancel(),t.subscribe({onCompleted:function(t){return n._createSummary(t).then(e,r)},onError:function(t){return r(t)}})}).catch(r)})},c.prototype._getOrCreatePromise=function(){var t=this;return this._p||(this._p=new Promise(function(e,r){var n=[];t.subscribe({onNext:function(t){n.push(t)},onCompleted:function(t){e({records:n,summary:t})},onError:function(t){r(t)}})})),this._p},c.prototype.then=function(t,e){return this._getOrCreatePromise().then(t,e)},c.prototype.catch=function(t){return this._getOrCreatePromise().catch(t)},c.prototype.finally=function(t){return this._getOrCreatePromise().finally(t)},c.prototype.subscribe=function(n){var o=this,e=n.onCompleted||u;n.onCompleted=function(t){o._createSummary(t).then(function(t){return e.call(n,t)})};var i=n.onError||s;n.onError=function(r){o._connectionHolder.releaseConnection().then(function(){var t,e;t=r,(e=o._stack)&&(t.stack=t.toString()+"\n"+e),i.call(n,r)})},this._streamObserverPromise.then(function(t){return t.subscribe(n)}).catch(function(t){return n.onError(t)})},c.prototype._cancel=function(){this._streamObserverPromise.then(function(t){return t.cancel()})},c.prototype._createSummary=function(e){var t=a.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),r=t.validatedQuery,n=t.params,o=this._connectionHolder;return o.getConnection().then(function(t){return o.releaseConnection().then(function(){return t?t.protocol().version:void 0})},function(t){}).then(function(t){return new i.default(r,n,e,t)})},c);function c(t,e,r,n){this._stack=function(){var t=new Error("");if(t.stack)return t.stack.replace(/^Error(\n\r)*/,"");return null}(),this._streamObserverPromise=t,this._p=null,this._query=e,this._parameters=r||{},this._connectionHolder=n||o}Symbol.toStringTag,r.default=t},{"./internal":66,"./result-summary":82}],84:[function(t,e,r){"use strict";var o=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},i=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s=t("./internal/observers"),u=t("./internal/util"),a=t("./error"),c=n(t("./result")),l=n(t("./transaction")),f=t("./internal/connection-holder"),p=t("./internal/constants"),h=t("./internal/transaction-executor"),d=t("./internal/bookmark"),b=t("./internal/tx-config"),t=(_.prototype.run=function(t,e,r){var n=this,e=(0,u.validateQueryAndParameters)(t,e),o=e.validatedQuery,i=e.params,s=r?new b.TxConfig(r):b.TxConfig.empty();return this._run(o,i,function(t){return n._assertSessionIsOpen(),t.protocol().run(o,i,{bookmark:n._lastBookmark,txConfig:s,mode:n._mode,database:n._database,impersonatedUser:n._impersonatedUser,afterComplete:n._onComplete,reactive:n._reactive,fetchSize:n._fetchSize})})},_.prototype._run=function(t,e,r){var n=this._connectionHolderWithMode(this._mode),o=this._open?!this._hasTx&&n.initializeConnection()?n.getConnection().then(function(t){return r(t)}).catch(function(t){return Promise.resolve(new s.FailedObserver({error:t}))}):Promise.resolve(new s.FailedObserver({error:(0,a.newError)("Queries cannot be run directly on a session with an open transaction; either run from within the transaction or use a different session.")})):Promise.resolve(new s.FailedObserver({error:(0,a.newError)("Cannot run query in a closed session.")}));return new c.default(o,t,e,n)},_.prototype._acquireConnection=function(e){return o(this,void 0,void 0,function(){var r,n=this;return i(this,function(t){return r=this._connectionHolderWithMode(this._mode),[2,this._open?!this._hasTx&&r.initializeConnection()?r.getConnection().then(function(t){return e(t)}).then(function(e){return o(n,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,r.releaseConnection()];case 1:return t.sent(),[2,e]}})})}):Promise.reject((0,a.newError)("Queries cannot be run directly on a session with an open transaction; either run from within the transaction or use a different session.")):Promise.reject((0,a.newError)("Cannot run query in a closed session."))]})})},_.prototype.beginTransaction=function(t){var e=t,t=b.TxConfig.empty();return e&&(t=new b.TxConfig(e)),this._beginTransaction(this._mode,t)},_.prototype._beginTransaction=function(t,e){if(!this._open)throw(0,a.newError)("Cannot begin a transaction on a closed session.");if(this._hasTx)throw(0,a.newError)("You cannot begin a transaction on a session with an open transaction; either run from within the transaction or use a different session.");t=_._validateSessionMode(t),t=this._connectionHolderWithMode(t);t.initializeConnection(),this._hasTx=!0;t=new l.default({connectionHolder:t,impersonatedUser:this._impersonatedUser,onClose:this._transactionClosed.bind(this),onBookmark:this._updateBookmark.bind(this),onConnection:this._assertSessionIsOpen.bind(this),reactive:this._reactive,fetchSize:this._fetchSize});return t._begin(this._lastBookmark,e),t},_.prototype._assertSessionIsOpen=function(){if(!this._open)throw(0,a.newError)("You cannot run more transactions on a closed session.")},_.prototype._transactionClosed=function(){this._hasTx=!1},_.prototype.lastBookmark=function(){return this._lastBookmark.values()},_.prototype.readTransaction=function(t,e){e=new b.TxConfig(e);return this._runTransaction(p.ACCESS_MODE_READ,e,t)},_.prototype.writeTransaction=function(t,e){e=new b.TxConfig(e);return this._runTransaction(p.ACCESS_MODE_WRITE,e,t)},_.prototype._runTransaction=function(t,e,r){var n=this;return this._transactionExecutor.execute(function(){return n._beginTransaction(t,e)},r)},_.prototype._onDatabaseNameResolved=function(t){this._databaseNameResolved||(this._database=t=t||"",this._readConnectionHolder.setDatabase(t),this._writeConnectionHolder.setDatabase(t),this._databaseNameResolved=!0)},_.prototype._updateBookmark=function(t){t&&!t.isEmpty()&&(this._lastBookmark=t)},_.prototype.close=function(){return o(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return this._open?(this._open=!1,this._transactionExecutor.close(),[4,this._readConnectionHolder.close()]):[3,3];case 1:return t.sent(),[4,this._writeConnectionHolder.close()];case 2:t.sent(),t.label=3;case 3:return[2]}})})},_.prototype._connectionHolderWithMode=function(t){if(t===p.ACCESS_MODE_READ)return this._readConnectionHolder;if(t===p.ACCESS_MODE_WRITE)return this._writeConnectionHolder;throw(0,a.newError)("Unknown access mode: "+t)},_.prototype._onCompleteCallback=function(t){this._updateBookmark(new d.Bookmark(t.bookmark))},_._validateSessionMode=function(t){t=t||p.ACCESS_MODE_WRITE;if(t!==p.ACCESS_MODE_READ&&t!==p.ACCESS_MODE_WRITE)throw(0,a.newError)("Illegal session mode "+t);return t},_);function _(t){var e=t.mode,r=t.connectionProvider,n=t.bookmark,o=t.database,i=t.config,s=t.reactive,u=t.fetchSize,t=t.impersonatedUser;this._mode=e,this._database=o,this._reactive=s,this._fetchSize=u,this._onDatabaseNameResolved=this._onDatabaseNameResolved.bind(this),this._readConnectionHolder=new f.ConnectionHolder({mode:p.ACCESS_MODE_READ,database:o,bookmark:n,connectionProvider:r,impersonatedUser:t,onDatabaseNameResolved:this._onDatabaseNameResolved}),this._writeConnectionHolder=new f.ConnectionHolder({mode:p.ACCESS_MODE_WRITE,database:o,bookmark:n,connectionProvider:r,impersonatedUser:t,onDatabaseNameResolved:this._onDatabaseNameResolved}),this._open=!0,this._hasTx=!1,this._impersonatedUser=t,this._lastBookmark=n||d.Bookmark.empty(),this._transactionExecutor=function(t){t=t&&t.maxTransactionRetryTime?t.maxTransactionRetryTime:null;return new h.TransactionExecutor(t)}(i),this._onComplete=this._onCompleteCallback.bind(this),this._databaseNameResolved=""!==this._database}r.default=t},{"./error":58,"./internal/bookmark":62,"./internal/connection-holder":63,"./internal/constants":65,"./internal/observers":69,"./internal/transaction-executor":76,"./internal/tx-config":77,"./internal/util":79,"./result":83,"./transaction":87}],85:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPoint=r.Point=void 0;var o=t("./internal/util"),n="__isPoint__",t=(i.prototype.toString=function(){return this.z||0===this.z?"Point{srid="+s(this.srid)+", x="+s(this.x)+", y="+s(this.y)+", z="+s(this.z)+"}":"Point{srid="+s(this.srid)+", x="+s(this.x)+", y="+s(this.y)+"}"},i);function i(t,e,r,n){this.srid=(0,o.assertNumberOrInteger)(t,"SRID"),this.x=(0,o.assertNumber)(e,"X coordinate"),this.y=(0,o.assertNumber)(r,"Y coordinate"),this.z=null==n?n:(0,o.assertNumber)(n,"Z coordinate"),Object.freeze(this)}function s(t){return Number.isInteger(t)?t+".0":t.toString()}r.Point=t,Object.defineProperty(t.prototype,n,{value:!0,enumerable:!1,configurable:!1,writable:!1}),r.isPoint=function(t){return!0===(t&&t[n])}},{"./internal/util":79}],86:[function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},c=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.isDateTime=r.DateTime=r.isLocalDateTime=r.LocalDateTime=r.isDate=r.Date=r.isTime=r.Time=r.isLocalTime=r.LocalTime=r.isDuration=r.Duration=void 0;var l=i(t("./internal/temporal-util")),f=t("./internal/util"),p=t("./error"),s=i(t("./integer")),i={value:!0,enumerable:!1,configurable:!1,writable:!1},u="__isDuration__",a="__isLocalTime__",h="__isTime__",d="__isDate__",b="__isLocalDateTime__",_="__isDateTime__",t=(y.prototype.toString=function(){return l.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},y);function y(t,e,r,n){this.months=(0,f.assertNumberOrInteger)(t,"Months"),this.days=(0,f.assertNumberOrInteger)(e,"Days"),(0,f.assertNumberOrInteger)(r,"Seconds"),(0,f.assertNumberOrInteger)(n,"Nanoseconds"),this.seconds=l.normalizeSecondsForDuration(r,n),this.nanoseconds=l.normalizeNanosecondsForDuration(n),Object.freeze(this)}r.Duration=t,Object.defineProperty(t.prototype,u,i),r.isDuration=function(t){return S(t,u)};v.fromStandardDate=function(t,e){P(t,e);e=l.totalNanoseconds(t,e);return new v(t.getHours(),t.getMinutes(),t.getSeconds(),e instanceof s.default?e.toInt():"bigint"==typeof e?(0,s.int)(e).toInt():e)},v.prototype.toString=function(){return l.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)},t=v;function v(t,e,r,n){this.hour=l.assertValidHour(t),this.minute=l.assertValidMinute(e),this.second=l.assertValidSecond(r),this.nanosecond=l.assertValidNanosecond(n),Object.freeze(this)}r.LocalTime=t,Object.defineProperty(t.prototype,a,i),r.isLocalTime=function(t){return S(t,a)};m.fromStandardDate=function(t,e){return P(t,e),new m(t.getHours(),t.getMinutes(),t.getSeconds(),(0,s.toNumber)(l.totalNanoseconds(t,e)),l.timeZoneOffsetInSeconds(t))},m.prototype.toString=function(){return l.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+l.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)},t=m;function m(t,e,r,n,o){this.hour=l.assertValidHour(t),this.minute=l.assertValidMinute(e),this.second=l.assertValidSecond(r),this.nanosecond=l.assertValidNanosecond(n),this.timeZoneOffsetSeconds=(0,f.assertNumberOrInteger)(o,"Time zone offset in seconds"),Object.freeze(this)}r.Time=t,Object.defineProperty(t.prototype,h,i),r.isTime=function(t){return S(t,h)};g.fromStandardDate=function(t){return P(t),new g(t.getFullYear(),t.getMonth()+1,t.getDate())},g.prototype.toString=function(){return l.dateToIsoString(this.year,this.month,this.day)},t=g;function g(t,e,r){this.year=l.assertValidYear(t),this.month=l.assertValidMonth(e),this.day=l.assertValidDay(r),Object.freeze(this)}r.Date=t,Object.defineProperty(t.prototype,d,i),r.isDate=function(t){return S(t,d)};O.fromStandardDate=function(t,e){return P(t,e),new O(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),(0,s.toNumber)(l.totalNanoseconds(t,e)))},O.prototype.toString=function(){return E(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)},t=O;function O(t,e,r,n,o,i,s){this.year=l.assertValidYear(t),this.month=l.assertValidMonth(e),this.day=l.assertValidDay(r),this.hour=l.assertValidHour(n),this.minute=l.assertValidMinute(o),this.second=l.assertValidSecond(i),this.nanosecond=l.assertValidNanosecond(s),Object.freeze(this)}r.LocalDateTime=t,Object.defineProperty(t.prototype,b,i),r.isLocalDateTime=function(t){return S(t,b)};w.fromStandardDate=function(t,e){return P(t,e),new w(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),(0,s.toNumber)(l.totalNanoseconds(t,e)),l.timeZoneOffsetInSeconds(t),null)},w.prototype.toString=function(){return E(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(this.timeZoneId?"["+this.timeZoneId+"]":l.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds||0))},t=w;function w(t,e,r,n,o,i,s,u,a){this.year=l.assertValidYear(t),this.month=l.assertValidMonth(e),this.day=l.assertValidDay(r),this.hour=l.assertValidHour(n),this.minute=l.assertValidMinute(o),this.second=l.assertValidSecond(i),this.nanosecond=l.assertValidNanosecond(s);u=c(function(t,e){var r=t||0===t,n=e&&""!==e;if(!r&&!n)throw(0,p.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: "+t+" and id: "+e);var o=[void 0,void 0];r&&((0,f.assertNumberOrInteger)(t,"Time zone offset in seconds"),o[0]=t);n&&((0,f.assertString)(e,"Time zone ID"),l.assertValidZoneId("Time zone ID",e),o[1]=e);return o}(u,a),2),a=u[0],u=u[1];this.timeZoneOffsetSeconds=a,this.timeZoneId=u||void 0,Object.freeze(this)}function S(t,e){return!0===(t&&t[e])}function E(t,e,r,n,o,i,s){return l.dateToIsoString(t,e,r)+"T"+l.timeToIsoString(n,o,i,s)}function P(t,e){(0,f.assertValidDate)(t,"Standard date"),null!=e&&(0,f.assertNumberOrInteger)(e,"Nanosecond")}r.DateTime=t,Object.defineProperty(t.prototype,_,i),r.isDateTime=function(t){return S(t,_)}},{"./error":58,"./integer":61,"./internal/temporal-util":75,"./internal/util":79}],87:[function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,s,u,a){return new(u=u||Promise)(function(r,e){function n(t){try{i(a.next(t))}catch(t){e(t)}}function o(t){try{i(a.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?r(t.value):((e=t.value)instanceof u?e:new u(function(t){t(e)})).then(n,o)}i((a=a.apply(t,s||[])).next())})},o=this&&this.__generator||function(r,n){var o,i,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function(e){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(s=2&e[0]?i.return:e[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return u.label++,{value:e[1],done:!1};case 5:u.label++,i=e[1],e=[0];continue;case 7:e=u.ops.pop(),u.trys.pop();continue;default:if(!(s=0<(s=u.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){u=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){u.label=e[1];break}if(6===e[0]&&u.label<s[1]){u.label=s[1],s=e;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(e);break}s[2]&&u.ops.pop(),u.trys.pop();continue}e=n.call(r,u)}catch(t){e=[6,t],i=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([e,t])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var s=t("./internal/util"),u=t("./internal/connection-holder"),c=t("./internal/bookmark"),l=t("./internal/tx-config"),f=t("./internal/observers"),p=t("./error"),a=i(t("./result")),t=(h.prototype._begin=function(e,r){var n=this;this._connectionHolder.getConnection().then(function(t){if(n._onConnection(),t)return t.protocol().beginTransaction({bookmark:e,txConfig:r,mode:n._connectionHolder.mode(),database:n._connectionHolder.database(),impersonatedUser:n._impersonatedUser,beforeError:n._onError,afterComplete:n._onComplete});throw(0,p.newError)("No connection available")}).catch(function(t){return n._onError(t)})},h.prototype.run=function(t,e){t=(0,s.validateQueryAndParameters)(t,e),e=t.validatedQuery,t=t.params,t=this._state.run(e,t,{connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,reactive:this._reactive,fetchSize:this._fetchSize});return this._results.push(t),t},h.prototype.commit=function(){var r=this._state.commit({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,pendingResults:this._results});return this._state=r.state,this._onClose(),new Promise(function(t,e){r.result.subscribe({onCompleted:function(){return t()},onError:function(t){return e(t)}})})},h.prototype.rollback=function(){var r=this._state.rollback({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,pendingResults:this._results});return this._state=r.state,this._onClose(),new Promise(function(t,e){r.result.subscribe({onCompleted:function(){return t()},onError:function(t){return e(t)}})})},h.prototype.isOpen=function(){return this._state===d.ACTIVE},h.prototype.close=function(){return n(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return this.isOpen()?[4,this.rollback()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},h.prototype._onErrorCallback=function(t){return this._state=d.FAILED,this._onClose(),this._connectionHolder.releaseConnection()},h.prototype._onCompleteCallback=function(t){this._onBookmark(new c.Bookmark(t.bookmark))},h);function h(t){var e=t.connectionHolder,r=t.onClose,n=t.onBookmark,o=t.onConnection,i=t.reactive,s=t.fetchSize,t=t.impersonatedUser;this._connectionHolder=e,this._reactive=i,this._state=d.ACTIVE,this._onClose=r,this._onBookmark=n,this._onConnection=o,this._onError=this._onErrorCallback.bind(this),this._onComplete=this._onCompleteCallback.bind(this),this._fetchSize=s,this._results=[],this._impersonatedUser=t}var d={ACTIVE:{commit:function(t){return{result:b(!0,t.connectionHolder,t.onError,t.onComplete,t.onConnection,t.pendingResults),state:d.SUCCEEDED}},rollback:function(t){return{result:b(!1,t.connectionHolder,t.onError,t.onComplete,t.onConnection,t.pendingResults),state:d.ROLLED_BACK}},run:function(e,r,t){var n=t.connectionHolder,o=t.onError,i=t.onComplete,s=t.onConnection,u=t.reactive,a=t.fetchSize;return _(n.getConnection().then(function(t){if(s(),t)return t.protocol().run(e,r,{bookmark:c.Bookmark.empty(),txConfig:l.TxConfig.empty(),beforeError:o,afterComplete:i,reactive:u,fetchSize:a});throw(0,p.newError)("No connection available")}).catch(function(t){return new f.FailedObserver({error:t,onError:o})}),e,r,n)}},FAILED:{commit:function(t){var e=t.connectionHolder,r=t.onError;t.onComplete;return{result:_(new f.FailedObserver({error:(0,p.newError)("Cannot commit this transaction, because it has been rolled back either because of an error or explicit termination."),onError:r}),"COMMIT",{},e),state:d.FAILED}},rollback:function(t){var e=t.connectionHolder;t.onError,t.onComplete;return{result:_(new f.CompletedObserver,"ROLLBACK",{},e),state:d.FAILED}},run:function(t,e,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return _(new f.FailedObserver({error:(0,p.newError)("Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination."),onError:o}),t,e,n)}},SUCCEEDED:{commit:function(t){var e=t.connectionHolder,r=t.onError;t.onComplete;return{result:_(new f.FailedObserver({error:(0,p.newError)("Cannot commit this transaction, because it has already been committed."),onError:r}),"COMMIT",{}),state:d.SUCCEEDED,connectionHolder:e}},rollback:function(t){var e=t.connectionHolder,r=t.onError;t.onComplete;return{result:_(new f.FailedObserver({error:(0,p.newError)("Cannot rollback this transaction, because it has already been committed."),onError:r}),"ROLLBACK",{}),state:d.SUCCEEDED,connectionHolder:e}},run:function(t,e,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return _(new f.FailedObserver({error:(0,p.newError)("Cannot run query in this transaction, because it has already been committed."),onError:o}),t,e,n)}},ROLLED_BACK:{commit:function(t){var e=t.connectionHolder,r=t.onError;t.onComplete;return{result:_(new f.FailedObserver({error:(0,p.newError)("Cannot commit this transaction, because it has already been rolled back."),onError:r}),"COMMIT",{},e),state:d.ROLLED_BACK}},rollback:function(t){var e=t.connectionHolder;t.onError,t.onComplete;return{result:_(new f.FailedObserver({error:(0,p.newError)("Cannot rollback this transaction, because it has already been rolled back.")}),"ROLLBACK",{},e),state:d.ROLLED_BACK}},run:function(t,e,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return _(new f.FailedObserver({error:(0,p.newError)("Cannot run query in this transaction, because it has already been rolled back."),onError:o}),t,e,n)}}};function b(r,t,n,o,i,s){var e=t.getConnection().then(function(e){return i(),s.forEach(function(t){return t._cancel()}),Promise.all(s).then(function(t){if(e)return r?e.protocol().commitTransaction({beforeError:n,afterComplete:o}):e.protocol().rollbackTransaction({beforeError:n,afterComplete:o});throw(0,p.newError)("No connection available")})}).catch(function(t){return new f.FailedObserver({error:t,onError:n})});return new a.default(e,r?"COMMIT":"ROLLBACK",{},t)}function _(t,e,r,n){return void 0===n&&(n=u.EMPTY_CONNECTION_HOLDER),new a.default(Promise.resolve(t),e,r,new u.ReadOnlyConnectionHolder(n||u.EMPTY_CONNECTION_HOLDER))}r.default=t},{"./error":58,"./internal/bookmark":62,"./internal/connection-holder":63,"./internal/observers":69,"./internal/tx-config":77,"./internal/util":79,"./result":83}],88:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],89:[function(t,e,r){e.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},e.exports.default=e.exports,e.exports.__esModule=!0},{}],90:[function(t,e,r){e.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},{}],91:[function(t,e,r){function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}e.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},e.exports.default=e.exports,e.exports.__esModule=!0},{}],92:[function(t,e,r){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},{}],93:[function(t,e,r){var n=t("./setPrototypeOf.js");e.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)},e.exports.default=e.exports,e.exports.__esModule=!0},{"./setPrototypeOf.js":96}],94:[function(t,e,r){e.exports=function(t){return t&&t.__esModule?t:{default:t}},e.exports.default=e.exports,e.exports.__esModule=!0},{}],95:[function(t,e,r){var n=t("@babel/runtime/helpers/typeof").default,o=t("./assertThisInitialized.js");e.exports=function(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?o(t):e},e.exports.default=e.exports,e.exports.__esModule=!0},{"./assertThisInitialized.js":89,"@babel/runtime/helpers/typeof":97}],96:[function(t,r,e){function n(t,e){return r.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r.exports.default=r.exports,r.exports.__esModule=!0,n(t,e)}r.exports=n,r.exports.default=r.exports,r.exports.__esModule=!0},{}],97:[function(t,e,r){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(t){return typeof t}:e.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},{}],98:[function(t,e,r){"use strict";r.byteLength=function(t){var e=l(t),t=e[0],e=e[1];return 3*(t+e)/4-e},r.toByteArray=function(t){var e,r,n=l(t),o=n[0],n=n[1],i=new c(function(t,e){return 3*(t+e)/4-e}(o,n)),s=0,u=0<n?o-4:o;for(r=0;r<u;r+=4)e=a[t.charCodeAt(r)]<<18|a[t.charCodeAt(r+1)]<<12|a[t.charCodeAt(r+2)]<<6|a[t.charCodeAt(r+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=255&e;2===n&&(e=a[t.charCodeAt(r)]<<2|a[t.charCodeAt(r+1)]>>4,i[s++]=255&e);1===n&&(e=a[t.charCodeAt(r)]<<10|a[t.charCodeAt(r+1)]<<4|a[t.charCodeAt(r+2)]>>2,i[s++]=e>>8&255,i[s++]=255&e);return i},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],i=0,s=r-n;i<s;i+=16383)o.push(function(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(function(t){return u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}(n));return o.join("")}(t,i,s<i+16383?s:i+16383));1==n?(e=t[r-1],o.push(u[e>>2]+u[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],o.push(u[e>>10]+u[e>>4&63]+u[e<<2&63]+"="));return o.join("")};for(var u=[],a=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)u[o]=n[o],a[n.charCodeAt(o)]=o;function l(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");t=t.indexOf("=");return[t=-1===t?e:t,t===e?0:4-t%4]}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],99:[function(A,t,R){!function(t){!function(){"use strict";var u=A("base64-js"),i=A("ieee754");R.Buffer=f,R.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},R.INSPECT_MAX_BYTES=50;var e=2147483647;function o(t){if(e<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=new Uint8Array(t);return t.__proto__=f.prototype,t}function f(t,e,r){if("number"!=typeof t)return n(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return a(t)}function n(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=o(r),e=n.write(t,e);e!==r&&(n=n.slice(0,e));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(x(t,ArrayBuffer)||t&&x(t.buffer,ArrayBuffer))return function(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');r=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return r.__proto__=f.prototype,r}(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return f.from(n,e,r);n=function(t){if(f.isBuffer(t)){var e=0|l(t.length),r=o(e);return 0===r.length?r:(t.copy(r,0,0,e),r)}if(void 0!==t.length)return"number"!=typeof t.length||I(t.length)?o(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function a(t){return s(t),o(t<0?0:0|l(t))}function c(t){for(var e=t.length<0?0:0|l(t.length),r=o(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function l(t){if(e<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||x(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(t).length;default:if(o)return n?-1:j(t).length;e=(""+e).toLowerCase(),o=!0}}function r(t,e,r){var n,o,i,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0);(!r||r<0||n<r)&&(r=n);for(var o="",i=e;i<r;++i)o+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(t[i]);return o}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}(this,e,r);case"base64":return n=this,i=r,0===(o=e)&&i===n.length?u.fromByteArray(n):u.fromByteArray(n.slice(o,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,e,r);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function h(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),(r=(r=I(r=+r)?o?0:t.length-1:r)<0?t.length+r:r)>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,r):b(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,o){var i=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=i=2,u/=2,r/=2}function a(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(o)for(var c=-1,l=r;l<s;l++)if(a(t,l)===a(e,-1===c?0:l-c)){if(l-(c=-1===c?l:c)+1===u)return c*i}else-1!==c&&(l-=l-c),c=-1;else for(l=r=s<r+u?s-u:r;0<=l;l--){for(var f=!0,p=0;p<u;p++)if(a(t,l+p)!==a(e,p)){f=!1;break}if(f)return l}return-1}function _(t,e,r,n){return C(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function y(t,e,r,n){return C(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=t.charCodeAt(i),r=n>>8,n=n%256,o.push(n),o.push(r);return o}(e,t.length-r),t,r,n)}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,s,u,a,c=t[o],l=null,f=239<c?4:223<c?3:191<c?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=t[o+1]))&&127<(a=(31&c)<<6|63&i)&&(l=a);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&2047<(a=(15&c)<<12|(63&i)<<6|63&s)&&(a<55296||57343<a)&&(l=a);break;case 4:i=t[o+1],s=t[o+2],u=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&u)&&65535<(a=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&u)&&a<1114112&&(l=a)}null===l?(l=65533,f=1):65535<l&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=m)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=m));return r}(n)}R.kMaxLength=e,(f.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=n,f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(t,e,r){return e=e,r=r,s(t=t),!(t<=0)&&void 0!==e?"string"==typeof r?o(t).fill(e,r):o(t).fill(e):o(t)},f.allocUnsafe=a,f.allocUnsafeSlow=a,f.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==f.prototype},f.compare=function(t,e){if(x(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),x(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(t)||!f.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);if(void 0===e)for(o=e=0;o<t.length;++o)e+=t[o].length;for(var r=f.allocUnsafe(e),n=0,o=0;o<t.length;++o){var i=t[o];if(x(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,n),n+=i.length}return r},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)h(this,e,e+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)h(this,e,e+3),h(this,e+1,e+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)h(this,e,e+7),h(this,e+1,e+6),h(this,e+2,e+5),h(this,e+3,e+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?v(this,0,t):r.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",e=R.INSPECT_MAX_BYTES,t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim();return this.length>e&&(t+=" ... "),"<Buffer "+t+">"},f.prototype.compare=function(t,e,r,n,o){if(x(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=e)return 0;if(o<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),u=Math.min(i,s),a=this.slice(n,o),c=t.slice(e,r),l=0;l<u;++l)if(a[l]!==c[l]){i=a[l],s=c[l];break}return i<s?-1:s<i?1:0},f.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},f.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},f.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||o<r)&&(r=o),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,s,u,a=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var o=t.length-r;(!n||o<(n=Number(n)))&&(n=o),(o=e.length)/2<n&&(n=o/2);for(var i=0;i<n;++i){var s=parseInt(e.substr(2*i,2),16);if(I(s))return i;t[r+i]=s}return i}(this,t,e,r);case"utf8":case"utf-8":return s=e,u=r,C(j(t,(i=this).length-s),i,s,u);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return _(this,t,e,r);case"base64":return i=this,s=e,u=r,C(T(t),i,s,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,t,e,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var m=4096;function g(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,r,n,o,i){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function w(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function S(t,e,r,n,o){return e=+e,r>>>=0,o||w(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function E(t,e,r,n,o){return e=+e,r>>>=0,o||w(t,0,r,8),i.write(t,e,r,n,52,8),r+8}f.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r);e=this.subarray(t,e=e<t?t:e);return e.__proto__=f.prototype,e},f.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||g(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},f.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||g(t,e,this.length);for(var n=this[t+--e],o=1;0<e&&(o*=256);)n+=this[t+--e]*o;return n},f.prototype.readUInt8=function(t,e){return t>>>=0,e||g(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||g(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||g(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||g(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||g(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||g(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||g(t,e,this.length);for(var n=e,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},f.prototype.readInt8=function(t,e){return t>>>=0,e||g(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||g(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt16BE=function(t,e){t>>>=0,e||g(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||g(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||g(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||g(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||g(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||g(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||g(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||O(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},f.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||O(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,n){t=+t,e>>>=0,n||O(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var o=0,i=1,s=0;for(this[e]=255&t;++o<r&&(i*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/i>>0)-s&255;return e+r},f.prototype.writeIntBE=function(t,e,r,n){t=+t,e>>>=0,n||O(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var o=r-1,i=1,s=0;for(this[e+o]=255&t;0<=--o&&(i*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/i>>0)-s&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,1,127,-128),this[e]=255&(t=t<0?255+t+1:t),e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||O(this,t,e,4,2147483647,-2147483648),this[e]=(t=t<0?4294967295+t+1:t)>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return S(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return S(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return E(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return E(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),(n=0<n&&n<r?r:n)===r)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var o=(n=t.length-e<n-r?t.length-e+r:n)-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var i=o-1;0<=i;--i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return o},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o;1===t.length&&(o=t.charCodeAt(0),("utf8"===n&&o<128||"latin1"===n)&&(t=o))}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(i=e;i<r;++i)this[i]=t;else{var s=f.isBuffer(t)?t:f.from(t,n),u=s.length;if(0===u)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%u]}return this};var P=/[^+/0-9A-Za-z-_]/g;function j(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],s=0;s<n;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!o){if(56319<r){-1<(e-=3)&&i.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(e-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,r<128){if(--e<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function T(t){return u.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function C(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function x(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function I(t){return t!=t}}.call(this)}.call(this,A("buffer").Buffer)},{"base64-js":98,buffer:99,ieee754:100}],100:[function(t,e,r){r.read=function(t,e,r,n,o){var i,s,u=8*o-n-1,a=(1<<u)-1,c=a>>1,l=-7,f=r?o-1:0,p=r?-1:1,r=t[e+f];for(f+=p,i=r&(1<<-l)-1,r>>=-l,l+=u;0<l;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;0<l;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===a)return s?NaN:1/0*(r?-1:1);s+=Math.pow(2,n),i-=c}return(r?-1:1)*s*Math.pow(2,i-n)},r.write=function(t,e,r,n,o,i){var s,u,a=8*i-o-1,c=(1<<a)-1,l=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,i=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-s))<1&&(s--,n*=2),2<=(e+=1<=s+l?f/n:f*Math.pow(2,1-l))*n&&(s++,n/=2),c<=s+l?(u=0,s=c):1<=s+l?(u=(e*n-1)*Math.pow(2,o),s+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),s=0));8<=o;t[r+p]=255&u,p+=h,u/=256,o-=8);for(s=s<<o|u,a+=o;0<a;t[r+p]=255&s,p+=h,s/=256,a-=8);t[r+p-h]|=128*i}},{}],101:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./internal/Observable");r.Observable=n.Observable;n=t("./internal/observable/ConnectableObservable");r.ConnectableObservable=n.ConnectableObservable;n=t("./internal/operators/groupBy");r.GroupedObservable=n.GroupedObservable;n=t("./internal/symbol/observable");r.observable=n.observable;n=t("./internal/Subject");r.Subject=n.Subject;n=t("./internal/BehaviorSubject");r.BehaviorSubject=n.BehaviorSubject;n=t("./internal/ReplaySubject");r.ReplaySubject=n.ReplaySubject;n=t("./internal/AsyncSubject");r.AsyncSubject=n.AsyncSubject;n=t("./internal/scheduler/asap");r.asap=n.asap,r.asapScheduler=n.asapScheduler;n=t("./internal/scheduler/async");r.async=n.async,r.asyncScheduler=n.asyncScheduler;n=t("./internal/scheduler/queue");r.queue=n.queue,r.queueScheduler=n.queueScheduler;n=t("./internal/scheduler/animationFrame");r.animationFrame=n.animationFrame,r.animationFrameScheduler=n.animationFrameScheduler;n=t("./internal/scheduler/VirtualTimeScheduler");r.VirtualTimeScheduler=n.VirtualTimeScheduler,r.VirtualAction=n.VirtualAction;n=t("./internal/Scheduler");r.Scheduler=n.Scheduler;n=t("./internal/Subscription");r.Subscription=n.Subscription;n=t("./internal/Subscriber");r.Subscriber=n.Subscriber;n=t("./internal/Notification");r.Notification=n.Notification,r.NotificationKind=n.NotificationKind;n=t("./internal/util/pipe");r.pipe=n.pipe;n=t("./internal/util/noop");r.noop=n.noop;n=t("./internal/util/identity");r.identity=n.identity;n=t("./internal/util/isObservable");r.isObservable=n.isObservable;n=t("./internal/util/ArgumentOutOfRangeError");r.ArgumentOutOfRangeError=n.ArgumentOutOfRangeError;n=t("./internal/util/EmptyError");r.EmptyError=n.EmptyError;n=t("./internal/util/ObjectUnsubscribedError");r.ObjectUnsubscribedError=n.ObjectUnsubscribedError;n=t("./internal/util/UnsubscriptionError");r.UnsubscriptionError=n.UnsubscriptionError;n=t("./internal/util/TimeoutError");r.TimeoutError=n.TimeoutError;n=t("./internal/observable/bindCallback");r.bindCallback=n.bindCallback;n=t("./internal/observable/bindNodeCallback");r.bindNodeCallback=n.bindNodeCallback;n=t("./internal/observable/combineLatest");r.combineLatest=n.combineLatest;n=t("./internal/observable/concat");r.concat=n.concat;n=t("./internal/observable/defer");r.defer=n.defer;n=t("./internal/observable/empty");r.empty=n.empty;n=t("./internal/observable/forkJoin");r.forkJoin=n.forkJoin;n=t("./internal/observable/from");r.from=n.from;n=t("./internal/observable/fromEvent");r.fromEvent=n.fromEvent;n=t("./internal/observable/fromEventPattern");r.fromEventPattern=n.fromEventPattern;n=t("./internal/observable/generate");r.generate=n.generate;n=t("./internal/observable/iif");r.iif=n.iif;n=t("./internal/observable/interval");r.interval=n.interval;n=t("./internal/observable/merge");r.merge=n.merge;n=t("./internal/observable/never");r.never=n.never;n=t("./internal/observable/of");r.of=n.of;n=t("./internal/observable/onErrorResumeNext");r.onErrorResumeNext=n.onErrorResumeNext;n=t("./internal/observable/pairs");r.pairs=n.pairs;n=t("./internal/observable/partition");r.partition=n.partition;n=t("./internal/observable/race");r.race=n.race;n=t("./internal/observable/range");r.range=n.range;n=t("./internal/observable/throwError");r.throwError=n.throwError;n=t("./internal/observable/timer");r.timer=n.timer;n=t("./internal/observable/using");r.using=n.using;n=t("./internal/observable/zip");r.zip=n.zip;n=t("./internal/scheduled/scheduled");r.scheduled=n.scheduled;n=t("./internal/observable/empty");r.EMPTY=n.EMPTY;n=t("./internal/observable/never");r.NEVER=n.NEVER;t=t("./internal/config");r.config=t.config},{"./internal/AsyncSubject":102,"./internal/BehaviorSubject":103,"./internal/Notification":105,"./internal/Observable":106,"./internal/ReplaySubject":109,"./internal/Scheduler":110,"./internal/Subject":111,"./internal/Subscriber":113,"./internal/Subscription":114,"./internal/config":115,"./internal/observable/ConnectableObservable":117,"./internal/observable/bindCallback":119,"./internal/observable/bindNodeCallback":120,"./internal/observable/combineLatest":121,"./internal/observable/concat":122,"./internal/observable/defer":123,"./internal/observable/empty":124,"./internal/observable/forkJoin":125,"./internal/observable/from":126,"./internal/observable/fromEvent":128,"./internal/observable/fromEventPattern":129,"./internal/observable/generate":130,"./internal/observable/iif":131,"./internal/observable/interval":132,"./internal/observable/merge":133,"./internal/observable/never":134,"./internal/observable/of":135,"./internal/observable/onErrorResumeNext":136,"./internal/observable/pairs":137,"./internal/observable/partition":138,"./internal/observable/race":139,"./internal/observable/range":140,"./internal/observable/throwError":141,"./internal/observable/timer":142,"./internal/observable/using":143,"./internal/observable/zip":144,"./internal/operators/groupBy":180,"./internal/scheduled/scheduled":252,"./internal/scheduler/VirtualTimeScheduler":262,"./internal/scheduler/animationFrame":263,"./internal/scheduler/asap":264,"./internal/scheduler/async":265,"./internal/scheduler/queue":266,"./internal/symbol/observable":268,"./internal/util/ArgumentOutOfRangeError":270,"./internal/util/EmptyError":271,"./internal/util/ObjectUnsubscribedError":273,"./internal/util/TimeoutError":274,"./internal/util/UnsubscriptionError":275,"./internal/util/identity":278,"./internal/util/isObservable":287,"./internal/util/noop":290,"./internal/util/pipe":292}],102:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./Subject"),u=t("./Subscription"),o=(i=s.Subject,o(a,i),a.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),u.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),u.Subscription.EMPTY):i.prototype._subscribe.call(this,t)},a.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},a.prototype.error=function(t){this.hasCompleted||i.prototype.error.call(this,t)},a.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&i.prototype.next.call(this,this.value),i.prototype.complete.call(this)},a);function a(){var t=null!==i&&i.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}r.AsyncSubject=o},{"./Subject":111,"./Subscription":114}],103:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./Subject"),u=t("./util/ObjectUnsubscribedError"),o=(i=s.Subject,o(a,i),Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),a.prototype._subscribe=function(t){var e=i.prototype._subscribe.call(this,t);return e&&!e.closed&&t.next(this._value),e},a.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new u.ObjectUnsubscribedError;return this._value},a.prototype.next=function(t){i.prototype.next.call(this,this._value=t)},a);function a(t){var e=i.call(this)||this;return e._value=t,e}r.BehaviorSubject=o},{"./Subject":111,"./util/ObjectUnsubscribedError":273}],104:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./Subscriber"),o=(i=t.Subscriber,o(s,i),s.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},s.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},s.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},s);function s(t,e,r){var n=i.call(this)||this;return n.parent=t,n.outerValue=e,n.outerIndex=r,n.index=0,n}r.InnerSubscriber=o},{"./Subscriber":113}],105:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./observable/empty"),o=t("./observable/of"),i=t("./observable/throwError");(t=r.NotificationKind||(r.NotificationKind={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";s.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},s.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},s.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},s.prototype.toObservable=function(){switch(this.kind){case"N":return o.of(this.value);case"E":return i.throwError(this.error);case"C":return n.empty()}throw new Error("unexpected notification kind value")},s.createNext=function(t){return void 0!==t?new s("N",t):s.undefinedValueNotification},s.createError=function(t){return new s("E",void 0,t)},s.createComplete=function(){return s.completeNotification},s.completeNotification=new s("C"),s.undefinedValueNotification=new s("N",void 0),t=s;function s(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}r.Notification=t},{"./observable/empty":124,"./observable/of":135,"./observable/throwError":141}],106:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./util/canReportError"),o=t("./util/toSubscriber"),i=t("./symbol/observable"),s=t("./util/pipe"),u=t("./config"),i=(a.prototype.lift=function(t){var e=new a;return e.source=this,e.operator=t,e},a.prototype.subscribe=function(t,e,r){var n=this.operator,r=o.toSubscriber(t,e,r);if(n?r.add(n.call(r,this.source)):r.add(this.source||u.config.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),u.config.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},a.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),n.canReportError(e)?e.error(t):console.warn(t)}},a.prototype.forEach=function(n,t){var o=this;return new(t=c(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),r&&r.unsubscribe()}},e,t)})},a.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},a.prototype[i.observable]=function(){return this},a.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},a.prototype.toPromise=function(t){var n=this;return new(t=c(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},a.create=function(t){return new a(t)},a);function a(t){this._isScalar=!1,t&&(this._subscribe=t)}function c(t){if(!(t=t||(u.config.Promise||Promise)))throw new Error("no Promise impl found");return t}r.Observable=i},{"./config":115,"./symbol/observable":268,"./util/canReportError":276,"./util/pipe":292,"./util/toSubscriber":299}],107:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./config"),o=t("./util/hostReportError");r.empty={closed:!0,next:function(t){},error:function(t){if(n.config.useDeprecatedSynchronousErrorHandling)throw t;o.hostReportError(t)},complete:function(){}}},{"./config":115,"./util/hostReportError":277}],108:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./Subscriber"),o=(i=t.Subscriber,o(s,i),s.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(e)},s.prototype.notifyError=function(t,e){this.destination.error(t)},s.prototype.notifyComplete=function(t){this.destination.complete()},s);function s(){return null!==i&&i.apply(this,arguments)||this}r.OuterSubscriber=o},{"./Subscriber":113}],109:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./Subject"),u=t("./scheduler/queue"),a=t("./Subscription"),c=t("./operators/observeOn"),l=t("./util/ObjectUnsubscribedError"),f=t("./SubjectSubscription"),o=(i=s.Subject,o(p,i),p.prototype.nextInfiniteTimeWindow=function(t){var e;this.isStopped||((e=this._events).push(t),e.length>this._bufferSize&&e.shift()),i.prototype.next.call(this,t)},p.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new h(this._getNow(),t)),this._trimBufferThenGetEvents()),i.prototype.next.call(this,t)},p.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=n.length;if(this.closed)throw new l.ObjectUnsubscribedError;if(e=this.isStopped||this.hasError?a.Subscription.EMPTY:(this.observers.push(t),new f.SubjectSubscription(this,t)),o&&t.add(t=new c.ObserveOnSubscriber(t,o)),r)for(var s=0;s<i&&!t.closed;s++)t.next(n[s]);else for(s=0;s<i&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},p.prototype._getNow=function(){return(this.scheduler||u.queue).now()},p.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,o=n.length,i=0;i<o&&!(t-n[i].time<r);)i++;return 0<(i=e<o?Math.max(i,o-e):i)&&n.splice(0,i),n},p);function p(t,e,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY);var n=i.call(this)||this;return n.scheduler=r,n._events=[],n._infiniteTimeWindow=!1,n._bufferSize=t<1?1:t,n._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(n._infiniteTimeWindow=!0,n.next=n.nextInfiniteTimeWindow):n.next=n.nextTimeWindow,n}r.ReplaySubject=o;var h=function(t,e){this.time=t,this.value=e}},{"./Subject":111,"./SubjectSubscription":112,"./Subscription":114,"./operators/observeOn":195,"./scheduler/queue":266,"./util/ObjectUnsubscribedError":273}],110:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},o.now=function(){return Date.now()},o);function o(t,e){void 0===e&&(e=o.now),this.SchedulerAction=t,this.now=e}r.Scheduler=n},{}],111:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./Observable"),u=t("./Subscriber"),a=t("./Subscription"),c=t("./util/ObjectUnsubscribedError"),l=t("./SubjectSubscription"),t=t("../internal/symbol/rxSubscriber"),f=(i=u.Subscriber,o(p,i),p);function p(t){var e=i.call(this,t)||this;return e.destination=t,e}r.SubjectSubscriber=f;var h,t=(h=s.Observable,o(d,h),d.prototype[t.rxSubscriber]=function(){return new f(this)},d.prototype.lift=function(t){var e=new _(this,this);return e.operator=t,e},d.prototype.next=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].next(t)},d.prototype.error=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),o=0;o<r;o++)n[o].error(t);this.observers.length=0},d.prototype.complete=function(){if(this.closed)throw new c.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},d.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},d.prototype._trySubscribe=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;return h.prototype._trySubscribe.call(this,t)},d.prototype._subscribe=function(t){if(this.closed)throw new c.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),a.Subscription.EMPTY):this.isStopped?(t.complete(),a.Subscription.EMPTY):(this.observers.push(t),new l.SubjectSubscription(this,t))},d.prototype.asObservable=function(){var t=new s.Observable;return t.source=this,t},d.create=function(t,e){return new _(t,e)},d);function d(){var t=h.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}r.Subject=t;var b,_=(o(y,b=t),y.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},y.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},y.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},y.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.Subscription.EMPTY},y);function y(t,e){var r=b.call(this)||this;return r.destination=t,r.source=e,r}r.AnonymousSubject=_},{"../internal/symbol/rxSubscriber":269,"./Observable":106,"./SubjectSubscription":112,"./Subscriber":113,"./Subscription":114,"./util/ObjectUnsubscribedError":273}],112:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./Subscription"),o=(i=t.Subscription,o(s,i),s.prototype.unsubscribe=function(){var t,e;this.closed||(this.closed=!0,t=(e=this.subject).observers,this.subject=null,!t||0===t.length||e.isStopped||e.closed||-1!==(e=t.indexOf(this.subscriber))&&t.splice(e,1))},s);function s(t,e){var r=i.call(this)||this;return r.subject=t,r.subscriber=e,r.closed=!1,r}r.SubjectSubscription=o},{"./Subscription":114}],113:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./util/isFunction"),u=t("./Observer"),a=t("./Subscription"),c=t("../internal/symbol/rxSubscriber"),l=t("./config"),f=t("./util/hostReportError"),c=(i=a.Subscription,o(p,i),p.prototype[c.rxSubscriber]=function(){return this},p.create=function(t,e,r){r=new p(t,e,r);return r.syncErrorThrowable=!1,r},p.prototype.next=function(t){this.isStopped||this._next(t)},p.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},p.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},p.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this))},p.prototype._next=function(t){this.destination.next(t)},p.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},p.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},p.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},p);function p(t,e,r){var n=i.call(this)||this;switch(n.syncErrorValue=null,n.syncErrorThrown=!1,n.syncErrorThrowable=!1,n.isStopped=!1,arguments.length){case 0:n.destination=u.empty;break;case 1:if(!t){n.destination=u.empty;break}if("object"==typeof t){t instanceof p?(n.syncErrorThrowable=t.syncErrorThrowable,(n.destination=t).add(n)):(n.syncErrorThrowable=!0,n.destination=new d(n,t));break}default:n.syncErrorThrowable=!0,n.destination=new d(n,t,e,r)}return n}r.Subscriber=c;var h,d=(o(b,h=c),b.prototype.next=function(t){var e;!this.isStopped&&this._next&&(e=this._parentSubscriber,l.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t))},b.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=l.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):f.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;f.hostReportError(t)}}},b.prototype.complete=function(){var t,e,r=this;this.isStopped||(t=this._parentSubscriber,this._complete&&(e=function(){return r._complete.call(r._context)},l.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,e):this.__tryOrUnsub(e)),this.unsubscribe())},b.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),l.config.useDeprecatedSynchronousErrorHandling)throw t;f.hostReportError(t)}},b.prototype.__tryOrSetError=function(e,t,r){if(!l.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(t){return l.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0):(f.hostReportError(t),!0)}return!1},b.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},b);function b(t,e,r,n){var o,i=h.call(this)||this;i._parentSubscriber=t;t=i;return s.isFunction(e)?o=e:e&&(o=e.next,r=e.error,n=e.complete,e!==u.empty&&(t=Object.create(e),s.isFunction(t.unsubscribe)&&i.add(t.unsubscribe.bind(t)),t.unsubscribe=i.unsubscribe.bind(i))),i._context=t,i._next=o,i._error=r,i._complete=n,i}r.SafeSubscriber=d},{"../internal/symbol/rxSubscriber":269,"./Observer":107,"./Subscription":114,"./config":115,"./util/hostReportError":277,"./util/isFunction":282}],114:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t("./util/isArray"),c=t("./util/isObject"),l=t("./util/isFunction"),f=t("./util/UnsubscriptionError"),t=(p.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this._parentOrParents,r=this._ctorUnsubscribe,n=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof p)t.remove(this);else if(null!==t)for(var i=0;i<t.length;++i)t[i].remove(this);if(l.isFunction(n)){r&&(this._unsubscribe=void 0);try{n.call(this)}catch(t){e=t instanceof f.UnsubscriptionError?h(t.errors):[t]}}if(a.isArray(o))for(var i=-1,s=o.length;++i<s;){var u=o[i];if(c.isObject(u))try{u.unsubscribe()}catch(t){e=e||[],t instanceof f.UnsubscriptionError?e=e.concat(h(t.errors)):e.push(t)}}if(e)throw new f.UnsubscriptionError(e)}},p.prototype.add=function(t){var e,r=t;if(!t)return p.EMPTY;switch(typeof t){case"function":r=new p(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;r instanceof p||(e=r,(r=new p)._subscriptions=[e]);break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var n=r._parentOrParents;if(null===n)r._parentOrParents=this;else if(n instanceof p){if(n===this)return r;r._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return r;n.push(this)}n=this._subscriptions;return null===n?this._subscriptions=[r]:n.push(r),r},p.prototype.remove=function(t){var e=this._subscriptions;!e||-1!==(t=e.indexOf(t))&&e.splice(t,1)},p.EMPTY=((t=new p).closed=!0,t),p);function p(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}function h(t){return t.reduce(function(t,e){return t.concat(e instanceof f.UnsubscriptionError?e.errors:e)},[])}r.Subscription=t},{"./util/UnsubscriptionError":275,"./util/isArray":279,"./util/isFunction":282,"./util/isObject":286}],115:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=!1;r.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){var e;t?(e=new Error,console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)):n&&console.log("RxJS: Back to a better error behavior. Thank you. <3"),n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},{}],116:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./Subscriber"),u=t("./Observable"),a=t("./util/subscribeTo"),t=(i=s.Subscriber,o(c,i),c.prototype._next=function(t){this.parent.notifyNext(t)},c.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},c.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},c);function c(t){var e=i.call(this)||this;return e.parent=t,e}r.SimpleInnerSubscriber=t;var l,t=(l=s.Subscriber,o(f,l),f.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},f.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},f.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},f);function f(t,e,r){var n=l.call(this)||this;return n.parent=t,n.outerValue=e,n.outerIndex=r,n}r.ComplexInnerSubscriber=t;var p,t=(p=s.Subscriber,o(h,p),h.prototype.notifyNext=function(t){this.destination.next(t)},h.prototype.notifyError=function(t){this.destination.error(t)},h.prototype.notifyComplete=function(){this.destination.complete()},h);function h(){return null!==p&&p.apply(this,arguments)||this}r.SimpleOuterSubscriber=t;var d,o=(d=s.Subscriber,o(b,d),b.prototype.notifyNext=function(t,e,r,n){this.destination.next(e)},b.prototype.notifyError=function(t){this.destination.error(t)},b.prototype.notifyComplete=function(t){this.destination.complete()},b);function b(){return null!==d&&d.apply(this,arguments)||this}r.ComplexOuterSubscriber=o,r.innerSubscribe=function(t,e){if(!e.closed){if(t instanceof u.Observable)return t.subscribe(e);var r;try{r=a.subscribeTo(t)(e)}catch(t){e.error(t)}return r}}},{"./Observable":106,"./Subscriber":113,"./util/subscribeTo":293}],117:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("../Subject"),u=t("../Observable"),a=t("../Subscriber"),c=t("../Subscription"),l=t("../operators/refCount"),u=(i=u.Observable,o(f,i),f.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},f.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},f.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new c.Subscription).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.Subscription.EMPTY)),t},f.prototype.refCount=function(){return l.refCount()(this)},f);function f(t,e){var r=i.call(this)||this;return r.source=t,r.subjectFactory=e,r._refCount=0,r._isComplete=!1,r}r.ConnectableObservable=u,r.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(u=u.prototype)._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};var p,h=(p=s.SubjectSubscriber,o(d,p),d.prototype._error=function(t){this._unsubscribe(),p.prototype._error.call(this,t)},d.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),p.prototype._complete.call(this)},d.prototype._unsubscribe=function(){var t,e=this.connectable;e&&(this.connectable=null,t=e._connection,e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe())},d);function d(t,e){t=p.call(this,t)||this;return t.connectable=e,t}b.prototype.call=function(t,e){var r=this.connectable;r._refCount++;t=new y(t,r),e=e.subscribe(t);return t.closed||(t.connection=r.connect()),e};function b(t){this.connectable=t}var _,y=(_=a.Subscriber,o(v,_),v.prototype._unsubscribe=function(){var t,e=this.connectable;e?(this.connectable=null,(t=e._refCount)<=0?this.connection=null:(e._refCount=t-1,1<t?this.connection=null:(t=this.connection,e=e._connection,this.connection=null,!e||t&&e!==t||e.unsubscribe()))):this.connection=null},v);function v(t,e){t=_.call(this,t)||this;return t.connectable=e,t}},{"../Observable":106,"../Subject":111,"../Subscriber":113,"../Subscription":114,"../operators/refCount":206}],118:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("../Observable"),u=t("../scheduler/asap"),a=t("../util/isNumeric"),o=(i=s.Observable,o(c,i),c.create=function(t,e,r){return new c(t,e=void 0===e?0:e,r=void 0===r?u.asap:r)},c.dispatch=function(t){var e=t.source,t=t.subscriber;return this.add(e.subscribe(t))},c.prototype._subscribe=function(t){var e=this.delayTime,r=this.source;return this.scheduler.schedule(c.dispatch,e,{source:r,subscriber:t})},c);function c(t,e,r){void 0===e&&(e=0),void 0===r&&(r=u.asap);var n=i.call(this)||this;return n.source=t,n.delayTime=e,n.scheduler=r,(!a.isNumeric(e)||e<0)&&(n.delayTime=0),r&&"function"==typeof r.schedule||(n.scheduler=u.asap),n}r.SubscribeOnObservable=o},{"../Observable":106,"../scheduler/asap":264,"../util/isNumeric":285}],119:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var u=t("../Observable"),a=t("../AsyncSubject"),o=t("../operators/map"),c=t("../util/canReportError"),l=t("../util/isArray"),f=t("../util/isScheduler");function p(t){var n=this,e=t.args,r=t.subscriber,o=t.params,i=o.callbackFunc,t=o.context,s=o.scheduler;if(!(u=o.subject)){var u=o.subject=new a.AsyncSubject;try{i.apply(t,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length<=1?t[0]:t;n.add(s.schedule(h,0,{value:r,subject:u}))}]))}catch(t){u.error(t)}}this.add(u.subscribe(r))}function h(t){var e=t.value,t=t.subject;t.next(e),t.complete()}r.bindCallback=function r(i,n,s){if(n){if(!f.isScheduler(n))return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(i,s).apply(void 0,t).pipe(o.map(function(t){return l.isArray(t)?n.apply(void 0,t):n(t)}))};s=n}return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r,n=this,o={context:n,subject:r,callbackFunc:i,scheduler:s};return new u.Observable(function(t){if(s)return s.schedule(p,0,{args:e,subscriber:t,params:o});if(!r){r=new a.AsyncSubject;try{i.apply(n,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r.next(t.length<=1?t[0]:t),r.complete()}]))}catch(t){c.canReportError(r)?r.error(t):console.warn(t)}}return r.subscribe(t)})}}},{"../AsyncSubject":102,"../Observable":106,"../operators/map":184,"../util/canReportError":276,"../util/isArray":279,"../util/isScheduler":289}],120:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var u=t("../Observable"),a=t("../AsyncSubject"),o=t("../operators/map"),c=t("../util/canReportError"),l=t("../util/isScheduler"),f=t("../util/isArray");function p(t){var n=this,e=t.params,r=t.subscriber,o=t.context,i=e.callbackFunc,t=e.args,s=e.scheduler;if(!(u=e.subject)){var u=e.subject=new a.AsyncSubject;try{i.apply(o,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?n.add(s.schedule(d,0,{err:r,subject:u})):(r=t.length<=1?t[0]:t,n.add(s.schedule(h,0,{value:r,subject:u})))}]))}catch(t){this.add(s.schedule(d,0,{err:t,subject:u}))}}this.add(u.subscribe(r))}function h(t){var e=t.value,t=t.subject;t.next(e),t.complete()}function d(t){var e=t.err;t.subject.error(e)}r.bindNodeCallback=function r(i,n,s){if(n){if(!l.isScheduler(n))return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(i,s).apply(void 0,t).pipe(o.map(function(t){return f.isArray(t)?n.apply(void 0,t):n(t)}))};s=n}return function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var o={subject:void 0,args:r,callbackFunc:i,scheduler:s,context:this};return new u.Observable(function(t){var e=o.context,n=o.subject;if(s)return s.schedule(p,0,{params:o,subscriber:t,context:e});if(!n){n=o.subject=new a.AsyncSubject;try{i.apply(e,r.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?n.error(r):(n.next(t.length<=1?t[0]:t),n.complete())}]))}catch(t){c.canReportError(n)?n.error(t):console.warn(t)}}return n.subscribe(t)})}}},{"../AsyncSubject":102,"../Observable":106,"../operators/map":184,"../util/canReportError":276,"../util/isArray":279,"../util/isScheduler":289}],121:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../util/isScheduler"),s=t("../util/isArray"),u=t("../OuterSubscriber"),a=t("../util/subscribeToResult"),c=t("./fromArray"),l={};r.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return i.isScheduler(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),c.fromArray(t,n).lift(new f(r))};var f=(p.prototype.call=function(t,e){return e.subscribe(new d(t,this.resultSelector))},p);function p(t){this.resultSelector=t}r.CombineLatestOperator=f;var h,d=(h=u.OuterSubscriber,o(b,h),b.prototype._next=function(t){this.values.push(l),this.observables.push(t)},b.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(a.subscribeToResult(this,n,void 0,r))}}},b.prototype.notifyComplete=function(t){0==--this.active&&this.destination.complete()},b.prototype.notifyNext=function(t,e,r){var n=this.values,o=n[r],o=this.toRespond?o===l?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},b.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},b);function b(t,e){t=h.call(this,t)||this;return t.resultSelector=e,t.active=0,t.values=[],t.observables=[],t}r.CombineLatestSubscriber=d},{"../OuterSubscriber":108,"../util/isArray":279,"../util/isScheduler":289,"../util/subscribeToResult":298,"./fromArray":127}],122:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./of"),o=t("../operators/concatAll");r.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.concatAll()(n.of.apply(void 0,t))}},{"../operators/concatAll":156,"./of":135}],123:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),o=t("./from"),i=t("./empty");r.defer=function(r){return new n.Observable(function(e){var t;try{t=r()}catch(t){return void e.error(t)}return(t?o.from(t):i.empty()).subscribe(e)})}},{"../Observable":106,"./empty":124,"./from":126}],124:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable");r.EMPTY=new n.Observable(function(t){return t.complete()}),r.empty=function(t){return t?(e=t,new n.Observable(function(t){return e.schedule(function(){return t.complete()})})):r.EMPTY;var e}},{"../Observable":106}],125:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),i=t("../util/isArray"),s=t("../operators/map"),u=t("../util/isObject"),l=t("./from");function a(a,c){return new n.Observable(function(n){var o=a.length;if(0!==o)for(var i=new Array(o),s=0,u=0,t=0;t<o;t++)!function(e){var t=l.from(a[e]),r=!1;n.add(t.subscribe({next:function(t){r||(r=!0,u++),i[e]=t},error:function(t){return n.error(t)},complete:function(){++s!==o&&r||(u===o&&n.next(c?c.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),n.complete())}}))}(t);else n.complete()})}r.forkJoin=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(i.isArray(r))return a(r,null);if(u.isObject(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return a(n.map(function(t){return r[t]}),n)}}if("function"!=typeof t[t.length-1])return a(t,null);var o=t.pop();return a(t=1===t.length&&i.isArray(t[0])?t[0]:t,null).pipe(s.map(function(t){return o.apply(void 0,t)}))}},{"../Observable":106,"../operators/map":184,"../util/isArray":279,"../util/isObject":286,"./from":126}],126:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),o=t("../util/subscribeTo"),i=t("../scheduled/scheduled");r.from=function(t,e){return e?i.scheduled(t,e):t instanceof n.Observable?t:new n.Observable(o.subscribeTo(t))}},{"../Observable":106,"../scheduled/scheduled":252,"../util/subscribeTo":293}],127:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),o=t("../util/subscribeToArray"),i=t("../scheduled/scheduleArray");r.fromArray=function(t,e){return e?i.scheduleArray(t,e):new n.Observable(o.subscribeToArray(t))}},{"../Observable":106,"../scheduled/scheduleArray":248,"../util/subscribeToArray":294}],128:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../util/isArray"),u=t("../util/isFunction"),a=t("../operators/map");Object.prototype.toString;function p(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function h(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}function d(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}r.fromEvent=function t(r,n,o,e){return u.isFunction(o)&&(e=o,o=void 0),e?t(r,n,o).pipe(a.map(function(t){return s.isArray(t)?e.apply(void 0,t):e(t)})):new i.Observable(function(e){!function t(e,r,n,o,i){var s;if(d(e)){var u=e;e.addEventListener(r,n,i),s=function(){return u.removeEventListener(r,n,i)}}else if(h(e)){var a=e;e.on(r,n),s=function(){return a.off(r,n)}}else if(p(e)){var c=e;e.addListener(r,n),s=function(){return c.removeListener(r,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,f=e.length;l<f;l++)t(e[l],r,n,o,i)}o.add(s)}(r,n,function(t){1<arguments.length?e.next(Array.prototype.slice.call(arguments)):e.next(t)},e,o)})}},{"../Observable":106,"../operators/map":184,"../util/isArray":279,"../util/isFunction":282}],129:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../util/isArray"),u=t("../util/isFunction"),a=t("../operators/map");r.fromEventPattern=function t(n,o,e){return e?t(n,o).pipe(a.map(function(t){return s.isArray(t)?e.apply(void 0,t):e(t)})):new i.Observable(function(r){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)}var e;try{e=n(t)}catch(t){return void r.error(t)}if(u.isFunction(o))return function(){return o(t,e)}})}},{"../Observable":106,"../operators/map":184,"../util/isArray":279,"../util/isFunction":282}],130:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=t("../Observable"),c=t("../util/identity"),l=t("../util/isScheduler");function f(t){var e,r=t.subscriber,n=t.condition;if(!r.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void r.error(t)}else t.needIterate=!0;if(n){var o=void 0;try{o=n(t.state)}catch(t){return void r.error(t)}if(!o)return void r.complete();if(r.closed)return}try{e=t.resultSelector(t.state)}catch(t){return void r.error(t)}if(!r.closed&&(r.next(e),!r.closed))return this.schedule(t)}}r.generate=function(t,n,o,e,i){var s,u;return 1==arguments.length?(u=t.initialState,n=t.condition,o=t.iterate,s=t.resultSelector||c.identity,i=t.scheduler):void 0===e||l.isScheduler(e)?(u=t,s=c.identity,i=e):(u=t,s=e),new a.Observable(function(e){var t=u;if(i)return i.schedule(f,0,{subscriber:e,iterate:o,condition:n,resultSelector:s,state:t});for(;;){if(n){var r=void 0;try{r=n(t)}catch(t){return void e.error(t)}if(!r){e.complete();break}}r=void 0;try{r=s(t)}catch(t){return void e.error(t)}if(e.next(r),e.closed)break;try{t=o(t)}catch(t){return void e.error(t)}}})}},{"../Observable":106,"../util/identity":278,"../util/isScheduler":289}],131:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./defer"),o=t("./empty");r.iif=function(t,e,r){return void 0===e&&(e=o.EMPTY),void 0===r&&(r=o.EMPTY),n.defer(function(){return t()?e:r})}},{"./defer":123,"./empty":124}],132:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),o=t("../scheduler/async"),i=t("../util/isNumeric");function s(t){var e=t.subscriber,r=t.counter,t=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:t},t)}r.interval=function(e,r){return void 0===r&&(r=o.async),(!i.isNumeric(e=void 0===e?0:e)||e<0)&&(e=0),r&&"function"==typeof r.schedule||(r=o.async),new n.Observable(function(t){return t.add(r.schedule(s,e,{subscriber:t,counter:0,period:e})),t})}},{"../Observable":106,"../scheduler/async":265,"../util/isNumeric":285}],133:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../util/isScheduler"),u=t("../operators/mergeAll"),a=t("./fromArray");r.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return s.isScheduler(o)?(n=t.pop(),1<t.length&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof o&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof i.Observable?t[0]:u.mergeAll(r)(a.fromArray(t,n))}},{"../Observable":106,"../operators/mergeAll":189,"../util/isScheduler":289,"./fromArray":127}],134:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),t=t("../util/noop");r.NEVER=new n.Observable(t.noop),r.never=function(){return r.NEVER}},{"../Observable":106,"../util/noop":290}],135:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../util/isScheduler"),o=t("./fromArray"),i=t("../scheduled/scheduleArray");r.of=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return n.isScheduler(r)?(t.pop(),i.scheduleArray(t,r)):o.fromArray(t)}},{"../scheduled/scheduleArray":248,"../util/isScheduler":289,"./fromArray":127}],136:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../Observable"),i=t("./from"),s=t("../util/isArray"),u=t("./empty");function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return u.EMPTY;var r=t[0],n=t.slice(1);return 1===t.length&&s.isArray(r)?a.apply(void 0,r):new o.Observable(function(e){function t(){return e.add(a.apply(void 0,n).subscribe(e))}return i.from(r).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}r.onErrorResumeNext=a},{"../Observable":106,"../util/isArray":279,"./empty":124,"./from":126}],137:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../Subscription");function u(t){var e=t.keys,r=t.index,n=t.subscriber,o=t.subscription,i=t.obj;n.closed||(r<e.length?(t=e[r],n.next([t,i[t]]),o.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:o,obj:i}))):n.complete())}r.pairs=function(o,n){return n?new i.Observable(function(t){var e=Object.keys(o),r=new s.Subscription;return r.add(n.schedule(u,0,{keys:e,index:0,subscriber:t,subscription:r,obj:o})),r}):new i.Observable(function(t){for(var e=Object.keys(o),r=0;r<e.length&&!t.closed;r++){var n=e[r];o.hasOwnProperty(n)&&t.next([n,o[n]])}t.complete()})},r.dispatch=u},{"../Observable":106,"../Subscription":114}],138:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../util/not"),o=t("../util/subscribeTo"),i=t("../operators/filter"),s=t("../Observable");r.partition=function(t,e,r){return[i.filter(e,r)(new s.Observable(o.subscribeTo(t))),i.filter(n.not(e,r))(new s.Observable(o.subscribeTo(t)))]}},{"../Observable":106,"../operators/filter":175,"../util/not":291,"../util/subscribeTo":293}],139:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../util/isArray"),s=t("./fromArray"),u=t("../OuterSubscriber"),a=t("../util/subscribeToResult");r.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!i.isArray(t[0]))return t[0];t=t[0]}return s.fromArray(t,void 0).lift(new c)};var c=(l.prototype.call=function(t,e){return e.subscribe(new p(t))},l);function l(){}r.RaceOperator=c;var f,p=(f=u.OuterSubscriber,o(h,f),h.prototype._next=function(t){this.observables.push(t)},h.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=t[r],n=a.subscribeToResult(this,n,void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},h.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n,o=0;o<this.subscriptions.length;o++)o!==r&&((n=this.subscriptions[o]).unsubscribe(),this.remove(n));this.subscriptions=null}this.destination.next(e)},h);function h(t){t=f.call(this,t)||this;return t.hasFirst=!1,t.observables=[],t.subscriptions=[],t}r.RaceSubscriber=p},{"../OuterSubscriber":108,"../util/isArray":279,"../util/subscribeToResult":298,"./fromArray":127}],140:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t("../Observable");function u(t){var e=t.start,r=t.index,n=t.count,o=t.subscriber;n<=r?o.complete():(o.next(e),o.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}r.range=function(n,o,i){return void 0===n&&(n=0),new s.Observable(function(t){void 0===o&&(o=n,n=0);var e=0,r=n;if(i)return i.schedule(u,0,{index:e,count:o,start:n,subscriber:t});for(;;){if(e++>=o){t.complete();break}if(t.next(r++),t.closed)break}})},r.dispatch=u},{"../Observable":106}],141:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable");function o(t){var e=t.error;t.subscriber.error(e)}r.throwError=function(e,r){return r?new n.Observable(function(t){return r.schedule(o,0,{error:e,subscriber:t})}):new n.Observable(function(t){return t.error(e)})}},{"../Observable":106}],142:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../scheduler/async"),u=t("../util/isNumeric"),a=t("../util/isScheduler");function c(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}r.timer=function(r,t,n){void 0===r&&(r=0);var o=-1;return u.isNumeric(t)?o=Number(t)<1?1:Number(t):a.isScheduler(t)&&(n=t),a.isScheduler(n)||(n=s.async),new i.Observable(function(t){var e=u.isNumeric(r)?r:+r-n.now();return n.schedule(c,e,{index:0,period:o,subscriber:t})})}},{"../Observable":106,"../scheduler/async":265,"../util/isNumeric":285,"../util/isScheduler":289}],143:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),s=t("./from"),u=t("./empty");r.using=function(o,i){return new n.Observable(function(e){var t,r;try{t=o()}catch(t){return void e.error(t)}try{r=i(t)}catch(t){return void e.error(t)}var n=(r?s.from(r):u.EMPTY).subscribe(e);return function(){n.unsubscribe(),t&&t.unsubscribe()}})}},{"../Observable":106,"./empty":124,"./from":126}],144:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("./fromArray"),s=t("../util/isArray"),u=t("../Subscriber"),a=t("../../internal/symbol/iterator"),c=t("../innerSubscribe");r.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),i.fromArray(t,void 0).lift(new l(r))};var l=(f.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},f);function f(t){this.resultSelector=t}r.ZipOperator=l;var p,h=(p=u.Subscriber,o(d,p),d.prototype._next=function(t){var e=this.iterators;s.isArray(t)?e.push(new y(t)):"function"==typeof t[a.iterator]?e.push(new b(t[a.iterator]())):e.push(new g(this.destination,this,t))},d.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},d.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},d.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;for(var o=!1,i=[],n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(o=!0),u.done)return void r.complete();i.push(u.value)}this.resultSelector?this._tryresultSelector(i):r.next(i),o&&r.complete()},d.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},d);function d(t,e,r){void 0===r&&(r=Object.create(null));t=p.call(this,t)||this;return t.resultSelector=e,t.iterators=[],t.active=0,t.resultSelector="function"==typeof e?e:void 0,t}r.ZipSubscriber=h;var b=(_.prototype.hasValue=function(){return!0},_.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},_.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},_);function _(t){this.iterator=t,this.nextResult=t.next()}var y=(v.prototype[a.iterator]=function(){return this},v.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},v.prototype.hasValue=function(){return this.array.length>this.index},v.prototype.hasCompleted=function(){return this.array.length===this.index},v);function v(t){this.array=t,this.index=0,this.length=0,this.length=t.length}var m,g=(m=c.SimpleOuterSubscriber,o(O,m),O.prototype[a.iterator]=function(){return this},O.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},O.prototype.hasValue=function(){return 0<this.buffer.length},O.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},O.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},O.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},O.prototype.subscribe=function(){return c.innerSubscribe(this.observable,new c.SimpleInnerSubscriber(this))},O);function O(t,e,r){t=m.call(this,t)||this;return t.parent=e,t.observable=r,t.stillUnsubscribed=!0,t.buffer=[],t.isComplete=!1,t}},{"../../internal/symbol/iterator":267,"../Subscriber":113,"../innerSubscribe":116,"../util/isArray":279,"./fromArray":127}],145:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.audit=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},u);function u(t){this.durationSelector=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}e=i.innerSubscribe(e,new i.SimpleInnerSubscriber(this));!e||e.closed?this.clearThrottle():this.add(this.throttled=e)}},l.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},l.prototype.notifyNext=function(){this.clearThrottle()},l.prototype.notifyComplete=function(){this.clearThrottle()},l);function l(t,e){t=a.call(this,t)||this;return t.durationSelector=e,t.hasValue=!1,t}},{"../innerSubscribe":116}],146:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../scheduler/async"),o=t("./audit"),i=t("../observable/timer");r.auditTime=function(t,e){return void 0===e&&(e=n.async),o.audit(function(){return i.timer(t,e)})}},{"../observable/timer":142,"../scheduler/async":265,"./audit":145}],147:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.buffer=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.closingNotifier))},u);function u(t){this.closingNotifier=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){this.buffer.push(t)},l.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},l);function l(t,e){t=a.call(this,t)||this;return t.buffer=[],t.add(i.innerSubscribe(e,new i.SimpleInnerSubscriber(t))),t}},{"../innerSubscribe":116}],148:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.bufferCount=function(e,r){return void 0===r&&(r=null),function(t){return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},s);function s(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?f:a}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},c.prototype._complete=function(){var t=this.buffer;0<t.length&&this.destination.next(t),u.prototype._complete.call(this)},c);function c(t,e){t=u.call(this,t)||this;return t.bufferSize=e,t.buffer=[],t}var l,f=(l=t.Subscriber,o(p,l),p.prototype._next=function(t){var e=this.bufferSize,r=this.startBufferEvery,n=this.buffers,o=this.count;this.count++,o%r==0&&n.push([]);for(var i=n.length;i--;){var s=n[i];s.push(t),s.length===e&&(n.splice(i,1),this.destination.next(s))}},p.prototype._complete=function(){for(var t=this.buffers,e=this.destination;0<t.length;){var r=t.shift();0<r.length&&e.next(r)}l.prototype._complete.call(this)},p);function p(t,e,r){t=l.call(this,t)||this;return t.bufferSize=e,t.startBufferEvery=r,t.buffers=[],t.count=0,t}},{"../Subscriber":113}],149:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../scheduler/async"),s=t("../Subscriber"),u=t("../util/isScheduler");r.bufferTime=function(e){var t=arguments.length,r=i.async;u.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;2<=t&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return 3<=t&&(o=arguments[2]),function(t){return t.lift(new a(e,n,o,r))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new p(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},c);function c(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=n}var l,f=function(){this.buffer=[]},p=(l=s.Subscriber,o(h,l),h.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,o=0;o<n;o++){var i=r[o],s=i.buffer;s.push(t),s.length==this.maxBufferSize&&(e=i)}e&&this.onBufferFull(e)},h.prototype._error=function(t){this.contexts.length=0,l.prototype._error.call(this,t)},h.prototype._complete=function(){for(var t=this.contexts,e=this.destination;0<t.length;){var r=t.shift();e.next(r.buffer)}l.prototype._complete.call(this)},h.prototype._unsubscribe=function(){this.contexts=null},h.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly&&(t=this.openContext(),e=this.bufferTimeSpan,this.add(t.closeAction=this.scheduler.schedule(d,e,{subscriber:this,context:t,bufferTimeSpan:e})))},h.prototype.openContext=function(){var t=new f;return this.contexts.push(t),t},h.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;0<=(e?e.indexOf(t):-1)&&e.splice(e.indexOf(t),1)},h);function h(t,e,r,n,o){var i=l.call(this,t)||this;i.bufferTimeSpan=e,i.bufferCreationInterval=r,i.maxBufferSize=n,i.scheduler=o,i.contexts=[];t=i.openContext();return i.timespanOnly=null==r||r<0,i.timespanOnly?i.add(t.closeAction=o.schedule(d,e,{subscriber:i,context:t,bufferTimeSpan:e})):(n={bufferTimeSpan:e,bufferCreationInterval:r,subscriber:i,scheduler:o},i.add(t.closeAction=o.schedule(_,e,{subscriber:i,context:t})),i.add(o.schedule(b,r,n))),i}function d(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function b(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,o=t.scheduler,i=n.openContext();n.closed||(n.add(i.closeAction=o.schedule(_,r,{subscriber:n,context:i})),this.schedule(t,e))}function _(t){var e=t.subscriber,t=t.context;e.closeContext(t)}},{"../Subscriber":113,"../scheduler/async":265,"../util/isScheduler":289}],150:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscription"),s=t("../util/subscribeToResult"),t=t("../OuterSubscriber");r.bufferToggle=function(e,r){return function(t){return t.lift(new u(e,r))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.openings,this.closingSelector))},a);function a(t,e){this.openings=t,this.closingSelector=e}var c,l=(c=t.OuterSubscriber,o(f,c),f.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n<r;n++)e[n].buffer.push(t)},f.prototype._error=function(t){for(var e=this.contexts;0<e.length;){var r=e.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,c.prototype._error.call(this,t)},f.prototype._complete=function(){for(var t=this.contexts;0<t.length;){var e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,c.prototype._complete.call(this)},f.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},f.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},f.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},f.prototype.closeBuffer=function(t){var e,r,n=this.contexts;n&&t&&(e=t.buffer,r=t.subscription,this.destination.next(e),n.splice(n.indexOf(t),1),this.remove(r),r.unsubscribe())},f.prototype.trySubscribe=function(t){var e=this.contexts,r=new i.Subscription,n={buffer:[],subscription:r};e.push(n);t=s.subscribeToResult(this,t,n);!t||t.closed?this.closeBuffer(n):(t.context=n,this.add(t),r.add(t))},f);function f(t,e,r){t=c.call(this,t)||this;return t.closingSelector=r,t.contexts=[],t.add(s.subscribeToResult(t,e)),t}},{"../OuterSubscriber":108,"../Subscription":114,"../util/subscribeToResult":298}],151:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscription"),s=t("../innerSubscribe");r.bufferWhen=function(e){return function(t){return t.lift(new u(e))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.closingSelector))},a);function a(t){this.closingSelector=t}var c,l=(c=s.SimpleOuterSubscriber,o(f,c),f.prototype._next=function(t){this.buffer.push(t)},f.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),c.prototype._complete.call(this)},f.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},f.prototype.notifyNext=function(){this.openBuffer()},f.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},f.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];try{var r=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new i.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(s.innerSubscribe(r,new s.SimpleInnerSubscriber(this))),this.subscribing=!1},f);function f(t,e){t=c.call(this,t)||this;return t.closingSelector=e,t.subscribing=!1,t.openBuffer(),t}},{"../Subscription":114,"../innerSubscribe":116}],152:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.catchError=function(r){return function(t){var e=new s(r),t=t.lift(e);return e.caught=t}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.selector,this.caught))},u);function u(t){this.selector=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype.error=function(t){if(!this.isStopped){var e=void 0;try{e=this.selector(t,this.caught)}catch(t){return void a.prototype.error.call(this,t)}this._unsubscribeAndRecycle();t=new i.SimpleInnerSubscriber(this);this.add(t);e=i.innerSubscribe(e,t);e!==t&&this.add(e)}},l);function l(t,e,r){t=a.call(this,t)||this;return t.selector=e,t.caught=r,t}},{"../innerSubscribe":116}],153:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/combineLatest");r.combineAll=function(e){return function(t){return t.lift(new n.CombineLatestOperator(e))}}},{"../observable/combineLatest":121}],154:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../util/isArray"),o=t("../observable/combineLatest"),i=t("../observable/from");r.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&n.isArray(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(i.from([t].concat(e)),new o.CombineLatestOperator(r))}}},{"../observable/combineLatest":121,"../observable/from":126,"../util/isArray":279}],155:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/concat");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.concat.apply(void 0,[t].concat(e)))}}},{"../observable/concat":122}],156:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./mergeAll");r.concatAll=function(){return n.mergeAll(1)}},{"./mergeAll":189}],157:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./mergeMap");r.concatMap=function(t,e){return n.mergeMap(t,e,1)}},{"./mergeMap":190}],158:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./concatMap");r.concatMapTo=function(t,e){return n.concatMap(function(){return t},e)}},{"./concatMap":157}],159:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.count=function(e){return function(t){return t.lift(new i(e,t))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},s);function s(t,e){this.predicate=t,this.source=e}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},c.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},c.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},c);function c(t,e,r){t=u.call(this,t)||this;return t.predicate=e,t.source=r,t.count=0,t.index=0,t}},{"../Subscriber":113}],160:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.debounce=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},u);function u(t){this.durationSelector=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},l.prototype._complete=function(){this.emitValue(),this.destination.complete()},l.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=i.innerSubscribe(e,new i.SimpleInnerSubscriber(this)))&&!r.closed&&this.add(this.durationSubscription=r)},l.prototype.notifyNext=function(){this.emitValue()},l.prototype.notifyComplete=function(){this.emitValue()},l.prototype.emitValue=function(){var t,e;this.hasValue&&(t=this.value,(e=this.durationSubscription)&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,a.prototype._next.call(this,t))},l);function l(t,e){t=a.call(this,t)||this;return t.durationSelector=e,t.hasValue=!1,t}},{"../innerSubscribe":116}],161:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../scheduler/async");r.debounceTime=function(e,r){return void 0===r&&(r=s.async),function(t){return t.lift(new u(e,r))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.dueTime,this.scheduler))},a);function a(t,e){this.dueTime=t,this.scheduler=e}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(p,this.dueTime,this))},f.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},f.prototype.debouncedNext=function(){var t;this.clearDebounce(),this.hasValue&&(t=this.lastValue,this.lastValue=null,this.hasValue=!1,this.destination.next(t))},f.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},f);function f(t,e,r){t=c.call(this,t)||this;return t.dueTime=e,t.scheduler=r,t.debouncedSubscription=null,t.lastValue=null,t.hasValue=!1,t}function p(t){t.debouncedNext()}},{"../Subscriber":113,"../scheduler/async":265}],162:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new i(e))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},s);function s(t){this.defaultValue=t}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},c.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},c);function c(t,e){t=u.call(this,t)||this;return t.defaultValue=e,t.isEmpty=!0,t}},{"../Subscriber":113}],163:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../scheduler/async"),s=t("../util/isDate"),u=t("../Subscriber"),a=t("../Notification");r.delay=function(t,e){void 0===e&&(e=i.async);var r=s.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(r,e))}};var c=(l.prototype.call=function(t,e){return e.subscribe(new p(t,this.delay,this.scheduler))},l);function l(t,e){this.delay=t,this.scheduler=e}var f,p=(f=u.Subscriber,o(h,f),h.dispatch=function(t){for(var e,r=t.source,n=r.queue,o=t.scheduler,i=t.destination;0<n.length&&n[0].time-o.now()<=0;)n.shift().notification.observe(i);0<n.length?(e=Math.max(0,n[0].time-o.now()),this.schedule(t,e)):(this.unsubscribe(),r.active=!1)},h.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(h.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},h.prototype.scheduleNotification=function(t){var e;!0!==this.errored&&(e=this.scheduler,t=new d(e.now()+this.delay,t),this.queue.push(t),!1===this.active&&this._schedule(e))},h.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},h.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},h.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete()),this.unsubscribe()},h);function h(t,e,r){t=f.call(this,t)||this;return t.delay=e,t.scheduler=r,t.queue=[],t.active=!1,t.errored=!1,t}var d=function(t,e){this.time=t,this.notification=e}},{"../Notification":105,"../Subscriber":113,"../scheduler/async":265,"../util/isDate":281}],164:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../Observable"),u=t("../OuterSubscriber"),a=t("../util/subscribeToResult");r.delayWhen=function(e,r){return r?function(t){return new b(t,r).lift(new c(e))}:function(t){return t.lift(new c(e))}};var c=(l.prototype.call=function(t,e){return e.subscribe(new p(t,this.delayDurationSelector))},l);function l(t){this.delayDurationSelector=t}var f,p=(f=u.OuterSubscriber,o(h,f),h.prototype.notifyNext=function(t,e,r,n,o){this.destination.next(t),this.removeSubscription(o),this.tryComplete()},h.prototype.notifyError=function(t,e){this._error(t)},h.prototype.notifyComplete=function(t){t=this.removeSubscription(t);t&&this.destination.next(t),this.tryComplete()},h.prototype._next=function(t){var e=this.index++;try{var r=this.delayDurationSelector(t,e);r&&this.tryDelay(r,t)}catch(t){this.destination.error(t)}},h.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},h.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},h.prototype.tryDelay=function(t,e){e=a.subscribeToResult(this,t,e);e&&!e.closed&&(this.destination.add(e),this.delayNotifierSubscriptions.push(e))},h.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},h);function h(t,e){t=f.call(this,t)||this;return t.delayDurationSelector=e,t.completed=!1,t.delayNotifierSubscriptions=[],t.index=0,t}var d,b=(d=s.Observable,o(_,d),_.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new v(t,this.source))},_);function _(t,e){var r=d.call(this)||this;return r.source=t,r.subscriptionDelay=e,r}var y,v=(y=i.Subscriber,o(m,y),m.prototype._next=function(t){this.subscribeToSource()},m.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},m.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},m.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},m);function m(t,e){var r=y.call(this)||this;return r.parent=t,r.source=e,r.sourceSubscribed=!1,r}},{"../Observable":106,"../OuterSubscriber":108,"../Subscriber":113,"../util/subscribeToResult":298}],165:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.dematerialize=function(){return function(t){return t.lift(new i)}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t))},s);function s(){}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){t.observe(this.destination)},c);function c(t){return u.call(this,t)||this}},{"../Subscriber":113}],166:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.distinct=function(e,r){return function(t){return t.lift(new s(e,r))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},u);function u(t,e){this.keySelector=t,this.flushes=e}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype.notifyNext=function(){this.values.clear()},l.prototype.notifyError=function(t){this._error(t)},l.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},l.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(t){return void r.error(t)}this._finalizeNext(e,t)},l.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},l);function l(t,e,r){t=a.call(this,t)||this;return t.keySelector=e,t.values=new Set,r&&t.add(i.innerSubscribe(r,new i.SimpleInnerSubscriber(t))),t}r.DistinctSubscriber=c},{"../innerSubscribe":116}],167:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.distinctUntilChanged=function(e,r){return function(t){return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))},s);function s(t,e){this.compare=t,this.keySelector=e}var u,a=(u=t.Subscriber,o(c,u),c.prototype.compare=function(t,e){return t===e},c.prototype._next=function(t){try{var e=this.keySelector,r=e?e(t):t}catch(t){return this.destination.error(t)}e=!1;if(this.hasKey)try{e=(0,this.compare)(this.key,r)}catch(t){return this.destination.error(t)}else this.hasKey=!0;e||(this.key=r,this.destination.next(t))},c);function c(t,e,r){t=u.call(this,t)||this;return t.keySelector=r,t.hasKey=!1,"function"==typeof e&&(t.compare=e),t}},{"../Subscriber":113}],168:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("./distinctUntilChanged");r.distinctUntilKeyChanged=function(r,n){return o.distinctUntilChanged(function(t,e){return n?n(t[r],e[r]):t[r]===e[r]})}},{"./distinctUntilChanged":167}],169:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../util/ArgumentOutOfRangeError"),i=t("./filter"),s=t("./throwIfEmpty"),u=t("./defaultIfEmpty"),a=t("./take");r.elementAt=function(r,e){if(r<0)throw new o.ArgumentOutOfRangeError;var n=2<=arguments.length;return function(t){return t.pipe(i.filter(function(t,e){return e===r}),a.take(1),n?u.defaultIfEmpty(e):s.throwIfEmpty(function(){return new o.ArgumentOutOfRangeError}))}}},{"../util/ArgumentOutOfRangeError":270,"./defaultIfEmpty":162,"./filter":175,"./take":227,"./throwIfEmpty":234}],170:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/concat"),o=t("../observable/of");r.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return n.concat(t,o.of.apply(void 0,e))}}},{"../observable/concat":122,"../observable/of":135}],171:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.every=function(e,r){return function(t){return t.lift(new i(e,r,t))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},s);function s(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}var u,a=(u=t.Subscriber,o(c,u),c.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},c.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},c.prototype._complete=function(){this.notifyComplete(!0)},c);function c(t,e,r,n){t=u.call(this,t)||this;return t.predicate=e,t.thisArg=r,t.source=n,t.index=0,t.thisArg=r||t,t}},{"../Subscriber":113}],172:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.exhaust=function(){return function(t){return t.lift(new s)}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t))},u);function u(){}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(i.innerSubscribe(t,new i.SimpleInnerSubscriber(this))))},l.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},l.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},l);function l(t){t=a.call(this,t)||this;return t.hasCompleted=!1,t.hasSubscription=!1,t}},{"../innerSubscribe":116}],173:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var s=t("./map"),u=t("../observable/from"),i=t("../innerSubscribe");r.exhaustMap=function e(o,i){return i?function(t){return t.pipe(e(function(r,n){return u.from(o(r,n)).pipe(s.map(function(t,e){return i(r,t,n,e)}))}))}:function(t){return t.lift(new a(o))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},c);function c(t){this.project=t}var l,f=(l=i.SimpleOuterSubscriber,o(p,l),p.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},p.prototype.tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e)},p.prototype._innerSub=function(t){var e=new i.SimpleInnerSubscriber(this),r=this.destination;r.add(e);t=i.innerSubscribe(t,e);t!==e&&r.add(t)},p.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},p.prototype.notifyNext=function(t){this.destination.next(t)},p.prototype.notifyError=function(t){this.destination.error(t)},p.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},p);function p(t,e){t=l.call(this,t)||this;return t.project=e,t.hasSubscription=!1,t.hasCompleted=!1,t.index=0,t}},{"../innerSubscribe":116,"../observable/from":126,"./map":184}],174:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.expand=function(e,r,n){return r=((r=void 0===r?Number.POSITIVE_INFINITY:r)||0)<1?Number.POSITIVE_INFINITY:r,function(t){return t.lift(new s(e,r,n))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent,this.scheduler))},u);function u(t,e,r){this.project=t,this.concurrent=e,this.scheduler=r}r.ExpandOperator=s;var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.dispatch=function(t){var e=t.subscriber,r=t.result,n=t.value,t=t.index;e.subscribeToProjection(r,n,t)},l.prototype._next=function(t){var e=this.destination;if(e.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){e.next(t);try{var n,o=(0,this.project)(t,r);this.scheduler?(n={subscriber:this,result:o,value:t,index:r},this.destination.add(this.scheduler.schedule(l.dispatch,0,n))):this.subscribeToProjection(o,t,r)}catch(t){e.error(t)}}else this.buffer.push(t)}},l.prototype.subscribeToProjection=function(t,e,r){this.active++,this.destination.add(i.innerSubscribe(t,new i.SimpleInnerSubscriber(this)))},l.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},l.prototype.notifyNext=function(t){this._next(t)},l.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&0<t.length&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},l);function l(t,e,r,n){t=a.call(this,t)||this;return t.project=e,t.concurrent=r,t.scheduler=n,t.index=0,t.active=0,t.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(t.buffer=[]),t}r.ExpandSubscriber=c},{"../innerSubscribe":116}],175:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.filter=function(e,r){return function(t){return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},s);function s(t,e){this.predicate=t,this.thisArg=e}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},c);function c(t,e,r){t=u.call(this,t)||this;return t.predicate=e,t.thisArg=r,t.count=0,t}},{"../Subscriber":113}],176:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../Subscription");r.finalize=function(e){return function(t){return t.lift(new u(e))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.callback))},a);function a(t){this.callback=t}var c,l=(c=i.Subscriber,o(f,c),f);function f(t,e){t=c.call(this,t)||this;return t.add(new s.Subscription(e)),t}},{"../Subscriber":113,"../Subscription":114}],177:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.find=function(e,r){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(t){return t.lift(new i(e,t,!1,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},s);function s(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}r.FindValueOperator=i;var u,a=(u=t.Subscriber,o(c,u),c.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},c.prototype._next=function(t){var e=this.predicate,r=this.thisArg,n=this.index++;try{e.call(r||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(t){this.destination.error(t)}},c.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},c);function c(t,e,r,n,o){t=u.call(this,t)||this;return t.predicate=e,t.source=r,t.yieldIndex=n,t.thisArg=o,t.index=0,t}r.FindValueSubscriber=a},{"../Subscriber":113}],178:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../operators/find");r.findIndex=function(e,r){return function(t){return t.lift(new n.FindValueOperator(e,t,!0,r))}}},{"../operators/find":177}],179:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../util/EmptyError"),i=t("./filter"),s=t("./take"),u=t("./defaultIfEmpty"),a=t("./throwIfEmpty"),c=t("../util/identity");r.first=function(n,t){var e=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(t,e){return n(t,e,r)}):c.identity,s.take(1),e?u.defaultIfEmpty(t):a.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":271,"../util/identity":278,"./defaultIfEmpty":162,"./filter":175,"./take":227,"./throwIfEmpty":234}],180:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../Subscription"),u=t("../Observable"),a=t("../Subject");r.groupBy=function(e,r,n,o){return function(t){return t.lift(new c(e,r,n,o))}};var c=(l.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},l);function l(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}var f,p=(f=i.Subscriber,o(h,f),h.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},h.prototype._group=function(t,e){var r,n=this.groups,o=(n=n||(this.groups=new Map)).get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!o){o=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(e,o);n=new v(e,o,this);if(this.destination.next(n),this.durationSelector){n=void 0;try{n=this.durationSelector(new v(e,o))}catch(t){return void this.error(t)}this.add(n.subscribe(new b(e,o,this)))}}o.closed||o.next(r)},h.prototype._error=function(r){var t=this.groups;t&&(t.forEach(function(t,e){t.error(r)}),t.clear()),this.destination.error(r)},h.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},h.prototype.removeGroup=function(t){this.groups.delete(t)},h.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&f.prototype.unsubscribe.call(this))},h);function h(t,e,r,n,o){t=f.call(this,t)||this;return t.keySelector=e,t.elementSelector=r,t.durationSelector=n,t.subjectSelector=o,t.groups=null,t.attemptedToUnsubscribe=!1,t.count=0,t}var d,b=(d=i.Subscriber,o(_,d),_.prototype._next=function(t){this.complete()},_.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},_);function _(t,e,r){var n=d.call(this,e)||this;return n.key=t,n.group=e,n.parent=r,n}var y,v=(y=u.Observable,o(m,y),m.prototype._subscribe=function(t){var e=new s.Subscription,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new O(r)),e.add(n.subscribe(t)),e},m);function m(t,e,r){var n=y.call(this)||this;return n.key=t,n.groupSubject=e,n.refCountSubscription=r,n}r.GroupedObservable=v;var g,O=(g=s.Subscription,o(w,g),w.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(g.prototype.unsubscribe.call(this),--t.count,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},w);function w(t){var e=g.call(this)||this;return(e.parent=t).count++,e}},{"../Observable":106,"../Subject":111,"../Subscriber":113,"../Subscription":114}],181:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.ignoreElements=function(){return function(t){return t.lift(new i)}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t))},s);function s(){}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){},c);function c(){return null!==u&&u.apply(this,arguments)||this}},{"../Subscriber":113}],182:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.isEmpty=function(){return function(t){return t.lift(new i)}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t))},s);function s(){}var u,a=(u=t.Subscriber,o(c,u),c.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},c.prototype._next=function(t){this.notifyComplete(!1)},c.prototype._complete=function(){this.notifyComplete(!0)},c);function c(t){return u.call(this,t)||this}},{"../Subscriber":113}],183:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../util/EmptyError"),i=t("./filter"),s=t("./takeLast"),u=t("./throwIfEmpty"),a=t("./defaultIfEmpty"),c=t("../util/identity");r.last=function(n,t){var e=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(t,e){return n(t,e,r)}):c.identity,s.takeLast(1),e?a.defaultIfEmpty(t):u.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":271,"../util/identity":278,"./defaultIfEmpty":162,"./filter":175,"./takeLast":228,"./throwIfEmpty":234}],184:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.map=function(e,r){return function(t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},s);function s(t,e){this.project=t,this.thisArg=e}r.MapOperator=i;var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},c);function c(t,e,r){t=u.call(this,t)||this;return t.project=e,t.count=0,t.thisArg=r||t,t}},{"../Subscriber":113}],185:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.mapTo=function(e){return function(t){return t.lift(new i(e))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},s);function s(t){this.value=t}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){this.destination.next(this.value)},c);function c(t,e){t=u.call(this,t)||this;return t.value=e,t}},{"../Subscriber":113}],186:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../Notification");r.materialize=function(){return function(t){return t.lift(new u)}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t))},a);function a(){}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},f.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},f.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},f);function f(t){return c.call(this,t)||this}},{"../Notification":105,"../Subscriber":113}],187:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./reduce");r.max=function(r){return n.reduce("function"==typeof r?function(t,e){return 0<r(t,e)?t:e}:function(t,e){return e<t?t:e})}},{"./reduce":205}],188:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/merge");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.merge.apply(void 0,[t].concat(e)))}}},{"../observable/merge":133}],189:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./mergeMap"),o=t("../util/identity");r.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),n.mergeMap(o.identity,t)}},{"../util/identity":278,"./mergeMap":190}],190:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("./map"),s=t("../observable/from"),u=t("../innerSubscribe");function a(e,o,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof o?function(t){return t.pipe(a(function(r,n){return s.from(e(r,n)).pipe(i.map(function(t,e){return o(r,t,n,e)}))},r))}:("number"==typeof o&&(r=o),function(t){return t.lift(new c(e,r))})}r.mergeMap=a;var c=(l.prototype.call=function(t,e){return e.subscribe(new p(t,this.project,this.concurrent))},l);function l(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}r.MergeMapOperator=c;var f,p=(f=u.SimpleOuterSubscriber,o(h,f),h.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},h.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},h.prototype._innerSub=function(t){var e=new u.SimpleInnerSubscriber(this),r=this.destination;r.add(e);t=u.innerSubscribe(t,e);t!==e&&r.add(t)},h.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},h.prototype.notifyNext=function(t){this.destination.next(t)},h.prototype.notifyComplete=function(){var t=this.buffer;this.active--,0<t.length?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},h);function h(t,e,r){void 0===r&&(r=Number.POSITIVE_INFINITY);t=f.call(this,t)||this;return t.project=e,t.concurrent=r,t.hasCompleted=!1,t.buffer=[],t.active=0,t.index=0,t}r.MergeMapSubscriber=p,r.flatMap=a},{"../innerSubscribe":116,"../observable/from":126,"./map":184}],191:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./mergeMap");r.mergeMapTo=function(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?n.mergeMap(function(){return t},e,r):n.mergeMap(function(){return t},r="number"==typeof e?e:r)}},{"./mergeMap":190}],192:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.mergeScan=function(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(t){return t.lift(new s(e,r,n))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.accumulator,this.seed,this.concurrent))},u);function u(t,e,r){this.accumulator=t,this.seed=e,this.concurrent=r}r.MergeScanOperator=s;var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,r=this.destination,n=void 0;try{n=(0,this.accumulator)(this.acc,t,e)}catch(t){return r.error(t)}this.active++,this._innerSub(n)}else this.buffer.push(t)},l.prototype._innerSub=function(t){var e=new i.SimpleInnerSubscriber(this),r=this.destination;r.add(e);t=i.innerSubscribe(t,e);t!==e&&r.add(t)},l.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},l.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},l.prototype.notifyComplete=function(){var t=this.buffer;this.active--,0<t.length?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},l);function l(t,e,r,n){t=a.call(this,t)||this;return t.accumulator=e,t.acc=r,t.concurrent=n,t.hasValue=!1,t.hasCompleted=!1,t.buffer=[],t.active=0,t.index=0,t}r.MergeScanSubscriber=c},{"../innerSubscribe":116}],193:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./reduce");r.min=function(r){return n.reduce("function"==typeof r?function(t,e){return r(t,e)<0?t:e}:function(t,e){return t<e?t:e})}},{"./reduce":205}],194:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../observable/ConnectableObservable");r.multicast=function(n,o){return function(t){var e="function"==typeof n?n:function(){return n};if("function"==typeof o)return t.lift(new s(e,o));var r=Object.create(t,i.connectableObservableDescriptor);return r.source=t,r.subjectFactory=e,r}};var s=(n.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),t=r(n).subscribe(t);return t.add(e.subscribe(n)),t},n);function n(t,e){this.subjectFactory=t,this.selector=e}r.MulticastOperator=s},{"../observable/ConnectableObservable":117}],195:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../Notification");r.observeOn=function(e,r){return void 0===r&&(r=0),function(t){return t.lift(new u(e,r))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.scheduler,this.delay))},a);function a(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}r.ObserveOnOperator=u;var c,l=(c=i.Subscriber,o(f,c),f.dispatch=function(t){var e=t.notification,t=t.destination;e.observe(t),this.unsubscribe()},f.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(f.dispatch,this.delay,new p(t,this.destination)))},f.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},f.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t)),this.unsubscribe()},f.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete()),this.unsubscribe()},f);function f(t,e,r){void 0===r&&(r=0);t=c.call(this,t)||this;return t.scheduler=e,t.delay=r,t}r.ObserveOnSubscriber=l;var p=function(t,e){this.notification=t,this.destination=e};r.ObserveOnMessage=p},{"../Notification":105,"../Subscriber":113}],196:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../observable/from"),s=t("../util/isArray"),u=t("../innerSubscribe");r.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&s.isArray(e[0])&&(e=e[0]),function(t){return t.lift(new a(e))}},r.onErrorResumeNextStatic=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=(t=1===t.length&&s.isArray(t[0])?t[0]:t).shift();return i.from(r).lift(new a(t))};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.nextSources))},c);function c(t){this.nextSources=t}var l,f=(l=u.SimpleOuterSubscriber,o(p,l),p.prototype.notifyError=function(){this.subscribeToNextSource()},p.prototype.notifyComplete=function(){this.subscribeToNextSource()},p.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},p.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},p.prototype.subscribeToNextSource=function(){var t,e,r=this.nextSources.shift();r?(t=new u.SimpleInnerSubscriber(this),(e=this.destination).add(t),(r=u.innerSubscribe(r,t))!==t&&e.add(r)):this.destination.complete()},p);function p(t,e){var r=l.call(this,t)||this;return r.destination=t,r.nextSources=e,r}},{"../innerSubscribe":116,"../observable/from":126,"../util/isArray":279}],197:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.pairwise=function(){return function(t){return t.lift(new i)}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t))},s);function s(){}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},c);function c(t){t=u.call(this,t)||this;return t.hasPrev=!1,t}},{"../Subscriber":113}],198:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../util/not"),o=t("./filter");r.partition=function(e,r){return function(t){return[o.filter(e,r)(t),o.filter(n.not(e,r))(t)]}}},{"../util/not":291,"./filter":175}],199:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./map");r.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(t){return n.map((o=e,i=r,function(t){for(var e=t,r=0;r<i;r++){var n=null!=e?e[o[r]]:void 0;if(void 0===n)return;e=n}return e}))(t);var o,i}}},{"./map":184}],200:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Subject"),o=t("./multicast");r.publish=function(t){return t?o.multicast(function(){return new n.Subject},t):o.multicast(new n.Subject)}},{"../Subject":111,"./multicast":194}],201:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../BehaviorSubject"),o=t("./multicast");r.publishBehavior=function(e){return function(t){return o.multicast(new n.BehaviorSubject(e))(t)}}},{"../BehaviorSubject":103,"./multicast":194}],202:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../AsyncSubject"),o=t("./multicast");r.publishLast=function(){return function(t){return o.multicast(new n.AsyncSubject)(t)}}},{"../AsyncSubject":102,"./multicast":194}],203:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s=t("../ReplaySubject"),u=t("./multicast");r.publishReplay=function(t,e,r,n){var o="function"==typeof r?r:void 0,i=new s.ReplaySubject(t,e,n=r&&"function"!=typeof r?r:n);return function(t){return u.multicast(function(){return i},o)(t)}}},{"../ReplaySubject":109,"./multicast":194}],204:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../util/isArray"),o=t("../observable/race");r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&n.isArray(e[0])&&(e=e[0]),t.lift.call(o.race.apply(void 0,[t].concat(e)))}}},{"../observable/race":139,"../util/isArray":279}],205:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("./scan"),i=t("./takeLast"),s=t("./defaultIfEmpty"),u=t("../util/pipe");r.reduce=function(n,e){return 2<=arguments.length?function(t){return u.pipe(o.scan(n,e),i.takeLast(1),s.defaultIfEmpty(e))(t)}:function(t){return u.pipe(o.scan(function(t,e,r){return n(t,e,r+1)}),i.takeLast(1))(t)}}},{"../util/pipe":292,"./defaultIfEmpty":162,"./scan":213,"./takeLast":228}],206:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.refCount=function(){return function(t){return t.lift(new i(t))}};var i=(s.prototype.call=function(t,e){var r=this.connectable;r._refCount++;t=new a(t,r),e=e.subscribe(t);return t.closed||(t.connection=r.connect()),e},s);function s(t){this.connectable=t}var u,a=(u=t.Subscriber,o(c,u),c.prototype._unsubscribe=function(){var t,e=this.connectable;e?(this.connectable=null,(t=e._refCount)<=0?this.connection=null:(e._refCount=t-1,1<t?this.connection=null:(t=this.connection,e=e._connection,this.connection=null,!e||t&&e!==t||e.unsubscribe()))):this.connection=null},c);function c(t,e){t=u.call(this,t)||this;return t.connectable=e,t}},{"../Subscriber":113}],207:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../observable/empty");r.repeat=function(e){return void 0===e&&(e=-1),function(t){return 0===e?s.empty():e<0?t.lift(new u(-1,t)):t.lift(new u(e-1,t))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.count,this.source))},a);function a(t,e){this.count=t,this.source=e}var c,l=(c=i.Subscriber,o(f,c),f.prototype.complete=function(){if(!this.isStopped){var t=this.source,e=this.count;if(0===e)return c.prototype.complete.call(this);-1<e&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}},f);function f(t,e,r){t=c.call(this,t)||this;return t.count=e,t.source=r,t}},{"../Subscriber":113,"../observable/empty":124}],208:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subject"),s=t("../innerSubscribe");r.repeatWhen=function(e){return function(t){return t.lift(new u(e))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,e))},a);function a(t){this.notifier=t}var c,l=(c=s.SimpleOuterSubscriber,o(f,c),f.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},f.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return c.prototype.complete.call(this)},f.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return c.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},f.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},f.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,c.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},f.prototype.subscribeToRetries=function(){this.notifications=new i.Subject;try{var t=(0,this.notifier)(this.notifications)}catch(t){return c.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=s.innerSubscribe(t,new s.SimpleInnerSubscriber(this))},f);function f(t,e,r){t=c.call(this,t)||this;return t.notifier=e,t.source=r,t.sourceIsBeingSubscribedTo=!0,t}},{"../Subject":111,"../innerSubscribe":116}],209:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.retry=function(e){return void 0===e&&(e=-1),function(t){return t.lift(new i(e,t))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},s);function s(t,e){this.count=t,this.source=e}var u,a=(u=t.Subscriber,o(c,u),c.prototype.error=function(t){if(!this.isStopped){var e=this.source,r=this.count;if(0===r)return u.prototype.error.call(this,t);-1<r&&(this.count=r-1),e.subscribe(this._unsubscribeAndRecycle())}},c);function c(t,e,r){t=u.call(this,t)||this;return t.count=e,t.source=r,t}},{"../Subscriber":113}],210:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subject"),s=t("../innerSubscribe");r.retryWhen=function(e){return function(t){return t.lift(new u(e,t))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.notifier,this.source))},a);function a(t,e){this.notifier=t,this.source=e}var c,l=(c=s.SimpleOuterSubscriber,o(f,c),f.prototype.error=function(t){if(!this.isStopped){var e=this.errors,r=this.retries,n=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{e=new i.Subject;try{r=(0,this.notifier)(e)}catch(t){return c.prototype.error.call(this,t)}n=s.innerSubscribe(r,new s.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=e,this.retries=r,this.retriesSubscription=n,e.next(t)}},f.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},f.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},f);function f(t,e,r){t=c.call(this,t)||this;return t.notifier=e,t.source=r,t}},{"../Subject":111,"../innerSubscribe":116}],211:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.sample=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){t=new c(t),e=e.subscribe(t);return e.add(i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(t))),e},u);function u(t){this.notifier=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){this.value=t,this.hasValue=!0},l.prototype.notifyNext=function(){this.emitValue()},l.prototype.notifyComplete=function(){this.emitValue()},l.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},l);function l(){var t=null!==a&&a.apply(this,arguments)||this;return t.hasValue=!1,t}},{"../innerSubscribe":116}],212:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../scheduler/async");r.sampleTime=function(e,r){return void 0===r&&(r=s.async),function(t){return t.lift(new u(e,r))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.period,this.scheduler))},a);function a(t,e){this.period=t,this.scheduler=e}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},f.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},f);function f(t,e,r){t=c.call(this,t)||this;return t.period=e,t.scheduler=r,t.hasValue=!1,t.add(r.schedule(p,e,{subscriber:t,period:e})),t}function p(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}},{"../Subscriber":113,"../scheduler/async":265}],213:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.scan=function(e,r){var n=2<=arguments.length?!0:!1;return function(t){return t.lift(new i(e,r,n))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},s);function s(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}var u,a=(u=t.Subscriber,o(c,u),Object.defineProperty(c.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),c.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},c.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},c);function c(t,e,r,n){t=u.call(this,t)||this;return t.accumulator=e,t._seed=r,t.hasSeed=n,t.index=0,t}},{"../Subscriber":113}],214:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.sequenceEqual=function(e,r){return function(t){return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.compareTo,this.comparator))},s);function s(t,e){this.compareTo=t,this.comparator=e}r.SequenceEqualOperator=i;var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},c.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},c.prototype.checkValues=function(){for(var t=this._a,e=this._b,r=this.comparator;0<t.length&&0<e.length;){var n=t.shift(),o=e.shift(),i=!1;try{i=r?r(n,o):n===o}catch(t){this.destination.error(t)}i||this.emit(!1)}},c.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},c.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},c.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},c);function c(t,e,r){var n=u.call(this,t)||this;return n.compareTo=e,n.comparator=r,n._a=[],n._b=[],n._oneComplete=!1,n.destination.add(e.subscribe(new f(t,n))),n}r.SequenceEqualSubscriber=a;var l,f=(l=t.Subscriber,o(p,l),p.prototype._next=function(t){this.parent.nextB(t)},p.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},p.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},p);function p(t,e){t=l.call(this,t)||this;return t.parent=e,t}},{"../Subscriber":113}],215:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./multicast"),o=t("./refCount"),i=t("../Subject");function s(){return new i.Subject}r.share=function(){return function(t){return o.refCount()(n.multicast(s)(t))}}},{"../Subject":111,"./multicast":194,"./refCount":206}],216:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var p=t("../ReplaySubject");r.shareReplay=function(t,e,r){var f=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r};return function(t){return t.lift((t=(e=f).bufferSize,o=void 0===t?Number.POSITIVE_INFINITY:t,t=e.windowTime,i=void 0===t?Number.POSITIVE_INFINITY:t,s=e.refCount,u=e.scheduler,a=0,l=c=!1,function(t){var e;a++,!r||c?(c=!1,r=new p.ReplaySubject(o,i,u),e=r.subscribe(this),n=t.subscribe({next:function(t){r.next(t)},error:function(t){c=!0,r.error(t)},complete:function(){l=!0,n=void 0,r.complete()}}),l&&(n=void 0)):e=r.subscribe(this),this.add(function(){a--,e.unsubscribe(),e=void 0,n&&!l&&s&&0===a&&(n.unsubscribe(),r=n=void 0)})}));var e,r,n,o,i,s,u,a,c,l}}},{"../ReplaySubject":109}],217:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../util/EmptyError");r.single=function(e){return function(t){return t.lift(new u(e,t))}};var u=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.predicate,this.source))},a);function a(t,e){this.predicate=t,this.source=e}var c,l=(c=i.Subscriber,o(f,c),f.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},f.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},f.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},f.prototype._complete=function(){var t=this.destination;0<this.index?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},f);function f(t,e,r){t=c.call(this,t)||this;return t.predicate=e,t.source=r,t.seenValue=!1,t.index=0,t}},{"../Subscriber":113,"../util/EmptyError":271}],218:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.skip=function(e){return function(t){return t.lift(new i(e))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},s);function s(t){this.total=t}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},c);function c(t,e){t=u.call(this,t)||this;return t.total=e,t.count=0,t}},{"../Subscriber":113}],219:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError");r.skipLast=function(e){return function(t){return t.lift(new u(e))}};var u=(a.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new i.Subscriber(t)):e.subscribe(new l(t,this._skipCount))},a);function a(t){if(this._skipCount=t,this._skipCount<0)throw new s.ArgumentOutOfRangeError}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(t){var e,r=this._skipCount,n=this._count++;n<r?this._ring[n]=t:(r=(e=this._ring)[n=n%r],e[n]=t,this.destination.next(r))},f);function f(t,e){t=c.call(this,t)||this;return t._skipCount=e,t._count=0,t._ring=new Array(e),t}},{"../Subscriber":113,"../util/ArgumentOutOfRangeError":270}],220:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.skipUntil=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.notifier))},u);function u(t){this.notifier=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype._next=function(t){this.hasValue&&a.prototype._next.call(this,t)},l.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},l.prototype.notifyComplete=function(){},l);function l(t,e){var r=a.call(this,t)||this;r.hasValue=!1;t=new i.SimpleInnerSubscriber(r);r.add(t),r.innerSubscription=t;e=i.innerSubscribe(e,t);return e!==t&&(r.add(e),r.innerSubscription=e),r}},{"../innerSubscribe":116}],221:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.skipWhile=function(e){return function(t){return t.lift(new i(e))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},s);function s(t){this.predicate=t}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},c.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},c);function c(t,e){t=u.call(this,t)||this;return t.predicate=e,t.skipping=!0,t.index=0,t}},{"../Subscriber":113}],222:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/concat"),o=t("../util/isScheduler");r.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1];return o.isScheduler(r)?(e.pop(),function(t){return n.concat(e,t,r)}):function(t){return n.concat(e,t)}}},{"../observable/concat":122,"../util/isScheduler":289}],223:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/SubscribeOnObservable");r.subscribeOn=function(e,r){return void 0===r&&(r=0),function(t){return t.lift(new o(e,r))}};var o=(i.prototype.call=function(t,e){return new n.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},i);function i(t,e){this.scheduler=t,this.delay=e}},{"../observable/SubscribeOnObservable":118}],224:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./switchMap"),o=t("../util/identity");r.switchAll=function(){return n.switchMap(o.identity)}},{"../util/identity":278,"./switchMap":225}],225:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var s=t("./map"),u=t("../observable/from"),i=t("../innerSubscribe");r.switchMap=function e(o,i){return"function"==typeof i?function(t){return t.pipe(e(function(r,n){return u.from(o(r,n)).pipe(s.map(function(t,e){return i(r,t,n,e)}))}))}:function(t){return t.lift(new a(o))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},c);function c(t){this.project=t}var l,f=(l=i.SimpleOuterSubscriber,o(p,l),p.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this._innerSub(e)},p.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var r=new i.SimpleInnerSubscriber(this),e=this.destination;e.add(r),this.innerSubscription=i.innerSubscribe(t,r),this.innerSubscription!==r&&e.add(this.innerSubscription)},p.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||l.prototype._complete.call(this),this.unsubscribe()},p.prototype._unsubscribe=function(){this.innerSubscription=void 0},p.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&l.prototype._complete.call(this)},p.prototype.notifyNext=function(t){this.destination.next(t)},p);function p(t,e){t=l.call(this,t)||this;return t.project=e,t.index=0,t}},{"../innerSubscribe":116,"../observable/from":126,"./map":184}],226:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./switchMap");r.switchMapTo=function(t,e){return e?n.switchMap(function(){return t},e):n.switchMap(function(){return t})}},{"./switchMap":225}],227:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError"),u=t("../observable/empty");r.take=function(e){return function(t){return 0===e?u.empty():t.lift(new a(e))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.total))},c);function c(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},p);function p(t,e){t=l.call(this,t)||this;return t.total=e,t.count=0,t}},{"../Subscriber":113,"../observable/empty":124,"../util/ArgumentOutOfRangeError":270}],228:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../util/ArgumentOutOfRangeError"),u=t("../observable/empty");r.takeLast=function(e){return function(t){return 0===e?u.empty():t.lift(new a(e))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.total))},c);function c(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},p.prototype._complete=function(){var t=this.destination,e=this.count;if(0<e)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=e++%r;t.next(n[i])}t.complete()},p);function p(t,e){t=l.call(this,t)||this;return t.total=e,t.ring=new Array,t.count=0,t}},{"../Subscriber":113,"../observable/empty":124,"../util/ArgumentOutOfRangeError":270}],229:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../innerSubscribe");r.takeUntil=function(e){return function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){var r=new c(t),t=i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(r));return t&&!r.seenValue?(r.add(t),e.subscribe(r)):r},u);function u(t){this.notifier=t}var a,c=(a=i.SimpleOuterSubscriber,o(l,a),l.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},l.prototype.notifyComplete=function(){},l);function l(t){t=a.call(this,t)||this;return t.seenValue=!1,t}},{"../innerSubscribe":116}],230:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});t=t("../Subscriber");r.takeWhile=function(e,r){return void 0===r&&(r=!1),function(t){return t.lift(new i(e,r))}};var i=(s.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.inclusive))},s);function s(t,e){this.predicate=t,this.inclusive=e}var u,a=(u=t.Subscriber,o(c,u),c.prototype._next=function(t){var e,r=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void r.error(t)}this.nextOrComplete(t,e)},c.prototype.nextOrComplete=function(t,e){var r=this.destination;Boolean(e)?r.next(t):(this.inclusive&&r.next(t),r.complete())},c);function c(t,e,r){t=u.call(this,t)||this;return t.predicate=e,t.inclusive=r,t.index=0,t}},{"../Subscriber":113}],231:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../util/noop"),u=t("../util/isFunction");r.tap=function(e,r,n){return function(t){return t.lift(new a(e,r,n))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.nextOrObserver,this.error,this.complete))},c);function c(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.next(t)},p.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},p.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},p);function p(t,e,r,n){t=l.call(this,t)||this;return t._tapNext=s.noop,t._tapError=s.noop,t._tapComplete=s.noop,t._tapError=r||s.noop,t._tapComplete=n||s.noop,u.isFunction(e)?(t._context=t)._tapNext=e:e&&(t._context=e,t._tapNext=e.next||s.noop,t._tapError=e.error||s.noop,t._tapComplete=e.complete||s.noop),t}},{"../Subscriber":113,"../util/isFunction":282,"../util/noop":290}],232:[function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(n,"__esModule",{value:!0});var i=t("../innerSubscribe");n.defaultThrottleConfig={leading:!0,trailing:!1},n.throttle=function(e,r){return void 0===r&&(r=n.defaultThrottleConfig),function(t){return t.lift(new s(e,!!r.leading,!!r.trailing))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector,this.leading,this.trailing))},u);function u(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}var a,c=(a=i.SimpleOuterSubscriber,r(l,a),l.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},l.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},l.prototype.throttle=function(t){t=this.tryDurationSelector(t);t&&this.add(this._throttled=i.innerSubscribe(t,new i.SimpleInnerSubscriber(this)))},l.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},l.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},l.prototype.notifyNext=function(){this.throttlingDone()},l.prototype.notifyComplete=function(){this.throttlingDone()},l);function l(t,e,r,n){var o=a.call(this,t)||this;return o.destination=t,o.durationSelector=e,o._leading=r,o._trailing=n,o._hasValue=!1,o}},{"../innerSubscribe":116}],233:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),s=t("../scheduler/async"),u=t("./throttle");r.throttleTime=function(e,r,n){return void 0===r&&(r=s.async),void 0===n&&(n=u.defaultThrottleConfig),function(t){return t.lift(new a(e,r,n.leading,n.trailing))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.duration,this.scheduler,this.leading,this.trailing))},c);function c(t,e,r,n){this.duration=t,this.scheduler=e,this.leading=r,this.trailing=n}var l,f=(l=i.Subscriber,o(p,l),p.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(h,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},p.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},p.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},p);function p(t,e,r,n,o){t=l.call(this,t)||this;return t.duration=e,t.scheduler=r,t.leading=n,t.trailing=o,t._hasTrailingValue=!1,t._trailingValue=null,t}function h(t){t.subscriber.clearThrottle()}},{"../Subscriber":113,"../scheduler/async":265,"./throttle":232}],234:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../util/EmptyError"),t=t("../Subscriber");r.throwIfEmpty=function(e){return void 0===e&&(e=f),function(t){return t.lift(new s(e))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new c(t,this.errorFactory))},u);function u(t){this.errorFactory=t}var a,c=(a=t.Subscriber,o(l,a),l.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},l.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},l);function l(t,e){t=a.call(this,t)||this;return t.errorFactory=e,t.hasValue=!1,t}function f(){return new i.EmptyError}},{"../Subscriber":113,"../util/EmptyError":271}],235:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../scheduler/async"),o=t("./scan"),i=t("../observable/defer"),s=t("./map");r.timeInterval=function(r){return void 0===r&&(r=n.async),function(t){return i.defer(function(){return t.pipe(o.scan(function(t,e){t=t.current;return{value:e,current:r.now(),last:t}},{current:r.now(),value:void 0,last:void 0}),s.map(function(t){var e=t.current,r=t.last,t=t.value;return new u(t,e-r)}))})}};var u=function(t,e){this.value=t,this.interval=e};r.TimeInterval=u},{"../observable/defer":123,"../scheduler/async":265,"./map":184,"./scan":213}],236:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../scheduler/async"),o=t("../util/TimeoutError"),i=t("./timeoutWith"),s=t("../observable/throwError");r.timeout=function(t,e){return void 0===e&&(e=n.async),i.timeoutWith(t,s.throwError(new o.TimeoutError),e)}},{"../observable/throwError":141,"../scheduler/async":265,"../util/TimeoutError":274,"./timeoutWith":237}],237:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var s=t("../scheduler/async"),u=t("../util/isDate"),i=t("../innerSubscribe");r.timeoutWith=function(n,o,i){return void 0===i&&(i=s.async),function(t){var e=u.isDate(n),r=e?+n-i.now():Math.abs(n);return t.lift(new a(r,e,o,i))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},c);function c(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=r,this.scheduler=n}var l,f=(l=i.SimpleOuterSubscriber,o(p,l),p.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(i.innerSubscribe(e,new i.SimpleInnerSubscriber(t)))},p.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(p.dispatchTimeout,this.waitFor,this))},p.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),l.prototype._next.call(this,t)},p.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},p);function p(t,e,r,n,o){t=l.call(this,t)||this;return t.absoluteTimeout=e,t.waitFor=r,t.withObservable=n,t.scheduler=o,t.scheduleTimeout(),t}},{"../innerSubscribe":116,"../scheduler/async":265,"../util/isDate":281}],238:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../scheduler/async"),o=t("./map");r.timestamp=function(e){return void 0===e&&(e=n.async),o.map(function(t){return new i(t,e.now())})};var i=function(t,e){this.value=t,this.timestamp=e};r.Timestamp=i},{"../scheduler/async":265,"./map":184}],239:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./reduce");function o(t,e,r){return 0===r?[e]:(t.push(e),t)}r.toArray=function(){return n.reduce(o,[])}},{"./reduce":205}],240:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subject"),s=t("../innerSubscribe");r.window=function(e){return function(t){return t.lift(new u(e))}};var u=(a.prototype.call=function(t,e){t=new l(t),e=e.subscribe(t);return e.closed||t.add(s.innerSubscribe(this.windowBoundaries,new s.SimpleInnerSubscriber(t))),e},a);function a(t){this.windowBoundaries=t}var c,l=(c=s.SimpleOuterSubscriber,o(f,c),f.prototype.notifyNext=function(){this.openWindow()},f.prototype.notifyError=function(t){this._error(t)},f.prototype.notifyComplete=function(){this._complete()},f.prototype._next=function(t){this.window.next(t)},f.prototype._error=function(t){this.window.error(t),this.destination.error(t)},f.prototype._complete=function(){this.window.complete(),this.destination.complete()},f.prototype._unsubscribe=function(){this.window=null},f.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,t=this.window=new i.Subject;e.next(t)},f);function f(t){var e=c.call(this,t)||this;return e.window=new i.Subject,t.next(e.window),e}},{"../Subject":111,"../innerSubscribe":116}],241:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subscriber"),u=t("../Subject");r.windowCount=function(e,r){return void 0===r&&(r=0),function(t){return t.lift(new s(e,r))}};var s=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.windowSize,this.startWindowEvery))},a);function a(t,e){this.windowSize=t,this.startWindowEvery=e}var c,l=(c=i.Subscriber,o(f,c),f.prototype._next=function(t){for(var e=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,o=this.windows,i=o.length,s=0;s<i&&!this.closed;s++)o[s].next(t);n=this.count-n+1;0<=n&&n%e==0&&!this.closed&&o.shift().complete(),++this.count%e!=0||this.closed||(e=new u.Subject,o.push(e),r.next(e))},f.prototype._error=function(t){var e=this.windows;if(e)for(;0<e.length&&!this.closed;)e.shift().error(t);this.destination.error(t)},f.prototype._complete=function(){var t=this.windows;if(t)for(;0<t.length&&!this.closed;)t.shift().complete();this.destination.complete()},f.prototype._unsubscribe=function(){this.count=0,this.windows=null},f);function f(t,e,r){var n=c.call(this,t)||this;return n.destination=t,n.windowSize=e,n.startWindowEvery=r,n.windows=[new u.Subject],n.count=0,t.next(n.windows[0]),n}},{"../Subject":111,"../Subscriber":113}],242:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subject"),s=t("../scheduler/async"),u=t("../Subscriber"),a=t("../util/isNumeric"),c=t("../util/isScheduler");r.windowTime=function(e){var r=s.async,n=null,o=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(r=arguments[3]),c.isScheduler(arguments[2])?r=arguments[2]:a.isNumeric(arguments[2])&&(o=Number(arguments[2])),c.isScheduler(arguments[1])?r=arguments[1]:a.isNumeric(arguments[1])&&(n=Number(arguments[1])),function(t){return t.lift(new l(e,n,o,r))}};var l=(f.prototype.call=function(t,e){return e.subscribe(new _(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},f);function f(t,e,r,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=r,this.scheduler=n}var p,h=(p=i.Subject,o(d,p),d.prototype.next=function(t){this._numberOfNextedValues++,p.prototype.next.call(this,t)},Object.defineProperty(d.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),d);function d(){var t=null!==p&&p.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}var b,_=(b=u.Subscriber,o(y,b),y.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n<r;n++){var o=e[n];o.closed||(o.next(t),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},y.prototype._error=function(t){for(var e=this.windows;0<e.length;)e.shift().error(t);this.destination.error(t)},y.prototype._complete=function(){for(var t=this.windows;0<t.length;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},y.prototype.openWindow=function(){var t=new h;return this.windows.push(t),this.destination.next(t),t},y.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},y);function y(t,e,r,n,o){var i=b.call(this,t)||this;i.destination=t,i.windowTimeSpan=e,i.windowCreationInterval=r,i.maxWindowSize=n,i.scheduler=o,i.windows=[];t=i.openWindow();return null!==r&&0<=r?(n={windowTimeSpan:e,windowCreationInterval:r,subscriber:i,scheduler:o},i.add(o.schedule(g,e,{subscriber:i,window:t,context:null})),i.add(o.schedule(m,r,n))):i.add(o.schedule(v,e,{subscriber:i,window:t,windowTimeSpan:e})),i}function v(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,r)}function m(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,o=t.windowCreationInterval,i=r.openWindow(),s={action:this,subscription:null};s.subscription=n.schedule(g,e,{subscriber:r,window:i,context:s}),this.add(s.subscription),this.schedule(t,o)}function g(t){var e=t.subscriber,r=t.window,t=t.context;t&&t.action&&t.subscription&&t.action.remove(t.subscription),e.closeWindow(r)}},{"../Subject":111,"../Subscriber":113,"../scheduler/async":265,"../util/isNumeric":285,"../util/isScheduler":289}],243:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var a=t("../Subject"),c=t("../Subscription"),i=t("../OuterSubscriber"),l=t("../util/subscribeToResult");r.windowToggle=function(e,r){return function(t){return t.lift(new s(e,r))}};var s=(u.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},u);function u(t,e){this.openings=t,this.closingSelector=e}var f,p=(f=i.OuterSubscriber,o(h,f),h.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n<r;n++)e[n].window.next(t)},h.prototype._error=function(t){var e=this.contexts;if(this.contexts=null,e)for(var r=e.length,n=-1;++n<r;){var o=e[n];o.window.error(t),o.subscription.unsubscribe()}f.prototype._error.call(this,t)},h.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,r=-1;++r<e;){var n=t[r];n.window.complete(),n.subscription.unsubscribe()}f.prototype._complete.call(this)},h.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,r=-1;++r<e;){var n=t[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},h.prototype.notifyNext=function(t,e,r,n,o){if(t===this.openings){var i=void 0;try{i=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var s=new a.Subject,u=new c.Subscription,e={window:s,subscription:u};this.contexts.push(e);i=l.subscribeToResult(this,i,e);i.closed?this.closeWindow(this.contexts.length-1):(i.context=e,u.add(i)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},h.prototype.notifyError=function(t){this.error(t)},h.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},h.prototype.closeWindow=function(t){var e,r,n;-1!==t&&(r=(n=(e=this.contexts)[t]).window,n=n.subscription,e.splice(t,1),r.complete(),n.unsubscribe())},h);function h(t,e,r){t=f.call(this,t)||this;return t.openings=e,t.closingSelector=r,t.contexts=[],t.add(t.openSubscription=l.subscribeToResult(t,e,e)),t}},{"../OuterSubscriber":108,"../Subject":111,"../Subscription":114,"../util/subscribeToResult":298}],244:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Subject"),s=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.windowWhen=function(e){return function(t){return t.lift(new a(e))}};var a=(c.prototype.call=function(t,e){return e.subscribe(new f(t,this.closingSelector))},c);function c(t){this.closingSelector=t}var l,f=(l=s.OuterSubscriber,o(p,l),p.prototype.notifyNext=function(t,e,r,n,o){this.openWindow(o)},p.prototype.notifyError=function(t){this._error(t)},p.prototype.notifyComplete=function(t){this.openWindow(t)},p.prototype._next=function(t){this.window.next(t)},p.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},p.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},p.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},p.prototype.openWindow=function(t){(t=void 0===t?null:t)&&(this.remove(t),t.unsubscribe());t=this.window;t&&t.complete();t=this.window=new i.Subject;this.destination.next(t);try{var e=(0,this.closingSelector)()}catch(t){return this.destination.error(t),void this.window.error(t)}this.add(this.closingNotification=u.subscribeToResult(this,e))},p);function p(t,e){var r=l.call(this,t)||this;return r.destination=t,r.closingSelector=e,r.openWindow(),r}},{"../OuterSubscriber":108,"../Subject":111,"../util/subscribeToResult":298}],245:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i=t("../OuterSubscriber"),u=t("../util/subscribeToResult");r.withLatestFrom=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return function(t){var e;"function"==typeof r[r.length-1]&&(e=r.pop());return t.lift(new s(r,e))}};var s=(a.prototype.call=function(t,e){return e.subscribe(new l(t,this.observables,this.project))},a);function a(t,e){this.observables=t,this.project=e}var c,l=(c=i.OuterSubscriber,o(f,c),f.prototype.notifyNext=function(t,e,r){this.values[r]=e;e=this.toRespond;0<e.length&&(-1!==(r=e.indexOf(r))&&e.splice(r,1))},f.prototype.notifyComplete=function(){},f.prototype._next=function(t){0===this.toRespond.length&&(t=[t].concat(this.values),this.project?this._tryProject(t):this.destination.next(t))},f.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},f);function f(t,e,r){var n=c.call(this,t)||this;n.observables=e,n.project=r,n.toRespond=[];var o=e.length;n.values=new Array(o);for(var i=0;i<o;i++)n.toRespond.push(i);for(i=0;i<o;i++){var s=e[i];n.add(u.subscribeToResult(n,s,void 0,i))}return n}},{"../OuterSubscriber":108,"../util/subscribeToResult":298}],246:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/zip");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(n.zip.apply(void 0,[t].concat(e)))}}},{"../observable/zip":144}],247:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../observable/zip");r.zipAll=function(e){return function(t){return t.lift(new n.ZipOperator(e))}}},{"../observable/zip":144}],248:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../Subscription");r.scheduleArray=function(n,o){return new i.Observable(function(t){var e=new s.Subscription,r=0;return e.add(o.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||e.add(this.schedule())):t.complete()})),e})}},{"../Observable":106,"../Subscription":114}],249:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable"),i=t("../Subscription"),s=t("../symbol/iterator");r.scheduleIterable=function(e,r){if(!e)throw new Error("Iterable cannot be null");return new n.Observable(function(n){var o,t=new i.Subscription;return t.add(function(){o&&"function"==typeof o.return&&o.return()}),t.add(r.schedule(function(){o=e[s.iterator](),t.add(r.schedule(function(){if(!n.closed){try{var t=o.next(),e=t.value,r=t.done}catch(t){return void n.error(t)}r?n.complete():(n.next(e),this.schedule())}}))})),t})}},{"../Observable":106,"../Subscription":114,"../symbol/iterator":267}],250:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../Observable"),s=t("../Subscription"),u=t("../symbol/observable");r.scheduleObservable=function(n,o){return new i.Observable(function(e){var r=new s.Subscription;return r.add(o.schedule(function(){var t=n[u.observable]();r.add(t.subscribe({next:function(t){r.add(o.schedule(function(){return e.next(t)}))},error:function(t){r.add(o.schedule(function(){return e.error(t)}))},complete:function(){r.add(o.schedule(function(){return e.complete()}))}}))})),r})}},{"../Observable":106,"../Subscription":114,"../symbol/observable":268}],251:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../Observable"),i=t("../Subscription");r.schedulePromise=function(t,n){return new o.Observable(function(e){var r=new i.Subscription;return r.add(n.schedule(function(){return t.then(function(t){r.add(n.schedule(function(){e.next(t),r.add(n.schedule(function(){return e.complete()}))}))},function(t){r.add(n.schedule(function(){return e.error(t)}))})})),r})}},{"../Observable":106,"../Subscription":114}],252:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./scheduleObservable"),o=t("./schedulePromise"),i=t("./scheduleArray"),s=t("./scheduleIterable"),u=t("../util/isInteropObservable"),a=t("../util/isPromise"),c=t("../util/isArrayLike"),l=t("../util/isIterable");r.scheduled=function(t,e){if(null!=t){if(u.isInteropObservable(t))return n.scheduleObservable(t,e);if(a.isPromise(t))return o.schedulePromise(t,e);if(c.isArrayLike(t))return i.scheduleArray(t,e);if(l.isIterable(t)||"string"==typeof t)return s.scheduleIterable(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},{"../util/isArrayLike":280,"../util/isInteropObservable":283,"../util/isIterable":284,"../util/isPromise":288,"./scheduleArray":248,"./scheduleIterable":249,"./scheduleObservable":250,"./schedulePromise":251}],253:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("../Subscription"),o=(i=t.Subscription,o(s,i),s.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},s);function s(t,e){return i.call(this)||this}r.Action=o},{"../Subscription":114}],254:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./AsyncAction"),o=(i=t.AsyncAction,o(s,i),s.prototype.requestAsyncId=function(t,e,r){return null!==(r=void 0===r?0:r)&&0<r?i.prototype.requestAsyncId.call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},s.prototype.recycleAsyncId=function(t,e,r){if(null!==(r=void 0===r?0:r)&&0<r||null===r&&0<this.delay)return i.prototype.recycleAsyncId.call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)},s);function s(t,e){var r=i.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}r.AnimationFrameAction=o},{"./AsyncAction":258}],255:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./AsyncScheduler"),o=(i=t.AsyncScheduler,o(s,i),s.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,o=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<o&&(t=r.shift()));if(this.active=!1,e){for(;++n<o&&(t=r.shift());)t.unsubscribe();throw e}},s);function s(){return null!==i&&i.apply(this,arguments)||this}r.AnimationFrameScheduler=o},{"./AsyncScheduler":259}],256:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("../util/Immediate"),t=t("./AsyncAction"),o=(i=t.AsyncAction,o(u,i),u.prototype.requestAsyncId=function(t,e,r){return null!==(r=void 0===r?0:r)&&0<r?i.prototype.requestAsyncId.call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=s.Immediate.setImmediate(t.flush.bind(t,null))))},u.prototype.recycleAsyncId=function(t,e,r){if(null!==(r=void 0===r?0:r)&&0<r||null===r&&0<this.delay)return i.prototype.recycleAsyncId.call(this,t,e,r);0===t.actions.length&&(s.Immediate.clearImmediate(e),t.scheduled=void 0)},u);function u(t,e){var r=i.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}r.AsapAction=o},{"../util/Immediate":272,"./AsyncAction":258}],257:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./AsyncScheduler"),o=(i=t.AsyncScheduler,o(s,i),s.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,o=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<o&&(t=r.shift()));if(this.active=!1,e){for(;++n<o&&(t=r.shift());)t.unsubscribe();throw e}},s);function s(){return null!==i&&i.apply(this,arguments)||this}r.AsapScheduler=o},{"./AsyncScheduler":259}],258:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./Action"),o=(i=t.Action,o(s,i),s.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,t=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(t,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(t,this.id,e),this},s.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},s.prototype.recycleAsyncId=function(t,e,r){if(null!==(r=void 0===r?0:r)&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},s.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;e=this._execute(t,e);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},s.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},s.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},s);function s(t,e){var r=i.call(this,t,e)||this;return r.scheduler=t,r.work=e,r.pending=!1,r}r.AsyncAction=o},{"./Action":253}],259:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("../Scheduler"),o=(i=s.Scheduler,o(u,i),u.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),u.delegate&&u.delegate!==this?u.delegate.schedule(t,e,r):i.prototype.schedule.call(this,t,e,r)},u.prototype.flush=function(t){var e,r=this.actions;if(this.active)r.push(t);else{this.active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}}},u);function u(t,e){void 0===e&&(e=s.Scheduler.now);var r=i.call(this,t,function(){return u.delegate&&u.delegate!==r?u.delegate.now():e()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}r.AsyncScheduler=o},{"../Scheduler":110}],260:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./AsyncAction"),o=(i=t.AsyncAction,o(s,i),s.prototype.schedule=function(t,e){return 0<(e=void 0===e?0:e)?i.prototype.schedule.call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)},s.prototype.execute=function(t,e){return 0<e||this.closed?i.prototype.execute.call(this,t,e):this._execute(t,e)},s.prototype.requestAsyncId=function(t,e,r){return null!==(r=void 0===r?0:r)&&0<r||null===r&&0<this.delay?i.prototype.requestAsyncId.call(this,t,e,r):t.flush(this)},s);function s(t,e){var r=i.call(this,t,e)||this;return r.scheduler=t,r.work=e,r}r.QueueAction=o},{"./AsyncAction":258}],261:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,t=t("./AsyncScheduler"),o=(i=t.AsyncScheduler,o(s,i),s);function s(){return null!==i&&i.apply(this,arguments)||this}r.QueueScheduler=o},{"./AsyncScheduler":259}],262:[function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,s=t("./AsyncAction"),t=t("./AsyncScheduler"),t=(i=t.AsyncScheduler,o(u,i),u.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},u.frameTimeFactor=10,u);function u(t,e){void 0===t&&(t=c),void 0===e&&(e=Number.POSITIVE_INFINITY);var r=i.call(this,t,function(){return r.frame})||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}r.VirtualTimeScheduler=t;var a,c=(a=s.AsyncAction,o(l,a),l.prototype.schedule=function(t,e){if(void 0===e&&(e=0),!this.id)return a.prototype.schedule.call(this,t,e);this.active=!1;var r=new l(this.scheduler,this.work);return this.add(r),r.schedule(t,e)},l.prototype.requestAsyncId=function(t,e,r){this.delay=t.frame+(r=void 0===r?0:r);t=t.actions;return t.push(this),t.sort(l.sortActions),!0},l.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},l.prototype._execute=function(t,e){if(!0===this.active)return a.prototype._execute.call(this,t,e)},l.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},l);function l(t,e,r){void 0===r&&(r=t.index+=1);var n=a.call(this,t,e)||this;return n.scheduler=t,n.work=e,n.index=r,n.active=!0,n.index=t.index=r,n}r.VirtualAction=c},{"./AsyncAction":258,"./AsyncScheduler":259}],263:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./AnimationFrameAction"),t=t("./AnimationFrameScheduler");r.animationFrameScheduler=new t.AnimationFrameScheduler(n.AnimationFrameAction),r.animationFrame=r.animationFrameScheduler},{"./AnimationFrameAction":254,"./AnimationFrameScheduler":255}],264:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./AsapAction"),t=t("./AsapScheduler");r.asapScheduler=new t.AsapScheduler(n.AsapAction),r.asap=r.asapScheduler},{"./AsapAction":256,"./AsapScheduler":257}],265:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./AsyncAction"),t=t("./AsyncScheduler");r.asyncScheduler=new t.AsyncScheduler(n.AsyncAction),r.async=r.asyncScheduler},{"./AsyncAction":258,"./AsyncScheduler":259}],266:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./QueueAction"),t=t("./QueueScheduler");r.queueScheduler=new t.QueueScheduler(n.QueueAction),r.queue=r.queueScheduler},{"./QueueAction":260,"./QueueScheduler":261}],267:[function(t,e,r){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(r,"__esModule",{value:!0}),r.getSymbolIterator=n,r.iterator=n(),r.$$iterator=r.iterator},{}],268:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},{}],269:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),r.$$rxSubscriber=r.rxSubscriber},{}],270:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}r.ArgumentOutOfRangeError=n},{}],271:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}r.EmptyError=n},{}],272:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=1,o=Promise.resolve(),i={};function s(t){return t in i&&(delete i[t],!0)}r.Immediate={setImmediate:function(t){var e=n++;return i[e]=!0,o.then(function(){return s(e)&&t()}),e},clearImmediate:function(t){s(t)}},r.TestTools={pending:function(){return Object.keys(i).length}}},{}],273:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}r.ObjectUnsubscribedError=n},{}],274:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}r.TimeoutError=n},{}],275:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=(o.prototype=Object.create(Error.prototype),o);function o(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}r.UnsubscriptionError=n},{}],276:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../Subscriber");r.canReportError=function(t){for(;t;){var e=t.closed,r=t.destination,n=t.isStopped;if(e||n)return!1;t=r&&r instanceof o.Subscriber?r:null}return!0}},{"../Subscriber":113}],277:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hostReportError=function(t){setTimeout(function(){throw t},0)}},{}],278:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.identity=function(t){return t}},{}],279:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],280:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayLike=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},{}],281:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},{}],282:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=function(t){return"function"==typeof t}},{}],283:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../symbol/observable");r.isInteropObservable=function(t){return t&&"function"==typeof t[n.observable]}},{"../symbol/observable":268}],284:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../symbol/iterator");r.isIterable=function(t){return t&&"function"==typeof t[n.iterator]}},{"../symbol/iterator":267}],285:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./isArray");r.isNumeric=function(t){return!n.isArray(t)&&0<=t-parseFloat(t)+1}},{"./isArray":279}],286:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=function(t){return null!==t&&"object"==typeof t}},{}],287:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Observable");r.isObservable=function(t){return!!t&&(t instanceof n.Observable||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},{"../Observable":106}],288:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPromise=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},{}],289:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isScheduler=function(t){return t&&"function"==typeof t.schedule}},{}],290:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=function(){}},{}],291:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.not=function(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}},{}],292:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./identity");function o(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)}}r.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)},r.pipeFromArray=o},{"./identity":278}],293:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./subscribeToArray"),o=t("./subscribeToPromise"),i=t("./subscribeToIterable"),s=t("./subscribeToObservable"),u=t("./isArrayLike"),a=t("./isPromise"),c=t("./isObject"),l=t("../symbol/iterator"),f=t("../symbol/observable");r.subscribeTo=function(t){if(t&&"function"==typeof t[f.observable])return s.subscribeToObservable(t);if(u.isArrayLike(t))return n.subscribeToArray(t);if(a.isPromise(t))return o.subscribeToPromise(t);if(t&&"function"==typeof t[l.iterator])return i.subscribeToIterable(t);t=c.isObject(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},{"../symbol/iterator":267,"../symbol/observable":268,"./isArrayLike":280,"./isObject":286,"./isPromise":288,"./subscribeToArray":294,"./subscribeToIterable":295,"./subscribeToObservable":296,"./subscribeToPromise":297}],294:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeToArray=function(n){return function(t){for(var e=0,r=n.length;e<r&&!t.closed;e++)t.next(n[e]);t.complete()}}},{}],295:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=t("../symbol/iterator");r.subscribeToIterable=function(n){return function(e){for(var t=n[o.iterator]();;){var r=void 0;try{r=t.next()}catch(t){return e.error(t),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(function(){t.return&&t.return()}),e}}},{"../symbol/iterator":267}],296:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../symbol/observable");r.subscribeToObservable=function(r){return function(t){var e=r[n.observable]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)}}},{"../symbol/observable":268}],297:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("./hostReportError");r.subscribeToPromise=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,n.hostReportError),e}}},{"./hostReportError":277}],298:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t("../InnerSubscriber"),s=t("./subscribeTo"),u=t("../Observable");r.subscribeToResult=function(t,e,r,n,o){if(!(o=void 0===o?new i.InnerSubscriber(t,r,n):o).closed)return e instanceof u.Observable?e.subscribe(o):s.subscribeTo(e)(o)}},{"../InnerSubscriber":104,"../Observable":106,"./subscribeTo":293}],299:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../Subscriber"),o=t("../symbol/rxSubscriber"),i=t("../Observer");r.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(i.empty)}},{"../Observer":107,"../Subscriber":113,"../symbol/rxSubscriber":269}],300:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("../internal/operators/audit");r.audit=n.audit;n=t("../internal/operators/auditTime");r.auditTime=n.auditTime;n=t("../internal/operators/buffer");r.buffer=n.buffer;n=t("../internal/operators/bufferCount");r.bufferCount=n.bufferCount;n=t("../internal/operators/bufferTime");r.bufferTime=n.bufferTime;n=t("../internal/operators/bufferToggle");r.bufferToggle=n.bufferToggle;n=t("../internal/operators/bufferWhen");r.bufferWhen=n.bufferWhen;n=t("../internal/operators/catchError");r.catchError=n.catchError;n=t("../internal/operators/combineAll");r.combineAll=n.combineAll;n=t("../internal/operators/combineLatest");r.combineLatest=n.combineLatest;n=t("../internal/operators/concat");r.concat=n.concat;n=t("../internal/operators/concatAll");r.concatAll=n.concatAll;n=t("../internal/operators/concatMap");r.concatMap=n.concatMap;n=t("../internal/operators/concatMapTo");r.concatMapTo=n.concatMapTo;n=t("../internal/operators/count");r.count=n.count;n=t("../internal/operators/debounce");r.debounce=n.debounce;n=t("../internal/operators/debounceTime");r.debounceTime=n.debounceTime;n=t("../internal/operators/defaultIfEmpty");r.defaultIfEmpty=n.defaultIfEmpty;n=t("../internal/operators/delay");r.delay=n.delay;n=t("../internal/operators/delayWhen");r.delayWhen=n.delayWhen;n=t("../internal/operators/dematerialize");r.dematerialize=n.dematerialize;n=t("../internal/operators/distinct");r.distinct=n.distinct;n=t("../internal/operators/distinctUntilChanged");r.distinctUntilChanged=n.distinctUntilChanged;n=t("../internal/operators/distinctUntilKeyChanged");r.distinctUntilKeyChanged=n.distinctUntilKeyChanged;n=t("../internal/operators/elementAt");r.elementAt=n.elementAt;n=t("../internal/operators/endWith");r.endWith=n.endWith;n=t("../internal/operators/every");r.every=n.every;n=t("../internal/operators/exhaust");r.exhaust=n.exhaust;n=t("../internal/operators/exhaustMap");r.exhaustMap=n.exhaustMap;n=t("../internal/operators/expand");r.expand=n.expand;n=t("../internal/operators/filter");r.filter=n.filter;n=t("../internal/operators/finalize");r.finalize=n.finalize;n=t("../internal/operators/find");r.find=n.find;n=t("../internal/operators/findIndex");r.findIndex=n.findIndex;n=t("../internal/operators/first");r.first=n.first;n=t("../internal/operators/groupBy");r.groupBy=n.groupBy;n=t("../internal/operators/ignoreElements");r.ignoreElements=n.ignoreElements;n=t("../internal/operators/isEmpty");r.isEmpty=n.isEmpty;n=t("../internal/operators/last");r.last=n.last;n=t("../internal/operators/map");r.map=n.map;n=t("../internal/operators/mapTo");r.mapTo=n.mapTo;n=t("../internal/operators/materialize");r.materialize=n.materialize;n=t("../internal/operators/max");r.max=n.max;n=t("../internal/operators/merge");r.merge=n.merge;n=t("../internal/operators/mergeAll");r.mergeAll=n.mergeAll;n=t("../internal/operators/mergeMap");r.mergeMap=n.mergeMap,r.flatMap=n.flatMap;n=t("../internal/operators/mergeMapTo");r.mergeMapTo=n.mergeMapTo;n=t("../internal/operators/mergeScan");r.mergeScan=n.mergeScan;n=t("../internal/operators/min");r.min=n.min;n=t("../internal/operators/multicast");r.multicast=n.multicast;n=t("../internal/operators/observeOn");r.observeOn=n.observeOn;n=t("../internal/operators/onErrorResumeNext");r.onErrorResumeNext=n.onErrorResumeNext;n=t("../internal/operators/pairwise");r.pairwise=n.pairwise;n=t("../internal/operators/partition");r.partition=n.partition;n=t("../internal/operators/pluck");r.pluck=n.pluck;n=t("../internal/operators/publish");r.publish=n.publish;n=t("../internal/operators/publishBehavior");r.publishBehavior=n.publishBehavior;n=t("../internal/operators/publishLast");r.publishLast=n.publishLast;n=t("../internal/operators/publishReplay");r.publishReplay=n.publishReplay;n=t("../internal/operators/race");r.race=n.race;n=t("../internal/operators/reduce");r.reduce=n.reduce;n=t("../internal/operators/repeat");r.repeat=n.repeat;n=t("../internal/operators/repeatWhen");r.repeatWhen=n.repeatWhen;n=t("../internal/operators/retry");r.retry=n.retry;n=t("../internal/operators/retryWhen");r.retryWhen=n.retryWhen;n=t("../internal/operators/refCount");r.refCount=n.refCount;n=t("../internal/operators/sample");r.sample=n.sample;n=t("../internal/operators/sampleTime");r.sampleTime=n.sampleTime;n=t("../internal/operators/scan");r.scan=n.scan;n=t("../internal/operators/sequenceEqual");r.sequenceEqual=n.sequenceEqual;n=t("../internal/operators/share");r.share=n.share;n=t("../internal/operators/shareReplay");r.shareReplay=n.shareReplay;n=t("../internal/operators/single");r.single=n.single;n=t("../internal/operators/skip");r.skip=n.skip;n=t("../internal/operators/skipLast");r.skipLast=n.skipLast;n=t("../internal/operators/skipUntil");r.skipUntil=n.skipUntil;n=t("../internal/operators/skipWhile");r.skipWhile=n.skipWhile;n=t("../internal/operators/startWith");r.startWith=n.startWith;n=t("../internal/operators/subscribeOn");r.subscribeOn=n.subscribeOn;n=t("../internal/operators/switchAll");r.switchAll=n.switchAll;n=t("../internal/operators/switchMap");r.switchMap=n.switchMap;n=t("../internal/operators/switchMapTo");r.switchMapTo=n.switchMapTo;n=t("../internal/operators/take");r.take=n.take;n=t("../internal/operators/takeLast");r.takeLast=n.takeLast;n=t("../internal/operators/takeUntil");r.takeUntil=n.takeUntil;n=t("../internal/operators/takeWhile");r.takeWhile=n.takeWhile;n=t("../internal/operators/tap");r.tap=n.tap;n=t("../internal/operators/throttle");r.throttle=n.throttle;n=t("../internal/operators/throttleTime");r.throttleTime=n.throttleTime;n=t("../internal/operators/throwIfEmpty");r.throwIfEmpty=n.throwIfEmpty;n=t("../internal/operators/timeInterval");r.timeInterval=n.timeInterval;n=t("../internal/operators/timeout");r.timeout=n.timeout;n=t("../internal/operators/timeoutWith");r.timeoutWith=n.timeoutWith;n=t("../internal/operators/timestamp");r.timestamp=n.timestamp;n=t("../internal/operators/toArray");r.toArray=n.toArray;n=t("../internal/operators/window");r.window=n.window;n=t("../internal/operators/windowCount");r.windowCount=n.windowCount;n=t("../internal/operators/windowTime");r.windowTime=n.windowTime;n=t("../internal/operators/windowToggle");r.windowToggle=n.windowToggle;n=t("../internal/operators/windowWhen");r.windowWhen=n.windowWhen;n=t("../internal/operators/withLatestFrom");r.withLatestFrom=n.withLatestFrom;n=t("../internal/operators/zip");r.zip=n.zip;t=t("../internal/operators/zipAll");r.zipAll=t.zipAll},{"../internal/operators/audit":145,"../internal/operators/auditTime":146,"../internal/operators/buffer":147,"../internal/operators/bufferCount":148,"../internal/operators/bufferTime":149,"../internal/operators/bufferToggle":150,"../internal/operators/bufferWhen":151,"../internal/operators/catchError":152,"../internal/operators/combineAll":153,"../internal/operators/combineLatest":154,"../internal/operators/concat":155,"../internal/operators/concatAll":156,"../internal/operators/concatMap":157,"../internal/operators/concatMapTo":158,"../internal/operators/count":159,"../internal/operators/debounce":160,"../internal/operators/debounceTime":161,"../internal/operators/defaultIfEmpty":162,"../internal/operators/delay":163,"../internal/operators/delayWhen":164,"../internal/operators/dematerialize":165,"../internal/operators/distinct":166,"../internal/operators/distinctUntilChanged":167,"../internal/operators/distinctUntilKeyChanged":168,"../internal/operators/elementAt":169,"../internal/operators/endWith":170,"../internal/operators/every":171,"../internal/operators/exhaust":172,"../internal/operators/exhaustMap":173,"../internal/operators/expand":174,"../internal/operators/filter":175,"../internal/operators/finalize":176,"../internal/operators/find":177,"../internal/operators/findIndex":178,"../internal/operators/first":179,"../internal/operators/groupBy":180,"../internal/operators/ignoreElements":181,"../internal/operators/isEmpty":182,"../internal/operators/last":183,"../internal/operators/map":184,"../internal/operators/mapTo":185,"../internal/operators/materialize":186,"../internal/operators/max":187,"../internal/operators/merge":188,"../internal/operators/mergeAll":189,"../internal/operators/mergeMap":190,"../internal/operators/mergeMapTo":191,"../internal/operators/mergeScan":192,"../internal/operators/min":193,"../internal/operators/multicast":194,"../internal/operators/observeOn":195,"../internal/operators/onErrorResumeNext":196,"../internal/operators/pairwise":197,"../internal/operators/partition":198,"../internal/operators/pluck":199,"../internal/operators/publish":200,"../internal/operators/publishBehavior":201,"../internal/operators/publishLast":202,"../internal/operators/publishReplay":203,"../internal/operators/race":204,"../internal/operators/reduce":205,"../internal/operators/refCount":206,"../internal/operators/repeat":207,"../internal/operators/repeatWhen":208,"../internal/operators/retry":209,"../internal/operators/retryWhen":210,"../internal/operators/sample":211,"../internal/operators/sampleTime":212,"../internal/operators/scan":213,"../internal/operators/sequenceEqual":214,"../internal/operators/share":215,"../internal/operators/shareReplay":216,"../internal/operators/single":217,"../internal/operators/skip":218,"../internal/operators/skipLast":219,"../internal/operators/skipUntil":220,"../internal/operators/skipWhile":221,"../internal/operators/startWith":222,"../internal/operators/subscribeOn":223,"../internal/operators/switchAll":224,"../internal/operators/switchMap":225,"../internal/operators/switchMapTo":226,"../internal/operators/take":227,"../internal/operators/takeLast":228,"../internal/operators/takeUntil":229,"../internal/operators/takeWhile":230,"../internal/operators/tap":231,"../internal/operators/throttle":232,"../internal/operators/throttleTime":233,"../internal/operators/throwIfEmpty":234,"../internal/operators/timeInterval":235,"../internal/operators/timeout":236,"../internal/operators/timeoutWith":237,"../internal/operators/timestamp":238,"../internal/operators/toArray":239,"../internal/operators/window":240,"../internal/operators/windowCount":241,"../internal/operators/windowTime":242,"../internal/operators/windowToggle":243,"../internal/operators/windowWhen":244,"../internal/operators/withLatestFrom":245,"../internal/operators/zip":246,"../internal/operators/zipAll":247}],301:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=i(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=f,this.end=p,e=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function u(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,r,n=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(r=t)[0])?(e.lastNeed=0,"�"):1<e.lastNeed&&1<r.length?128!=(192&r[1])?(e.lastNeed=1,"�"):2<e.lastNeed&&2<r.length&&128!=(192&r[2])?(e.lastNeed=2,"�"):void 0:void 0);return void 0!==e?e:this.lastNeed<=t.length?(t.copy(this.lastChar,n,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,n,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);var r=t.toString("utf16le",e);if(r){e=r.charCodeAt(r.length-1);if(55296<=e&&e<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function f(t,e){var r=(t.length-e)%3;return 0==r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function p(t){t=t&&t.length?this.write(t):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}(r.StringDecoder=s).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){t=t&&t.length?this.write(t):"";return this.lastNeed?t+"�":t},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=u(e[n]);if(0<=o)return 0<o&&(t.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if(0<=(o=u(e[n])))return 0<o&&(t.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if(0<=(o=u(e[n])))return 0<o&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;r=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":302}],302:[function(t,e,r){var n=t("buffer"),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,r),r.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");t=o(t);return void 0!==e?"string"==typeof r?t.fill(e,r):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:99}],303:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.WRITE=r.READ=r.Driver=void 0;var o=n(t("@babel/runtime/helpers/classCallCheck")),i=n(t("@babel/runtime/helpers/createClass")),s=n(t("@babel/runtime/helpers/inherits")),u=n(t("@babel/runtime/helpers/possibleConstructorReturn")),a=n(t("@babel/runtime/helpers/getPrototypeOf")),c=t("neo4j-driver-core"),l=n(t("./session-rx"));function f(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=(0,a.default)(r);return e=n?(t=(0,a.default)(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),(0,u.default)(this,e)}}var p=c.internal.constants.FETCH_ALL,t=c.driver.READ,h=c.driver.WRITE;r.WRITE=h,r.READ=t;c=function(t){(0,s.default)(r,t);var e=f(r);function r(){return(0,o.default)(this,r),e.apply(this,arguments)}return(0,i.default)(r,[{key:"rxSession",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.defaultAccessMode,r=t.bookmarks,n=t.database,o=t.fetchSize,t=t.impersonatedUser;return new l.default({session:this._newSession({defaultAccessMode:void 0===e?h:e,bookmarkOrBookmarks:r,database:void 0===n?"":n,impersonatedUser:t,reactive:!0,fetchSize:function(t,e){t=parseInt(t,10);{if(0<t||t===p)return t;if(0===t||t<0)throw new Error("The fetch size can only be a positive value or ".concat(p," for ALL. However fetchSize = ").concat(t));return e}}(o,this._config.fetchSize)}),config:this._config})}}]),r}(c.Driver);r.Driver=c,r.default=c},{"./session-rx":307,"@babel/runtime/helpers/classCallCheck":90,"@babel/runtime/helpers/createClass":91,"@babel/runtime/helpers/getPrototypeOf":92,"@babel/runtime/helpers/inherits":93,"@babel/runtime/helpers/interopRequireDefault":94,"@babel/runtime/helpers/possibleConstructorReturn":95,"neo4j-driver-core":60}],304:[function(w,t,S){!function(O){!function(){"use strict";var t=w("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(S,"__esModule",{value:!0}),S.driver=u,Object.defineProperty(S,"Driver",{enumerable:!0,get:function(){return a.Driver}}),Object.defineProperty(S,"Neo4jError",{enumerable:!0,get:function(){return r.Neo4jError}}),Object.defineProperty(S,"error",{enumerable:!0,get:function(){return r.error}}),Object.defineProperty(S,"Integer",{enumerable:!0,get:function(){return r.Integer}}),Object.defineProperty(S,"int",{enumerable:!0,get:function(){return r.int}}),Object.defineProperty(S,"isInt",{enumerable:!0,get:function(){return r.isInt}}),Object.defineProperty(S,"isPoint",{enumerable:!0,get:function(){return r.isPoint}}),Object.defineProperty(S,"Point",{enumerable:!0,get:function(){return r.Point}}),Object.defineProperty(S,"Date",{enumerable:!0,get:function(){return r.Date}}),Object.defineProperty(S,"DateTime",{enumerable:!0,get:function(){return r.DateTime}}),Object.defineProperty(S,"Duration",{enumerable:!0,get:function(){return r.Duration}}),Object.defineProperty(S,"isDate",{enumerable:!0,get:function(){return r.isDate}}),Object.defineProperty(S,"isDateTime",{enumerable:!0,get:function(){return r.isDateTime}}),Object.defineProperty(S,"isDuration",{enumerable:!0,get:function(){return r.isDuration}}),Object.defineProperty(S,"isLocalDateTime",{enumerable:!0,get:function(){return r.isLocalDateTime}}),Object.defineProperty(S,"isLocalTime",{enumerable:!0,get:function(){return r.isLocalTime}}),Object.defineProperty(S,"isTime",{enumerable:!0,get:function(){return r.isTime}}),Object.defineProperty(S,"LocalDateTime",{enumerable:!0,get:function(){return r.LocalDateTime}}),Object.defineProperty(S,"LocalTime",{enumerable:!0,get:function(){return r.LocalTime}}),Object.defineProperty(S,"Time",{enumerable:!0,get:function(){return r.Time}}),Object.defineProperty(S,"Node",{enumerable:!0,get:function(){return r.Node}}),Object.defineProperty(S,"Path",{enumerable:!0,get:function(){return r.Path}}),Object.defineProperty(S,"PathSegment",{enumerable:!0,get:function(){return r.PathSegment}}),Object.defineProperty(S,"Relationship",{enumerable:!0,get:function(){return r.Relationship}}),Object.defineProperty(S,"UnboundRelationship",{enumerable:!0,get:function(){return r.UnboundRelationship}}),Object.defineProperty(S,"Record",{enumerable:!0,get:function(){return r.Record}}),Object.defineProperty(S,"ResultSummary",{enumerable:!0,get:function(){return r.ResultSummary}}),Object.defineProperty(S,"Plan",{enumerable:!0,get:function(){return r.Plan}}),Object.defineProperty(S,"ProfiledPlan",{enumerable:!0,get:function(){return r.ProfiledPlan}}),Object.defineProperty(S,"QueryStatistics",{enumerable:!0,get:function(){return r.QueryStatistics}}),Object.defineProperty(S,"Notification",{enumerable:!0,get:function(){return r.Notification}}),Object.defineProperty(S,"ServerInfo",{enumerable:!0,get:function(){return r.ServerInfo}}),Object.defineProperty(S,"Result",{enumerable:!0,get:function(){return r.Result}}),Object.defineProperty(S,"auth",{enumerable:!0,get:function(){return r.auth}}),Object.defineProperty(S,"Session",{enumerable:!0,get:function(){return r.Session}}),Object.defineProperty(S,"Transaction",{enumerable:!0,get:function(){return r.Transaction}}),Object.defineProperty(S,"RxSession",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(S,"RxTransaction",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(S,"RxResult",{enumerable:!0,get:function(){return i.default}}),S.default=S.temporal=S.spatial=S.session=S.types=S.logging=S.integer=void 0;var a=w("./driver"),e=t(w("./version")),r=w("neo4j-driver-core"),c=w("neo4j-driver-bolt-connection"),n=t(w("./session-rx")),o=t(w("./transaction-rx")),i=t(w("./result-rx")),s=r.internal.util,l=s.ENCRYPTION_ON,f=(s.ENCRYPTION_OFF,s.assertString),p=s.isEmptyObjectOrNull,h=r.internal.serverAddress.ServerAddress,d=r.internal.urlUtil;function u(t,o){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};f(t,"Bolt URL");var r,i=d.parseDatabaseUrl(t),n=!1,s=!1;switch(i.scheme){case"bolt":break;case"bolt+s":s=!0,r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":s=!0,r="TRUST_ALL_CERTIFICATES";break;case"neo4j":n=!0;break;case"neo4j+s":r="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",n=s=!0;break;case"neo4j+ssc":r="TRUST_ALL_CERTIFICATES",n=s=!0;break;default:throw new Error("Unknown scheme: ".concat(i.scheme))}if(s){if("encrypted"in e||"trust"in e)throw new Error("Encryption/trust can only be configured either through URL or config, not both");e.encrypted=l,e.trust=r}(o=o||{}).scheme=o.scheme||"none",e.userAgent=e.userAgent||_;var u=h.fromUrl(i.hostAndPort);return new a.Driver({address:u,typename:n?"Routing":"Direct",routing:n},e,function(){{if(n)return function(t,e,r,n){return new c.RoutingConnectionProvider({id:t,config:e,log:r,hostNameResolver:n,authToken:o,address:u,userAgent:e.userAgent,routingContext:i.query})};if(!p(i.query))throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(t,"'"));return function(t,e,r){return new c.DirectConnectionProvider({id:t,config:e,log:r,authToken:o,address:u,userAgent:e.userAgent})}}}())}var b,_="neo4j-javascript/"+e.default,y={console:(b=function(t){return{level:t,logger:function(t,e){return console.log("".concat(O.Date.now()," ").concat(t.toUpperCase()," ").concat(e))}}},v.toString=function(){return b.toString()},v)};function v(t){return b.apply(this,arguments)}S.logging=y;var m={Node:r.Node,Relationship:r.Relationship,UnboundRelationship:r.UnboundRelationship,PathSegment:r.PathSegment,Path:r.Path,Result:r.Result,ResultSummary:r.ResultSummary,Record:r.Record,Point:r.Point,Date:r.Date,DateTime:r.DateTime,Duration:r.Duration,LocalDateTime:r.LocalDateTime,LocalTime:r.LocalTime,Time:r.Time,Integer:r.Integer};S.types=m;var g={READ:a.READ,WRITE:a.WRITE};S.session=g;t={toNumber:r.toNumber,toString:r.toString,inSafeRange:r.inSafeRange};S.integer=t;s={isPoint:r.isPoint};S.spatial=s;e={isDuration:r.isDuration,isLocalTime:r.isLocalTime,isTime:r.isTime,isDate:r.isDate,isLocalDateTime:r.isLocalDateTime,isDateTime:r.isDateTime};S.temporal=e;e={driver:u,int:r.int,isInt:r.isInt,isPoint:r.isPoint,isDuration:r.isDuration,isLocalTime:r.isLocalTime,isTime:r.isTime,isDate:r.isDate,isLocalDateTime:r.isLocalDateTime,isDateTime:r.isDateTime,integer:t,Neo4jError:r.Neo4jError,auth:r.auth,logging:y,types:m,session:g,error:r.error,spatial:s,temporal:e,Driver:a.Driver,Session:r.Session,Transaction:r.Transaction,Result:r.Result,RxSession:n.default,RxTransaction:o.default,RxResult:i.default,ResultSummary:r.ResultSummary,Plan:r.Plan,ProfiledPlan:r.ProfiledPlan,QueryStatistics:r.QueryStatistics,Notification:r.Notification,ServerInfo:r.ServerInfo,Record:r.Record,Node:r.Node,Relationship:r.Relationship,UnboundRelationship:r.UnboundRelationship,Path:r.Path,PathSegment:r.PathSegment,Point:r.Point,Integer:r.Integer,Duration:r.Duration,LocalTime:r.LocalTime,Time:r.Time,Date:r.Date,LocalDateTime:r.LocalDateTime,DateTime:r.DateTime};S.default=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./driver":303,"./result-rx":306,"./session-rx":307,"./transaction-rx":308,"./version":309,"@babel/runtime/helpers/interopRequireDefault":94,"neo4j-driver-bolt-connection":38,"neo4j-driver-core":60}],305:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var s=n(t("@babel/runtime/helpers/classCallCheck")),o=n(t("@babel/runtime/helpers/createClass")),u=t("neo4j-driver-core"),a=t("rxjs"),c=t("rxjs/operators"),l=(u.internal.logger.Logger,u.internal.retryStrategy.canRetryOn),f=u.error.SERVICE_UNAVAILABLE,p=(u.error.SESSION_EXPIRED,3e4),h=1e3,d=2,b=.2;function _(t,e){return t||0===t?t:e}r.default=function(){function i(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.maxRetryTimeout,r=void 0===e?p:e,n=t.initialDelay,o=void 0===n?h:n,e=t.delayMultiplier,n=void 0===e?d:e,e=t.delayJitter,e=void 0===e?b:e,t=t.logger,t=void 0===t?null:t;(0,s.default)(this,i),this._maxRetryTimeout=_(r,p),this._initialDelay=_(o,h),this._delayMultiplier=_(n,d),this._delayJitter=_(e,b),this._logger=t}return(0,o.default)(i,[{key:"retry",value:function(t){var s=this;return t.pipe((0,c.retryWhen)(function(t){var r=[],n=Date.now(),o=1,i=s._initialDelay;return t.pipe((0,c.flatMap)(function(t){if(!l(t))return(0,a.throwError)(t);if(r.push(t),2<=o&&Date.now()-n>=s._maxRetryTimeout){var e=(0,u.newError)("Failed after retried for ".concat(o," times in ").concat(s._maxRetryTimeout," ms. Make sure that your database is online and retry again."),f);return e.seenErrors=r,(0,a.throwError)(e)}e=s._computeNextDelay(i);return i*=s._delayMultiplier,o++,s._logger&&s._logger.warn("Transaction failed and will be retried in ".concat(e)),(0,a.of)(1).pipe((0,c.delay)(e))}))}))}},{key:"_computeNextDelay",value:function(t){var e=t*this._delayJitter;return t-e+2*e*Math.random()}}]),i}()},{"@babel/runtime/helpers/classCallCheck":90,"@babel/runtime/helpers/createClass":91,"@babel/runtime/helpers/interopRequireDefault":94,"neo4j-driver-core":60,rxjs:101,"rxjs/operators":300}],306:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t("@babel/runtime/helpers/classCallCheck")),i=n(t("@babel/runtime/helpers/createClass")),s=t("neo4j-driver-core"),u=t("rxjs"),a=t("rxjs/operators"),c={READY:0,STREAMING:1,COMPLETED:2};r.default=function(){function e(t){(0,o.default)(this,e);t=t.pipe((0,a.publishReplay)(1),(0,a.refCount)());this._result=t,this._keys=t.pipe((0,a.flatMap)(function(t){return(0,u.from)(t.keys())}),(0,a.publishReplay)(1),(0,a.refCount)()),this._records=new u.Subject,this._summary=new u.ReplaySubject,this._state=c.READY}return(0,i.default)(e,[{key:"keys",value:function(){return this._keys}},{key:"records",value:function(){var r=this;return this._result.pipe((0,a.flatMap)(function(e){return new u.Observable(function(t){return r._startStreaming({result:e,recordsObserver:t})})}))}},{key:"consume",value:function(){var r=this;return this._result.pipe((0,a.flatMap)(function(e){return new u.Observable(function(t){return r._startStreaming({result:e,summaryObserver:t})})}))}},{key:"_startStreaming",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=t.result,n=t.recordsObserver,n=void 0===n?null:n,t=t.summaryObserver,t=void 0===t?null:t,o=[];return t&&o.push(this._summary.subscribe(t)),this._state<c.STREAMING?(this._state=c.STREAMING,n&&o.push(this._records.subscribe(n)),o.push({unsubscribe:function(){r._cancel&&r._cancel()}}),0===this._records.observers.length&&r._cancel(),r.subscribe({onNext:function(t){e._records.next(t)},onCompleted:function(t){e._records.complete(),e._summary.next(t),e._summary.complete(),e._state=c.COMPLETED},onError:function(t){e._records.error(t),e._summary.error(t),e._state=c.COMPLETED}})):n&&n.error((0,s.newError)("Streaming has already started/consumed with a previous records or summary subscription.")),function(){o.forEach(function(t){return t.unsubscribe()})}}}]),e}()},{"@babel/runtime/helpers/classCallCheck":90,"@babel/runtime/helpers/createClass":91,"@babel/runtime/helpers/interopRequireDefault":94,"neo4j-driver-core":60,rxjs:101,"rxjs/operators":300}],307:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t("@babel/runtime/helpers/classCallCheck")),i=n(t("@babel/runtime/helpers/createClass")),s=t("rxjs"),u=t("rxjs/operators"),a=n(t("./result-rx")),c=t("neo4j-driver-core"),l=n(t("./transaction-rx")),f=n(t("./internal/retry-logic-rx")),t=c.internal.constants,p=t.ACCESS_MODE_READ,h=t.ACCESS_MODE_WRITE,d=c.internal.txConfig.TxConfig;r.default=function(){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.session,t=t.config;(0,o.default)(this,r),this._session=e,this._retryLogic=function(t){t=t&&t.maxTransactionRetryTime?t.maxTransactionRetryTime:null;return new f.default({maxRetryTimeout:t})}(t)}return(0,i.default)(r,[{key:"run",value:function(t,r,n){var o=this;return new a.default(new s.Observable(function(e){try{e.next(o._session.run(t,r,n)),e.complete()}catch(t){e.error(t)}return function(){}}))}},{key:"beginTransaction",value:function(t){return this._beginTransaction(this._session._mode,t)}},{key:"readTransaction",value:function(t,e){return this._runTransaction(p,t,e)}},{key:"writeTransaction",value:function(t,e){return this._runTransaction(h,t,e)}},{key:"close",value:function(){var t=this;return new s.Observable(function(e){t._session.close().then(function(){e.complete()}).catch(function(t){return e.error(t)})})}},{key:"lastBookmark",value:function(){return this._session.lastBookmark()}},{key:"_beginTransaction",value:function(t,e){var r=this,n=d.empty();return e&&(n=new d(e)),new s.Observable(function(e){try{e.next(new l.default(r._session._beginTransaction(t,n))),e.complete()}catch(t){e.error(t)}return function(){}})}},{key:"_runTransaction",value:function(t,r,e){d.empty();return e&&new d(e),this._retryLogic.retry(this._beginTransaction(t,e).pipe((0,u.flatMap)(function(e){return(0,s.defer)(function(){try{return r(e)}catch(t){return(0,s.throwError)(t)}}).pipe((0,u.catchError)(function(t){return e.rollback().pipe((0,u.concat)((0,s.throwError)(t)))}),(0,u.concat)(e.commit()))})))}}]),r}()},{"./internal/retry-logic-rx":305,"./result-rx":306,"./transaction-rx":308,"@babel/runtime/helpers/classCallCheck":90,"@babel/runtime/helpers/createClass":91,"@babel/runtime/helpers/interopRequireDefault":94,"neo4j-driver-core":60,rxjs:101,"rxjs/operators":300}],308:[function(t,e,r){"use strict";var n=t("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=n(t("@babel/runtime/helpers/classCallCheck")),i=n(t("@babel/runtime/helpers/createClass")),s=t("rxjs"),u=n(t("./result-rx"));n(t("neo4j-driver-core"));r.default=function(){function e(t){(0,o.default)(this,e),this._txc=t}return(0,i.default)(e,[{key:"run",value:function(t,r){var n=this;return new u.default(new s.Observable(function(e){try{e.next(n._txc.run(t,r)),e.complete()}catch(t){e.error(t)}return function(){}}))}},{key:"commit",value:function(){var t=this;return new s.Observable(function(e){t._txc.commit().then(function(){e.complete()}).catch(function(t){return e.error(t)})})}},{key:"rollback",value:function(){var t=this;return new s.Observable(function(e){t._txc.rollback().then(function(){e.complete()}).catch(function(t){return e.error(t)})})}},{key:"close",value:function(){var t=this;return new s.Observable(function(e){t._txc.close().then(function(){e.complete()}).catch(function(t){return e.error(t)})})}}]),e}()},{"./result-rx":306,"@babel/runtime/helpers/classCallCheck":90,"@babel/runtime/helpers/createClass":91,"@babel/runtime/helpers/interopRequireDefault":94,"neo4j-driver-core":60,rxjs:101}],309:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default="4.4.8"},{}]},{},[304])(304)});
1
+ !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).neo4j=e()}(function(){return function n(o,i,u){function a(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=i[t]={exports:{}},o[t][0].call(r.exports,function(e){return a(o[t][1][e]||e)},r,r.exports,n,o,i,u)}return i[t].exports}for(var s="function"==typeof require&&require,e=0;e<u.length;e++)a(u[e]);return a}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertImpersonatedUserIsEmpty=r.assertTxConfigIsEmpty=r.assertDatabaseIsEmpty=void 0;var n=e("neo4j-driver-core");r.assertTxConfigIsEmpty=function(e,t,r){if(void 0===t&&(t=function(){}),e&&!e.isEmpty())throw t((e=(0,n.newError)("Driver is connected to the database that does not support transaction configuration. Please upgrade to neo4j 3.5.0 or later in order to use this functionality")).message),r.onError(e),e},r.assertDatabaseIsEmpty=function(e,t,r){if(void 0===t&&(t=function(){}),e)throw t((e=(0,n.newError)("Driver is connected to the database that does not support multiple databases. Please upgrade to neo4j 4.0.0 or later in order to use this functionality")).message),r.onError(e),e},r.assertImpersonatedUserIsEmpty=function(e,t,r){if(void 0===t&&(t=function(){}),e)throw t((t=(0,n.newError)("Driver is connected to the database that does not support user impersonation. Please upgrade to neo4j 4.4.0 or later in order to use this functionality. "+"Trying to impersonate ".concat(e,"."))).message),r.onError(t),t}},{"neo4j-driver-core":75}],2:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},h=(Object.defineProperty(r,"__esModule",{value:!0}),e("./bolt-protocol-util")),o=e("../packstream"),b=n(e("./request-message")),y=e("./stream-observers"),i=e("neo4j-driver-core"),u=n(e("./bolt-protocol-v1.transformer")),a=n(e("./transformer")),s=i.internal.bookmarks.Bookmarks,n=i.internal.constants,c=n.ACCESS_MODE_WRITE,l=n.BOLT_PROTOCOL_V1,f=(i.internal.logger.Logger,i.internal.txConfig.TxConfig),e=(Object.defineProperty(p.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new a.default(Object.values(u.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"version",{get:function(){return l},enumerable:!1,configurable:!0}),p.prototype.packer=function(){return this._packer},p.prototype.packable=function(e){return this._packer.packable(e,this.transformer.toStructure)},p.prototype.unpacker=function(){return this._unpacker},p.prototype.unpack=function(e){return this._unpacker.unpack(e,this.transformer.fromStructure)},p.prototype.transformMetadata=function(e){return e},p.prototype.initialize=function(e){var t=this,e=void 0===e?{}:e,r=e.userAgent,n=e.authToken,o=e.onError,i=e.onComplete,e=new y.LoginObserver({onError:function(e){return t._onLoginError(e,o)},onCompleted:function(e){return t._onLoginCompleted(e,i)}});return this.write(b.default.init(r,n),e,!0),e},p.prototype.prepareToClose=function(){},p.prototype.beginTransaction=function(e){var e=void 0===e?{}:e,t=e.bookmarks,r=e.txConfig,n=e.database,o=e.mode,i=e.impersonatedUser,u=e.beforeError,a=e.afterError,s=e.beforeComplete,e=e.afterComplete;return this.run("BEGIN",t?t.asBeginTransactionParameters():{},{bookmarks:t,txConfig:r,database:n,mode:o,impersonatedUser:i,beforeError:u,afterError:a,beforeComplete:s,afterComplete:e,flush:!1})},p.prototype.commitTransaction=function(e){var e=void 0===e?{}:e,t=e.beforeError,r=e.afterError,n=e.beforeComplete,e=e.afterComplete;return this.run("COMMIT",{},{bookmarks:s.empty(),txConfig:f.empty(),mode:c,beforeError:t,afterError:r,beforeComplete:n,afterComplete:e})},p.prototype.rollbackTransaction=function(e){var e=void 0===e?{}:e,t=e.beforeError,r=e.afterError,n=e.beforeComplete,e=e.afterComplete;return this.run("ROLLBACK",{},{bookmarks:s.empty(),txConfig:f.empty(),mode:c,beforeError:t,afterError:r,beforeComplete:n,afterComplete:e})},p.prototype.run=function(e,t,r){var r=void 0===r?{}:r,n=(r.bookmarks,r.txConfig),o=r.database,i=(r.mode,r.impersonatedUser),u=r.beforeKeys,a=r.afterKeys,s=r.beforeError,c=r.afterError,l=r.beforeComplete,f=r.afterComplete,p=r.flush,p=void 0===p||p,d=r.highRecordWatermark,d=void 0===d?Number.MAX_VALUE:d,r=r.lowRecordWatermark,r=void 0===r?Number.MAX_VALUE:r,u=new y.ResultStreamObserver({server:this._server,beforeKeys:u,afterKeys:a,beforeError:s,afterError:c,beforeComplete:l,afterComplete:f,highRecordWatermark:d,lowRecordWatermark:r});return(0,h.assertTxConfigIsEmpty)(n,this._onProtocolError,u),(0,h.assertDatabaseIsEmpty)(o,this._onProtocolError,u),(0,h.assertImpersonatedUserIsEmpty)(i,this._onProtocolError,u),this.write(b.default.run(e,t),u,!1),this.write(b.default.pullAll(),u,p),u},Object.defineProperty(p.prototype,"currentFailure",{get:function(){return this._responseHandler.currentFailure},enumerable:!1,configurable:!0}),p.prototype.reset=function(e){var e=void 0===e?{}:e,t=e.onError,e=e.onComplete,t=new y.ResetObserver({onProtocolError:this._onProtocolError,onError:t,onComplete:e});return this.write(b.default.reset(),t,!0),t},p.prototype._createPacker=function(e){return new o.v1.Packer(e)},p.prototype._createUnpacker=function(e,t){return new o.v1.Unpacker(e,t)},p.prototype.write=function(e,t,r){this.queueObserverIfProtocolIsNotBroken(t)&&(this._log.isDebugEnabled()&&this._log.debug("C: ".concat(e)),this._lastMessageSignature=e.signature,t=new o.structure.Structure(e.signature,e.fields),this.packable(t)(),this._chunker.messageBoundary(),r&&this._chunker.flush())},p.prototype.isLastMessageLogin=function(){return 1===this._lastMessageSignature},p.prototype.isLastMessageReset=function(){return 15===this._lastMessageSignature},p.prototype.notifyFatalError=function(e){return this._fatalError=e,this._responseHandler._notifyErrorToObservers(e)},p.prototype.updateCurrentObserver=function(){return this._responseHandler._updateCurrentObserver()},p.prototype.hasOngoingObservableRequests=function(){return this._responseHandler.hasOngoingObservableRequests()},p.prototype.queueObserverIfProtocolIsNotBroken=function(e){return this.isBroken()?(this.notifyFatalErrorToObserver(e),!1):this._responseHandler._queueObserver(e)},p.prototype.isBroken=function(){return!!this._fatalError},p.prototype.notifyFatalErrorToObserver=function(e){e&&e.onError&&e.onError(this._fatalError)},p.prototype.resetFailure=function(){this._responseHandler._resetFailure()},p.prototype._onLoginCompleted=function(e,t){var r;e&&(r=e.server,this._server.version||(this._server.version=r)),t&&t(e)},p.prototype._onLoginError=function(e,t){this._onProtocolError(e.message),t&&t(e)},p);function p(e,t,r,n,o,i){var r=void 0===r?{}:r,u=r.disableLosslessIntegers,r=r.useBigInt;void 0===n&&(n=function(){return null}),this._server=e||{},this._chunker=t,this._packer=this._createPacker(t),this._unpacker=this._createUnpacker(u,r),this._responseHandler=n(this),this._log=o,this._onProtocolError=i,this._fatalError=null,this._lastMessageSignature=null,this._config={disableLosslessIntegers:u,useBigInt:r}}r.default=e},{"../packstream":58,"./bolt-protocol-util":1,"./bolt-protocol-v1.transformer":3,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],3:[function(e,t,r){"use strict";var l=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},f=(Object.defineProperty(r,"__esModule",{value:!0}),e("neo4j-driver-core")),p=e("../packstream"),n=e("./transformer"),o=f.error.PROTOCOL_ERROR,i=78,u=3,a=82,s=5,c=114,d=3,h=80,b=3;r.default={createNodeTransformer:function(){return new n.TypeTransformer({signature:i,isTypeInstance:function(e){return e instanceof f.Node},toStructure:function(e){throw(0,f.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(e),o)},fromStructure:function(e){p.structure.verifyStructSize("Node",u,e.size);var e=l(e.fields,3),t=e[0],r=e[1],e=e[2];return new f.Node(t,r,e)}})},createRelationshipTransformer:function(){return new n.TypeTransformer({signature:a,isTypeInstance:function(e){return e instanceof f.Relationship},toStructure:function(e){throw(0,f.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(e),o)},fromStructure:function(e){p.structure.verifyStructSize("Relationship",s,e.size);var e=l(e.fields,5),t=e[0],r=e[1],n=e[2],o=e[3],e=e[4];return new f.Relationship(t,r,n,o,e)}})},createUnboundRelationshipTransformer:function(){return new n.TypeTransformer({signature:c,isTypeInstance:function(e){return e instanceof f.UnboundRelationship},toStructure:function(e){throw(0,f.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(e),o)},fromStructure:function(e){p.structure.verifyStructSize("UnboundRelationship",d,e.size);var e=l(e.fields,3),t=e[0],r=e[1],e=e[2];return new f.UnboundRelationship(t,r,e)}})},createPathTransformer:function(){return new n.TypeTransformer({signature:h,isTypeInstance:function(e){return e instanceof f.Path},toStructure:function(e){throw(0,f.newError)("It is not allowed to pass paths in query parameters, given: ".concat(e),o)},fromStructure:function(e){p.structure.verifyStructSize("Path",b,e.size);for(var e=l(e.fields,3),t=e[0],r=e[1],n=e[2],o=[],i=t[0],u=0;u<n.length;u+=2){var a=t[n[u+1]],s=(0,f.toNumber)(n[u]),c=void 0;0<s?(c=r[s-1])instanceof f.UnboundRelationship&&(r[s-1]=c=c.bindTo(i,a)):(c=r[-s-1])instanceof f.UnboundRelationship&&(r[-s-1]=c=c.bindTo(a,i)),o.push(new f.PathSegment(i,c,a)),i=a}return new f.Path(t[0],t[t.length-1],o)}})}}},{"../packstream":58,"./transformer":29,"neo4j-driver-core":75}],4:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./bolt-protocol-v1"))),s=u(e("../packstream")),c=e("neo4j-driver-core"),l=u(e("./bolt-protocol-v2.transformer")),f=u(e("./transformer")),p=c.internal.constants.BOLT_PROTOCOL_V2,u=(o=a.default,i(d,o),d.prototype._createPacker=function(e){return new s.default.Packer(e)},d.prototype._createUnpacker=function(e,t){return new s.default.Unpacker(e,t)},Object.defineProperty(d.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new f.default(Object.values(l.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"version",{get:function(){return p},enumerable:!1,configurable:!0}),d);function d(){return null!==o&&o.apply(this,arguments)||this}r.default=u},{"../packstream":58,"./bolt-protocol-v1":2,"./bolt-protocol-v2.transformer":5,"./transformer":29,"neo4j-driver-core":75}],5:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),e("neo4j-driver-core")),u=e("../packstream"),s=e("./transformer"),c=e("./temporal-factory"),o=o(e("./bolt-protocol-v1.transformer")),e=a.internal.temporalUtil,l=e.dateToEpochDay,f=e.localDateTimeToEpochSecond,p=e.localTimeToNanoOfDay,d=88,h=3,b=89,y=4,v=69,m=4,_=116,g=1,O=84,w=2,S=68,E=1,P=100,j=2,T=70,C=3,k=102,I=3;function A(e,t,r){if(!t&&!r)return e;var n,o,i,u=Object.create(Object.getPrototypeOf(e));for(n in e)!0===Object.prototype.hasOwnProperty.call(e,n)&&(o=e[n],u[n]=(0,a.isInt)(o)?(i=o,r?i.toBigInt():i.toNumberOrInfinity()):o);return Object.freeze(u),u}r.default=n(n({},o.default),{createPoint2DTransformer:function(){return new s.TypeTransformer({signature:d,isTypeInstance:function(e){return(0,a.isPoint)(e)&&(null===e.z||void 0===e.z)},toStructure:function(e){return new u.structure.Structure(d,[(0,a.int)(e.srid),e.x,e.y])},fromStructure:function(e){u.structure.verifyStructSize("Point2D",h,e.size);var e=i(e.fields,3),t=e[0],r=e[1],e=e[2];return new a.Point(t,r,e,void 0)}})},createPoint3DTransformer:function(){return new s.TypeTransformer({signature:b,isTypeInstance:function(e){return(0,a.isPoint)(e)&&null!==e.z&&void 0!==e.z},toStructure:function(e){return new u.structure.Structure(b,[(0,a.int)(e.srid),e.x,e.y,e.z])},fromStructure:function(e){u.structure.verifyStructSize("Point3D",y,e.size);var e=i(e.fields,4),t=e[0],r=e[1],n=e[2],e=e[3];return new a.Point(t,r,n,e)}})},createDurationTransformer:function(){return new s.TypeTransformer({signature:v,isTypeInstance:a.isDuration,toStructure:function(e){var t=(0,a.int)(e.months),r=(0,a.int)(e.days),n=(0,a.int)(e.seconds),e=(0,a.int)(e.nanoseconds);return new u.structure.Structure(v,[t,r,n,e])},fromStructure:function(e){u.structure.verifyStructSize("Duration",m,e.size);var e=i(e.fields,4),t=e[0],r=e[1],n=e[2],e=e[3];return new a.Duration(t,r,n,e)}})},createLocalTimeTransformer:function(e){var t=e.disableLosslessIntegers,r=e.useBigInt;return new s.TypeTransformer({signature:_,isTypeInstance:a.isLocalTime,toStructure:function(e){e=p(e.hour,e.minute,e.second,e.nanosecond);return new u.structure.Structure(_,[e])},fromStructure:function(e){u.structure.verifyStructSize("LocalTime",g,e.size);e=i(e.fields,1)[0];return A((0,c.nanoOfDayToLocalTime)(e),t,r)}})},createTimeTransformer:function(e){var r=e.disableLosslessIntegers,n=e.useBigInt;return new s.TypeTransformer({signature:O,isTypeInstance:a.isTime,toStructure:function(e){var t=p(e.hour,e.minute,e.second,e.nanosecond),e=(0,a.int)(e.timeZoneOffsetSeconds);return new u.structure.Structure(O,[t,e])},fromStructure:function(e){u.structure.verifyStructSize("Time",w,e.size);var e=i(e.fields,2),t=e[0],e=e[1],t=(0,c.nanoOfDayToLocalTime)(t);return A(new a.Time(t.hour,t.minute,t.second,t.nanosecond,e),r,n)}})},createDateTransformer:function(e){var t=e.disableLosslessIntegers,r=e.useBigInt;return new s.TypeTransformer({signature:S,isTypeInstance:a.isDate,toStructure:function(e){e=l(e.year,e.month,e.day);return new u.structure.Structure(S,[e])},fromStructure:function(e){u.structure.verifyStructSize("Date",E,e.size);e=i(e.fields,1)[0];return A((0,c.epochDayToDate)(e),t,r)}})},createLocalDateTimeTransformer:function(e){var r=e.disableLosslessIntegers,n=e.useBigInt;return new s.TypeTransformer({signature:P,isTypeInstance:a.isLocalDateTime,toStructure:function(e){var t=f(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond),e=(0,a.int)(e.nanosecond);return new u.structure.Structure(P,[t,e])},fromStructure:function(e){u.structure.verifyStructSize("LocalDateTime",j,e.size);var e=i(e.fields,2),t=e[0],e=e[1];return A((0,c.epochSecondAndNanoToLocalDateTime)(t,e),r,n)}})},createDateTimeWithZoneIdTransformer:function(e){var n=e.disableLosslessIntegers,o=e.useBigInt;return new s.TypeTransformer({signature:k,isTypeInstance:function(e){return(0,a.isDateTime)(e)&&null!=e.timeZoneId},toStructure:function(e){var t=f(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond),r=(0,a.int)(e.nanosecond),e=e.timeZoneId;return new u.structure.Structure(k,[t,r,e])},fromStructure:function(e){u.structure.verifyStructSize("DateTimeWithZoneId",I,e.size);var e=i(e.fields,3),t=e[0],r=e[1],e=e[2],t=(0,c.epochSecondAndNanoToLocalDateTime)(t,r);return A(new a.DateTime(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond,null,e),n,o)}})},createDateTimeWithOffsetTransformer:function(e){var n=e.disableLosslessIntegers,o=e.useBigInt;return new s.TypeTransformer({signature:T,isTypeInstance:function(e){return(0,a.isDateTime)(e)&&null==e.timeZoneId},toStructure:function(e){var t=f(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond),r=(0,a.int)(e.nanosecond),e=(0,a.int)(e.timeZoneOffsetSeconds);return new u.structure.Structure(T,[t,r,e])},fromStructure:function(e){u.structure.verifyStructSize("DateTimeWithZoneOffset",C,e.size);var e=i(e.fields,3),t=e[0],r=e[1],e=e[2],t=(0,c.epochSecondAndNanoToLocalDateTime)(t,r);return A(new a.DateTime(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond,e,null),n,o)}})}})},{"../packstream":58,"./bolt-protocol-v1.transformer":3,"./temporal-factory":28,"./transformer":29,"neo4j-driver-core":75}],6:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),a(e("./bolt-protocol-v2"))),y=a(e("./request-message")),v=e("./bolt-protocol-util"),m=e("./stream-observers"),c=a(e("./bolt-protocol-v3.transformer")),l=a(e("./transformer")),a=e("neo4j-driver-core"),f=(a.internal.bookmarks.Bookmarks,a.internal.constants.BOLT_PROTOCOL_V3),p=a.internal.txConfig.TxConfig,d="context",h="CALL dbms.cluster.routing.getRoutingTable($".concat(d,")"),b=new m.StreamObserver,e=(o=s.default,i(_,o),Object.defineProperty(_.prototype,"version",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new l.default(Object.values(c.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),_.prototype.transformMetadata=function(e){return"t_first"in e&&(e.result_available_after=e.t_first,delete e.t_first),"t_last"in e&&(e.result_consumed_after=e.t_last,delete e.t_last),e},_.prototype.initialize=function(e){var t=this,e=void 0===e?{}:e,r=e.userAgent,n=e.authToken,o=e.onError,i=e.onComplete,e=new m.LoginObserver({onError:function(e){return t._onLoginError(e,o)},onCompleted:function(e){return t._onLoginCompleted(e,i)}});return this.write(y.default.hello(r,n),e,!0),e},_.prototype.prepareToClose=function(){this.write(y.default.goodbye(),b,!0)},_.prototype.beginTransaction=function(e){var e=void 0===e?{}:e,t=e.bookmarks,r=e.txConfig,n=e.database,o=e.impersonatedUser,i=e.mode,u=e.beforeError,a=e.afterError,s=e.beforeComplete,e=e.afterComplete,u=new m.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:s,afterComplete:e});return u.prepareToHandleSingleResponse(),(0,v.assertDatabaseIsEmpty)(n,this._onProtocolError,u),(0,v.assertImpersonatedUserIsEmpty)(o,this._onProtocolError,u),this.write(y.default.begin({bookmarks:t,txConfig:r,mode:i}),u,!0),u},_.prototype.commitTransaction=function(e){var e=void 0===e?{}:e,t=e.beforeError,r=e.afterError,n=e.beforeComplete,e=e.afterComplete,t=new m.ResultStreamObserver({server:this._server,beforeError:t,afterError:r,beforeComplete:n,afterComplete:e});return t.prepareToHandleSingleResponse(),this.write(y.default.commit(),t,!0),t},_.prototype.rollbackTransaction=function(e){var e=void 0===e?{}:e,t=e.beforeError,r=e.afterError,n=e.beforeComplete,e=e.afterComplete,t=new m.ResultStreamObserver({server:this._server,beforeError:t,afterError:r,beforeComplete:n,afterComplete:e});return t.prepareToHandleSingleResponse(),this.write(y.default.rollback(),t,!0),t},_.prototype.run=function(e,t,r){var r=void 0===r?{}:r,n=r.bookmarks,o=r.txConfig,i=r.database,u=r.impersonatedUser,a=r.mode,s=r.beforeKeys,c=r.afterKeys,l=r.beforeError,f=r.afterError,p=r.beforeComplete,d=r.afterComplete,h=r.flush,h=void 0===h||h,b=r.highRecordWatermark,b=void 0===b?Number.MAX_VALUE:b,r=r.lowRecordWatermark,r=void 0===r?Number.MAX_VALUE:r,s=new m.ResultStreamObserver({server:this._server,beforeKeys:s,afterKeys:c,beforeError:l,afterError:f,beforeComplete:p,afterComplete:d,highRecordWatermark:b,lowRecordWatermark:r});return(0,v.assertDatabaseIsEmpty)(i,this._onProtocolError,s),(0,v.assertImpersonatedUserIsEmpty)(u,this._onProtocolError,s),this.write(y.default.runWithMetadata(e,t,{bookmarks:n,txConfig:o,mode:a}),s,!1),this.write(y.default.pullAll(),s,h),s},_.prototype.requestRoutingInformation=function(e){var t,r=e.routingContext,n=e.sessionContext,n=void 0===n?{}:n,o=e.onError,e=e.onCompleted,r=this.run(h,((t={})[d]=void 0===r?{}:r,t),u(u({},n),{txConfig:p.empty()}));return new m.ProcedureRouteObserver({resultObserver:r,onProtocolError:this._onProtocolError,onError:o,onCompleted:e})},_);function _(){return null!==o&&o.apply(this,arguments)||this}r.default=e},{"./bolt-protocol-util":1,"./bolt-protocol-v2":4,"./bolt-protocol-v3.transformer":7,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],7:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v2.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v2.transformer":5}],8:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),a(e("./bolt-protocol-v3"))),m=a(e("./request-message")),_=e("./bolt-protocol-util"),g=e("./stream-observers"),c=a(e("./bolt-protocol-v4x0.transformer")),l=a(e("./transformer")),a=e("neo4j-driver-core"),e=(a.internal.bookmarks.Bookmarks,a.internal.constants),f=e.BOLT_PROTOCOL_V4_0,O=e.FETCH_ALL,p=a.internal.txConfig.TxConfig,d="context",h="database",b="CALL dbms.routing.getRoutingTable($".concat(d,", $").concat(h,")"),e=(o=s.default,i(y,o),Object.defineProperty(y.prototype,"version",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new l.default(Object.values(c.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),y.prototype.beginTransaction=function(e){var e=void 0===e?{}:e,t=e.bookmarks,r=e.txConfig,n=e.database,o=e.impersonatedUser,i=e.mode,u=e.beforeError,a=e.afterError,s=e.beforeComplete,e=e.afterComplete,u=new g.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:s,afterComplete:e});return u.prepareToHandleSingleResponse(),(0,_.assertImpersonatedUserIsEmpty)(o,this._onProtocolError,u),this.write(m.default.begin({bookmarks:t,txConfig:r,database:n,mode:i}),u,!0),u},y.prototype.run=function(e,t,r){var r=void 0===r?{}:r,n=r.bookmarks,o=r.txConfig,i=r.database,u=r.impersonatedUser,a=r.mode,s=r.beforeKeys,c=r.afterKeys,l=r.beforeError,f=r.afterError,p=r.beforeComplete,d=r.afterComplete,h=r.flush,h=void 0===h||h,b=r.reactive,b=void 0!==b&&b,y=r.fetchSize,y=void 0===y?O:y,v=r.highRecordWatermark,v=void 0===v?Number.MAX_VALUE:v,r=r.lowRecordWatermark,r=void 0===r?Number.MAX_VALUE:r,s=new g.ResultStreamObserver({server:this._server,reactive:b,fetchSize:y,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:s,afterKeys:c,beforeError:l,afterError:f,beforeComplete:p,afterComplete:d,highRecordWatermark:v,lowRecordWatermark:r}),c=((0,_.assertImpersonatedUserIsEmpty)(u,this._onProtocolError,s),b);return this.write(m.default.runWithMetadata(e,t,{bookmarks:n,txConfig:o,database:i,mode:a}),s,c&&h),b||this.write(m.default.pull({n:y}),s,h),s},y.prototype._requestMore=function(e,t,r){this.write(m.default.pull({stmtId:e,n:t}),r,!0)},y.prototype._requestDiscard=function(e,t){this.write(m.default.discard({stmtId:e}),t,!0)},y.prototype._noOp=function(){},y.prototype.requestRoutingInformation=function(e){var t,r=e.routingContext,n=e.databaseName,n=void 0===n?null:n,o=e.sessionContext,o=void 0===o?{}:o,i=e.onError,e=e.onCompleted,r=this.run(b,((t={})[d]=void 0===r?{}:r,t[h]=n,t),u(u({},o),{txConfig:p.empty()}));return new g.ProcedureRouteObserver({resultObserver:r,onProtocolError:this._onProtocolError,onError:i,onCompleted:e})},y);function y(){return null!==o&&o.apply(this,arguments)||this}r.default=e},{"./bolt-protocol-util":1,"./bolt-protocol-v3":6,"./bolt-protocol-v4x0.transformer":9,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],9:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v3.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v3.transformer":7}],10:[function(e,t,r){"use strict";var n,a,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),i(e("./bolt-protocol-v4x0"))),s=i(e("./request-message")),c=e("./stream-observers"),l=e("neo4j-driver-core"),f=i(e("./bolt-protocol-v4x1.transformer")),p=i(e("./transformer")),d=l.internal.constants.BOLT_PROTOCOL_V4_1,i=(a=u.default,o(h,a),Object.defineProperty(h.prototype,"version",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new p.default(Object.values(f.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),h.prototype.initialize=function(e){var t=this,e=void 0===e?{}:e,r=e.userAgent,n=e.authToken,o=e.onError,i=e.onComplete,e=new c.LoginObserver({onError:function(e){return t._onLoginError(e,o)},onCompleted:function(e){return t._onLoginCompleted(e,i)}});return this.write(s.default.hello(r,n,this._serversideRouting),e,!0),e},h);function h(e,t,r,n,o,i,u){e=a.call(this,e,t,r,n=void 0===n?function(){return null}:n,o,i)||this;return e._serversideRouting=u,e}r.default=i},{"./bolt-protocol-v4x0":8,"./bolt-protocol-v4x1.transformer":11,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],11:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v4x0.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v4x0.transformer":9}],12:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./bolt-protocol-v4x1"))),s=e("neo4j-driver-core"),c=u(e("./bolt-protocol-v4x2.transformer")),l=u(e("./transformer")),f=s.internal.constants.BOLT_PROTOCOL_V4_2,u=(o=a.default,i(p,o),Object.defineProperty(p.prototype,"version",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new l.default(Object.values(c.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),p);function p(){return null!==o&&o.apply(this,arguments)||this}r.default=u},{"./bolt-protocol-v4x1":10,"./bolt-protocol-v4x2.transformer":13,"./transformer":29,"neo4j-driver-core":75}],13:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v4x1.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v4x1.transformer":11}],14:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),a(e("./bolt-protocol-v4x2"))),c=a(e("./request-message")),l=e("./stream-observers"),f=a(e("./bolt-protocol-v4x3.transformer")),p=a(e("./bolt-protocol-v5x0.utc.transformer")),d=a(e("./transformer")),a=e("neo4j-driver-core"),h=a.internal.bookmarks.Bookmarks,b=a.internal.constants.BOLT_PROTOCOL_V4_3,e=(o=s.default,i(y,o),Object.defineProperty(y.prototype,"version",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new d.default(Object.values(f.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),y.prototype.requestRoutingInformation=function(e){var t=e.routingContext,t=void 0===t?{}:t,r=e.databaseName,r=void 0===r?null:r,n=e.sessionContext,n=void 0===n?{}:n,o=e.onError,e=e.onCompleted,o=new l.RouteObserver({onProtocolError:this._onProtocolError,onError:o,onCompleted:e}),e=n.bookmarks||h.empty();return this.write(c.default.route(t,e.values(),r),o,!0),o},y.prototype.initialize=function(e){var t=this,e=void 0===e?{}:e,r=e.userAgent,n=e.authToken,o=e.onError,i=e.onComplete,e=new l.LoginObserver({onError:function(e){return t._onLoginError(e,o)},onCompleted:function(e){return void 0!==e.patch_bolt&&t._applyPatches(e.patch_bolt),t._onLoginCompleted(e,i)}});return this.write(c.default.hello(r,n,this._serversideRouting,["utc"]),e,!0),e},y.prototype._applyPatches=function(e){e.includes("utc")&&this._applyUtcPatch()},y.prototype._applyUtcPatch=function(){var t=this;this._transformer=new d.default(Object.values(u(u({},f.default),p.default)).map(function(e){return e(t._config,t._log)}))},y);function y(){return null!==o&&o.apply(this,arguments)||this}r.default=e},{"./bolt-protocol-v4x2":12,"./bolt-protocol-v4x3.transformer":15,"./bolt-protocol-v5x0.utc.transformer":20,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],15:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v4x2.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v4x2.transformer":13}],16:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__assign||function(){return(u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),a(e("./bolt-protocol-v4x3"))),c=e("neo4j-driver-core"),m=a(e("./request-message")),_=e("./stream-observers"),l=a(e("./bolt-protocol-v4x4.transformer")),f=a(e("./bolt-protocol-v5x0.utc.transformer")),p=a(e("./transformer")),a=c.internal.constants,d=a.BOLT_PROTOCOL_V4_4,g=a.FETCH_ALL,h=c.internal.bookmarks.Bookmarks,e=(o=s.default,i(b,o),Object.defineProperty(b.prototype,"version",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new p.default(Object.values(l.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),b.prototype.requestRoutingInformation=function(e){var t=e.routingContext,t=void 0===t?{}:t,r=e.databaseName,r=void 0===r?null:r,n=e.impersonatedUser,n=void 0===n?null:n,o=e.sessionContext,o=void 0===o?{}:o,i=e.onError,e=e.onCompleted,i=new _.RouteObserver({onProtocolError:this._onProtocolError,onError:i,onCompleted:e}),e=o.bookmarks||h.empty();return this.write(m.default.routeV4x4(t,e.values(),{databaseName:r,impersonatedUser:n}),i,!0),i},b.prototype.run=function(e,t,r){var r=void 0===r?{}:r,n=r.bookmarks,o=r.txConfig,i=r.database,u=r.mode,a=r.impersonatedUser,s=r.beforeKeys,c=r.afterKeys,l=r.beforeError,f=r.afterError,p=r.beforeComplete,d=r.afterComplete,h=r.flush,h=void 0===h||h,b=r.reactive,b=void 0!==b&&b,y=r.fetchSize,y=void 0===y?g:y,v=r.highRecordWatermark,v=void 0===v?Number.MAX_VALUE:v,r=r.lowRecordWatermark,r=void 0===r?Number.MAX_VALUE:r,s=new _.ResultStreamObserver({server:this._server,reactive:b,fetchSize:y,moreFunction:this._requestMore.bind(this),discardFunction:this._requestDiscard.bind(this),beforeKeys:s,afterKeys:c,beforeError:l,afterError:f,beforeComplete:p,afterComplete:d,highRecordWatermark:v,lowRecordWatermark:r}),c=b;return this.write(m.default.runWithMetadata(e,t,{bookmarks:n,txConfig:o,database:i,mode:u,impersonatedUser:a}),s,c&&h),b||this.write(m.default.pull({n:y}),s,h),s},b.prototype.beginTransaction=function(e){var e=void 0===e?{}:e,t=e.bookmarks,r=e.txConfig,n=e.database,o=e.mode,i=e.impersonatedUser,u=e.beforeError,a=e.afterError,s=e.beforeComplete,e=e.afterComplete,u=new _.ResultStreamObserver({server:this._server,beforeError:u,afterError:a,beforeComplete:s,afterComplete:e});return u.prepareToHandleSingleResponse(),this.write(m.default.begin({bookmarks:t,txConfig:r,database:n,mode:o,impersonatedUser:i}),u,!0),u},b.prototype._applyUtcPatch=function(){var t=this;this._transformer=new p.default(Object.values(u(u({},l.default),f.default)).map(function(e){return e(t._config,t._log)}))},b);function b(){return null!==o&&o.apply(this,arguments)||this}r.default=e},{"./bolt-protocol-v4x3":14,"./bolt-protocol-v4x4.transformer":17,"./bolt-protocol-v5x0.utc.transformer":20,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],17:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),o(e("./bolt-protocol-v4x3.transformer")));r.default=n({},o.default)},{"./bolt-protocol-v4x3.transformer":15}],18:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./bolt-protocol-v4x4"))),s=u(e("./bolt-protocol-v5x0.transformer")),c=u(e("./transformer")),l=u(e("./request-message")),f=e("./stream-observers"),p=e("neo4j-driver-core").internal.constants.BOLT_PROTOCOL_V5_0,u=(o=a.default,i(d,o),Object.defineProperty(d.prototype,"version",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"transformer",{get:function(){var t=this;return void 0===this._transformer&&(this._transformer=new c.default(Object.values(s.default).map(function(e){return e(t._config,t._log)}))),this._transformer},enumerable:!1,configurable:!0}),d.prototype.initialize=function(e){var t=this,e=void 0===e?{}:e,r=e.userAgent,n=e.authToken,o=e.onError,i=e.onComplete,e=new f.LoginObserver({onError:function(e){return t._onLoginError(e,o)},onCompleted:function(e){return t._onLoginCompleted(e,i)}});return this.write(l.default.hello(r,n,this._serversideRouting),e,!0),e},d);function d(){return null!==o&&o.apply(this,arguments)||this}r.default=u},{"./bolt-protocol-v4x4":16,"./bolt-protocol-v5x0.transformer":19,"./request-message":24,"./stream-observers":27,"./transformer":29,"neo4j-driver-core":75}],19:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=(Object.defineProperty(r,"__esModule",{value:!0}),e("../packstream")),l=e("neo4j-driver-core"),i=o(e("./bolt-protocol-v4x4.transformer")),o=o(e("./bolt-protocol-v5x0.utc.transformer")),u=4,f=8,a=4;r.default=n(n(n({},i.default),o.default),{createNodeTransformer:function(e){return i.default.createNodeTransformer(e).extendsWith({fromStructure:function(e){c.structure.verifyStructSize("Node",u,e.size);var e=s(e.fields,4),t=e[0],r=e[1],n=e[2],e=e[3];return new l.Node(t,r,n,e)}})},createRelationshipTransformer:function(e){return i.default.createRelationshipTransformer(e).extendsWith({fromStructure:function(e){c.structure.verifyStructSize("Relationship",f,e.size);var e=s(e.fields,8),t=e[0],r=e[1],n=e[2],o=e[3],i=e[4],u=e[5],a=e[6],e=e[7];return new l.Relationship(t,r,n,o,i,u,a,e)}})},createUnboundRelationshipTransformer:function(e){return i.default.createUnboundRelationshipTransformer(e).extendsWith({fromStructure:function(e){c.structure.verifyStructSize("UnboundRelationship",a,e.size);var e=s(e.fields,4),t=e[0],r=e[1],n=e[2],e=e[3];return new l.UnboundRelationship(t,r,n,e)}})}})},{"../packstream":58,"./bolt-protocol-v4x4.transformer":17,"./bolt-protocol-v5x0.utc.transformer":20,"neo4j-driver-core":75}],20:[function(e,t,r){"use strict";var i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),e("../packstream")),s=e("neo4j-driver-core"),c=n(e("./bolt-protocol-v4x4.transformer")),u=e("./temporal-factory"),o=e("../lang/functional"),l=s.internal.temporalUtil.localDateTimeToEpochSecond,f=73,p=3,d=105,h=3;function b(e,t,r){e=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,era:"narrow"}),r=(0,u.epochSecondAndNanoToLocalDateTime)(t,r),r=Date.UTC((0,s.int)(r.year).toNumber(),(0,s.int)(r.month).toNumber()-1,(0,s.int)(r.day).toNumber(),(0,s.int)(r.hour).toNumber(),(0,s.int)(r.minute).toNumber(),(0,s.int)(r.second).toNumber()),e=e.formatToParts(r).reduce(function(e,t){return"era"===t.type?e.adjustEra="B"===t.value.toLocaleUpperCase()?function(e){return e.subtract(1).negate()}:o.identity:"literal"!==t.type&&(e[t.type]=(0,s.int)(t.value)),e},{}),e.year=e.adjustEra(e.year),r=l(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond);return e.timeZoneOffsetSeconds=r.subtract(t),e.hour=e.hour.modulo(24),e}function y(e,t,r){if(!t&&!r)return e;var n,o,i,u=Object.create(Object.getPrototypeOf(e));for(n in e)!0===Object.prototype.hasOwnProperty.call(e,n)&&(o=e[n],u[n]=(0,s.isInt)(o)?(i=o,r?i.toBigInt():i.toNumberOrInfinity()):o);return Object.freeze(u),u}r.default={createDateTimeWithZoneIdTransformer:function(e,u){var n=e.disableLosslessIntegers,o=e.useBigInt;return c.default.createDateTimeWithZoneIdTransformer(e).extendsWith({signature:d,fromStructure:function(e){a.structure.verifyStructSize("DateTimeWithZoneId",h,e.size);var e=i(e.fields,3),t=e[0],r=e[1],e=e[2],t=b(e,t,r);return y(new s.DateTime(t.year,t.month,t.day,t.hour,t.minute,t.second,(0,s.int)(r),t.timeZoneOffsetSeconds,e),n,o)},toStructure:function(e){var t=l(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond),r=null!=e.timeZoneOffsetSeconds?e.timeZoneOffsetSeconds:(r=e.timeZoneId,i=t,o=e.nanosecond,n=b(r,i,o),n=l(n.year,n.month,n.day,n.hour,n.minute,n.second,o).subtract(i),i=i.subtract(n),n=b(r,i,o),l(n.year,n.month,n.day,n.hour,n.minute,n.second,o).subtract(i)),n=(null==e.timeZoneOffsetSeconds&&u.warn('DateTime objects without "timeZoneOffsetSeconds" property are prune to bugs related to ambiguous times. For instance, 2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.'),t.subtract(r)),o=(0,s.int)(e.nanosecond),i=e.timeZoneId;return new a.structure.Structure(d,[n,o,i])}})},createDateTimeWithOffsetTransformer:function(e){var n=e.disableLosslessIntegers,o=e.useBigInt;return c.default.createDateTimeWithOffsetTransformer(e).extendsWith({signature:f,toStructure:function(e){var t=l(e.year,e.month,e.day,e.hour,e.minute,e.second,e.nanosecond),r=(0,s.int)(e.nanosecond),e=(0,s.int)(e.timeZoneOffsetSeconds),t=t.subtract(e);return new a.structure.Structure(f,[t,r,e])},fromStructure:function(e){a.structure.verifyStructSize("DateTimeWithZoneOffset",p,e.size);var e=i(e.fields,3),t=e[0],r=e[1],e=e[2],t=(0,s.int)(t).add(e),t=(0,u.epochSecondAndNanoToLocalDateTime)(t,r);return y(new s.DateTime(t.year,t.month,t.day,t.hour,t.minute,t.second,t.nanosecond,e,null),n,o)}})}}},{"../lang/functional":52,"../packstream":58,"./bolt-protocol-v4x4.transformer":17,"./temporal-factory":28,"neo4j-driver-core":75}],21:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_=(Object.defineProperty(r,"__esModule",{value:!0}),e("neo4j-driver-core")),g=n(e("./bolt-protocol-v1")),O=n(e("./bolt-protocol-v2")),w=n(e("./bolt-protocol-v3")),S=n(e("./bolt-protocol-v4x0")),E=n(e("./bolt-protocol-v4x1")),P=n(e("./bolt-protocol-v4x2")),j=n(e("./bolt-protocol-v4x3")),T=n(e("./bolt-protocol-v4x4")),C=n(e("./bolt-protocol-v5x0")),k=n(e("./response-handler"));r.default=function(e){var t=(e=void 0===e?{}:e).version,r=e.chunker,n=e.dechunker,o=e.channel,i=e.disableLosslessIntegers,u=e.useBigInt,a=e.serversideRouting,s=e.server,c=e.log,l=e.observer,f=t,p=s,d=r,h={disableLosslessIntegers:i,useBigInt:u},b=a,y=function(t){var r=new k.default({transformMetadata:t.transformMetadata.bind(t),log:c,observer:l});return o.onerror=l.onError.bind(l),o.onmessage=function(e){return n.write(e)},n.onmessage=function(e){try{r.handleResponse(t.unpack(e))}catch(e){return l.onError(e)}},r},v=l.onProtocolError.bind(l),m=c;switch(f){case 1:return new g.default(p,d,h,y,m,v);case 2:return new O.default(p,d,h,y,m,v);case 3:return new w.default(p,d,h,y,m,v);case 4:return new S.default(p,d,h,y,m,v);case 4.1:return new E.default(p,d,h,y,m,v,b);case 4.2:return new P.default(p,d,h,y,m,v,b);case 4.3:return new j.default(p,d,h,y,m,v,b);case 4.4:return new T.default(p,d,h,y,m,v,b);case 5:return new C.default(p,d,h,y,m,v,b);default:throw(0,_.newError)("Unknown Bolt protocol version: "+f)}}},{"./bolt-protocol-v1":2,"./bolt-protocol-v2":4,"./bolt-protocol-v3":6,"./bolt-protocol-v4x0":8,"./bolt-protocol-v4x1":10,"./bolt-protocol-v4x2":12,"./bolt-protocol-v4x3":14,"./bolt-protocol-v4x4":16,"./bolt-protocol-v5x0":18,"./response-handler":25,"neo4j-driver-core":75}],22:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../channel"),i=e("neo4j-driver-core"),u=1616949271;function a(e,t){return{major:e,minor:t}}function s(){var e=[a(5,0),[a(4,4),a(4,2)],a(4,1),a(3,0)];if(4<e.length)throw(0,i.newError)("It should not have more than 4 versions of the protocol");var o=(0,n.alloc)(20);return o.writeInt32(u),e.forEach(function(e){var t,r,n;e instanceof Array?(r=(n=e[0]).major,n=n.minor,t=e[1].minor,o.writeInt32(n-t<<16|n<<8|r)):(r=e.major,n=e.minor,o.writeInt32(n<<8|r))}),o.reset(),o}r.default=function(t){var o=this;return new Promise(function(r,n){function e(e){n(e)}t.onerror=e.bind(o),t._error&&e(t._error),t.onmessage=function(t){try{var e=function(e){if(72===(e=[e.readUInt8(),e.readUInt8(),e.readUInt8(),e.readUInt8()])[0]&&84===e[1]&&84===e[2]&&80===e[3])throw(0,i.newError)("Server responded HTTP. Make sure you are not trying to connect to the http endpoint (HTTP defaults to port 7474 whereas BOLT defaults to port 7687)");return Number(e[3]+"."+e[2])}(t);r({protocolVersion:e,consumeRemainingBuffer:function(e){t.hasRemaining()&&e(t.readSlice(t.remaining()))}})}catch(e){n(e)}},t.write(s())})}},{"../channel":39,"neo4j-driver-core":75}],23:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.RawRoutingTable=r.BoltProtocol=void 0,i(e("./handshake"))),a=i(e("./create")),s=i(e("./bolt-protocol-v4x3")),i=i(e("./routing-table-raw"));o(e("./stream-observers"),r),r.BoltProtocol=s.default,r.RawRoutingTable=i.default,r.default={handshake:u.default,create:a.default}},{"./bolt-protocol-v4x3":14,"./create":21,"./handshake":22,"./routing-table-raw":26,"./stream-observers":27}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("neo4j-driver-core"),e=o.internal.constants,u=e.ACCESS_MODE_READ,n=e.FETCH_ALL,a=o.internal.util.assertString,e=(i.init=function(e,t){return new i(1,[e,t],function(){return"INIT ".concat(e," {...}")})},i.run=function(e,t){return new i(16,[e,t],function(){return"RUN ".concat(e," ").concat(o.json.stringify(t))})},i.pullAll=function(){return l},i.reset=function(){return f},i.hello=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null);t=Object.assign({user_agent:e},t);return r&&(t.routing=r),n&&(t.patch_bolt=n),new i(1,[t],function(){return"HELLO {user_agent: '".concat(e,"', ...}")})},i.begin=function(e){var e=void 0===e?{}:e,t=s(e.bookmarks,e.txConfig,e.database,e.mode,e.impersonatedUser);return new i(17,[t],function(){return"BEGIN ".concat(o.json.stringify(t))})},i.commit=function(){return p},i.rollback=function(){return d},i.runWithMetadata=function(e,t,r){var r=void 0===r?{}:r,n=s(r.bookmarks,r.txConfig,r.database,r.mode,r.impersonatedUser);return new i(16,[e,t,n],function(){return"RUN ".concat(e," ").concat(o.json.stringify(t)," ").concat(o.json.stringify(n))})},i.goodbye=function(){return h},i.pull=function(e){var e=void 0===e?{}:e,t=e.stmtId,t=void 0===t?-1:t,e=e.n,r=c(null==t?-1:t,(void 0===e?n:e)||n);return new i(63,[r],function(){return"PULL ".concat(o.json.stringify(r))})},i.discard=function(e){var e=void 0===e?{}:e,t=e.stmtId,t=void 0===t?-1:t,e=e.n,r=c(null==t?-1:t,(void 0===e?n:e)||n);return new i(47,[r],function(){return"DISCARD ".concat(o.json.stringify(r))})},i.route=function(e,t,r){return new i(102,[e=void 0===e?{}:e,t=void 0===t?[]:t,r=void 0===r?null:r],function(){return"ROUTE ".concat(o.json.stringify(e)," ").concat(o.json.stringify(t)," ").concat(r)})},i.routeV4x4=function(e,t,r){void 0===e&&(e={}),void 0===t&&(t=[]);var n={};return(r=void 0===r?{}:r).databaseName&&(n.db=r.databaseName),r.impersonatedUser&&(n.imp_user=r.impersonatedUser),new i(102,[e,t,n],function(){return"ROUTE ".concat(o.json.stringify(e)," ").concat(o.json.stringify(t)," ").concat(o.json.stringify(n))})},i);function i(e,t,r){this.signature=e,this.fields=t,this.toString=r}function s(e,t,r,n,o){var i={};return e.isEmpty()||(i.bookmarks=e.values()),null!==t.timeout&&(i.tx_timeout=t.timeout),t.metadata&&(i.tx_metadata=t.metadata),r&&(i.db=a(r,"database")),o&&(i.imp_user=a(o,"impersonatedUser")),n===u&&(i.mode="r"),i}function c(e,t){t={n:(0,o.int)(t)};return-1!==e&&(t.qid=(0,o.int)(e)),t}var l=new(r.default=e)(63,[],function(){return"PULL_ALL"}),f=new e(15,[],function(){return"RESET"}),p=new e(18,[],function(){return"COMMIT"}),d=new e(19,[],function(){return"ROLLBACK"}),h=new e(2,[],function(){return"GOODBYE"})},{"neo4j-driver-core":75}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o=e("neo4j-driver-core");function n(){}function i(e){return e}var u={onNext:n,onCompleted:n,onError:n};function a(e){var e=void 0===e?{}:e,t=e.transformMetadata,r=e.log,e=e.observer;this._pendingObservers=[],this._log=r,this._transformMetadata=t||i,this._observer=Object.assign({onPendingObserversChange:n,onError:n,onFailure:n,onErrorApplyTransformation:i},e)}Object.defineProperty(a.prototype,"currentFailure",{get:function(){return this._currentFailure},enumerable:!1,configurable:!0}),a.prototype.handleResponse=function(e){var t=e.fields[0];switch(e.signature){case 113:this._log.isDebugEnabled()&&this._log.debug("S: RECORD ".concat(o.json.stringify(e))),this._currentObserver.onNext(t);break;case 112:this._log.isDebugEnabled()&&this._log.debug("S: SUCCESS ".concat(o.json.stringify(e)));try{var r=this._transformMetadata(t);this._currentObserver.onCompleted(r)}finally{this._updateCurrentObserver()}break;case 127:this._log.isDebugEnabled()&&this._log.debug("S: FAILURE ".concat(o.json.stringify(e)));try{var n=(0,o.newError)(t.message,t.code);this._currentFailure=this._observer.onErrorApplyTransformation(n),this._currentObserver.onError(this._currentFailure)}finally{this._updateCurrentObserver(),this._observer.onFailure(this._currentFailure)}break;case 126:this._log.isDebugEnabled()&&this._log.debug("S: IGNORED ".concat(o.json.stringify(e)));try{this._currentFailure&&this._currentObserver.onError?this._currentObserver.onError(this._currentFailure):this._currentObserver.onError&&this._currentObserver.onError((0,o.newError)("Ignored either because of an error or RESET"))}finally{this._updateCurrentObserver()}break;default:this._observer.onError((0,o.newError)("Unknown Bolt protocol message: "+e))}},a.prototype._updateCurrentObserver=function(){this._currentObserver=this._pendingObservers.shift(),this._observer.onPendingObserversChange(this._pendingObservers.length)},a.prototype._queueObserver=function(e){return(e=e||u).onCompleted=e.onCompleted||n,e.onError=e.onError||n,e.onNext=e.onNext||n,void 0===this._currentObserver?this._currentObserver=e:this._pendingObservers.push(e),this._observer.onPendingObserversChange(this._pendingObservers.length),!0},a.prototype._notifyErrorToObservers=function(e){for(this._currentObserver&&this._currentObserver.onError&&this._currentObserver.onError(e);0<this._pendingObservers.length;){var t=this._pendingObservers.shift();t&&t.onError&&t.onError(e)}},a.prototype.hasOngoingObservableRequests=function(){return null!=this._currentObserver||0<this._pendingObservers.length},a.prototype._resetFailure=function(){this._currentFailure=null},r.default=a},{"neo4j-driver-core":75}],26:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=(Object.defineProperty(r,"__esModule",{value:!0}),u.ofRecord=function(e){return null===e?u.ofNull():new h(e)},u.ofMessageResponse=function(e){return null===e?u.ofNull():new s(e)},u.ofNull=function(){return new f},Object.defineProperty(u.prototype,"ttl",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"db",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"servers",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"isNull",{get:function(){throw new Error("Not implemented")},enumerable:!1,configurable:!0}),u);function u(){}r.default=i;o(c,a=i),Object.defineProperty(c.prototype,"ttl",{get:function(){return this._response.rt.ttl},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"servers",{get:function(){return this._response.rt.servers},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"db",{get:function(){return this._response.rt.db},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isNull",{get:function(){return null===this._response},enumerable:!1,configurable:!0});var a,s=c;function c(e){var t=a.call(this)||this;return t._response=e,t}o(p,l=i),Object.defineProperty(p.prototype,"isNull",{get:function(){return!0},enumerable:!1,configurable:!0});var l,f=p;function p(){return null!==l&&l.apply(this,arguments)||this}o(b,d=i),Object.defineProperty(b.prototype,"ttl",{get:function(){return this._record.get("ttl")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"servers",{get:function(){return this._record.get("servers")},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"db",{get:function(){return this._record.has("db")?this._record.get("db"):null},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"isNull",{get:function(){return null===this._record},enumerable:!1,configurable:!0});var d,h=b;function b(e){var t=d.call(this)||this;return t._record=e,t}},{}],27:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.ProcedureRouteObserver=r.RouteObserver=r.CompletedObserver=r.FailedObserver=r.ResetObserver=r.LoginObserver=r.ResultStreamObserver=r.StreamObserver=void 0,e("neo4j-driver-core")),a=i(e("./routing-table-raw")),h=u.internal.constants.FETCH_ALL,s=u.error.PROTOCOL_ERROR,i=(c.prototype.onNext=function(e){},c.prototype.onError=function(e){},c.prototype.onCompleted=function(e){},c);function c(){}r.StreamObserver=i;o(l,b=i),l.prototype.pause=function(){this._paused=!0},l.prototype.resume=function(){this._paused=!1,this._setupAutoPull(!0),this._state.pull(this)},l.prototype.onNext=function(e){var t=new u.Record(this._fieldKeys,e,this._fieldLookup);this._observers.some(function(e){return e.onNext})?this._observers.forEach(function(e){e.onNext&&e.onNext(t)}):(this._queuedRecords.push(t),this._queuedRecords.length>this._highRecordWatermark&&(this._autoPull=!1))},l.prototype.onCompleted=function(e){this._state.onSuccess(this,e)},l.prototype.onError=function(e){this._state.onError(this,e)},l.prototype.cancel=function(){this._discard=!0},l.prototype.prepareToHandleSingleResponse=function(){this._head=[],this._fieldKeys=[],this._setState(j.STREAMING)},l.prototype.markCompleted=function(){this._head=[],this._fieldKeys=[],this._tail={},this._setState(j.SUCCEEDED)},l.prototype.subscribe=function(e){if(this._head&&e.onKeys&&e.onKeys(this._head),0<this._queuedRecords.length&&e.onNext)for(var t=0;t<this._queuedRecords.length;t++)e.onNext(this._queuedRecords[t]),this._queuedRecords.length-t-1<=this._lowRecordWatermark&&(this._autoPull=!0,this._state===j.READY&&this._handleStreaming());this._tail&&e.onCompleted&&e.onCompleted(this._tail),this._error&&e.onError(this._error),this._observers.push(e),this._state===j.READY&&this._handleStreaming()},l.prototype._handleHasMore=function(e){this._setState(j.READY),this._handleStreaming(),delete e.has_more},l.prototype._handlePullSuccess=function(e){var t,r=this,n=Object.assign(this._server?{server:this._server}:{},this._meta,e);[void 0,null,"r","w","rw","s"].includes(n.type)?(this._setState(j.SUCCEEDED),e=null,t=function(){r._tail=n,r._observers.some(function(e){return e.onCompleted})&&r._observers.forEach(function(e){e.onCompleted&&e.onCompleted(n)}),r._afterComplete&&r._afterComplete(n)},(e=this._beforeComplete?this._beforeComplete(n):e)?Promise.resolve(e).then(t):t()):this.onError((0,u.newError)('Server returned invalid query type. Expected one of [undefined, null, "r", "w", "rw", "s"] but got \''.concat(n.type,"'"),s))},l.prototype._handleRunSuccess=function(e,t){var r=this;if(null===this._fieldKeys){if(this._fieldKeys=[],this._fieldLookup={},e.fields&&0<e.fields.length){this._fieldKeys=e.fields;for(var n=0;n<e.fields.length;n++)this._fieldLookup[e.fields[n]]=n;delete e.fields}null!==e.qid&&void 0!==e.qid&&(this._queryId=e.qid,delete e.qid),this._storeMetadataForCompletion(e);var o=null,i=(this._beforeKeys&&(o=this._beforeKeys(this._fieldKeys)),function(){r._head=r._fieldKeys,r._observers.some(function(e){return e.onKeys})&&r._observers.forEach(function(e){e.onKeys&&e.onKeys(r._fieldKeys)}),r._afterKeys&&r._afterKeys(r._fieldKeys),t()});o?Promise.resolve(o).then(i):i()}},l.prototype._handleError=function(t){function e(){r._observers.some(function(e){return e.onError})&&r._observers.forEach(function(e){e.onError&&e.onError(t)}),r._afterError&&r._afterError(t)}var r=this,n=(this._setState(j.FAILED),this._error=t,null);this._beforeError&&(n=this._beforeError(t));n?Promise.resolve(n).then(e):e()},l.prototype._handleStreaming=function(){this._head&&this._observers.some(function(e){return e.onNext||e.onCompleted})&&(this._paused||!this._discard&&!this._autoPull||this._more())},l.prototype._more=function(){this._discard?this._discardFunction(this._queryId,this):this._moreFunction(this._queryId,this._fetchSize,this),this._setState(j.STREAMING)},l.prototype._storeMetadataForCompletion=function(e){for(var t,r=Object.keys(e),n=r.length;n--;)t=r[n],this._meta[t]=e[t]},l.prototype._setState=function(e){this._state=e},l.prototype._setupAutoPull=function(){this._autoPull=!0};var b,e=l;function l(e){var e=void 0===e?{}:e,t=e.reactive,t=void 0!==t&&t,r=e.moreFunction,n=e.discardFunction,o=e.fetchSize,o=void 0===o?h:o,i=e.beforeError,u=e.afterError,a=e.beforeKeys,s=e.afterKeys,c=e.beforeComplete,l=e.afterComplete,f=e.server,p=e.highRecordWatermark,p=void 0===p?Number.MAX_VALUE:p,e=e.lowRecordWatermark,e=void 0===e?Number.MAX_VALUE:e,d=b.call(this)||this;return d._fieldKeys=null,d._fieldLookup=null,d._head=null,d._queuedRecords=[],d._tail=null,d._error=null,d._observers=[],d._meta={},d._server=f,d._beforeError=i,d._afterError=u,d._beforeKeys=a,d._afterKeys=s,d._beforeComplete=c,d._afterComplete=l,d._queryId=null,d._moreFunction=r,d._discardFunction=n,d._discard=!1,d._fetchSize=o,d._lowRecordWatermark=e,d._highRecordWatermark=p,d._setState(t?j.READY:j.READY_STREAMING),d._setupAutoPull(),d._paused=!1,d}r.ResultStreamObserver=e;o(d,f=i),d.prototype.onNext=function(e){this.onError((0,u.newError)("Received RECORD when initializing "+u.json.stringify(e)))},d.prototype.onError=function(e){this._onError&&this._onError(e)},d.prototype.onCompleted=function(e){this._onCompleted&&this._onCompleted(e)};var f,p=d;function d(e){var e=void 0===e?{}:e,t=e.onError,e=e.onCompleted,r=f.call(this)||this;return r._onError=t,r._onCompleted=e,r}r.LoginObserver=p;o(v,y=i),v.prototype.onNext=function(e){this.onError((0,u.newError)("Received RECORD when resetting: received record is: "+u.json.stringify(e),s))},v.prototype.onError=function(e){e.code===s&&this._onProtocolError&&this._onProtocolError(e.message),this._onError&&this._onError(e)},v.prototype.onCompleted=function(e){this._onComplete&&this._onComplete(e)};var y,p=v;function v(e){var e=void 0===e?{}:e,t=e.onProtocolError,r=e.onError,e=e.onComplete,n=y.call(this)||this;return n._onProtocolError=t,n._onError=r,n._onComplete=e,n}r.ResetObserver=p;o(_,m=e);var m,p=_;function _(e){var t=e.error,e=e.onError,e=m.call(this,{beforeError:e})||this;return e.onError(t),e}r.FailedObserver=p;o(O,g=e);var g,p=O;function O(){var e=g.call(this)||this;return g.prototype.markCompleted.call(e),e}r.CompletedObserver=p;o(S,w=i),S.prototype.onNext=function(e){this._records.push(e)},S.prototype.onError=function(e){e.code===s&&this._onProtocolError&&this._onProtocolError(e.message),this._onError&&this._onError(e)},S.prototype.onCompleted=function(){null!==this._records&&1!==this._records.length?this.onError((0,u.newError)("Illegal response from router. Received "+this._records.length+" records but expected only one.\n"+u.json.stringify(this._records),s)):this._onCompleted&&this._onCompleted(a.default.ofRecord(this._records[0]))};var w,e=S;function S(e){var t=e.resultObserver,r=e.onProtocolError,n=e.onError,e=e.onCompleted,o=w.call(this)||this;return o._resultObserver=t,o._onError=n,o._onCompleted=e,o._records=[],o._onProtocolError=r,t.subscribe(o),o}r.ProcedureRouteObserver=e;o(P,E=i),P.prototype.onNext=function(e){this.onError((0,u.newError)("Received RECORD when resetting: received record is: "+u.json.stringify(e),s))},P.prototype.onError=function(e){e.code===s&&this._onProtocolError&&this._onProtocolError(e.message),this._onError&&this._onError(e)},P.prototype.onCompleted=function(e){this._onCompleted&&this._onCompleted(a.default.ofMessageResponse(e))};var E,p=P;function P(e){var e=void 0===e?{}:e,t=e.onProtocolError,r=e.onError,e=e.onCompleted,n=E.call(this)||this;return n._onProtocolError=t,n._onError=r,n._onCompleted=e,n}r.RouteObserver=p;var j={READY_STREAMING:{onSuccess:function(e,t){e._handleRunSuccess(t,function(){e._setState(j.STREAMING)})},onError:function(e,t){e._handleError(t)},name:function(){return"READY_STREAMING"},pull:function(){}},READY:{onSuccess:function(e,t){e._handleRunSuccess(t,function(){return e._handleStreaming()})},onError:function(e,t){e._handleError(t)},name:function(){return"READY"},pull:function(e){return e._more()}},STREAMING:{onSuccess:function(e,t){t.has_more?e._handleHasMore(t):e._handlePullSuccess(t)},onError:function(e,t){e._handleError(t)},name:function(){return"STREAMING"},pull:function(){}},FAILED:{onError:function(e){},name:function(){return"FAILED"},pull:function(){}},SUCCEEDED:{name:function(){return"SUCCEEDED"},pull:function(){}}}},{"./routing-table-raw":26,"neo4j-driver-core":75}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.epochSecondAndNanoToLocalDateTime=r.nanoOfDayToLocalTime=r.epochDayToDate=void 0;var o=e("neo4j-driver-core"),e=o.internal.temporalUtil,i=e.DAYS_0000_TO_1970,u=e.DAYS_PER_400_YEAR_CYCLE,a=e.NANOS_PER_HOUR,s=e.NANOS_PER_MINUTE,c=e.NANOS_PER_SECOND,n=e.SECONDS_PER_DAY,l=e.floorDiv,f=e.floorMod;function p(e){var e=(e=(0,o.int)(e)).add(i).subtract(60),t=(0,o.int)(0),r=(e.lessThan(0)&&(t=(r=e.add(1).div(u).subtract(1)).multiply(400),e=e.add(r.multiply(-u))),e.multiply(400).add(591).div(u)),n=e.subtract(r.multiply(365).add(r.div(4)).subtract(r.div(100)).add(r.div(400))),e=(n.lessThan(0)&&(r=r.subtract(1),n=e.subtract(r.multiply(365).add(r.div(4)).subtract(r.div(100)).add(r.div(400)))),r=r.add(t),n),t=e.multiply(5).add(2).div(153),n=t.add(2).modulo(12).add(1),e=e.subtract(t.multiply(306).add(5).div(10)).add(1),r=r.add(t.div(10));return new o.Date(r,n,e)}function d(e){var t=(e=(0,o.int)(e)).div(a),r=(e=e.subtract(t.multiply(a))).div(s),n=(e=e.subtract(r.multiply(s))).div(c),e=e.subtract(n.multiply(c));return new o.LocalTime(t,r,n,e)}r.epochDayToDate=p,r.nanoOfDayToLocalTime=d,r.epochSecondAndNanoToLocalDateTime=function(e,t){var r=l(e,n),e=f(e,n).multiply(c).add(t),t=p(r),r=d(e);return new o.LocalDateTime(t.year,t.month,t.day,r.hour,r.minute,r.second,r.nanosecond)}},{"neo4j-driver-core":75}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TypeTransformer=void 0;var n=e("../packstream"),o=e("neo4j-driver-core").internal.objectUtil;function i(e){this._transformers=e,this._transformersPerSignature=new Map(e.map(function(e){return[e.signature,e]})),this.fromStructure=this.fromStructure.bind(this),this.toStructure=this.toStructure.bind(this),Object.freeze(this)}function u(e){var t=e.signature,r=e.fromStructure,n=e.toStructure,e=e.isTypeInstance;this.signature=t,this.isTypeInstance=e,this.fromStructure=r,this.toStructure=n,Object.freeze(this)}i.prototype.fromStructure=function(e){try{return e instanceof n.structure.Structure&&this._transformersPerSignature.has(e.signature)?(0,this._transformersPerSignature.get(e.signature).fromStructure)(e):e}catch(e){return o.createBrokenObject(e)}},i.prototype.toStructure=function(t){var e=this._transformers.find(function(e){return(0,e.isTypeInstance)(t)});return void 0!==e?e.toStructure(t):t},r.default=i,u.prototype.extendsWith=function(e){var t=e.signature,r=e.fromStructure,n=e.toStructure,e=e.isTypeInstance;return new u({signature:t||this.signature,fromStructure:r||this.fromStructure,toStructure:n||this.toStructure,isTypeInstance:e||this.isTypeInstance})},r.TypeTransformer=u},{"../packstream":58,"neo4j-driver-core":75}],30:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=(Object.defineProperty(r,"__esModule",{value:!0}),u.prototype.getUInt8=function(e){throw new Error("Not implemented")},u.prototype.getInt8=function(e){throw new Error("Not implemented")},u.prototype.getFloat64=function(e){throw new Error("Not implemented")},u.prototype.putUInt8=function(e,t){throw new Error("Not implemented")},u.prototype.putInt8=function(e,t){throw new Error("Not implemented")},u.prototype.putFloat64=function(e,t){throw new Error("Not implemented")},u.prototype.getInt16=function(e){return this.getInt8(e)<<8|this.getUInt8(e+1)},u.prototype.getUInt16=function(e){return this.getUInt8(e)<<8|this.getUInt8(e+1)},u.prototype.getInt32=function(e){return this.getInt8(e)<<24|this.getUInt8(e+1)<<16|this.getUInt8(e+2)<<8|this.getUInt8(e+3)},u.prototype.getUInt32=function(e){return this.getUInt8(e)<<24|this.getUInt8(e+1)<<16|this.getUInt8(e+2)<<8|this.getUInt8(e+3)},u.prototype.getInt64=function(e){return this.getInt8(e)<<56|this.getUInt8(e+1)<<48|this.getUInt8(e+2)<<40|this.getUInt8(e+3)<<32|this.getUInt8(e+4)<<24|this.getUInt8(e+5)<<16|this.getUInt8(e+6)<<8|this.getUInt8(e+7)},u.prototype.getSlice=function(e,t){return new s(e,t,this)},u.prototype.putInt16=function(e,t){this.putInt8(e,t>>8),this.putUInt8(e+1,255&t)},u.prototype.putUInt16=function(e,t){this.putUInt8(e,t>>8&255),this.putUInt8(e+1,255&t)},u.prototype.putInt32=function(e,t){this.putInt8(e,t>>24),this.putUInt8(e+1,t>>16&255),this.putUInt8(e+2,t>>8&255),this.putUInt8(e+3,255&t)},u.prototype.putUInt32=function(e,t){this.putUInt8(e,t>>24&255),this.putUInt8(e+1,t>>16&255),this.putUInt8(e+2,t>>8&255),this.putUInt8(e+3,255&t)},u.prototype.putInt64=function(e,t){this.putInt8(e,t>>48),this.putUInt8(e+1,t>>42&255),this.putUInt8(e+2,t>>36&255),this.putUInt8(e+3,t>>30&255),this.putUInt8(e+4,t>>24&255),this.putUInt8(e+5,t>>16&255),this.putUInt8(e+6,t>>8&255),this.putUInt8(e+7,255&t)},u.prototype.putBytes=function(e,t){for(var r=0,n=t.remaining();r<n;r++)this.putUInt8(e+r,t.readUInt8())},u.prototype.readUInt8=function(){return this.getUInt8(this._updatePos(1))},u.prototype.readInt8=function(){return this.getInt8(this._updatePos(1))},u.prototype.readUInt16=function(){return this.getUInt16(this._updatePos(2))},u.prototype.readUInt32=function(){return this.getUInt32(this._updatePos(4))},u.prototype.readInt16=function(){return this.getInt16(this._updatePos(2))},u.prototype.readInt32=function(){return this.getInt32(this._updatePos(4))},u.prototype.readInt64=function(){return this.getInt32(this._updatePos(8))},u.prototype.readFloat64=function(){return this.getFloat64(this._updatePos(8))},u.prototype.writeUInt8=function(e){this.putUInt8(this._updatePos(1),e)},u.prototype.writeInt8=function(e){this.putInt8(this._updatePos(1),e)},u.prototype.writeInt16=function(e){this.putInt16(this._updatePos(2),e)},u.prototype.writeInt32=function(e){this.putInt32(this._updatePos(4),e)},u.prototype.writeUInt32=function(e){this.putUInt32(this._updatePos(4),e)},u.prototype.writeInt64=function(e){this.putInt64(this._updatePos(8),e)},u.prototype.writeFloat64=function(e){this.putFloat64(this._updatePos(8),e)},u.prototype.writeBytes=function(e){this.putBytes(this._updatePos(e.remaining()),e)},u.prototype.readSlice=function(e){return this.getSlice(this._updatePos(e),e)},u.prototype._updatePos=function(e){var t=this.position;return this.position+=e,t},u.prototype.remaining=function(){return this.length-this.position},u.prototype.hasRemaining=function(){return 0<this.remaining()},u.prototype.reset=function(){this.position=0},u.prototype.toString=function(){return this.constructor.name+"( position="+this.position+" )\n "+this.toHex()},u.prototype.toHex=function(){for(var e="",t=0;t<this.length;t++){var r=this.getUInt8(t).toString(16);e+=r=1===r.length?"0"+r:r,t!==this.length-1&&(e+=" ")}return e},u);function u(e){this.position=0,this.length=e}r.default=i;o(c,a=i),c.prototype.putUInt8=function(e,t){this._inner.putUInt8(this._start+e,t)},c.prototype.getUInt8=function(e){return this._inner.getUInt8(this._start+e)},c.prototype.putInt8=function(e,t){this._inner.putInt8(this._start+e,t)},c.prototype.putFloat64=function(e,t){this._inner.putFloat64(this._start+e,t)},c.prototype.getInt8=function(e){return this._inner.getInt8(this._start+e)},c.prototype.getFloat64=function(e){return this._inner.getFloat64(this._start+e)};var a,s=c;function c(e,t,r){t=a.call(this,t)||this;return t._start=e,t._inner=r,t}},{}],31:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.BaseBuffer=void 0,n(e("./base-buf")));r.BaseBuffer=n.default,r.default=n.default},{"./base-buf":30}],32:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),n(e("../channel-buf"))),a=e("neo4j-driver-core"),n=a.internal.util,s=n.ENCRYPTION_OFF,c=n.ENCRYPTION_ON;function o(e,t,r){void 0===t&&(t=l),void 0===r&&(r=function(e){return new WebSocket(e)});var n,o=this,t=(this._open=!0,this._pending=[],this._error=null,this._handleConnectionError=this._handleConnectionError.bind(this),this._config=e,this._receiveTimeout=null,this._receiveTimeoutStarted=!1,this._receiveTimeoutId=null,function(e,t){var r=function(e){return!0===e.encrypted||e.encrypted===c}(e),n=function(e){return!1===e.encrypted||e.encrypted===s}(e),e=e.trust,t=function(e){e="function"==typeof e?e():"";return e&&0<=e.toLowerCase().indexOf("https")}(t);if(function(e,t,r){null!==r&&(e&&!r?console.warn("Neo4j driver is configured to use secure WebSocket on a HTTP web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to not use encryption."):t&&r&&console.warn("Neo4j driver is configured to use insecure WebSocket on a HTTPS web page. WebSockets might not work in a mixed content environment. Please consider configuring driver to use encryption."))}(r,n,t),n)return{scheme:"ws",error:null};if(t)return{scheme:"wss",error:null};if(r)return e&&"TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"!==e?{scheme:null,error:(0,a.newError)("The browser version of this driver only supports one trust strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. "+e+' is not supported. Please either use TRUST_SYSTEM_CA_SIGNED_CERTIFICATES or disable encryption by setting `encrypted:"'+s+'"` in the driver configuration.')}:{scheme:"wss",error:null};return{scheme:"ws",error:null}}(e,t)),i=t.scheme,t=t.error;t?this._error=t:(this._ws=function(t,r,n){var o=t+"://"+r.asHostPort();try{return n(o)}catch(e){if(function(e,t){return"SyntaxError"===e.name&&function(e){return"["===e.charAt(0)&&-1!==e.indexOf("]")}(t.asHostPort())}(e,r))return o=function(e,t){var r=t.host().replace(/:/g,"-").replace("%","s")+".ipv6-literal.net";return"".concat(e,"://").concat(r,":").concat(t.port())}(t,r),n(o);throw e}}(i,e.address,r),this._ws.binaryType="arraybuffer",(n=this)._ws.onclose=function(e){e&&!e.wasClean&&n._handleConnectionError(),n._open=!1},this._ws.onopen=function(){n._clearConnectionTimeout();var e=n._pending;n._pending=null;for(var t=0;t<e.length;t++)n.write(e[t])},this._ws.onmessage=function(e){o._resetTimeout(),n.onmessage&&(e=new u.default(e.data),n.onmessage(e))},this._ws.onerror=this._handleConnectionError,this._connectionTimeoutFired=!1,this._connectionTimeoutId=this._setupConnectionTimeout())}function l(){return"undefined"!=typeof window&&window.location?window.location.protocol:null}o.prototype._handleConnectionError=function(){if(this._connectionTimeoutFired)return this._error=(0,a.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout,"ms"),this._config.connectionErrorCode),void(this.onerror&&this.onerror(this._error));this._open&&!this._timedout&&(this._error=(0,a.newError)("WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket `readyState` is: "+this._ws.readyState,this._config.connectionErrorCode),this.onerror&&this.onerror(this._error))},o.prototype.write=function(e){if(null!==this._pending)this._pending.push(e);else{if(!(e instanceof u.default))throw(0,a.newError)("Don't know how to send buffer: "+e);try{this._ws.send(e._buffer)}catch(e){if(1===this._ws.readyState)throw e;this._handleConnectionError()}}},o.prototype.close=function(){var r=this;return new Promise(function(e,t){r._ws&&3!==r._ws.readyState?(r._open=!1,r._clearConnectionTimeout(),r._ws.onclose=function(){return e()},r._ws.close()):e()})},o.prototype.setupReceiveTimeout=function(e){this._receiveTimeout=e},o.prototype.stopReceiveTimeout=function(){null!==this._receiveTimeout&&this._receiveTimeoutStarted&&(this._receiveTimeoutStarted=!1,null!=this._receiveTimeoutId&&clearTimeout(this._receiveTimeoutId),this._receiveTimeoutId=null)},o.prototype.startReceiveTimeout=function(){null===this._receiveTimeout||this._receiveTimeoutStarted||(this._receiveTimeoutStarted=!0,this._resetTimeout())},o.prototype._resetTimeout=function(){var e=this;this._receiveTimeoutStarted&&(null!==this._receiveTimeoutId&&clearTimeout(this._receiveTimeoutId),this._receiveTimeoutId=setTimeout(function(){e._receiveTimeoutId=null,e._timedout=!0,e.stopReceiveTimeout(),e._error=(0,a.newError)("Connection lost. Server didn't respond in ".concat(e._receiveTimeout,"ms"),e._config.connectionErrorCode),e.close(),e.onerror&&e.onerror(e._error)},this._receiveTimeout))},o.prototype._setupConnectionTimeout=function(){var e,t=this,r=this._config.connectionTimeout;return r?(e=this._ws,setTimeout(function(){1!==e.readyState&&(t._connectionTimeoutFired=!0,e.close())},r)):null},o.prototype._clearConnectionTimeout=function(){var e=this._connectionTimeoutId;!e&&0!==e||(this._connectionTimeoutFired=!1,this._connectionTimeoutId=null,clearTimeout(e))},r.default=o},{"../channel-buf":35,"neo4j-driver-core":75}],33:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var i,e=e("neo4j-driver-core").internal.resolver.BaseHostNameResolver,o=(o(u,i=e),u.prototype.resolve=function(e){return this._resolveToItself(e)},u);function u(){return null!==i&&i.apply(this,arguments)||this}r.default=o},{"neo4j-driver-core":75}],34:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.HostNameResolver=r.Channel=void 0,n(e("./browser-channel"))),n=n(e("./browser-host-name-resolver"));r.Channel=o.default,r.HostNameResolver=n.default},{"./browser-channel":32,"./browser-host-name-resolver":33}],35:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.alloc=void 0,u(e("buffer"))),u=u(e("../buf")),s=(o=u.default,i(c,o),c.prototype.getUInt8=function(e){return this._buffer.readUInt8(e)},c.prototype.getInt8=function(e){return this._buffer.readInt8(e)},c.prototype.getFloat64=function(e){return this._buffer.readDoubleBE(e)},c.prototype.putUInt8=function(e,t){this._buffer.writeUInt8(t,e)},c.prototype.putInt8=function(e,t){this._buffer.writeInt8(t,e)},c.prototype.putFloat64=function(e,t){this._buffer.writeDoubleBE(t,e)},c.prototype.putBytes=function(e,t){var r;t instanceof c?(r=Math.min(t.length-t.position,this.length-e),t._buffer.copy(this._buffer,e,t.position,t.position+r),t.position+=r):o.prototype.putBytes.call(this,e,t)},c.prototype.getSlice=function(e,t){return new c(this._buffer.slice(e,e+t))},c);function c(e){var t=this,e=(e=e)instanceof a.default.Buffer?e:"number"==typeof e&&"function"==typeof a.default.Buffer.alloc?a.default.Buffer.alloc(e):new a.default.Buffer(e);return(t=o.call(this,e.length)||this)._buffer=e,t}r.default=s,r.alloc=function(e){return new s(e)}},{"../buf":31,buffer:116}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("neo4j-driver-core"),e=n.internal.util,o=e.ENCRYPTION_OFF,e=e.ENCRYPTION_ON,i=n.error.SERVICE_UNAVAILABLE,u=[null,void 0,!0,!1,e,o],a=[null,void 0,"TRUST_ALL_CERTIFICATES","TRUST_CUSTOM_CA_SIGNED_CERTIFICATES","TRUST_SYSTEM_CA_SIGNED_CERTIFICATES"];r.default=function(e,t,r){this.address=e,this.encrypted=function(e){e=e.encrypted;if(-1!==u.indexOf(e))return e;throw(0,n.newError)("Illegal value of the encrypted setting ".concat(e,". Expected one of ").concat(u))}(t),this.trust=function(e){e=e.trust;if(-1!==a.indexOf(e))return e;throw(0,n.newError)("Illegal value of the trust setting ".concat(e,". Expected one of ").concat(a))}(t),this.trustedCertificates=t.trustedCertificates||[],this.knownHostsPath=t.knownHosts||null,this.connectionErrorCode=r||i,this.connectionTimeout=t.connectionTimeout}},{"neo4j-driver-core":75}],37:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.Dechunker=r.Chunker=void 0,u(e("../buf/base-buf"))),s=e("./channel-buf"),c=u(e("./combined-buf")),u=(o=a.default,i(l,o),l.prototype.putUInt8=function(e,t){this._ensure(1),this._buffer.writeUInt8(t)},l.prototype.putInt8=function(e,t){this._ensure(1),this._buffer.writeInt8(t)},l.prototype.putFloat64=function(e,t){this._ensure(8),this._buffer.writeFloat64(t)},l.prototype.putBytes=function(e,t){for(;0<t.remaining();)this._ensure(1),this._buffer.remaining()>t.remaining()?this._buffer.writeBytes(t):this._buffer.writeBytes(t.readSlice(this._buffer.remaining()));return this},l.prototype.flush=function(){var e;return 0<this._buffer.position&&(this._closeChunkIfOpen(),e=this._buffer,this._buffer=null,this._ch.write(e.getSlice(0,e.position)),this._buffer=(0,s.alloc)(this._bufferSize),this._chunkOpen=!1),this},l.prototype.messageBoundary=function(){this._closeChunkIfOpen(),this._buffer.remaining()<2&&this.flush(),this._buffer.writeInt16(0)},l.prototype._ensure=function(e){e=this._chunkOpen?e:e+2;this._buffer.remaining()<e&&this.flush(),this._chunkOpen||(this._currentChunkStart=this._buffer.position,this._buffer.position=this._buffer.position+2,this._chunkOpen=!0)},l.prototype._closeChunkIfOpen=function(){var e;this._chunkOpen&&(e=this._buffer.position-(this._currentChunkStart+2),this._buffer.putUInt16(this._currentChunkStart,e),this._chunkOpen=!1)},l);function l(e,t){var r=o.call(this,0)||this;return r._bufferSize=t||1400,r._ch=e,r._buffer=(0,s.alloc)(r._bufferSize),r._currentChunkStart=0,r._chunkOpen=!1,r}function f(){this._currentMessage=[],this._partialChunkHeader=0,this._state=this.AWAITING_CHUNK}r.Chunker=u,f.prototype.AWAITING_CHUNK=function(e){return 2<=e.remaining()?this._onHeader(e.readUInt16()):(this._partialChunkHeader=e.readUInt8()<<8,this.IN_HEADER)},f.prototype.IN_HEADER=function(e){return this._onHeader(65535&(this._partialChunkHeader|e.readUInt8()))},f.prototype.IN_CHUNK=function(e){return this._chunkSize<=e.remaining()?(this._currentMessage.push(e.readSlice(this._chunkSize)),this.AWAITING_CHUNK):(this._chunkSize-=e.remaining(),this._currentMessage.push(e.readSlice(e.remaining())),this.IN_CHUNK)},f.prototype.CLOSED=function(e){},f.prototype._onHeader=function(e){if(0!==e)return this._chunkSize=e,this.IN_CHUNK;var t=void 0;switch(this._currentMessage.length){case 0:return this.AWAITING_CHUNK;case 1:t=this._currentMessage[0];break;default:t=new c.default(this._currentMessage)}return this._currentMessage=[],this.onmessage(t),this.AWAITING_CHUNK},f.prototype.write=function(e){for(;e.hasRemaining();)this._state=this._state(e)},r.Dechunker=f},{"../buf/base-buf":30,"./channel-buf":35,"./combined-buf":38}],38:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),e("../buf")),a=e("./channel-buf"),e=(o=u.BaseBuffer,i(s,o),s.prototype.getUInt8=function(e){for(var t=0;t<this._buffers.length;t++){var r=this._buffers[t];if(!(e>=r.length))return r.getUInt8(e);e-=r.length}},s.prototype.getInt8=function(e){for(var t=0;t<this._buffers.length;t++){var r=this._buffers[t];if(!(e>=r.length))return r.getInt8(e);e-=r.length}},s.prototype.getFloat64=function(e){for(var t=(0,a.alloc)(8),r=0;r<8;r++)t.putUInt8(r,this.getUInt8(e+r));return t.getFloat64(0)},s);function s(e){for(var t=this,r=0,n=0;n<e.length;n++)r+=e[n].length;return(t=o.call(this,r)||this)._buffers=e,t}r.default=e},{"../buf":31,"./channel-buf":35}],39:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.utf8=r.alloc=r.ChannelConfig=void 0,o(e("./node"),r),o(e("./chunking"),r),e("./channel-config")),a=(Object.defineProperty(r,"ChannelConfig",{enumerable:!0,get:function(){return i(u).default}}),e("./channel-buf")),s=(Object.defineProperty(r,"alloc",{enumerable:!0,get:function(){return a.alloc}}),e("./utf8"));Object.defineProperty(r,"utf8",{enumerable:!0,get:function(){return i(s).default}})},{"./channel-buf":35,"./channel-config":36,"./chunking":37,"./node":34,"./utf8":40}],40:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),n(e("./channel-buf"))),s=e("neo4j-driver-core"),i=n(e("buffer")),c=new(e("string_decoder").StringDecoder)("utf8");r.default={encode:function(e){return new o.default((e=e,"function"==typeof i.default.Buffer.from?i.default.Buffer.from(e,"utf8"):new i.default.Buffer(e,"utf8")))},decode:function(e,t){if(Object.prototype.hasOwnProperty.call(e,"_buffer"))return n=t,a=(r=e).position,n=a+n,r.position=Math.min(n,r.length),r._buffer.toString("utf8",a,n);var o,i,u,r,n,a;if(Object.prototype.hasOwnProperty.call(e,"_buffers"))return o=function(e){return c.write(e._buffer)},r=function(){return c.end()},i=t,u=(a=e).position,a._updatePos(Math.min(t,a.length-u)),a._buffers.reduce(function(e,t){var r,n;return i<=0?e:u>=t.length?(u-=t.length,""):(t._updatePos(u-t.position),r=Math.min(t.length-u,i),n=t.readSlice(r),t._updatePos(r),i=Math.max(i-n.length,0),u=0,e+o(n))},"")+r();throw(0,s.newError)("Don't know how to decode strings from '".concat(e,"'"))}}},{"./channel-buf":35,buffer:116,"neo4j-driver-core":75,string_decoder:347}],41:[function(e,t,r){"use strict";var n,u,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},a=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),s(e("./connection-provider-pooled"))),c=e("../connection"),e=e("neo4j-driver-core"),l=e.internal.constants,f=l.BOLT_PROTOCOL_V3,p=l.BOLT_PROTOCOL_V4_0,d=l.BOLT_PROTOCOL_V4_4,h=e.error.SERVICE_UNAVAILABLE,l=(u=s.default,o(b,u),b.prototype.acquireConnection=function(e){var r=this,e=void 0===e?{}:e,n=(e.accessMode,e.database),t=(e.bookmarks,c.ConnectionErrorHandler.create({errorCode:h,handleAuthorizationExpired:function(e,t){return r._handleAuthorizationExpired(e,t,n)}}));return this._connectionPool.acquire(this._address).then(function(e){return new c.DelegateConnection(e,t)})},b.prototype._handleAuthorizationExpired=function(e,t,r){return this._log.warn("Direct driver ".concat(this._id," will close connection to ").concat(t," for database '").concat(r,"' because of an error ").concat(e.code," '").concat(e.message,"'")),this._connectionPool.purge(t).catch(function(){}),e},b.prototype._hasProtocolVersion=function(n){return i(this,void 0,void 0,function(){var t,r;return a(this,function(e){switch(e.label){case 0:return[4,(0,c.createChannelConnection)(this._address,this._config,this._createConnectionErrorHandler(),this._log)];case 1:return t=e.sent(),r=t.protocol()?t.protocol().version:null,[4,t.close()];case 2:return e.sent(),r?[2,n(r)]:[2,!1]}})})},b.prototype.supportsMultiDb=function(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return p<=e})];case 1:return[2,e.sent()]}})})},b.prototype.getNegotiatedProtocolVersion=function(){var r=this;return new Promise(function(e,t){r._hasProtocolVersion(e).catch(t)})},b.prototype.supportsTransactionConfig=function(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return f<=e})];case 1:return[2,e.sent()]}})})},b.prototype.supportsUserImpersonation=function(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return d<=e})];case 1:return[2,e.sent()]}})})},b.prototype.verifyConnectivityAndGetServerInfo=function(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._verifyConnectivityAndGetServerVersion({address:this._address})];case 1:return[2,e.sent()]}})})},b);function b(e){var t=e.id,r=e.config,n=e.log,o=e.address,i=e.userAgent,e=e.authToken,t=u.call(this,{id:t,config:r,log:n,userAgent:i,authToken:e})||this;return t._address=o,t}r.default=l},{"../connection":50,"./connection-provider-pooled":42,"neo4j-driver-core":75}],42:[function(e,t,r){"use strict";var n,a,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return u(t,e),t},c=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},l=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},f=(Object.defineProperty(r,"__esModule",{value:!0}),e("../connection")),p=s(e("../pool")),d=e("neo4j-driver-core"),h=d.error.SERVICE_UNAVAILABLE,s=(a=d.ConnectionProvider,o(b,a),b.prototype._createConnectionErrorHandler=function(){return new f.ConnectionErrorHandler(h)},b.prototype._createConnection=function(e,r){var n=this;return this._createChannelConnection(e).then(function(t){return t._release=function(){return r(e,t)},(n._openConnections[t.id]=t).connect(n._userAgent,n._authToken).catch(function(e){throw n._destroyConnection(t),e})})},b.prototype._validateConnection=function(e){if(!e.isOpen())return!1;var t=this._config.maxConnectionLifetime;return Date.now()-e.creationTimestamp<=t},b.prototype._destroyConnection=function(e){return delete this._openConnections[e.id],e.close()},b.prototype._verifyConnectivityAndGetServerVersion=function(e){var n=e.address;return c(this,void 0,void 0,function(){var t,r;return l(this,function(e){switch(e.label){case 0:return[4,this._connectionPool.acquire(n)];case 1:t=e.sent(),r=new d.ServerInfo(t.server,t.protocol().version),e.label=2;case 2:return e.trys.push([2,,5,7]),t.protocol().isLastMessageLogin()?[3,4]:[4,t.resetAndFlush()];case 3:e.sent(),e.label=4;case 4:return[3,7];case 5:return[4,t._release()];case 6:return e.sent(),[7];case 7:return[2,r]}})})},b.prototype.close=function(){return c(this,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return[4,this._connectionPool.close()];case 1:return e.sent(),[4,Promise.all(Object.values(this._openConnections).map(function(e){return e.close()}))];case 2:return e.sent(),[2]}})})},b._installIdleObserverOnConnection=function(e,t){e._queueObserver(t)},b._removeIdleObserverOnConnection=function(e){e._updateCurrentObserver()},b);function b(e,t){var r=e.id,n=e.config,o=e.log,i=e.userAgent,e=e.authToken,u=(void 0===t&&(t=null),a.call(this)||this);return u._id=r,u._config=n,u._log=o,u._userAgent=i,u._authToken=e,u._createChannelConnection=t||function(e){return(0,f.createChannelConnection)(e,u._config,u._createConnectionErrorHandler(),u._log)},u._connectionPool=new p.default({create:u._createConnection.bind(u),destroy:u._destroyConnection.bind(u),validate:u._validateConnection.bind(u),installIdleObserver:b._installIdleObserverOnConnection.bind(u),removeIdleObserver:b._removeIdleObserverOnConnection.bind(u),config:p.PoolConfig.fromDriverConfig(n),log:u._log}),u._openConnections={},u}r.default=s},{"../connection":50,"../pool":62,"neo4j-driver-core":75}],43:[function(e,D,t){"use strict";var n,l,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},d=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},h=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},p=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},b=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},y=(Object.defineProperty(t,"__esModule",{value:!0}),e("neo4j-driver-core")),v=u(e("../rediscovery")),m=e("../channel"),s=a(e("./connection-provider-single")),u=a(e("./connection-provider-pooled")),_=e("../load-balancing"),g=e("../connection"),O=y.error.SERVICE_UNAVAILABLE,w=y.error.SESSION_EXPIRED,c=y.internal.bookmarks.Bookmarks,a=y.internal.constants,S=a.ACCESS_MODE_READ,E=a.ACCESS_MODE_WRITE,P=a.BOLT_PROTOCOL_V3,j=a.BOLT_PROTOCOL_V4_0,T=a.BOLT_PROTOCOL_V4_4,C="Neo.ClientError.Database.DatabaseNotFound",k="Neo.ClientError.Transaction.InvalidBookmark",I="Neo.ClientError.Transaction.InvalidBookmarkMixture",A="Neo.ClientError.Security.AuthorizationExpired",x=(0,y.int)(3e4),e=(l=u.default,r(R,l),R.prototype._createConnectionErrorHandler=function(){return new g.ConnectionErrorHandler(w)},R.prototype._handleUnavailability=function(e,t,r){return this._log.warn("Routing driver ".concat(this._id," will forget ").concat(t," for database '").concat(r,"' because of an error ").concat(e.code," '").concat(e.message,"'")),this.forget(t,r||null),e},R.prototype._handleAuthorizationExpired=function(e,t,r){return this._log.warn("Routing driver ".concat(this._id," will close connections to ").concat(t," for database '").concat(r,"' because of an error ").concat(e.code," '").concat(e.message,"'")),this._connectionPool.purge(t).catch(function(){}),e},R.prototype._handleWriteFailure=function(e,t,r){return this._log.warn("Routing driver ".concat(this._id," will forget writer ").concat(t," for database '").concat(r,"' because of an error ").concat(e.code," '").concat(e.message,"'")),this.forgetWriter(t,r||null),(0,y.newError)("No longer possible to write to server at "+t,w,e)},R.prototype.acquireConnection=function(e){var e=void 0===e?{}:e,s=e.accessMode,c=e.database,l=e.bookmarks,f=e.impersonatedUser,p=e.onDatabaseNameResolved;return d(this,void 0,void 0,function(){var t,r,n,o,i,u,a=this;return h(this,function(e){switch(e.label){case 0:return n={database:c||null},o=new g.ConnectionErrorHandler(w,function(e,t){return a._handleUnavailability(e,t,n.database)},function(e,t){return a._handleWriteFailure(e,t,n.database)},function(e,t){return a._handleAuthorizationExpired(e,t,n.database)}),[4,this._freshRoutingTable({accessMode:s,database:n.database,bookmarks:l,impersonatedUser:f,onDatabaseNameResolved:function(e){n.database=n.database||e,p&&p(e)}})];case 1:if(i=e.sent(),s===S)r=this._loadBalancingStrategy.selectReader(i.readers),t="read";else{if(s!==E)throw(0,y.newError)("Illegal mode "+s);r=this._loadBalancingStrategy.selectWriter(i.writers),t="write"}if(!r)throw(0,y.newError)("Failed to obtain connection towards ".concat(t," server. Known routing table is: ").concat(i),w);e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this._acquireConnectionToServer(r,t,i)];case 3:return u=e.sent(),[2,new g.DelegateConnection(u,o)];case 4:throw u=e.sent(),o.handleAndTransformError(u,r);case 5:return[2]}})})},R.prototype._hasProtocolVersion=function(u){return d(this,void 0,void 0,function(){var t,r,n,o,i;return h(this,function(e){switch(e.label){case 0:return[4,this._resolveSeedRouter(this._seedRouter)];case 1:t=e.sent(),n=0,e.label=2;case 2:if(!(n<t.length))return[3,8];e.label=3;case 3:return e.trys.push([3,6,,7]),[4,(0,g.createChannelConnection)(t[n],this._config,this._createConnectionErrorHandler(),this._log)];case 4:return i=e.sent(),o=i.protocol()?i.protocol().version:null,[4,i.close()];case 5:return e.sent(),o?[2,u(o)]:[2,!1];case 6:return i=e.sent(),r=i,[3,7];case 7:return n++,[3,2];case 8:if(r)throw r;return[2,!1]}})})},R.prototype.supportsMultiDb=function(){return d(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return j<=e})];case 1:return[2,e.sent()]}})})},R.prototype.supportsTransactionConfig=function(){return d(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return P<=e})];case 1:return[2,e.sent()]}})})},R.prototype.supportsUserImpersonation=function(){return d(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this._hasProtocolVersion(function(e){return T<=e})];case 1:return[2,e.sent()]}})})},R.prototype.getNegotiatedProtocolVersion=function(){var r=this;return new Promise(function(e,t){r._hasProtocolVersion(e).catch(t)})},R.prototype.verifyConnectivityAndGetServerInfo=function(e){var l=e.database,f=e.accessMode;return d(this,void 0,void 0,function(){var t,r,n,o,i,u,a,s,c;return h(this,function(e){switch(e.label){case 0:return t={database:l||null},[4,this._freshRoutingTable({accessMode:f,database:t.database,onDatabaseNameResolved:function(e){t.database=t.database||e}})];case 1:r=e.sent(),r=f===E?r.writers:r.readers,n=(0,y.newError)("No servers available for database '".concat(t.database,"' with access mode '").concat(f,"'"),O),e.label=2;case 2:e.trys.push([2,9,10,11]),o=p(r),i=o.next(),e.label=3;case 3:if(i.done)return[3,8];u=i.value,e.label=4;case 4:return e.trys.push([4,6,,7]),[4,this._verifyConnectivityAndGetServerVersion({address:u})];case 5:return[2,e.sent()];case 6:return a=e.sent(),n=a,[3,7];case 7:return i=o.next(),[3,3];case 8:return[3,11];case 9:return a=e.sent(),s={error:a},[3,11];case 10:try{i&&!i.done&&(c=o.return)&&c.call(o)}finally{if(s)throw s.error}return[7];case 11:throw n}})})},R.prototype.forget=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forget(t)}}),this._connectionPool.purge(t).catch(function(){})},R.prototype.forgetWriter=function(t,e){this._routingTableRegistry.apply(e,{applyWhenExists:function(e){return e.forgetWriter(t)}})},R.prototype._acquireConnectionToServer=function(e,t,r){return this._connectionPool.acquire(e)},R.prototype._freshRoutingTable=function(e){var e=void 0===e?{}:e,t=e.accessMode,r=e.database,n=e.bookmarks,o=e.impersonatedUser,e=e.onDatabaseNameResolved,i=this._routingTableRegistry.get(r,function(){return new v.RoutingTable({database:r})});return i.isStaleFor(t)?(this._log.info('Routing table is stale for database: "'.concat(r,'" and access mode: "').concat(t,'": ').concat(i)),this._refreshRoutingTable(i,n,o,e)):i},R.prototype._refreshRoutingTable=function(e,t,r,n){var o=e.routers;return this._useSeedRouter?this._fetchRoutingTableFromSeedRouterFallbackToKnownRouters(o,e,t,r,n):this._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter(o,e,t,r,n)},R.prototype._fetchRoutingTableFromSeedRouterFallbackToKnownRouters=function(u,a,s,c,l){return d(this,void 0,void 0,function(){var t,r,n,o,i;return h(this,function(e){switch(e.label){case 0:return t=[],[4,this._fetchRoutingTableUsingSeedRouter(t,this._seedRouter,a,s,c)];case 1:return(t=b.apply(void 0,[e.sent(),2]),r=t[0],n=t[1],r)?(this._useSeedRouter=!1,[3,4]):[3,2];case 2:return[4,this._fetchRoutingTableUsingKnownRouters(u,a,s,c)];case 3:i=b.apply(void 0,[e.sent(),2]),o=i[0],i=i[1],r=o,n=i||n,e.label=4;case 4:return[4,this._applyRoutingTableIfPossible(a,r,l,n)];case 5:return[2,e.sent()]}})})},R.prototype._fetchRoutingTableFromKnownRoutersFallbackToSeedRouter=function(o,i,u,a,s){return d(this,void 0,void 0,function(){var t,r,n;return h(this,function(e){switch(e.label){case 0:return[4,this._fetchRoutingTableUsingKnownRouters(o,i,u,a)];case 1:return r=b.apply(void 0,[e.sent(),2]),t=r[0],r=r[1],t?[3,3]:[4,this._fetchRoutingTableUsingSeedRouter(o,this._seedRouter,i,u,a)];case 2:n=b.apply(void 0,[e.sent(),2]),t=n[0],r=n[1],e.label=3;case 3:return[4,this._applyRoutingTableIfPossible(i,t,s,r)];case 4:return[2,e.sent()]}})})},R.prototype._fetchRoutingTableUsingKnownRouters=function(n,o,i,u){return d(this,void 0,void 0,function(){var t,r;return h(this,function(e){switch(e.label){case 0:return[4,this._fetchRoutingTable(n,o,i,u)];case 1:return(t=b.apply(void 0,[e.sent(),2]),r=t[0],t=t[1],r)?[2,[r,null]]:(r=n.length-1,R._forgetRouter(o,n,r),[2,[null,t]])}})})},R.prototype._fetchRoutingTableUsingSeedRouter=function(r,n,o,i,u){return d(this,void 0,void 0,function(){var t;return h(this,function(e){switch(e.label){case 0:return[4,this._resolveSeedRouter(n)];case 1:return t=e.sent(),t=t.filter(function(e){return r.indexOf(e)<0}),[4,this._fetchRoutingTable(t,o,i,u)];case 2:return[2,e.sent()]}})})},R.prototype._resolveSeedRouter=function(n){return d(this,void 0,void 0,function(){var t,r=this;return h(this,function(e){switch(e.label){case 0:return[4,this._hostNameResolver.resolve(n)];case 1:return t=e.sent(),[4,Promise.all(t.map(function(e){return r._dnsResolver.resolve(e)}))];case 2:return t=e.sent(),[2,[].concat.apply([],t)]}})})},R.prototype._fetchRoutingTable=function(s,c,l,f){return d(this,void 0,void 0,function(){var t=this;return h(this,function(e){return[2,s.reduce(function(i,u,a){return d(t,void 0,void 0,function(){var t,r,n,o;return h(this,function(e){switch(e.label){case 0:return[4,i];case 1:return(t=b.apply(void 0,[e.sent(),1]),t=t[0])?[2,[t,null]]:(R._forgetRouter(c,s,a-1),[4,this._createSessionForRediscovery(u,l,f)]);case 2:if(t=b.apply(void 0,[e.sent(),2]),r=t[0],n=t[1],!r)return[3,8];e.label=3;case 3:return e.trys.push([3,5,6,7]),[4,this._rediscovery.lookupRoutingTableOnRouter(r,c.database,u,f)];case 4:return[2,[e.sent(),null]];case 5:return o=e.sent(),[2,this._handleRediscoveryError(o,u)];case 6:return r.close(),[7];case 7:return[3,9];case 8:return[2,[null,n]];case 9:return[2]}})})},Promise.resolve([null,null]))]})})},R.prototype._createSessionForRediscovery=function(o,i,u){return d(this,void 0,void 0,function(){var t,r,n=this;return h(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this._connectionPool.acquire(o)];case 1:return r=e.sent(),t=g.ConnectionErrorHandler.create({errorCode:w,handleAuthorizationExpired:function(e,t){return n._handleAuthorizationExpired(e,t)}}),t=new s.default(new g.DelegateConnection(r,t)),r.protocol().version<4?[2,[new y.Session({mode:E,bookmarks:c.empty(),connectionProvider:t}),null]]:[2,[new y.Session({mode:S,database:"system",bookmarks:i,connectionProvider:t,impersonatedUser:u}),null]];case 2:return r=e.sent(),[2,this._handleRediscoveryError(r,o)];case 3:return[2]}})})},R.prototype._handleRediscoveryError=function(e,t){if([C,k,I].includes(e.code)||(r=e).code.startsWith("Neo.ClientError.Security.")&&![A].includes(r.code))throw e;if("Neo.ClientError.Procedure.ProcedureNotFound"===e.code)throw(0,y.newError)("Server at ".concat(t.asHostPort()," can't perform routing. Make sure you are connecting to a causal cluster"),O,e);var r;return this._log.warn("unable to fetch routing table because of an error ".concat(e)),[null,e]},R.prototype._applyRoutingTableIfPossible=function(t,r,n,o){return d(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:if(r)return 0===r.writers.length&&(this._useSeedRouter=!0),[4,this._updateRoutingTable(r,n)];throw(0,y.newError)("Could not perform discovery. No routing servers available. Known routing table: ".concat(t),O,o);case 1:return e.sent(),[2,r]}})})},R.prototype._updateRoutingTable=function(t,r){return d(this,void 0,void 0,function(){return h(this,function(e){switch(e.label){case 0:return[4,this._connectionPool.keepAll(t.allServers())];case 1:return e.sent(),this._routingTableRegistry.removeExpired(),this._routingTableRegistry.register(t),r(t.database),this._log.info("Updated routing table ".concat(t)),[2]}})})},R._forgetRouter=function(e,t,r){t=t[r];e&&t&&e.forgetRouter(t)},R);function R(e){var t=e.id,r=e.address,n=e.routingContext,o=e.hostNameResolver,i=e.config,u=e.log,a=e.userAgent,s=e.authToken,e=e.routingTablePurgeDelay,c=l.call(this,{id:t,config:i,log:u,userAgent:a,authToken:s},function(e){return(0,g.createChannelConnection)(e,c._config,c._createConnectionErrorHandler(),c._log,c._routingContext)})||this;return c._routingContext=f(f({},n),{address:r.toString()}),c._seedRouter=r,c._rediscovery=new v.default(c._routingContext),c._loadBalancingStrategy=new _.LeastConnectedLoadBalancingStrategy(c._connectionPool),c._hostNameResolver=o,c._dnsResolver=new m.HostNameResolver,c._log=u,c._useSeedRouter=!0,c._routingTableRegistry=new M(e?(0,y.int)(e):x),c}t.default=e;N.prototype.register=function(e){return this._tables.set(e.database,e),this},N.prototype.apply=function(e,t){var t=void 0===t?{}:t,r=t.applyWhenExists,t=t.applyWhenDontExists,t=void 0===t?function(){}:t;return this._tables.has(e)?r(this._tables.get(e)):"string"==typeof e||null===e?t():this._forEach(r),this},N.prototype.get=function(e,t){return this._tables.has(e)?this._tables.get(e):"function"==typeof t?t():t},N.prototype.removeExpired=function(){var t=this;return this._removeIf(function(e){return e.isExpiredFor(t._routingTablePurgeDelay)})},N.prototype._forEach=function(e){var t,r;try{for(var n=p(this._tables),o=n.next();!o.done;o=n.next())e(b(o.value,2)[1])}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},N.prototype._remove=function(e){return this._tables.delete(e),this},N.prototype._removeIf=function(e){var t,r;try{for(var n=p(this._tables),o=n.next();!o.done;o=n.next()){var i=b(o.value,2),u=i[0];e(i[1])&&this._remove(u)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this};var M=N;function N(e){this._tables=new Map,this._routingTablePurgeDelay=e}},{"../channel":39,"../connection":50,"../load-balancing":54,"../rediscovery":65,"./connection-provider-pooled":42,"./connection-provider-single":44,"neo4j-driver-core":75}],44:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),e("neo4j-driver-core")),e=(o=e.ConnectionProvider,i(u,o),u.prototype.acquireConnection=function(e){e=void 0===e?{}:e,e.accessMode,e.database,e.bookmarks,e=this._connection;return this._connection=null,Promise.resolve(e)},u);function u(e){var t=o.call(this)||this;return t._connection=e,t}r.default=e},{"neo4j-driver-core":75}],45:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingConnectionProvider=r.DirectConnectionProvider=r.PooledConnectionProvider=r.SingleConnectionProvider=void 0,e("./connection-provider-single")),i=(Object.defineProperty(r,"SingleConnectionProvider",{enumerable:!0,get:function(){return n(o).default}}),e("./connection-provider-pooled")),u=(Object.defineProperty(r,"PooledConnectionProvider",{enumerable:!0,get:function(){return n(i).default}}),e("./connection-provider-direct")),a=(Object.defineProperty(r,"DirectConnectionProvider",{enumerable:!0,get:function(){return n(u).default}}),e("./connection-provider-routing"));Object.defineProperty(r,"RoutingConnectionProvider",{enumerable:!0,get:function(){return n(a).default}})},{"./connection-provider-direct":41,"./connection-provider-pooled":42,"./connection-provider-routing":43,"./connection-provider-single":44}],46:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},u=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},f=(Object.defineProperty(r,"__esModule",{value:!0}),r.createChannelConnection=void 0,e("../channel")),s=e("neo4j-driver-core"),c=a(e("./connection")),p=a(e("../bolt")),l=s.error.PROTOCOL_ERROR,d=s.internal.logger.Logger,h=0;r.createChannelConnection=function(i,u,a,s,c,e){void 0===c&&(c=null);var l=(e=void 0===e?function(e){return new f.Channel(e)}:e)(new f.ChannelConfig(i,u,a.errorCode()));return p.default.handshake(l).then(function(e){var r=e.protocolVersion,e=e.consumeRemainingBuffer,n=new f.Chunker(l),o=new f.Dechunker,t=new y(l,a,i,s,u.disableLosslessIntegers,c,n,function(t){return p.default.create({version:r,channel:l,chunker:n,dechunker:o,disableLosslessIntegers:u.disableLosslessIntegers,useBigInt:u.useBigInt,serversideRouting:c,server:t.server,log:t.logger,observer:{onPendingObserversChange:t._handleOngoingRequestsNumberChange.bind(t),onError:t._handleFatalError.bind(t),onFailure:t._resetOnFailure.bind(t),onProtocolError:t._handleProtocolError.bind(t),onErrorApplyTransformation:function(e){return t.handleAndTransformError(e,t._address)}}})});return e(function(e){return o.write(e)}),t}).catch(function(e){return l.close().then(function(){throw e})})};b=c.default,o(v,b),Object.defineProperty(v.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"databaseId",{get:function(){return this._dbConnectionId},set:function(e){this._dbConnectionId=e},enumerable:!1,configurable:!0}),v.prototype.connect=function(e,t){return this._initialize(e,t)},v.prototype._initialize=function(e,n){var o=this,i=this;return new Promise(function(r,t){o._protocol.initialize({userAgent:e,authToken:n,onError:function(e){return t(e)},onComplete:function(e){var t;e&&(t=e.server,o.version&&!t||(o.version=t),t=e.connection_id,o.databaseId||(o.databaseId=t),e.hints&&null!=(t=e.hints["connection.recv_timeout_seconds"])&&(e=(0,s.toNumber)(t),Number.isInteger(e)&&0<e?o._ch.setupReceiveTimeout(1e3*e):o._log.info("Server located at ".concat(o._address," supplied an invalid connection receive timeout value (").concat(e,"). ")+"Please, verify the server configuration and status because this can be the symptom of a bigger issue."))),r(i)}})})},v.prototype.protocol=function(){return this._protocol},Object.defineProperty(v.prototype,"address",{get:function(){return this._address},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"version",{get:function(){return this._server.version},set:function(e){this._server.version=e},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"server",{get:function(){return this._server},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"logger",{get:function(){return this._log},enumerable:!1,configurable:!0}),v.prototype._handleFatalError=function(e){this._isBroken=!0,this._error=this.handleAndTransformError(this._protocol.currentFailure||e,this._address),this._log.isErrorEnabled()&&this._log.error("experienced a fatal error caused by ".concat(this._error," (").concat(s.json.stringify(this._error),")")),this._protocol.notifyFatalError(this._error)},v.prototype._queueObserver=function(e){return this._protocol.queueObserverIfProtocolIsNotBroken(e)},v.prototype.hasOngoingObservableRequests=function(){return this._protocol.hasOngoingObservableRequests()},v.prototype.resetAndFlush=function(){var r=this;return new Promise(function(e,t){r._reset({onError:function(e){r._isBroken?t(e):(e=r._handleProtocolError("Received FAILURE as a response for RESET: "+e),t(e))},onComplete:function(){e()}})})},v.prototype._resetOnFailure=function(){var e=this;this.isOpen()&&this._reset({onError:function(){e._protocol.resetFailure()},onComplete:function(){e._protocol.resetFailure()}})},v.prototype._reset=function(t){var e,r=this;this._reseting?this._protocol.isLastMessageReset()?this._resetObservers.push(t):this._protocol.reset({onError:function(e){t.onError(e)},onComplete:function(){t.onComplete()}}):(this._resetObservers.push(t),this._reseting=!0,e=function(e){r._reseting=!1;var t=r._resetObservers;r._resetObservers=[],t.forEach(e)},this._protocol.reset({onError:function(t){e(function(e){return e.onError(t)})},onComplete:function(){e(function(e){return e.onComplete()})}}))},v.prototype._updateCurrentObserver=function(){this._protocol.updateCurrentObserver()},v.prototype.isOpen=function(){return!this._isBroken&&this._ch._open},v.prototype._handleOngoingRequestsNumberChange=function(e){0===e?this._ch.stopReceiveTimeout():this._ch.startReceiveTimeout()},v.prototype.close=function(){return i(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return this._log.isDebugEnabled()&&this._log.debug("closing"),this._protocol&&this.isOpen()&&this._protocol.prepareToClose(),[4,this._ch.close()];case 1:return e.sent(),this._log.isDebugEnabled()&&this._log.debug("closed"),[2]}})})},v.prototype.toString=function(){return"Connection [".concat(this.id,"][").concat(this.databaseId||"","]")},v.prototype._handleProtocolError=function(e){this._protocol.resetFailure(),this._updateCurrentObserver();e=(0,s.newError)(e,l);return this._handleFatalError(e),e};var b,y=v;function v(e,t,r,n,o,i,u,a){void 0===o&&(o=!1),void 0===i&&(i=null);var s,c,t=b.call(this,t)||this;return t._reseting=!1,t._resetObservers=[],t._id=h++,t._address=r,t._server={address:r.asHostPort()},t.creationTimestamp=Date.now(),t._disableLosslessIntegers=o,t._ch=e,t._chunker=u,t._log=(s=t,new d((c=n)._level,function(e,t){return c._loggerFunction(e,"".concat(s," ").concat(t))})),t._serversideRouting=i,t._dbConnectionId=null,t._protocol=a(t),t._isBroken=!1,t._log.isDebugEnabled()&&t._log.debug("created towards ".concat(r)),t}r.default=y},{"../bolt":23,"../channel":39,"./connection":49,"neo4j-driver-core":75}],47:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./connection"))),e=(o=u.default,i(a,o),Object.defineProperty(a.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"databaseId",{get:function(){return this._delegate.databaseId},set:function(e){this._delegate.databaseId=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"server",{get:function(){return this._delegate.server},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"address",{get:function(){return this._delegate.address},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"version",{get:function(){return this._delegate.version},set:function(e){this._delegate.version=e},enumerable:!1,configurable:!0}),a.prototype.isOpen=function(){return this._delegate.isOpen()},a.prototype.protocol=function(){return this._delegate.protocol()},a.prototype.connect=function(e,t){return this._delegate.connect(e,t)},a.prototype.write=function(e,t,r){return this._delegate.write(e,t,r)},a.prototype.resetAndFlush=function(){return this._delegate.resetAndFlush()},a.prototype.hasOngoingObservableRequests=function(){return this._delegate.hasOngoingObservableRequests()},a.prototype.close=function(){return this._delegate.close()},a.prototype._release=function(){return this._originalErrorHandler&&(this._delegate._errorHandler=this._originalErrorHandler),this._delegate._release()},a);function a(e,t){var r=o.call(this,t)||this;return t&&(r._originalErrorHandler=e._errorHandler,e._errorHandler=r._errorHandler),r._delegate=e,r}r.default=e},{"./connection":49}],48:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var e=e("neo4j-driver-core"),n=e.error.SERVICE_UNAVAILABLE,o=e.error.SESSION_EXPIRED;function i(e,t,r,n){this._errorCode=e,this._handleUnavailability=t||u,this._handleWriteFailure=r||u,this._handleAuthorizationExpired=n||u}function u(e){return e}i.create=function(e){return new i(e.errorCode,e.handleUnavailability,e.handleWriteFailure,e.handleAuthorizationExpired)},i.prototype.errorCode=function(){return this._errorCode},i.prototype.handleAndTransformError=function(e,t){return!(r=e)||"Neo.ClientError.Security.AuthorizationExpired"!==r.code&&"Neo.ClientError.Security.TokenExpired"!==r.code?function(e){if(e)return e.code===o||e.code===n||"Neo.TransientError.General.DatabaseUnavailable"===e.code;return}(e)?this._handleUnavailability(e,t):function(e){if(e)return"Neo.ClientError.Cluster.NotALeader"===e.code||"Neo.ClientError.General.ForbiddenOnReadOnlyDatabase"===e.code;return}(e)?this._handleWriteFailure(e,t):e:this._handleAuthorizationExpired(e,t);var r},r.default=i},{"neo4j-driver-core":75}],49:[function(e,t,r){"use strict";function n(e){this._errorHandler=e}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(n.prototype,"id",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"databaseId",{get:function(){throw new Error("not implemented")},set:function(e){throw new Error("not implemented")},enumerable:!1,configurable:!0}),n.prototype.isOpen=function(){throw new Error("not implemented")},n.prototype.protocol=function(){throw new Error("not implemented")},Object.defineProperty(n.prototype,"address",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){throw new Error("not implemented")},set:function(e){throw new Error("not implemented")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"server",{get:function(){throw new Error("not implemented")},enumerable:!1,configurable:!0}),n.prototype.connect=function(e,t){throw new Error("not implemented")},n.prototype.write=function(e,t,r){throw new Error("not implemented")},n.prototype.resetAndFlush=function(){throw new Error("not implemented")},n.prototype.hasOngoingObservableRequests=function(){throw new Error("not implemented")},n.prototype.close=function(){throw new Error("not implemented")},n.prototype.handleAndTransformError=function(e,t){return this._errorHandler?this._errorHandler.handleAndTransformError(e,t):e},r.default=n},{}],50:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.createChannelConnection=r.ConnectionErrorHandler=r.DelegateConnection=r.ChannelConnection=r.Connection=void 0,u(e("./connection"))),s=(r.Connection=a.default,i(e("./connection-channel"))),i=(r.ChannelConnection=s.default,Object.defineProperty(r,"createChannelConnection",{enumerable:!0,get:function(){return s.createChannelConnection}}),u(e("./connection-delegate"))),i=(r.DelegateConnection=i.default,u(e("./connection-error-handler")));r.ConnectionErrorHandler=i.default,r.default=a.default},{"./connection":49,"./connection-channel":46,"./connection-delegate":47,"./connection-error-handler":48}],51:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.pool=r.packstream=r.channel=r.buf=r.bolt=r.loadBalancing=void 0,r.loadBalancing=i(e("./load-balancing")),r.bolt=i(e("./bolt")),r.buf=i(e("./buf")),r.channel=i(e("./channel")),r.packstream=i(e("./packstream")),r.pool=i(e("./pool")),u(e("./connection-provider"),r)},{"./bolt":23,"./buf":31,"./channel":39,"./connection-provider":45,"./load-balancing":54,"./packstream":58,"./pool":62}],52:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.identity=void 0,r.identity=function(e){return e}},{}],53:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.functional=void 0,r.functional=i(e("./functional"))},{"./functional":52}],54:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.LeastConnectedLoadBalancingStrategy=r.LoadBalancingStrategy=void 0,n(e("./load-balancing-strategy"))),o=(r.LoadBalancingStrategy=o.default,n(e("./least-connected-load-balancing-strategy")));r.LeastConnectedLoadBalancingStrategy=o.default,r.default=o.default},{"./least-connected-load-balancing-strategy":55,"./load-balancing-strategy":56}],55:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./round-robin-array-index"))),u=u(e("./load-balancing-strategy")),e=(o=u.default,i(s,o),s.prototype.selectReader=function(e){return this._select(e,this._readersIndex)},s.prototype.selectWriter=function(e){return this._select(e,this._writersIndex)},s.prototype._select=function(e,t){var r=e.length;if(0===r)return null;var n=t.next(r),o=n,i=null,u=Number.MAX_SAFE_INTEGER;do{var a=e[o],s=this._connectionPool.activeResourceCount(a)}while(s<u&&(i=a,u=s),o===r-1?o=0:o++,o!==n);return i},s);function s(e){var t=o.call(this)||this;return t._readersIndex=new a.default,t._writersIndex=new a.default,t._connectionPool=e,t}r.default=e},{"./load-balancing-strategy":56,"./round-robin-array-index":57}],56:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.selectReader=function(e){throw new Error("Abstract function")},n.prototype.selectWriter=function(e){throw new Error("Abstract function")},r.default=n},{}],57:[function(e,t,r){"use strict";function n(e){this._offset=e||0}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.next=function(e){if(0===e)return-1;var t=this._offset;return this._offset+=1,this._offset===Number.MAX_SAFE_INTEGER&&(this._offset=0),t%e},r.default=n},{}],58:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.structure=r.v2=r.v1=void 0,i(e("./packstream-v1"))),u=(r.v1=u,i(e("./packstream-v2"))),i=(r.v2=u,i(e("./structure")));r.structure=i,r.default=u},{"./packstream-v1":59,"./packstream-v2":60,"./structure":61}],59:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Unpacker=r.Packer=void 0;var o=e("../channel"),a=e("../lang"),s=e("./structure"),c=e("neo4j-driver-core"),n=c.error.PROTOCOL_ERROR;function i(e){this._ch=e,this._byteArraysSupported=!0}function u(e,t){void 0===t&&(t=!1),this._disableLosslessIntegers=e=void 0===e?!1:e,this._useBigInt=t}i.prototype.packable=function(o,i){var e,u=this;void 0===i&&(i=a.functional.identity);try{o=i(o)}catch(e){return function(){throw e}}if(null===o)return function(){return u._ch.writeUInt8(192)};if(!0===o)return function(){return u._ch.writeUInt8(195)};if(!1===o)return function(){return u._ch.writeUInt8(194)};if("number"==typeof o)return function(){return u.packFloat(o)};if("string"==typeof o)return function(){return u.packString(o)};if("bigint"==typeof o)return function(){return u.packInteger((0,c.int)(o))};if((0,c.isInt)(o))return function(){return u.packInteger(o)};if(o instanceof Int8Array)return function(){return u.packBytes(o)};if(o instanceof Array)return function(){u.packListHeader(o.length);for(var e=0;e<o.length;e++)u.packable(void 0===o[e]?null:o[e],i)()};if(null!=(e=o)&&"function"==typeof e[Symbol.iterator])return this.packableIterable(o,i);if(o instanceof s.Structure){for(var t=[],r=0;r<o.fields.length;r++)t[r]=this.packable(o.fields[r],i);return function(){return u.packStruct(o.signature,t)}}return"object"==typeof o?function(){for(var e=Object.keys(o),t=0,r=0;r<e.length;r++)void 0!==o[e[r]]&&t++;u.packMapHeader(t);for(r=0;r<e.length;r++){var n=e[r];void 0!==o[n]&&(u.packString(n),u.packable(o[n],i)())}}:this._nonPackableValue("Unable to pack the given value: ".concat(o))},i.prototype.packableIterable=function(t,e){try{var r=Array.from(t);return this.packable(r,e)}catch(e){throw(0,c.newError)("Cannot pack given iterable, ".concat(e.message,": ").concat(t))}},i.prototype.packStruct=function(e,t){this.packStructHeader((t=t||[]).length,e);for(var r=0;r<t.length;r++)t[r]()},i.prototype.packInteger=function(e){var t=e.high,r=e.low;e.greaterThanOrEqual(-16)&&e.lessThan(128)?this._ch.writeInt8(r):e.greaterThanOrEqual(-128)&&e.lessThan(-16)?(this._ch.writeUInt8(200),this._ch.writeInt8(r)):e.greaterThanOrEqual(-32768)&&e.lessThan(32768)?(this._ch.writeUInt8(201),this._ch.writeInt16(r)):(e.greaterThanOrEqual(-2147483648)&&e.lessThan(2147483648)?this._ch.writeUInt8(202):(this._ch.writeUInt8(203),this._ch.writeInt32(t)),this._ch.writeInt32(r))},i.prototype.packFloat=function(e){this._ch.writeUInt8(193),this._ch.writeFloat64(e)},i.prototype.packString=function(e){var e=o.utf8.encode(e),t=e.length;if(t<16)this._ch.writeUInt8(128|t),this._ch.writeBytes(e);else if(t<256)this._ch.writeUInt8(208),this._ch.writeUInt8(t),this._ch.writeBytes(e);else if(t<65536)this._ch.writeUInt8(209),this._ch.writeUInt8(t/256>>0),this._ch.writeUInt8(t%256),this._ch.writeBytes(e);else{if(!(t<4294967296))throw(0,c.newError)("UTF-8 strings of size "+t+" are not supported");this._ch.writeUInt8(210),this._ch.writeUInt8((t/16777216>>0)%256),this._ch.writeUInt8((t/65536>>0)%256),this._ch.writeUInt8((t/256>>0)%256),this._ch.writeUInt8(t%256),this._ch.writeBytes(e)}},i.prototype.packListHeader=function(e){if(e<16)this._ch.writeUInt8(144|e);else if(e<256)this._ch.writeUInt8(212),this._ch.writeUInt8(e);else if(e<65536)this._ch.writeUInt8(213),this._ch.writeUInt8((e/256>>0)%256),this._ch.writeUInt8(e%256);else{if(!(e<4294967296))throw(0,c.newError)("Lists of size "+e+" are not supported");this._ch.writeUInt8(214),this._ch.writeUInt8((e/16777216>>0)%256),this._ch.writeUInt8((e/65536>>0)%256),this._ch.writeUInt8((e/256>>0)%256),this._ch.writeUInt8(e%256)}},i.prototype.packBytes=function(e){if(!this._byteArraysSupported)throw(0,c.newError)("Byte arrays are not supported by the database this driver is connected to");this.packBytesHeader(e.length);for(var t=0;t<e.length;t++)this._ch.writeInt8(e[t])},i.prototype.packBytesHeader=function(e){if(e<256)this._ch.writeUInt8(204),this._ch.writeUInt8(e);else if(e<65536)this._ch.writeUInt8(205),this._ch.writeUInt8((e/256>>0)%256),this._ch.writeUInt8(e%256);else{if(!(e<4294967296))throw(0,c.newError)("Byte arrays of size "+e+" are not supported");this._ch.writeUInt8(206),this._ch.writeUInt8((e/16777216>>0)%256),this._ch.writeUInt8((e/65536>>0)%256),this._ch.writeUInt8((e/256>>0)%256),this._ch.writeUInt8(e%256)}},i.prototype.packMapHeader=function(e){if(e<16)this._ch.writeUInt8(160|e);else if(e<256)this._ch.writeUInt8(216),this._ch.writeUInt8(e);else if(e<65536)this._ch.writeUInt8(217),this._ch.writeUInt8(e/256>>0),this._ch.writeUInt8(e%256);else{if(!(e<4294967296))throw(0,c.newError)("Maps of size "+e+" are not supported");this._ch.writeUInt8(218),this._ch.writeUInt8((e/16777216>>0)%256),this._ch.writeUInt8((e/65536>>0)%256),this._ch.writeUInt8((e/256>>0)%256),this._ch.writeUInt8(e%256)}},i.prototype.packStructHeader=function(e,t){if(e<16)this._ch.writeUInt8(176|e),this._ch.writeUInt8(t);else if(e<256)this._ch.writeUInt8(220),this._ch.writeUInt8(e),this._ch.writeUInt8(t);else{if(!(e<65536))throw(0,c.newError)("Structures of size "+e+" are not supported");this._ch.writeUInt8(221),this._ch.writeUInt8(e/256>>0),this._ch.writeUInt8(e%256)}},i.prototype.disableByteArrays=function(){this._byteArraysSupported=!1},i.prototype._nonPackableValue=function(e){return function(){throw(0,c.newError)(e,n)}},r.Packer=i,u.prototype.unpack=function(e,t){void 0===t&&(t=a.functional.identity);var r=e.readUInt8(),n=240&r,o=15&r;if(192===r)return null;var i=this._unpackBoolean(r);if(null!==i)return i;i=this._unpackNumberOrInteger(r,e);if(null!==i){if((0,c.isInt)(i)){if(this._useBigInt)return i.toBigInt();if(this._disableLosslessIntegers)return i.toNumberOrInfinity()}return i}i=this._unpackString(r,n,o,e);if(null!==i)return i;i=this._unpackList(r,n,o,e,t);if(null!==i)return i;i=this._unpackByteArray(r,e);if(null!==i)return i;i=this._unpackMap(r,n,o,e,t);if(null!==i)return i;i=this._unpackStruct(r,n,o,e,t);if(null!==i)return i;throw(0,c.newError)("Unknown packed value with marker "+r.toString(16))},u.prototype.unpackInteger=function(e){var t=e.readUInt8(),e=this._unpackInteger(t,e);if(null==e)throw(0,c.newError)("Unable to unpack integer value with marker "+t.toString(16));return e},u.prototype._unpackBoolean=function(e){return 195===e||194!==e&&null},u.prototype._unpackNumberOrInteger=function(e,t){return 193===e?t.readFloat64():this._unpackInteger(e,t)},u.prototype._unpackInteger=function(e,t){var r;return 0<=e&&e<128?(0,c.int)(e):240<=e&&e<256?(0,c.int)(e-256):200===e?(0,c.int)(t.readInt8()):201===e?(0,c.int)(t.readInt16()):202===e?(r=t.readInt32(),(0,c.int)(r)):203===e?(r=t.readInt32(),e=t.readInt32(),new c.Integer(e,r)):null},u.prototype._unpackString=function(e,t,r,n){return 128===t?o.utf8.decode(n,r):208===e?o.utf8.decode(n,n.readUInt8()):209===e?o.utf8.decode(n,n.readUInt16()):210===e?o.utf8.decode(n,n.readUInt32()):null},u.prototype._unpackList=function(e,t,r,n,o){return 144===t?this._unpackListWithSize(r,n,o):212===e?this._unpackListWithSize(n.readUInt8(),n,o):213===e?this._unpackListWithSize(n.readUInt16(),n,o):214===e?this._unpackListWithSize(n.readUInt32(),n,o):null},u.prototype._unpackListWithSize=function(e,t,r){for(var n=[],o=0;o<e;o++)n.push(this.unpack(t,r));return n},u.prototype._unpackByteArray=function(e,t){return 204===e?this._unpackByteArrayWithSize(t.readUInt8(),t):205===e?this._unpackByteArrayWithSize(t.readUInt16(),t):206===e?this._unpackByteArrayWithSize(t.readUInt32(),t):null},u.prototype._unpackByteArrayWithSize=function(e,t){for(var r=new Int8Array(e),n=0;n<e;n++)r[n]=t.readInt8();return r},u.prototype._unpackMap=function(e,t,r,n,o){return 160===t?this._unpackMapWithSize(r,n,o):216===e?this._unpackMapWithSize(n.readUInt8(),n,o):217===e?this._unpackMapWithSize(n.readUInt16(),n,o):218===e?this._unpackMapWithSize(n.readUInt32(),n,o):null},u.prototype._unpackMapWithSize=function(e,t,r){for(var n={},o=0;o<e;o++)n[this.unpack(t,r)]=this.unpack(t,r);return n},u.prototype._unpackStruct=function(e,t,r,n,o){return 176===t?this._unpackStructWithSize(r,n,o):220===e?this._unpackStructWithSize(n.readUInt8(),n,o):221===e?this._unpackStructWithSize(n.readUInt16(),n,o):null},u.prototype._unpackStructWithSize=function(e,t,r){for(var n=t.readUInt8(),o=new s.Structure(n,[]),i=0;i<e;i++)o.fields.push(this.unpack(t,r));return r(o)},r.Unpacker=u},{"../channel":39,"../lang":53,"./structure":61,"neo4j-driver-core":75}],60:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&u(t,e,r);return a(t,e),t},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.Unpacker=r.Packer=void 0,s(e("./packstream-v1"))),e=(o=s.Packer,i(c,o),c.prototype.disableByteArrays=function(){throw new Error("Bolt V2 should always support byte arrays")},c);function c(){return null!==o&&o.apply(this,arguments)||this}r.Packer=e;l=s.Unpacker,i(f,l);var l,e=f;function f(e,t){return l.call(this,e=void 0===e?!1:e,t=void 0===t?!1:t)||this}r.Unpacker=e},{"./packstream-v1":59}],61:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.verifyStructSize=r.Structure=void 0;var n=e("neo4j-driver-core"),o=n.error.PROTOCOL_ERROR,e=(Object.defineProperty(i.prototype,"size",{get:function(){return this.fields.length},enumerable:!1,configurable:!0}),i.prototype.toString=function(){for(var e="",t=0;t<this.fields.length;t++)0<t&&(e+=", "),e+=this.fields[t];return"Structure("+this.signature+", ["+e+"])"},i);function i(e,t){this.signature=e,this.fields=t}r.Structure=e,r.verifyStructSize=function(e,t,r){if(t!==r)throw(0,n.newError)("Wrong struct size for ".concat(e,", expected ").concat(t," but was ").concat(r),o)},r.default=e},{"neo4j-driver-core":75}],62:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_MAX_SIZE=r.DEFAULT_ACQUISITION_TIMEOUT=r.PoolConfig=r.Pool=void 0,i(e("./pool-config"))),i=(r.PoolConfig=a.default,Object.defineProperty(r,"DEFAULT_ACQUISITION_TIMEOUT",{enumerable:!0,get:function(){return a.DEFAULT_ACQUISITION_TIMEOUT}}),Object.defineProperty(r,"DEFAULT_MAX_SIZE",{enumerable:!0,get:function(){return a.DEFAULT_MAX_SIZE}}),u(e("./pool")));r.Pool=i.default,r.default=i.default},{"./pool":64,"./pool-config":63}],63:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_ACQUISITION_TIMEOUT=r.DEFAULT_MAX_SIZE=void 0;r.DEFAULT_MAX_SIZE=100;r.DEFAULT_ACQUISITION_TIMEOUT=6e4,o.defaultConfig=function(){return new o(100,6e4)},o.fromDriverConfig=function(e){return new o(u(e.maxConnectionPoolSize)?e.maxConnectionPoolSize:100,u(e.connectionAcquisitionTimeout)?e.connectionAcquisitionTimeout:6e4)};var n=o;function o(e,t){this.maxSize=i(e,100),this.acquisitionTimeout=i(t,6e4)}function i(e,t){return 0===e||e?e:t}function u(e){return 0===e||e}r.default=n},{}],64:[function(e,t,r){"use strict";var o=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},c=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),n(e("./pool-config"))),s=e("neo4j-driver-core"),l=s.internal.logger.Logger,n=(i.prototype.acquire=function(o){var i=this,u=o.asKey(),a=this._acquireRequests;return a[u]||(a[u]=[]),new Promise(function(e,t){var r=null,n=setTimeout(function(){var e,t=a[u];t&&(a[u]=t.filter(function(e){return e!==r})),r.isCompleted()||(t=i.activeResourceCount(o),e=i.has(o)?i._pools[u].length:0,r.reject((0,s.newError)("Connection acquisition timed out in ".concat(i._acquisitionTimeout," ms. Pool status: Active conn count = ").concat(t,", Idle conn count = ").concat(e,"."))))},i._acquisitionTimeout),r=new p(u,e,t,n,i._log);a[u].push(r),i._processPendingAcquireRequests(o)})},i.prototype.purge=function(e){return this._purgeKey(e.asKey())},i.prototype.close=function(){return o(this,void 0,void 0,function(){var t=this;return c(this,function(e){switch(e.label){case 0:return this._closed=!0,[4,Promise.all(Object.keys(this._pools).map(function(e){return t._purgeKey(e)}))];case 1:return[2,e.sent()]}})})},i.prototype.keepAll=function(e){var t=this,r=e.map(function(e){return e.asKey()}),e=Object.keys(this._pools).filter(function(e){return-1===r.indexOf(e)});return Promise.all(e.map(function(e){return t._purgeKey(e)}))},i.prototype.has=function(e){return e.asKey()in this._pools},i.prototype.activeResourceCount=function(e){return this._activeResourceCounts[e.asKey()]||0},i.prototype._getOrInitializePoolFor=function(e){var t=this._pools[e];return t||(t=new d,this._pools[e]=t,this._pendingCreates[e]=0),t},i.prototype._acquire=function(u){return o(this,void 0,void 0,function(){var t,r,n,o,i=this;return c(this,function(e){switch(e.label){case 0:if(this._closed)throw(0,s.newError)("Pool is closed, it is no more able to serve requests.");t=u.asKey(),r=this._getOrInitializePoolFor(t),e.label=1;case 1:return r.length?(n=r.pop(),this._validate(n)?(this._removeIdleObserver&&this._removeIdleObserver(n),f(t,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug("".concat(n," acquired from the pool ").concat(t)),[2,{resource:n,pool:r}]):[3,2]):[3,5];case 2:return[4,this._destroy(n)];case 3:e.sent(),e.label=4;case 4:return[3,1];case 5:if(0<this._maxSize&&this.activeResourceCount(u)+this._pendingCreates[t]>=this._maxSize)return[2,{resource:null,pool:r}];this._pendingCreates[t]=this._pendingCreates[t]+1,e.label=6;case 6:return e.trys.push([6,,8,9]),[4,this._create(u,function(e,t){return i._release(e,t,r)})];case 7:return o=e.sent(),f(t,this._activeResourceCounts),this._log.isDebugEnabled()&&this._log.debug("".concat(o," created for the pool ").concat(t)),[3,9];case 8:return this._pendingCreates[t]=this._pendingCreates[t]-1,[7];case 9:return[2,{resource:o,pool:r}]}})})},i.prototype._release=function(u,a,s){return o(this,void 0,void 0,function(){var o,i=this;return c(this,function(e){switch(e.label){case 0:return(o=u.asKey(),s.isActive())?this._validate(a)?[3,2]:(this._log.isDebugEnabled()&&this._log.debug("".concat(a," destroyed and can't be released to the pool ").concat(o," because it is not functional")),[4,this._destroy(a)]):[3,4];case 1:return e.sent(),[3,3];case 2:this._installIdleObserver&&this._installIdleObserver(a,{onError:function(e){i._log.debug("Idle connection ".concat(a," destroyed because of error: ").concat(e));e=i._pools[o];e&&(i._pools[o]=e.filter(function(e){return e!==a})),i._destroy(a).catch(function(){})}}),s.push(a),this._log.isDebugEnabled()&&this._log.debug("".concat(a," released to the pool ").concat(o)),e.label=3;case 3:return[3,6];case 4:return this._log.isDebugEnabled()&&this._log.debug("".concat(a," destroyed and can't be released to the pool ").concat(o," because pool has been purged")),[4,this._destroy(a)];case 5:e.sent(),e.label=6;case 6:return t=o,r=this._activeResourceCounts,0<(n=(r[t]||0)-1)?r[t]=n:delete r[t],this._processPendingAcquireRequests(u),[2]}var t,r,n})})},i.prototype._purgeKey=function(n){return o(this,void 0,void 0,function(){var t,r;return c(this,function(e){switch(e.label){case 0:if(!(t=this._pools[n]))return[3,4];e.label=1;case 1:return t.length?(r=t.pop(),this._removeIdleObserver&&this._removeIdleObserver(r),[4,this._destroy(r)]):[3,3];case 2:return e.sent(),[3,1];case 3:t.close(),delete this._pools[n],e.label=4;case 4:return[2]}})})},i.prototype._processPendingAcquireRequests=function(r){var n,o=this,i=r.asKey(),e=this._acquireRequests[i];e&&((n=e.shift())?this._acquire(r).catch(function(e){return n.reject(e),{resource:null}}).then(function(e){var t=e.resource,e=e.pool;t?n.isCompleted()?o._release(r,t,e):n.resolve(t):n.isCompleted()||(o._acquireRequests[i]||(o._acquireRequests[i]=[]),o._acquireRequests[i].unshift(n))}):delete this._acquireRequests[i])},i);function i(e){var e=void 0===e?{}:e,t=e.create,t=void 0===t?function(e,t){return Promise.resolve()}:t,r=e.destroy,r=void 0===r?function(e){return Promise.resolve()}:r,n=e.validate,n=void 0===n?function(e){return!0}:n,o=e.installIdleObserver,o=void 0===o?function(e,t){}:o,i=e.removeIdleObserver,i=void 0===i?function(e){}:i,u=e.config,u=void 0===u?a.default.defaultConfig():u,e=e.log,e=void 0===e?l.noOp():e;this._create=t,this._destroy=r,this._validate=n,this._installIdleObserver=o,this._removeIdleObserver=i,this._maxSize=u.maxSize,this._acquisitionTimeout=u.acquisitionTimeout,this._pools={},this._pendingCreates={},this._acquireRequests={},this._activeResourceCounts={},this._release=this._release.bind(this),this._log=e,this._closed=!1}function f(e,t){var r=t[e]||0;t[e]=r+1}u.prototype.isCompleted=function(){return this._completed},u.prototype.resolve=function(e){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._log.isDebugEnabled()&&this._log.debug("".concat(e," acquired from the pool ").concat(this._key)),this._resolve(e))},u.prototype.reject=function(e){this._completed||(this._completed=!0,clearTimeout(this._timeoutId),this._reject(e))};var p=u;function u(e,t,r,n,o){this._key=e,this._resolve=t,this._reject=r,this._timeoutId=n,this._log=o,this._completed=!1}h.prototype.isActive=function(){return this._active},h.prototype.close=function(){this._active=!1},h.prototype.filter=function(e){return this._elements=this._elements.filter(e),this},Object.defineProperty(h.prototype,"length",{get:function(){return this._elements.length},enumerable:!1,configurable:!0}),h.prototype.pop=function(){return this._elements.pop()},h.prototype.push=function(e){return this._elements.push(e)};var d=h;function h(){this._active=!0,this._elements=[]}r.default=n},{"./pool-config":63,"neo4j-driver-core":75}],65:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.RoutingTable=r.Rediscovery=void 0,n(e("./rediscovery"))),n=(r.Rediscovery=o.default,n(e("./routing-table")));r.RoutingTable=n.default,r.default=o.default},{"./rediscovery":66,"./routing-table":67}],66:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),n(e("./routing-table")));function o(e){this._routingContext=e}o.prototype.lookupRoutingTableOnRouter=function(t,r,n,o){var i=this;return t._acquireConnection(function(e){return i._requestRawRoutingTable(e,t,r,n,o).then(function(e){return e.isNull?null:u.default.fromRawRoutingTable(r,n,e)})})},o.prototype._requestRawRoutingTable=function(r,n,o,e,i){var u=this;return new Promise(function(e,t){r.protocol().requestRoutingInformation({routingContext:u._routingContext,databaseName:o,impersonatedUser:i,sessionContext:{bookmarks:n._lastBookmarks,mode:n._mode,database:n._database,afterComplete:n._onComplete},onCompleted:e,onError:t})})},r.default=o},{"./routing-table":67}],67:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.createValidRoutingTable=void 0,e("neo4j-driver-core")),e=s.internal.constants,i=e.ACCESS_MODE_WRITE,u=e.ACCESS_MODE_READ,c=s.internal.serverAddress.ServerAddress,l=s.error.PROTOCOL_ERROR,f=(a.fromRawRoutingTable=d,a.prototype.forget=function(e){this.readers=p(this.readers,e),this.writers=p(this.writers,e)},a.prototype.forgetRouter=function(e){this.routers=p(this.routers,e)},a.prototype.forgetWriter=function(e){this.writers=p(this.writers,e)},a.prototype.isStaleFor=function(e){return this.expirationTime.lessThan(Date.now())||this.routers.length<1||e===u&&0===this.readers.length||e===i&&0===this.writers.length},a.prototype.isExpiredFor=function(e){return this.expirationTime.add(e).lessThan(Date.now())},a.prototype.allServers=function(){return o(o(o([],n(this.routers),!1),n(this.readers),!1),n(this.writers),!1)},a.prototype.toString=function(){return"RoutingTable["+"database=".concat(this.databaseName,", ")+"expirationTime=".concat(this.expirationTime,", ")+"currentTime=".concat(Date.now(),", ")+"routers=[".concat(this.routers,"], ")+"readers=[".concat(this.readers,"], ")+"writers=[".concat(this.writers,"]]")},a);function a(e){var e=void 0===e?{}:e,t=e.database,r=e.routers,n=e.readers,o=e.writers,i=e.expirationTime,e=e.ttl;this.database=t||null,this.databaseName=t||"default database",this.routers=r||[],this.readers=n||[],this.writers=o||[],this.expirationTime=i||(0,s.int)(0),this.ttl=e}function p(e,t){return e.filter(function(e){return e.asKey()!==t.asKey()})}function d(e,t,r){var n=r.ttl,o=function(t,r){try{var e=(0,s.int)(Date.now()),n=(0,s.int)(t.ttl).multiply(1e3).add(e);return n.lessThan(e)?s.Integer.MAX_VALUE:n}catch(e){throw(0,s.newError)("Unable to parse TTL entry from router ".concat(r," from raw routing table:\n").concat(s.json.stringify(t),"\nError message: ").concat(e.message),l)}}(r,t),i=function(t,r){try{var n=[],o=[],i=[];return t.servers.forEach(function(e){var t=e.role,e=e.addresses;"ROUTE"===t?n=b(e).map(function(e){return c.fromUrl(e)}):"WRITE"===t?i=b(e).map(function(e){return c.fromUrl(e)}):"READ"===t&&(o=b(e).map(function(e){return c.fromUrl(e)}))}),{routers:n,readers:o,writers:i}}catch(e){throw(0,s.newError)("Unable to parse servers entry from router ".concat(r," from addresses:\n").concat(s.json.stringify(t.servers),"\nError message: ").concat(e.message),l)}}(r,t),u=i.routers,a=i.readers,i=i.writers;return h(u,"routers",t),h(a,"readers",t),new f({database:e||r.db,routers:u,readers:a,writers:i,expirationTime:o,ttl:n})}function h(e,t,r){if(0===e.length)throw(0,s.newError)("Received no "+t+" from router "+r,l)}function b(e){if(Array.isArray(e))return Array.from(e);throw new TypeError("Array expected but got: "+e)}r.default=f,r.createValidRoutingTable=d},{"neo4j-driver-core":75}],68:[function(e,t,r){"use strict";function i(e){return null!=e&&""!==e&&(Object.getPrototypeOf(e)!==Object.prototype||0!==Object.keys(e).length)}Object.defineProperty(r,"__esModule",{value:!0}),r.default={basic:function(e,t,r){return null!=r?{scheme:"basic",principal:e,credentials:t,realm:r}:{scheme:"basic",principal:e,credentials:t}},kerberos:function(e){return{scheme:"kerberos",principal:"",credentials:e}},bearer:function(e){return{scheme:"bearer",credentials:e}},custom:function(e,t,r,n,o){n={scheme:n,principal:e};return i(t)&&(n.credentials=t),i(r)&&(n.realm=r),i(o)&&(n.parameters=o),n}}},{}],69:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},_=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},g=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},O=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},h=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.bookmarkManager=void 0,i.prototype.updateBookmarks=function(e,t,r){return n(this,void 0,void 0,function(){return _(this,function(e){throw new Error("Not implemented")})})},i.prototype.getBookmarks=function(e){return n(this,void 0,void 0,function(){return _(this,function(e){throw new Error("Not implemented")})})},i.prototype.getAllBookmarks=function(){return n(this,void 0,void 0,function(){return _(this,function(e){throw new Error("Not implemented")})})},i.prototype.forget=function(e){return n(this,void 0,void 0,function(){return _(this,function(e){throw new Error("Not implemented")})})},i);function i(){throw new Error("Not implemented")}r.default=o,r.bookmarkManager=function(e){void 0===e&&(e={});var t,r=new Map;return null!=(t=e.initialBookmarks)&&t.forEach(function(e,t){return r.set(t,new Set(e))}),new u(r,e.bookmarksSupplier,e.bookmarksConsumer)};a.prototype.updateBookmarks=function(f,p,d){return n(this,void 0,void 0,function(){var t,r,n,o,i,u,a,s,c,l;return _(this,function(e){switch(e.label){case 0:t=this._getOrInitializeBookmarks(f);try{for(r=g(p),n=r.next();!n.done;n=r.next())u=n.value,t.delete(u)}catch(e){a={error:e}}finally{try{n&&!n.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}}try{for(o=g(d),i=o.next();!i.done;i=o.next())u=i.value,t.add(u)}catch(e){c={error:e}}finally{try{i&&!i.done&&(l=o.return)&&l.call(o)}finally{if(c)throw c.error}}return"function"!=typeof this._bookmarksConsumer?[3,2]:[4,this._bookmarksConsumer(f,h([],O(t),!1))];case 1:e.sent(),e.label=2;case 2:return[2]}})})},a.prototype._getOrInitializeBookmarks=function(e){var t=this._bookmarksPerDb.get(e);return void 0===t&&(t=new Set,this._bookmarksPerDb.set(e,t)),t},a.prototype.getBookmarks=function(s){var c;return n(this,void 0,void 0,function(){var t,r,n,o,i,u,a;return _(this,function(e){switch(e.label){case 0:return t=new Set(this._bookmarksPerDb.get(s)),"function"!=typeof this._bookmarksSupplier?[3,2]:[4,this._bookmarksSupplier(s)];case 1:r=null!=(c=e.sent())?c:[];try{for(n=g(r),o=n.next();!o.done;o=n.next())i=o.value,t.add(i)}catch(e){u={error:e}}finally{try{o&&!o.done&&(a=n.return)&&a.call(n)}finally{if(u)throw u.error}}e.label=2;case 2:return[2,h([],O(t),!1)]}})})},a.prototype.getAllBookmarks=function(){var m;return n(this,void 0,void 0,function(){var t,r,n,o,i,u,a,s,c,l,f,p,d,h,b,y,v;return _(this,function(e){switch(e.label){case 0:t=new Set;try{for(r=g(this._bookmarksPerDb),n=r.next();!n.done;n=r.next()){o=O(n.value,2),i=o[1];try{for(h=void 0,u=g(i),a=u.next();!a.done;a=u.next())f=a.value,t.add(f)}catch(e){h={error:e}}finally{try{a&&!a.done&&(b=u.return)&&b.call(u)}finally{if(h)throw h.error}}}}catch(e){p={error:e}}finally{try{n&&!n.done&&(d=r.return)&&d.call(r)}finally{if(p)throw p.error}}return"function"!=typeof this._bookmarksSupplier?[3,2]:[4,this._bookmarksSupplier()];case 1:s=null!=(m=e.sent())?m:[];try{for(c=g(s),l=c.next();!l.done;l=c.next())f=l.value,t.add(f)}catch(e){y={error:e}}finally{try{l&&!l.done&&(v=c.return)&&v.call(c)}finally{if(y)throw y.error}}e.label=2;case 2:return[2,t]}})})},a.prototype.forget=function(u){return n(this,void 0,void 0,function(){var t,r,n,o,i;return _(this,function(e){try{for(t=g(u),r=t.next();!r.done;r=t.next())n=r.value,this._bookmarksPerDb.delete(n)}catch(e){o={error:e}}finally{try{r&&!r.done&&(i=t.return)&&i.call(t)}finally{if(o)throw o.error}}return[2]})})};var u=a;function a(e,t,r){this._bookmarksPerDb=e,this._bookmarksSupplier=t,this._bookmarksConsumer=r}},{}],70:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.acquireConnection=function(e){throw Error("Not implemented")},n.prototype.supportsMultiDb=function(){throw Error("Not implemented")},n.prototype.supportsTransactionConfig=function(){throw Error("Not implemented")},n.prototype.supportsUserImpersonation=function(){throw Error("Not implemented")},n.prototype.verifyConnectivityAndGetServerInfo=function(e){throw Error("Not implemented")},n.prototype.getNegotiatedProtocolVersion=function(){throw Error("Not Implemented")},n.prototype.close=function(){throw Error("Not implemented")},r.default=n},{}],71:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(n.prototype,"id",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"databaseId",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"server",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"address",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"version",{get:function(){},enumerable:!1,configurable:!0}),n.prototype.isOpen=function(){return!1},n.prototype.protocol=function(){throw Error("Not implemented")},n.prototype.connect=function(e,t){throw Error("Not implemented")},n.prototype.write=function(e,t,r){throw Error("Not implemented")},n.prototype.resetAndFlush=function(){throw Error("Not implemented")},n.prototype.hasOngoingObservableRequests=function(){throw Error("Not implemented")},n.prototype.close=function(){throw Error("Not implemented")},n.prototype._release=function(){return Promise.resolve()},r.default=n},{}],72:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.WRITE=r.READ=r.Driver=void 0,e("./internal/bookmarks")),o=n(e("./internal/resolver/configured-custom-resolver")),c=e("./internal/constants"),l=e("./internal/logger"),f=n(e("./session")),i=e("./internal/util"),p=36e5,d=1e3,u=c.ACCESS_MODE_READ,a=(r.READ=u,c.ACCESS_MODE_WRITE),h=(r.WRITE=a,0),n=(b.prototype.verifyConnectivity=function(e){e=(void 0===e?{}:e).database,e=void 0===e?"":e;return this._getOrCreateConnectionProvider().verifyConnectivityAndGetServerInfo({database:e,accessMode:u})},b.prototype.getServerInfo=function(e){e=(void 0===e?{}:e).database,e=void 0===e?"":e;return this._getOrCreateConnectionProvider().verifyConnectivityAndGetServerInfo({database:e,accessMode:u})},b.prototype.supportsMultiDb=function(){return this._getOrCreateConnectionProvider().supportsMultiDb()},b.prototype.supportsTransactionConfig=function(){return this._getOrCreateConnectionProvider().supportsTransactionConfig()},b.prototype.supportsUserImpersonation=function(){return this._getOrCreateConnectionProvider().supportsUserImpersonation()},b.prototype.getNegotiatedProtocolVersion=function(){return this._getOrCreateConnectionProvider().getNegotiatedProtocolVersion()},b.prototype.isEncrypted=function(){return this._isEncrypted()},b.prototype._supportsRouting=function(){return this._meta.routing},b.prototype._isEncrypted=function(){return this._config.encrypted===i.ENCRYPTION_ON||!0===this._config.encrypted},b.prototype._getTrust=function(){return this._config.trust},b.prototype.session=function(e){var e=void 0===e?{}:e,t=e.defaultAccessMode,r=e.bookmarks,n=e.database,o=e.impersonatedUser,i=e.fetchSize,e=e.bookmarkManager;return this._newSession({defaultAccessMode:void 0===t?a:t,bookmarkOrBookmarks:r,database:void 0===n?"":n,reactive:!1,impersonatedUser:o,fetchSize:v(i,this._config.fetchSize),bookmarkManager:e})},b.prototype.close=function(){return this._log.info("Driver ".concat(this._id," closing")),null!=this._connectionProvider?this._connectionProvider.close():Promise.resolve()},b.prototype._afterConstruction=function(){this._log.info("".concat(this._meta.typename," driver ").concat(this._id," created for server address ").concat(this._meta.address.toString()))},b.prototype._newSession=function(e){var t=e.defaultAccessMode,r=e.bookmarkOrBookmarks,n=e.database,o=e.reactive,i=e.impersonatedUser,u=e.fetchSize,e=e.bookmarkManager,t=f.default._validateSessionMode(t),a=this._getOrCreateConnectionProvider(),r=null!=r?new s.Bookmarks(r):s.Bookmarks.empty();return this._createSession({mode:t,database:null!=n?n:"",connectionProvider:a,bookmarks:r,config:this._config,reactive:o,impersonatedUser:i,fetchSize:u,bookmarkManager:e})},b.prototype._getOrCreateConnectionProvider=function(){var e;return null==this._connectionProvider&&(this._connectionProvider=this._createConnectionProvider(this._id,this._config,this._log,(e=this._config,new o.default(e.resolver)))),this._connectionProvider},b);function b(e,t,r,n){void 0===n&&(n=function(e){return new f.default(e)}),(o=t=void 0===t?{}:t).maxConnectionLifetime=y(o.maxConnectionLifetime,p),o.maxConnectionPoolSize=y(o.maxConnectionPoolSize,c.DEFAULT_POOL_MAX_SIZE),o.connectionAcquisitionTimeout=y(o.connectionAcquisitionTimeout,c.DEFAULT_POOL_ACQUISITION_TIMEOUT),o.fetchSize=v(o.fetchSize,d),o.connectionTimeout=function(e){e=parseInt(e.connectionTimeout,10);return 0===e||!isNaN(e)&&e<0?null:isNaN(e)?c.DEFAULT_CONNECTION_TIMEOUT_MILLIS:e}(o);var o=l.Logger.create(t),i=t,u=o,a=i.resolver;if(null!=a&&"function"!=typeof a)throw new TypeError("Configured resolver should be a function. Got: ".concat(typeof a));i.connectionAcquisitionTimeout<i.connectionTimeout&&u.warn('Configuration for "connectionAcquisitionTimeout" should be greater than or equal to "connectionTimeout". Otherwise, the connection acquisition timeout will take precedence for over the connection timeout in scenarios where a new connection is created while it is acquired'),this._id=h++,this._meta=e,this._config=t,this._log=o,this._createConnectionProvider=r,this._createSession=n,this._connectionProvider=null,this._afterConstruction()}function y(e,t){e=parseInt(e,10);return 0<e||0===e?e:e<0?Number.MAX_SAFE_INTEGER:t}function v(e,t){e=parseInt(e,10);if(0<e||e===c.FETCH_ALL)return e;if(0===e||e<0)throw new Error("The fetch size can only be a positive value or ".concat(c.FETCH_ALL," for ALL. However fetchSize = ").concat(e));return t}r.Driver=n,r.default=n},{"./internal/bookmarks":77,"./internal/constants":79,"./internal/logger":81,"./internal/resolver/configured-custom-resolver":85,"./internal/util":92,"./session":97}],73:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.PROTOCOL_ERROR=r.SESSION_EXPIRED=r.SERVICE_UNAVAILABLE=r.Neo4jError=r.isRetriableError=r.newError=void 0,"ServiceUnavailable"),a=(r.SERVICE_UNAVAILABLE=u,"SessionExpired"),s=(r.SESSION_EXPIRED=a,r.PROTOCOL_ERROR="ProtocolError","N/A"),c=(o=Error,i(l,o),l.isRetriable=function(e){return null!=e&&e instanceof l&&e.retriable},l);function l(e,t,r){e=o.call(this,e,null!=r?{cause:r}:void 0)||this;return e.constructor=l,e.__proto__=l.prototype,e.code=t,e.name="Neo4jError",e.retriable=(r=t)===u||r===a||"Neo.ClientError.Security.AuthorizationExpired"===r||function(e){return!0===(null==e?void 0:e.includes("TransientError"))&&("Neo.TransientError.Transaction.Terminated"!==e&&"Neo.TransientError.Transaction.LockClientStopped"!==e)}(r),e}r.Neo4jError=c,r.newError=function(e,t,r){return new c(e,null!=t?t:s,r)};i=c.isRetriable;r.isRetriableError=i},{}],74:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPathSegment=r.PathSegment=r.isPath=r.Path=r.isUnboundRelationship=r.UnboundRelationship=r.isRelationship=r.Relationship=r.isNode=r.Node=void 0;var n=e("./json"),e={value:!0,enumerable:!1,configurable:!1,writable:!1},o="__isNode__",i="__isRelationship__",u="__isUnboundRelationship__",a="__isPath__",s="__isPathSegment__";function c(e,t){return null!=e&&!0===e[t]}f.prototype.toString=function(){for(var e="("+this.elementId,t=0;t<this.labels.length;t++)e+=":"+this.labels[t];var r=Object.keys(this.properties);if(0<r.length){e+=" {";for(t=0;t<r.length;t++)0<t&&(e+=","),e+=r[t]+":"+(0,n.stringify)(this.properties[r[t]]);e+="}"}return e+=")"};var l=f;function f(e,t,r,n){this.identity=e,this.labels=t,this.properties=r,this.elementId=v(n,function(){return e.toString()})}r.Node=l,Object.defineProperty(l.prototype,o,e),r.isNode=function(e){return c(e,o)};d.prototype.toString=function(){var e="("+this.startNodeElementId+")-[:"+this.type,t=Object.keys(this.properties);if(0<t.length){e+=" {";for(var r=0;r<t.length;r++)0<r&&(e+=","),e+=t[r]+":"+(0,n.stringify)(this.properties[t[r]]);e+="}"}return e+="]->("+this.endNodeElementId+")"};var p=d;function d(e,t,r,n,o,i,u,a){this.identity=e,this.start=t,this.end=r,this.type=n,this.properties=o,this.elementId=v(i,function(){return e.toString()}),this.startNodeElementId=v(u,function(){return t.toString()}),this.endNodeElementId=v(a,function(){return r.toString()})}r.Relationship=p,Object.defineProperty(p.prototype,i,e),r.isRelationship=function(e){return c(e,i)};h.prototype.bind=function(e,t){return new p(this.identity,e,t,this.type,this.properties,this.elementId)},h.prototype.bindTo=function(e,t){return new p(this.identity,e.identity,t.identity,this.type,this.properties,this.elementId,e.elementId,t.elementId)},h.prototype.toString=function(){var e="-[:"+this.type,t=Object.keys(this.properties);if(0<t.length){e+=" {";for(var r=0;r<t.length;r++)0<r&&(e+=","),e+=t[r]+":"+(0,n.stringify)(this.properties[t[r]]);e+="}"}return e+="]->"};l=h;function h(e,t,r,n){this.identity=e,this.type=t,this.properties=r,this.elementId=v(n,function(){return e.toString()})}r.UnboundRelationship=l,Object.defineProperty(l.prototype,u,e),r.isUnboundRelationship=function(e){return c(e,u)};function b(e,t,r){this.start=e,this.relationship=t,this.end=r}r.PathSegment=b,Object.defineProperty(b.prototype,s,e),r.isPathSegment=function(e){return c(e,s)};function y(e,t,r){this.start=e,this.end=t,this.segments=r,this.length=r.length}function v(e,t){return null==e?t():e}r.Path=y,Object.defineProperty(y.prototype,a,e),r.isPath=function(e){return c(e,a)}},{"./json":93}],75:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionPromise=r.ManagedTransaction=r.Transaction=r.Connection=r.ConnectionProvider=r.Result=r.Stats=r.QueryStatistics=r.ProfiledPlan=r.Plan=r.Notification=r.ServerInfo=r.queryType=r.ResultSummary=r.Record=r.isPathSegment=r.PathSegment=r.isPath=r.Path=r.isUnboundRelationship=r.UnboundRelationship=r.isRelationship=r.Relationship=r.isNode=r.Node=r.Time=r.LocalTime=r.LocalDateTime=r.isTime=r.isLocalTime=r.isLocalDateTime=r.isDuration=r.isDateTime=r.isDate=r.Duration=r.DateTime=r.Date=r.Point=r.isPoint=r.internal=r.toString=r.toNumber=r.inSafeRange=r.isInt=r.int=r.Integer=r.error=r.isRetriableError=r.Neo4jError=r.newError=void 0,r.bookmarkManager=r.auth=r.json=r.driver=r.types=r.Driver=r.Session=void 0,e("./error")),s=(Object.defineProperty(r,"newError",{enumerable:!0,get:function(){return a.newError}}),Object.defineProperty(r,"Neo4jError",{enumerable:!0,get:function(){return a.Neo4jError}}),Object.defineProperty(r,"isRetriableError",{enumerable:!0,get:function(){return a.isRetriableError}}),i(e("./integer"))),c=(r.Integer=s.default,Object.defineProperty(r,"int",{enumerable:!0,get:function(){return s.int}}),Object.defineProperty(r,"isInt",{enumerable:!0,get:function(){return s.isInt}}),Object.defineProperty(r,"inSafeRange",{enumerable:!0,get:function(){return s.inSafeRange}}),Object.defineProperty(r,"toNumber",{enumerable:!0,get:function(){return s.toNumber}}),Object.defineProperty(r,"toString",{enumerable:!0,get:function(){return s.toString}}),e("./temporal-types")),l=(Object.defineProperty(r,"Date",{enumerable:!0,get:function(){return c.Date}}),Object.defineProperty(r,"DateTime",{enumerable:!0,get:function(){return c.DateTime}}),Object.defineProperty(r,"Duration",{enumerable:!0,get:function(){return c.Duration}}),Object.defineProperty(r,"isDate",{enumerable:!0,get:function(){return c.isDate}}),Object.defineProperty(r,"isDateTime",{enumerable:!0,get:function(){return c.isDateTime}}),Object.defineProperty(r,"isDuration",{enumerable:!0,get:function(){return c.isDuration}}),Object.defineProperty(r,"isLocalDateTime",{enumerable:!0,get:function(){return c.isLocalDateTime}}),Object.defineProperty(r,"isLocalTime",{enumerable:!0,get:function(){return c.isLocalTime}}),Object.defineProperty(r,"isTime",{enumerable:!0,get:function(){return c.isTime}}),Object.defineProperty(r,"LocalDateTime",{enumerable:!0,get:function(){return c.LocalDateTime}}),Object.defineProperty(r,"LocalTime",{enumerable:!0,get:function(){return c.LocalTime}}),Object.defineProperty(r,"Time",{enumerable:!0,get:function(){return c.Time}}),e("./graph-types")),f=(Object.defineProperty(r,"Node",{enumerable:!0,get:function(){return l.Node}}),Object.defineProperty(r,"isNode",{enumerable:!0,get:function(){return l.isNode}}),Object.defineProperty(r,"Relationship",{enumerable:!0,get:function(){return l.Relationship}}),Object.defineProperty(r,"isRelationship",{enumerable:!0,get:function(){return l.isRelationship}}),Object.defineProperty(r,"UnboundRelationship",{enumerable:!0,get:function(){return l.UnboundRelationship}}),Object.defineProperty(r,"isUnboundRelationship",{enumerable:!0,get:function(){return l.isUnboundRelationship}}),Object.defineProperty(r,"Path",{enumerable:!0,get:function(){return l.Path}}),Object.defineProperty(r,"isPath",{enumerable:!0,get:function(){return l.isPath}}),Object.defineProperty(r,"PathSegment",{enumerable:!0,get:function(){return l.PathSegment}}),Object.defineProperty(r,"isPathSegment",{enumerable:!0,get:function(){return l.isPathSegment}}),u(e("./record"))),p=(r.Record=f.default,e("./spatial-types")),d=(Object.defineProperty(r,"isPoint",{enumerable:!0,get:function(){return p.isPoint}}),Object.defineProperty(r,"Point",{enumerable:!0,get:function(){return p.Point}}),i(e("./result-summary"))),h=(r.ResultSummary=d.default,Object.defineProperty(r,"queryType",{enumerable:!0,get:function(){return d.queryType}}),Object.defineProperty(r,"ServerInfo",{enumerable:!0,get:function(){return d.ServerInfo}}),Object.defineProperty(r,"Notification",{enumerable:!0,get:function(){return d.Notification}}),Object.defineProperty(r,"Plan",{enumerable:!0,get:function(){return d.Plan}}),Object.defineProperty(r,"ProfiledPlan",{enumerable:!0,get:function(){return d.ProfiledPlan}}),Object.defineProperty(r,"QueryStatistics",{enumerable:!0,get:function(){return d.QueryStatistics}}),Object.defineProperty(r,"Stats",{enumerable:!0,get:function(){return d.Stats}}),u(e("./result"))),b=(r.Result=h.default,u(e("./connection-provider"))),b=(r.ConnectionProvider=b.default,u(e("./connection"))),y=(r.Connection=b.default,u(e("./transaction"))),v=(r.Transaction=y.default,u(e("./transaction-managed"))),m=(r.ManagedTransaction=v.default,u(e("./transaction-promise"))),_=(r.TransactionPromise=m.default,u(e("./session"))),g=(r.Session=_.default,i(e("./driver"))),O=g,u=(r.Driver=g.default,r.driver=O,u(e("./auth"))),w=(r.auth=u.default,i(e("./bookmark-manager"))),S=(Object.defineProperty(r,"bookmarkManager",{enumerable:!0,get:function(){return w.bookmarkManager}}),i(e("./types"))),E=(r.types=S,i(e("./json"))),i=(r.json=E,i(e("./internal"))),e=(r.internal=i,{SERVICE_UNAVAILABLE:a.SERVICE_UNAVAILABLE,SESSION_EXPIRED:a.SESSION_EXPIRED,PROTOCOL_ERROR:a.PROTOCOL_ERROR}),e=(r.error=e,{newError:a.newError,Neo4jError:a.Neo4jError,isRetriableError:a.isRetriableError,error:e,Integer:s.default,int:s.int,isInt:s.isInt,inSafeRange:s.inSafeRange,toNumber:s.toNumber,toString:s.toString,internal:i,isPoint:p.isPoint,Point:p.Point,Date:c.Date,DateTime:c.DateTime,Duration:c.Duration,isDate:c.isDate,isDateTime:c.isDateTime,isDuration:c.isDuration,isLocalDateTime:c.isLocalDateTime,isLocalTime:c.isLocalTime,isTime:c.isTime,LocalDateTime:c.LocalDateTime,LocalTime:c.LocalTime,Time:c.Time,Node:l.Node,isNode:l.isNode,Relationship:l.Relationship,isRelationship:l.isRelationship,UnboundRelationship:l.UnboundRelationship,isUnboundRelationship:l.isUnboundRelationship,Path:l.Path,isPath:l.isPath,PathSegment:l.PathSegment,isPathSegment:l.isPathSegment,Record:f.default,ResultSummary:d.default,queryType:d.queryType,ServerInfo:d.ServerInfo,Notification:d.Notification,Plan:d.Plan,ProfiledPlan:d.ProfiledPlan,QueryStatistics:d.QueryStatistics,Stats:d.Stats,Result:h.default,Transaction:y.default,ManagedTransaction:v.default,TransactionPromise:m.default,Session:_.default,Driver:g.default,Connection:b.default,types:S,driver:O,json:E,auth:u.default,bookmarkManager:w.bookmarkManager});r.default=e},{"./auth":68,"./bookmark-manager":69,"./connection":71,"./connection-provider":70,"./driver":72,"./error":73,"./graph-types":74,"./integer":76,"./internal":80,"./json":93,"./record":94,"./result":96,"./result-summary":95,"./session":97,"./spatial-types":98,"./temporal-types":99,"./transaction":102,"./transaction-managed":100,"./transaction-promise":101,"./types":103}],76:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toString=r.toNumber=r.inSafeRange=r.isInt=r.int=void 0;var d=e("./error"),n=new Map,e=(h.prototype.inSafeRange=function(){return this.greaterThanOrEqual(h.MIN_SAFE_VALUE)&&this.lessThanOrEqual(h.MAX_SAFE_VALUE)},h.prototype.toInt=function(){return this.low},h.prototype.toNumber=function(){return this.high*o+(this.low>>>0)},h.prototype.toBigInt=function(){var e;return this.isZero()?BigInt(0):this.isPositive()?BigInt(this.high>>>0)*BigInt(o)+BigInt(this.low>>>0):(e=this.negate(),BigInt(-1)*(BigInt(e.high>>>0)*BigInt(o)+BigInt(e.low>>>0)))},h.prototype.toNumberOrInfinity=function(){return this.lessThan(h.MIN_SAFE_VALUE)?Number.NEGATIVE_INFINITY:this.greaterThan(h.MAX_SAFE_VALUE)?Number.POSITIVE_INFINITY:this.toNumber()},h.prototype.toString=function(e){if((e=null!=e?e:10)<2||36<e)throw RangeError("radix out of range: "+e.toString());if(this.isZero())return"0";var t,r,n;if(this.isNegative())return this.equals(h.MIN_VALUE)?(t=h.fromNumber(e),n=(r=this.div(t)).multiply(t).subtract(this),r.toString(e)+n.toInt().toString(e)):"-"+this.negate().toString(e);for(var o=h.fromNumber(Math.pow(e,6)),i=(n=this,"");;){var u=n.div(o),a=(n.subtract(u.multiply(o)).toInt()>>>0).toString(e);if((n=u).isZero())return a+i;for(;a.length<6;)a="0"+a;i=""+a+i}},h.prototype.getHighBits=function(){return this.high},h.prototype.getLowBits=function(){return this.low},h.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(h.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var e=0!==this.high?this.high:this.low,t=0,t=31;0<t&&0==(e&1<<t);t--);return 0!==this.high?t+33:t+1},h.prototype.isZero=function(){return 0===this.high&&0===this.low},h.prototype.isNegative=function(){return this.high<0},h.prototype.isPositive=function(){return 0<=this.high},h.prototype.isOdd=function(){return 1==(1&this.low)},h.prototype.isEven=function(){return 0==(1&this.low)},h.prototype.equals=function(e){e=h.fromValue(e);return this.high===e.high&&this.low===e.low},h.prototype.notEquals=function(e){return!this.equals(e)},h.prototype.lessThan=function(e){return this.compare(e)<0},h.prototype.lessThanOrEqual=function(e){return this.compare(e)<=0},h.prototype.greaterThan=function(e){return 0<this.compare(e)},h.prototype.greaterThanOrEqual=function(e){return 0<=this.compare(e)},h.prototype.compare=function(e){e=h.fromValue(e);if(this.equals(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r||(t||!r)&&this.subtract(e).isNegative()?-1:1},h.prototype.negate=function(){return this.equals(h.MIN_VALUE)?h.MIN_VALUE:this.not().add(h.ONE)},h.prototype.add=function(e){var e=h.fromValue(e),t=this.high>>>16,r=65535&this.high,n=this.low>>>16,o=65535&this.low,i=e.high>>>16,u=65535&e.high,a=e.low>>>16,s=0,c=0,l=0,f=0;return c+=(l=l+((f+=o+(65535&e.low))>>>16)+(n+a))>>>16,h.fromBits((l&=65535)<<16|(f&=65535),((s+=(c+=r+u)>>>16)+(t+i)&65535)<<16|(c&=65535))},h.prototype.subtract=function(e){e=h.fromValue(e);return this.add(e.negate())},h.prototype.multiply=function(e){if(this.isZero())return h.ZERO;e=h.fromValue(e);if(e.isZero())return h.ZERO;if(this.equals(h.MIN_VALUE))return e.isOdd()?h.MIN_VALUE:h.ZERO;if(e.equals(h.MIN_VALUE))return this.isOdd()?h.MIN_VALUE:h.ZERO;if(this.isNegative())return e.isNegative()?this.negate().multiply(e.negate()):this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(p)&&e.lessThan(p))return h.fromNumber(this.toNumber()*e.toNumber());var t=this.high>>>16,r=65535&this.high,n=this.low>>>16,o=65535&this.low,i=e.high>>>16,u=65535&e.high,a=e.low>>>16,e=65535&e.low,s=0,c=0,l=0,f=(f=0)+((c=c+((l+=o*e)>>>16)+n*e)>>>16)+((c=(c&65535)+o*a)>>>16);return h.fromBits((c&=65535)<<16|(l&=65535),((s+=(f+=r*e)>>>16)+((f=(f&65535)+n*a)>>>16)+((f=(f&65535)+o*u)>>>16)+(t*e+r*a+n*u+o*i)&65535)<<16|(f&=65535))},h.prototype.div=function(e){var t,r,n,o=h.fromValue(e);if(o.isZero())throw(0,d.newError)("division by zero");if(this.isZero())return h.ZERO;{if(this.equals(h.MIN_VALUE))return o.equals(h.ONE)||o.equals(h.NEG_ONE)?h.MIN_VALUE:o.equals(h.MIN_VALUE)?h.ONE:(n=this.shiftRight(1).div(o).shiftLeft(1)).equals(h.ZERO)?o.isNegative()?h.ONE:h.NEG_ONE:(t=this.subtract(o.multiply(n)),n.add(t.div(o)));if(o.equals(h.MIN_VALUE))return h.ZERO}if(this.isNegative())return o.isNegative()?this.negate().div(o.negate()):this.negate().div(o).negate();if(o.isNegative())return this.div(o.negate()).negate();for(r=h.ZERO,t=this;t.greaterThanOrEqual(o);){n=Math.max(1,Math.floor(t.toNumber()/o.toNumber()));for(var i=Math.ceil(Math.log(n)/Math.LN2),u=i<=48?1:Math.pow(2,i-48),a=h.fromNumber(n),s=a.multiply(o);s.isNegative()||s.greaterThan(t);)s=(a=h.fromNumber(n-=u)).multiply(o);a.isZero()&&(a=h.ONE),r=r.add(a),t=t.subtract(s)}return r},h.prototype.modulo=function(e){e=h.fromValue(e);return this.subtract(this.div(e).multiply(e))},h.prototype.not=function(){return h.fromBits(~this.low,~this.high)},h.prototype.and=function(e){e=h.fromValue(e);return h.fromBits(this.low&e.low,this.high&e.high)},h.prototype.or=function(e){e=h.fromValue(e);return h.fromBits(this.low|e.low,this.high|e.high)},h.prototype.xor=function(e){e=h.fromValue(e);return h.fromBits(this.low^e.low,this.high^e.high)},h.prototype.shiftLeft=function(e){e=h.toNumber(e);return 0==(e&=63)?h.ZERO:e<32?h.fromBits(this.low<<e,this.high<<e|this.low>>>32-e):h.fromBits(0,this.low<<e-32)},h.prototype.shiftRight=function(e){var t=h.toNumber(e);return 0==(t&=63)?h.ZERO:e<32?h.fromBits(this.low>>>t|this.high<<32-t,this.high>>t):h.fromBits(this.high>>t-32,0<=this.high?0:-1)},h.isInteger=function(e){return!0===(null==e?void 0:e.__isInteger__)},h.fromInt=function(e){if(-128<=(e|=0)&&e<128&&null!=(t=n.get(e)))return t;var t=new h(e,e<0?-1:0);return-128<=e&&e<128&&n.set(e,t),t},h.fromBits=function(e,t){return new h(e,t)},h.fromNumber=function(e){return isNaN(e)||!isFinite(e)?h.ZERO:e<=-i?h.MIN_VALUE:i<=e+1?h.MAX_VALUE:e<0?h.fromNumber(-e).negate():new h(e%o|0,e/o|0)},h.fromString=function(e,t,r){var n=(void 0===r?{}:r).strictStringValidation;if(0===e.length)throw(0,d.newError)("number format error: empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return h.ZERO;if((t=null!=t?t:10)<2||36<t)throw(0,d.newError)("radix out of range: "+t.toString());if(0<(r=e.indexOf("-")))throw(0,d.newError)('number format error: interior "-" character: '+e);if(0===r)return h.fromString(e.substring(1),t).negate();for(var o,i,u=h.fromNumber(Math.pow(t,8)),a=h.ZERO,s=0;s<e.length;s+=8){var c,l=Math.min(8,e.length-s),f=e.substring(s,s+l),p=parseInt(f,t);if(!0===n&&(o=f,c=p,i=t,Number.isNaN(o)||Number.isNaN(c)||function(e,t,r){e=e.toString(t),t=Math.max(r-e.length,0),r="0".repeat(t);return"".concat(r).concat(e)}(c,i,o.length)!==o.toLowerCase()))throw(0,d.newError)('number format error: "'.concat(f,'" is NaN in radix ').concat(t,": ").concat(e));a=l<8?(c=h.fromNumber(Math.pow(t,l)),a.multiply(c).add(h.fromNumber(p))):(a=a.multiply(u)).add(h.fromNumber(p))}return a},h.fromValue=function(e,t){return void 0===t&&(t={}),e instanceof h?e:"number"==typeof e?h.fromNumber(e):"string"==typeof e?h.fromString(e,void 0,t):"bigint"==typeof e?h.fromString(e.toString()):new h(e.low,e.high)},h.toNumber=function(e){switch(typeof e){case"number":return e;case"bigint":return Number(e);default:return h.fromValue(e).toNumber()}},h.toString=function(e,t){return h.fromValue(e).toString(t)},h.inSafeRange=function(e){return h.fromValue(e).inSafeRange()},h.ZERO=h.fromInt(0),h.ONE=h.fromInt(1),h.NEG_ONE=h.fromInt(-1),h.MAX_VALUE=h.fromBits(-1,2147483647),h.MIN_VALUE=h.fromBits(0,-2147483648),h.MIN_SAFE_VALUE=h.fromBits(1,-2097152),h.MAX_SAFE_VALUE=h.fromBits(-1,2097151),h.__isInteger__=!0,h);function h(e,t){this.low=null!=e?e:0,this.high=null!=t?t:0}Object.defineProperty(e.prototype,"__isInteger__",{value:!0,enumerable:!1,configurable:!1});var o=4294967296,i=o*o/2,p=e.fromInt(1<<24),u=e.fromValue,u=(r.int=u,e.isInteger),u=(r.isInt=u,e.inSafeRange),u=(r.inSafeRange=u,e.toNumber),u=(r.toNumber=u,e.toString);r.toString=u,r.default=e},{"./error":73}],77:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},a=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.Bookmarks=void 0,i(e("./util"))),i=(c.empty=function(){return l},c.prototype.isEmpty=function(){return 0===this._values.length},c.prototype.values=function(){return this._values},c.prototype[Symbol.iterator]=function(){return this._values[Symbol.iterator]()},c.prototype.asBeginTransactionParameters=function(){var e;return this.isEmpty()?{}:((e={}).bookmarks=this._values,e)},c);function c(e){this._values=function(e){if(null==e||""===e)return[];if(s.isString(e))return[e];if(Array.isArray(e)){for(var t=new Set,r=function r(e){return e.reduce(function(e,t){return Array.isArray(t)?e.concat(r(t)):e.concat(t)},[])}(e),n=0;n<r.length;n++){var o=r[n];if(null!=o){if(!s.isString(o))throw new TypeError("Bookmark value should be a string, given: '".concat(o,"'"));t.add(o)}}return a([],u(t),!1)}throw new TypeError("Bookmarks should either be a string or a string array, given: '".concat(e,"'"))}(e)}var l=new(r.Bookmarks=i)(null)},{"./util":92}],78:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},u=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.EMPTY_CONNECTION_HOLDER=r.ReadOnlyConnectionHolder=r.ConnectionHolder=void 0,e("../error")),s=e("./util"),c=e("./constants"),l=e("./bookmarks"),e=(f.prototype.mode=function(){return this._mode},f.prototype.database=function(){return this._database},f.prototype.setDatabase=function(e){this._database=e},f.prototype.bookmarks=function(){return this._bookmarks},f.prototype.connectionProvider=function(){return this._connectionProvider},f.prototype.referenceCount=function(){return this._referenceCount},f.prototype.initializeConnection=function(){return 0!==this._referenceCount||null==this._connectionProvider?(this._referenceCount++,!1):(this._connectionPromise=this._createConnectionPromise(this._connectionProvider),this._referenceCount++,!0)},f.prototype._createConnectionPromise=function(o){return i(this,void 0,void 0,function(){var t,r,n;return u(this,function(e){switch(e.label){case 0:return r=(t=o).acquireConnection,n={accessMode:this._mode,database:this._database},[4,this._getBookmarks()];case 1:return[4,r.apply(t,[(n.bookmarks=e.sent(),n.impersonatedUser=this._impersonatedUser,n.onDatabaseNameResolved=this._onDatabaseNameResolved,n)])];case 2:return[2,e.sent()]}})})},f.prototype._getBookmarks=function(){return i(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this._getConnectionAcquistionBookmarks()];case 1:return[2,e.sent()]}})})},f.prototype.getConnection=function(){return this._connectionPromise},f.prototype.releaseConnection=function(){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount--,0===this._referenceCount?this._releaseConnection():this._connectionPromise)},f.prototype.close=function(e){return 0===this._referenceCount?this._connectionPromise:(this._referenceCount=0,this._releaseConnection(e))},f.prototype._releaseConnection=function(t){return this._connectionPromise=this._connectionPromise.then(function(e){return null!=e?e.isOpen()&&(e.hasOngoingObservableRequests()||!0===t)?e.resetAndFlush().catch(v).then(function(){return e._release().then(function(){return null})}):e._release().then(function(){return null}):Promise.resolve(null)}).catch(v),this._connectionPromise},f);function f(e){var e=void 0===e?{}:e,t=e.mode,t=void 0===t?c.ACCESS_MODE_WRITE:t,r=e.database,r=void 0===r?"":r,n=e.bookmarks,o=e.connectionProvider,i=e.impersonatedUser,u=e.onDatabaseNameResolved,e=e.getConnectionAcquistionBookmarks;this._mode=t,this._database=null!=r?(0,s.assertString)(r,"database"):"",this._bookmarks=null!=n?n:l.Bookmarks.empty(),this._connectionProvider=o,this._impersonatedUser=i,this._referenceCount=0,this._connectionPromise=Promise.resolve(null),this._onDatabaseNameResolved=u,this._getConnectionAcquistionBookmarks=null!=e?e:function(){return Promise.resolve(l.Bookmarks.empty())}}r.ConnectionHolder=e;o(b,p=e),b.prototype.initializeConnection=function(){return 0!==this._connectionHolder.referenceCount()},b.prototype.getConnection=function(){return this._connectionHolder.getConnection()},b.prototype.releaseConnection=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve(null)})},b.prototype.close=function(){return this._connectionHolder.getConnection().catch(function(){return Promise.resolve(null)})};var p,d,h=b;function b(e){var t=p.call(this,{mode:e.mode(),database:e.database(),bookmarks:e.bookmarks(),getConnectionAcquistionBookmarks:e._getConnectionAcquistionBookmarks,connectionProvider:e.connectionProvider()})||this;return t._connectionHolder=e,t}function y(){return null!==d&&d.apply(this,arguments)||this}r.ReadOnlyConnectionHolder=h,r.default=h,o(y,d=e),y.prototype.mode=function(){},y.prototype.database=function(){},y.prototype.initializeConnection=function(){return!0},y.prototype.getConnection=function(){return i(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,Promise.reject((0,a.newError)("This connection holder does not serve connections"))];case 1:return[2,e.sent()]}})})},y.prototype.releaseConnection=function(){return i(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,Promise.resolve(null)];case 1:return[2,e.sent()]}})})},y.prototype.close=function(){return i(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,Promise.resolve(null)];case 1:return[2,e.sent()]}})})};h=new y;function v(e){return null}r.EMPTY_CONNECTION_HOLDER=h},{"../error":73,"./bookmarks":77,"./constants":79,"./util":92}],79:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BOLT_PROTOCOL_V5_0=r.BOLT_PROTOCOL_V4_4=r.BOLT_PROTOCOL_V4_3=r.BOLT_PROTOCOL_V4_2=r.BOLT_PROTOCOL_V4_1=r.BOLT_PROTOCOL_V4_0=r.BOLT_PROTOCOL_V3=r.BOLT_PROTOCOL_V2=r.BOLT_PROTOCOL_V1=r.DEFAULT_POOL_MAX_SIZE=r.DEFAULT_POOL_ACQUISITION_TIMEOUT=r.DEFAULT_CONNECTION_TIMEOUT_MILLIS=r.ACCESS_MODE_WRITE=r.ACCESS_MODE_READ=r.FETCH_ALL=void 0;r.FETCH_ALL=-1,r.DEFAULT_POOL_ACQUISITION_TIMEOUT=6e4,r.DEFAULT_POOL_MAX_SIZE=100,r.DEFAULT_CONNECTION_TIMEOUT_MILLIS=3e4,r.ACCESS_MODE_READ="READ",r.ACCESS_MODE_WRITE="WRITE",r.BOLT_PROTOCOL_V1=1,r.BOLT_PROTOCOL_V2=2,r.BOLT_PROTOCOL_V3=3,r.BOLT_PROTOCOL_V4_0=4,r.BOLT_PROTOCOL_V4_1=4.1,r.BOLT_PROTOCOL_V4_2=4.2,r.BOLT_PROTOCOL_V4_3=4.3,r.BOLT_PROTOCOL_V4_4=4.4;r.BOLT_PROTOCOL_V5_0=5},{}],80:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.objectUtil=r.resolver=r.serverAddress=r.urlUtil=r.logger=r.transactionExecutor=r.txConfig=r.connectionHolder=r.constants=r.bookmarks=r.observer=r.temporalUtil=r.util=void 0,i(e("./util"))),u=(r.util=u,i(e("./temporal-util"))),u=(r.temporalUtil=u,i(e("./observers"))),u=(r.observer=u,i(e("./bookmarks"))),u=(r.bookmarks=u,i(e("./constants"))),u=(r.constants=u,i(e("./connection-holder"))),u=(r.connectionHolder=u,i(e("./tx-config"))),u=(r.txConfig=u,i(e("./transaction-executor"))),u=(r.transactionExecutor=u,i(e("./logger"))),u=(r.logger=u,i(e("./url-util"))),u=(r.urlUtil=u,i(e("./server-address"))),u=(r.serverAddress=u,i(e("./resolver"))),u=(r.resolver=u,i(e("./object-util")));r.objectUtil=u},{"./bookmarks":77,"./connection-holder":78,"./constants":79,"./logger":81,"./object-util":82,"./observers":83,"./resolver":86,"./server-address":87,"./temporal-util":88,"./transaction-executor":89,"./tx-config":90,"./url-util":91,"./util":92}],81:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.Logger=void 0,e("../error")),a="info",s=a,c=((e={}).error=0,e.warn=1,e.info=2,e.debug=3,e),e=(l.create=function(e){return null!=(null==e?void 0:e.logging)?new l(function(e){if(null==(null==e?void 0:e.level))return s;var e=e.level,t=c[e];if(null!=t||0===t)return e;throw(0,u.newError)("Illegal logging level: ".concat(e,". Supported levels are: ").concat(Object.keys(c).toString()))}(e=e.logging),function(e){if(null!=(null==e?void 0:e.logger)){var t=e.logger;if(null!=t&&"function"==typeof t)return t}throw(0,u.newError)("Illegal logger function: ".concat(null!=(e=null==(t=null==e?void 0:e.logger)?void 0:t.toString())?e:"undefined"))}(e)):this.noOp()},l.noOp=function(){return p},l.prototype.isErrorEnabled=function(){return d(this._level,"error")},l.prototype.error=function(e){this.isErrorEnabled()&&this._loggerFunction("error",e)},l.prototype.isWarnEnabled=function(){return d(this._level,"warn")},l.prototype.warn=function(e){this.isWarnEnabled()&&this._loggerFunction("warn",e)},l.prototype.isInfoEnabled=function(){return d(this._level,a)},l.prototype.info=function(e){this.isInfoEnabled()&&this._loggerFunction(a,e)},l.prototype.isDebugEnabled=function(){return d(this._level,"debug")},l.prototype.debug=function(e){this.isDebugEnabled()&&this._loggerFunction("debug",e)},l);function l(e,t){this._level=e,this._loggerFunction=t}function f(){return o.call(this,a,function(e,t){})||this}r.Logger=e,i(f,o=e),f.prototype.isErrorEnabled=function(){return!1},f.prototype.error=function(e){},f.prototype.isWarnEnabled=function(){return!1},f.prototype.warn=function(e){},f.prototype.isInfoEnabled=function(){return!1},f.prototype.info=function(e){},f.prototype.isDebugEnabled=function(){return!1},f.prototype.debug=function(e){};var p=new f;function d(e,t){return c[e]>=c[t]}},{"../error":73}],82:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getBrokenObjectReason=r.isBrokenObject=r.createBrokenObject=void 0;var o="__isBrokenObject__",i="__reason__";r.createBrokenObject=function(r,e){function n(){throw r}return void 0===e&&(e={}),new Proxy(e,{get:function(e,t){return t===o||(t===i?r:void("toJSON"!==t&&n()))},set:n,apply:n,construct:n,defineProperty:n,deleteProperty:n,getOwnPropertyDescriptor:n,getPrototypeOf:n,has:n,isExtensible:n,ownKeys:n,preventExtensions:n,setPrototypeOf:n})},r.isBrokenObject=function(e){return null!==e&&"object"==typeof e&&!0===e[o]},r.getBrokenObjectReason=function(e){return e[i]}},{}],83:[function(e,t,r){"use strict";function n(){}function o(e){var t=e.error,e=e.onError;this._error=t,this._beforeError=e,this._observers=[],this.onError(t)}function i(e,t,r){null!=t&&t.bind(e)(r)}Object.defineProperty(r,"__esModule",{value:!0}),r.FailedObserver=r.CompletedObserver=void 0,n.prototype.subscribe=function(e){i(e,e.onKeys,[]),i(e,e.onCompleted,{})},n.prototype.cancel=function(){},n.prototype.pause=function(){},n.prototype.resume=function(){},n.prototype.prepareToHandleSingleResponse=function(){},n.prototype.markCompleted=function(){},n.prototype.onError=function(e){throw Error("CompletedObserver not supposed to call onError")},r.CompletedObserver=n,o.prototype.subscribe=function(e){i(e,e.onError,this._error),this._observers.push(e)},o.prototype.onError=function(t){i(this,this._beforeError,t),this._observers.forEach(function(e){return i(e,e.onError,t)})},o.prototype.cancel=function(){},o.prototype.pause=function(){},o.prototype.resume=function(){},o.prototype.markCompleted=function(){},o.prototype.prepareToHandleSingleResponse=function(){},r.FailedObserver=o},{}],84:[function(e,t,r){"use strict";function n(){}Object.defineProperty(r,"__esModule",{value:!0}),n.prototype.resolve=function(){throw new Error("Abstract function")},n.prototype._resolveToItself=function(e){return Promise.resolve([e])},r.default=n},{}],85:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("../server-address");function o(e){return Promise.resolve([e])}function i(e){this._resolverFunction=null!=e?e:o}i.prototype.resolve=function(t){var r=this;return new Promise(function(e){return e(r._resolverFunction(t.asHostPort()))}).then(function(e){if(Array.isArray(e))return e.map(function(e){return n.ServerAddress.fromUrl(e)});throw new TypeError("Configured resolver function should either return an array of addresses or a Promise resolved with an array of addresses."+"Each address is '<host>:<port>'. Got: ".concat(e))})},r.default=i},{"../server-address":87}],86:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.ConfiguredCustomResolver=r.BaseHostNameResolver=void 0,n(e("./base-host-name-resolver"))),o=(r.BaseHostNameResolver=o.default,n(e("./configured-custom-resolver")));r.ConfiguredCustomResolver=o.default},{"./base-host-name-resolver":84,"./configured-custom-resolver":85}],87:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.ServerAddress=void 0,e("./util")),a=i(e("./url-util"));function s(e,t,r,n){this._host=(0,u.assertString)(e,"host"),this._resolved=null!=t?(0,u.assertString)(t,"resolved"):null,this._port=(0,u.assertNumber)(r,"port"),this._hostPort=n,this._stringValue=null!=t?"".concat(n,"(").concat(t,")"):"".concat(n)}s.prototype.host=function(){return this._host},s.prototype.resolvedHost=function(){return null!=this._resolved?this._resolved:this._host},s.prototype.port=function(){return this._port},s.prototype.resolveWith=function(e){return new s(this._host,e,this._port,this._hostPort)},s.prototype.asHostPort=function(){return this._hostPort},s.prototype.asKey=function(){return this._hostPort},s.prototype.toString=function(){return this._stringValue},s.fromUrl=function(e){e=a.parseDatabaseUrl(e);return new s(e.host,null,e.port,e.hostAndPort)},r.ServerAddress=s},{"./url-util":91,"./util":92}],88:[function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},s=(Object.defineProperty(a,"__esModule",{value:!0}),a.floorMod=a.floorDiv=a.assertValidZoneId=a.assertValidNanosecond=a.assertValidSecond=a.assertValidMinute=a.assertValidHour=a.assertValidDay=a.assertValidMonth=a.assertValidYear=a.timeZoneOffsetInSeconds=a.totalNanoseconds=a.isoStringToStandardDate=a.dateToIsoString=a.timeZoneOffsetToIsoString=a.timeToIsoString=a.durationToIsoString=a.dateToEpochDay=a.localDateTimeToEpochSecond=a.localTimeToNanoOfDay=a.normalizeNanosecondsForDuration=a.normalizeSecondsForDuration=a.SECONDS_PER_DAY=a.DAYS_PER_400_YEAR_CYCLE=a.DAYS_0000_TO_1970=a.NANOS_PER_HOUR=a.NANOS_PER_MINUTE=a.NANOS_PER_MILLISECOND=a.NANOS_PER_SECOND=a.SECONDS_PER_HOUR=a.SECONDS_PER_MINUTE=a.MINUTES_PER_HOUR=a.NANOSECOND_OF_SECOND_RANGE=a.SECOND_OF_MINUTE_RANGE=a.MINUTE_OF_HOUR_RANGE=a.HOUR_OF_DAY_RANGE=a.DAY_OF_MONTH_RANGE=a.MONTH_OF_YEAR_RANGE=a.YEAR_RANGE=void 0,r(e("../integer"))),i=e("../error"),u=e("./util"),r=(c.prototype.contains=function(e){var t;return(0,s.isInt)(e)&&e instanceof s.default?e.greaterThanOrEqual(this._minInteger)&&e.lessThanOrEqual(this._maxInteger):"bigint"==typeof e?(t=(0,s.int)(e)).greaterThanOrEqual(this._minInteger)&&t.lessThanOrEqual(this._maxInteger):e>=this._minNumber&&e<=this._maxNumber},c.prototype.toString=function(){return"[".concat(this._minNumber,", ").concat(this._maxNumber,"]")},c);function c(e,t){this._minNumber=e,this._maxNumber=t,this._minInteger=(0,s.int)(e),this._maxInteger=(0,s.int)(t)}function l(e,t,r){e=(0,s.int)(e),t=(0,s.int)(t),r=(0,s.int)(r);var n=e.multiply(365);return n=(n=(n=e.greaterThanOrEqual(0)?n.add(e.add(3).div(4).subtract(e.add(99).div(100)).add(e.add(399).div(400))):n.subtract(e.div(-4).subtract(e.div(-100)).add(e.div(-400)))).add(t.multiply(367).subtract(362).div(12))).add(r.subtract(1)),t.greaterThan(2)&&(n=n.subtract(1),function(e){if((e=(0,s.int)(e)).modulo(4).equals(0))return!e.modulo(100).equals(0)||!!e.modulo(400).equals(0)}(e)||(n=n.subtract(1))),n.subtract(a.DAYS_0000_TO_1970)}function f(e,t,r){if((0,u.assertNumberOrInteger)(e,r),t.contains(e))return e;throw(0,i.newError)("".concat(r," is expected to be in range ").concat(t.toString()," but was: ").concat(e.toString()))}function p(e,t){e=(0,s.int)(e),t=(0,s.int)(t);var r=e.div(t);return r=e.isPositive()!==t.isPositive()&&r.multiply(t).notEquals(e)?r.subtract(1):r}function d(e,t){return e=(0,s.int)(e),t=(0,s.int)(t),e.subtract(p(e,t).multiply(t))}function h(e){return(e=(0,s.int)(e)).equals(0)?"":"."+b(e,9)}function b(e,t){var r=(e=(0,s.int)(e)).isNegative(),n=(e=r?e.negate():e).toString();if(null!=t)for(;n.length<t;)n="0"+n;return r?"-"+n:n}a.YEAR_RANGE=new r(-999999999,999999999),a.MONTH_OF_YEAR_RANGE=new r(1,12),a.DAY_OF_MONTH_RANGE=new r(1,31),a.HOUR_OF_DAY_RANGE=new r(0,23),a.MINUTE_OF_HOUR_RANGE=new r(0,59),a.SECOND_OF_MINUTE_RANGE=new r(0,59),a.NANOSECOND_OF_SECOND_RANGE=new r(0,999999999),a.MINUTES_PER_HOUR=60,a.SECONDS_PER_MINUTE=60,a.SECONDS_PER_HOUR=a.SECONDS_PER_MINUTE*a.MINUTES_PER_HOUR,a.NANOS_PER_SECOND=1e9,a.NANOS_PER_MILLISECOND=1e6,a.NANOS_PER_MINUTE=a.NANOS_PER_SECOND*a.SECONDS_PER_MINUTE,a.NANOS_PER_HOUR=a.NANOS_PER_MINUTE*a.MINUTES_PER_HOUR,a.DAYS_0000_TO_1970=719528,a.DAYS_PER_400_YEAR_CYCLE=146097,a.SECONDS_PER_DAY=86400,a.normalizeSecondsForDuration=function(e,t){return(0,s.int)(e).add(p(t,a.NANOS_PER_SECOND))},a.normalizeNanosecondsForDuration=function(e){return d(e,a.NANOS_PER_SECOND)},a.localTimeToNanoOfDay=function(e,t,r,n){return e=(0,s.int)(e),t=(0,s.int)(t),r=(0,s.int)(r),n=(0,s.int)(n),(e=(e=(e=e.multiply(a.NANOS_PER_HOUR)).add(t.multiply(a.NANOS_PER_MINUTE))).add(r.multiply(a.NANOS_PER_SECOND))).add(n)},a.localDateTimeToEpochSecond=function(e,t,r,n,o,i,u){return e=l(e,t,r),t=function(e,t,r){e=(0,s.int)(e),t=(0,s.int)(t),r=(0,s.int)(r);e=e.multiply(a.SECONDS_PER_HOUR);return(e=e.add(t.multiply(a.SECONDS_PER_MINUTE))).add(r)}(n,o,i),e.multiply(a.SECONDS_PER_DAY).add(t)},a.dateToEpochDay=l,a.durationToIsoString=function(e,t,r,n){return e=b(e),t=b(t),r=function(e,t){e=(0,s.int)(e),t=(0,s.int)(t);var r,n=e.isNegative(),o=t.greaterThan(0);e=n&&o?e.equals(-1)?"-0":e.add(1).toString():e.toString();o&&(r=h((n?t.negate().add(2*a.NANOS_PER_SECOND):t.add(a.NANOS_PER_SECOND)).modulo(a.NANOS_PER_SECOND)));return null!=r?e+r:e}(r,n),"P".concat(e,"M").concat(t,"DT").concat(r,"S")},a.timeToIsoString=function(e,t,r,n){return e=b(e,2),t=b(t,2),r=b(r,2),n=h(n),"".concat(e,":").concat(t,":").concat(r).concat(n)},a.timeZoneOffsetToIsoString=function(e){if((e=(0,s.int)(e)).equals(0))return"Z";var t=(r=e.isNegative())?"-":"+",r=b((e=r?e.multiply(-1):e).div(a.SECONDS_PER_HOUR),2),n=b(e.div(a.SECONDS_PER_MINUTE).modulo(a.MINUTES_PER_HOUR),2);return null!=(e=(e=e.modulo(a.SECONDS_PER_MINUTE)).equals(0)?null:b(e,2))?"".concat(t).concat(r,":").concat(n,":").concat(e):"".concat(t).concat(r,":").concat(n)},a.dateToIsoString=function(e,t,r){var e=b(e=(n=(e=(0,s.int)(e)).isNegative())?e.multiply(-1):e,4),n=(n&&(e="-"+e),b(t,2)),t=b(r,2);return"".concat(e,"-").concat(n,"-").concat(t)},a.isoStringToStandardDate=function(e){return new Date(e)},a.totalNanoseconds=function(e,t){return t=null!=t?t:0,e=e.getMilliseconds()*a.NANOS_PER_MILLISECOND,t instanceof s.default?t.add(e):"bigint"==typeof t?t+BigInt(e):t+e},a.timeZoneOffsetInSeconds=function(e){return 0===(e=e.getTimezoneOffset())?0:-1*e*a.SECONDS_PER_MINUTE},a.assertValidYear=function(e){return f(e,a.YEAR_RANGE,"Year")},a.assertValidMonth=function(e){return f(e,a.MONTH_OF_YEAR_RANGE,"Month")},a.assertValidDay=function(e){return f(e,a.DAY_OF_MONTH_RANGE,"Day")},a.assertValidHour=function(e){return f(e,a.HOUR_OF_DAY_RANGE,"Hour")},a.assertValidMinute=function(e){return f(e,a.MINUTE_OF_HOUR_RANGE,"Minute")},a.assertValidSecond=function(e){return f(e,a.SECOND_OF_MINUTE_RANGE,"Second")},a.assertValidNanosecond=function(e){return f(e,a.NANOSECOND_OF_SECOND_RANGE,"Nanosecond")},a.assertValidZoneId=function(t,r){try{Intl.DateTimeFormat(void 0,{timeZone:r})}catch(e){throw(0,i.newError)("".concat(t,' is expected to be a valid ZoneId but was: "').concat(r,'"'))}},a.floorDiv=p,a.floorMod=d},{"../error":73,"../integer":76,"./util":92}],89:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},c=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},l=(Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionExecutor=void 0,e("../error"));function o(e,t,r,n){this._maxRetryTimeMs=i(e,3e4),this._initialRetryDelayMs=i(t,1e3),this._multiplier=i(r,2),this._jitterFactor=i(n,.2),this._inFlightTimeoutIds=[],this._verifyAfterConstruction()}function i(e,t){return null!=e?e:t}o.prototype.execute=function(n,o,i){var u=this;return new Promise(function(e,t){u._executeTransactionInsidePromise(n,o,e,t,i).catch(t)}).catch(function(e){var t=Date.now(),r=u._initialRetryDelayMs;return u._retryTransactionPromise(n,o,e,t,r,i)})},o.prototype.close=function(){this._inFlightTimeoutIds.forEach(function(e){return clearTimeout(e)}),this._inFlightTimeoutIds=[]},o.prototype._retryTransactionPromise=function(o,i,e,r,u,a){var s=this;return Date.now()-r>this._maxRetryTimeMs||!(0,l.isRetriableError)(e)?Promise.reject(e):new Promise(function(e,t){var r=s._computeDelayWithJitter(u),n=setTimeout(function(){s._inFlightTimeoutIds=s._inFlightTimeoutIds.filter(function(e){return e!==n}),s._executeTransactionInsidePromise(o,i,e,t,a).catch(t)},r);s._inFlightTimeoutIds.push(n)}).catch(function(e){var t=u*s._multiplier;return s._retryTransactionPromise(o,i,e,r,t,a)})},o.prototype._executeTransactionInsidePromise=function(o,i,u,a,s){return n(this,void 0,void 0,function(){var t,r,n=this;return c(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o()];case 1:return t=e.sent(),[3,3];case 2:return r=e.sent(),a(r),[2];case 3:return r=(null!=s?s:function(e){return e})(t),this._safeExecuteTransactionWork(r,i).then(function(e){return n._handleTransactionWorkSuccess(e,t,u,a)}).catch(function(e){return n._handleTransactionWorkFailure(e,t,a)}),[2]}})})},o.prototype._safeExecuteTransactionWork=function(e,t){try{var r=t(e);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},o.prototype._handleTransactionWorkSuccess=function(e,t,r,n){t.isOpen()?t.commit().then(function(){r(e)}).catch(function(e){n(e)}):r(e)},o.prototype._handleTransactionWorkFailure=function(e,t,r){t.isOpen()?t.rollback().catch(function(e){}).then(function(){return r(e)}).catch(r):r(e)},o.prototype._computeDelayWithJitter=function(e){var t=e*this._jitterFactor,r=e-t,e=e+t;return Math.random()*(e-r)+r},o.prototype._verifyAfterConstruction=function(){if(this._maxRetryTimeMs<0)throw(0,l.newError)("Max retry time should be >= 0: "+this._maxRetryTimeMs.toString());if(this._initialRetryDelayMs<0)throw(0,l.newError)("Initial retry delay should >= 0: "+this._initialRetryDelayMs.toString());if(this._multiplier<1)throw(0,l.newError)("Multiplier should be >= 1.0: "+this._multiplier.toString());if(this._jitterFactor<0||1<this._jitterFactor)throw(0,l.newError)("Jitter factor should be in [0.0, 1.0]: "+this._jitterFactor.toFixed())},r.TransactionExecutor=o},{"../error":73}],90:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.TxConfig=void 0,i(e("./util"))),a=e("../error"),s=e("../integer"),i=(c.empty=function(){return l},c.prototype.isEmpty=function(){return Object.values(this).every(function(e){return null==e})},c);function c(e){var t;null!=(t=e)&&u.assertObject(t,"Transaction config"),this.timeout=function(e){if(u.isObject(e)&&null!=e.timeout){u.assertNumberOrInteger(e.timeout,"Transaction timeout");e=(0,s.int)(e.timeout);if(e.isNegative())throw(0,a.newError)("Transaction timeout should not be negative");return e}return null}(e),this.metadata=function(e){if(u.isObject(e)&&null!=e.metadata){e=e.metadata;if(u.assertObject(e,"config.metadata"),0!==Object.keys(e).length)return e}return null}(e)}var l=new(r.TxConfig=i)({})},{"../error":73,"../integer":76,"./util":92}],91:[function(e,t,r){"use strict";var a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},c=(Object.defineProperty(r,"__esModule",{value:!0}),r.Url=r.formatIPv6Address=r.formatIPv4Address=r.defaultPortForScheme=r.parseDatabaseUrl=void 0,e("./util")),n=7687,o=7474,i=7473,l=function(e,t,r,n,o){this.scheme=e,this.host=t,this.port=r,this.hostAndPort=n,this.query=o};function f(e,t,r){if(""===(e=(null!=e?e:"").trim()))throw new Error("Illegal empty ".concat(t," in URL query '").concat(r,"'"));return e}function p(e){var t="["===e.charAt(0),r="]"===e.charAt(e.length-1);if(t||r){if(t&&r)return e;throw new Error("Illegal IPv6 address ".concat(e))}return"[".concat(e,"]")}function d(e){return"http"===e?o:"https"===e?i:n}r.Url=l,r.parseDatabaseUrl=function(e){(0,c.assertString)(e,"URL");var t,r=function(e){function u(e,t){t=e.indexOf(t);return 0<=t?[e.substring(0,t),e[t],e.substring(t+1)]:[e,"",""]}function t(e){var t,r={},n=((t="@")===(t=0<=(t=(o=e).lastIndexOf(t))?[o.substring(0,t),o[t],o.substring(t+1)]:["","",o])[1]&&(r.userInfo=decodeURIComponent(t[0]),e=t[2]),s((o="]",n=u(n=e,i="["),[(i=u(n[2],o))[0],i[2]]),2)),o=n[0],i=n[1];return""!==o?(r.host=o,t=u(i,":")):(t=u(e,":"),r.host=t[0]),":"===t[1]&&(r.port=t[2]),r}var r,n={};":"===(r=u(e,":"))[1]&&(n.scheme=decodeURIComponent(r[0]),e=r[2]);"#"===(r=u(e,"#"))[1]&&(n.fragment=decodeURIComponent(r[2]),e=r[0]);"?"===(r=u(e,"?"))[1]&&(n.query=r[2],e=r[0]);e.startsWith("//")?(r=u(e.substr(2),"/"),(n=a(a({},n),t(r[0]))).path=r[1]+r[2]):n.path=e;return n}((n=(n=(n=e).trim()).includes("://")?{schemeMissing:!1,url:n}:{schemeMissing:!0,url:"none://".concat(n)}).url),n=n.schemeMissing?null:function(e){if(null==e)return null;":"===(e=e.trim()).charAt(e.length-1)&&(e=e.substring(0,e.length-1));return e}(r.scheme),o=function(e){if(null!=e)return e.trim();throw new Error("Unable to extract host from null or undefined URL")}(r.host),i=function(e){if(""!==e&&null!=e)return e.includes(":")?p(e):e;throw new Error("Illegal host ".concat(e))}(o),u=function(e,t){e="string"==typeof e?parseInt(e,10):e;return null==e||isNaN(e)?d(t):e}(r.port,n),i="".concat(i,":").concat(u),r=function(e,r){var e=null!=e?function(e){"?"===(null==(e=(null!=e?e:"").trim())?void 0:e.charAt(0))&&(e=e.substring(1,e.length));return e}(e):null,n={};null!=e&&e.split("&").forEach(function(e){e=e.split("=");if(2!==e.length)throw new Error("Invalid parameters: '".concat(e.toString(),"' in URL '").concat(r,"'."));var t=f(e[0],"key",r),e=f(e[1],"value",r);if(void 0!==n[t])throw new Error("Duplicated query parameters with key '".concat(t,"' in URL '").concat(r,"'"));n[t]=e});return n}(null!=(t=r.query)?t:"string"==typeof(t=r.resourceName)?s(t.split("?"),2)[1]:null,e);return new l(n,o,u,i,r)},r.formatIPv4Address=function(e,t){return"".concat(e,":").concat(t)},r.formatIPv6Address=function(e,t){return e=p(e),"".concat(e,":").concat(t)},r.defaultPortForScheme=d},{"./util":92}],92:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ENCRYPTION_OFF=r.ENCRYPTION_ON=r.validateQueryAndParameters=r.assertValidDate=r.assertNumberOrInteger=r.assertNumber=r.assertString=r.assertObject=r.isString=r.isObject=r.isEmptyObjectOrNull=void 0;var n=e("../integer"),o=e("../json");r.ENCRYPTION_ON="ENCRYPTION_ON";function i(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function u(e,t){if(a(e))return e;throw new TypeError((0,o.stringify)(t)+" expected to be string but was: "+(0,o.stringify)(e))}function a(e){return"[object String]"===Object.prototype.toString.call(e)}r.ENCRYPTION_OFF="ENCRYPTION_OFF",r.isEmptyObjectOrNull=function(e){if(null===e)return!0;if(!i(e))return!1;for(var t in e)if(void 0!==e[t])return!1;return!0},r.isObject=i,r.validateQueryAndParameters=function(e,t,r){var n="",t=null!=t?t:{},r=null!=(r=null==r?void 0:r.skipAsserts)&&r;if("string"==typeof e?n=e:e instanceof String?n=e.toString():"object"==typeof e&&null!=e.text&&(n=e.text,t=null!=(e=e.parameters)?e:{}),!r){e=n;if(u(e,"Cypher query"),0===e.trim().length)throw new TypeError("Cypher query is expected to be a non-empty string.");r=t;if(!i(r))throw e=null!=r.constructor?" "+r.constructor.name:"",new TypeError("Query parameters are expected to either be undefined/null or an object, given:".concat(e," ").concat(JSON.stringify(r)))}return{validatedQuery:n,params:t}},r.assertObject=function(e,t){if(i(e))return e;throw new TypeError(t+" expected to be an object but was: "+(0,o.stringify)(e))},r.assertString=u,r.assertNumber=function(e,t){if("number"!=typeof e)throw new TypeError(t+" expected to be a number but was: "+(0,o.stringify)(e));return e},r.assertNumberOrInteger=function(e,t){if("number"==typeof e||"bigint"==typeof e||(0,n.isInt)(e))return e;throw new TypeError(t+" expected to be either a number or an Integer object but was: "+(0,o.stringify)(e))},r.assertValidDate=function(e,t){if("[object Date]"!==Object.prototype.toString.call(e))throw new TypeError(t+" expected to be a standard JavaScript Date but was: "+(0,o.stringify)(e));if(Number.isNaN(e.getTime()))throw new TypeError(t+" expected to be valid JavaScript Date but its time was NaN: "+(0,o.stringify)(e));return e},r.isString=a},{"../integer":76,"../json":93}],93:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.stringify=void 0;var n=e("./internal/object-util");r.stringify=function(e){return JSON.stringify(e,function(e,t){return(0,n.isBrokenObject)(t)?{__isBrokenObject__:!0,__reason__:(0,n.getBrokenObjectReason)(t)}:"bigint"==typeof t?"".concat(t,"n"):t})}},{"./internal/object-util":82}],94:[function(e,t,r){"use strict";var n=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},c=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=(Object.defineProperty(r,"__esModule",{value:!0}),e("./error"));function i(e,t,r){var n;this.keys=e,this.length=e.length,this._fields=t,this._fieldLookup=null!=r?r:(n={},e.forEach(function(e,t){n[e]=t}),n)}i.prototype.forEach=function(e){var t,r;try{for(var n=c(this.entries()),o=n.next();!o.done;o=n.next()){var i=l(o.value,2),u=i[0];e(i[1],u,this)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},i.prototype.map=function(e){var t,r,n=[];try{for(var o=c(this.entries()),i=o.next();!i.done;i=o.next()){var u=l(i.value,2),a=u[0],s=u[1];n.push(e(s,a,this))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n},i.prototype.entries=function(){var t;return n(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.keys.length?[4,[this.keys[t],this._fields[t]]]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})},i.prototype.values=function(){var t;return n(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.keys.length?[4,this._fields[t]]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})},i.prototype[Symbol.iterator]=function(){var t;return n(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.keys.length?[4,this._fields[t]]:[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})},i.prototype.toObject=function(){var t,e,r={};try{for(var n=c(this.entries()),o=n.next();!o.done;o=n.next()){var i=l(o.value,2),u=i[0],a=i[1];r[u]=a}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return r},i.prototype.get=function(e){var t;if("number"!=typeof e){if(void 0===(t=this._fieldLookup[e]))throw(0,o.newError)("This record has no field with key '"+e+"', available key are: ["+this.keys.toString()+"].")}else t=e;if(t>this._fields.length-1||t<0)throw(0,o.newError)("This record has no field with index '"+t.toString()+"'. Remember that indexes start at `0`, and make sure your query returns records in the shape you meant it to.");return this._fields[t]},i.prototype.has=function(e){return"number"==typeof e?0<=e&&e<this._fields.length:void 0!==this._fieldLookup[e]},r.default=i},{"./error":73}],95:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.Stats=r.QueryStatistics=r.ProfiledPlan=r.Plan=r.Notification=r.ServerInfo=r.queryType=void 0,i(e("./integer"))),i=(a.prototype._buildNotifications=function(e){return null==e?[]:e.map(function(e){return new d(e)})},a.prototype.hasPlan=function(){return this.plan instanceof s},a.prototype.hasProfile=function(){return this.profile instanceof c},a);function a(e,t,r,n){this.query={text:e,parameters:t},this.queryType=r.type,this.counters=new f(null!=(e=r.stats)?e:{}),this.updateStatistics=this.counters,this.plan=(null!=r.plan||null!=r.profile)&&new s(null!=(t=r.plan)?t:r.profile),this.profile=null!=r.profile&&new c(r.profile),this.notifications=this._buildNotifications(r.notifications),this.server=new b(r.server,n),this.resultConsumedAfter=r.result_consumed_after,this.resultAvailableAfter=r.result_available_after,this.database={name:null!=(e=r.db)?e:null}}var s=function t(e){this.operatorType=e.operatorType,this.identifiers=e.identifiers,this.arguments=e.args,this.children=null!=e.children?e.children.map(function(e){return new t(e)}):[]},c=(r.Plan=s,l.prototype.hasPageCacheStats=function(){return 0<this.pageCacheMisses||0<this.pageCacheHits||0<this.pageCacheHitRatio},l);function l(e){this.operatorType=e.operatorType,this.identifiers=e.identifiers,this.arguments=e.args,this.dbHits=v("dbHits",e),this.rows=v("rows",e),this.pageCacheMisses=v("pageCacheMisses",e),this.pageCacheHits=v("pageCacheHits",e),this.pageCacheHitRatio=v("pageCacheHitRatio",e),this.time=v("time",e),this.children=null!=e.children?e.children.map(function(e){return new l(e)}):[]}r.ProfiledPlan=c;r.Stats=function(){this.nodesCreated=0,this.nodesDeleted=0,this.relationshipsCreated=0,this.relationshipsDeleted=0,this.propertiesSet=0,this.labelsAdded=0,this.labelsRemoved=0,this.indexesAdded=0,this.indexesRemoved=0,this.constraintsAdded=0,this.constraintsRemoved=0},p.prototype.containsUpdates=function(){var r=this;return void 0!==this._containsUpdates?this._containsUpdates:0<Object.keys(this._stats).reduce(function(e,t){return e+r._stats[t]},0)},p.prototype.updates=function(){return this._stats},p.prototype.containsSystemUpdates=function(){return void 0!==this._containsSystemUpdates?this._containsSystemUpdates:0<this._systemUpdates},p.prototype.systemUpdates=function(){return this._systemUpdates};var f=p;function p(r){var n=this;this._stats={nodesCreated:0,nodesDeleted:0,relationshipsCreated:0,relationshipsDeleted:0,propertiesSet:0,labelsAdded:0,labelsRemoved:0,indexesAdded:0,indexesRemoved:0,constraintsAdded:0,constraintsRemoved:0},this._systemUpdates=0,Object.keys(r).forEach(function(e){var t=e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()});t in n._stats?n._stats[t]=y(r[e]):"systemUpdates"===t?n._systemUpdates=y(r[e]):"containsSystemUpdates"===t?n._containsSystemUpdates=r[e]:"containsUpdates"===t&&(n._containsUpdates=r[e])}),this._stats=Object.freeze(this._stats)}r.QueryStatistics=f;h._constructPosition=function(e){return null==e?{}:{offset:y(e.offset),line:y(e.line),column:y(e.column)}};var d=h;function h(e){this.code=e.code,this.title=e.title,this.description=e.description,this.severity=e.severity,this.position=h._constructPosition(e.position)}r.Notification=d;var b=function(e,t){null!=e&&(this.address=e.address,this.agent=e.version),this.protocolVersion=t};function y(e){return e instanceof u.default?e.toInt():"bigint"==typeof e?(0,u.int)(e).toInt():e}function v(e,t,r){return void 0===r&&(r=0),!1!==t&&e in t?y(t[e]):r}r.ServerInfo=b;r.queryType={READ_ONLY:"r",READ_WRITE:"rw",WRITE_ONLY:"w",SCHEMA_WRITE:"s"},r.default=i},{"./integer":76}],96:[function(e,t,r){"use strict";function u(e){console.log("Uncaught error when processing result: "+e)}function a(e){}function s(e){}var c=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},l=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},i=(Object.defineProperty(r,"__esModule",{value:!0}),n(e("./result-summary"))),f=e("./internal"),p=e("./error"),d=f.connectionHolder.EMPTY_CONNECTION_HOLDER;function o(e,t,r,n,o){var i;void 0===o&&(o={high:Number.MAX_VALUE,low:Number.MAX_VALUE}),this._stack=null==(i=new Error("")).stack?null:i.stack.replace(/^Error(\n\r)*/,""),this._streamObserverPromise=e,this._p=null,this._query=t,this._parameters=null!=r?r:{},this._connectionHolder=null!=n?n:d,this._keys=null,this._summary=null,this._error=null,this._watermarks=o}o.prototype.keys=function(){var n=this;return null!==this._keys?Promise.resolve(this._keys):null!==this._error?Promise.reject(this._error):new Promise(function(t,r){n._streamObserverPromise.then(function(e){return e.subscribe(n._decorateObserver({onKeys:function(e){return t(e)},onError:function(e){return r(e)}}))}).catch(r)})},o.prototype.summary=function(){var n=this;return null!==this._summary?Promise.resolve(this._summary):null!==this._error?Promise.reject(this._error):new Promise(function(t,r){n._streamObserverPromise.then(function(e){e.cancel(),e.subscribe(n._decorateObserver({onCompleted:function(e){return t(e)},onError:function(e){return r(e)}}))}).catch(r)})},o.prototype._getOrCreatePromise=function(){var e=this;return null==this._p&&(this._p=new Promise(function(t,r){var n=[];e.subscribe({onNext:function(e){n.push(e)},onCompleted:function(e){t({records:n,summary:e})},onError:function(e){r(e)}})})),this._p},o.prototype[Symbol.asyncIterator]=function(){var e,n=this;if(!this.isOpen())return e=(0,p.newError)("Result is already consumed"),{next:function(){return Promise.reject(e)},peek:function(){return Promise.reject(e)}};function o(){return c(n,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return void 0!==u.queuedObserver?[3,2]:(u.queuedObserver=this._createQueuedResultObserver(r),t=u,[4,this._subscribe(u.queuedObserver,!0).catch(function(){})]);case 1:t.streaming=e.sent(),r(),e.label=2;case 2:return[2,u.queuedObserver]}})})}function i(e){if(void 0===e)throw(0,p.newError)("InvalidState: Result stream finished without Summary",p.PROTOCOL_ERROR);return 1}var u={paused:!0,firstRun:!0,finished:!1},r=function(){var e,t;null!=u.streaming&&(e=(t=null!=(t=null==(t=u.queuedObserver)?void 0:t.size)?t:0)>=n._watermarks.high,t=t<=n._watermarks.low,e&&!u.paused?(u.paused=!0,u.streaming.pause()):(t&&u.paused||u.firstRun&&!e)&&(u.firstRun=!1,u.paused=!1,u.streaming.resume()))};return{next:function(){return c(n,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return u.finished&&i(u.summary)?[2,{done:!0,value:u.summary}]:[4,o()];case 1:return[4,e.sent().dequeue()];case 2:return!0===(t=e.sent()).done&&(u.finished=t.done,u.summary=t.value),[2,t]}})})},return:function(r){return c(n,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return u.finished&&i(u.summary)?[2,{done:!0,value:null!=r?r:u.summary}]:(null!=(t=u.streaming)&&t.cancel(),[4,o()]);case 1:return[4,e.sent().dequeueUntilDone()];case 2:return t=e.sent(),u.finished=!0,t.value=null!=r?r:t.value,u.summary=t.value,[2,t]}})})},peek:function(){return c(n,void 0,void 0,function(){return l(this,function(e){switch(e.label){case 0:return u.finished&&i(u.summary)?[2,{done:!0,value:u.summary}]:[4,o()];case 1:return[4,e.sent().head()];case 2:return[2,e.sent()]}})})}}},o.prototype.then=function(e,t){return this._getOrCreatePromise().then(e,t)},o.prototype.catch=function(e){return this._getOrCreatePromise().catch(e)},o.prototype.finally=function(e){return this._getOrCreatePromise().finally(e)},o.prototype.subscribe=function(e){this._subscribe(e).catch(function(){})},o.prototype.isOpen=function(){return null===this._summary&&null===this._error},o.prototype._subscribe=function(e,t){void 0===t&&(t=!1);var r=this._decorateObserver(e);return this._streamObserverPromise.then(function(e){return t&&e.pause(),e.subscribe(r),e}).catch(function(e){return null!=r.onError&&r.onError(e),Promise.reject(e)})},o.prototype._decorateObserver=function(n){var e,o=this,t=null!=(e=n.onCompleted)?e:a,i=null!=(e=n.onError)?e:u,r=null!=(e=n.onKeys)?e:s;return{onNext:null!=n.onNext?n.onNext.bind(n):void 0,onKeys:function(e){return o._keys=e,r.call(n,e)},onCompleted:function(e){o._releaseConnectionAndGetSummary(e).then(function(e){return null!==o._summary?t.call(n,o._summary):(o._summary=e,t.call(n,e))}).catch(i)},onError:function(r){o._connectionHolder.releaseConnection().then(function(){var e,t;e=r,null!=(t=o._stack)&&(e.stack=e.toString()+"\n"+t),o._error=r,i.call(n,r)}).catch(i)}}},o.prototype._cancel=function(){null===this._summary&&null===this._error&&this._streamObserverPromise.then(function(e){return e.cancel()}).catch(function(){})},o.prototype._releaseConnectionAndGetSummary=function(t){var e=f.util.validateQueryAndParameters(this._query,this._parameters,{skipAsserts:!0}),r=e.validatedQuery,n=e.params,o=this._connectionHolder;return o.getConnection().then(function(t){return o.releaseConnection().then(function(){var e;return null==(e=null==t?void 0:t.protocol())?void 0:e.version})},function(e){}).then(function(e){return new i.default(r,n,t,e)})},o.prototype._createQueuedResultObserver=function(n){var e=this;function o(){var r={};return r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r}function i(e){return e instanceof Error}function r(){var r;return c(this,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:if(0<u.length){if(t=null!=(r=u.shift())?r:(0,p.newError)("Unexpected empty buffer",p.PROTOCOL_ERROR),n(),i(t))throw t;return[2,t]}return a.resolvable=o(),[4,a.resolvable.promise];case 1:return[2,e.sent()]}})})}var u=[],a={resolvable:null},t={onNext:function(e){t._push({done:!1,value:e})},onCompleted:function(e){t._push({done:!0,value:e})},onError:function(e){t._push(e)},_push:function(e){var t;null!==a.resolvable?(t=a.resolvable,a.resolvable=null,i(e)?t.reject(e):t.resolve(e)):(u.push(e),n())},dequeue:r,dequeueUntilDone:function(){return c(e,void 0,void 0,function(){var t;return l(this,function(e){switch(e.label){case 0:return[4,r()];case 1:return!0===(t=e.sent()).done?[2,t]:[3,0];case 2:return[2]}})})},head:function(){return c(e,void 0,void 0,function(){var t,r;return l(this,function(e){switch(e.label){case 0:if(0<u.length){if(i(t=u[0]))throw t;return[2,t]}a.resolvable=o(),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,a.resolvable.promise];case 2:return t=e.sent(),u.unshift(t),[2,t];case 3:throw r=e.sent(),u.unshift(r),r;case 4:return n(),[7];case 5:return[2]}})})},get size(){return u.length}};return t},Symbol.toStringTag,r.default=o},{"./error":73,"./internal":80,"./result-summary":95}],97:[function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},c=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),e("./internal/observers")),l=e("./internal/util"),f=e("./internal/constants"),a=e("./error"),p=i(e("./result")),d=e("./internal/connection-holder"),h=e("./internal/transaction-executor"),b=e("./internal/bookmarks"),y=e("./internal/tx-config"),v=i(e("./transaction-promise")),m=i(e("./transaction-managed"));function _(e){var t=e.mode,r=e.connectionProvider,n=e.bookmarks,o=e.database,i=e.config,u=e.reactive,a=e.fetchSize,s=e.impersonatedUser,e=e.bookmarkManager,t=(this._mode=t,this._database=o,this._reactive=u,this._fetchSize=a,this._onDatabaseNameResolved=this._onDatabaseNameResolved.bind(this),this._getConnectionAcquistionBookmarks=this._getConnectionAcquistionBookmarks.bind(this),this._readConnectionHolder=new d.ConnectionHolder({mode:f.ACCESS_MODE_READ,database:o,bookmarks:n,connectionProvider:r,impersonatedUser:s,onDatabaseNameResolved:this._onDatabaseNameResolved,getConnectionAcquistionBookmarks:this._getConnectionAcquistionBookmarks}),this._writeConnectionHolder=new d.ConnectionHolder({mode:f.ACCESS_MODE_WRITE,database:o,bookmarks:n,connectionProvider:r,impersonatedUser:s,onDatabaseNameResolved:this._onDatabaseNameResolved,getConnectionAcquistionBookmarks:this._getConnectionAcquistionBookmarks}),this._open=!0,this._hasTx=!1,this._impersonatedUser=s,this._lastBookmarks=null!=n?n:b.Bookmarks.empty(),this._configuredBookmarks=this._lastBookmarks,this._transactionExecutor=function(e){e=null!=(e=null==e?void 0:e.maxTransactionRetryTime)?e:null;return new h.TransactionExecutor(e)}(i),this._databaseNameResolved=""!==this._database,this._calculateWatermaks());this._lowRecordWatermark=t.low,this._highRecordWatermark=t.high,this._results=[],this._bookmarkManager=e}_.prototype.run=function(e,t,r){var o=this,e=(0,l.validateQueryAndParameters)(e,t),i=e.validatedQuery,u=e.params,a=null!=r?new y.TxConfig(r):y.TxConfig.empty(),t=this._run(i,u,function(n){return s(o,void 0,void 0,function(){var t,r=this;return c(this,function(e){switch(e.label){case 0:return[4,this._bookmarks()];case 1:return t=e.sent(),this._assertSessionIsOpen(),[2,n.protocol().run(i,u,{bookmarks:t,txConfig:a,mode:this._mode,database:this._database,impersonatedUser:this._impersonatedUser,afterComplete:function(e){return r._onCompleteCallback(e,t)},reactive:this._reactive,fetchSize:this._fetchSize,lowRecordWatermark:this._lowRecordWatermark,highRecordWatermark:this._highRecordWatermark})]}})})});return this._results.push(t),t},_.prototype._run=function(e,t,r){var n=this._connectionHolderWithMode(this._mode),o=this._open?!this._hasTx&&n.initializeConnection()?n.getConnection().then(function(e){return r(e)}).catch(function(e){return Promise.resolve(new u.FailedObserver({error:e}))}):Promise.resolve(new u.FailedObserver({error:(0,a.newError)("Queries cannot be run directly on a session with an open transaction; either run from within the transaction or use a different session.")})):Promise.resolve(new u.FailedObserver({error:(0,a.newError)("Cannot run query in a closed session.")})),i={high:this._highRecordWatermark,low:this._lowRecordWatermark};return new p.default(o,e,t,n,i)},_.prototype._acquireConnection=function(t){var e=this,r=this._connectionHolderWithMode(this._mode),n=this._open?!this._hasTx&&r.initializeConnection()?r.getConnection().then(function(e){return t(e)}).then(function(t){return s(e,void 0,void 0,function(){return c(this,function(e){switch(e.label){case 0:return[4,r.releaseConnection()];case 1:return e.sent(),[2,t]}})})}):Promise.reject((0,a.newError)("Queries cannot be run directly on a session with an open transaction; either run from within the transaction or use a different session.")):Promise.reject((0,a.newError)("Cannot run query in a closed session."));return n},_.prototype.beginTransaction=function(e){var t=y.TxConfig.empty();return null!=e&&(t=new y.TxConfig(e)),this._beginTransaction(this._mode,t)},_.prototype._beginTransaction=function(e,t){var n=this;if(!this._open)throw(0,a.newError)("Cannot begin a transaction on a closed session.");if(this._hasTx)throw(0,a.newError)("You cannot begin a transaction on a session with an open transaction; either run from within the transaction or use a different session.");e=_._validateSessionMode(e),e=this._connectionHolderWithMode(e),e.initializeConnection(),this._hasTx=!0,e=new v.default({connectionHolder:e,impersonatedUser:this._impersonatedUser,onClose:this._transactionClosed.bind(this),onBookmarks:function(e,t,r){return n._updateBookmarks(e,t,r)},onConnection:this._assertSessionIsOpen.bind(this),reactive:this._reactive,fetchSize:this._fetchSize,lowRecordWatermark:this._lowRecordWatermark,highRecordWatermark:this._highRecordWatermark});return e._begin(function(){return n._bookmarks()},t),e},_.prototype._assertSessionIsOpen=function(){if(!this._open)throw(0,a.newError)("You cannot run more transactions on a closed session.")},_.prototype._transactionClosed=function(){this._hasTx=!1},_.prototype.lastBookmark=function(){return this.lastBookmarks()},_.prototype.lastBookmarks=function(){return this._lastBookmarks.values()},_.prototype._bookmarks=function(){var r;return s(this,void 0,void 0,function(){var t;return c(this,function(e){switch(e.label){case 0:return[4,null==(r=this._bookmarkManager)?void 0:r.getAllBookmarks()];case 1:return void 0===(t=e.sent())?[2,this._lastBookmarks]:[2,new b.Bookmarks(o(o([],n(t),!1),n(this._configuredBookmarks),!1))]}})})},_.prototype.readTransaction=function(e,t){t=new y.TxConfig(t);return this._runTransaction(f.ACCESS_MODE_READ,t,e)},_.prototype.writeTransaction=function(e,t){t=new y.TxConfig(t);return this._runTransaction(f.ACCESS_MODE_WRITE,t,e)},_.prototype._runTransaction=function(e,t,r){var n=this;return this._transactionExecutor.execute(function(){return n._beginTransaction(e,t)},r)},_.prototype.executeRead=function(e,t){t=new y.TxConfig(t);return this._executeInTransaction(f.ACCESS_MODE_READ,t,e)},_.prototype.executeWrite=function(e,t){t=new y.TxConfig(t);return this._executeInTransaction(f.ACCESS_MODE_WRITE,t,e)},_.prototype._executeInTransaction=function(e,t,r){var n=this;return this._transactionExecutor.execute(function(){return n._beginTransaction(e,t)},r,m.default.fromTransaction)},_.prototype._onDatabaseNameResolved=function(e){this._databaseNameResolved||(this._database=e=null!=e?e:"",this._readConnectionHolder.setDatabase(e),this._writeConnectionHolder.setDatabase(e),this._databaseNameResolved=!0)},_.prototype._getConnectionAcquistionBookmarks=function(){var r;return s(this,void 0,void 0,function(){var t;return c(this,function(e){switch(e.label){case 0:return[4,null==(r=this._bookmarkManager)?void 0:r.getBookmarks("system")];case 1:return void 0===(t=e.sent())?[2,this._lastBookmarks]:[2,new b.Bookmarks(o(o([],n(this._configuredBookmarks),!1),n(t),!1))]}})})},_.prototype._updateBookmarks=function(e,t,r){var n;null==e||e.isEmpty()||(null!=(n=this._bookmarkManager)&&n.updateBookmarks(null!=r?r:this._database,null!=(n=null==t?void 0:t.values())?n:[],null!=(r=null==e?void 0:e.values())?r:[]),this._lastBookmarks=e,this._configuredBookmarks=b.Bookmarks.empty())},_.prototype.close=function(){return s(this,void 0,void 0,function(){return c(this,function(e){switch(e.label){case 0:return this._open?(this._open=!1,this._results.forEach(function(e){return e._cancel()}),this._transactionExecutor.close(),[4,this._readConnectionHolder.close(this._hasTx)]):[3,3];case 1:return e.sent(),[4,this._writeConnectionHolder.close(this._hasTx)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},_.prototype._connectionHolderWithMode=function(e){if(e===f.ACCESS_MODE_READ)return this._readConnectionHolder;if(e===f.ACCESS_MODE_WRITE)return this._writeConnectionHolder;throw(0,a.newError)("Unknown access mode: "+e)},_.prototype._onCompleteCallback=function(e,t){this._updateBookmarks(new b.Bookmarks(e.bookmark),t,e.db)},_.prototype._calculateWatermaks=function(){return this._fetchSize===f.FETCH_ALL?{low:Number.MAX_VALUE,high:Number.MAX_VALUE}:{low:.3*this._fetchSize,high:.7*this._fetchSize}},_._validateSessionMode=function(e){e=null!=e?e:f.ACCESS_MODE_WRITE;if(e!==f.ACCESS_MODE_READ&&e!==f.ACCESS_MODE_WRITE)throw(0,a.newError)("Illegal session mode "+e);return e},r.default=_},{"./error":73,"./internal/bookmarks":77,"./internal/connection-holder":78,"./internal/constants":79,"./internal/observers":83,"./internal/transaction-executor":89,"./internal/tx-config":90,"./internal/util":92,"./result":96,"./transaction-managed":100,"./transaction-promise":101}],98:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPoint=r.Point=void 0;var o=e("./internal/util"),n="__isPoint__",e=(i.prototype.toString=function(){return null==this.z||isNaN(this.z)?"Point{srid=".concat(u(this.srid),", x=").concat(u(this.x),", y=").concat(u(this.y),"}"):"Point{srid=".concat(u(this.srid),", x=").concat(u(this.x),", y=").concat(u(this.y),", z=").concat(u(this.z),"}")},i);function i(e,t,r,n){this.srid=(0,o.assertNumberOrInteger)(e,"SRID"),this.x=(0,o.assertNumber)(t,"X coordinate"),this.y=(0,o.assertNumber)(r,"Y coordinate"),this.z=null==n?n:(0,o.assertNumber)(n,"Z coordinate"),Object.freeze(this)}function u(e){return Number.isInteger(e)?e.toString()+".0":e.toString()}r.Point=e,Object.defineProperty(e.prototype,n,{value:!0,enumerable:!1,configurable:!1,writable:!1}),r.isPoint=function(e){return null!=e&&!0===e[n]}},{"./internal/util":92}],99:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&("get"in o?t.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},l=(Object.defineProperty(r,"__esModule",{value:!0}),r.isDateTime=r.DateTime=r.isLocalDateTime=r.LocalDateTime=r.isDate=r.Date=r.isTime=r.Time=r.isLocalTime=r.LocalTime=r.isDuration=r.Duration=void 0,i(e("./internal/temporal-util"))),f=e("./internal/util"),p=e("./error"),u=i(e("./integer")),i={value:!0,enumerable:!1,configurable:!1,writable:!1},a="__isDuration__",s="__isLocalTime__",d="__isTime__",h="__isDate__",b="__isLocalDateTime__",y="__isDateTime__",e=(v.prototype.toString=function(){return l.durationToIsoString(this.months,this.days,this.seconds,this.nanoseconds)},v);function v(e,t,r,n){this.months=(0,f.assertNumberOrInteger)(e,"Months"),this.days=(0,f.assertNumberOrInteger)(t,"Days"),(0,f.assertNumberOrInteger)(r,"Seconds"),(0,f.assertNumberOrInteger)(n,"Nanoseconds"),this.seconds=l.normalizeSecondsForDuration(r,n),this.nanoseconds=l.normalizeNanosecondsForDuration(n),Object.freeze(this)}r.Duration=e,Object.defineProperty(e.prototype,a,i),r.isDuration=function(e){return S(e,a)};m.fromStandardDate=function(e,t){P(e,t);t=l.totalNanoseconds(e,t);return new m(e.getHours(),e.getMinutes(),e.getSeconds(),t instanceof u.default?t.toInt():"bigint"==typeof t?(0,u.int)(t).toInt():t)},m.prototype.toString=function(){return l.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)};e=m;function m(e,t,r,n){this.hour=l.assertValidHour(e),this.minute=l.assertValidMinute(t),this.second=l.assertValidSecond(r),this.nanosecond=l.assertValidNanosecond(n),Object.freeze(this)}r.LocalTime=e,Object.defineProperty(e.prototype,s,i),r.isLocalTime=function(e){return S(e,s)};_.fromStandardDate=function(e,t){return P(e,t),new _(e.getHours(),e.getMinutes(),e.getSeconds(),(0,u.toNumber)(l.totalNanoseconds(e,t)),l.timeZoneOffsetInSeconds(e))},_.prototype.toString=function(){return l.timeToIsoString(this.hour,this.minute,this.second,this.nanosecond)+l.timeZoneOffsetToIsoString(this.timeZoneOffsetSeconds)};e=_;function _(e,t,r,n,o){this.hour=l.assertValidHour(e),this.minute=l.assertValidMinute(t),this.second=l.assertValidSecond(r),this.nanosecond=l.assertValidNanosecond(n),this.timeZoneOffsetSeconds=(0,f.assertNumberOrInteger)(o,"Time zone offset in seconds"),Object.freeze(this)}r.Time=e,Object.defineProperty(e.prototype,d,i),r.isTime=function(e){return S(e,d)};g.fromStandardDate=function(e){return P(e),new g(e.getFullYear(),e.getMonth()+1,e.getDate())},g.prototype.toStandardDate=function(){return l.isoStringToStandardDate(this.toString())},g.prototype.toString=function(){return l.dateToIsoString(this.year,this.month,this.day)};e=g;function g(e,t,r){this.year=l.assertValidYear(e),this.month=l.assertValidMonth(t),this.day=l.assertValidDay(r),Object.freeze(this)}r.Date=e,Object.defineProperty(e.prototype,h,i),r.isDate=function(e){return S(e,h)};O.fromStandardDate=function(e,t){return P(e,t),new O(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,u.toNumber)(l.totalNanoseconds(e,t)))},O.prototype.toStandardDate=function(){return l.isoStringToStandardDate(this.toString())},O.prototype.toString=function(){return E(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)};e=O;function O(e,t,r,n,o,i,u){this.year=l.assertValidYear(e),this.month=l.assertValidMonth(t),this.day=l.assertValidDay(r),this.hour=l.assertValidHour(n),this.minute=l.assertValidMinute(o),this.second=l.assertValidSecond(i),this.nanosecond=l.assertValidNanosecond(u),Object.freeze(this)}r.LocalDateTime=e,Object.defineProperty(e.prototype,b,i),r.isLocalDateTime=function(e){return S(e,b)};w.fromStandardDate=function(e,t){return P(e,t),new w(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),(0,u.toNumber)(l.totalNanoseconds(e,t)),l.timeZoneOffsetInSeconds(e),null)},w.prototype.toStandardDate=function(){if(void 0===this.timeZoneOffsetSeconds)throw new Error("Requires DateTime created with time zone offset");return l.isoStringToStandardDate(this.toString().replace(null!=this.timeZoneId?"[".concat(this.timeZoneId,"]"):"",""))},w.prototype.toString=function(){var e;return E(this.year,this.month,this.day,this.hour,this.minute,this.second,this.nanosecond)+(null!=this.timeZoneOffsetSeconds?l.timeZoneOffsetToIsoString(null!=(e=this.timeZoneOffsetSeconds)?e:0):"")+(null!=this.timeZoneId?"[".concat(this.timeZoneId,"]"):"")};e=w;function w(e,t,r,n,o,i,u,a,s){this.year=l.assertValidYear(e),this.month=l.assertValidMonth(t),this.day=l.assertValidDay(r),this.hour=l.assertValidHour(n),this.minute=l.assertValidMinute(o),this.second=l.assertValidSecond(i),this.nanosecond=l.assertValidNanosecond(u);e=c(function(e,t){var r=null!=e,n=null!=t&&""!==t;if(!r&&!n)throw(0,p.newError)("Unable to create DateTime without either time zone offset or id. Please specify either of them. Given offset: ".concat(e," and id: ").concat(t));var o=[void 0,void 0];r&&((0,f.assertNumberOrInteger)(e,"Time zone offset in seconds"),o[0]=e);n&&((0,f.assertString)(t,"Time zone ID"),l.assertValidZoneId("Time zone ID",t),o[1]=t);return o}(a,s),2),t=e[0],r=e[1];this.timeZoneOffsetSeconds=t,this.timeZoneId=null!=r?r:void 0,Object.freeze(this)}function S(e,t){return null!=e&&!0===e[t]}function E(e,t,r,n,o,i,u){return l.dateToIsoString(e,t,r)+"T"+l.timeToIsoString(n,o,i,u)}function P(e,t){(0,f.assertValidDate)(e,"Standard date"),null!=t&&(0,f.assertNumberOrInteger)(t,"Nanosecond")}r.DateTime=e,Object.defineProperty(e.prototype,y,i),r.isDateTime=function(e){return S(e,y)}},{"./error":73,"./integer":76,"./internal/temporal-util":88,"./internal/util":92}],100:[function(e,t,r){"use strict";function n(e){e=e.run;this._run=e}Object.defineProperty(r,"__esModule",{value:!0}),n.fromTransaction=function(e){return new n({run:e.run.bind(e)})},n.prototype.run=function(e,t){return this._run(e,t)},r.default=n},{}],101:[function(e,t,r){"use strict";var n,c,l,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},u=(Object.defineProperty(r,"__esModule",{value:!0}),u(e("./transaction"))),e=(l=u.default,o(a,l),a.prototype.then=function(e,t){return this._getOrCreateBeginPromise().then(e,t)},a.prototype.catch=function(e){return this._getOrCreateBeginPromise().catch(e)},a.prototype.finally=function(e){return this._getOrCreateBeginPromise().finally(e)},a.prototype._getOrCreateBeginPromise=function(){var r=this;return null==this._beginPromise&&(this._beginPromise=new Promise(function(e,t){r._resolve=e,r._reject=t,null!=r._beginError&&t(r._beginError),null!=r._beginMetadata&&e(r._toTransaction())})),this._beginPromise},a.prototype._toTransaction=function(){return i(i({},this),{run:l.prototype.run.bind(this),commit:l.prototype.commit.bind(this),rollback:l.prototype.rollback.bind(this),close:l.prototype.close.bind(this),isOpen:l.prototype.isOpen.bind(this),_begin:this._begin.bind(this)})},a.prototype._begin=function(e,t){return l.prototype._begin.call(this,e,t,{onError:this._onBeginError.bind(this),onComplete:this._onBeginMetadata.bind(this)})},a.prototype._onBeginError=function(e){this._beginError=e,null!=this._reject&&this._reject(e)},a.prototype._onBeginMetadata=function(e){this._beginMetadata=null!=e?e:{},null!=this._resolve&&this._resolve(this._toTransaction())},a);function a(e){var t=e.connectionHolder,r=e.onClose,n=e.onBookmarks,o=e.onConnection,i=e.reactive,u=e.fetchSize,a=e.impersonatedUser,s=e.highRecordWatermark,e=e.lowRecordWatermark,t=l.call(this,{connectionHolder:t,onClose:r,onBookmarks:n,onConnection:o,reactive:i,fetchSize:u,impersonatedUser:a,highRecordWatermark:s,lowRecordWatermark:e})||this;return t[c]="TransactionPromise",t}c=Symbol.toStringTag,r.default=e},{"./transaction":102}],102:[function(e,t,r){"use strict";var a=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},s=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(r,"__esModule",{value:!0}),e("./internal/util")),u=e("./internal/connection-holder"),p=e("./internal/bookmarks"),d=e("./internal/tx-config"),h=e("./internal/observers"),b=e("./error"),c=n(e("./result"));function i(e){var t=e.connectionHolder,r=e.onClose,n=e.onBookmarks,o=e.onConnection,i=e.reactive,u=e.fetchSize,a=e.impersonatedUser,s=e.highRecordWatermark,e=e.lowRecordWatermark,c=this;this._connectionHolder=t,this._reactive=i,this._state=l.ACTIVE,this._onClose=r,this._onBookmarks=n,this._onConnection=o,this._onError=this._onErrorCallback.bind(this),this._fetchSize=u,this._onComplete=this._onCompleteCallback.bind(this),this._results=[],this._impersonatedUser=a,this._lowRecordWatermak=e,this._highRecordWatermark=s,this._bookmarks=p.Bookmarks.empty(),this._activePromise=new Promise(function(e,t){c._acceptActive=e})}i.prototype._begin=function(o,i,u){var t=this;this._connectionHolder.getConnection().then(function(n){return a(t,void 0,void 0,function(){var t,r=this;return s(this,function(e){switch(e.label){case 0:return(this._onConnection(),null==n)?[3,2]:(t=this,[4,o()]);case 1:return t._bookmarks=e.sent(),[2,n.protocol().beginTransaction({bookmarks:this._bookmarks,txConfig:i,mode:this._connectionHolder.mode(),database:this._connectionHolder.database(),impersonatedUser:this._impersonatedUser,beforeError:function(e){return null!=u&&u.onError(e),r._onError(e)},afterComplete:function(e){return null!=u&&u.onComplete(e),r._onComplete(e)}})];case 2:throw(0,b.newError)("No connection available")}})})}).catch(function(e){null!=u&&u.onError(e),t._onError(e).catch(function(){})}).finally(function(){return t._acceptActive()})},i.prototype.run=function(e,t){e=(0,o.validateQueryAndParameters)(e,t),t=e.validatedQuery,e=e.params,t=this._state.run(t,e,{connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,reactive:this._reactive,fetchSize:this._fetchSize,highRecordWatermark:this._highRecordWatermark,lowRecordWatermark:this._lowRecordWatermak,preparationJob:this._activePromise});return this._results.push(t),t},i.prototype.commit=function(){var t=this,r=this._state.commit({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:function(e){return t._onCompleteCallback(e,t._bookmarks)},onConnection:this._onConnection,pendingResults:this._results,preparationJob:this._activePromise});return this._state=r.state,this._onClose(),new Promise(function(e,t){r.result.subscribe({onCompleted:function(){return e()},onError:function(e){return t(e)}})})},i.prototype.rollback=function(){var r=this._state.rollback({connectionHolder:this._connectionHolder,onError:this._onError,onComplete:this._onComplete,onConnection:this._onConnection,pendingResults:this._results,preparationJob:this._activePromise});return this._state=r.state,this._onClose(),new Promise(function(e,t){r.result.subscribe({onCompleted:function(){return e()},onError:function(e){return t(e)}})})},i.prototype.isOpen=function(){return this._state===l.ACTIVE},i.prototype.close=function(){return a(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return this.isOpen()?[4,this.rollback()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})},i.prototype._onErrorCallback=function(){return this._state=l.FAILED,this._onClose(),this._connectionHolder.releaseConnection()},i.prototype._onCompleteCallback=function(e,t){this._onBookmarks(new p.Bookmarks(null==e?void 0:e.bookmark),null!=t?t:p.Bookmarks.empty(),null==e?void 0:e.db)};var l={ACTIVE:{commit:function(e){return{result:f(!0,e.connectionHolder,e.onError,e.onComplete,e.onConnection,e.pendingResults,e.preparationJob),state:l.SUCCEEDED}},rollback:function(e){return{result:f(!1,e.connectionHolder,e.onError,e.onComplete,e.onConnection,e.pendingResults,e.preparationJob),state:l.ROLLED_BACK}},run:function(t,r,e){var n=e.connectionHolder,o=e.onError,i=e.onComplete,u=e.onConnection,a=e.reactive,s=e.fetchSize,c=e.highRecordWatermark,l=e.lowRecordWatermark,e=e.preparationJob,f=null!=e?e:Promise.resolve();return y(n.getConnection().then(function(e){return f.then(function(){return e})}).then(function(e){if(u(),null!=e)return e.protocol().run(t,r,{bookmarks:p.Bookmarks.empty(),txConfig:d.TxConfig.empty(),beforeError:o,afterComplete:i,reactive:a,fetchSize:s,highRecordWatermark:c,lowRecordWatermark:l});throw(0,b.newError)("No connection available")}).catch(function(e){return new h.FailedObserver({error:e,onError:o})}),t,r,n,c,l)}},FAILED:{commit:function(e){var t=e.connectionHolder,r=e.onError;e.onComplete;return{result:y(new h.FailedObserver({error:(0,b.newError)("Cannot commit this transaction, because it has been rolled back either because of an error or explicit termination."),onError:r}),"COMMIT",{},t,0,0),state:l.FAILED}},rollback:function(e){var t=e.connectionHolder;e.onError,e.onComplete;return{result:y(new h.CompletedObserver,"ROLLBACK",{},t,0,0),state:l.FAILED}},run:function(e,t,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return y(new h.FailedObserver({error:(0,b.newError)("Cannot run query in this transaction, because it has been rolled back either because of an error or explicit termination."),onError:o}),e,t,n,0,0)}},SUCCEEDED:{commit:function(e){var t=e.connectionHolder,r=e.onError;e.onComplete;return{result:y(new h.FailedObserver({error:(0,b.newError)("Cannot commit this transaction, because it has already been committed."),onError:r}),"COMMIT",{},u.EMPTY_CONNECTION_HOLDER,0,0),state:l.SUCCEEDED,connectionHolder:t}},rollback:function(e){var t=e.connectionHolder,r=e.onError;e.onComplete;return{result:y(new h.FailedObserver({error:(0,b.newError)("Cannot rollback this transaction, because it has already been committed."),onError:r}),"ROLLBACK",{},u.EMPTY_CONNECTION_HOLDER,0,0),state:l.SUCCEEDED,connectionHolder:t}},run:function(e,t,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return y(new h.FailedObserver({error:(0,b.newError)("Cannot run query in this transaction, because it has already been committed."),onError:o}),e,t,n,0,0)}},ROLLED_BACK:{commit:function(e){var t=e.connectionHolder,r=e.onError;e.onComplete;return{result:y(new h.FailedObserver({error:(0,b.newError)("Cannot commit this transaction, because it has already been rolled back."),onError:r}),"COMMIT",{},t,0,0),state:l.ROLLED_BACK}},rollback:function(e){var t=e.connectionHolder;e.onError,e.onComplete;return{result:y(new h.FailedObserver({error:(0,b.newError)("Cannot rollback this transaction, because it has already been rolled back.")}),"ROLLBACK",{},t,0,0),state:l.ROLLED_BACK}},run:function(e,t,r){var n=r.connectionHolder,o=r.onError;r.onComplete;return y(new h.FailedObserver({error:(0,b.newError)("Cannot run query in this transaction, because it has already been rolled back."),onError:o}),e,t,n,0,0)}}};function f(r,e,n,o,i,u,t){var a=null!=t?t:Promise.resolve(),t=e.getConnection().then(function(e){return a.then(function(){return e})}).then(function(t){return i(),u.forEach(function(e){return e._cancel()}),Promise.all(u.map(function(e){return e.summary()})).then(function(e){if(null!=t)return r?t.protocol().commitTransaction({beforeError:n,afterComplete:o}):t.protocol().rollbackTransaction({beforeError:n,afterComplete:o});throw(0,b.newError)("No connection available")})}).catch(function(e){return new h.FailedObserver({error:e,onError:n})});return new c.default(t,r?"COMMIT":"ROLLBACK",{},e,{high:Number.MAX_VALUE,low:Number.MAX_VALUE})}function y(e,t,r,n,o,i){return void 0===n&&(n=u.EMPTY_CONNECTION_HOLDER),new c.default(Promise.resolve(e),t,r,new u.ReadOnlyConnectionHolder(null!=n?n:u.EMPTY_CONNECTION_HOLDER),{low:i,high:o})}r.default=i},{"./error":73,"./internal/bookmarks":77,"./internal/connection-holder":78,"./internal/observers":83,"./internal/tx-config":90,"./internal/util":92,"./result":96}],103:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],104:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],105:[function(e,t,r){function s(e,t,r,n,o,i,u){try{var a=e[i](u),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}t.exports=function(a){return function(){var e=this,u=arguments;return new Promise(function(t,r){var n=a.apply(e,u);function o(e){s(n,t,r,o,i,"next",e)}function i(e){s(n,t,r,o,i,"throw",e)}o(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],106:[function(e,t,r){t.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},{}],107:[function(e,t,r){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}t.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},t.exports.__esModule=!0,t.exports.default=t.exports},{}],108:[function(e,t,r){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],109:[function(e,t,r){var n=e("./setPrototypeOf.js");t.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports},{"./setPrototypeOf.js":112}],110:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],111:[function(e,t,r){var n=e("./typeof.js").default,o=e("./assertThisInitialized.js");t.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},t.exports.__esModule=!0,t.exports.default=t.exports},{"./assertThisInitialized.js":104,"./typeof.js":113}],112:[function(e,r,t){function n(e,t){return r.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r.exports.__esModule=!0,r.exports.default=r.exports,n(e,t)}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports},{}],113:[function(e,t,r){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],114:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":119}],115:[function(e,t,r){"use strict";r.byteLength=function(e){var e=l(e),t=e[0],e=e[1];return 3*(t+e)/4-e},r.toByteArray=function(e){var t,r,n=l(e),o=n[0],n=n[1],i=new c(function(e,t){return 3*(e+t)/4-t}(o,n)),u=0,a=0<n?o-4:o;for(r=0;r<a;r+=4)t=s[e.charCodeAt(r)]<<18|s[e.charCodeAt(r+1)]<<12|s[e.charCodeAt(r+2)]<<6|s[e.charCodeAt(r+3)],i[u++]=t>>16&255,i[u++]=t>>8&255,i[u++]=255&t;2===n&&(t=s[e.charCodeAt(r)]<<2|s[e.charCodeAt(r+1)]>>4,i[u++]=255&t);1===n&&(t=s[e.charCodeAt(r)]<<10|s[e.charCodeAt(r+1)]<<4|s[e.charCodeAt(r+2)]>>2,i[u++]=t>>8&255,i[u++]=255&t);return i},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,o=[],i=0,u=r-n;i<u;i+=16383)o.push(function(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n));return o.join("")}(e,i,u<i+16383?u:i+16383));1==n?(t=e[r-1],o.push(a[t>>2]+a[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],o.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return o.join("")};for(var a=[],s=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)a[o]=n[o],s[n.charCodeAt(o)]=o;function l(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("="),t=(e=-1===e?t:e)===t?0:4-e%4;return[e,t]}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],116:[function(A,e,x){!function(e){!function(){"use strict";var E=A("base64-js"),i=A("ieee754"),t=(x.Buffer=f,x.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},x.INSPECT_MAX_BYTES=50,2147483647);function s(e){if(t<e)throw new RangeError('The value "'+e+'" is invalid for option "size"');e=new Uint8Array(e);return e.__proto__=f.prototype,e}function f(e,t,r){if("number"!=typeof e)return n(e,t,r);if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}function n(e,t,r){if("string"==typeof e){var n=e,o=t;if(!f.isEncoding(o="string"==typeof o&&""!==o?o:"utf8"))throw new TypeError("Unknown encoding: "+o);var i=0|p(n,o),u=s(i);return u=(n=u.write(n,o))!==i?u.slice(0,n):u}if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(k(e,ArrayBuffer)||e&&k(e.buffer,ArrayBuffer)){o=e,i=t,n=r;if(i<0||o.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<i+(n||0))throw new RangeError('"length" is outside of buffer bounds');return(o=void 0===i&&void 0===n?new Uint8Array(o):void 0===n?new Uint8Array(o,i):new Uint8Array(o,i,n)).__proto__=f.prototype,o}if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');u=e.valueOf&&e.valueOf();if(null!=u&&u!==e)return f.from(u,t,r);var a=function(e){{var t,r;if(f.isBuffer(e))return t=0|l(e.length),0===(r=s(t)).length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||I(e.length)?s(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return o(e),s(e<0?0:0|l(e))}function c(e){for(var t=e.length<0?0:0|l(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function l(e){if(t<=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+t.toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||k(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(o)return n?-1:j(e).length;t=(""+t).toLowerCase(),o=!0}}function r(e,t,r){var n,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,u=t,a=r,s=i.length;(!a||a<0||s<a)&&(a=s);for(var c="",l=u=!u||u<0?0:u;l<a;++l)c+=function(e){return e<16?"0"+e.toString(16):e.toString(16)}(i[l]);return c;case"utf8":case"utf-8":return P(this,t,r);case"ascii":var f=this,s=t,p=r,d="";p=Math.min(f.length,p);for(var h=s;h<p;++h)d+=String.fromCharCode(127&f[h]);return d;case"latin1":case"binary":var b=this,u=t,y=r,v="";y=Math.min(b.length,y);for(var m=u;m<y;++m)v+=String.fromCharCode(b[m]);return v;case"base64":return _=this,n=r,0===(g=t)&&n===_.length?E.fromByteArray(_):E.fromByteArray(_.slice(g,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var _=t,g=r,O=this.slice(_,g),w="",S=0;S<O.length;S+=2)w+=String.fromCharCode(O[S]+256*O[S+1]);return w;default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function a(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function d(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),(r=(r=I(r=+r)?o?0:e.length-1:r)<0?e.length+r:r)>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:h(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):h(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function h(e,t,r,n,o){var i=1,u=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;u/=i=2,a/=2,r/=2}function s(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var c=-1,l=r;l<u;l++)if(s(e,l)===s(t,-1===c?0:l-c)){if(l-(c=-1===c?l:c)+1===a)return c*i}else-1!==c&&(l-=l-c),c=-1;else for(l=r=u<r+a?u-a:r;0<=l;l--){for(var f=!0,p=0;p<a;p++)if(s(e,l+p)!==s(t,p)){f=!1;break}if(f)return l}return-1}function y(e,t,r,n){return C(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function v(e,t,r,n){return C(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,n=n%256,o.push(n),o.push(r);return o}(t,e.length-r),e,r,n)}function P(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,u,a,s,c=e[o],l=null,f=239<c?4:223<c?3:191<c?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&127<(s=(31&c)<<6|63&i)&&(l=s);break;case 3:i=e[o+1],u=e[o+2],128==(192&i)&&128==(192&u)&&2047<(s=(15&c)<<12|(63&i)<<6|63&u)&&(s<55296||57343<s)&&(l=s);break;case 4:i=e[o+1],u=e[o+2],a=e[o+3],128==(192&i)&&128==(192&u)&&128==(192&a)&&65535<(s=(15&c)<<18|(63&i)<<12|(63&u)<<6|63&a)&&s<1114112&&(l=s)}null===l?(l=65533,f=1):65535<l&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}var p=n,d=p.length;if(d<=m)return String.fromCharCode.apply(String,p);for(var h="",b=0;b<d;)h+=String.fromCharCode.apply(String,p.slice(b,b+=m));return h}x.kMaxLength=t,(f.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),f.poolSize=8192,f.from=n,f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,f.alloc=function(e,t,r){return t=t,r=r,o(e=e),!(e<=0)&&void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},f.allocUnsafe=u,f.allocUnsafeSlow=u,f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(k(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),k(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);if(void 0===t)for(o=t=0;o<e.length;++o)t+=e[o].length;for(var r=f.allocUnsafe(t),n=0,o=0;o<e.length;++o){var i=e[o];if(k(i,Uint8Array)&&(i=f.from(i)),!f.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,n),n+=i.length}return r},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)a(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)a(this,t,t+3),a(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)a(this,t,t+7),a(this,t+1,t+6),a(this,t+2,t+5),a(this,t+3,t+4);return this},f.prototype.toLocaleString=f.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):r.apply(this,arguments)},f.prototype.equals=function(e){if(f.isBuffer(e))return this===e||0===f.compare(this,e);throw new TypeError("Argument must be a Buffer")},f.prototype.inspect=function(){var e="",t=x.INSPECT_MAX_BYTES,e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();return this.length>t&&(e+=" ... "),"<Buffer "+e+">"},f.prototype.compare=function(e,t,r,n,o){if(k(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=t)return 0;if(o<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),u=(r>>>=0)-(t>>>=0),a=Math.min(i,u),s=this.slice(n,o),c=e.slice(t,r),l=0;l<a;++l)if(s[l]!==c[l]){i=s[l],u=c[l];break}return i<u?-1:u<i?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return d(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return d(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||o<r)&&(r=o),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,u,a,s=!1;;)switch(n){case"hex":var c=this,l=e,f=t,p=r,d=(f=Number(f)||0,c.length-f);(!p||d<(p=Number(p)))&&(p=d),(d=l.length)/2<p&&(p=d/2);for(var h=0;h<p;++h){var b=parseInt(l.substr(2*h,2),16);if(I(b))return h;c[f+h]=b}return h;case"utf8":case"utf-8":return d=t,a=r,C(j(e,(u=this).length-d),u,d,a);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return u=this,a=t,i=r,C(T(e),u,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var m=4096;function b(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,o,i){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function g(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,o){return t=+t,r>>>=0,o||g(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function w(e,t,r,n,o){return t=+t,r>>>=0,o||g(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length,r=((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),this.subarray(e,t));return r.__proto__=f.prototype,r},f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;0<t&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return(o*=128)<=n&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];0<n&&(o*=256);)i+=this[e+--n]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||_(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||_(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,n){e=+e,t>>>=0,n||_(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var o=0,i=1,u=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/i>>0)-u&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){e=+e,t>>>=0,n||_(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var o=r-1,i=1,u=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/i>>0)-u&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||_(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return w(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return w(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),(n=0<n&&n<r?r:n)===r)return 0;if(0===e.length||0===this.length)return 0;if((t=t||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var o=(n=e.length-t<n-r?e.length-t+r:n)-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;0<=i;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var o;1===e.length&&(o=e.charCodeAt(0),("utf8"===n&&o<128||"latin1"===n)&&(e=o))}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(i=t;i<r;++i)this[i]=e;else{var u=f.isBuffer(e)?e:f.from(e,n),a=u.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=u[i%a]}return this};var S=/[^+/0-9A-Za-z-_]/g;function j(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],u=0;u<n;++u){if(55295<(r=e.charCodeAt(u))&&r<57344){if(!o){if(56319<r){-1<(t-=3)&&i.push(239,191,189);continue}if(u+1===n){-1<(t-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(t-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,r<128){if(--t<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function T(e){return E.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function k(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}}.call(this)}.call(this,A("buffer").Buffer)},{"base64-js":115,buffer:116,ieee754:117}],117:[function(e,t,r){r.read=function(e,t,r,n,o){var i,u,a=8*o-n-1,s=(1<<a)-1,c=s>>1,l=-7,f=r?o-1:0,p=r?-1:1,o=e[t+f];for(f+=p,i=o&(1<<-l)-1,o>>=-l,l+=a;0<l;i=256*i+e[t+f],f+=p,l-=8);for(u=i&(1<<-l)-1,i>>=-l,l+=n;0<l;u=256*u+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===s)return u?NaN:1/0*(o?-1:1);u+=Math.pow(2,n),i-=c}return(o?-1:1)*u*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var u,a,s=8*i-o-1,c=(1<<s)-1,l=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,u=c):(u=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-u))<1&&(u--,n*=2),2<=(t+=1<=u+l?f/n:f*Math.pow(2,1-l))*n&&(u++,n/=2),c<=u+l?(a=0,u=c):1<=u+l?(a=(t*n-1)*Math.pow(2,o),u+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),u=0));8<=o;e[r+p]=255&a,p+=d,a/=256,o-=8);for(u=u<<o|a,s+=o;0<s;e[r+p]=255&u,p+=d,u/=256,s-=8);e[r+p-d]|=128*i}},{}],118:[function(e,t,r){var n,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:u}catch(e){o=u}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return(n=setTimeout)(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}var s,c=[],l=!1,f=-1;function p(){l&&s&&(l=!1,s.length?c=s.concat(c):f=-1,c.length&&d())}function d(){if(!l){for(var e=a(p),t=(l=!0,c.length);t;){for(s=c,c=[];++f<t;)s&&s[f].run();f=-1,t=c.length}s=null,l=!1,!function(t){if(o===clearTimeout)return clearTimeout(t);if((o===u||!o)&&clearTimeout)return(o=clearTimeout)(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function b(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new h(e,t)),1!==c.length||l||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=b,t.addListener=b,t.once=b,t.off=b,t.removeListener=b,t.removeAllListeners=b,t.emit=b,t.prependListener=b,t.prependOnceListener=b,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],119:[function(e,t,r){t=function(u){"use strict";var s,e=Object.prototype,c=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,r){return e[t]=r}}function a(e,t,r,n){var o,i,u,a,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new P(n||[]);return t._invoke=(o=e,i=r,u=n,a=f,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===e)throw t;return T()}for(u.method=e,u.arg=t;;){var r=u.delegate;if(r){r=function e(t,r){var n=t.iterator[r.method];if(n===s){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=s,e(t,r),"throw"===r.method))return b;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}n=l(n,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,b;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b;{if(!n.done)return n;r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s)}r.delegate=null;return b}(r,u);if(r){if(r===b)continue;return r}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(a===f)throw a=h,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);a=d;r=l(o,i,u);if("normal"===r.type){if(a=u.done?h:p,r.arg!==b)return{value:r.arg,done:u.done}}else"throw"===r.type&&(a=h,u.method="throw",u.arg=r.arg)}}),t}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}u.wrap=a;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",b={};function y(){}function v(){}function m(){}var t={},_=(i(t,n,function(){return this}),Object.getPrototypeOf),_=_&&_(_(j([]))),g=(_&&_!==e&&c.call(_,n)&&(t=_),m.prototype=y.prototype=Object.create(t));function O(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function w(u,a){var t;this._invoke=function(r,n){function e(){return new a(function(e,t){!function t(e,r,n,o){var i,e=l(u[e],u,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==typeof r&&c.call(r,"__await")?a.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):a.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(t){if(t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(c.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=s,e.done=!0,e}).next=e}return{next:T}}function T(){return{value:s,done:!0}}return i(g,"constructor",v.prototype=m),i(m,"constructor",v),v.displayName=i(m,o,"GeneratorFunction"),u.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,i(e,o,"GeneratorFunction")),e.prototype=Object.create(g),e},u.awrap=function(e){return{__await:e}},O(w.prototype),i(w.prototype,r,function(){return this}),u.AsyncIterator=w,u.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new w(a(e,t,r,n),o);return u.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(g),i(g,o,"Generator"),i(g,n,function(){return this}),i(g,"toString",function(){return"[object Generator]"}),u.keys=function(r){var e,n=[];for(e in r)n.push(e);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},u.values=j,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&c.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=s)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=s),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var u=c.call(o,"catchLoc"),a=c.call(o,"finallyLoc");if(u&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,E(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=s),b}},u}("object"==typeof t?t.exports:{});try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},{}],120:[function(e,D,t){"use strict";var n=this&&this.__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){e[n=void 0===n?r:n]=t[r]}),r=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=void 0,e("./internal/Observable")),i=(Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return o.Observable}}),e("./internal/observable/ConnectableObservable")),u=(Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return i.ConnectableObservable}}),e("./internal/symbol/observable")),a=(Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return u.observable}}),e("./internal/observable/dom/animationFrames")),s=(Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return a.animationFrames}}),e("./internal/Subject")),c=(Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return s.Subject}}),e("./internal/BehaviorSubject")),l=(Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return c.BehaviorSubject}}),e("./internal/ReplaySubject")),f=(Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return l.ReplaySubject}}),e("./internal/AsyncSubject")),p=(Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return f.AsyncSubject}}),e("./internal/scheduler/asap")),d=(Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return p.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return p.asapScheduler}}),e("./internal/scheduler/async")),h=(Object.defineProperty(t,"async",{enumerable:!0,get:function(){return d.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return d.asyncScheduler}}),e("./internal/scheduler/queue")),b=(Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return h.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return h.queueScheduler}}),e("./internal/scheduler/animationFrame")),y=(Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return b.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return b.animationFrameScheduler}}),e("./internal/scheduler/VirtualTimeScheduler")),v=(Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}}),e("./internal/Scheduler")),m=(Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}}),e("./internal/Subscription")),_=(Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return m.Subscription}}),e("./internal/Subscriber")),g=(Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return _.Subscriber}}),e("./internal/Notification")),O=(Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return g.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return g.NotificationKind}}),e("./internal/util/pipe")),w=(Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return O.pipe}}),e("./internal/util/noop")),S=(Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return w.noop}}),e("./internal/util/identity")),E=(Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return S.identity}}),e("./internal/util/isObservable")),P=(Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return E.isObservable}}),e("./internal/lastValueFrom")),j=(Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return P.lastValueFrom}}),e("./internal/firstValueFrom")),T=(Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return j.firstValueFrom}}),e("./internal/util/ArgumentOutOfRangeError")),C=(Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return T.ArgumentOutOfRangeError}}),e("./internal/util/EmptyError")),k=(Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return C.EmptyError}}),e("./internal/util/NotFoundError")),I=(Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return k.NotFoundError}}),e("./internal/util/ObjectUnsubscribedError")),A=(Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return I.ObjectUnsubscribedError}}),e("./internal/util/SequenceError")),x=(Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return A.SequenceError}}),e("./internal/operators/timeout")),R=(Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return x.TimeoutError}}),e("./internal/util/UnsubscriptionError")),M=(Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return R.UnsubscriptionError}}),e("./internal/observable/bindCallback")),N=(Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}}),e("./internal/observable/bindNodeCallback")),U=(Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return N.bindNodeCallback}}),e("./internal/observable/combineLatest")),L=(Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return U.combineLatest}}),e("./internal/observable/concat")),F=(Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return L.concat}}),e("./internal/observable/connectable")),B=(Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return F.connectable}}),e("./internal/observable/defer")),W=(Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return B.defer}}),e("./internal/observable/empty")),z=(Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return W.empty}}),e("./internal/observable/forkJoin")),q=(Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return z.forkJoin}}),e("./internal/observable/from")),V=(Object.defineProperty(t,"from",{enumerable:!0,get:function(){return q.from}}),e("./internal/observable/fromEvent")),H=(Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return V.fromEvent}}),e("./internal/observable/fromEventPattern")),Y=(Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return H.fromEventPattern}}),e("./internal/observable/generate")),K=(Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return Y.generate}}),e("./internal/observable/iif")),G=(Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return K.iif}}),e("./internal/observable/interval")),Z=(Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return G.interval}}),e("./internal/observable/merge")),Q=(Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Z.merge}}),e("./internal/observable/never")),X=(Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Q.never}}),e("./internal/observable/of")),J=(Object.defineProperty(t,"of",{enumerable:!0,get:function(){return X.of}}),e("./internal/observable/onErrorResumeNext")),$=(Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return J.onErrorResumeNext}}),e("./internal/observable/pairs")),ee=(Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return $.pairs}}),e("./internal/observable/partition")),te=(Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}}),e("./internal/observable/race")),re=(Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}}),e("./internal/observable/range")),ne=(Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}}),e("./internal/observable/throwError")),oe=(Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return ne.throwError}}),e("./internal/observable/timer")),ie=(Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return oe.timer}}),e("./internal/observable/using")),ue=(Object.defineProperty(t,"using",{enumerable:!0,get:function(){return ie.using}}),e("./internal/observable/zip")),ae=(Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return ue.zip}}),e("./internal/scheduled/scheduled")),se=(Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return ae.scheduled}}),e("./internal/observable/empty")),ce=(Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return se.EMPTY}}),e("./internal/observable/never")),le=(Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return ce.NEVER}}),r(e("./internal/types"),t),e("./internal/config")),fe=(Object.defineProperty(t,"config",{enumerable:!0,get:function(){return le.config}}),e("./internal/operators/audit")),pe=(Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return fe.audit}}),e("./internal/operators/auditTime")),de=(Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return pe.auditTime}}),e("./internal/operators/buffer")),he=(Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return de.buffer}}),e("./internal/operators/bufferCount")),be=(Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return he.bufferCount}}),e("./internal/operators/bufferTime")),ye=(Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return be.bufferTime}}),e("./internal/operators/bufferToggle")),ve=(Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ye.bufferToggle}}),e("./internal/operators/bufferWhen")),me=(Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ve.bufferWhen}}),e("./internal/operators/catchError")),_e=(Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return me.catchError}}),e("./internal/operators/combineAll")),ge=(Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return _e.combineAll}}),e("./internal/operators/combineLatestAll")),Oe=(Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return ge.combineLatestAll}}),e("./internal/operators/combineLatestWith")),we=(Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return Oe.combineLatestWith}}),e("./internal/operators/concatAll")),Se=(Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return we.concatAll}}),e("./internal/operators/concatMap")),Ee=(Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}}),e("./internal/operators/concatMapTo")),Pe=(Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Ee.concatMapTo}}),e("./internal/operators/concatWith")),je=(Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Pe.concatWith}}),e("./internal/operators/connect")),Te=(Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return je.connect}}),e("./internal/operators/count")),Ce=(Object.defineProperty(t,"count",{enumerable:!0,get:function(){return Te.count}}),e("./internal/operators/debounce")),ke=(Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ce.debounce}}),e("./internal/operators/debounceTime")),Ie=(Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return ke.debounceTime}}),e("./internal/operators/defaultIfEmpty")),Ae=(Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Ie.defaultIfEmpty}}),e("./internal/operators/delay")),xe=(Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Ae.delay}}),e("./internal/operators/delayWhen")),Re=(Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return xe.delayWhen}}),e("./internal/operators/dematerialize")),Me=(Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Re.dematerialize}}),e("./internal/operators/distinct")),Ne=(Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Me.distinct}}),e("./internal/operators/distinctUntilChanged")),De=(Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Ne.distinctUntilChanged}}),e("./internal/operators/distinctUntilKeyChanged")),Ue=(Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return De.distinctUntilKeyChanged}}),e("./internal/operators/elementAt")),Le=(Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Ue.elementAt}}),e("./internal/operators/endWith")),Fe=(Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return Le.endWith}}),e("./internal/operators/every")),Be=(Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Fe.every}}),e("./internal/operators/exhaust")),We=(Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return Be.exhaust}}),e("./internal/operators/exhaustAll")),ze=(Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return We.exhaustAll}}),e("./internal/operators/exhaustMap")),qe=(Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return ze.exhaustMap}}),e("./internal/operators/expand")),Ve=(Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return qe.expand}}),e("./internal/operators/filter")),He=(Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return Ve.filter}}),e("./internal/operators/finalize")),Ye=(Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return He.finalize}}),e("./internal/operators/find")),Ke=(Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Ye.find}}),e("./internal/operators/findIndex")),Ge=(Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return Ke.findIndex}}),e("./internal/operators/first")),Ze=(Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Ge.first}}),e("./internal/operators/groupBy")),Qe=(Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return Ze.groupBy}}),e("./internal/operators/ignoreElements")),Xe=(Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Qe.ignoreElements}}),e("./internal/operators/isEmpty")),Je=(Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Xe.isEmpty}}),e("./internal/operators/last")),$e=(Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Je.last}}),e("./internal/operators/map")),et=(Object.defineProperty(t,"map",{enumerable:!0,get:function(){return $e.map}}),e("./internal/operators/mapTo")),tt=(Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}}),e("./internal/operators/materialize")),rt=(Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}}),e("./internal/operators/max")),nt=(Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}}),e("./internal/operators/mergeAll")),ot=(Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}}),e("./internal/operators/flatMap")),it=(Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return ot.flatMap}}),e("./internal/operators/mergeMap")),ut=(Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return it.mergeMap}}),e("./internal/operators/mergeMapTo")),at=(Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return ut.mergeMapTo}}),e("./internal/operators/mergeScan")),st=(Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return at.mergeScan}}),e("./internal/operators/mergeWith")),ct=(Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return st.mergeWith}}),e("./internal/operators/min")),lt=(Object.defineProperty(t,"min",{enumerable:!0,get:function(){return ct.min}}),e("./internal/operators/multicast")),ft=(Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return lt.multicast}}),e("./internal/operators/observeOn")),pt=(Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ft.observeOn}}),e("./internal/operators/pairwise")),dt=(Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return pt.pairwise}}),e("./internal/operators/pluck")),ht=(Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return dt.pluck}}),e("./internal/operators/publish")),bt=(Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ht.publish}}),e("./internal/operators/publishBehavior")),yt=(Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return bt.publishBehavior}}),e("./internal/operators/publishLast")),vt=(Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return yt.publishLast}}),e("./internal/operators/publishReplay")),mt=(Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return vt.publishReplay}}),e("./internal/operators/raceWith")),_t=(Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return mt.raceWith}}),e("./internal/operators/reduce")),gt=(Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return _t.reduce}}),e("./internal/operators/repeat")),Ot=(Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return gt.repeat}}),e("./internal/operators/repeatWhen")),wt=(Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return Ot.repeatWhen}}),e("./internal/operators/retry")),St=(Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return wt.retry}}),e("./internal/operators/retryWhen")),Et=(Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}}),e("./internal/operators/refCount")),Pt=(Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Et.refCount}}),e("./internal/operators/sample")),jt=(Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Pt.sample}}),e("./internal/operators/sampleTime")),Tt=(Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return jt.sampleTime}}),e("./internal/operators/scan")),Ct=(Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Tt.scan}}),e("./internal/operators/sequenceEqual")),kt=(Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Ct.sequenceEqual}}),e("./internal/operators/share")),It=(Object.defineProperty(t,"share",{enumerable:!0,get:function(){return kt.share}}),e("./internal/operators/shareReplay")),At=(Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return It.shareReplay}}),e("./internal/operators/single")),xt=(Object.defineProperty(t,"single",{enumerable:!0,get:function(){return At.single}}),e("./internal/operators/skip")),Rt=(Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return xt.skip}}),e("./internal/operators/skipLast")),Mt=(Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Rt.skipLast}}),e("./internal/operators/skipUntil")),Nt=(Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Mt.skipUntil}}),e("./internal/operators/skipWhile")),Dt=(Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Nt.skipWhile}}),e("./internal/operators/startWith")),Ut=(Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Dt.startWith}}),e("./internal/operators/subscribeOn")),Lt=(Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Ut.subscribeOn}}),e("./internal/operators/switchAll")),Ft=(Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Lt.switchAll}}),e("./internal/operators/switchMap")),Bt=(Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ft.switchMap}}),e("./internal/operators/switchMapTo")),Wt=(Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Bt.switchMapTo}}),e("./internal/operators/switchScan")),zt=(Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Wt.switchScan}}),e("./internal/operators/take")),qt=(Object.defineProperty(t,"take",{enumerable:!0,get:function(){return zt.take}}),e("./internal/operators/takeLast")),Vt=(Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return qt.takeLast}}),e("./internal/operators/takeUntil")),Ht=(Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Vt.takeUntil}}),e("./internal/operators/takeWhile")),Yt=(Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Ht.takeWhile}}),e("./internal/operators/tap")),Kt=(Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Yt.tap}}),e("./internal/operators/throttle")),Gt=(Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Kt.throttle}}),e("./internal/operators/throttleTime")),Zt=(Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Gt.throttleTime}}),e("./internal/operators/throwIfEmpty")),Qt=(Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Zt.throwIfEmpty}}),e("./internal/operators/timeInterval")),Xt=(Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Qt.timeInterval}}),e("./internal/operators/timeout")),Jt=(Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}}),e("./internal/operators/timeoutWith")),$t=(Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Jt.timeoutWith}}),e("./internal/operators/timestamp")),er=(Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return $t.timestamp}}),e("./internal/operators/toArray")),tr=(Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return er.toArray}}),e("./internal/operators/window")),rr=(Object.defineProperty(t,"window",{enumerable:!0,get:function(){return tr.window}}),e("./internal/operators/windowCount")),nr=(Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return rr.windowCount}}),e("./internal/operators/windowTime")),or=(Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return nr.windowTime}}),e("./internal/operators/windowToggle")),ir=(Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return or.windowToggle}}),e("./internal/operators/windowWhen")),ur=(Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return ir.windowWhen}}),e("./internal/operators/withLatestFrom")),ar=(Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ur.withLatestFrom}}),e("./internal/operators/zipAll")),sr=(Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ar.zipAll}}),e("./internal/operators/zipWith"));Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return sr.zipWith}})},{"./internal/AsyncSubject":121,"./internal/BehaviorSubject":122,"./internal/Notification":123,"./internal/Observable":125,"./internal/ReplaySubject":126,"./internal/Scheduler":127,"./internal/Subject":128,"./internal/Subscriber":129,"./internal/Subscription":130,"./internal/config":131,"./internal/firstValueFrom":132,"./internal/lastValueFrom":133,"./internal/observable/ConnectableObservable":134,"./internal/observable/bindCallback":135,"./internal/observable/bindNodeCallback":137,"./internal/observable/combineLatest":138,"./internal/observable/concat":139,"./internal/observable/connectable":140,"./internal/observable/defer":141,"./internal/observable/dom/animationFrames":142,"./internal/observable/empty":143,"./internal/observable/forkJoin":144,"./internal/observable/from":145,"./internal/observable/fromEvent":146,"./internal/observable/fromEventPattern":147,"./internal/observable/generate":149,"./internal/observable/iif":150,"./internal/observable/interval":152,"./internal/observable/merge":153,"./internal/observable/never":154,"./internal/observable/of":155,"./internal/observable/onErrorResumeNext":156,"./internal/observable/pairs":157,"./internal/observable/partition":158,"./internal/observable/race":159,"./internal/observable/range":160,"./internal/observable/throwError":161,"./internal/observable/timer":162,"./internal/observable/using":163,"./internal/observable/zip":164,"./internal/operators/audit":166,"./internal/operators/auditTime":167,"./internal/operators/buffer":168,"./internal/operators/bufferCount":169,"./internal/operators/bufferTime":170,"./internal/operators/bufferToggle":171,"./internal/operators/bufferWhen":172,"./internal/operators/catchError":173,"./internal/operators/combineAll":174,"./internal/operators/combineLatestAll":176,"./internal/operators/combineLatestWith":177,"./internal/operators/concatAll":179,"./internal/operators/concatMap":180,"./internal/operators/concatMapTo":181,"./internal/operators/concatWith":182,"./internal/operators/connect":183,"./internal/operators/count":184,"./internal/operators/debounce":185,"./internal/operators/debounceTime":186,"./internal/operators/defaultIfEmpty":187,"./internal/operators/delay":188,"./internal/operators/delayWhen":189,"./internal/operators/dematerialize":190,"./internal/operators/distinct":191,"./internal/operators/distinctUntilChanged":192,"./internal/operators/distinctUntilKeyChanged":193,"./internal/operators/elementAt":194,"./internal/operators/endWith":195,"./internal/operators/every":196,"./internal/operators/exhaust":197,"./internal/operators/exhaustAll":198,"./internal/operators/exhaustMap":199,"./internal/operators/expand":200,"./internal/operators/filter":201,"./internal/operators/finalize":202,"./internal/operators/find":203,"./internal/operators/findIndex":204,"./internal/operators/first":205,"./internal/operators/flatMap":206,"./internal/operators/groupBy":207,"./internal/operators/ignoreElements":208,"./internal/operators/isEmpty":209,"./internal/operators/last":211,"./internal/operators/map":212,"./internal/operators/mapTo":213,"./internal/operators/materialize":214,"./internal/operators/max":215,"./internal/operators/mergeAll":217,"./internal/operators/mergeMap":219,"./internal/operators/mergeMapTo":220,"./internal/operators/mergeScan":221,"./internal/operators/mergeWith":222,"./internal/operators/min":223,"./internal/operators/multicast":224,"./internal/operators/observeOn":225,"./internal/operators/pairwise":227,"./internal/operators/pluck":229,"./internal/operators/publish":230,"./internal/operators/publishBehavior":231,"./internal/operators/publishLast":232,"./internal/operators/publishReplay":233,"./internal/operators/raceWith":235,"./internal/operators/reduce":236,"./internal/operators/refCount":237,"./internal/operators/repeat":238,"./internal/operators/repeatWhen":239,"./internal/operators/retry":240,"./internal/operators/retryWhen":241,"./internal/operators/sample":242,"./internal/operators/sampleTime":243,"./internal/operators/scan":244,"./internal/operators/sequenceEqual":246,"./internal/operators/share":247,"./internal/operators/shareReplay":248,"./internal/operators/single":249,"./internal/operators/skip":250,"./internal/operators/skipLast":251,"./internal/operators/skipUntil":252,"./internal/operators/skipWhile":253,"./internal/operators/startWith":254,"./internal/operators/subscribeOn":255,"./internal/operators/switchAll":256,"./internal/operators/switchMap":257,"./internal/operators/switchMapTo":258,"./internal/operators/switchScan":259,"./internal/operators/take":260,"./internal/operators/takeLast":261,"./internal/operators/takeUntil":262,"./internal/operators/takeWhile":263,"./internal/operators/tap":264,"./internal/operators/throttle":265,"./internal/operators/throttleTime":266,"./internal/operators/throwIfEmpty":267,"./internal/operators/timeInterval":268,"./internal/operators/timeout":269,"./internal/operators/timeoutWith":270,"./internal/operators/timestamp":271,"./internal/operators/toArray":272,"./internal/operators/window":273,"./internal/operators/windowCount":274,"./internal/operators/windowTime":275,"./internal/operators/windowToggle":276,"./internal/operators/windowWhen":277,"./internal/operators/withLatestFrom":278,"./internal/operators/zipAll":280,"./internal/operators/zipWith":281,"./internal/scheduled/scheduled":288,"./internal/scheduler/VirtualTimeScheduler":298,"./internal/scheduler/animationFrame":299,"./internal/scheduler/asap":301,"./internal/scheduler/async":302,"./internal/scheduler/queue":307,"./internal/symbol/observable":310,"./internal/types":311,"./internal/util/ArgumentOutOfRangeError":312,"./internal/util/EmptyError":313,"./internal/util/NotFoundError":315,"./internal/util/ObjectUnsubscribedError":316,"./internal/util/SequenceError":317,"./internal/util/UnsubscriptionError":318,"./internal/util/identity":327,"./internal/util/isObservable":334,"./internal/util/noop":340,"./internal/util/pipe":342}],121:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncSubject=void 0,e("./Subject")),e=(o=e.Subject,i(u,o),u.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this._hasValue,n=this._value,o=this.thrownError,i=this.isStopped,u=this._isComplete;t?e.error(o):(i||u)&&(r&&e.next(n),e.complete())},u.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},u.prototype.complete=function(){var e=this._hasValue,t=this._value;this._isComplete||(this._isComplete=!0,e&&o.prototype.next.call(this,t),o.prototype.complete.call(this))},u);function u(){var e=null!==o&&o.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}r.AsyncSubject=e},{"./Subject":128}],122:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.BehaviorSubject=void 0,e("./Subject")),e=(o=e.Subject,i(u,o),Object.defineProperty(u.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),u.prototype._subscribe=function(e){var t=o.prototype._subscribe.call(this,e);return t.closed||e.next(this._value),t},u.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},u.prototype.next=function(e){o.prototype.next.call(this,this._value=e)},u);function u(e){var t=o.call(this)||this;return t._value=e,t}r.BehaviorSubject=e},{"./Subject":128}],123:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.observeNotification=r.Notification=r.NotificationKind=void 0;var n=e("./observable/empty"),o=e("./observable/of"),i=e("./observable/throwError"),u=e("./util/isFunction"),e=((e=r.NotificationKind||(r.NotificationKind={})).NEXT="N",e.ERROR="E",e.COMPLETE="C",a.prototype.observe=function(e){return s(this,e)},a.prototype.do=function(e,t,r){var n=this.kind,o=this.value,i=this.error;return"N"===n?null==e?void 0:e(o):"E"===n?null==t?void 0:t(i):null==r?void 0:r()},a.prototype.accept=function(e,t,r){var n;return u.isFunction(null==(n=e)?void 0:n.next)?this.observe(e):this.do(e,t,r)},a.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,t="N"===e?o.of(t):"E"===e?i.throwError(function(){return r}):"C"===e?n.EMPTY:0;if(t)return t;throw new TypeError("Unexpected notification kind "+e)},a.createNext=function(e){return new a("N",e)},a.createError=function(e){return new a("E",void 0,e)},a.createComplete=function(){return a.completeNotification},a.completeNotification=new a("C"),a);function a(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}function s(e,t){var r,n=e.kind,o=e.value,e=e.error;if("string"!=typeof n)throw new TypeError('Invalid notification, missing "kind"');"N"===n?null!=(r=t.next)&&r.call(t,o):"E"===n?null!=(r=t.error)&&r.call(t,e):null!=(o=t.complete)&&o.call(t)}r.Notification=e,r.observeNotification=s},{"./observable/empty":143,"./observable/of":155,"./observable/throwError":161,"./util/isFunction":331}],124:[function(e,t,r){"use strict";function n(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(r,"__esModule",{value:!0}),r.createNotification=r.nextNotification=r.errorNotification=r.COMPLETE_NOTIFICATION=void 0,r.COMPLETE_NOTIFICATION=n("C",void 0,void 0),r.errorNotification=function(e){return n("E",void 0,e)},r.nextNotification=function(e){return n("N",e,void 0)},r.createNotification=n},{}],125:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Observable=void 0;var u=e("./Subscriber"),a=e("./Subscription"),n=e("./symbol/observable"),o=e("./util/pipe"),i=e("./config"),s=e("./util/isFunction"),c=e("./util/errorContext");function l(e){e&&(this._subscribe=e)}function f(e){return null!=(e=null!=e?e:i.config.Promise)?e:Promise}l.prototype.lift=function(e){var t=new l;return t.source=this,t.operator=e,t},l.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof u.Subscriber||function(e){return e&&s.isFunction(e.next)&&s.isFunction(e.error)&&s.isFunction(e.complete)}(n)&&a.isSubscription(n)?e:new u.SafeSubscriber(e,t,r);return c.errorContext(function(){var e=o.operator,t=o.source;i.add(e?e.call(i,t):t?o._subscribe(i):o._trySubscribe(i))}),i},l.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},l.prototype.forEach=function(n,e){var o=this;return new(e=f(e))(function(e,t){var r=new u.SafeSubscriber({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});o.subscribe(r)})},l.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},l.prototype[n.observable]=function(){return this},l.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.pipeFromArray(e)(this)},l.prototype.toPromise=function(e){var n=this;return new(e=f(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},l.create=function(e){return new l(e)},r.Observable=l},{"./Subscriber":129,"./Subscription":130,"./config":131,"./symbol/observable":310,"./util/errorContext":325,"./util/isFunction":331,"./util/pipe":342}],126:[function(e,t,r){"use strict";var n,u,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=(Object.defineProperty(r,"__esModule",{value:!0}),r.ReplaySubject=void 0,e("./Subject")),a=e("./scheduler/dateTimestampProvider"),e=(u=i.Subject,o(s,u),s.prototype.next=function(e){var t=this.isStopped,r=this._buffer,n=this._infiniteTimeWindow,o=this._timestampProvider,i=this._windowTime;t||(r.push(e),n||r.push(o.now()+i)),this._trimBuffer(),u.prototype.next.call(this,e)},s.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!e.closed;o+=r?1:2)e.next(n[o]);return this._checkFinalizedStatuses(e),t},s.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=t.now(),u=0,a=1;a<r.length&&r[a]<=i;a+=2)u=a;u&&r.splice(0,u+1)}},s);function s(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=a.dateTimestampProvider);var n=u.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}r.ReplaySubject=e},{"./Subject":128,"./scheduler/dateTimestampProvider":303}],127:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Scheduler=void 0;e=e("./scheduler/dateTimestampProvider");function n(e,t){void 0===t&&(t=n.now),this.schedulerActionCtor=e,this.now=t}n.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=e.dateTimestampProvider.now,r.Scheduler=n},{"./scheduler/dateTimestampProvider":303}],128:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.AnonymousSubject=r.Subject=void 0,e("./Observable")),s=e("./Subscription"),c=e("./util/ObjectUnsubscribedError"),l=e("./util/arrRemove"),f=e("./util/errorContext"),e=(o=a.Observable,i(p,o),p.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},p.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},p.prototype.next=function(o){var i=this;f.errorContext(function(){var t,e;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var r=u(i.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(o)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},p.prototype.error=function(t){var r=this;f.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},p.prototype.complete=function(){var t=this;f.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},p.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(p.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),p.prototype._trySubscribe=function(e){return this._throwIfClosed(),o.prototype._trySubscribe.call(this,e)},p.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},p.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,o=this.observers;return r||n?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,o.push(e),new s.Subscription(function(){t.currentObservers=null,l.arrRemove(o,e)}))},p.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},p.prototype.asObservable=function(){var e=new a.Observable;return e.source=this,e},p.create=function(e,t){return new h(e,t)},p);function p(){var e=o.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}r.Subject=e;i(b,d=e),b.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},b.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},b.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},b.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:s.EMPTY_SUBSCRIPTION};var d,h=b;function b(e,t){var r=d.call(this)||this;return r.destination=e,r.source=t,r}r.AnonymousSubject=h},{"./Observable":125,"./Subscription":130,"./util/ObjectUnsubscribedError":316,"./util/arrRemove":322,"./util/errorContext":325}],129:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.EMPTY_OBSERVER=r.SafeSubscriber=r.Subscriber=void 0,e("./util/isFunction")),a=e("./Subscription"),s=e("./config"),c=e("./util/reportUnhandledError"),l=e("./util/noop"),f=e("./NotificationFactories"),p=e("./scheduler/timeoutProvider"),d=e("./util/errorContext"),e=(o=a.Subscription,i(h,o),h.create=function(e,t,r){return new g(e,t,r)},h.prototype.next=function(e){this.isStopped?S(f.nextNotification(e),this):this._next(e)},h.prototype.error=function(e){this.isStopped?S(f.errorNotification(e),this):(this.isStopped=!0,this._error(e))},h.prototype.complete=function(){this.isStopped?S(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},h.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this),this.destination=null)},h.prototype._next=function(e){this.destination.next(e)},h.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},h.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},h);function h(e){var t=o.call(this)||this;return t.isStopped=!1,e?(t.destination=e,a.isSubscription(e)&&e.add(t)):t.destination=r.EMPTY_OBSERVER,t}r.Subscriber=e;var b=Function.prototype.bind;function y(e,t){return b.call(e,t)}m.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){w(e)}},m.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){w(e)}else w(e)},m.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){w(e)}};var v=m;function m(e){this.partialObserver=e}i(O,_=e);var _,g=O;function O(e,t,r){var n=_.call(this)||this;return r=u.isFunction(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&s.config.useDeprecatedNextContext?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&y(e.next,t),error:e.error&&y(e.error,t),complete:e.complete&&y(e.complete,t)}):e,n.destination=new v(r),n}function w(e){s.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):c.reportUnhandledError(e)}function S(e,t){var r=s.config.onStoppedNotification;r&&p.timeoutProvider.setTimeout(function(){return r(e,t)})}r.SafeSubscriber=g,r.EMPTY_OBSERVER={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},{"./NotificationFactories":124,"./Subscription":130,"./config":131,"./scheduler/timeoutProvider":308,"./util/errorContext":325,"./util/isFunction":331,"./util/noop":340,"./util/reportUnhandledError":343}],130:[function(e,t,r){"use strict";var f=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},d=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},h=(Object.defineProperty(r,"__esModule",{value:!0}),r.isSubscription=r.EMPTY_SUBSCRIPTION=r.Subscription=void 0,e("./util/isFunction")),b=e("./util/UnsubscriptionError"),n=e("./util/arrRemove"),o=(i.prototype.unsubscribe=function(){var t,e,r;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n))try{for(var o=f(n),i=o.next();!i.done;i=o.next())i.value.remove(this)}catch(e){a={error:e}}finally{try{i&&!i.done&&(u=o.return)&&u.call(o)}finally{if(a)throw a.error}}else n.remove(this);var u=this.initialTeardown;if(h.isFunction(u))try{u()}catch(e){r=e instanceof b.UnsubscriptionError?e.errors:[e]}var a=this._finalizers;if(a){this._finalizers=null;try{for(var s=f(a),c=s.next();!c.done;c=s.next()){var l=c.value;try{y(l)}catch(e){r=null!=r?r:[],e instanceof b.UnsubscriptionError?r=d(d([],p(r)),p(e.errors)):r.push(e)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}}if(r)throw new b.UnsubscriptionError(r)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)y(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&n.arrRemove(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&n.arrRemove(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((e=new i).closed=!0,e),i);function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function y(e){h.isFunction(e)?e():e.unsubscribe()}r.Subscription=o,r.EMPTY_SUBSCRIPTION=o.EMPTY,r.isSubscription=function(e){return e instanceof o||e&&"closed"in e&&h.isFunction(e.remove)&&h.isFunction(e.add)&&h.isFunction(e.unsubscribe)}},{"./util/UnsubscriptionError":318,"./util/arrRemove":322,"./util/isFunction":331}],131:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.config=void 0,r.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},{}],132:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.firstValueFrom=void 0;var u=e("./util/EmptyError"),a=e("./Subscriber");r.firstValueFrom=function(n,o){var i="object"==typeof o;return new Promise(function(t,e){var r=new a.SafeSubscriber({next:function(e){t(e),r.unsubscribe()},error:e,complete:function(){i?t(o.defaultValue):e(new u.EmptyError)}});n.subscribe(r)})}},{"./Subscriber":129,"./util/EmptyError":313}],133:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.lastValueFrom=void 0;var a=e("./util/EmptyError");r.lastValueFrom=function(o,i){var u="object"==typeof i;return new Promise(function(e,t){var r,n=!1;o.subscribe({next:function(e){r=e,n=!0},error:t,complete:function(){n?e(r):u?e(i.defaultValue):t(new a.EmptyError)}})})}},{"./util/EmptyError":313}],134:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectableObservable=void 0,e("../Observable")),a=e("../Subscription"),s=e("../operators/refCount"),c=e("../operators/OperatorSubscriber"),l=e("../util/lift"),e=(o=u.Observable,i(f,o),f.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},f.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var e=this._connection;(this._subject=this._connection=null)!=e&&e.unsubscribe()},f.prototype.connect=function(){var t,r=this,e=this._connection;return e||(e=this._connection=new a.Subscription,t=this.getSubject(),e.add(this.source.subscribe(c.createOperatorSubscriber(t,void 0,function(){r._teardown(),t.complete()},function(e){r._teardown(),t.error(e)},function(){return r._teardown()}))),e.closed&&(this._connection=null,e=a.Subscription.EMPTY)),e},f.prototype.refCount=function(){return s.refCount()(this)},f);function f(e,t){var r=o.call(this)||this;return r.source=e,r.subjectFactory=t,r._subject=null,r._refCount=0,r._connection=null,l.hasLift(e)&&(r.lift=e.lift),r}r.ConnectableObservable=e},{"../Observable":125,"../Subscription":130,"../operators/OperatorSubscriber":165,"../operators/refCount":237,"../util/lift":338}],135:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallback=void 0;var n=e("./bindCallbackInternals");r.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}},{"./bindCallbackInternals":136}],136:[function(e,t,r){"use strict";var c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},l=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.bindCallbackInternals=void 0,e("../util/isScheduler")),f=e("../Observable"),u=e("../operators/subscribeOn"),p=e("../util/mapOneOrManyArgs"),d=e("../operators/observeOn"),h=e("../AsyncSubject");r.bindCallbackInternals=function r(a,s,n,o){if(n){if(!i.isScheduler(n))return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(a,s,o).apply(this,e).pipe(p.mapOneOrManyArgs(n))};o=n}return o?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(a,s).apply(this,e).pipe(u.subscribeOn(o),d.observeOn(o))}:function(){for(var t=this,r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var i=new h.AsyncSubject,u=!0;return new f.Observable(function(e){var n,o,e=i.subscribe(e);return u&&(n=u=!1,o=!1,s.apply(t,l(l([],c(r)),[function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(a){var r=e.shift();if(null!=r)return void i.error(r)}i.next(1<e.length?e:e[0]),o=!0,n&&i.complete()}])),o&&i.complete(),n=!0),e})}}},{"../AsyncSubject":121,"../Observable":125,"../operators/observeOn":225,"../operators/subscribeOn":255,"../util/isScheduler":337,"../util/mapOneOrManyArgs":339}],137:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bindNodeCallback=void 0;var n=e("./bindCallbackInternals");r.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}},{"./bindCallbackInternals":136}],138:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestInit=r.combineLatest=void 0;var a=e("../Observable"),s=e("../util/argsArgArrayOrObject"),l=e("./from"),f=e("../util/identity"),c=e("../util/mapOneOrManyArgs"),p=e("../util/args"),d=e("../util/createObject"),h=e("../operators/OperatorSubscriber"),n=e("../util/executeSchedule");function b(a,s,c){return void 0===c&&(c=f.identity),function(u){y(s,function(){for(var e=a.length,n=new Array(e),o=e,i=e,t=0;t<e;t++)!function(r){y(s,function(){var e=l.from(a[r],s),t=!1;e.subscribe(h.createOperatorSubscriber(u,function(e){n[r]=e,t||(t=!0,i--),i||u.next(c(n.slice()))},function(){--o||u.complete()}))},u)}(t)},u)}}function y(e,t,r){e?n.executeSchedule(r,e,t):t()}r.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=p.popScheduler(e),n=p.popResultSelector(e),o=s.argsArgArrayOrObject(e),i=o.args,u=o.keys;return 0===i.length?l.from([],r):(o=new a.Observable(b(i,r,u?function(e){return d.createObject(u,e)}:f.identity)),n?o.pipe(c.mapOneOrManyArgs(n)):o)},r.combineLatestInit=b},{"../Observable":125,"../operators/OperatorSubscriber":165,"../util/args":319,"../util/argsArgArrayOrObject":320,"../util/createObject":324,"../util/executeSchedule":326,"../util/identity":327,"../util/mapOneOrManyArgs":339,"./from":145}],139:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0;var n=e("../operators/concatAll"),o=e("../util/args"),i=e("./from");r.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(i.from(e,o.popScheduler(e)))}},{"../operators/concatAll":179,"../util/args":319,"./from":145}],140:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.connectable=void 0;var n=e("../Subject"),u=e("../Observable"),a=e("./defer"),s={connector:function(){return new n.Subject},resetOnDisconnect:!0};r.connectable=function(e,t){var r=null,n=(t=void 0===t?s:t).connector,o=void 0===(t=t.resetOnDisconnect)||t,i=n();return(t=new u.Observable(function(e){return i.subscribe(e)})).connect=function(){return r&&!r.closed||(r=a.defer(function(){return e}).subscribe(i),o&&r.add(function(){return i=n()})),r},t}},{"../Observable":125,"../Subject":128,"./defer":141}],141:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defer=void 0;var n=e("../Observable"),o=e("./innerFrom");r.defer=function(t){return new n.Observable(function(e){o.innerFrom(t()).subscribe(e)})}},{"../Observable":125,"./innerFrom":151}],142:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrames=void 0;var n=e("../../Observable"),c=e("../../Subscription"),l=e("../../scheduler/performanceTimestampProvider"),o=e("../../scheduler/animationFrameProvider");function i(a){var s=o.animationFrameProvider.schedule;return new n.Observable(function(r){var n=new c.Subscription,o=a||l.performanceTimestampProvider,i=o.now(),u=function(e){var t=o.now();r.next({timestamp:a?t:e,elapsed:t-i}),r.closed||n.add(s(u))};return n.add(s(u)),n})}r.animationFrames=function(e){return e?i(e):u};var u=i()},{"../../Observable":125,"../../Subscription":130,"../../scheduler/animationFrameProvider":300,"../../scheduler/performanceTimestampProvider":306}],143:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.empty=r.EMPTY=void 0;var n=e("../Observable");r.EMPTY=new n.Observable(function(e){return e.complete()}),r.empty=function(e){return e?(t=e,new n.Observable(function(e){return t.schedule(function(){return e.complete()})})):r.EMPTY;var t}},{"../Observable":125}],144:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.forkJoin=void 0;var o=e("../Observable"),i=e("../util/argsArgArrayOrObject"),s=e("./innerFrom"),c=e("../util/args"),l=e("../operators/OperatorSubscriber"),f=e("../util/mapOneOrManyArgs"),p=e("../util/createObject");r.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popResultSelector(e),u=(n=i.argsArgArrayOrObject(e)).args,a=n.keys,n=new o.Observable(function(e){var t=u.length;if(t)for(var n=new Array(t),o=t,i=t,r=0;r<t;r++)!function(t){var r=!1;s.innerFrom(u[t]).subscribe(l.createOperatorSubscriber(e,function(e){r||(r=!0,i--),n[t]=e},function(){return o--},void 0,function(){o&&r||(i||e.next(a?p.createObject(a,n):n),e.complete())}))}(r);else e.complete()});return r?n.pipe(f.mapOneOrManyArgs(r)):n}},{"../Observable":125,"../operators/OperatorSubscriber":165,"../util/args":319,"../util/argsArgArrayOrObject":320,"../util/createObject":324,"../util/mapOneOrManyArgs":339,"./innerFrom":151}],145:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.from=void 0;var n=e("../scheduled/scheduled"),o=e("./innerFrom");r.from=function(e,t){return t?n.scheduled(e,t):o.innerFrom(e)}},{"../scheduled/scheduled":288,"./innerFrom":151}],146:[function(e,t,r){"use strict";var a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},s=(Object.defineProperty(r,"__esModule",{value:!0}),r.fromEvent=void 0,e("../observable/innerFrom")),c=e("../Observable"),l=e("../operators/mergeMap"),f=e("../util/isArrayLike"),p=e("../util/isFunction"),d=e("../util/mapOneOrManyArgs"),h=["addListener","removeListener"],b=["addEventListener","removeEventListener"],y=["on","off"];function v(r,n){return function(t){return function(e){return r[t](n,e)}}}r.fromEvent=function t(r,n,o,e){if(p.isFunction(o)&&(e=o,o=void 0),e)return t(r,n,o).pipe(d.mapOneOrManyArgs(e));var e=a((e=r,p.isFunction(e.addEventListener)&&p.isFunction(e.removeEventListener)?b.map(function(t){return function(e){return r[t](n,e,o)}}):(e=r,p.isFunction(e.addListener)&&p.isFunction(e.removeListener)?h.map(v(r,n)):(e=r,p.isFunction(e.on)&&p.isFunction(e.off)?y.map(v(r,n)):[]))),2),i=e[0],u=e[1];if(!i&&f.isArrayLike(r))return l.mergeMap(function(e){return t(e,n,o)})(s.innerFrom(r));if(i)return new c.Observable(function(r){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1<e.length?e:e[0])}return i(e),function(){return u(e)}});throw new TypeError("Invalid event target")}},{"../Observable":125,"../observable/innerFrom":151,"../operators/mergeMap":219,"../util/isArrayLike":328,"../util/isFunction":331,"../util/mapOneOrManyArgs":339}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fromEventPattern=void 0;var i=e("../Observable"),u=e("../util/isFunction"),a=e("../util/mapOneOrManyArgs");r.fromEventPattern=function e(n,o,t){return t?e(n,o).pipe(a.mapOneOrManyArgs(t)):new i.Observable(function(r){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(1===e.length?e[0]:e)}var t=n(e);return u.isFunction(o)?function(){return o(e,t)}:void 0})}},{"../Observable":125,"../util/isFunction":331,"../util/mapOneOrManyArgs":339}],148:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fromSubscribable=void 0;var n=e("../Observable");r.fromSubscribable=function(t){return new n.Observable(function(e){return t.subscribe(e)})}},{"../Observable":125}],149:[function(e,t,r){"use strict";var c=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},l=(Object.defineProperty(r,"__esModule",{value:!0}),r.generate=void 0,e("../util/identity")),f=e("../util/isScheduler"),p=e("./defer"),d=e("../scheduled/scheduleIterable");r.generate=function(e,r,n,t,o){var i,u,a;function s(){var t;return c(this,function(e){switch(e.label){case 0:t=a,e.label=1;case 1:return r&&!r(t)?[3,4]:[4,u(t)];case 2:e.sent(),e.label=3;case 3:return t=n(t),[3,1];case 4:return[2]}})}return 1===arguments.length?(a=e.initialState,r=e.condition,n=e.iterate,i=e.resultSelector,u=void 0===i?l.identity:i,o=e.scheduler):(a=e,!t||f.isScheduler(t)?(u=l.identity,o=t):u=t),p.defer(o?function(){return d.scheduleIterable(s(),o)}:s)}},{"../scheduled/scheduleIterable":284,"../util/identity":327,"../util/isScheduler":337,"./defer":141}],150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.iif=void 0;var n=e("./defer");r.iif=function(e,t,r){return n.defer(function(){return e()?t:r})}},{"./defer":141}],151:[function(w,e,S){!function(e){!function(){"use strict";var s=this&&this.__awaiter||function(e,u,a,s){return new(a=a||Promise)(function(r,t){function n(e){try{i(s.next(e))}catch(e){t(e)}}function o(e){try{i(s.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((s=s.apply(e,u||[])).next())})},c=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},l=this&&this.__asyncValues||function(u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=u[Symbol.asyncIterator];return t?t.call(u):(u="function"==typeof a?a(u):u[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=u[i]&&function(o){return new Promise(function(e,t){var r,n;o=u[i](o),r=e,e=t,n=o.done,t=o.value,Promise.resolve(t).then(function(e){r({value:e,done:n})},e)})}}},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},t=(Object.defineProperty(S,"__esModule",{value:!0}),S.fromReadableStreamLike=S.fromAsyncIterable=S.fromIterable=S.fromPromise=S.fromArrayLike=S.fromInteropObservable=S.innerFrom=void 0,w("../util/isArrayLike")),r=w("../util/isPromise"),n=w("../Observable"),o=w("../util/isInteropObservable"),i=w("../util/isAsyncIterable"),u=w("../util/throwUnobservableError"),f=w("../util/isIterable"),p=w("../util/isReadableStreamLike"),d=w("../util/isFunction"),h=w("../util/reportUnhandledError"),b=w("../symbol/observable");function y(r){return new n.Observable(function(e){var t=r[b.observable]();if(d.isFunction(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function v(r){return new n.Observable(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function m(e){return new n.Observable(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,h.reportUnhandledError)})}function _(u){return new n.Observable(function(e){var t,r;try{for(var n=a(u),o=n.next();!o.done;o=n.next()){var i=o.value;if(e.next(i),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}function g(e){return new n.Observable(function(t){!function(r,n){var o,i,u,a;return s(this,void 0,void 0,function(){var t;return c(this,function(e){switch(e.label){case 0:e.trys.push([0,5,6,11]),o=l(r),e.label=1;case 1:return[4,o.next()];case 2:if((i=e.sent()).done)return[3,4];if(t=i.value,n.next(t),n.closed)return[2];e.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return t=e.sent(),u={error:t},[3,11];case 6:return(e.trys.push([6,,9,10]),i&&!i.done&&(a=o.return))?[4,a.call(o)]:[3,8];case 7:e.sent(),e.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})})}(e,t).catch(function(e){return t.error(e)})})}function O(e){return g(p.readableStreamLikeToAsyncGenerator(e))}S.innerFrom=function(e){if(e instanceof n.Observable)return e;if(null!=e){if(o.isInteropObservable(e))return y(e);if(t.isArrayLike(e))return v(e);if(r.isPromise(e))return m(e);if(i.isAsyncIterable(e))return g(e);if(f.isIterable(e))return _(e);if(p.isReadableStreamLike(e))return O(e)}throw u.createInvalidObservableTypeError(e)},S.fromInteropObservable=y,S.fromArrayLike=v,S.fromPromise=m,S.fromIterable=_,S.fromAsyncIterable=g,S.fromReadableStreamLike=O}.call(this)}.call(this,w("_process"))},{"../Observable":125,"../symbol/observable":310,"../util/isArrayLike":328,"../util/isAsyncIterable":329,"../util/isFunction":331,"../util/isInteropObservable":332,"../util/isIterable":333,"../util/isPromise":335,"../util/isReadableStreamLike":336,"../util/reportUnhandledError":343,"../util/throwUnobservableError":344,_process:118}],152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.interval=void 0;var n=e("../scheduler/async"),o=e("./timer");r.interval=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.timer(e=(e=void 0===e?0:e)<0?0:e,e,t)}},{"../scheduler/async":302,"./timer":162}],153:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0;var i=e("../operators/mergeAll"),u=e("./innerFrom"),a=e("./empty"),s=e("../util/args"),c=e("./from");r.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e),n=s.popNumber(e,1/0),o=e;return o.length?1===o.length?u.innerFrom(o[0]):i.mergeAll(n)(c.from(o,r)):a.EMPTY}},{"../operators/mergeAll":217,"../util/args":319,"./empty":143,"./from":145,"./innerFrom":151}],154:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.never=r.NEVER=void 0;var n=e("../Observable"),e=e("../util/noop");r.NEVER=new n.Observable(e.noop),r.never=function(){return r.NEVER}},{"../Observable":125,"../util/noop":340}],155:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.of=void 0;var n=e("../util/args"),o=e("./from");r.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return o.from(e,r)}},{"../util/args":319,"./from":145}],156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=void 0;var n=e("./empty"),o=e("../operators/onErrorResumeNext"),i=e("../util/argsOrArgArray");r.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.onErrorResumeNext(i.argsOrArgArray(e))(n.EMPTY)}},{"../operators/onErrorResumeNext":226,"../util/argsOrArgArray":321,"./empty":143}],157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pairs=void 0;var n=e("./from");r.pairs=function(e,t){return n.from(Object.entries(e),t)}},{"./from":145}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.partition=void 0;var n=e("../util/not"),o=e("../operators/filter"),i=e("./innerFrom");r.partition=function(e,t,r){return[o.filter(t,r)(i.innerFrom(e)),o.filter(n.not(t,r))(i.innerFrom(e))]}},{"../operators/filter":201,"../util/not":341,"./innerFrom":151}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.raceInit=r.race=void 0;var n=e("../Observable"),i=e("./innerFrom"),o=e("../util/argsOrArgArray"),u=e("../operators/OperatorSubscriber");function a(t){return function(n){for(var o=[],e=0;o&&!n.closed&&e<t.length;e++)!function(r){o.push(i.innerFrom(t[r]).subscribe(u.createOperatorSubscriber(n,function(e){if(o){for(var t=0;t<o.length;t++)t!==r&&o[t].unsubscribe();o=null}n.next(e)})))}(e)}}r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=o.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(a(e))},r.raceInit=a},{"../Observable":125,"../operators/OperatorSubscriber":165,"../util/argsOrArgArray":321,"./innerFrom":151}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.range=void 0;var i=e("../Observable"),u=e("./empty");r.range=function(r,e,n){if(null==e&&(e=r,r=0),e<=0)return u.EMPTY;var o=e+r;return new i.Observable(n?function(e){var t=r;return n.schedule(function(){t<o?(e.next(t++),this.schedule()):e.complete()})}:function(e){for(var t=r;t<o&&!e.closed;)e.next(t++);e.complete()})}},{"../Observable":125,"./empty":143}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.throwError=void 0;var o=e("../Observable"),i=e("../util/isFunction");r.throwError=function(e,t){function r(e){return e.error(n())}var n=i.isFunction(e)?e:function(){return e};return new o.Observable(t?function(e){return t.schedule(r,0,e)}:r)}},{"../Observable":125,"../util/isFunction":331}],162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.timer=void 0;var u=e("../Observable"),a=e("../scheduler/async"),s=e("../util/isScheduler"),c=e("../util/isDate");r.timer=function(n,e,o){void 0===n&&(n=0),void 0===o&&(o=a.async);var i=-1;return null!=e&&(s.isScheduler(e)?o=e:i=e),new u.Observable(function(e){var t=c.isValidDate(n)?+n-o.now():n,r=0;return o.schedule(function(){e.closed||(e.next(r++),0<=i?this.schedule(void 0,i):e.complete())},t=t<0?0:t)})}},{"../Observable":125,"../scheduler/async":302,"../util/isDate":330,"../util/isScheduler":337}],163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.using=void 0;var i=e("../Observable"),u=e("./innerFrom"),a=e("./empty");r.using=function(n,o){return new i.Observable(function(e){var t=n(),r=o(t);return(r?u.innerFrom(r):a.EMPTY).subscribe(e),function(){t&&t.unsubscribe()}})}},{"../Observable":125,"./empty":143,"./innerFrom":151}],164:[function(e,t,r){"use strict";var a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},s=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0,e("../Observable")),c=e("./innerFrom"),o=e("../util/argsOrArgArray"),l=e("./empty"),f=e("../operators/OperatorSubscriber"),p=e("../util/args");r.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=p.popResultSelector(e),u=o.argsOrArgArray(e);return u.length?new n.Observable(function(r){for(var n=u.map(function(){return[]}),o=u.map(function(){return!1}),e=(r.add(function(){n=o=null}),0);!r.closed&&e<u.length;e++)!function(t){c.innerFrom(u[t]).subscribe(f.createOperatorSubscriber(r,function(e){n[t].push(e),n.every(function(e){return e.length})&&(e=n.map(function(e){return e.shift()}),r.next(i?i.apply(void 0,s([],a(e))):e),n.some(function(e,t){return!e.length&&o[t]})&&r.complete())},function(){o[t]=!0,n[t].length||r.complete()}))}(e);return function(){n=o=null}}):l.EMPTY}},{"../Observable":125,"../operators/OperatorSubscriber":165,"../util/args":319,"../util/argsOrArgArray":321,"./empty":143,"./innerFrom":151}],165:[function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.OperatorSubscriber=r.createOperatorSubscriber=void 0,e("../Subscriber"));r.createOperatorSubscriber=function(e,t,r,n,o){return new i(e,t,r,n,o)};a=e.Subscriber,o(u,a),u.prototype.unsubscribe=function(){var e;this.shouldUnsubscribe&&!this.shouldUnsubscribe()||(e=this.closed,a.prototype.unsubscribe.call(this),e||null==(e=this.onFinalize)||e.call(this))};var a,i=u;function u(t,r,e,n,o,i){var u=a.call(this,t)||this;return u.onFinalize=o,u.shouldUnsubscribe=i,u._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:a.prototype._next,u._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:a.prototype._error,u._complete=e?function(){try{e()}catch(e){t.error(e)}finally{this.unsubscribe()}}:a.prototype._complete,u}r.OperatorSubscriber=i},{"../Subscriber":129}],166:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.audit=void 0;var n=e("../util/lift"),c=e("../observable/innerFrom"),l=e("./OperatorSubscriber");r.audit=function(s){return n.operate(function(e,t){function r(){var e;null!=u&&u.unsubscribe(),u=null,o&&(o=!1,e=i,i=null,t.next(e)),a&&t.complete()}function n(){u=null,a&&t.complete()}var o=!1,i=null,u=null,a=!1;e.subscribe(l.createOperatorSubscriber(t,function(e){o=!0,i=e,u||c.innerFrom(s(e)).subscribe(u=l.createOperatorSubscriber(t,r,n))},function(){a=!0,o&&u&&!u.closed||t.complete()}))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],167:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.auditTime=void 0;var n=e("../scheduler/async"),o=e("./audit"),i=e("../observable/timer");r.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.audit(function(){return i.timer(e,t)})}},{"../observable/timer":162,"../scheduler/async":302,"./audit":166}],168:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.buffer=void 0;var o=e("../util/lift"),i=e("../util/noop"),u=e("./OperatorSubscriber");r.buffer=function(n){return o.operate(function(e,t){var r=[];return e.subscribe(u.createOperatorSubscriber(t,function(e){return r.push(e)},function(){t.next(r),t.complete()})),n.subscribe(u.createOperatorSubscriber(t,function(){var e=r;r=[],t.next(e)},i.noop)),function(){r=null}})}},{"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],169:[function(e,t,r){"use strict";var y=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.bufferCount=void 0,e("../util/lift")),o=e("./OperatorSubscriber"),v=e("../util/arrRemove");r.bufferCount=function(h,b){return b=null!=(b=void 0===b?null:b)?b:h,n.operate(function(e,f){var p=[],d=0;e.subscribe(o.createOperatorSubscriber(f,function(e){var t,r,n,o,i=null;d++%b==0&&p.push([]);try{for(var u=y(p),a=u.next();!a.done;a=u.next())(l=a.value).push(e),h<=l.length&&(i=null!=i?i:[]).push(l)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}if(i)try{for(var s=y(i),c=s.next();!c.done;c=s.next()){var l=c.value;v.arrRemove(p,l),f.next(l)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}},function(){var t,e;try{for(var r=y(p),n=r.next();!n.done;n=r.next()){var o=n.value;f.next(o)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}f.complete()},void 0,function(){p=null}))})}},{"../util/arrRemove":322,"../util/lift":338,"./OperatorSubscriber":165}],170:[function(e,t,r){"use strict";var f=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=(Object.defineProperty(r,"__esModule",{value:!0}),r.bufferTime=void 0,e("../Subscription")),n=e("../util/lift"),d=e("./OperatorSubscriber"),h=e("../util/arrRemove"),o=e("../scheduler/async"),s=e("../util/args"),b=e("../util/executeSchedule");r.bufferTime=function(i){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var u=null!=(e=s.popScheduler(t))?e:o.asyncScheduler,a=null!=(e=t[0])?e:null,l=t[1]||1/0;return n.operate(function(e,r){var s=[],n=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),h.arrRemove(s,e),r.next(t),n&&o()},o=function(){var e,t;s&&(e=new p.Subscription,r.add(e),s.push(t={buffer:[],subs:e}),b.executeSchedule(e,u,function(){return c(t)},i))},t=(null!==a&&0<=a?b.executeSchedule(r,u,o,a,!0):n=!0,o(),d.createOperatorSubscriber(r,function(e){var t,r,n=s.slice();try{for(var o=f(n),i=o.next();!i.done;i=o.next()){var u=i.value,a=u.buffer;a.push(e),l<=a.length&&c(u)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},function(){for(;null!=s&&s.length;)r.next(s.shift().buffer);null!=t&&t.unsubscribe(),r.complete(),r.unsubscribe()},void 0,function(){return s=null}));e.subscribe(t)})}},{"../Subscription":130,"../scheduler/async":302,"../util/args":319,"../util/arrRemove":322,"../util/executeSchedule":326,"../util/lift":338,"./OperatorSubscriber":165}],171:[function(e,t,r){"use strict";var u=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.bufferToggle=void 0,e("../Subscription")),n=e("../util/lift"),s=e("../observable/innerFrom"),c=e("./OperatorSubscriber"),l=e("../util/noop"),f=e("../util/arrRemove");r.bufferToggle=function(t,o){return n.operate(function(e,n){var i=[];s.innerFrom(t).subscribe(c.createOperatorSubscriber(n,function(e){var t=[],r=(i.push(t),new a.Subscription);r.add(s.innerFrom(o(e)).subscribe(c.createOperatorSubscriber(n,function(){f.arrRemove(i,t),n.next(t),r.unsubscribe()},l.noop)))},l.noop)),e.subscribe(c.createOperatorSubscriber(n,function(e){var t,r;try{for(var n=u(i),o=n.next();!o.done;o=n.next())o.value.push(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},function(){for(;0<i.length;)n.next(i.shift());n.complete()}))})}},{"../Subscription":130,"../observable/innerFrom":151,"../util/arrRemove":322,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],172:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.bufferWhen=void 0;var n=e("../util/lift"),u=e("../util/noop"),a=e("./OperatorSubscriber"),s=e("../observable/innerFrom");r.bufferWhen=function(i){return n.operate(function(e,t){var r=null,n=null,o=function(){null!=n&&n.unsubscribe();var e=r;r=[],e&&t.next(e),s.innerFrom(i()).subscribe(n=a.createOperatorSubscriber(t,o,u.noop))};o(),e.subscribe(a.createOperatorSubscriber(t,function(e){return null==r?void 0:r.push(e)},function(){r&&t.next(r),t.complete()},void 0,function(){return r=n=null}))})}},{"../observable/innerFrom":151,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],173:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.catchError=void 0;var s=e("../observable/innerFrom"),c=e("./OperatorSubscriber"),n=e("../util/lift");r.catchError=function u(a){return n.operate(function(t,r){var n,o=null,i=!1,o=t.subscribe(c.createOperatorSubscriber(r,void 0,void 0,function(e){n=s.innerFrom(a(e,u(a)(t))),o?(o.unsubscribe(),o=null,n.subscribe(r)):i=!0}));i&&(o.unsubscribe(),o=null,n.subscribe(r))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],174:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.combineAll=void 0;e=e("./combineLatestAll");r.combineAll=e.combineLatestAll},{"./combineLatestAll":176}],175:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatest=void 0,e("../observable/combineLatest")),u=e("../util/lift"),a=e("../util/argsOrArgArray"),s=e("../util/mapOneOrManyArgs"),c=e("../util/pipe"),l=e("../util/args");function f(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=l.popResultSelector(r);return t?c.pipe(f.apply(void 0,o([],n(r))),s.mapOneOrManyArgs(t)):u.operate(function(e,t){i.combineLatestInit(o([e],n(a.argsOrArgArray(r))))(t)})}r.combineLatest=f},{"../observable/combineLatest":138,"../util/args":319,"../util/argsOrArgArray":321,"../util/lift":338,"../util/mapOneOrManyArgs":339,"../util/pipe":342}],176:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestAll=void 0;var n=e("../observable/combineLatest"),o=e("./joinAllInternals");r.combineLatestAll=function(e){return o.joinAllInternals(n.combineLatest,e)}},{"../observable/combineLatest":138,"./joinAllInternals":210}],177:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.combineLatestWith=void 0,e("./combineLatest"));r.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.combineLatest.apply(void 0,o([],n(e)))}},{"./combineLatest":175}],178:[function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},u=(Object.defineProperty(r,"__esModule",{value:!0}),r.concat=void 0,e("../util/lift")),a=e("./concatAll"),s=e("../util/args"),c=e("../observable/from");r.concat=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var n=s.popScheduler(r);return u.operate(function(e,t){a.concatAll()(c.from(i([e],o(r)),n)).subscribe(t)})}},{"../observable/from":145,"../util/args":319,"../util/lift":338,"./concatAll":179}],179:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.concatAll=void 0;var n=e("./mergeAll");r.concatAll=function(){return n.mergeAll(1)}},{"./mergeAll":217}],180:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.concatMap=void 0;var n=e("./mergeMap"),o=e("../util/isFunction");r.concatMap=function(e,t){return o.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},{"../util/isFunction":331,"./mergeMap":219}],181:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.concatMapTo=void 0;var n=e("./concatMap"),o=e("../util/isFunction");r.concatMapTo=function(e,t){return o.isFunction(t)?n.concatMap(function(){return e},t):n.concatMap(function(){return e})}},{"../util/isFunction":331,"./concatMap":180}],182:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.concatWith=void 0,e("./concat"));r.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.concat.apply(void 0,o([],n(e)))}},{"./concat":178}],183:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.connect=void 0;var n=e("../Subject"),i=e("../observable/from"),u=e("../util/lift"),a=e("../observable/fromSubscribable"),s={connector:function(){return new n.Subject}};r.connect=function(n,e){var o=(e=void 0===e?s:e).connector;return u.operate(function(e,t){var r=o();i.from(n(a.fromSubscribable(r))).subscribe(t),t.add(e.subscribe(r))})}},{"../Subject":128,"../observable/from":145,"../observable/fromSubscribable":148,"../util/lift":338}],184:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.count=void 0;var o=e("./reduce");r.count=function(n){return o.reduce(function(e,t,r){return!n||n(t,r)?e+1:e},0)}},{"./reduce":236}],185:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.debounce=void 0;var n=e("../util/lift"),a=e("../util/noop"),s=e("./OperatorSubscriber"),c=e("../observable/innerFrom");r.debounce=function(u){return n.operate(function(e,t){function r(){var e;null!=i&&i.unsubscribe(),i=null,n&&(n=!1,e=o,o=null,t.next(e))}var n=!1,o=null,i=null;e.subscribe(s.createOperatorSubscriber(t,function(e){null!=i&&i.unsubscribe(),n=!0,o=e,i=s.createOperatorSubscriber(t,r,a.noop),c.innerFrom(u(e)).subscribe(i)},function(){r(),t.complete()},void 0,function(){o=i=null}))})}},{"../observable/innerFrom":151,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],186:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.debounceTime=void 0;var n=e("../scheduler/async"),o=e("../util/lift"),c=e("./OperatorSubscriber");r.debounceTime=function(a,s){return void 0===s&&(s=n.asyncScheduler),o.operate(function(e,r){var n=null,t=null,o=null,i=function(){var e;n&&(n.unsubscribe(),e=t,t=n=null,r.next(e))};function u(){var e=o+a,t=s.now();if(t<e)return n=this.schedule(void 0,e-t),void r.add(n);i()}e.subscribe(c.createOperatorSubscriber(r,function(e){t=e,o=s.now(),n||(n=s.schedule(u,a),r.add(n))},function(){i(),r.complete()},void 0,function(){t=n=null}))})}},{"../scheduler/async":302,"../util/lift":338,"./OperatorSubscriber":165}],187:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultIfEmpty=void 0;var o=e("../util/lift"),i=e("./OperatorSubscriber");r.defaultIfEmpty=function(n){return o.operate(function(e,t){var r=!1;e.subscribe(i.createOperatorSubscriber(t,function(e){r=!0,t.next(e)},function(){r||t.next(n),t.complete()}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],188:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.delay=void 0;var n=e("../scheduler/async"),o=e("./delayWhen"),i=e("../observable/timer");r.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=i.timer(e,t);return o.delayWhen(function(){return r})}},{"../observable/timer":162,"../scheduler/async":302,"./delayWhen":189}],189:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.delayWhen=void 0;var o=e("../observable/concat"),i=e("./take"),u=e("./ignoreElements"),a=e("./mapTo"),s=e("./mergeMap");r.delayWhen=function t(r,n){return n?function(e){return o.concat(n.pipe(i.take(1),u.ignoreElements()),e.pipe(t(r)))}:s.mergeMap(function(e,t){return r(e,t).pipe(i.take(1),a.mapTo(e))})}},{"../observable/concat":139,"./ignoreElements":208,"./mapTo":213,"./mergeMap":219,"./take":260}],190:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dematerialize=void 0;var n=e("../Notification"),o=e("../util/lift"),i=e("./OperatorSubscriber");r.dematerialize=function(){return o.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(e){return n.observeNotification(e,t)}))})}},{"../Notification":123,"../util/lift":338,"./OperatorSubscriber":165}],191:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.distinct=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),u=e("../util/noop");r.distinct=function(o,t){return n.operate(function(e,r){var n=new Set;e.subscribe(i.createOperatorSubscriber(r,function(e){var t=o?o(e):e;n.has(t)||(n.add(t),r.next(e))})),null!=t&&t.subscribe(i.createOperatorSubscriber(r,function(){return n.clear()},u.noop))})}},{"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],192:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilChanged=void 0;var n=e("../util/identity"),o=e("../util/lift"),a=e("./OperatorSubscriber");function s(e,t){return e===t}r.distinctUntilChanged=function(i,u){return void 0===u&&(u=n.identity),i=null!=i?i:s,o.operate(function(e,r){var n,o=!0;e.subscribe(a.createOperatorSubscriber(r,function(e){var t=u(e);!o&&i(n,t)||(o=!1,n=t,r.next(e))}))})}},{"../util/identity":327,"../util/lift":338,"./OperatorSubscriber":165}],193:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.distinctUntilKeyChanged=void 0;var o=e("./distinctUntilChanged");r.distinctUntilKeyChanged=function(r,n){return o.distinctUntilChanged(function(e,t){return n?n(e[r],t[r]):e[r]===t[r]})}},{"./distinctUntilChanged":192}],194:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.elementAt=void 0;var o=e("../util/ArgumentOutOfRangeError"),i=e("./filter"),u=e("./throwIfEmpty"),a=e("./defaultIfEmpty"),s=e("./take");r.elementAt=function(r,t){if(r<0)throw new o.ArgumentOutOfRangeError;var n=2<=arguments.length;return function(e){return e.pipe(i.filter(function(e,t){return t===r}),s.take(1),n?a.defaultIfEmpty(t):u.throwIfEmpty(function(){return new o.ArgumentOutOfRangeError}))}}},{"../util/ArgumentOutOfRangeError":312,"./defaultIfEmpty":187,"./filter":201,"./take":260,"./throwIfEmpty":267}],195:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.endWith=void 0,e("../observable/concat")),u=e("../observable/of");r.endWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return i.concat(e,u.of.apply(void 0,o([],n(t))))}}},{"../observable/concat":139,"../observable/of":155}],196:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.every=void 0;var n=e("../util/lift"),u=e("./OperatorSubscriber");r.every=function(o,i){return n.operate(function(t,r){var n=0;t.subscribe(u.createOperatorSubscriber(r,function(e){o.call(i,e,n++,t)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],197:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.exhaust=void 0;e=e("./exhaustAll");r.exhaust=e.exhaustAll},{"./exhaustAll":198}],198:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustAll=void 0;var n=e("../util/lift"),o=e("../observable/innerFrom"),i=e("./OperatorSubscriber");r.exhaustAll=function(){return n.operate(function(e,t){var r=!1,n=null;e.subscribe(i.createOperatorSubscriber(t,function(e){n=n||o.innerFrom(e).subscribe(i.createOperatorSubscriber(t,void 0,function(){n=null,r&&t.complete()}))},function(){r=!0,n||t.complete()}))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],199:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.exhaustMap=void 0;var u=e("./map"),a=e("../observable/innerFrom"),n=e("../util/lift"),s=e("./OperatorSubscriber");r.exhaustMap=function t(i,o){return o?function(e){return e.pipe(t(function(r,n){return a.innerFrom(i(r,n)).pipe(u.map(function(e,t){return o(r,e,n,t)}))}))}:n.operate(function(e,t){var r=0,n=null,o=!1;e.subscribe(s.createOperatorSubscriber(t,function(e){n||(n=s.createOperatorSubscriber(t,void 0,function(){n=null,o&&t.complete()}),a.innerFrom(i(e,r++)).subscribe(n))},function(){o=!0,n||t.complete()}))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165,"./map":212}],200:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.expand=void 0;var i=e("../util/lift"),u=e("./mergeInternals");r.expand=function(r,n,o){return n=((n=void 0===n?1/0:n)||0)<1?1/0:n,i.operate(function(e,t){return u.mergeInternals(e,t,r,n,void 0,!0,o)})}},{"../util/lift":338,"./mergeInternals":218}],201:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.filter=void 0;var i=e("../util/lift"),u=e("./OperatorSubscriber");r.filter=function(n,o){return i.operate(function(e,t){var r=0;e.subscribe(u.createOperatorSubscriber(t,function(e){return n.call(o,e,r++)&&t.next(e)}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],202:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.finalize=void 0;var n=e("../util/lift");r.finalize=function(r){return n.operate(function(e,t){try{e.subscribe(t)}finally{t.add(r)}})}},{"../util/lift":338}],203:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createFind=r.find=void 0;var n=e("../util/lift"),s=e("./OperatorSubscriber");function o(i,u,e){var a="index"===e;return function(r,n){var o=0;r.subscribe(s.createOperatorSubscriber(n,function(e){var t=o++;i.call(u,e,t,r)&&(n.next(a?t:e),n.complete())},function(){n.next(a?-1:void 0),n.complete()}))}}r.find=function(e,t){return n.operate(o(e,t,"value"))},r.createFind=o},{"../util/lift":338,"./OperatorSubscriber":165}],204:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.findIndex=void 0;var n=e("../util/lift"),o=e("./find");r.findIndex=function(e,t){return n.operate(o.createFind(e,t,"index"))}},{"../util/lift":338,"./find":203}],205:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.first=void 0;var o=e("../util/EmptyError"),i=e("./filter"),u=e("./take"),a=e("./defaultIfEmpty"),s=e("./throwIfEmpty"),c=e("../util/identity");r.first=function(n,e){var t=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(e,t){return n(e,t,r)}):c.identity,u.take(1),t?a.defaultIfEmpty(e):s.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":313,"../util/identity":327,"./defaultIfEmpty":187,"./filter":201,"./take":260,"./throwIfEmpty":267}],206:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.flatMap=void 0;e=e("./mergeMap");r.flatMap=e.mergeMap},{"./mergeMap":219}],207:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.groupBy=void 0;var m=e("../Observable"),_=e("../observable/innerFrom"),g=e("../Subject"),n=e("../util/lift"),O=e("./OperatorSubscriber");r.groupBy=function(b,t,y,v){return n.operate(function(e,s){function c(t){return r(function(e){return e.error(t)})}t&&"function"!=typeof t?(y=t.duration,l=t.element,v=t.connector):l=t;var l,f=new Map,r=function(e){f.forEach(e),e(s)},p=0,d=!1,h=new O.OperatorSubscriber(s,function(e){try{var t,r,n=b(e),o=f.get(n);o||(f.set(n,o=v?v():new g.Subject),i=n,u=o,(a=new m.Observable(function(e){p++;var t=u.subscribe(e);return function(){t.unsubscribe(),0==--p&&d&&h.unsubscribe()}})).key=i,t=a,s.next(t),y&&(r=O.createOperatorSubscriber(o,function(){o.complete(),null!=r&&r.unsubscribe()},void 0,void 0,function(){return f.delete(n)}),h.add(_.innerFrom(y(t)).subscribe(r)))),o.next(l?l(e):e)}catch(e){c(e)}var i,u,a},function(){return r(function(e){return e.complete()})},c,function(){return f.clear()},function(){return d=!0,0===p});e.subscribe(h)})}},{"../Observable":125,"../Subject":128,"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],208:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ignoreElements=void 0;var n=e("../util/lift"),o=e("./OperatorSubscriber"),i=e("../util/noop");r.ignoreElements=function(){return n.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,i.noop))})}},{"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],209:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isEmpty=void 0;var n=e("../util/lift"),o=e("./OperatorSubscriber");r.isEmpty=function(){return n.operate(function(e,t){e.subscribe(o.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],210:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.joinAllInternals=void 0;var n=e("../util/identity"),o=e("../util/mapOneOrManyArgs"),i=e("../util/pipe"),u=e("./mergeMap"),a=e("./toArray");r.joinAllInternals=function(t,e){return i.pipe(a.toArray(),u.mergeMap(function(e){return t(e)}),e?o.mapOneOrManyArgs(e):n.identity)}},{"../util/identity":327,"../util/mapOneOrManyArgs":339,"../util/pipe":342,"./mergeMap":219,"./toArray":272}],211:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.last=void 0;var o=e("../util/EmptyError"),i=e("./filter"),u=e("./takeLast"),a=e("./throwIfEmpty"),s=e("./defaultIfEmpty"),c=e("../util/identity");r.last=function(n,e){var t=2<=arguments.length;return function(r){return r.pipe(n?i.filter(function(e,t){return n(e,t,r)}):c.identity,u.takeLast(1),t?s.defaultIfEmpty(e):a.throwIfEmpty(function(){return new o.EmptyError}))}}},{"../util/EmptyError":313,"../util/identity":327,"./defaultIfEmpty":187,"./filter":201,"./takeLast":261,"./throwIfEmpty":267}],212:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.map=void 0;var i=e("../util/lift"),u=e("./OperatorSubscriber");r.map=function(n,o){return i.operate(function(e,t){var r=0;e.subscribe(u.createOperatorSubscriber(t,function(e){t.next(n.call(o,e,r++))}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],213:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mapTo=void 0;var n=e("./map");r.mapTo=function(e){return n.map(function(){return e})}},{"./map":212}],214:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.materialize=void 0;var n=e("../Notification"),o=e("../util/lift"),i=e("./OperatorSubscriber");r.materialize=function(){return o.operate(function(e,t){e.subscribe(i.createOperatorSubscriber(t,function(e){t.next(n.Notification.createNext(e))},function(){t.next(n.Notification.createComplete()),t.complete()},function(e){t.next(n.Notification.createError(e)),t.complete()}))})}},{"../Notification":123,"../util/lift":338,"./OperatorSubscriber":165}],215:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.max=void 0;var n=e("./reduce"),o=e("../util/isFunction");r.max=function(r){return n.reduce(o.isFunction(r)?function(e,t){return 0<r(e,t)?e:t}:function(e,t){return t<e?e:t})}},{"../util/isFunction":331,"./reduce":236}],216:[function(e,t,r){"use strict";var i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},u=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},a=(Object.defineProperty(r,"__esModule",{value:!0}),r.merge=void 0,e("../util/lift")),s=e("../util/argsOrArgArray"),c=e("./mergeAll"),l=e("../util/args"),f=e("../observable/from");r.merge=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var n=l.popScheduler(r),o=l.popNumber(r,1/0),r=s.argsOrArgArray(r);return a.operate(function(e,t){c.mergeAll(o)(f.from(u([e],i(r)),n)).subscribe(t)})}},{"../observable/from":145,"../util/args":319,"../util/argsOrArgArray":321,"../util/lift":338,"./mergeAll":217}],217:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeAll=void 0;var n=e("./mergeMap"),o=e("../util/identity");r.mergeAll=function(e){return n.mergeMap(o.identity,e=void 0===e?1/0:e)}},{"../util/identity":327,"./mergeMap":219}],218:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeInternals=void 0;var h=e("../observable/innerFrom"),b=e("../util/executeSchedule"),y=e("./OperatorSubscriber");r.mergeInternals=function(e,r,n,o,i,u,a,t){var s=[],c=0,l=0,f=function(){s.length||c||r.complete()},p=function(e){return c<o?d(e):s.push(e)},d=function(e){u&&r.next(e),c++;var t=!1;h.innerFrom(n(e,l++)).subscribe(y.createOperatorSubscriber(r,function(e){null!=i&&i(e),u?p(e):r.next(e)},function(){t=!0},void 0,function(){if(t)try{c--;for(;s.length&&c<o;)!function(){var e=s.shift();a?b.executeSchedule(r,a,function(){return d(e)}):d(e)}();f()}catch(e){r.error(e)}}))};return e.subscribe(y.createOperatorSubscriber(r,p,function(){f()})),function(){null!=t&&t()}}},{"../observable/innerFrom":151,"../util/executeSchedule":326,"./OperatorSubscriber":165}],219:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMap=void 0;var u=e("./map"),a=e("../observable/innerFrom"),n=e("../util/lift"),s=e("./mergeInternals"),c=e("../util/isFunction");r.mergeMap=function e(o,i,r){return void 0===r&&(r=1/0),c.isFunction(i)?e(function(r,n){return u.map(function(e,t){return i(r,e,n,t)})(a.innerFrom(o(r,n)))},r):("number"==typeof i&&(r=i),n.operate(function(e,t){return s.mergeInternals(e,t,o,r)}))}},{"../observable/innerFrom":151,"../util/isFunction":331,"../util/lift":338,"./map":212,"./mergeInternals":218}],220:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMapTo=void 0;var n=e("./mergeMap"),o=e("../util/isFunction");r.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),o.isFunction(t)?n.mergeMap(function(){return e},t,r):n.mergeMap(function(){return e},r="number"==typeof t?t:r)}},{"../util/isFunction":331,"./mergeMap":219}],221:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeScan=void 0;var u=e("../util/lift"),a=e("./mergeInternals");r.mergeScan=function(n,o,i){return void 0===i&&(i=1/0),u.operate(function(e,t){var r=o;return a.mergeInternals(e,t,function(e,t){return n(r,e,t)},i,function(e){r=e},!1,void 0,function(){return r=null})})}},{"../util/lift":338,"./mergeInternals":218}],222:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.mergeWith=void 0,e("./merge"));r.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.merge.apply(void 0,o([],n(e)))}},{"./merge":216}],223:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.min=void 0;var n=e("./reduce"),o=e("../util/isFunction");r.min=function(r){return n.reduce(o.isFunction(r)?function(e,t){return r(e,t)<0?e:t}:function(e,t){return e<t?e:t})}},{"../util/isFunction":331,"./reduce":236}],224:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.multicast=void 0;var n=e("../observable/ConnectableObservable"),o=e("../util/isFunction"),i=e("./connect");r.multicast=function(e,t){var r=o.isFunction(e)?e:function(){return e};return o.isFunction(t)?i.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},{"../observable/ConnectableObservable":134,"../util/isFunction":331,"./connect":183}],225:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.observeOn=void 0;var o=e("../util/executeSchedule"),i=e("../util/lift"),u=e("./OperatorSubscriber");r.observeOn=function(r,n){return void 0===n&&(n=0),i.operate(function(e,t){e.subscribe(u.createOperatorSubscriber(t,function(e){return o.executeSchedule(t,r,function(){return t.next(e)},n)},function(){return o.executeSchedule(t,r,function(){return t.complete()},n)},function(e){return o.executeSchedule(t,r,function(){return t.error(e)},n)}))})}},{"../util/executeSchedule":326,"../util/lift":338,"./OperatorSubscriber":165}],226:[function(e,t,r){"use strict";var u=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.onErrorResumeNext=void 0,e("../util/lift")),s=e("../observable/innerFrom"),o=e("../util/argsOrArgArray"),c=e("./OperatorSubscriber"),l=e("../util/noop");r.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=o.argsOrArgArray(e);return n.operate(function(e,r){var n=a([e],u(i)),o=function(){if(!r.closed)if(0<n.length){var e=void 0;try{e=s.innerFrom(n.shift())}catch(e){return void o()}var t=c.createOperatorSubscriber(r,void 0,l.noop,l.noop);e.subscribe(t),t.add(o)}else r.complete()};o()})}},{"../observable/innerFrom":151,"../util/argsOrArgArray":321,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],227:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pairwise=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.pairwise=function(){return n.operate(function(e,r){var n,o=!1;e.subscribe(i.createOperatorSubscriber(r,function(e){var t=n;n=e,o&&r.next([t,e]),o=!0}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],228:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.partition=void 0;var n=e("../util/not"),o=e("./filter");r.partition=function(t,r){return function(e){return[o.filter(t,r)(e),o.filter(n.not(t,r))(e)]}}},{"../util/not":341,"./filter":201}],229:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pluck=void 0;var n=e("./map");r.pluck=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];var i=o.length;if(0===i)throw new Error("list of properties cannot be empty.");return n.map(function(e){for(var t=e,r=0;r<i;r++){var n=null==t?void 0:t[o[r]];if(void 0===n)return;t=n}return t})}},{"./map":212}],230:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.publish=void 0;var n=e("../Subject"),o=e("./multicast"),i=e("./connect");r.publish=function(t){return t?function(e){return i.connect(t)(e)}:function(e){return o.multicast(new n.Subject)(e)}}},{"../Subject":128,"./connect":183,"./multicast":224}],231:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.publishBehavior=void 0;var n=e("../BehaviorSubject"),o=e("../observable/ConnectableObservable");r.publishBehavior=function(r){return function(e){var t=new n.BehaviorSubject(r);return new o.ConnectableObservable(e,function(){return t})}}},{"../BehaviorSubject":122,"../observable/ConnectableObservable":134}],232:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.publishLast=void 0;var n=e("../AsyncSubject"),o=e("../observable/ConnectableObservable");r.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new o.ConnectableObservable(e,function(){return t})}}},{"../AsyncSubject":121,"../observable/ConnectableObservable":134}],233:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.publishReplay=void 0;var i=e("../ReplaySubject"),u=e("./multicast"),a=e("../util/isFunction");r.publishReplay=function(t,r,e,n){e&&!a.isFunction(e)&&(n=e);var o=a.isFunction(e)?e:void 0;return function(e){return u.multicast(new i.ReplaySubject(t,r,n),o)(e)}}},{"../ReplaySubject":126,"../util/isFunction":331,"./multicast":224}],234:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.race=void 0,e("../util/argsOrArgArray")),u=e("./raceWith");r.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u.raceWith.apply(void 0,o([],n(i.argsOrArgArray(e))))}},{"../util/argsOrArgArray":321,"./raceWith":235}],235:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.raceWith=void 0,e("../observable/race")),u=e("../util/lift"),a=e("../util/identity");r.raceWith=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return r.length?u.operate(function(e,t){i.raceInit(o([e],n(r)))(t)}):a.identity}},{"../observable/race":159,"../util/identity":327,"../util/lift":338}],236:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.reduce=void 0;var n=e("./scanInternals"),o=e("../util/lift");r.reduce=function(e,t){return o.operate(n.scanInternals(e,t,2<=arguments.length,!1,!0))}},{"../util/lift":338,"./scanInternals":245}],237:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.refCount=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.refCount=function(){return n.operate(function(r,n){var o=null,e=(r._refCount++,i.createOperatorSubscriber(n,void 0,void 0,void 0,function(){var e,t;!r||r._refCount<=0||0<--r._refCount?o=null:(e=r._connection,t=o,o=null,!e||t&&e!==t||e.unsubscribe(),n.unsubscribe())}));r.subscribe(e),e.closed||(o=r.connect())})}},{"../util/lift":338,"./OperatorSubscriber":165}],238:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.repeat=void 0;var n=e("../observable/empty"),o=e("../util/lift"),c=e("./OperatorSubscriber"),l=e("../observable/innerFrom"),f=e("../observable/timer");r.repeat=function(e){var t,a,s=1/0;return null!=e&&("object"==typeof e?(t=e.count,s=void 0===t?1/0:t,a=e.delay):s=e),s<=0?function(){return n.EMPTY}:o.operate(function(t,r){function n(){var e=!1;o=t.subscribe(c.createOperatorSubscriber(r,void 0,function(){++i<s?o?u():e=!0:r.complete()})),e&&u()}var o,i=0,u=function(){var e,t;null!=o&&o.unsubscribe(),(o=null)!=a?(e="number"==typeof a?f.timer(a):l.innerFrom(a(i)),t=c.createOperatorSubscriber(r,function(){t.unsubscribe(),n()}),e.subscribe(t)):n()};n()})}},{"../observable/empty":143,"../observable/innerFrom":151,"../observable/timer":162,"../util/lift":338,"./OperatorSubscriber":165}],239:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.repeatWhen=void 0;var f=e("../Subject"),n=e("../util/lift"),p=e("./OperatorSubscriber");r.repeatWhen=function(l){return n.operate(function(e,t){var r,n,o=!1,i=!1,u=!1,a=function(){return u&&i&&(t.complete(),!0)},s=function(){return n||(n=new f.Subject,l(n).subscribe(p.createOperatorSubscriber(t,function(){r?c():o=!0},function(){i=!0,a()}))),n},c=function(){u=!1,r=e.subscribe(p.createOperatorSubscriber(t,void 0,function(){u=!0,a()||s().next()})),o&&(r.unsubscribe(),r=null,o=!1,c())};c()})}},{"../Subject":128,"../util/lift":338,"./OperatorSubscriber":165}],240:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0;var n=e("../util/lift"),f=e("./OperatorSubscriber"),o=e("../util/identity"),p=e("../observable/timer"),d=e("../observable/innerFrom");r.retry=function(e){var t=(e=(e=void 0===e?1/0:e)&&"object"==typeof e?e:{count:e}).count,c=void 0===t?1/0:t,l=e.delay,r=void 0!==(t=e.resetOnSuccess)&&t;return c<=0?o.identity:n.operate(function(e,i){var u,a=0,s=function(){var o=!1;u=e.subscribe(f.createOperatorSubscriber(i,function(e){r&&(a=0),i.next(e)},void 0,function(e){var t,r,n;a++<c?(t=function(){u?(u.unsubscribe(),u=null,s()):o=!0},null!=l?(r="number"==typeof l?p.timer(l):d.innerFrom(l(e,a)),n=f.createOperatorSubscriber(i,function(){n.unsubscribe(),t()},function(){i.complete()}),r.subscribe(n)):t()):i.error(e)})),o&&(u.unsubscribe(),u=null,s())};s()})}},{"../observable/innerFrom":151,"../observable/timer":162,"../util/identity":327,"../util/lift":338,"./OperatorSubscriber":165}],241:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.retryWhen=void 0;var a=e("../Subject"),n=e("../util/lift"),s=e("./OperatorSubscriber");r.retryWhen=function(u){return n.operate(function(e,t){var r,n,o=!1,i=function(){r=e.subscribe(s.createOperatorSubscriber(t,void 0,void 0,function(e){n||(n=new a.Subject,u(n).subscribe(s.createOperatorSubscriber(t,function(){return r?i():o=!0}))),n&&n.next(e)})),o&&(r.unsubscribe(),r=null,o=!1,i())};i()})}},{"../Subject":128,"../util/lift":338,"./OperatorSubscriber":165}],242:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sample=void 0;var n=e("../util/lift"),i=e("../util/noop"),u=e("./OperatorSubscriber");r.sample=function(o){return n.operate(function(e,t){var r=!1,n=null;e.subscribe(u.createOperatorSubscriber(t,function(e){r=!0,n=e})),o.subscribe(u.createOperatorSubscriber(t,function(){var e;r&&(r=!1,e=n,n=null,t.next(e))},i.noop))})}},{"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],243:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sampleTime=void 0;var n=e("../scheduler/async"),o=e("./sample"),i=e("../observable/interval");r.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),o.sample(i.interval(e,t))}},{"../observable/interval":152,"../scheduler/async":302,"./sample":242}],244:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scan=void 0;var n=e("../util/lift"),o=e("./scanInternals");r.scan=function(e,t){return n.operate(o.scanInternals(e,t,2<=arguments.length,!0))}},{"../util/lift":338,"./scanInternals":245}],245:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scanInternals=void 0;var l=e("./OperatorSubscriber");r.scanInternals=function(u,t,a,s,c){return function(e,r){var n=a,o=t,i=0;e.subscribe(l.createOperatorSubscriber(r,function(e){var t=i++;o=n?u(o,e,t):(n=!0,e),s&&r.next(o)},c&&function(){n&&r.next(o),r.complete()}))}}},{"./OperatorSubscriber":165}],246:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sequenceEqual=void 0;var n=e("../util/lift"),s=e("./OperatorSubscriber");function c(){return{buffer:[],complete:!1}}r.sequenceEqual=function(u,a){return void 0===a&&(a=function(e,t){return e===t}),n.operate(function(e,t){function r(n,o){var r=s.createOperatorSubscriber(t,function(e){var t=o.buffer,r=o.complete;0===t.length?r?i(!1):n.buffer.push(e):a(e,t.shift())||i(!1)},function(){n.complete=!0;var e=o.complete,t=o.buffer;e&&i(0===t.length),null!=r&&r.unsubscribe()});return r}var n=c(),o=c(),i=function(e){t.next(e),t.complete()};e.subscribe(r(n,o)),u.subscribe(r(o,n))})}},{"../util/lift":338,"./OperatorSubscriber":165}],247:[function(e,t,r){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},y=(Object.defineProperty(r,"__esModule",{value:!0}),r.share=void 0,e("../observable/from")),u=e("../operators/take"),n=e("../Subject"),v=e("../Subscriber"),m=e("../util/lift");function _(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return!0===t?(e(),null):!1===t?null:t.apply(void 0,i([],o(r))).pipe(u.take(1)).subscribe(function(){return e()})}r.share=function(e){var t=(e=void 0===e?{}:e).connector,p=void 0===t?function(){return new n.Subject}:t,d=void 0===(t=e.resetOnError)||t,h=void 0===(t=e.resetOnComplete)||t,b=void 0===(t=e.resetOnRefCountZero)||t;return function(e){function n(){var e=o;f(),null!=e&&e.unsubscribe()}var o=null,i=null,u=null,a=0,s=!1,c=!1,l=function(){null!=i&&i.unsubscribe(),i=null},f=function(){l(),o=u=null,s=c=!1};return m.operate(function(e,t){a++,c||s||l();var r=u=null!=u?u:p();t.add(function(){0!==--a||c||s||(i=_(n,b))}),r.subscribe(t),o||(o=new v.SafeSubscriber({next:function(e){return r.next(e)},error:function(e){c=!0,l(),i=_(f,d,e),r.error(e)},complete:function(){s=!0,l(),i=_(f,h),r.complete()}}),y.from(e).subscribe(o))})(e)}}},{"../Subject":128,"../Subscriber":129,"../observable/from":145,"../operators/take":260,"../util/lift":338}],248:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.shareReplay=void 0;var u=e("../ReplaySubject"),a=e("./share");r.shareReplay=function(e,t,r){var n,o,i=!1;return e&&"object"==typeof e?(n=e.bufferSize,o=void 0===n?1/0:n,n=e.windowTime,t=void 0===n?1/0:n,i=void 0!==(n=e.refCount)&&n,r=e.scheduler):o=null!=e?e:1/0,a.share({connector:function(){return new u.ReplaySubject(o,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}},{"../ReplaySubject":126,"./share":247}],249:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.single=void 0;var s=e("../util/EmptyError"),c=e("../util/SequenceError"),l=e("../util/NotFoundError"),n=e("../util/lift"),f=e("./OperatorSubscriber");r.single=function(a){return n.operate(function(t,r){var n,o=!1,i=!1,u=0;t.subscribe(f.createOperatorSubscriber(r,function(e){i=!0,a&&!a(e,u++,t)||(o&&r.error(new c.SequenceError("Too many matching values")),o=!0,n=e)},function(){o?(r.next(n),r.complete()):r.error(i?new l.NotFoundError("No matching values"):new s.EmptyError)}))})}},{"../util/EmptyError":313,"../util/NotFoundError":315,"../util/SequenceError":317,"../util/lift":338,"./OperatorSubscriber":165}],250:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.skip=void 0;var n=e("./filter");r.skip=function(r){return n.filter(function(e,t){return r<=t})}},{"./filter":201}],251:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.skipLast=void 0;var n=e("../util/identity"),o=e("../util/lift"),a=e("./OperatorSubscriber");r.skipLast=function(u){return u<=0?n.identity:o.operate(function(e,n){var o=new Array(u),i=0;return e.subscribe(a.createOperatorSubscriber(n,function(e){var t,r=i++;r<u?o[r]=e:(t=o[r=r%u],o[r]=e,n.next(t))})),function(){o=null}})}},{"../util/identity":327,"../util/lift":338,"./OperatorSubscriber":165}],252:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.skipUntil=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber"),u=e("../observable/innerFrom"),a=e("../util/noop");r.skipUntil=function(o){return n.operate(function(e,t){var r=!1,n=i.createOperatorSubscriber(t,function(){null!=n&&n.unsubscribe(),r=!0},a.noop);u.innerFrom(o).subscribe(n),e.subscribe(i.createOperatorSubscriber(t,function(e){return r&&t.next(e)}))})}},{"../observable/innerFrom":151,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],253:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.skipWhile=void 0;var n=e("../util/lift"),i=e("./OperatorSubscriber");r.skipWhile=function(o){return n.operate(function(e,t){var r=!1,n=0;e.subscribe(i.createOperatorSubscriber(t,function(e){return(r=r||!o(e,n++))&&t.next(e)}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],254:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.startWith=void 0;var o=e("../observable/concat"),i=e("../util/args"),u=e("../util/lift");r.startWith=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var n=i.popScheduler(r);return u.operate(function(e,t){(n?o.concat(r,e,n):o.concat(r,e)).subscribe(t)})}},{"../observable/concat":139,"../util/args":319,"../util/lift":338}],255:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeOn=void 0;var o=e("../util/lift");r.subscribeOn=function(r,n){return void 0===n&&(n=0),o.operate(function(e,t){t.add(r.schedule(function(){return e.subscribe(t)},n))})}},{"../util/lift":338}],256:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.switchAll=void 0;var n=e("./switchMap"),o=e("../util/identity");r.switchAll=function(){return n.switchMap(o.identity)}},{"../util/identity":327,"./switchMap":257}],257:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.switchMap=void 0;var l=e("../observable/innerFrom"),n=e("../util/lift"),f=e("./OperatorSubscriber");r.switchMap=function(s,c){return n.operate(function(e,o){function i(){t&&!u&&o.complete()}var u=null,a=0,t=!1;e.subscribe(f.createOperatorSubscriber(o,function(t){null!=u&&u.unsubscribe();var r=0,n=a++;l.innerFrom(s(t,n)).subscribe(u=f.createOperatorSubscriber(o,function(e){return o.next(c?c(t,e,n,r++):e)},function(){u=null,i()}))},function(){t=!0,i()}))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],258:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.switchMapTo=void 0;var n=e("./switchMap"),o=e("../util/isFunction");r.switchMapTo=function(e,t){return o.isFunction(t)?n.switchMap(function(){return e},t):n.switchMap(function(){return e})}},{"../util/isFunction":331,"./switchMap":257}],259:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.switchScan=void 0;var i=e("./switchMap"),u=e("../util/lift");r.switchScan=function(n,o){return u.operate(function(e,t){var r=o;return i.switchMap(function(e,t){return n(r,e,t)},function(e,t){return r=t})(e).subscribe(t),function(){r=null}})}},{"../util/lift":338,"./switchMap":257}],260:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.take=void 0;var o=e("../observable/empty"),i=e("../util/lift"),u=e("./OperatorSubscriber");r.take=function(n){return n<=0?function(){return o.EMPTY}:i.operate(function(e,t){var r=0;e.subscribe(u.createOperatorSubscriber(t,function(e){++r<=n&&(t.next(e),n<=r&&t.complete())}))})}},{"../observable/empty":143,"../util/lift":338,"./OperatorSubscriber":165}],261:[function(e,t,r){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.takeLast=void 0,e("../observable/empty")),o=e("../util/lift"),s=e("./OperatorSubscriber");r.takeLast=function(t){return t<=0?function(){return n.EMPTY}:o.operate(function(e,i){var u=[];e.subscribe(s.createOperatorSubscriber(i,function(e){u.push(e),t<u.length&&u.shift()},function(){var t,e;try{for(var r=a(u),n=r.next();!n.done;n=r.next()){var o=n.value;i.next(o)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}i.complete()},void 0,function(){u=null}))})}},{"../observable/empty":143,"../util/lift":338,"./OperatorSubscriber":165}],262:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.takeUntil=void 0;var n=e("../util/lift"),o=e("./OperatorSubscriber"),i=e("../observable/innerFrom"),u=e("../util/noop");r.takeUntil=function(r){return n.operate(function(e,t){i.innerFrom(r).subscribe(o.createOperatorSubscriber(t,function(){return t.complete()},u.noop)),t.closed||e.subscribe(t)})}},{"../observable/innerFrom":151,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],263:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.takeWhile=void 0;var n=e("../util/lift"),u=e("./OperatorSubscriber");r.takeWhile=function(o,i){return void 0===i&&(i=!1),n.operate(function(e,r){var n=0;e.subscribe(u.createOperatorSubscriber(r,function(e){var t=o(e,n++);(t||i)&&r.next(e),t||r.complete()}))})}},{"../util/lift":338,"./OperatorSubscriber":165}],264:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.tap=void 0;var n=e("../util/isFunction"),i=e("../util/lift"),u=e("./OperatorSubscriber"),a=e("../util/identity");r.tap=function(e,t,r){var o=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return o?i.operate(function(e,r){null!=(t=o.subscribe)&&t.call(o);var t,n=!0;e.subscribe(u.createOperatorSubscriber(r,function(e){var t;null!=(t=o.next)&&t.call(o,e),r.next(e)},function(){var e;n=!1,null!=(e=o.complete)&&e.call(o),r.complete()},function(e){var t;n=!1,null!=(t=o.error)&&t.call(o,e),r.error(e)},function(){var e;n&&null!=(e=o.unsubscribe)&&e.call(o),null!=(e=o.finalize)&&e.call(o)}))}):a.identity}},{"../util/identity":327,"../util/isFunction":331,"../util/lift":338,"./OperatorSubscriber":165}],265:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.throttle=r.defaultThrottleConfig=void 0;var n=e("../util/lift"),h=e("./OperatorSubscriber"),b=e("../observable/innerFrom");r.defaultThrottleConfig={leading:!0,trailing:!1},r.throttle=function(p,d){return void 0===d&&(d=r.defaultThrottleConfig),n.operate(function(e,t){function r(){var e;i&&(i=!1,e=u,u=null,t.next(e),s||f(e))}var n=d.leading,o=d.trailing,i=!1,u=null,a=null,s=!1,c=function(){null!=a&&a.unsubscribe(),a=null,o&&(r(),s&&t.complete())},l=function(){a=null,s&&t.complete()},f=function(e){return a=b.innerFrom(p(e)).subscribe(h.createOperatorSubscriber(t,c,l))};e.subscribe(h.createOperatorSubscriber(t,function(e){i=!0,u=e,a&&!a.closed||(n?r():f(e))},function(){s=!0,o&&i&&a&&!a.closed||t.complete()}))})}},{"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],266:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.throttleTime=void 0;var o=e("../scheduler/async"),i=e("./throttle"),u=e("../observable/timer");r.throttleTime=function(e,t,r){void 0===t&&(t=o.asyncScheduler),void 0===r&&(r=i.defaultThrottleConfig);var n=u.timer(e,t);return i.throttle(function(){return n},r)}},{"../observable/timer":162,"../scheduler/async":302,"./throttle":265}],267:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.throwIfEmpty=void 0;var n=e("../util/EmptyError"),o=e("../util/lift"),i=e("./OperatorSubscriber");function u(){return new n.EmptyError}r.throwIfEmpty=function(n){return void 0===n&&(n=u),o.operate(function(e,t){var r=!1;e.subscribe(i.createOperatorSubscriber(t,function(e){r=!0,t.next(e)},function(){return r?t.complete():t.error(n())}))})}},{"../util/EmptyError":313,"../util/lift":338,"./OperatorSubscriber":165}],268:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TimeInterval=r.timeInterval=void 0;var n=e("../scheduler/async"),o=e("../util/lift"),u=e("./OperatorSubscriber");r.timeInterval=function(i){return void 0===i&&(i=n.asyncScheduler),o.operate(function(e,n){var o=i.now();e.subscribe(u.createOperatorSubscriber(n,function(e){var t=i.now(),r=t-o;o=t,n.next(new a(e,r))}))})};var a=function(e,t){this.value=e,this.interval=t};r.TimeInterval=a},{"../scheduler/async":302,"../util/lift":338,"./OperatorSubscriber":165}],269:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.timeout=r.TimeoutError=void 0;var n=e("../scheduler/async"),o=e("../util/isDate"),i=e("../util/lift"),p=e("../observable/innerFrom"),u=e("../util/createErrorClass"),d=e("./OperatorSubscriber"),h=e("../util/executeSchedule");function b(e){throw new r.TimeoutError(e)}r.TimeoutError=u.createErrorClass(function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}}),r.timeout=function(e,t){var a=(e=o.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e).first,s=e.each,r=e.with,c=void 0===r?b:r,l=void 0===(r=e.scheduler)?null!=t?t:n.asyncScheduler:r,f=void 0===(t=e.meta)?null:t;if(null==a&&null==s)throw new TypeError("No timeout provided.");return i.operate(function(e,t){function r(e){n=h.executeSchedule(t,l,function(){try{u.unsubscribe(),p.innerFrom(c({meta:f,lastValue:o,seen:i})).subscribe(t)}catch(e){t.error(e)}},e)}var n,o=null,i=0,u=e.subscribe(d.createOperatorSubscriber(t,function(e){null!=n&&n.unsubscribe(),i++,t.next(o=e),0<s&&r(s)},void 0,void 0,function(){null!=n&&n.closed||null!=n&&n.unsubscribe(),o=null}));i||r(null!=a?"number"==typeof a?a:+a-l.now():s)})}},{"../observable/innerFrom":151,"../scheduler/async":302,"../util/createErrorClass":323,"../util/executeSchedule":326,"../util/isDate":330,"../util/lift":338,"./OperatorSubscriber":165}],270:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.timeoutWith=void 0;var i=e("../scheduler/async"),u=e("../util/isDate"),a=e("./timeout");r.timeoutWith=function(e,t,r){var n,o;if(r=null!=r?r:i.async,u.isValidDate(e)?n=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(e=function(){return t},null==n&&null==o)throw new TypeError("No timeout provided.");return a.timeout({first:n,each:o,scheduler:r,with:e})}},{"../scheduler/async":302,"../util/isDate":330,"./timeout":269}],271:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.timestamp=void 0;var n=e("../scheduler/dateTimestampProvider"),o=e("./map");r.timestamp=function(t){return void 0===t&&(t=n.dateTimestampProvider),o.map(function(e){return{value:e,timestamp:t.now()}})}},{"../scheduler/dateTimestampProvider":303,"./map":212}],272:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toArray=void 0;function n(e,t){return e.push(t),e}var o=e("./reduce"),i=e("../util/lift");r.toArray=function(){return i.operate(function(e,t){o.reduce(n,[])(e).subscribe(t)})}},{"../util/lift":338,"./reduce":236}],273:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.window=void 0;var i=e("../Subject"),n=e("../util/lift"),u=e("./OperatorSubscriber"),a=e("../util/noop");r.window=function(o){return n.operate(function(e,t){function r(e){n.error(e),t.error(e)}var n=new i.Subject;t.next(n.asObservable());return e.subscribe(u.createOperatorSubscriber(t,function(e){return null==n?void 0:n.next(e)},function(){n.complete(),t.complete()},r)),o.subscribe(u.createOperatorSubscriber(t,function(){n.complete(),t.next(n=new i.Subject)},a.noop,r)),function(){null!=n&&n.unsubscribe(),n=null}})}},{"../Subject":128,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],274:[function(e,t,r){"use strict";var l=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=(Object.defineProperty(r,"__esModule",{value:!0}),r.windowCount=void 0,e("../Subject")),n=e("../util/lift"),o=e("./OperatorSubscriber");r.windowCount=function(s,e){var c=0<(e=void 0===e?0:e)?e:s;return n.operate(function(e,i){var u=[new f.Subject],a=0;i.next(u[0].asObservable()),e.subscribe(o.createOperatorSubscriber(i,function(e){try{for(var t=l(u),r=t.next();!r.done;r=t.next())r.value.next(e)}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&o.call(t)}finally{if(n)throw n.error}}var n,o=a-s+1;0<=o&&o%c==0&&u.shift().complete(),++a%c==0&&(n=new f.Subject,u.push(n),i.next(n.asObservable()))},function(){for(;0<u.length;)u.shift().complete();i.complete()},function(e){for(;0<u.length;)u.shift().error(e);i.error(e)},function(){u=null}))})}},{"../Subject":128,"../util/lift":338,"./OperatorSubscriber":165}],275:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.windowTime=void 0;var d=e("../Subject"),n=e("../scheduler/async"),h=e("../Subscription"),o=e("../util/lift"),b=e("./OperatorSubscriber"),y=e("../util/arrRemove"),i=e("../util/args"),v=e("../util/executeSchedule");r.windowTime=function(c){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var l=null!=(e=i.popScheduler(t))?e:n.asyncScheduler,f=null!=(e=t[0])?e:null,p=t[1]||1/0;return o.operate(function(e,n){function r(t){s(function(e){e=e.window;return t(e)}),t(n),n.unsubscribe()}var o=[],i=!1,u=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),y.arrRemove(o,e),i&&a()},a=function(){var e,t,r;o&&(e=new h.Subscription,n.add(e),t=new d.Subject,o.push(r={window:t,subs:e,seen:0}),n.next(t.asObservable()),v.executeSchedule(e,l,function(){return u(r)},c))},s=(null!==f&&0<=f?v.executeSchedule(n,l,a,f,!0):i=!0,a(),function(e){return o.slice().forEach(e)});return e.subscribe(b.createOperatorSubscriber(n,function(t){s(function(e){e.window.next(t),p<=++e.seen&&u(e)})},function(){return r(function(e){return e.complete()})},function(t){return r(function(e){return e.error(t)})})),function(){o=null}})}},{"../Subject":128,"../Subscription":130,"../scheduler/async":302,"../util/args":319,"../util/arrRemove":322,"../util/executeSchedule":326,"../util/lift":338,"./OperatorSubscriber":165}],276:[function(e,t,r){"use strict";var s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=(Object.defineProperty(r,"__esModule",{value:!0}),r.windowToggle=void 0,e("../Subject")),l=e("../Subscription"),n=e("../util/lift"),f=e("../observable/innerFrom"),p=e("./OperatorSubscriber"),d=e("../util/noop"),h=e("../util/arrRemove");r.windowToggle=function(t,a){return n.operate(function(e,o){function i(e){for(;0<u.length;)u.shift().error(e);o.error(e)}var u=[];f.innerFrom(t).subscribe(p.createOperatorSubscriber(o,function(e){var t,r=new c.Subject,n=(u.push(r),new l.Subscription);try{t=f.innerFrom(a(e))}catch(e){return void i(e)}o.next(r.asObservable()),n.add(t.subscribe(p.createOperatorSubscriber(o,function(){h.arrRemove(u,r),r.complete(),n.unsubscribe()},d.noop,i)))},d.noop)),e.subscribe(p.createOperatorSubscriber(o,function(e){var t,r,n=u.slice();try{for(var o=s(n),i=o.next();!i.done;i=o.next())i.value.next(e)}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},function(){for(;0<u.length;)u.shift().complete();o.complete()},i,function(){for(;0<u.length;)u.shift().unsubscribe()}))})}},{"../Subject":128,"../Subscription":130,"../observable/innerFrom":151,"../util/arrRemove":322,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],277:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.windowWhen=void 0;var a=e("../Subject"),n=e("../util/lift"),s=e("./OperatorSubscriber"),c=e("../observable/innerFrom");r.windowWhen=function(u){return n.operate(function(e,t){var r,n,o=function(e){r.error(e),t.error(e)},i=function(){var e;null!=n&&n.unsubscribe(),null!=r&&r.complete(),r=new a.Subject,t.next(r.asObservable());try{e=c.innerFrom(u())}catch(e){return void o(e)}e.subscribe(n=s.createOperatorSubscriber(t,i,i,o))};i(),e.subscribe(s.createOperatorSubscriber(t,function(e){return r.next(e)},function(){r.complete(),t.complete()},o,function(){null!=n&&n.unsubscribe(),r=null}))})}},{"../Subject":128,"../observable/innerFrom":151,"../util/lift":338,"./OperatorSubscriber":165}],278:[function(e,t,r){"use strict";var c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},l=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},n=(Object.defineProperty(r,"__esModule",{value:!0}),r.withLatestFrom=void 0,e("../util/lift")),f=e("./OperatorSubscriber"),p=e("../observable/innerFrom"),d=e("../util/identity"),h=e("../util/noop"),o=e("../util/args");r.withLatestFrom=function(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];var s=o.popResultSelector(a);return n.operate(function(e,r){for(var t=a.length,n=new Array(t),o=a.map(function(){return!1}),i=!1,u=0;u<t;u++)!function(t){p.innerFrom(a[t]).subscribe(f.createOperatorSubscriber(r,function(e){n[t]=e,i||o[t]||(o[t]=!0,(i=o.every(d.identity))&&(o=null))},h.noop))}(u);e.subscribe(f.createOperatorSubscriber(r,function(e){i&&(e=l([e],c(n)),r.next(s?s.apply(void 0,l([],c(e))):e))}))})}},{"../observable/innerFrom":151,"../util/args":319,"../util/identity":327,"../util/lift":338,"../util/noop":340,"./OperatorSubscriber":165}],279:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.zip=void 0,e("../observable/zip")),u=e("../util/lift");r.zip=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return u.operate(function(e,t){i.zip.apply(void 0,o([e],n(r))).subscribe(t)})}},{"../observable/zip":164,"../util/lift":338}],280:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.zipAll=void 0;var n=e("../observable/zip"),o=e("./joinAllInternals");r.zipAll=function(e){return o.joinAllInternals(n.zip,e)}},{"../observable/zip":164,"./joinAllInternals":210}],281:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.zipWith=void 0,e("./zip"));r.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.zip.apply(void 0,o([],n(e)))}},{"./zip":279}],282:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleArray=void 0;var o=e("../Observable");r.scheduleArray=function(r,n){return new o.Observable(function(e){var t=0;return n.schedule(function(){t===r.length?e.complete():(e.next(r[t++]),e.closed||this.schedule())})})}},{"../Observable":125}],283:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleAsyncIterable=void 0;var o=e("../Observable"),i=e("../util/executeSchedule");r.scheduleAsyncIterable=function(r,n){if(r)return new o.Observable(function(t){i.executeSchedule(t,n,function(){var e=r[Symbol.asyncIterator]();i.executeSchedule(t,n,function(){e.next().then(function(e){e.done?t.complete():t.next(e.value)})},0,!0)})});throw new Error("Iterable cannot be null")}},{"../Observable":125,"../util/executeSchedule":326}],284:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleIterable=void 0;var n=e("../Observable"),i=e("../symbol/iterator"),u=e("../util/isFunction"),a=e("../util/executeSchedule");r.scheduleIterable=function(e,t){return new n.Observable(function(n){var o;return a.executeSchedule(n,t,function(){o=e[i.iterator](),a.executeSchedule(n,t,function(){var e,t,r;try{t=(e=o.next()).value,r=e.done}catch(e){return void n.error(e)}r?n.complete():n.next(t)},0,!0)}),function(){return u.isFunction(null==o?void 0:o.return)&&o.return()}})}},{"../Observable":125,"../symbol/iterator":309,"../util/executeSchedule":326,"../util/isFunction":331}],285:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleObservable=void 0;var n=e("../observable/innerFrom"),o=e("../operators/observeOn"),i=e("../operators/subscribeOn");r.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(i.subscribeOn(t),o.observeOn(t))}},{"../observable/innerFrom":151,"../operators/observeOn":225,"../operators/subscribeOn":255}],286:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.schedulePromise=void 0;var n=e("../observable/innerFrom"),o=e("../operators/observeOn"),i=e("../operators/subscribeOn");r.schedulePromise=function(e,t){return n.innerFrom(e).pipe(i.subscribeOn(t),o.observeOn(t))}},{"../observable/innerFrom":151,"../operators/observeOn":225,"../operators/subscribeOn":255}],287:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduleReadableStreamLike=void 0;var n=e("./scheduleAsyncIterable"),o=e("../util/isReadableStreamLike");r.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(o.readableStreamLikeToAsyncGenerator(e),t)}},{"../util/isReadableStreamLike":336,"./scheduleAsyncIterable":283}],288:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.scheduled=void 0;var n=e("./scheduleObservable"),o=e("./schedulePromise"),i=e("./scheduleArray"),u=e("./scheduleIterable"),a=e("./scheduleAsyncIterable"),s=e("../util/isInteropObservable"),c=e("../util/isPromise"),l=e("../util/isArrayLike"),f=e("../util/isIterable"),p=e("../util/isAsyncIterable"),d=e("../util/throwUnobservableError"),h=e("../util/isReadableStreamLike"),b=e("./scheduleReadableStreamLike");r.scheduled=function(e,t){if(null!=e){if(s.isInteropObservable(e))return n.scheduleObservable(e,t);if(l.isArrayLike(e))return i.scheduleArray(e,t);if(c.isPromise(e))return o.schedulePromise(e,t);if(p.isAsyncIterable(e))return a.scheduleAsyncIterable(e,t);if(f.isIterable(e))return u.scheduleIterable(e,t);if(h.isReadableStreamLike(e))return b.scheduleReadableStreamLike(e,t)}throw d.createInvalidObservableTypeError(e)}},{"../util/isArrayLike":328,"../util/isAsyncIterable":329,"../util/isInteropObservable":332,"../util/isIterable":333,"../util/isPromise":335,"../util/isReadableStreamLike":336,"../util/throwUnobservableError":344,"./scheduleArray":282,"./scheduleAsyncIterable":283,"./scheduleIterable":284,"./scheduleObservable":285,"./schedulePromise":286,"./scheduleReadableStreamLike":287}],289:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.Action=void 0,e("../Subscription")),e=(o=e.Subscription,i(u,o),u.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},u);function u(e,t){return o.call(this)||this}r.Action=e},{"../Subscription":130}],290:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameAction=void 0,e("./AsyncAction")),a=e("./animationFrameProvider"),e=(o=u.AsyncAction,i(s,o),s.prototype.requestAsyncId=function(e,t,r){return null!==(r=void 0===r?0:r)&&0<r?o.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=a.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},s.prototype.recycleAsyncId=function(e,t,r){if(null!=(r=void 0===r?0:r)&&0<r||null==r&&0<this.delay)return o.prototype.recycleAsyncId.call(this,e,t,r);e.actions.some(function(e){return e.id===t})||(a.animationFrameProvider.cancelAnimationFrame(t),e._scheduled=void 0)},s);function s(e,t){var r=o.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.AnimationFrameAction=e},{"./AsyncAction":294,"./animationFrameProvider":300}],291:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.AnimationFrameScheduler=void 0,e("./AsyncScheduler")),e=(o=e.AsyncScheduler,i(u,o),u.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled,n=(this._scheduled=void 0,this.actions);e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},u);function u(){return null!==o&&o.apply(this,arguments)||this}r.AnimationFrameScheduler=e},{"./AsyncScheduler":295}],292:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.AsapAction=void 0,e("./AsyncAction")),a=e("./immediateProvider"),e=(o=u.AsyncAction,i(s,o),s.prototype.requestAsyncId=function(e,t,r){return null!==(r=void 0===r?0:r)&&0<r?o.prototype.requestAsyncId.call(this,e,t,r):(e.actions.push(this),e._scheduled||(e._scheduled=a.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},s.prototype.recycleAsyncId=function(e,t,r){if(null!=(r=void 0===r?0:r)&&0<r||null==r&&0<this.delay)return o.prototype.recycleAsyncId.call(this,e,t,r);e.actions.some(function(e){return e.id===t})||(a.immediateProvider.clearImmediate(t),e._scheduled=void 0)},s);function s(e,t){var r=o.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.AsapAction=e},{"./AsyncAction":294,"./immediateProvider":304}],293:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.AsapScheduler=void 0,e("./AsyncScheduler")),e=(o=e.AsyncScheduler,i(u,o),u.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled,n=(this._scheduled=void 0,this.actions);e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},u);function u(){return null!==o&&o.apply(this,arguments)||this}r.AsapScheduler=e},{"./AsyncScheduler":295}],294:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncAction=void 0,e("./Action")),a=e("./intervalProvider"),s=e("../util/arrRemove"),e=(o=u.Action,i(c,o),c.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},c.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),a.intervalProvider.setInterval(e.flush.bind(e,this),r)},c.prototype.recycleAsyncId=function(e,t,r){if(null!=(r=void 0===r?0:r)&&this.delay===r&&!1===this.pending)return t;a.intervalProvider.clearInterval(t)},c.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;e=this._execute(e,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},c.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},c.prototype.unsubscribe=function(){var e,t,r;this.closed||(e=this.id,r=(t=this.scheduler).actions,this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(r,this),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null,o.prototype.unsubscribe.call(this))},c);function c(e,t){var r=o.call(this,e,t)||this;return r.scheduler=e,r.work=t,r.pending=!1,r}r.AsyncAction=e},{"../util/arrRemove":322,"./Action":289,"./intervalProvider":305}],295:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncScheduler=void 0,e("../Scheduler")),e=(o=u.Scheduler,i(a,o),a.prototype.flush=function(e){var t,r=this.actions;if(this._active)r.push(e);else{this._active=!0;do{if(t=e.execute(e.state,e.delay))break}while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}}},a);function a(e,t){void 0===t&&(t=u.Scheduler.now);e=o.call(this,e,t)||this;return e.actions=[],e._active=!1,e._scheduled=void 0,e}r.AsyncScheduler=e},{"../Scheduler":127}],296:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.QueueAction=void 0,e("./AsyncAction")),e=(o=e.AsyncAction,i(u,o),u.prototype.schedule=function(e,t){return 0<(t=void 0===t?0:t)?o.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},u.prototype.execute=function(e,t){return 0<t||this.closed?o.prototype.execute.call(this,e,t):this._execute(e,t)},u.prototype.requestAsyncId=function(e,t,r){return null!=(r=void 0===r?0:r)&&0<r||null==r&&0<this.delay?o.prototype.requestAsyncId.call(this,e,t,r):e.flush(this)},u);function u(e,t){var r=o.call(this,e,t)||this;return r.scheduler=e,r.work=t,r}r.QueueAction=e},{"./AsyncAction":294}],297:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),e=(Object.defineProperty(r,"__esModule",{value:!0}),r.QueueScheduler=void 0,e("./AsyncScheduler")),e=(o=e.AsyncScheduler,i(u,o),u);function u(){return null!==o&&o.apply(this,arguments)||this}r.QueueScheduler=e},{"./AsyncScheduler":295}],298:[function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.VirtualAction=r.VirtualTimeScheduler=void 0,e("./AsyncAction")),a=e("../Subscription"),e=e("./AsyncScheduler"),e=(o=e.AsyncScheduler,i(s,o),s.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},s.frameTimeFactor=10,s);function s(e,t){void 0===t&&(t=1/0);var r=o.call(this,e=void 0===e?l:e,function(){return r.frame})||this;return r.maxFrames=t,r.frame=0,r.index=-1,r}r.VirtualTimeScheduler=e;c=u.AsyncAction,i(f,c),f.prototype.schedule=function(e,t){if(void 0===t&&(t=0),Number.isFinite(t)){if(!this.id)return c.prototype.schedule.call(this,e,t);this.active=!1;var r=new f(this.scheduler,this.work);return this.add(r),r.schedule(e,t)}return a.Subscription.EMPTY},f.prototype.requestAsyncId=function(e,t,r){this.delay=e.frame+(r=void 0===r?0:r);r=e.actions;return r.push(this),r.sort(f.sortActions),!0},f.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},f.prototype._execute=function(e,t){if(!0===this.active)return c.prototype._execute.call(this,e,t)},f.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1};var c,l=f;function f(e,t,r){void 0===r&&(r=e.index+=1);var n=c.call(this,e,t)||this;return n.scheduler=e,n.work=t,n.index=r,n.active=!0,n.index=e.index=r,n}r.VirtualAction=l},{"../Subscription":130,"./AsyncAction":294,"./AsyncScheduler":295}],299:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.animationFrame=r.animationFrameScheduler=void 0;var n=e("./AnimationFrameAction"),e=e("./AnimationFrameScheduler");r.animationFrameScheduler=new e.AnimationFrameScheduler(n.AnimationFrameAction),r.animationFrame=r.animationFrameScheduler},{"./AnimationFrameAction":290,"./AnimationFrameScheduler":291}],300:[function(e,t,i){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},u=(Object.defineProperty(i,"__esModule",{value:!0}),i.animationFrameProvider=void 0,e("../Subscription"));i.animationFrameProvider={schedule:function(t){var e=requestAnimationFrame,r=cancelAnimationFrame,n=i.animationFrameProvider.delegate,o=(n&&(e=n.requestAnimationFrame,r=n.cancelAnimationFrame),e(function(e){r=void 0,t(e)}));return new u.Subscription(function(){return null==r?void 0:r(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.animationFrameProvider.delegate;return((null==r?void 0:r.requestAnimationFrame)||requestAnimationFrame).apply(void 0,o([],n(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.animationFrameProvider.delegate;return((null==r?void 0:r.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,o([],n(e)))},delegate:void 0}},{"../Subscription":130}],301:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.asap=r.asapScheduler=void 0;var n=e("./AsapAction"),e=e("./AsapScheduler");r.asapScheduler=new e.AsapScheduler(n.AsapAction),r.asap=r.asapScheduler},{"./AsapAction":292,"./AsapScheduler":293}],302:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.async=r.asyncScheduler=void 0;var n=e("./AsyncAction"),e=e("./AsyncScheduler");r.asyncScheduler=new e.AsyncScheduler(n.AsyncAction),r.async=r.asyncScheduler},{"./AsyncAction":294,"./AsyncScheduler":295}],303:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dateTimestampProvider=void 0,r.dateTimestampProvider={now:function(){return(r.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},{}],304:[function(e,t,n){"use strict";var o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},e=(Object.defineProperty(n,"__esModule",{value:!0}),n.immediateProvider=void 0,e("../util/Immediate")),u=e.Immediate.setImmediate,r=e.Immediate.clearImmediate;n.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.immediateProvider.delegate;return((null==r?void 0:r.setImmediate)||u).apply(void 0,i([],o(e)))},clearImmediate:function(e){var t=n.immediateProvider.delegate;return((null==t?void 0:t.clearImmediate)||r)(e)},delegate:void 0}},{"../util/Immediate":314}],305:[function(e,t,i){"use strict";var u=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(i,"__esModule",{value:!0}),i.intervalProvider=void 0,i.intervalProvider={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=i.intervalProvider.delegate;return null!=o&&o.setInterval?o.setInterval.apply(o,a([e,t],u(r))):setInterval.apply(void 0,a([e,t],u(r)))},clearInterval:function(e){var t=i.intervalProvider.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0}},{}],306:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.performanceTimestampProvider=void 0,r.performanceTimestampProvider={now:function(){return(r.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},{}],307:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.queue=r.queueScheduler=void 0;var n=e("./QueueAction"),e=e("./QueueScheduler");r.queueScheduler=new e.QueueScheduler(n.QueueAction),r.queue=r.queueScheduler},{"./QueueAction":296,"./QueueScheduler":297}],308:[function(e,t,i){"use strict";var u=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};Object.defineProperty(i,"__esModule",{value:!0}),i.timeoutProvider=void 0,i.timeoutProvider={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=i.timeoutProvider.delegate;return null!=o&&o.setTimeout?o.setTimeout.apply(o,a([e,t],u(r))):setTimeout.apply(void 0,a([e,t],u(r)))},clearTimeout:function(e){var t=i.timeoutProvider.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},{}],309:[function(e,t,r){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(r,"__esModule",{value:!0}),r.iterator=r.getSymbolIterator=void 0,r.getSymbolIterator=n,r.iterator=n()},{}],310:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.observable=void 0,r.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},{}],311:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],312:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArgumentOutOfRangeError=void 0;e=e("./createErrorClass");r.ArgumentOutOfRangeError=e.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},{"./createErrorClass":323}],313:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EmptyError=void 0;e=e("./createErrorClass");r.EmptyError=e.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})},{"./createErrorClass":323}],314:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TestTools=r.Immediate=void 0;var n,o=1,i={};function u(e){return e in i&&(delete i[e],!0)}r.Immediate={setImmediate:function(e){var t=o++;return i[t]=!0,(n=n||Promise.resolve()).then(function(){return u(t)&&e()}),t},clearImmediate:function(e){u(e)}},r.TestTools={pending:function(){return Object.keys(i).length}}},{}],315:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NotFoundError=void 0;e=e("./createErrorClass");r.NotFoundError=e.createErrorClass(function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})},{"./createErrorClass":323}],316:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ObjectUnsubscribedError=void 0;e=e("./createErrorClass");r.ObjectUnsubscribedError=e.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},{"./createErrorClass":323}],317:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SequenceError=void 0;e=e("./createErrorClass");r.SequenceError=e.createErrorClass(function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})},{"./createErrorClass":323}],318:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnsubscriptionError=void 0;e=e("./createErrorClass");r.UnsubscriptionError=e.createErrorClass(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}})},{"./createErrorClass":323}],319:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.popNumber=r.popScheduler=r.popResultSelector=void 0;var n=e("./isFunction"),o=e("./isScheduler");function i(e){return e[e.length-1]}r.popResultSelector=function(e){return n.isFunction(i(e))?e.pop():void 0},r.popScheduler=function(e){return o.isScheduler(i(e))?e.pop():void 0},r.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},{"./isFunction":331,"./isScheduler":337}],320:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.argsArgArrayOrObject=void 0;var n=Array.isArray,o=Object.getPrototypeOf,i=Object.prototype,u=Object.keys;r.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&o(r)===i)return{args:(r=u(t)).map(function(e){return t[e]}),keys:r}}var r;return{args:e,keys:null}}},{}],321:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.argsOrArgArray=void 0;var n=Array.isArray;r.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},{}],322:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.arrRemove=void 0,r.arrRemove=function(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}},{}],323:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createErrorClass=void 0,r.createErrorClass=function(e){return(e=e(function(e){Error.call(e),e.stack=(new Error).stack})).prototype=Object.create(Error.prototype),e.prototype.constructor=e}},{}],324:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createObject=void 0,r.createObject=function(e,n){return e.reduce(function(e,t,r){return e[t]=n[r],e},{})}},{}],325:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.captureError=r.errorContext=void 0;var n=e("../config"),o=null;r.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!o;if(t&&(o={errorThrown:!1,error:null}),e(),t){var t=o,r=t.errorThrown,t=t.error;if(o=null,r)throw t}}else e()},r.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=e)}},{"../config":131}],326:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.executeSchedule=void 0,r.executeSchedule=function(e,t,r,n,o){if(void 0===n&&(n=0),void 0===o&&(o=!1),t=t.schedule(function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()},n),e.add(t),!o)return t}},{}],327:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.identity=void 0,r.identity=function(e){return e}},{}],328:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isArrayLike=void 0,r.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},{}],329:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isAsyncIterable=void 0;var n=e("./isFunction");r.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},{"./isFunction":331}],330:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isValidDate=void 0,r.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},{}],331:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"==typeof e}},{}],332:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isInteropObservable=void 0;var n=e("../symbol/observable"),o=e("./isFunction");r.isInteropObservable=function(e){return o.isFunction(e[n.observable])}},{"../symbol/observable":310,"./isFunction":331}],333:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isIterable=void 0;var n=e("../symbol/iterator"),o=e("./isFunction");r.isIterable=function(e){return o.isFunction(null==e?void 0:e[n.iterator])}},{"../symbol/iterator":309,"./isFunction":331}],334:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isObservable=void 0;var n=e("../Observable"),o=e("./isFunction");r.isObservable=function(e){return!!e&&(e instanceof n.Observable||o.isFunction(e.lift)&&o.isFunction(e.subscribe))}},{"../Observable":125,"./isFunction":331}],335:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isPromise=void 0;var n=e("./isFunction");r.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},{"./isFunction":331}],336:[function(e,t,r){"use strict";var i=this&&this.__generator||function(n,o){var i,u,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,u&&(a=2&t[0]?u.return:t[0]?u.throw||((a=u.return)&&a.call(u),0):u.next)&&!(a=a.call(u,t[1])).done)return a;switch(u=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,u=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=o.call(n,s)}catch(e){t=[6,e],u=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},f=this&&this.__await||function(e){return this instanceof f?(this.v=e,this):new f(e)},n=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),i=[],u={};return n("next"),n("throw"),n("return"),u[Symbol.asyncIterator]=function(){return this},u;function n(n){o[n]&&(u[n]=function(r){return new Promise(function(e,t){1<i.push([n,r,e,t])||a(n,r)})})}function a(e,t){try{(r=o[e](t)).value instanceof f?Promise.resolve(r.value.v).then(s,c):l(i[0][2],r)}catch(e){l(i[0][3],e)}var r}function s(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}},o=(Object.defineProperty(r,"__esModule",{value:!0}),r.isReadableStreamLike=r.readableStreamLikeToAsyncGenerator=void 0,e("./isFunction"));r.readableStreamLikeToAsyncGenerator=function(o){return n(this,arguments,function(){var t,r,n;return i(this,function(e){switch(e.label){case 0:t=o.getReader(),e.label=1;case 1:e.trys.push([1,,9,10]),e.label=2;case 2:return[4,f(t.read())];case 3:return(r=e.sent(),n=r.value,r.done)?[4,f(void 0)]:[3,5];case 4:return[2,e.sent()];case 5:return[4,f(n)];case 6:return[4,e.sent()];case 7:return e.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})},r.isReadableStreamLike=function(e){return o.isFunction(null==e?void 0:e.getReader)}},{"./isFunction":331}],337:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isScheduler=void 0;var n=e("./isFunction");r.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},{"./isFunction":331}],338:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.operate=r.hasLift=void 0;var n=e("./isFunction");function o(e){return n.isFunction(null==e?void 0:e.lift)}r.hasLift=o,r.operate=function(t){return function(e){if(o(e))return e.lift(function(e){try{return t(e,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}},{"./isFunction":331}],339:[function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u},o=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},i=(Object.defineProperty(r,"__esModule",{value:!0}),r.mapOneOrManyArgs=void 0,e("../operators/map")),u=Array.isArray;r.mapOneOrManyArgs=function(r){return i.map(function(e){return t=r,u(e=e)?t.apply(void 0,o([],n(e))):t(e);var t})}},{"../operators/map":212}],340:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.noop=void 0,r.noop=function(){}},{}],341:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.not=void 0,r.not=function(r,n){return function(e,t){return!r.call(n,e,t)}}},{}],342:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pipeFromArray=r.pipe=void 0;var n=e("./identity");function o(t){return 0===t.length?n.identity:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}}r.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)},r.pipeFromArray=o},{"./identity":327}],343:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.reportUnhandledError=void 0;var n=e("../config"),o=e("../scheduler/timeoutProvider");r.reportUnhandledError=function(t){o.timeoutProvider.setTimeout(function(){var e=n.config.onUnhandledError;if(!e)throw t;e(t)})}},{"../config":131,"../scheduler/timeoutProvider":308}],344:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createInvalidObservableTypeError=void 0,r.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},{}],345:[function(e,D,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var r=e("../internal/operators/audit"),n=(Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return r.audit}}),e("../internal/operators/auditTime")),o=(Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return n.auditTime}}),e("../internal/operators/buffer")),i=(Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return o.buffer}}),e("../internal/operators/bufferCount")),u=(Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return i.bufferCount}}),e("../internal/operators/bufferTime")),a=(Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return u.bufferTime}}),e("../internal/operators/bufferToggle")),s=(Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return a.bufferToggle}}),e("../internal/operators/bufferWhen")),c=(Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return s.bufferWhen}}),e("../internal/operators/catchError")),l=(Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return c.catchError}}),e("../internal/operators/combineAll")),f=(Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return l.combineAll}}),e("../internal/operators/combineLatestAll")),p=(Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return f.combineLatestAll}}),e("../internal/operators/combineLatest")),d=(Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return p.combineLatest}}),e("../internal/operators/combineLatestWith")),h=(Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return d.combineLatestWith}}),e("../internal/operators/concat")),b=(Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}}),e("../internal/operators/concatAll")),y=(Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return b.concatAll}}),e("../internal/operators/concatMap")),v=(Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return y.concatMap}}),e("../internal/operators/concatMapTo")),m=(Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}}),e("../internal/operators/concatWith")),_=(Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return m.concatWith}}),e("../internal/operators/connect")),g=(Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return _.connect}}),e("../internal/operators/count")),O=(Object.defineProperty(t,"count",{enumerable:!0,get:function(){return g.count}}),e("../internal/operators/debounce")),w=(Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return O.debounce}}),e("../internal/operators/debounceTime")),S=(Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return w.debounceTime}}),e("../internal/operators/defaultIfEmpty")),E=(Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return S.defaultIfEmpty}}),e("../internal/operators/delay")),P=(Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return E.delay}}),e("../internal/operators/delayWhen")),j=(Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return P.delayWhen}}),e("../internal/operators/dematerialize")),T=(Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return j.dematerialize}}),e("../internal/operators/distinct")),C=(Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return T.distinct}}),e("../internal/operators/distinctUntilChanged")),k=(Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return C.distinctUntilChanged}}),e("../internal/operators/distinctUntilKeyChanged")),I=(Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return k.distinctUntilKeyChanged}}),e("../internal/operators/elementAt")),A=(Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return I.elementAt}}),e("../internal/operators/endWith")),x=(Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return A.endWith}}),e("../internal/operators/every")),R=(Object.defineProperty(t,"every",{enumerable:!0,get:function(){return x.every}}),e("../internal/operators/exhaust")),M=(Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return R.exhaust}}),e("../internal/operators/exhaustAll")),N=(Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return M.exhaustAll}}),e("../internal/operators/exhaustMap")),U=(Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return N.exhaustMap}}),e("../internal/operators/expand")),L=(Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return U.expand}}),e("../internal/operators/filter")),F=(Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return L.filter}}),e("../internal/operators/finalize")),B=(Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return F.finalize}}),e("../internal/operators/find")),W=(Object.defineProperty(t,"find",{enumerable:!0,get:function(){return B.find}}),e("../internal/operators/findIndex")),z=(Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return W.findIndex}}),e("../internal/operators/first")),q=(Object.defineProperty(t,"first",{enumerable:!0,get:function(){return z.first}}),e("../internal/operators/groupBy")),V=(Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return q.groupBy}}),e("../internal/operators/ignoreElements")),H=(Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return V.ignoreElements}}),e("../internal/operators/isEmpty")),Y=(Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return H.isEmpty}}),e("../internal/operators/last")),K=(Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Y.last}}),e("../internal/operators/map")),G=(Object.defineProperty(t,"map",{enumerable:!0,get:function(){return K.map}}),e("../internal/operators/mapTo")),Z=(Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return G.mapTo}}),e("../internal/operators/materialize")),Q=(Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return Z.materialize}}),e("../internal/operators/max")),X=(Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Q.max}}),e("../internal/operators/merge")),J=(Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return X.merge}}),e("../internal/operators/mergeAll")),$=(Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return J.mergeAll}}),e("../internal/operators/flatMap")),ee=(Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return $.flatMap}}),e("../internal/operators/mergeMap")),te=(Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}}),e("../internal/operators/mergeMapTo")),re=(Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}}),e("../internal/operators/mergeScan")),ne=(Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return re.mergeScan}}),e("../internal/operators/mergeWith")),oe=(Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ne.mergeWith}}),e("../internal/operators/min")),ie=(Object.defineProperty(t,"min",{enumerable:!0,get:function(){return oe.min}}),e("../internal/operators/multicast")),ue=(Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ie.multicast}}),e("../internal/operators/observeOn")),ae=(Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return ue.observeOn}}),e("../internal/operators/onErrorResumeNext")),se=(Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return ae.onErrorResumeNext}}),e("../internal/operators/pairwise")),ce=(Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return se.pairwise}}),e("../internal/operators/partition")),le=(Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ce.partition}}),e("../internal/operators/pluck")),fe=(Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return le.pluck}}),e("../internal/operators/publish")),pe=(Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return fe.publish}}),e("../internal/operators/publishBehavior")),de=(Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return pe.publishBehavior}}),e("../internal/operators/publishLast")),he=(Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return de.publishLast}}),e("../internal/operators/publishReplay")),be=(Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return he.publishReplay}}),e("../internal/operators/race")),ye=(Object.defineProperty(t,"race",{enumerable:!0,get:function(){return be.race}}),e("../internal/operators/raceWith")),ve=(Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return ye.raceWith}}),e("../internal/operators/reduce")),me=(Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ve.reduce}}),e("../internal/operators/repeat")),_e=(Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return me.repeat}}),e("../internal/operators/repeatWhen")),ge=(Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return _e.repeatWhen}}),e("../internal/operators/retry")),Oe=(Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return ge.retry}}),e("../internal/operators/retryWhen")),we=(Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Oe.retryWhen}}),e("../internal/operators/refCount")),Se=(Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return we.refCount}}),e("../internal/operators/sample")),Ee=(Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Se.sample}}),e("../internal/operators/sampleTime")),Pe=(Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Ee.sampleTime}}),e("../internal/operators/scan")),je=(Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return Pe.scan}}),e("../internal/operators/sequenceEqual")),Te=(Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return je.sequenceEqual}}),e("../internal/operators/share")),Ce=(Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Te.share}}),e("../internal/operators/shareReplay")),ke=(Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ce.shareReplay}}),e("../internal/operators/single")),Ie=(Object.defineProperty(t,"single",{enumerable:!0,get:function(){return ke.single}}),e("../internal/operators/skip")),Ae=(Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ie.skip}}),e("../internal/operators/skipLast")),xe=(Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Ae.skipLast}}),e("../internal/operators/skipUntil")),Re=(Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return xe.skipUntil}}),e("../internal/operators/skipWhile")),Me=(Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Re.skipWhile}}),e("../internal/operators/startWith")),Ne=(Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Me.startWith}}),e("../internal/operators/subscribeOn")),De=(Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Ne.subscribeOn}}),e("../internal/operators/switchAll")),Ue=(Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return De.switchAll}}),e("../internal/operators/switchMap")),Le=(Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Ue.switchMap}}),e("../internal/operators/switchMapTo")),Fe=(Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Le.switchMapTo}}),e("../internal/operators/switchScan")),Be=(Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Fe.switchScan}}),e("../internal/operators/take")),We=(Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Be.take}}),e("../internal/operators/takeLast")),ze=(Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return We.takeLast}}),e("../internal/operators/takeUntil")),qe=(Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return ze.takeUntil}}),e("../internal/operators/takeWhile")),Ve=(Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return qe.takeWhile}}),e("../internal/operators/tap")),He=(Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ve.tap}}),e("../internal/operators/throttle")),Ye=(Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return He.throttle}}),e("../internal/operators/throttleTime")),Ke=(Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Ye.throttleTime}}),e("../internal/operators/throwIfEmpty")),Ge=(Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ke.throwIfEmpty}}),e("../internal/operators/timeInterval")),Ze=(Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ge.timeInterval}}),e("../internal/operators/timeout")),Qe=(Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ze.timeout}}),e("../internal/operators/timeoutWith")),Xe=(Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Qe.timeoutWith}}),e("../internal/operators/timestamp")),Je=(Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Xe.timestamp}}),e("../internal/operators/toArray")),$e=(Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Je.toArray}}),e("../internal/operators/window")),et=(Object.defineProperty(t,"window",{enumerable:!0,get:function(){return $e.window}}),e("../internal/operators/windowCount")),tt=(Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}}),e("../internal/operators/windowTime")),rt=(Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}}),e("../internal/operators/windowToggle")),nt=(Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return rt.windowToggle}}),e("../internal/operators/windowWhen")),ot=(Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return nt.windowWhen}}),e("../internal/operators/withLatestFrom")),it=(Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return ot.withLatestFrom}}),e("../internal/operators/zip")),ut=(Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return it.zip}}),e("../internal/operators/zipAll")),at=(Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return ut.zipAll}}),e("../internal/operators/zipWith"));Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return at.zipWith}})},{"../internal/operators/audit":166,"../internal/operators/auditTime":167,"../internal/operators/buffer":168,"../internal/operators/bufferCount":169,"../internal/operators/bufferTime":170,"../internal/operators/bufferToggle":171,"../internal/operators/bufferWhen":172,"../internal/operators/catchError":173,"../internal/operators/combineAll":174,"../internal/operators/combineLatest":175,"../internal/operators/combineLatestAll":176,"../internal/operators/combineLatestWith":177,"../internal/operators/concat":178,"../internal/operators/concatAll":179,"../internal/operators/concatMap":180,"../internal/operators/concatMapTo":181,"../internal/operators/concatWith":182,"../internal/operators/connect":183,"../internal/operators/count":184,"../internal/operators/debounce":185,"../internal/operators/debounceTime":186,"../internal/operators/defaultIfEmpty":187,"../internal/operators/delay":188,"../internal/operators/delayWhen":189,"../internal/operators/dematerialize":190,"../internal/operators/distinct":191,"../internal/operators/distinctUntilChanged":192,"../internal/operators/distinctUntilKeyChanged":193,"../internal/operators/elementAt":194,"../internal/operators/endWith":195,"../internal/operators/every":196,"../internal/operators/exhaust":197,"../internal/operators/exhaustAll":198,"../internal/operators/exhaustMap":199,"../internal/operators/expand":200,"../internal/operators/filter":201,"../internal/operators/finalize":202,"../internal/operators/find":203,"../internal/operators/findIndex":204,"../internal/operators/first":205,"../internal/operators/flatMap":206,"../internal/operators/groupBy":207,"../internal/operators/ignoreElements":208,"../internal/operators/isEmpty":209,"../internal/operators/last":211,"../internal/operators/map":212,"../internal/operators/mapTo":213,"../internal/operators/materialize":214,"../internal/operators/max":215,"../internal/operators/merge":216,"../internal/operators/mergeAll":217,"../internal/operators/mergeMap":219,"../internal/operators/mergeMapTo":220,"../internal/operators/mergeScan":221,"../internal/operators/mergeWith":222,"../internal/operators/min":223,"../internal/operators/multicast":224,"../internal/operators/observeOn":225,"../internal/operators/onErrorResumeNext":226,"../internal/operators/pairwise":227,"../internal/operators/partition":228,"../internal/operators/pluck":229,"../internal/operators/publish":230,"../internal/operators/publishBehavior":231,"../internal/operators/publishLast":232,"../internal/operators/publishReplay":233,"../internal/operators/race":234,"../internal/operators/raceWith":235,"../internal/operators/reduce":236,"../internal/operators/refCount":237,"../internal/operators/repeat":238,"../internal/operators/repeatWhen":239,"../internal/operators/retry":240,"../internal/operators/retryWhen":241,"../internal/operators/sample":242,"../internal/operators/sampleTime":243,"../internal/operators/scan":244,"../internal/operators/sequenceEqual":246,"../internal/operators/share":247,"../internal/operators/shareReplay":248,"../internal/operators/single":249,"../internal/operators/skip":250,"../internal/operators/skipLast":251,"../internal/operators/skipUntil":252,"../internal/operators/skipWhile":253,"../internal/operators/startWith":254,"../internal/operators/subscribeOn":255,"../internal/operators/switchAll":256,"../internal/operators/switchMap":257,"../internal/operators/switchMapTo":258,"../internal/operators/switchScan":259,"../internal/operators/take":260,"../internal/operators/takeLast":261,"../internal/operators/takeUntil":262,"../internal/operators/takeWhile":263,"../internal/operators/tap":264,"../internal/operators/throttle":265,"../internal/operators/throttleTime":266,"../internal/operators/throwIfEmpty":267,"../internal/operators/timeInterval":268,"../internal/operators/timeout":269,"../internal/operators/timeoutWith":270,"../internal/operators/timestamp":271,"../internal/operators/toArray":272,"../internal/operators/window":273,"../internal/operators/windowCount":274,"../internal/operators/windowTime":275,"../internal/operators/windowToggle":276,"../internal/operators/windowWhen":277,"../internal/operators/withLatestFrom":278,"../internal/operators/zip":279,"../internal/operators/zipAll":280,"../internal/operators/zipWith":281}],346:[function(e,t,r){var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function u(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=u),u.prototype=Object.create(o.prototype),i(o,u),u.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},u.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");e=o(e);return void 0!==t?"string"==typeof r?e.fill(t,r):e.fill(t):e.fill(0),e},u.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},u.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:116}],347:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"==typeof t||n.isEncoding!==o&&o(e))return t||e;throw new Error("Unknown encoding: "+e)}function u(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<n.length?128!=(192&n[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<n.length&&128!=(192&n[2])?(t.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1);t=e.toString("utf16le",t);if(t){var r=t.charCodeAt(t.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}function l(e){var t,e=e&&e.length?this.write(e):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function f(e,t){var r=(e.length-t)%3;return 0==r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}(r.StringDecoder=u).prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},u.prototype.end=function(e){e=e&&e.length?this.write(e):"";return this.lastNeed?e+"�":e},u.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=a(t[n]);if(0<=o)return 0<o&&(e.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if(0<=(o=a(t[n])))return 0<o&&(e.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if(0<=(o=a(t[n])))return 0<o&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;r=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},u.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":346}],348:[function(s,e,c){!function(r,a){!function(){var n=s("process/browser.js").nextTick,e=Function.prototype.apply,o=Array.prototype.slice,i={},u=0;function t(e,t){this._id=e,this._clearFn=t}c.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(e){e.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},c.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},c._unrefActive=c.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},c.setImmediate="function"==typeof r?r:function(e){var t=u++,r=!(arguments.length<2)&&o.call(arguments,1);return i[t]=!0,n(function(){i[t]&&(r?e.apply(null,r):e.call(null),c.clearImmediate(t))}),t},c.clearImmediate="function"==typeof a?a:function(e){delete i[e]}}.call(this)}.call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":118,timers:348}],349:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.WRITE=r.READ=r.Driver=void 0,n(e("@babel/runtime/helpers/classCallCheck"))),i=n(e("@babel/runtime/helpers/createClass")),u=n(e("@babel/runtime/helpers/inherits")),a=n(e("@babel/runtime/helpers/possibleConstructorReturn")),s=n(e("@babel/runtime/helpers/getPrototypeOf")),c=e("neo4j-driver-core"),l=n(e("./session-rx"));function f(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=(0,s.default)(r);return e=n?(e=(0,s.default)(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),(0,a.default)(this,e)}}var p=c.internal.constants.FETCH_ALL,n=c.driver.READ,d=c.driver.WRITE,e=(r.WRITE=d,r.READ=n,function(e){(0,u.default)(r,e);var t=f(r);function r(){return(0,o.default)(this,r),t.apply(this,arguments)}return(0,i.default)(r,[{key:"rxSession",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultAccessMode,r=e.bookmarks,n=e.database,o=e.fetchSize,i=e.impersonatedUser,e=e.bookmarkManager;return new l.default({session:this._newSession({defaultAccessMode:void 0===t?d:t,bookmarkOrBookmarks:r,database:void 0===n?"":n,impersonatedUser:i,reactive:!1,fetchSize:function(e,t){e=parseInt(e,10);{if(0<e||e===p)return e;if(0===e||e<0)throw new Error("The fetch size can only be a positive value or ".concat(p," for ALL. However fetchSize = ").concat(e));return t}}(o,this._config.fetchSize),bookmarkManager:e}),config:this._config})}}]),r}(c.Driver));r.Driver=e,r.default=e},{"./session-rx":353,"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/getPrototypeOf":108,"@babel/runtime/helpers/inherits":109,"@babel/runtime/helpers/interopRequireDefault":110,"@babel/runtime/helpers/possibleConstructorReturn":111,"neo4j-driver-core":75}],350:[function(T,e,C){!function(j){!function(){"use strict";var e=T("@babel/runtime/helpers/interopRequireDefault"),o=(Object.defineProperty(C,"__esModule",{value:!0}),Object.defineProperty(C,"Date",{enumerable:!0,get:function(){return n.Date}}),Object.defineProperty(C,"DateTime",{enumerable:!0,get:function(){return n.DateTime}}),Object.defineProperty(C,"Driver",{enumerable:!0,get:function(){return c.Driver}}),Object.defineProperty(C,"Duration",{enumerable:!0,get:function(){return n.Duration}}),Object.defineProperty(C,"Integer",{enumerable:!0,get:function(){return n.Integer}}),Object.defineProperty(C,"LocalDateTime",{enumerable:!0,get:function(){return n.LocalDateTime}}),Object.defineProperty(C,"LocalTime",{enumerable:!0,get:function(){return n.LocalTime}}),Object.defineProperty(C,"ManagedTransaction",{enumerable:!0,get:function(){return n.ManagedTransaction}}),Object.defineProperty(C,"Neo4jError",{enumerable:!0,get:function(){return n.Neo4jError}}),Object.defineProperty(C,"Node",{enumerable:!0,get:function(){return n.Node}}),Object.defineProperty(C,"Notification",{enumerable:!0,get:function(){return n.Notification}}),Object.defineProperty(C,"Path",{enumerable:!0,get:function(){return n.Path}}),Object.defineProperty(C,"PathSegment",{enumerable:!0,get:function(){return n.PathSegment}}),Object.defineProperty(C,"Plan",{enumerable:!0,get:function(){return n.Plan}}),Object.defineProperty(C,"Point",{enumerable:!0,get:function(){return n.Point}}),Object.defineProperty(C,"ProfiledPlan",{enumerable:!0,get:function(){return n.ProfiledPlan}}),Object.defineProperty(C,"QueryStatistics",{enumerable:!0,get:function(){return n.QueryStatistics}}),Object.defineProperty(C,"Record",{enumerable:!0,get:function(){return n.Record}}),Object.defineProperty(C,"Relationship",{enumerable:!0,get:function(){return n.Relationship}}),Object.defineProperty(C,"Result",{enumerable:!0,get:function(){return n.Result}}),Object.defineProperty(C,"ResultSummary",{enumerable:!0,get:function(){return n.ResultSummary}}),Object.defineProperty(C,"RxManagedTransaction",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(C,"RxResult",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(C,"RxSession",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(C,"RxTransaction",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(C,"ServerInfo",{enumerable:!0,get:function(){return n.ServerInfo}}),Object.defineProperty(C,"Session",{enumerable:!0,get:function(){return n.Session}}),Object.defineProperty(C,"Time",{enumerable:!0,get:function(){return n.Time}}),Object.defineProperty(C,"Transaction",{enumerable:!0,get:function(){return n.Transaction}}),Object.defineProperty(C,"UnboundRelationship",{enumerable:!0,get:function(){return n.UnboundRelationship}}),Object.defineProperty(C,"auth",{enumerable:!0,get:function(){return n.auth}}),Object.defineProperty(C,"bookmarkManager",{enumerable:!0,get:function(){return n.bookmarkManager}}),C.default=void 0,C.driver=y,Object.defineProperty(C,"error",{enumerable:!0,get:function(){return n.error}}),C.hasReachableServer=v,Object.defineProperty(C,"int",{enumerable:!0,get:function(){return n.int}}),C.integer=void 0,Object.defineProperty(C,"isDate",{enumerable:!0,get:function(){return n.isDate}}),Object.defineProperty(C,"isDateTime",{enumerable:!0,get:function(){return n.isDateTime}}),Object.defineProperty(C,"isDuration",{enumerable:!0,get:function(){return n.isDuration}}),Object.defineProperty(C,"isInt",{enumerable:!0,get:function(){return n.isInt}}),Object.defineProperty(C,"isLocalDateTime",{enumerable:!0,get:function(){return n.isLocalDateTime}}),Object.defineProperty(C,"isLocalTime",{enumerable:!0,get:function(){return n.isLocalTime}}),Object.defineProperty(C,"isPoint",{enumerable:!0,get:function(){return n.isPoint}}),Object.defineProperty(C,"isRetryableError",{enumerable:!0,get:function(){return n.isRetryableError}}),Object.defineProperty(C,"isTime",{enumerable:!0,get:function(){return n.isTime}}),C.types=C.temporal=C.spatial=C.session=C.logging=void 0,e(T("@babel/runtime/regenerator"))),t=e(T("@babel/runtime/helpers/asyncToGenerator")),c=T("./driver"),r=e(T("./version")),n=T("neo4j-driver-core"),l=T("neo4j-driver-bolt-connection"),i=e(T("./session-rx")),u=e(T("./transaction-rx")),a=e(T("./transaction-managed-rx")),s=e(T("./result-rx")),e=n.internal.util,f=e.ENCRYPTION_ON,p=e.assertString,d=e.isEmptyObjectOrNull,h=n.internal.serverAddress.ServerAddress,b=n.internal.urlUtil;function y(e,o){var t,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=(p(e,"Bolt URL"),b.parseDatabaseUrl(e)),n=!1,u=!1;switch(i.scheme){case"bolt":break;case"bolt+s":u=!0,t="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES";break;case"bolt+ssc":u=!0,t="TRUST_ALL_CERTIFICATES";break;case"neo4j":n=!0;break;case"neo4j+s":t="TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",n=u=!0;break;case"neo4j+ssc":t="TRUST_ALL_CERTIFICATES",n=u=!0;break;default:throw new Error("Unknown scheme: ".concat(i.scheme))}if(u){if("encrypted"in r||"trust"in r)throw new Error("Encryption/trust can only be configured either through URL or config, not both");r.encrypted=f,r.trust=t}(o=o||{}).scheme=o.scheme||"none",r.userAgent=r.userAgent||g;var a=h.fromUrl(i.hostAndPort),s={address:a,typename:n?"Routing":"Direct",routing:n};return new c.Driver(s,r,function(){{if(n)return function(e,t,r,n){return new l.RoutingConnectionProvider({id:e,config:t,log:r,hostNameResolver:n,authToken:o,address:a,userAgent:t.userAgent,routingContext:i.query})};if(d(i.query))return function(e,t,r){return new l.DirectConnectionProvider({id:e,config:t,log:r,authToken:o,address:a,userAgent:t.userAgent})};throw new Error("Parameters are not supported with none routed scheme. Given URL: '".concat(e,"'"))}}())}function v(e,t){return m.apply(this,arguments)}function m(){return(m=(0,t.default)(o.default.mark(function e(t,r){var n;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=y(t,{scheme:"none",principal:"",credentials:""},r),e.prev=1,e.next=4,n.getNegotiatedProtocolVersion();case 4:return e.abrupt("return",!0);case 5:return e.prev=5,e.next=8,n.close();case 8:return e.finish(5);case 9:case"end":return e.stop()}},e,null,[[1,,5,9]])}))).apply(this,arguments)}var _,g="neo4j-javascript/"+r.default,e={console:(_=function(e){return{level:e,logger:function(e,t){return console.log("".concat(j.Date.now()," ").concat(e.toUpperCase()," ").concat(t))}}},O.toString=function(){return _.toString()},O)};function O(e){return _.apply(this,arguments)}C.logging=e;var r={Node:n.Node,Relationship:n.Relationship,UnboundRelationship:n.UnboundRelationship,PathSegment:n.PathSegment,Path:n.Path,Result:n.Result,ResultSummary:n.ResultSummary,Record:n.Record,Point:n.Point,Date:n.Date,DateTime:n.DateTime,Duration:n.Duration,LocalDateTime:n.LocalDateTime,LocalTime:n.LocalTime,Time:n.Time,Integer:n.Integer},w=(C.types=r,{READ:c.READ,WRITE:c.WRITE}),S=(C.session=w,{toNumber:n.toNumber,toString:n.toString,inSafeRange:n.inSafeRange}),E=(C.integer=S,{isPoint:n.isPoint}),P=(C.spatial=E,{isDuration:n.isDuration,isLocalTime:n.isLocalTime,isTime:n.isTime,isDate:n.isDate,isLocalDateTime:n.isLocalDateTime,isDateTime:n.isDateTime}),S=(C.temporal=P,{driver:y,hasReachableServer:v,int:n.int,isInt:n.isInt,isPoint:n.isPoint,isDuration:n.isDuration,isLocalTime:n.isLocalTime,isTime:n.isTime,isDate:n.isDate,isLocalDateTime:n.isLocalDateTime,isDateTime:n.isDateTime,integer:S,Neo4jError:n.Neo4jError,isRetryableError:n.isRetryableError,auth:n.auth,logging:e,types:r,session:w,error:n.error,spatial:E,temporal:P,Driver:c.Driver,Session:n.Session,Transaction:n.Transaction,ManagedTransaction:n.ManagedTransaction,Result:n.Result,RxSession:i.default,RxTransaction:u.default,RxManagedTransaction:a.default,RxResult:s.default,ResultSummary:n.ResultSummary,Plan:n.Plan,ProfiledPlan:n.ProfiledPlan,QueryStatistics:n.QueryStatistics,Notification:n.Notification,ServerInfo:n.ServerInfo,Record:n.Record,Node:n.Node,Relationship:n.Relationship,UnboundRelationship:n.UnboundRelationship,Path:n.Path,PathSegment:n.PathSegment,Point:n.Point,Integer:n.Integer,Duration:n.Duration,LocalTime:n.LocalTime,Time:n.Time,Date:n.Date,LocalDateTime:n.LocalDateTime,DateTime:n.DateTime,bookmarkManager:n.bookmarkManager});C.default=S}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./driver":349,"./result-rx":352,"./session-rx":353,"./transaction-managed-rx":354,"./transaction-rx":355,"./version":356,"@babel/runtime/helpers/asyncToGenerator":105,"@babel/runtime/helpers/interopRequireDefault":110,"@babel/runtime/regenerator":114,"neo4j-driver-bolt-connection":51,"neo4j-driver-core":75}],351:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),u=(Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(e("@babel/runtime/helpers/classCallCheck"))),o=n(e("@babel/runtime/helpers/createClass")),s=e("neo4j-driver-core"),c=e("rxjs"),l=e("rxjs/operators"),f=(s.internal.logger.Logger,s.error.SERVICE_UNAVAILABLE),n=function(){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.maxRetryTimeout,t=void 0===t?3e4:t,r=e.initialDelay,r=void 0===r?1e3:r,n=e.delayMultiplier,n=void 0===n?2:n,o=e.delayJitter,o=void 0===o?.2:o,e=e.logger,e=void 0===e?null:e;(0,u.default)(this,i),this._maxRetryTimeout=a(t,3e4),this._initialDelay=a(r,1e3),this._delayMultiplier=a(n,2),this._delayJitter=a(o,.2),this._logger=e}return(0,o.default)(i,[{key:"retry",value:function(e){var a=this;return e.pipe((0,l.retryWhen)(function(e){var n=[],o=Date.now(),i=1,u=a._initialDelay;return e.pipe((0,l.mergeMap)(function(e){if(!(0,s.isRetriableError)(e))return(0,c.throwError)(function(){return e});var t;if(n.push(e),2<=i&&Date.now()-o>=a._maxRetryTimeout)return(t=(0,s.newError)("Failed after retried for ".concat(i," times in ").concat(a._maxRetryTimeout," ms. Make sure that your database is online and retry again."),f)).seenErrors=n,(0,c.throwError)(function(){return t});var r=a._computeNextDelay(u);return u*=a._delayMultiplier,i++,a._logger&&a._logger.warn("Transaction failed and will be retried in ".concat(r)),(0,c.of)(1).pipe((0,l.delay)(r))}))}))}},{key:"_computeNextDelay",value:function(e){var t=e*this._delayJitter;return e-t+2*t*Math.random()}}]),i}();function a(e,t){return e||0===e?e:t}r.default=n},{"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/interopRequireDefault":110,"neo4j-driver-core":75,rxjs:120,"rxjs/operators":345}],352:[function(t,e,o){!function(h){!function(){"use strict";var e=t("@babel/runtime/helpers/interopRequireDefault"),c=(Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,e(t("@babel/runtime/regenerator"))),l=e(t("@babel/runtime/helpers/asyncToGenerator")),n=e(t("@babel/runtime/helpers/classCallCheck")),i=e(t("@babel/runtime/helpers/createClass")),u=t("neo4j-driver-core"),f=t("rxjs"),a=t("rxjs/operators"),r=0,s=1,p=2,e=function(){function o(e,t){(0,n.default)(this,o);e=e.pipe((0,a.publishReplay)(1),(0,a.refCount)());this._result=e,this._keys=e.pipe((0,a.mergeMap)(function(e){return(0,f.from)(e.keys())}),(0,a.publishReplay)(1),(0,a.refCount)()),this._records=void 0,this._controls=new d,this._summary=new f.ReplaySubject,this._state=t||r}return(0,i.default)(o,[{key:"keys",value:function(){return this._keys}},{key:"records",value:function(){var r=this,e=this._result.pipe((0,a.mergeMap)(function(t){return new f.Observable(function(e){return r._startStreaming({result:t,recordsObserver:e})})}));return e.push=function(){return r._push()},e}},{key:"consume",value:function(){var r=this;return this._result.pipe((0,a.mergeMap)(function(t){return new f.Observable(function(e){return r._startStreaming({result:t,summaryObserver:e})})}))}},{key:"pause",value:function(){this._controls.pause()}},{key:"resume",value:function(){return this._controls.resume()}},{key:"push",value:function(){return this._controls.push()}},{key:"_startStreaming",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.result,r=e.recordsObserver,r=void 0===r?null:r,e=e.summaryObserver,e=void 0===e?null:e,n=[];return e&&n.push(this._summary.subscribe(e)),this._state<s?(this._state=s,this._setupRecordsStream(t),r?n.push(this._records.subscribe(r)):t._cancel(),n.push({unsubscribe:function(){t._cancel&&t._cancel()}})):r&&r.error((0,u.newError)("Streaming has already started/consumed with a previous records or summary subscription.")),function(){n.forEach(function(e){return e.unsubscribe()})}}},{key:"_toObservable",value:function(){var n=this;return new f.Observable(function(r){n._result.subscribe({complete:function(){return r.complete()},next:function(e){return r.next(new o((t=e,new f.Observable(function(e){e.next(t),e.complete()}))),n._state);var t},error:function(e){return r.error(e)}})})}},{key:"_setupRecordsStream",value:function(t){var e,r=this;return this._records||(this._records=function(o,i){var u=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new d,a=new f.Subject,s=function(){var t=(0,l.default)(c.default.mark(function e(t){var r,n;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u.pushing=!0,e.next=4,t;case 4:n=e.sent,r=n.done,n=n.value,r?(a.complete(),i.complete()):(a.next(n),u.paused||h((0,l.default)(c.default.mark(function e(){return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(o.next());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)})))),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),a.error(e.t0),i.error(e.t0);case 14:return e.prev=14,u.pushing=!1,e.finish(14);case 17:case"end":return e.stop()}},e,null,[[0,10,14,17]])}));return function(e){return t.apply(this,arguments)}}();function e(e){return t.apply(this,arguments)}function t(){return(t=(0,l.default)(c.default.mark(function e(t){return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(o.next(t));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}return(u.pusher=e)(),a}(t[Symbol.asyncIterator](),{complete:(e=(0,l.default)(c.default.mark(function e(){return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r._state=p,e.t0=r._summary,e.next=4,t.summary();case 4:e.t1=e.sent,e.t0.next.call(e.t0,e.t1),r._summary.complete();case 7:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),error:function(e){r._state=p,r._summary.error(e)}},this._controls),this._records)}}]),o}();o.default=e;var d=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:(0,l.default)(c.default.mark(function e(){return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e)}));(0,n.default)(this,t),this._paused=!1,this._pushing=!1,this._push=e}var e,r;return(0,i.default)(t,[{key:"pause",value:function(){this._paused=!0}},{key:"paused",get:function(){return this._paused}},{key:"pushing",get:function(){return this._pushing},set:function(e){this._pushing=e}},{key:"resume",value:(r=(0,l.default)(c.default.mark(function e(){var t;return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._paused,this._paused=!1,t&&!this._pushing)return e.next=5,this._push();e.next=5;break;case 5:case"end":return e.stop()}},e,this)})),function(){return r.apply(this,arguments)})},{key:"push",value:(e=(0,l.default)(c.default.mark(function e(){return c.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.pause(),e.next=3,this._push();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"pusher",get:function(){return this._push},set:function(e){this._push=e}}]),t}()}.call(this)}.call(this,t("timers").setImmediate)},{"@babel/runtime/helpers/asyncToGenerator":105,"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/interopRequireDefault":110,"@babel/runtime/regenerator":114,"neo4j-driver-core":75,rxjs:120,"rxjs/operators":345,timers:348}],353:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(e("@babel/runtime/helpers/classCallCheck"))),i=n(e("@babel/runtime/helpers/createClass")),u=e("rxjs"),a=e("rxjs/operators"),s=n(e("./result-rx")),c=e("neo4j-driver-core"),l=n(e("./transaction-rx")),f=n(e("./transaction-managed-rx")),p=n(e("./internal/retry-logic-rx")),n=c.internal.constants,d=n.ACCESS_MODE_READ,h=n.ACCESS_MODE_WRITE,b=c.internal.txConfig.TxConfig,e=function(){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.session,e=e.config;(0,o.default)(this,r),this._session=t,this._retryLogic=function(e){e=e&&e.maxTransactionRetryTime?e.maxTransactionRetryTime:null;return new p.default({maxRetryTimeout:e})}(e)}return(0,i.default)(r,[{key:"run",value:function(e,r,n){var o=this;return new s.default(new u.Observable(function(t){try{t.next(o._session.run(e,r,n)),t.complete()}catch(e){t.error(e)}return function(){}}))}},{key:"beginTransaction",value:function(e){return this._beginTransaction(this._session._mode,e)}},{key:"readTransaction",value:function(e,t){return this._runTransaction(d,e,t)}},{key:"writeTransaction",value:function(e,t){return this._runTransaction(h,e,t)}},{key:"executeRead",value:function(e,t){return this._executeInTransaction(d,e,t)}},{key:"executeWrite",value:function(e,t){return this._executeInTransaction(h,e,t)}},{key:"_executeInTransaction",value:function(e,t,r){return this._runTransaction(e,t,r,function(e){return new f.default({run:e.run.bind(e)})})}},{key:"close",value:function(){var e=this;return new u.Observable(function(t){e._session.close().then(function(){t.complete()}).catch(function(e){return t.error(e)})})}},{key:"lastBookmark",value:function(){return this.lastBookmarks()}},{key:"lastBookmarks",value:function(){return this._session.lastBookmarks()}},{key:"_beginTransaction",value:function(e,t){var r=this,n=b.empty();return t&&(n=new b(t)),new u.Observable(function(t){try{r._session._beginTransaction(e,n).then(function(e){t.next(new l.default(e)),t.complete()}).catch(function(e){return t.error(e)})}catch(e){t.error(e)}return function(){}})}},{key:"_runTransaction",value:function(e,r,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(e){return e},o=b.empty();return t&&(o=new b(t)),this._retryLogic.retry(this._beginTransaction(e,o).pipe((0,a.mergeMap)(function(t){return(0,u.defer)(function(){try{return r(n(t))}catch(e){return(0,u.throwError)(function(){return e})}}).pipe((0,a.catchError)(function(e){return t.rollback().pipe((0,a.concatWith)((0,u.throwError)(function(){return e})))}),(0,a.concatWith)(t.commit()))})))}}]),r}();r.default=e},{"./internal/retry-logic-rx":351,"./result-rx":352,"./transaction-managed-rx":354,"./transaction-rx":355,"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/interopRequireDefault":110,"neo4j-driver-core":75,rxjs:120,"rxjs/operators":345}],354:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(e("@babel/runtime/helpers/classCallCheck"))),i=n(e("@babel/runtime/helpers/createClass"));n(e("./result-rx")),n(e("./transaction-rx"));r.default=function(){function t(e){e=e.run;(0,o.default)(this,t),this._run=e}return(0,i.default)(t,[{key:"run",value:function(e,t){return this._run(e,t)}}],[{key:"fromTransaction",value:function(e){return new t({run:e.run.bind(e)})}}]),t}()},{"./result-rx":352,"./transaction-rx":355,"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/interopRequireDefault":110}],355:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),o=(Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,n(e("@babel/runtime/helpers/classCallCheck"))),i=n(e("@babel/runtime/helpers/createClass")),u=e("rxjs"),a=n(e("./result-rx")),n=(n(e("neo4j-driver-core")),function(){function t(e){(0,o.default)(this,t),this._txc=e}return(0,i.default)(t,[{key:"run",value:function(e,r){var n=this;return new a.default(new u.Observable(function(t){try{t.next(n._txc.run(e,r)),t.complete()}catch(e){t.error(e)}return function(){}}))}},{key:"commit",value:function(){var e=this;return new u.Observable(function(t){e._txc.commit().then(function(){t.complete()}).catch(function(e){return t.error(e)})})}},{key:"rollback",value:function(){var e=this;return new u.Observable(function(t){e._txc.rollback().then(function(){t.complete()}).catch(function(e){return t.error(e)})})}},{key:"isOpen",value:function(){return this._txc.isOpen()}},{key:"close",value:function(){var e=this;return new u.Observable(function(t){e._txc.close().then(function(){t.complete()}).catch(function(e){return t.error(e)})})}}]),t}());r.default=n},{"./result-rx":352,"@babel/runtime/helpers/classCallCheck":106,"@babel/runtime/helpers/createClass":107,"@babel/runtime/helpers/interopRequireDefault":110,"neo4j-driver-core":75,rxjs:120}],356:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default="5.0.0-beta01"},{}]},{},[350])(350)});