chatkitty
Version:
A powerful tool for integrating chat features into your web applications.
3 lines • 262 kB
JavaScript
"use strict";var $p=Object.create;var Zt=Object.defineProperty,zp=Object.defineProperties,Gp=Object.getOwnPropertyDescriptor,Jp=Object.getOwnPropertyDescriptors,Yp=Object.getOwnPropertyNames,su=Object.getOwnPropertySymbols,Qp=Object.getPrototypeOf,au=Object.prototype.hasOwnProperty,Zp=Object.prototype.propertyIsEnumerable;var Ks=(n,e,t)=>e in n?Zt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ne=(n,e)=>{for(var t in e||(e={}))au.call(e,t)&&Ks(n,t,e[t]);if(su)for(var t of su(e))Zp.call(e,t)&&Ks(n,t,e[t]);return n},Oe=(n,e)=>zp(n,Jp(e));var b=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),ed=(n,e)=>{for(var t in e)Zt(n,t,{get:e[t],enumerable:!0})},uu=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Yp(e))!au.call(n,i)&&i!==t&&Zt(n,i,{get:()=>e[i],enumerable:!(r=Gp(e,i))||r.enumerable});return n};var ft=(n,e,t)=>(t=n!=null?$p(Qp(n)):{},uu(e||!n||!n.__esModule?Zt(t,"default",{value:n,enumerable:!0}):t,n)),td=n=>uu(Zt({},"__esModule",{value:!0}),n);var D=(n,e,t)=>(Ks(n,typeof e!="symbol"?e+"":e,t),t);var Q=(n,e,t)=>new Promise((r,i)=>{var o=c=>{try{a(t.next(c))}catch(u){i(u)}},s=c=>{try{a(t.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((t=t.apply(n,e)).next())});var $=b(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.isFunction=void 0;function rd(n){return typeof n=="function"}_r.isFunction=rd});var Ee=b(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createErrorClass=void 0;function nd(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Sr.createErrorClass=nd});var Ds=b(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.UnsubscriptionError=void 0;var id=Ee();wr.UnsubscriptionError=id.createErrorClass(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}})});var Se=b(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.arrRemove=void 0;function od(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}Rr.arrRemove=od});var ae=b(ie=>{"use strict";var cu=ie&&ie.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lu=ie&&ie.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},fu=ie&&ie.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ie,"__esModule",{value:!0});ie.isSubscription=ie.EMPTY_SUBSCRIPTION=ie.Subscription=void 0;var er=$(),Ws=Ds(),pu=Se(),Bs=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=cu(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(_){e={error:_}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(er.isFunction(l))try{l()}catch(_){o=_ instanceof Ws.UnsubscriptionError?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=cu(f),h=d.next();!h.done;h=d.next()){var v=h.value;try{du(v)}catch(_){o=o!=null?o:[],_ instanceof Ws.UnsubscriptionError?o=fu(fu([],lu(o)),lu(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new Ws.UnsubscriptionError(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)du(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&pu.arrRemove(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&pu.arrRemove(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}();ie.Subscription=Bs;ie.EMPTY_SUBSCRIPTION=Bs.EMPTY;function sd(n){return n instanceof Bs||n&&"closed"in n&&er.isFunction(n.remove)&&er.isFunction(n.add)&&er.isFunction(n.unsubscribe)}ie.isSubscription=sd;function du(n){er.isFunction(n)?n():n.unsubscribe()}});var pt=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.config=void 0;Cr.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Vs=b(ve=>{"use strict";var hu=ve&&ve.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},vu=ve&&ve.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ve,"__esModule",{value:!0});ve.timeoutProvider=void 0;ve.timeoutProvider={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=ve.timeoutProvider.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,vu([n,e],hu(t))):setTimeout.apply(void 0,vu([n,e],hu(t)))},clearTimeout:function(n){var e=ve.timeoutProvider.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0}});var Hs=b(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.reportUnhandledError=void 0;var ad=pt(),ud=Vs();function cd(n){ud.timeoutProvider.setTimeout(function(){var e=ad.config.onUnhandledError;if(e)e(n);else throw n})}xr.reportUnhandledError=cd});var Z=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.noop=void 0;function ld(){}Or.noop=ld});var mu=b(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.createNotification=me.nextNotification=me.errorNotification=me.COMPLETE_NOTIFICATION=void 0;me.COMPLETE_NOTIFICATION=function(){return Er("C",void 0,void 0)}();function fd(n){return Er("E",void 0,n)}me.errorNotification=fd;function pd(n){return Er("N",n,void 0)}me.nextNotification=pd;function Er(n,e,t){return{kind:n,value:e,error:t}}me.createNotification=Er});var Mr=b(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.captureError=dt.errorContext=void 0;var yu=pt(),Ye=null;function dd(n){if(yu.config.useDeprecatedSynchronousErrorHandling){var e=!Ye;if(e&&(Ye={errorThrown:!1,error:null}),n(),e){var t=Ye,r=t.errorThrown,i=t.error;if(Ye=null,r)throw i}}else n()}dt.errorContext=dd;function hd(n){yu.config.useDeprecatedSynchronousErrorHandling&&Ye&&(Ye.errorThrown=!0,Ye.error=n)}dt.captureError=hd});var ht=b(fe=>{"use strict";var _u=fe&&fe.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.EMPTY_OBSERVER=fe.SafeSubscriber=fe.Subscriber=void 0;var vd=$(),bu=ae(),Js=pt(),md=Hs(),gu=Z(),$s=mu(),yd=Vs(),bd=Mr(),Su=function(n){_u(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,bu.isSubscription(t)&&t.add(r)):r.destination=fe.EMPTY_OBSERVER,r}return e.create=function(t,r,i){return new wu(t,r,i)},e.prototype.next=function(t){this.isStopped?Gs($s.nextNotification(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?Gs($s.errorNotification(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?Gs($s.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(bu.Subscription);fe.Subscriber=Su;var gd=Function.prototype.bind;function zs(n,e){return gd.call(n,e)}var _d=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){Pr(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){Pr(r)}else Pr(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Pr(t)}},n}(),wu=function(n){_u(e,n);function e(t,r,i){var o=n.call(this)||this,s;if(vd.isFunction(t)||!t)s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var a;o&&Js.config.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&zs(t.next,a),error:t.error&&zs(t.error,a),complete:t.complete&&zs(t.complete,a)}):s=t}return o.destination=new _d(s),o}return e}(Su);fe.SafeSubscriber=wu;function Pr(n){Js.config.useDeprecatedSynchronousErrorHandling?bd.captureError(n):md.reportUnhandledError(n)}function Sd(n){throw n}function Gs(n,e){var t=Js.config.onStoppedNotification;t&&yd.timeoutProvider.setTimeout(function(){return t(n,e)})}fe.EMPTY_OBSERVER={closed:!0,next:gu.noop,error:Sd,complete:gu.noop}});var tr=b(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.observable=void 0;jr.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var ee=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.identity=void 0;function wd(n){return n}Tr.identity=wd});var rr=b(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.pipeFromArray=vt.pipe=void 0;var Rd=ee();function Cd(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Ru(n)}vt.pipe=Cd;function Ru(n){return n.length===0?Rd.identity:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}vt.pipeFromArray=Ru});var z=b(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.Observable=void 0;var Qs=ht(),xd=ae(),Od=tr(),Ed=rr(),Md=pt(),Ys=$(),Pd=Mr(),jd=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=qd(e)?e:new Qs.SafeSubscriber(e,t,r);return Pd.errorContext(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=Cu(t),new t(function(i,o){var s=new Qs.SafeSubscriber({next:function(a){try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[Od.observable]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ed.pipeFromArray(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=Cu(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();qr.Observable=jd;function Cu(n){var e;return(e=n!=null?n:Md.config.Promise)!==null&&e!==void 0?e:Promise}function Td(n){return n&&Ys.isFunction(n.next)&&Ys.isFunction(n.error)&&Ys.isFunction(n.complete)}function qd(n){return n&&n instanceof Qs.Subscriber||Td(n)&&xd.isSubscription(n)}});var U=b(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.operate=mt.hasLift=void 0;var Ud=$();function xu(n){return Ud.isFunction(n==null?void 0:n.lift)}mt.hasLift=xu;function Ad(n){return function(e){if(xu(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}mt.operate=Ad});var k=b(Me=>{"use strict";var Fd=Me&&Me.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Me,"__esModule",{value:!0});Me.OperatorSubscriber=Me.createOperatorSubscriber=void 0;var Id=ht();function kd(n,e,t,r,i){return new Ou(n,e,t,r,i)}Me.createOperatorSubscriber=kd;var Ou=function(n){Fd(e,n);function e(t,r,i,o,s,a){var c=n.call(this,t)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(u){try{r(u)}catch(l){t.error(l)}}:n.prototype._next,c._error=o?function(u){try{o(u)}catch(l){t.error(l)}finally{this.unsubscribe()}}:n.prototype._error,c._complete=i?function(){try{i()}catch(u){t.error(u)}finally{this.unsubscribe()}}:n.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Id.Subscriber);Me.OperatorSubscriber=Ou});var Zs=b(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.refCount=void 0;var Ld=U(),Nd=k();function Xd(){return Ld.operate(function(n,e){var t=null;n._refCount++;var r=Nd.createOperatorSubscriber(e,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){t=null;return}var i=n._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}Ur.refCount=Xd});var nr=b(yt=>{"use strict";var Kd=yt&&yt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(yt,"__esModule",{value:!0});yt.ConnectableObservable=void 0;var Dd=z(),Eu=ae(),Wd=Zs(),Bd=k(),Vd=U(),Hd=function(n){Kd(e,n);function e(t,r){var i=n.call(this)||this;return i.source=t,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,Vd.hasLift(t)&&(i.lift=t.lift),i}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,t==null||t.unsubscribe()},e.prototype.connect=function(){var t=this,r=this._connection;if(!r){r=this._connection=new Eu.Subscription;var i=this.getSubject();r.add(this.source.subscribe(Bd.createOperatorSubscriber(i,void 0,function(){t._teardown(),i.complete()},function(o){t._teardown(),i.error(o)},function(){return t._teardown()}))),r.closed&&(this._connection=null,r=Eu.Subscription.EMPTY)}return r},e.prototype.refCount=function(){return Wd.refCount()(this)},e}(Dd.Observable);yt.ConnectableObservable=Hd});var Mu=b(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.performanceTimestampProvider=void 0;ir.performanceTimestampProvider={now:function(){return(ir.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var ea=b(pe=>{"use strict";var Pu=pe&&pe.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},ju=pe&&pe.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(pe,"__esModule",{value:!0});pe.animationFrameProvider=void 0;var $d=ae();pe.animationFrameProvider={schedule:function(n){var e=requestAnimationFrame,t=cancelAnimationFrame,r=pe.animationFrameProvider.delegate;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);var i=e(function(o){t=void 0,n(o)});return new $d.Subscription(function(){return t==null?void 0:t(i)})},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=pe.animationFrameProvider.delegate;return((t==null?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,ju([],Pu(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=pe.animationFrameProvider.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,ju([],Pu(n)))},delegate:void 0}});var Uu=b(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.animationFrames=void 0;var zd=z(),Gd=Mu(),Tu=ea();function Jd(n){return n?qu(n):Yd}Ar.animationFrames=Jd;function qu(n){return new zd.Observable(function(e){var t=n||Gd.performanceTimestampProvider,r=t.now(),i=0,o=function(){e.closed||(i=Tu.animationFrameProvider.requestAnimationFrame(function(s){i=0;var a=t.now();e.next({timestamp:n?a:s,elapsed:a-r}),o()}))};return o(),function(){i&&Tu.animationFrameProvider.cancelAnimationFrame(i)}})}var Yd=qu()});var ta=b(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.ObjectUnsubscribedError=void 0;var Qd=Ee();Fr.ObjectUnsubscribedError=Qd.createErrorClass(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var te=b(ye=>{"use strict";var Fu=ye&&ye.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Zd=ye&&ye.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ye,"__esModule",{value:!0});ye.AnonymousSubject=ye.Subject=void 0;var Au=z(),na=ae(),eh=ta(),th=Se(),ra=Mr(),Iu=function(n){Fu(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new ia(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new eh.ObjectUnsubscribedError},e.prototype.next=function(t){var r=this;ra.errorContext(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Zd(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;ra.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;ra.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?na.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(t),new na.Subscription(function(){r.currentObservers=null,th.arrRemove(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new Au.Observable;return t.source=this,t},e.create=function(t,r){return new ia(t,r)},e}(Au.Observable);ye.Subject=Iu;var ia=function(n){Fu(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:na.EMPTY_SUBSCRIPTION},e}(Iu);ye.AnonymousSubject=ia});var oa=b(bt=>{"use strict";var rh=bt&&bt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(bt,"__esModule",{value:!0});bt.BehaviorSubject=void 0;var nh=te(),ih=function(n){rh(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,i=t.thrownError,o=t._value;if(r)throw i;return this._throwIfClosed(),o},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(nh.Subject);bt.BehaviorSubject=ih});var Ir=b(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.dateTimestampProvider=void 0;or.dateTimestampProvider={now:function(){return(or.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var kr=b(gt=>{"use strict";var oh=gt&>.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(gt,"__esModule",{value:!0});gt.ReplaySubject=void 0;var sh=te(),ah=Ir(),uh=function(n){oh(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=ah.dateTimestampProvider);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+c)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),c=0;c<a.length&&!t.closed;c+=o?1:2)t.next(a[c]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var c=i.now(),u=0,l=1;l<o.length&&o[l]<=c;l+=2)u=l;u&&o.splice(0,u+1)}},e}(sh.Subject);gt.ReplaySubject=uh});var Lr=b(_t=>{"use strict";var ch=_t&&_t.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(_t,"__esModule",{value:!0});_t.AsyncSubject=void 0;var lh=te(),fh=function(n){ch(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r._hasValue,s=r._value,a=r.thrownError,c=r.isStopped,u=r._isComplete;i?t.error(a):(c||u)&&(o&&t.next(s),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var t=this,r=t._hasValue,i=t._value,o=t._isComplete;o||(this._isComplete=!0,r&&n.prototype.next.call(this,i),n.prototype.complete.call(this))},e}(lh.Subject);_t.AsyncSubject=fh});var ku=b(St=>{"use strict";var ph=St&&St.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(St,"__esModule",{value:!0});St.Action=void 0;var dh=ae(),hh=function(n){ph(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return r===void 0&&(r=0),this},e}(dh.Subscription);St.Action=hh});var Xu=b(be=>{"use strict";var Lu=be&&be.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},Nu=be&&be.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(be,"__esModule",{value:!0});be.intervalProvider=void 0;be.intervalProvider={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=be.intervalProvider.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Nu([n,e],Lu(t))):setInterval.apply(void 0,Nu([n,e],Lu(t)))},clearInterval:function(n){var e=be.intervalProvider.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0}});var Rt=b(wt=>{"use strict";var vh=wt&&wt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(wt,"__esModule",{value:!0});wt.AsyncAction=void 0;var mh=ku(),Ku=Xu(),yh=Se(),bh=function(n){vh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(t,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),Ku.intervalProvider.setInterval(t.flush.bind(t,this),i)},e.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Ku.intervalProvider.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,yh.arrRemove(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(mh.Action);wt.AsyncAction=bh});var Wu=b(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.TestTools=Ct.Immediate=void 0;var gh=1,sa,Nr={};function Du(n){return n in Nr?(delete Nr[n],!0):!1}Ct.Immediate={setImmediate:function(n){var e=gh++;return Nr[e]=!0,sa||(sa=Promise.resolve()),sa.then(function(){return Du(e)&&n()}),e},clearImmediate:function(n){Du(n)}};Ct.TestTools={pending:function(){return Object.keys(Nr).length}}});var Vu=b(ge=>{"use strict";var _h=ge&&ge.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},Sh=ge&&ge.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ge,"__esModule",{value:!0});ge.immediateProvider=void 0;var Bu=Wu(),wh=Bu.Immediate.setImmediate,Rh=Bu.Immediate.clearImmediate;ge.immediateProvider={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ge.immediateProvider.delegate;return((t==null?void 0:t.setImmediate)||wh).apply(void 0,Sh([],_h(n)))},clearImmediate:function(n){var e=ge.immediateProvider.delegate;return((e==null?void 0:e.clearImmediate)||Rh)(n)},delegate:void 0}});var $u=b(xt=>{"use strict";var Ch=xt&&xt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(xt,"__esModule",{value:!0});xt.AsapAction=void 0;var xh=Rt(),Hu=Vu(),Oh=function(n){Ch(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=Hu.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},e.prototype.recycleAsyncId=function(t,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,i);var s=t.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(Hu.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},e}(xh.AsyncAction);xt.AsapAction=Oh});var aa=b(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Scheduler=void 0;var Eh=Ir(),Mh=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=Eh.dateTimestampProvider.now,n}();Xr.Scheduler=Mh});var Et=b(Ot=>{"use strict";var Ph=Ot&&Ot.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.AsyncScheduler=void 0;var zu=aa(),jh=function(n){Ph(e,n);function e(t,r){r===void 0&&(r=zu.Scheduler.now);var i=n.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},e}(zu.Scheduler);Ot.AsyncScheduler=jh});var Gu=b(Mt=>{"use strict";var Th=Mt&&Mt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.AsapScheduler=void 0;var qh=Et(),Uh=function(n){Th(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;t=t||i.shift();do if(o=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===r&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===r&&i.shift();)t.unsubscribe();throw o}},e}(qh.AsyncScheduler);Mt.AsapScheduler=Uh});var Ju=b(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.asap=Qe.asapScheduler=void 0;var Ah=$u(),Fh=Gu();Qe.asapScheduler=new Fh.AsapScheduler(Ah.AsapAction);Qe.asap=Qe.asapScheduler});var oe=b(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.async=Ze.asyncScheduler=void 0;var Ih=Rt(),kh=Et();Ze.asyncScheduler=new kh.AsyncScheduler(Ih.AsyncAction);Ze.async=Ze.asyncScheduler});var Yu=b(Pt=>{"use strict";var Lh=Pt&&Pt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.QueueAction=void 0;var Nh=Rt(),Xh=function(n){Lh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.schedule=function(t,r){return r===void 0&&(r=0),r>0?n.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,r){return r>0||this.closed?n.prototype.execute.call(this,t,r):this._execute(t,r)},e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.flush(this),0)},e}(Nh.AsyncAction);Pt.QueueAction=Xh});var Qu=b(jt=>{"use strict";var Kh=jt&&jt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(jt,"__esModule",{value:!0});jt.QueueScheduler=void 0;var Dh=Et(),Wh=function(n){Kh(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Dh.AsyncScheduler);jt.QueueScheduler=Wh});var Zu=b(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.queue=et.queueScheduler=void 0;var Bh=Yu(),Vh=Qu();et.queueScheduler=new Vh.QueueScheduler(Bh.QueueAction);et.queue=et.queueScheduler});var tc=b(Tt=>{"use strict";var Hh=Tt&&Tt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.AnimationFrameAction=void 0;var $h=Rt(),ec=ea(),zh=function(n){Hh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=ec.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)})))},e.prototype.recycleAsyncId=function(t,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,i);var s=t.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(ec.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},e}($h.AsyncAction);Tt.AnimationFrameAction=zh});var rc=b(qt=>{"use strict";var Gh=qt&&qt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(qt,"__esModule",{value:!0});qt.AnimationFrameScheduler=void 0;var Jh=Et(),Yh=function(n){Gh(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;t=t||i.shift();do if(o=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===r&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===r&&i.shift();)t.unsubscribe();throw o}},e}(Jh.AsyncScheduler);qt.AnimationFrameScheduler=Yh});var nc=b(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.animationFrame=tt.animationFrameScheduler=void 0;var Qh=tc(),Zh=rc();tt.animationFrameScheduler=new Zh.AnimationFrameScheduler(Qh.AnimationFrameAction);tt.animationFrame=tt.animationFrameScheduler});var sc=b(Pe=>{"use strict";var ic=Pe&&Pe.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.VirtualAction=Pe.VirtualTimeScheduler=void 0;var ev=Rt(),tv=ae(),rv=Et(),nv=function(n){ic(e,n);function e(t,r){t===void 0&&(t=oc),r===void 0&&(r=1/0);var i=n.call(this,t,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return e.prototype.flush=function(){for(var t=this,r=t.actions,i=t.maxFrames,o,s;(s=r[0])&&s.delay<=i&&(r.shift(),this.frame=s.delay,!(o=s.execute(s.state,s.delay))););if(o){for(;s=r.shift();)s.unsubscribe();throw o}},e.frameTimeFactor=10,e}(rv.AsyncScheduler);Pe.VirtualTimeScheduler=nv;var oc=function(n){ic(e,n);function e(t,r,i){i===void 0&&(i=t.index+=1);var o=n.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=i,o.active=!0,o.index=t.index=i,o}return e.prototype.schedule=function(t,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,t,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(t,r)}else return tv.Subscription.EMPTY},e.prototype.requestAsyncId=function(t,r,i){i===void 0&&(i=0),this.delay=t.frame+i;var o=t.actions;return o.push(this),o.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(t,r,i){i===void 0&&(i=0)},e.prototype._execute=function(t,r){if(this.active===!0)return n.prototype._execute.call(this,t,r)},e.sortActions=function(t,r){return t.delay===r.delay?t.index===r.index?0:t.index>r.index?1:-1:t.delay>r.delay?1:-1},e}(ev.AsyncAction);Pe.VirtualAction=oc});var de=b(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.empty=rt.EMPTY=void 0;var ac=z();rt.EMPTY=new ac.Observable(function(n){return n.complete()});function iv(n){return n?ov(n):rt.EMPTY}rt.empty=iv;function ov(n){return new ac.Observable(function(e){return n.schedule(function(){return e.complete()})})}});var sr=b(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.isScheduler=void 0;var sv=$();function av(n){return n&&sv.isFunction(n.schedule)}Kr.isScheduler=av});var se=b(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.popNumber=je.popScheduler=je.popResultSelector=void 0;var uv=$(),cv=sr();function ua(n){return n[n.length-1]}function lv(n){return uv.isFunction(ua(n))?n.pop():void 0}je.popResultSelector=lv;function fv(n){return cv.isScheduler(ua(n))?n.pop():void 0}je.popScheduler=fv;function pv(n,e){return typeof ua(n)=="number"?n.pop():e}je.popNumber=pv});var Wr=b(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.isArrayLike=void 0;Dr.isArrayLike=function(n){return n&&typeof n.length=="number"&&typeof n!="function"}});var ca=b(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.isPromise=void 0;var dv=$();function hv(n){return dv.isFunction(n==null?void 0:n.then)}Br.isPromise=hv});var la=b(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.isInteropObservable=void 0;var vv=tr(),mv=$();function yv(n){return mv.isFunction(n[vv.observable])}Vr.isInteropObservable=yv});var fa=b(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.isAsyncIterable=void 0;var bv=$();function gv(n){return Symbol.asyncIterator&&bv.isFunction(n==null?void 0:n[Symbol.asyncIterator])}Hr.isAsyncIterable=gv});var pa=b($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.createInvalidObservableTypeError=void 0;function _v(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}$r.createInvalidObservableTypeError=_v});var da=b(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.iterator=Ut.getSymbolIterator=void 0;function uc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Ut.getSymbolIterator=uc;Ut.iterator=uc()});var ha=b(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.isIterable=void 0;var Sv=da(),wv=$();function Rv(n){return wv.isFunction(n==null?void 0:n[Sv.iterator])}zr.isIterable=Rv});var Gr=b(ce=>{"use strict";var Cv=ce&&ce.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},At=ce&&ce.__await||function(n){return this instanceof At?(this.v=n,this):new At(n)},xv=ce&&ce.__asyncGenerator||function(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(v,_){o.push([d,h,v,_])>1||a(d,h)})})}function a(d,h){try{c(r[d](h))}catch(v){f(o[0][3],v)}}function c(d){d.value instanceof At?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}};Object.defineProperty(ce,"__esModule",{value:!0});ce.isReadableStreamLike=ce.readableStreamLikeToAsyncGenerator=void 0;var Ov=$();function Ev(n){return xv(this,arguments,function(){var t,r,i,o;return Cv(this,function(s){switch(s.label){case 0:t=n.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,At(t.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,At(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,At(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}ce.readableStreamLikeToAsyncGenerator=Ev;function Mv(n){return Ov.isFunction(n==null?void 0:n.getReader)}ce.isReadableStreamLike=Mv});var W=b(J=>{"use strict";var Pv=J&&J.__awaiter||function(n,e,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(n,e||[])).next())})},jv=J&&J.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Tv=J&&J.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof va=="function"?va(n):n[Symbol.iterator](),t={},r("next"),r("