planx 20.101.0 → 20.102.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/agent.main.mjs CHANGED
@@ -1,19 +1,23 @@
1
- globalThis.__PLANX_SERVICE_VERSION__="20.101.0";
2
- var Aq=Object.create;var Iy=Object.defineProperty;var jI=Object.getOwnPropertyDescriptor;var Tq=Object.getOwnPropertyNames;var Mq=Object.getPrototypeOf,Oq=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Pq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Tq(t))!Oq.call(e,o)&&o!==n&&Iy(e,o,{get:()=>t[o],enumerable:!(r=jI(t,o))||r.enumerable});return e};var gc=(e,t,n)=>(n=e!=null?Aq(Mq(e)):{},Pq(t||!e||!e.__esModule?Iy(n,"default",{value:e,enumerable:!0}):n,e));var Qe=(e,t,n,r)=>{for(var o=r>1?void 0:r?jI(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(r?s(t,n,o):s(o))||o);return r&&o&&Iy(t,n,o),o};var He=_(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.isFunction=void 0;function ZB(e){return typeof e=="function"}Ll.isFunction=ZB});var to=_(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.createErrorClass=void 0;function QB(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}jl.createErrorClass=QB});var Yy=_(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.UnsubscriptionError=void 0;var JB=to();Fl.UnsubscriptionError=JB.createErrorClass(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
1
+ globalThis.__PLANX_SERVICE_VERSION__="20.102.1";
2
+ var Pq=Object.create;var Ay=Object.defineProperty;var jI=Object.getOwnPropertyDescriptor;var Cq=Object.getOwnPropertyNames;var Dq=Object.getPrototypeOf,kq=Object.prototype.hasOwnProperty;var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Rq=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Cq(t))!kq.call(e,o)&&o!==n&&Ay(e,o,{get:()=>t[o],enumerable:!(r=jI(t,o))||r.enumerable});return e};var gc=(e,t,n)=>(n=e!=null?Pq(Dq(e)):{},Rq(t||!e||!e.__esModule?Ay(n,"default",{value:e,enumerable:!0}):n,e));var Qe=(e,t,n,r)=>{for(var o=r>1?void 0:r?jI(t,n):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(r?s(t,n,o):s(o))||o);return r&&o&&Ay(t,n,o),o};var He=_(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.isFunction=void 0;function n8(e){return typeof e=="function"}jl.isFunction=n8});var to=_(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.createErrorClass=void 0;function r8(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}Fl.createErrorClass=r8});var Yy=_(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.UnsubscriptionError=void 0;var o8=to();ql.UnsubscriptionError=o8.createErrorClass(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
3
3
  `+n.map(function(r,o){return o+1+") "+r.toString()}).join(`
4
- `):"",this.name="UnsubscriptionError",this.errors=n}})});var _r=_(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.arrRemove=void 0;function XB(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}ql.arrRemove=XB});var dn=_(Qt=>{"use strict";var k1=Qt&&Qt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},R1=Qt&&Qt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},N1=Qt&&Qt.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.isSubscription=Qt.EMPTY_SUBSCRIPTION=Qt.Subscription=void 0;var wc=He(),Zy=Yy(),L1=_r(),Qy=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=k1(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(wc.isFunction(l))try{l()}catch(m){i=m instanceof Zy.UnsubscriptionError?m.errors:[m]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=k1(f),p=d.next();!p.done;p=d.next()){var h=p.value;try{j1(h)}catch(m){i=i??[],m instanceof Zy.UnsubscriptionError?i=N1(N1([],R1(i)),R1(m.errors)):i.push(m)}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new Zy.UnsubscriptionError(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)j1(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&L1.arrRemove(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&L1.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();Qt.Subscription=Qy;Qt.EMPTY_SUBSCRIPTION=Qy.EMPTY;function e8(e){return e instanceof Qy||e&&"closed"in e&&wc.isFunction(e.remove)&&wc.isFunction(e.add)&&wc.isFunction(e.unsubscribe)}Qt.isSubscription=e8;function j1(e){wc.isFunction(e)?e():e.unsubscribe()}});var ls=_(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.config=void 0;Bl.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Jy=_(Yn=>{"use strict";var F1=Yn&&Yn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},q1=Yn&&Yn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.timeoutProvider=void 0;Yn.timeoutProvider={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Yn.timeoutProvider.delegate;return o?.setTimeout?o.setTimeout.apply(o,q1([e,t],F1(n))):setTimeout.apply(void 0,q1([e,t],F1(n)))},clearTimeout:function(e){var t=Yn.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});var Xy=_(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.reportUnhandledError=void 0;var t8=ls(),n8=Jy();function r8(e){n8.timeoutProvider.setTimeout(function(){var t=t8.config.onUnhandledError;if(t)t(e);else throw e})}Ul.reportUnhandledError=r8});var St=_(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.noop=void 0;function o8(){}Hl.noop=o8});var B1=_(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.createNotification=Zn.nextNotification=Zn.errorNotification=Zn.COMPLETE_NOTIFICATION=void 0;Zn.COMPLETE_NOTIFICATION=(function(){return $l("C",void 0,void 0)})();function i8(e){return $l("E",void 0,e)}Zn.errorNotification=i8;function s8(e){return $l("N",e,void 0)}Zn.nextNotification=s8;function $l(e,t,n){return{kind:e,value:t,error:n}}Zn.createNotification=$l});var Kl=_(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.captureError=fs.errorContext=void 0;var U1=ls(),ti=null;function a8(e){if(U1.config.useDeprecatedSynchronousErrorHandling){var t=!ti;if(t&&(ti={errorThrown:!1,error:null}),e(),t){var n=ti,r=n.errorThrown,o=n.error;if(ti=null,r)throw o}}else e()}fs.errorContext=a8;function c8(e){U1.config.useDeprecatedSynchronousErrorHandling&&ti&&(ti.errorThrown=!0,ti.error=e)}fs.captureError=c8});var ds=_(Dn=>{"use strict";var K1=Dn&&Dn.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EMPTY_OBSERVER=Dn.SafeSubscriber=Dn.Subscriber=void 0;var u8=He(),H1=dn(),rv=ls(),l8=Xy(),$1=St(),ev=B1(),f8=Jy(),d8=Kl(),W1=(function(e){K1(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,H1.isSubscription(n)&&n.add(r)):r.destination=Dn.EMPTY_OBSERVER,r}return t.create=function(n,r,o){return new V1(n,r,o)},t.prototype.next=function(n){this.isStopped?nv(ev.nextNotification(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?nv(ev.errorNotification(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?nv(ev.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(H1.Subscription);Dn.Subscriber=W1;var p8=Function.prototype.bind;function tv(e,t){return p8.call(e,t)}var h8=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Wl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Wl(r)}else Wl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Wl(n)}},e})(),V1=(function(e){K1(t,e);function t(n,r,o){var i=e.call(this)||this,s;if(u8.isFunction(n)||!n)s={next:n??void 0,error:r??void 0,complete:o??void 0};else{var a;i&&rv.config.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return i.unsubscribe()},s={next:n.next&&tv(n.next,a),error:n.error&&tv(n.error,a),complete:n.complete&&tv(n.complete,a)}):s=n}return i.destination=new h8(s),i}return t})(W1);Dn.SafeSubscriber=V1;function Wl(e){rv.config.useDeprecatedSynchronousErrorHandling?d8.captureError(e):l8.reportUnhandledError(e)}function g8(e){throw e}function nv(e,t){var n=rv.config.onStoppedNotification;n&&f8.timeoutProvider.setTimeout(function(){return n(e,t)})}Dn.EMPTY_OBSERVER={closed:!0,next:$1.noop,error:g8,complete:$1.noop}});var Ec=_(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.observable=void 0;Vl.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});var xt=_(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.identity=void 0;function m8(e){return e}Gl.identity=m8});var Sc=_(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.pipeFromArray=ps.pipe=void 0;var y8=xt();function v8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return G1(e)}ps.pipe=v8;function G1(e){return e.length===0?y8.identity:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}ps.pipeFromArray=G1});var Ke=_(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.Observable=void 0;var iv=ds(),b8=dn(),_8=Ec(),w8=Sc(),E8=ls(),ov=He(),S8=Kl(),x8=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=A8(t)?t:new iv.SafeSubscriber(t,n,r);return S8.errorContext(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=z1(n),new n(function(o,i){var s=new iv.SafeSubscriber({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[_8.observable]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return w8.pipeFromArray(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=z1(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e})();zl.Observable=x8;function z1(e){var t;return(t=e??E8.config.Promise)!==null&&t!==void 0?t:Promise}function I8(e){return e&&ov.isFunction(e.next)&&ov.isFunction(e.error)&&ov.isFunction(e.complete)}function A8(e){return e&&e instanceof iv.Subscriber||I8(e)&&b8.isSubscription(e)}});var W=_(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.operate=hs.hasLift=void 0;var T8=He();function Y1(e){return T8.isFunction(e?.lift)}hs.hasLift=Y1;function M8(e){return function(t){if(Y1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}hs.operate=M8});var ee=_(no=>{"use strict";var O8=no&&no.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(no,"__esModule",{value:!0});no.OperatorSubscriber=no.createOperatorSubscriber=void 0;var P8=ds();function C8(e,t,n,r,o){return new Z1(e,t,n,r,o)}no.createOperatorSubscriber=C8;var Z1=(function(e){O8(t,e);function t(n,r,o,i,s,a){var c=e.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(u){try{r(u)}catch(l){n.error(l)}}:e.prototype._next,c._error=i?function(u){try{i(u)}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(P8.Subscriber);no.OperatorSubscriber=Z1});var Zl=_(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.refCount=void 0;var D8=W(),k8=ee();function R8(){return D8.operate(function(e,t){var n=null;e._refCount++;var r=k8.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}Yl.refCount=R8});var xc=_(gs=>{"use strict";var N8=gs&&gs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(gs,"__esModule",{value:!0});gs.ConnectableObservable=void 0;var L8=Ke(),Q1=dn(),j8=Zl(),F8=ee(),q8=W(),B8=(function(e){N8(t,e);function t(n,r){var o=e.call(this)||this;return o.source=n,o.subjectFactory=r,o._subject=null,o._refCount=0,o._connection=null,q8.hasLift(n)&&(o.lift=n.lift),o}return t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,n?.unsubscribe()},t.prototype.connect=function(){var n=this,r=this._connection;if(!r){r=this._connection=new Q1.Subscription;var o=this.getSubject();r.add(this.source.subscribe(F8.createOperatorSubscriber(o,void 0,function(){n._teardown(),o.complete()},function(i){n._teardown(),o.error(i)},function(){return n._teardown()}))),r.closed&&(this._connection=null,r=Q1.Subscription.EMPTY)}return r},t.prototype.refCount=function(){return j8.refCount()(this)},t})(L8.Observable);gs.ConnectableObservable=B8});var J1=_(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.performanceTimestampProvider=void 0;Ic.performanceTimestampProvider={now:function(){return(Ic.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var sv=_(kn=>{"use strict";var X1=kn&&kn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},eA=kn&&kn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(kn,"__esModule",{value:!0});kn.animationFrameProvider=void 0;var U8=dn();kn.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=kn.animationFrameProvider.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t(function(i){n=void 0,e(i)});return new U8.Subscription(function(){return n?.(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=kn.animationFrameProvider.delegate;return(n?.requestAnimationFrame||requestAnimationFrame).apply(void 0,eA([],X1(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=kn.animationFrameProvider.delegate;return(n?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,eA([],X1(e)))},delegate:void 0}});var rA=_(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.animationFrames=void 0;var H8=Ke(),$8=J1(),tA=sv();function K8(e){return e?nA(e):W8}Ql.animationFrames=K8;function nA(e){return new H8.Observable(function(t){var n=e||$8.performanceTimestampProvider,r=n.now(),o=0,i=function(){t.closed||(o=tA.animationFrameProvider.requestAnimationFrame(function(s){o=0;var a=n.now();t.next({timestamp:e?a:s,elapsed:a-r}),i()}))};return i(),function(){o&&tA.animationFrameProvider.cancelAnimationFrame(o)}})}var W8=nA()});var av=_(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.ObjectUnsubscribedError=void 0;var V8=to();Jl.ObjectUnsubscribedError=V8.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var It=_(Qn=>{"use strict";var iA=Qn&&Qn.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),G8=Qn&&Qn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.AnonymousSubject=Qn.Subject=void 0;var oA=Ke(),uv=dn(),z8=av(),Y8=_r(),cv=Kl(),sA=(function(e){iA(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new lv(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new z8.ObjectUnsubscribedError},t.prototype.next=function(n){var r=this;cv.errorContext(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=G8(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;cv.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;cv.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?uv.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(n),new uv.Subscription(function(){r.currentObservers=null,Y8.arrRemove(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new oA.Observable;return n.source=this,n},t.create=function(n,r){return new lv(n,r)},t})(oA.Observable);Qn.Subject=sA;var lv=(function(e){iA(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:uv.EMPTY_SUBSCRIPTION},t})(sA);Qn.AnonymousSubject=lv});var fv=_(ms=>{"use strict";var Z8=ms&&ms.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ms,"__esModule",{value:!0});ms.BehaviorSubject=void 0;var Q8=It(),J8=(function(e){Z8(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t})(Q8.Subject);ms.BehaviorSubject=J8});var Xl=_(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.dateTimestampProvider=void 0;Ac.dateTimestampProvider={now:function(){return(Ac.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var ef=_(ys=>{"use strict";var X8=ys&&ys.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ys,"__esModule",{value:!0});ys.ReplaySubject=void 0;var eU=It(),tU=Xl(),nU=(function(e){X8(t,e);function t(n,r,o){n===void 0&&(n=1/0),r===void 0&&(r=1/0),o===void 0&&(o=tU.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,o=r.isStopped,i=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;o||(i.push(n),!s&&i.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),c=0;c<a.length&&!n.closed;c+=i?1:2)n.next(a[c]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,o=n._timestampProvider,i=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var c=o.now(),u=0,l=1;l<i.length&&i[l]<=c;l+=2)u=l;u&&i.splice(0,u+1)}},t})(eU.Subject);ys.ReplaySubject=nU});var tf=_(vs=>{"use strict";var rU=vs&&vs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(vs,"__esModule",{value:!0});vs.AsyncSubject=void 0;var oU=It(),iU=(function(e){rU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r._hasValue,s=r._value,a=r.thrownError,c=r.isStopped,u=r._isComplete;o?n.error(a):(c||u)&&(i&&n.next(s),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var n=this,r=n._hasValue,o=n._value,i=n._isComplete;i||(this._isComplete=!0,r&&e.prototype.next.call(this,o),e.prototype.complete.call(this))},t})(oU.Subject);vs.AsyncSubject=iU});var aA=_(bs=>{"use strict";var sU=bs&&bs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(bs,"__esModule",{value:!0});bs.Action=void 0;var aU=dn(),cU=(function(e){sU(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),this},t})(aU.Subscription);bs.Action=cU});var lA=_(Jn=>{"use strict";var cA=Jn&&Jn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},uA=Jn&&Jn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.intervalProvider=void 0;Jn.intervalProvider={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Jn.intervalProvider.delegate;return o?.setInterval?o.setInterval.apply(o,uA([e,t],cA(n))):setInterval.apply(void 0,uA([e,t],cA(n)))},clearInterval:function(e){var t=Jn.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0}});var ws=_(_s=>{"use strict";var uU=_s&&_s.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(_s,"__esModule",{value:!0});_s.AsyncAction=void 0;var lU=aA(),fA=lA(),fU=_r(),dU=(function(e){uU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return t.prototype.schedule=function(n,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),fA.intervalProvider.setInterval(n.flush.bind(n,this),o)},t.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&fA.intervalProvider.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var o=!1,i;try{this.work(n)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,o=n.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,fU.arrRemove(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(lU.Action);_s.AsyncAction=dU});var pA=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.TestTools=Es.Immediate=void 0;var pU=1,dv,nf={};function dA(e){return e in nf?(delete nf[e],!0):!1}Es.Immediate={setImmediate:function(e){var t=pU++;return nf[t]=!0,dv||(dv=Promise.resolve()),dv.then(function(){return dA(t)&&e()}),t},clearImmediate:function(e){dA(e)}};Es.TestTools={pending:function(){return Object.keys(nf).length}}});var gA=_(Xn=>{"use strict";var hU=Xn&&Xn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},gU=Xn&&Xn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.immediateProvider=void 0;var hA=pA(),mU=hA.Immediate.setImmediate,yU=hA.Immediate.clearImmediate;Xn.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Xn.immediateProvider.delegate;return(n?.setImmediate||mU).apply(void 0,gU([],hU(e)))},clearImmediate:function(e){var t=Xn.immediateProvider.delegate;return(t?.clearImmediate||yU)(e)},delegate:void 0}});var yA=_(Ss=>{"use strict";var vU=Ss&&Ss.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.AsapAction=void 0;var bU=ws(),mA=gA(),_U=(function(e){vU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.actions.push(this),n._scheduled||(n._scheduled=mA.immediateProvider.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,o);var s=n.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(mA.immediateProvider.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t})(bU.AsyncAction);Ss.AsapAction=_U});var pv=_(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.Scheduler=void 0;var wU=Xl(),EU=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=wU.dateTimestampProvider.now,e})();rf.Scheduler=EU});var Is=_(xs=>{"use strict";var SU=xs&&xs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(xs,"__esModule",{value:!0});xs.AsyncScheduler=void 0;var vA=pv(),xU=(function(e){SU(t,e);function t(n,r){r===void 0&&(r=vA.Scheduler.now);var o=e.call(this,n,r)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,o){for(;n=r.shift();)n.unsubscribe();throw o}},t})(vA.Scheduler);xs.AsyncScheduler=xU});var bA=_(As=>{"use strict";var IU=As&&As.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(As,"__esModule",{value:!0});As.AsapScheduler=void 0;var AU=Is(),TU=(function(e){IU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var o=this.actions,i;n=n||o.shift();do if(i=n.execute(n.state,n.delay))break;while((n=o[0])&&n.id===r&&o.shift());if(this._active=!1,i){for(;(n=o[0])&&n.id===r&&o.shift();)n.unsubscribe();throw i}},t})(AU.AsyncScheduler);As.AsapScheduler=TU});var _A=_(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.asap=ni.asapScheduler=void 0;var MU=yA(),OU=bA();ni.asapScheduler=new OU.AsapScheduler(MU.AsapAction);ni.asap=ni.asapScheduler});var Jt=_(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.async=ri.asyncScheduler=void 0;var PU=ws(),CU=Is();ri.asyncScheduler=new CU.AsyncScheduler(PU.AsyncAction);ri.async=ri.asyncScheduler});var wA=_(Ts=>{"use strict";var DU=Ts&&Ts.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.QueueAction=void 0;var kU=ws(),RU=(function(e){DU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},t.prototype.execute=function(n,r){return r>0||this.closed?e.prototype.execute.call(this,n,r):this._execute(n,r)},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.flush(this),0)},t})(kU.AsyncAction);Ts.QueueAction=RU});var EA=_(Ms=>{"use strict";var NU=Ms&&Ms.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.QueueScheduler=void 0;var LU=Is(),jU=(function(e){NU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(LU.AsyncScheduler);Ms.QueueScheduler=jU});var SA=_(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.queue=oi.queueScheduler=void 0;var FU=wA(),qU=EA();oi.queueScheduler=new qU.QueueScheduler(FU.QueueAction);oi.queue=oi.queueScheduler});var IA=_(Os=>{"use strict";var BU=Os&&Os.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Os,"__esModule",{value:!0});Os.AnimationFrameAction=void 0;var UU=ws(),xA=sv(),HU=(function(e){BU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.actions.push(this),n._scheduled||(n._scheduled=xA.animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,o);var s=n.actions;r!=null&&r===n._scheduled&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(xA.animationFrameProvider.cancelAnimationFrame(r),n._scheduled=void 0)},t})(UU.AsyncAction);Os.AnimationFrameAction=HU});var AA=_(Ps=>{"use strict";var $U=Ps&&Ps.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.AnimationFrameScheduler=void 0;var KU=Is(),WU=(function(e){$U(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r;n?r=n.id:(r=this._scheduled,this._scheduled=void 0);var o=this.actions,i;n=n||o.shift();do if(i=n.execute(n.state,n.delay))break;while((n=o[0])&&n.id===r&&o.shift());if(this._active=!1,i){for(;(n=o[0])&&n.id===r&&o.shift();)n.unsubscribe();throw i}},t})(KU.AsyncScheduler);Ps.AnimationFrameScheduler=WU});var TA=_(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.animationFrame=ii.animationFrameScheduler=void 0;var VU=IA(),GU=AA();ii.animationFrameScheduler=new GU.AnimationFrameScheduler(VU.AnimationFrameAction);ii.animationFrame=ii.animationFrameScheduler});var PA=_(ro=>{"use strict";var MA=ro&&ro.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ro,"__esModule",{value:!0});ro.VirtualAction=ro.VirtualTimeScheduler=void 0;var zU=ws(),YU=dn(),ZU=Is(),QU=(function(e){MA(t,e);function t(n,r){n===void 0&&(n=OA),r===void 0&&(r=1/0);var o=e.call(this,n,function(){return o.frame})||this;return o.maxFrames=r,o.frame=0,o.index=-1,o}return t.prototype.flush=function(){for(var n=this,r=n.actions,o=n.maxFrames,i,s;(s=r[0])&&s.delay<=o&&(r.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=r.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t})(ZU.AsyncScheduler);ro.VirtualTimeScheduler=QU;var OA=(function(e){MA(t,e);function t(n,r,o){o===void 0&&(o=n.index+=1);var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.index=o,i.active=!0,i.index=n.index=o,i}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}else return YU.Subscription.EMPTY},t.prototype.requestAsyncId=function(n,r,o){o===void 0&&(o=0),this.delay=n.frame+o;var i=n.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,r,o){o===void 0&&(o=0)},t.prototype._execute=function(n,r){if(this.active===!0)return e.prototype._execute.call(this,n,r)},t.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},t})(zU.AsyncAction);ro.VirtualAction=OA});var Rn=_(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.empty=si.EMPTY=void 0;var CA=Ke();si.EMPTY=new CA.Observable(function(e){return e.complete()});function JU(e){return e?XU(e):si.EMPTY}si.empty=JU;function XU(e){return new CA.Observable(function(t){return e.schedule(function(){return t.complete()})})}});var Tc=_(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.isScheduler=void 0;var eH=He();function tH(e){return e&&eH.isFunction(e.schedule)}of.isScheduler=tH});var Xt=_(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.popNumber=oo.popScheduler=oo.popResultSelector=void 0;var nH=He(),rH=Tc();function hv(e){return e[e.length-1]}function oH(e){return nH.isFunction(hv(e))?e.pop():void 0}oo.popResultSelector=oH;function iH(e){return rH.isScheduler(hv(e))?e.pop():void 0}oo.popScheduler=iH;function sH(e,t){return typeof hv(e)=="number"?e.pop():t}oo.popNumber=sH});var af=_(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.isArrayLike=void 0;sf.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})});var gv=_(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.isPromise=void 0;var aH=He();function cH(e){return aH.isFunction(e?.then)}cf.isPromise=cH});var mv=_(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.isInteropObservable=void 0;var uH=Ec(),lH=He();function fH(e){return lH.isFunction(e[uH.observable])}uf.isInteropObservable=fH});var yv=_(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.isAsyncIterable=void 0;var dH=He();function pH(e){return Symbol.asyncIterator&&dH.isFunction(e?.[Symbol.asyncIterator])}lf.isAsyncIterable=pH});var vv=_(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.createInvalidObservableTypeError=void 0;function hH(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}ff.createInvalidObservableTypeError=hH});var bv=_(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.iterator=Cs.getSymbolIterator=void 0;function DA(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Cs.getSymbolIterator=DA;Cs.iterator=DA()});var _v=_(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.isIterable=void 0;var gH=bv(),mH=He();function yH(e){return mH.isFunction(e?.[gH.iterator])}df.isIterable=yH});var pf=_(xn=>{"use strict";var vH=xn&&xn.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ds=xn&&xn.__await||function(e){return this instanceof Ds?(this.v=e,this):new Ds(e)},bH=xn&&xn.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(d){r[d]&&(o[d]=function(p){return new Promise(function(h,m){i.push([d,p,h,m])>1||a(d,p)})})}function a(d,p){try{c(r[d](p))}catch(h){f(i[0][3],h)}}function c(d){d.value instanceof Ds?Promise.resolve(d.value.v).then(u,l):f(i[0][2],d)}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,p){d(p),i.shift(),i.length&&a(i[0][0],i[0][1])}};Object.defineProperty(xn,"__esModule",{value:!0});xn.isReadableStreamLike=xn.readableStreamLikeToAsyncGenerator=void 0;var _H=He();function wH(e){return bH(this,arguments,function(){var n,r,o,i;return vH(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ds(n.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Ds(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ds(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}xn.readableStreamLikeToAsyncGenerator=wH;function EH(e){return _H.isFunction(e?.getReader)}xn.isReadableStreamLike=EH});var me=_(Je=>{"use strict";var SH=Je&&Je.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,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?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},xH=Je&&Je.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},IH=Je&&Je.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wv=="function"?wv(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}},wv=Je&&Je.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Je,"__esModule",{value:!0});Je.fromReadableStreamLike=Je.fromAsyncIterable=Je.fromIterable=Je.fromPromise=Je.fromArrayLike=Je.fromInteropObservable=Je.innerFrom=void 0;var AH=af(),TH=gv(),ks=Ke(),MH=mv(),OH=yv(),PH=vv(),CH=_v(),kA=pf(),DH=He(),kH=Xy(),RH=Ec();function NH(e){if(e instanceof ks.Observable)return e;if(e!=null){if(MH.isInteropObservable(e))return RA(e);if(AH.isArrayLike(e))return NA(e);if(TH.isPromise(e))return LA(e);if(OH.isAsyncIterable(e))return Ev(e);if(CH.isIterable(e))return jA(e);if(kA.isReadableStreamLike(e))return FA(e)}throw PH.createInvalidObservableTypeError(e)}Je.innerFrom=NH;function RA(e){return new ks.Observable(function(t){var n=e[RH.observable]();if(DH.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}Je.fromInteropObservable=RA;function NA(e){return new ks.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}Je.fromArrayLike=NA;function LA(e){return new ks.Observable(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,kH.reportUnhandledError)})}Je.fromPromise=LA;function jA(e){return new ks.Observable(function(t){var n,r;try{for(var o=wv(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}Je.fromIterable=jA;function Ev(e){return new ks.Observable(function(t){LH(e,t).catch(function(n){return t.error(n)})})}Je.fromAsyncIterable=Ev;function FA(e){return Ev(kA.readableStreamLikeToAsyncGenerator(e))}Je.fromReadableStreamLike=FA;function LH(e,t){var n,r,o,i;return SH(this,void 0,void 0,function(){var s,a;return xH(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=IH(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var wr=_(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.executeSchedule=void 0;function jH(e,t,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}hf.executeSchedule=jH});var Rs=_(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.observeOn=void 0;var Sv=wr(),FH=W(),qH=ee();function BH(e,t){return t===void 0&&(t=0),FH.operate(function(n,r){n.subscribe(qH.createOperatorSubscriber(r,function(o){return Sv.executeSchedule(r,e,function(){return r.next(o)},t)},function(){return Sv.executeSchedule(r,e,function(){return r.complete()},t)},function(o){return Sv.executeSchedule(r,e,function(){return r.error(o)},t)}))})}gf.observeOn=BH});var Ns=_(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.subscribeOn=void 0;var UH=W();function HH(e,t){return t===void 0&&(t=0),UH.operate(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}mf.subscribeOn=HH});var qA=_(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.scheduleObservable=void 0;var $H=me(),KH=Rs(),WH=Ns();function VH(e,t){return $H.innerFrom(e).pipe(WH.subscribeOn(t),KH.observeOn(t))}yf.scheduleObservable=VH});var BA=_(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.schedulePromise=void 0;var GH=me(),zH=Rs(),YH=Ns();function ZH(e,t){return GH.innerFrom(e).pipe(YH.subscribeOn(t),zH.observeOn(t))}vf.schedulePromise=ZH});var UA=_(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.scheduleArray=void 0;var QH=Ke();function JH(e,t){return new QH.Observable(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}bf.scheduleArray=JH});var xv=_(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.scheduleIterable=void 0;var XH=Ke(),e3=bv(),t3=He(),HA=wr();function n3(e,t){return new XH.Observable(function(n){var r;return HA.executeSchedule(n,t,function(){r=e[e3.iterator](),HA.executeSchedule(n,t,function(){var o,i,s;try{o=r.next(),i=o.value,s=o.done}catch(a){n.error(a);return}s?n.complete():n.next(i)},0,!0)}),function(){return t3.isFunction(r?.return)&&r.return()}})}_f.scheduleIterable=n3});var Iv=_(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.scheduleAsyncIterable=void 0;var r3=Ke(),$A=wr();function o3(e,t){if(!e)throw new Error("Iterable cannot be null");return new r3.Observable(function(n){$A.executeSchedule(n,t,function(){var r=e[Symbol.asyncIterator]();$A.executeSchedule(n,t,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}wf.scheduleAsyncIterable=o3});var KA=_(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.scheduleReadableStreamLike=void 0;var i3=Iv(),s3=pf();function a3(e,t){return i3.scheduleAsyncIterable(s3.readableStreamLikeToAsyncGenerator(e),t)}Ef.scheduleReadableStreamLike=a3});var Av=_(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.scheduled=void 0;var c3=qA(),u3=BA(),l3=UA(),f3=xv(),d3=Iv(),p3=mv(),h3=gv(),g3=af(),m3=_v(),y3=yv(),v3=vv(),b3=pf(),_3=KA();function w3(e,t){if(e!=null){if(p3.isInteropObservable(e))return c3.scheduleObservable(e,t);if(g3.isArrayLike(e))return l3.scheduleArray(e,t);if(h3.isPromise(e))return u3.schedulePromise(e,t);if(y3.isAsyncIterable(e))return d3.scheduleAsyncIterable(e,t);if(m3.isIterable(e))return f3.scheduleIterable(e,t);if(b3.isReadableStreamLike(e))return _3.scheduleReadableStreamLike(e,t)}throw v3.createInvalidObservableTypeError(e)}Sf.scheduled=w3});var Er=_(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.from=void 0;var E3=Av(),S3=me();function x3(e,t){return t?E3.scheduled(e,t):S3.innerFrom(e)}xf.from=x3});var Af=_(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.of=void 0;var I3=Xt(),A3=Er();function T3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=I3.popScheduler(e);return A3.from(e,n)}If.of=T3});var Tv=_(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.throwError=void 0;var M3=Ke(),O3=He();function P3(e,t){var n=O3.isFunction(e)?e:function(){return e},r=function(o){return o.error(n())};return new M3.Observable(t?function(o){return t.schedule(r,0,o)}:r)}Tf.throwError=P3});var Mf=_(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.observeNotification=Sr.Notification=Sr.NotificationKind=void 0;var C3=Rn(),D3=Af(),k3=Tv(),R3=He(),N3;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(N3=Sr.NotificationKind||(Sr.NotificationKind={}));var L3=(function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return WA(this,t)},e.prototype.do=function(t,n,r){var o=this,i=o.kind,s=o.value,a=o.error;return i==="N"?t?.(s):i==="E"?n?.(a):r?.()},e.prototype.accept=function(t,n,r){var o;return R3.isFunction((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,o=t.error,i=n==="N"?D3.of(r):n==="E"?k3.throwError(function(){return o}):n==="C"?C3.EMPTY:0;if(!i)throw new TypeError("Unexpected notification kind "+n);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e})();Sr.Notification=L3;function WA(e,t){var n,r,o,i=e,s=i.kind,a=i.value,c=i.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(n=t.next)===null||n===void 0||n.call(t,a):s==="E"?(r=t.error)===null||r===void 0||r.call(t,c):(o=t.complete)===null||o===void 0||o.call(t)}Sr.observeNotification=WA});var GA=_(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.isObservable=void 0;var j3=Ke(),VA=He();function F3(e){return!!e&&(e instanceof j3.Observable||VA.isFunction(e.lift)&&VA.isFunction(e.subscribe))}Of.isObservable=F3});var io=_(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.EmptyError=void 0;var q3=to();Pf.EmptyError=q3.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})});var zA=_(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.lastValueFrom=void 0;var B3=io();function U3(e,t){var n=typeof t=="object";return new Promise(function(r,o){var i=!1,s;e.subscribe({next:function(a){s=a,i=!0},error:o,complete:function(){i?r(s):n?r(t.defaultValue):o(new B3.EmptyError)}})})}Cf.lastValueFrom=U3});var YA=_(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.firstValueFrom=void 0;var H3=io(),$3=ds();function K3(e,t){var n=typeof t=="object";return new Promise(function(r,o){var i=new $3.SafeSubscriber({next:function(s){r(s),i.unsubscribe()},error:o,complete:function(){n?r(t.defaultValue):o(new H3.EmptyError)}});e.subscribe(i)})}Df.firstValueFrom=K3});var Mv=_(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.ArgumentOutOfRangeError=void 0;var W3=to();kf.ArgumentOutOfRangeError=W3.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Ov=_(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.NotFoundError=void 0;var V3=to();Rf.NotFoundError=V3.createErrorClass(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}})});var Pv=_(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.SequenceError=void 0;var G3=to();Nf.SequenceError=G3.createErrorClass(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}})});var jf=_(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.isValidDate=void 0;function z3(e){return e instanceof Date&&!isNaN(e)}Lf.isValidDate=z3});var Mc=_(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.timeout=ai.TimeoutError=void 0;var Y3=Jt(),Z3=jf(),Q3=W(),J3=me(),X3=to(),e$=ee(),t$=wr();ai.TimeoutError=X3.createErrorClass(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function n$(e,t){var n=Z3.isValidDate(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,o=n.each,i=n.with,s=i===void 0?r$:i,a=n.scheduler,c=a===void 0?t??Y3.asyncScheduler:a,u=n.meta,l=u===void 0?null:u;if(r==null&&o==null)throw new TypeError("No timeout provided.");return Q3.operate(function(f,d){var p,h,m=null,y=0,v=function(w){h=t$.executeSchedule(d,c,function(){try{p.unsubscribe(),J3.innerFrom(s({meta:l,lastValue:m,seen:y})).subscribe(d)}catch(A){d.error(A)}},w)};p=f.subscribe(e$.createOperatorSubscriber(d,function(w){h?.unsubscribe(),y++,d.next(m=w),o>0&&v(o)},void 0,void 0,function(){h?.closed||h?.unsubscribe(),m=null})),!y&&v(r!=null?typeof r=="number"?r:+r-c.now():o)})}ai.timeout=n$;function r$(e){throw new ai.TimeoutError(e)}});var xr=_(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.map=void 0;var o$=W(),i$=ee();function s$(e,t){return o$.operate(function(n,r){var o=0;n.subscribe(i$.createOperatorSubscriber(r,function(i){r.next(e.call(t,i,o++))}))})}Ff.map=s$});var ao=_(so=>{"use strict";var a$=so&&so.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},c$=so&&so.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(so,"__esModule",{value:!0});so.mapOneOrManyArgs=void 0;var u$=xr(),l$=Array.isArray;function f$(e,t){return l$(t)?e.apply(void 0,c$([],a$(t))):e(t)}function d$(e){return u$.map(function(t){return f$(e,t)})}so.mapOneOrManyArgs=d$});var Dv=_(co=>{"use strict";var p$=co&&co.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},ZA=co&&co.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(co,"__esModule",{value:!0});co.bindCallbackInternals=void 0;var h$=Tc(),g$=Ke(),m$=Ns(),y$=ao(),v$=Rs(),b$=tf();function Cv(e,t,n,r){if(n)if(h$.isScheduler(n))r=n;else return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Cv(e,t,r).apply(this,o).pipe(y$.mapOneOrManyArgs(n))};return r?function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Cv(e,t).apply(this,o).pipe(m$.subscribeOn(r),v$.observeOn(r))}:function(){for(var o=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new b$.AsyncSubject,c=!0;return new g$.Observable(function(u){var l=a.subscribe(u);if(c){c=!1;var f=!1,d=!1;t.apply(o,ZA(ZA([],p$(i)),[function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];if(e){var m=p.shift();if(m!=null){a.error(m);return}}a.next(1<p.length?p:p[0]),d=!0,f&&a.complete()}])),d&&a.complete(),f=!0}return l})}}co.bindCallbackInternals=Cv});var QA=_(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.bindCallback=void 0;var _$=Dv();function w$(e,t,n){return _$.bindCallbackInternals(!1,e,t,n)}qf.bindCallback=w$});var JA=_(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.bindNodeCallback=void 0;var E$=Dv();function S$(e,t,n){return E$.bindCallbackInternals(!0,e,t,n)}Bf.bindNodeCallback=S$});var kv=_(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.argsArgArrayOrObject=void 0;var x$=Array.isArray,I$=Object.getPrototypeOf,A$=Object.prototype,T$=Object.keys;function M$(e){if(e.length===1){var t=e[0];if(x$(t))return{args:t,keys:null};if(O$(t)){var n=T$(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}Uf.argsArgArrayOrObject=M$;function O$(e){return e&&typeof e=="object"&&I$(e)===A$}});var Rv=_(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.createObject=void 0;function P$(e,t){return e.reduce(function(n,r,o){return n[r]=t[o],n},{})}Hf.createObject=P$});var $f=_(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.combineLatestInit=Ls.combineLatest=void 0;var C$=Ke(),D$=kv(),tT=Er(),nT=xt(),k$=ao(),XA=Xt(),R$=Rv(),N$=ee(),L$=wr();function j$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=XA.popScheduler(e),r=XA.popResultSelector(e),o=D$.argsArgArrayOrObject(e),i=o.args,s=o.keys;if(i.length===0)return tT.from([],n);var a=new C$.Observable(rT(i,n,s?function(c){return R$.createObject(s,c)}:nT.identity));return r?a.pipe(k$.mapOneOrManyArgs(r)):a}Ls.combineLatest=j$;function rT(e,t,n){return n===void 0&&(n=nT.identity),function(r){eT(t,function(){for(var o=e.length,i=new Array(o),s=o,a=o,c=function(l){eT(t,function(){var f=tT.from(e[l],t),d=!1;f.subscribe(N$.createOperatorSubscriber(r,function(p){i[l]=p,d||(d=!0,a--),a||r.next(n(i.slice()))},function(){--s||r.complete()}))},r)},u=0;u<o;u++)c(u)},r)}}Ls.combineLatestInit=rT;function eT(e,t,n){e?L$.executeSchedule(n,e,t):t()}});var Wf=_(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.mergeInternals=void 0;var F$=me(),q$=wr(),oT=ee();function B$(e,t,n,r,o,i,s,a){var c=[],u=0,l=0,f=!1,d=function(){f&&!c.length&&!u&&t.complete()},p=function(m){return u<r?h(m):c.push(m)},h=function(m){i&&t.next(m),u++;var y=!1;F$.innerFrom(n(m,l++)).subscribe(oT.createOperatorSubscriber(t,function(v){o?.(v),i?p(v):t.next(v)},function(){y=!0},void 0,function(){if(y)try{u--;for(var v=function(){var w=c.shift();s?q$.executeSchedule(t,s,function(){return h(w)}):h(w)};c.length&&u<r;)v();d()}catch(w){t.error(w)}}))};return e.subscribe(oT.createOperatorSubscriber(t,p,function(){f=!0,d()})),function(){a?.()}}Kf.mergeInternals=B$});var er=_(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.mergeMap=void 0;var U$=xr(),H$=me(),$$=W(),K$=Wf(),W$=He();function iT(e,t,n){return n===void 0&&(n=1/0),W$.isFunction(t)?iT(function(r,o){return U$.map(function(i,s){return t(r,i,o,s)})(H$.innerFrom(e(r,o)))},n):(typeof t=="number"&&(n=t),$$.operate(function(r,o){return K$.mergeInternals(r,o,e,n)}))}Vf.mergeMap=iT});var js=_(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.mergeAll=void 0;var V$=er(),G$=xt();function z$(e){return e===void 0&&(e=1/0),V$.mergeMap(G$.identity,e)}Gf.mergeAll=z$});var Oc=_(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.concatAll=void 0;var Y$=js();function Z$(){return Y$.mergeAll(1)}zf.concatAll=Z$});var Pc=_(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.concat=void 0;var Q$=Oc(),J$=Xt(),X$=Er();function e4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Q$.concatAll()(X$.from(e,J$.popScheduler(e)))}Yf.concat=e4});var Cc=_(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.defer=void 0;var t4=Ke(),n4=me();function r4(e){return new t4.Observable(function(t){n4.innerFrom(e()).subscribe(t)})}Zf.defer=r4});var sT=_(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.connectable=void 0;var o4=It(),i4=Ke(),s4=Cc(),a4={connector:function(){return new o4.Subject},resetOnDisconnect:!0};function c4(e,t){t===void 0&&(t=a4);var n=null,r=t.connector,o=t.resetOnDisconnect,i=o===void 0?!0:o,s=r(),a=new i4.Observable(function(c){return s.subscribe(c)});return a.connect=function(){return(!n||n.closed)&&(n=s4.defer(function(){return e}).subscribe(s),i&&n.add(function(){return s=r()})),n},a}Qf.connectable=c4});var aT=_(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.forkJoin=void 0;var u4=Ke(),l4=kv(),f4=me(),d4=Xt(),p4=ee(),h4=ao(),g4=Rv();function m4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=d4.popResultSelector(e),r=l4.argsArgArrayOrObject(e),o=r.args,i=r.keys,s=new u4.Observable(function(a){var c=o.length;if(!c){a.complete();return}for(var u=new Array(c),l=c,f=c,d=function(h){var m=!1;f4.innerFrom(o[h]).subscribe(p4.createOperatorSubscriber(a,function(y){m||(m=!0,f--),u[h]=y},function(){return l--},void 0,function(){(!l||!m)&&(f||a.next(i?g4.createObject(i,u):u),a.complete())}))},p=0;p<c;p++)d(p)});return n?s.pipe(h4.mapOneOrManyArgs(n)):s}Jf.forkJoin=m4});var uT=_(Fs=>{"use strict";var y4=Fs&&Fs.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fromEvent=void 0;var v4=me(),b4=Ke(),_4=er(),w4=af(),ci=He(),E4=ao(),S4=["addListener","removeListener"],x4=["addEventListener","removeEventListener"],I4=["on","off"];function Nv(e,t,n,r){if(ci.isFunction(n)&&(r=n,n=void 0),r)return Nv(e,t,n).pipe(E4.mapOneOrManyArgs(r));var o=y4(M4(e)?x4.map(function(a){return function(c){return e[a](t,c,n)}}):A4(e)?S4.map(cT(e,t)):T4(e)?I4.map(cT(e,t)):[],2),i=o[0],s=o[1];if(!i&&w4.isArrayLike(e))return _4.mergeMap(function(a){return Nv(a,t,n)})(v4.innerFrom(e));if(!i)throw new TypeError("Invalid event target");return new b4.Observable(function(a){var c=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return a.next(1<u.length?u:u[0])};return i(c),function(){return s(c)}})}Fs.fromEvent=Nv;function cT(e,t){return function(n){return function(r){return e[n](t,r)}}}function A4(e){return ci.isFunction(e.addListener)&&ci.isFunction(e.removeListener)}function T4(e){return ci.isFunction(e.on)&&ci.isFunction(e.off)}function M4(e){return ci.isFunction(e.addEventListener)&&ci.isFunction(e.removeEventListener)}});var fT=_(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.fromEventPattern=void 0;var O4=Ke(),P4=He(),C4=ao();function lT(e,t,n){return n?lT(e,t).pipe(C4.mapOneOrManyArgs(n)):new O4.Observable(function(r){var o=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r.next(s.length===1?s[0]:s)},i=e(o);return P4.isFunction(t)?function(){return t(o,i)}:void 0})}Xf.fromEventPattern=lT});var pT=_(qs=>{"use strict";var D4=qs&&qs.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(qs,"__esModule",{value:!0});qs.generate=void 0;var dT=xt(),k4=Tc(),R4=Cc(),N4=xv();function L4(e,t,n,r,o){var i,s,a,c;arguments.length===1?(i=e,c=i.initialState,t=i.condition,n=i.iterate,s=i.resultSelector,a=s===void 0?dT.identity:s,o=i.scheduler):(c=e,!r||k4.isScheduler(r)?(a=dT.identity,o=r):a=r);function u(){var l;return D4(this,function(f){switch(f.label){case 0:l=c,f.label=1;case 1:return!t||t(l)?[4,a(l)]:[3,4];case 2:f.sent(),f.label=3;case 3:return l=n(l),[3,1];case 4:return[2]}})}return R4.defer(o?function(){return N4.scheduleIterable(u(),o)}:u)}qs.generate=L4});var hT=_(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.iif=void 0;var j4=Cc();function F4(e,t,n){return j4.defer(function(){return e()?t:n})}ed.iif=F4});var uo=_(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.timer=void 0;var q4=Ke(),B4=Jt(),U4=Tc(),H4=jf();function $4(e,t,n){e===void 0&&(e=0),n===void 0&&(n=B4.async);var r=-1;return t!=null&&(U4.isScheduler(t)?n=t:r=t),new q4.Observable(function(o){var i=H4.isValidDate(e)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}td.timer=$4});var Lv=_(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.interval=void 0;var K4=Jt(),W4=uo();function V4(e,t){return e===void 0&&(e=0),t===void 0&&(t=K4.asyncScheduler),e<0&&(e=0),W4.timer(e,e,t)}nd.interval=V4});var mT=_(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.merge=void 0;var G4=js(),z4=me(),Y4=Rn(),gT=Xt(),Z4=Er();function Q4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=gT.popScheduler(e),r=gT.popNumber(e,1/0),o=e;return o.length?o.length===1?z4.innerFrom(o[0]):G4.mergeAll(r)(Z4.from(o,n)):Y4.EMPTY}rd.merge=Q4});var jv=_(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.never=ui.NEVER=void 0;var J4=Ke(),X4=St();ui.NEVER=new J4.Observable(X4.noop);function e6(){return ui.NEVER}ui.never=e6});var li=_(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.argsOrArgArray=void 0;var t6=Array.isArray;function n6(e){return e.length===1&&t6(e[0])?e[0]:e}od.argsOrArgArray=n6});var Fv=_(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.onErrorResumeNext=void 0;var r6=Ke(),o6=li(),i6=ee(),yT=St(),s6=me();function a6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o6.argsOrArgArray(e);return new r6.Observable(function(r){var o=0,i=function(){if(o<n.length){var s=void 0;try{s=s6.innerFrom(n[o++])}catch{i();return}var a=new i6.OperatorSubscriber(r,void 0,yT.noop,yT.noop);s.subscribe(a),a.add(i)}else r.complete()};i()})}id.onErrorResumeNext=a6});var vT=_(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.pairs=void 0;var c6=Er();function u6(e,t){return c6.from(Object.entries(e),t)}sd.pairs=u6});var qv=_(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.not=void 0;function l6(e,t){return function(n,r){return!e.call(t,n,r)}}ad.not=l6});var Ir=_(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.filter=void 0;var f6=W(),d6=ee();function p6(e,t){return f6.operate(function(n,r){var o=0;n.subscribe(d6.createOperatorSubscriber(r,function(i){return e.call(t,i,o++)&&r.next(i)}))})}cd.filter=p6});var wT=_(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.partition=void 0;var h6=qv(),bT=Ir(),_T=me();function g6(e,t,n){return[bT.filter(t,n)(_T.innerFrom(e)),bT.filter(h6.not(t,n))(_T.innerFrom(e))]}ud.partition=g6});var Bv=_(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.raceInit=Bs.race=void 0;var m6=Ke(),ET=me(),y6=li(),v6=ee();function b6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=y6.argsOrArgArray(e),e.length===1?ET.innerFrom(e[0]):new m6.Observable(ST(e))}Bs.race=b6;function ST(e){return function(t){for(var n=[],r=function(i){n.push(ET.innerFrom(e[i]).subscribe(v6.createOperatorSubscriber(t,function(s){if(n){for(var a=0;a<n.length;a++)a!==i&&n[a].unsubscribe();n=null}t.next(s)})))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}Bs.raceInit=ST});var xT=_(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.range=void 0;var _6=Ke(),w6=Rn();function E6(e,t,n){if(t==null&&(t=e,e=0),t<=0)return w6.EMPTY;var r=t+e;return new _6.Observable(n?function(o){var i=e;return n.schedule(function(){i<r?(o.next(i++),this.schedule()):o.complete()})}:function(o){for(var i=e;i<r&&!o.closed;)o.next(i++);o.complete()})}ld.range=E6});var IT=_(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.using=void 0;var S6=Ke(),x6=me(),I6=Rn();function A6(e,t){return new S6.Observable(function(n){var r=e(),o=t(r),i=o?x6.innerFrom(o):I6.EMPTY;return i.subscribe(n),function(){r&&r.unsubscribe()}})}fd.using=A6});var dd=_(lo=>{"use strict";var T6=lo&&lo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},M6=lo&&lo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(lo,"__esModule",{value:!0});lo.zip=void 0;var O6=Ke(),P6=me(),C6=li(),D6=Rn(),k6=ee(),R6=Xt();function N6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=R6.popResultSelector(e),r=C6.argsOrArgArray(e);return r.length?new O6.Observable(function(o){var i=r.map(function(){return[]}),s=r.map(function(){return!1});o.add(function(){i=s=null});for(var a=function(u){P6.innerFrom(r[u]).subscribe(k6.createOperatorSubscriber(o,function(l){if(i[u].push(l),i.every(function(d){return d.length})){var f=i.map(function(d){return d.shift()});o.next(n?n.apply(void 0,M6([],T6(f))):f),i.some(function(d,p){return!d.length&&s[p]})&&o.complete()}},function(){s[u]=!0,!i[u].length&&o.complete()}))},c=0;!o.closed&&c<r.length;c++)a(c);return function(){i=s=null}}):D6.EMPTY}lo.zip=N6});var TT=_(AT=>{"use strict";Object.defineProperty(AT,"__esModule",{value:!0})});var hd=_(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.audit=void 0;var L6=W(),j6=me(),MT=ee();function F6(e){return L6.operate(function(t,n){var r=!1,o=null,i=null,s=!1,a=function(){if(i?.unsubscribe(),i=null,r){r=!1;var u=o;o=null,n.next(u)}s&&n.complete()},c=function(){i=null,s&&n.complete()};t.subscribe(MT.createOperatorSubscriber(n,function(u){r=!0,o=u,i||j6.innerFrom(e(u)).subscribe(i=MT.createOperatorSubscriber(n,a,c))},function(){s=!0,(!r||!i||i.closed)&&n.complete()}))})}pd.audit=F6});var Uv=_(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.auditTime=void 0;var q6=Jt(),B6=hd(),U6=uo();function H6(e,t){return t===void 0&&(t=q6.asyncScheduler),B6.audit(function(){return U6.timer(e,t)})}gd.auditTime=H6});var Hv=_(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.buffer=void 0;var $6=W(),K6=St(),OT=ee(),W6=me();function V6(e){return $6.operate(function(t,n){var r=[];return t.subscribe(OT.createOperatorSubscriber(n,function(o){return r.push(o)},function(){n.next(r),n.complete()})),W6.innerFrom(e).subscribe(OT.createOperatorSubscriber(n,function(){var o=r;r=[],n.next(o)},K6.noop)),function(){r=null}})}md.buffer=V6});var Kv=_(Us=>{"use strict";var $v=Us&&Us.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Us,"__esModule",{value:!0});Us.bufferCount=void 0;var G6=W(),z6=ee(),Y6=_r();function Z6(e,t){return t===void 0&&(t=null),t=t??e,G6.operate(function(n,r){var o=[],i=0;n.subscribe(z6.createOperatorSubscriber(r,function(s){var a,c,u,l,f=null;i++%t===0&&o.push([]);try{for(var d=$v(o),p=d.next();!p.done;p=d.next()){var h=p.value;h.push(s),e<=h.length&&(f=f??[],f.push(h))}}catch(v){a={error:v}}finally{try{p&&!p.done&&(c=d.return)&&c.call(d)}finally{if(a)throw a.error}}if(f)try{for(var m=$v(f),y=m.next();!y.done;y=m.next()){var h=y.value;Y6.arrRemove(o,h),r.next(h)}}catch(v){u={error:v}}finally{try{y&&!y.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}},function(){var s,a;try{for(var c=$v(o),u=c.next();!u.done;u=c.next()){var l=u.value;r.next(l)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}r.complete()},void 0,function(){o=null}))})}Us.bufferCount=Z6});var Wv=_(Hs=>{"use strict";var Q6=Hs&&Hs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.bufferTime=void 0;var J6=dn(),X6=W(),e5=ee(),t5=_r(),n5=Jt(),r5=Xt(),PT=wr();function o5(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=(t=r5.popScheduler(r))!==null&&t!==void 0?t:n5.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return X6.operate(function(c,u){var l=[],f=!1,d=function(m){var y=m.buffer,v=m.subs;v.unsubscribe(),t5.arrRemove(l,m),u.next(y),f&&p()},p=function(){if(l){var m=new J6.Subscription;u.add(m);var y=[],v={buffer:y,subs:m};l.push(v),PT.executeSchedule(m,i,function(){return d(v)},e)}};s!==null&&s>=0?PT.executeSchedule(u,i,p,s,!0):f=!0,p();var h=e5.createOperatorSubscriber(u,function(m){var y,v,w=l.slice();try{for(var A=Q6(w),P=A.next();!P.done;P=A.next()){var j=P.value,Q=j.buffer;Q.push(m),a<=Q.length&&d(j)}}catch(ue){y={error:ue}}finally{try{P&&!P.done&&(v=A.return)&&v.call(A)}finally{if(y)throw y.error}}},function(){for(;l?.length;)u.next(l.shift().buffer);h?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return l=null});c.subscribe(h)})}Hs.bufferTime=o5});var Gv=_($s=>{"use strict";var i5=$s&&$s.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty($s,"__esModule",{value:!0});$s.bufferToggle=void 0;var s5=dn(),a5=W(),CT=me(),Vv=ee(),DT=St(),c5=_r();function u5(e,t){return a5.operate(function(n,r){var o=[];CT.innerFrom(e).subscribe(Vv.createOperatorSubscriber(r,function(i){var s=[];o.push(s);var a=new s5.Subscription,c=function(){c5.arrRemove(o,s),r.next(s),a.unsubscribe()};a.add(CT.innerFrom(t(i)).subscribe(Vv.createOperatorSubscriber(r,c,DT.noop)))},DT.noop)),n.subscribe(Vv.createOperatorSubscriber(r,function(i){var s,a;try{for(var c=i5(o),u=c.next();!u.done;u=c.next()){var l=u.value;l.push(i)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},function(){for(;o.length>0;)r.next(o.shift());r.complete()}))})}$s.bufferToggle=u5});var zv=_(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.bufferWhen=void 0;var l5=W(),f5=St(),kT=ee(),d5=me();function p5(e){return l5.operate(function(t,n){var r=null,o=null,i=function(){o?.unsubscribe();var s=r;r=[],s&&n.next(s),d5.innerFrom(e()).subscribe(o=kT.createOperatorSubscriber(n,i,f5.noop))};i(),t.subscribe(kT.createOperatorSubscriber(n,function(s){return r?.push(s)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=o=null}))})}yd.bufferWhen=p5});var Yv=_(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.catchError=void 0;var h5=me(),g5=ee(),m5=W();function RT(e){return m5.operate(function(t,n){var r=null,o=!1,i;r=t.subscribe(g5.createOperatorSubscriber(n,void 0,void 0,function(s){i=h5.innerFrom(e(s,RT(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}vd.catchError=RT});var Zv=_(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.scanInternals=void 0;var y5=ee();function v5(e,t,n,r,o){return function(i,s){var a=n,c=t,u=0;i.subscribe(y5.createOperatorSubscriber(s,function(l){var f=u++;c=a?e(c,l,f):(a=!0,l),r&&s.next(c)},o&&(function(){a&&s.next(c),s.complete()})))}}bd.scanInternals=v5});var fi=_(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.reduce=void 0;var b5=Zv(),_5=W();function w5(e,t){return _5.operate(b5.scanInternals(e,t,arguments.length>=2,!1,!0))}_d.reduce=w5});var Ed=_(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.toArray=void 0;var E5=fi(),S5=W(),x5=function(e,t){return e.push(t),e};function I5(){return S5.operate(function(e,t){E5.reduce(x5,[])(e).subscribe(t)})}wd.toArray=I5});var Qv=_(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.joinAllInternals=void 0;var A5=xt(),T5=ao(),M5=Sc(),O5=er(),P5=Ed();function C5(e,t){return M5.pipe(P5.toArray(),O5.mergeMap(function(n){return e(n)}),t?T5.mapOneOrManyArgs(t):A5.identity)}Sd.joinAllInternals=C5});var Id=_(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.combineLatestAll=void 0;var D5=$f(),k5=Qv();function R5(e){return k5.joinAllInternals(D5.combineLatest,e)}xd.combineLatestAll=R5});var Jv=_(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.combineAll=void 0;var N5=Id();Ad.combineAll=N5.combineLatestAll});var Xv=_(fo=>{"use strict";var NT=fo&&fo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},LT=fo&&fo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(fo,"__esModule",{value:!0});fo.combineLatest=void 0;var L5=$f(),j5=W(),F5=li(),q5=ao(),B5=Sc(),U5=Xt();function jT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=U5.popResultSelector(e);return n?B5.pipe(jT.apply(void 0,LT([],NT(e))),q5.mapOneOrManyArgs(n)):j5.operate(function(r,o){L5.combineLatestInit(LT([r],NT(F5.argsOrArgArray(e))))(o)})}fo.combineLatest=jT});var eb=_(po=>{"use strict";var H5=po&&po.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},$5=po&&po.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(po,"__esModule",{value:!0});po.combineLatestWith=void 0;var K5=Xv();function W5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return K5.combineLatest.apply(void 0,$5([],H5(e)))}po.combineLatestWith=W5});var Md=_(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.concatMap=void 0;var FT=er(),V5=He();function G5(e,t){return V5.isFunction(t)?FT.mergeMap(e,t,1):FT.mergeMap(e,1)}Td.concatMap=G5});var tb=_(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.concatMapTo=void 0;var qT=Md(),z5=He();function Y5(e,t){return z5.isFunction(t)?qT.concatMap(function(){return e},t):qT.concatMap(function(){return e})}Od.concatMapTo=Y5});var nb=_(ho=>{"use strict";var Z5=ho&&ho.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Q5=ho&&ho.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(ho,"__esModule",{value:!0});ho.concat=void 0;var J5=W(),X5=Oc(),eK=Xt(),tK=Er();function nK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=eK.popScheduler(e);return J5.operate(function(r,o){X5.concatAll()(tK.from(Q5([r],Z5(e)),n)).subscribe(o)})}ho.concat=nK});var rb=_(go=>{"use strict";var rK=go&&go.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},oK=go&&go.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(go,"__esModule",{value:!0});go.concatWith=void 0;var iK=nb();function sK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return iK.concat.apply(void 0,oK([],rK(e)))}go.concatWith=sK});var BT=_(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.fromSubscribable=void 0;var aK=Ke();function cK(e){return new aK.Observable(function(t){return e.subscribe(t)})}Pd.fromSubscribable=cK});var Dc=_(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.connect=void 0;var uK=It(),lK=me(),fK=W(),dK=BT(),pK={connector:function(){return new uK.Subject}};function hK(e,t){t===void 0&&(t=pK);var n=t.connector;return fK.operate(function(r,o){var i=n();lK.innerFrom(e(dK.fromSubscribable(i))).subscribe(o),o.add(r.subscribe(i))})}Cd.connect=hK});var ob=_(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.count=void 0;var gK=fi();function mK(e){return gK.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}Dd.count=mK});var ib=_(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.debounce=void 0;var yK=W(),vK=St(),UT=ee(),bK=me();function _K(e){return yK.operate(function(t,n){var r=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,r){r=!1;var a=o;o=null,n.next(a)}};t.subscribe(UT.createOperatorSubscriber(n,function(a){i?.unsubscribe(),r=!0,o=a,i=UT.createOperatorSubscriber(n,s,vK.noop),bK.innerFrom(e(a)).subscribe(i)},function(){s(),n.complete()},void 0,function(){o=i=null}))})}kd.debounce=_K});var sb=_(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.debounceTime=void 0;var wK=Jt(),EK=W(),SK=ee();function xK(e,t){return t===void 0&&(t=wK.asyncScheduler),EK.operate(function(n,r){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,r.next(u)}};function c(){var u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(SK.createOperatorSubscriber(r,function(u){i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},function(){a(),r.complete()},void 0,function(){i=o=null}))})}Rd.debounceTime=xK});var Ks=_(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.defaultIfEmpty=void 0;var IK=W(),AK=ee();function TK(e){return IK.operate(function(t,n){var r=!1;t.subscribe(AK.createOperatorSubscriber(n,function(o){r=!0,n.next(o)},function(){r||n.next(e),n.complete()}))})}Nd.defaultIfEmpty=TK});var Ws=_(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.take=void 0;var MK=Rn(),OK=W(),PK=ee();function CK(e){return e<=0?function(){return MK.EMPTY}:OK.operate(function(t,n){var r=0;t.subscribe(PK.createOperatorSubscriber(n,function(o){++r<=e&&(n.next(o),e<=r&&n.complete())}))})}Ld.take=CK});var Fd=_(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.ignoreElements=void 0;var DK=W(),kK=ee(),RK=St();function NK(){return DK.operate(function(e,t){e.subscribe(kK.createOperatorSubscriber(t,RK.noop))})}jd.ignoreElements=NK});var Bd=_(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.mapTo=void 0;var LK=xr();function jK(e){return LK.map(function(){return e})}qd.mapTo=jK});var Hd=_(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.delayWhen=void 0;var FK=Pc(),HT=Ws(),qK=Fd(),BK=Bd(),UK=er(),HK=me();function $T(e,t){return t?function(n){return FK.concat(t.pipe(HT.take(1),qK.ignoreElements()),n.pipe($T(e)))}:UK.mergeMap(function(n,r){return HK.innerFrom(e(n,r)).pipe(HT.take(1),BK.mapTo(n))})}Ud.delayWhen=$T});var ab=_($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.delay=void 0;var $K=Jt(),KK=Hd(),WK=uo();function VK(e,t){t===void 0&&(t=$K.asyncScheduler);var n=WK.timer(e,t);return KK.delayWhen(function(){return n})}$d.delay=VK});var cb=_(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.dematerialize=void 0;var GK=Mf(),zK=W(),YK=ee();function ZK(){return zK.operate(function(e,t){e.subscribe(YK.createOperatorSubscriber(t,function(n){return GK.observeNotification(n,t)}))})}Kd.dematerialize=ZK});var ub=_(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.distinct=void 0;var QK=W(),KT=ee(),JK=St(),XK=me();function eW(e,t){return QK.operate(function(n,r){var o=new Set;n.subscribe(KT.createOperatorSubscriber(r,function(i){var s=e?e(i):i;o.has(s)||(o.add(s),r.next(i))})),t&&XK.innerFrom(t).subscribe(KT.createOperatorSubscriber(r,function(){return o.clear()},JK.noop))})}Wd.distinct=eW});var Gd=_(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.distinctUntilChanged=void 0;var tW=xt(),nW=W(),rW=ee();function oW(e,t){return t===void 0&&(t=tW.identity),e=e??iW,nW.operate(function(n,r){var o,i=!0;n.subscribe(rW.createOperatorSubscriber(r,function(s){var a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}Vd.distinctUntilChanged=oW;function iW(e,t){return e===t}});var lb=_(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.distinctUntilKeyChanged=void 0;var sW=Gd();function aW(e,t){return sW.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}zd.distinctUntilKeyChanged=aW});var Vs=_(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.throwIfEmpty=void 0;var cW=io(),uW=W(),lW=ee();function fW(e){return e===void 0&&(e=dW),uW.operate(function(t,n){var r=!1;t.subscribe(lW.createOperatorSubscriber(n,function(o){r=!0,n.next(o)},function(){return r?n.complete():n.error(e())}))})}Yd.throwIfEmpty=fW;function dW(){return new cW.EmptyError}});var fb=_(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.elementAt=void 0;var WT=Mv(),pW=Ir(),hW=Vs(),gW=Ks(),mW=Ws();function yW(e,t){if(e<0)throw new WT.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(r){return r.pipe(pW.filter(function(o,i){return i===e}),mW.take(1),n?gW.defaultIfEmpty(t):hW.throwIfEmpty(function(){return new WT.ArgumentOutOfRangeError}))}}Zd.elementAt=yW});var db=_(mo=>{"use strict";var vW=mo&&mo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},bW=mo&&mo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(mo,"__esModule",{value:!0});mo.endWith=void 0;var _W=Pc(),wW=Af();function EW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return _W.concat(n,wW.of.apply(void 0,bW([],vW(e))))}}mo.endWith=EW});var pb=_(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.every=void 0;var SW=W(),xW=ee();function IW(e,t){return SW.operate(function(n,r){var o=0;n.subscribe(xW.createOperatorSubscriber(r,function(i){e.call(t,i,o++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}Qd.every=IW});var Xd=_(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.exhaustMap=void 0;var AW=xr(),VT=me(),TW=W(),GT=ee();function zT(e,t){return t?function(n){return n.pipe(zT(function(r,o){return VT.innerFrom(e(r,o)).pipe(AW.map(function(i,s){return t(r,i,o,s)}))}))}:TW.operate(function(n,r){var o=0,i=null,s=!1;n.subscribe(GT.createOperatorSubscriber(r,function(a){i||(i=GT.createOperatorSubscriber(r,void 0,function(){i=null,s&&r.complete()}),VT.innerFrom(e(a,o++)).subscribe(i))},function(){s=!0,!i&&r.complete()}))})}Jd.exhaustMap=zT});var tp=_(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.exhaustAll=void 0;var MW=Xd(),OW=xt();function PW(){return MW.exhaustMap(OW.identity)}ep.exhaustAll=PW});var hb=_(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.exhaust=void 0;var CW=tp();np.exhaust=CW.exhaustAll});var gb=_(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.expand=void 0;var DW=W(),kW=Wf();function RW(e,t,n){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,DW.operate(function(r,o){return kW.mergeInternals(r,o,e,t,void 0,!0,n)})}rp.expand=RW});var mb=_(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.finalize=void 0;var NW=W();function LW(e){return NW.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}op.finalize=LW});var ip=_(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.createFind=Gs.find=void 0;var jW=W(),FW=ee();function qW(e,t){return jW.operate(YT(e,t,"value"))}Gs.find=qW;function YT(e,t,n){var r=n==="index";return function(o,i){var s=0;o.subscribe(FW.createOperatorSubscriber(i,function(a){var c=s++;e.call(t,a,c,o)&&(i.next(r?c:a),i.complete())},function(){i.next(r?-1:void 0),i.complete()}))}}Gs.createFind=YT});var yb=_(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.findIndex=void 0;var BW=W(),UW=ip();function HW(e,t){return BW.operate(UW.createFind(e,t,"index"))}sp.findIndex=HW});var vb=_(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.first=void 0;var $W=io(),KW=Ir(),WW=Ws(),VW=Ks(),GW=Vs(),zW=xt();function YW(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?KW.filter(function(o,i){return e(o,i,r)}):zW.identity,WW.take(1),n?VW.defaultIfEmpty(t):GW.throwIfEmpty(function(){return new $W.EmptyError}))}}ap.first=YW});var bb=_(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.groupBy=void 0;var ZW=Ke(),QW=me(),JW=It(),XW=W(),ZT=ee();function eV(e,t,n,r){return XW.operate(function(o,i){var s;!t||typeof t=="function"?s=t:(n=t.duration,s=t.element,r=t.connector);var a=new Map,c=function(h){a.forEach(h),h(i)},u=function(h){return c(function(m){return m.error(h)})},l=0,f=!1,d=new ZT.OperatorSubscriber(i,function(h){try{var m=e(h),y=a.get(m);if(!y){a.set(m,y=r?r():new JW.Subject);var v=p(m,y);if(i.next(v),n){var w=ZT.createOperatorSubscriber(y,function(){y.complete(),w?.unsubscribe()},void 0,void 0,function(){return a.delete(m)});d.add(QW.innerFrom(n(v)).subscribe(w))}}y.next(s?s(h):h)}catch(A){u(A)}},function(){return c(function(h){return h.complete()})},u,function(){return a.clear()},function(){return f=!0,l===0});o.subscribe(d);function p(h,m){var y=new ZW.Observable(function(v){l++;var w=m.subscribe(v);return function(){w.unsubscribe(),--l===0&&f&&d.unsubscribe()}});return y.key=h,y}})}cp.groupBy=eV});var _b=_(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.isEmpty=void 0;var tV=W(),nV=ee();function rV(){return tV.operate(function(e,t){e.subscribe(nV.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}up.isEmpty=rV});var lp=_(zs=>{"use strict";var oV=zs&&zs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(zs,"__esModule",{value:!0});zs.takeLast=void 0;var iV=Rn(),sV=W(),aV=ee();function cV(e){return e<=0?function(){return iV.EMPTY}:sV.operate(function(t,n){var r=[];t.subscribe(aV.createOperatorSubscriber(n,function(o){r.push(o),e<r.length&&r.shift()},function(){var o,i;try{for(var s=oV(r),a=s.next();!a.done;a=s.next()){var c=a.value;n.next(c)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}n.complete()},void 0,function(){r=null}))})}zs.takeLast=cV});var wb=_(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.last=void 0;var uV=io(),lV=Ir(),fV=lp(),dV=Vs(),pV=Ks(),hV=xt();function gV(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?lV.filter(function(o,i){return e(o,i,r)}):hV.identity,fV.takeLast(1),n?pV.defaultIfEmpty(t):dV.throwIfEmpty(function(){return new uV.EmptyError}))}}fp.last=gV});var Sb=_(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.materialize=void 0;var Eb=Mf(),mV=W(),yV=ee();function vV(){return mV.operate(function(e,t){e.subscribe(yV.createOperatorSubscriber(t,function(n){t.next(Eb.Notification.createNext(n))},function(){t.next(Eb.Notification.createComplete()),t.complete()},function(n){t.next(Eb.Notification.createError(n)),t.complete()}))})}dp.materialize=vV});var xb=_(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.max=void 0;var bV=fi(),_V=He();function wV(e){return bV.reduce(_V.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}pp.max=wV});var Ib=_(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.flatMap=void 0;var EV=er();hp.flatMap=EV.mergeMap});var Ab=_(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.mergeMapTo=void 0;var QT=er(),SV=He();function xV(e,t,n){return n===void 0&&(n=1/0),SV.isFunction(t)?QT.mergeMap(function(){return e},t,n):(typeof t=="number"&&(n=t),QT.mergeMap(function(){return e},n))}gp.mergeMapTo=xV});var Tb=_(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.mergeScan=void 0;var IV=W(),AV=Wf();function TV(e,t,n){return n===void 0&&(n=1/0),IV.operate(function(r,o){var i=t;return AV.mergeInternals(r,o,function(s,a){return e(i,s,a)},n,function(s){i=s},!1,void 0,function(){return i=null})})}mp.mergeScan=TV});var Mb=_(yo=>{"use strict";var MV=yo&&yo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},OV=yo&&yo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(yo,"__esModule",{value:!0});yo.merge=void 0;var PV=W(),CV=js(),JT=Xt(),DV=Er();function kV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=JT.popScheduler(e),r=JT.popNumber(e,1/0);return PV.operate(function(o,i){CV.mergeAll(r)(DV.from(OV([o],MV(e)),n)).subscribe(i)})}yo.merge=kV});var Ob=_(vo=>{"use strict";var RV=vo&&vo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},NV=vo&&vo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(vo,"__esModule",{value:!0});vo.mergeWith=void 0;var LV=Mb();function jV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return LV.merge.apply(void 0,NV([],RV(e)))}vo.mergeWith=jV});var Pb=_(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.min=void 0;var FV=fi(),qV=He();function BV(e){return FV.reduce(qV.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}yp.min=BV});var kc=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.multicast=void 0;var UV=xc(),XT=He(),HV=Dc();function $V(e,t){var n=XT.isFunction(e)?e:function(){return e};return XT.isFunction(t)?HV.connect(t,{connector:n}):function(r){return new UV.ConnectableObservable(r,n)}}vp.multicast=$V});var Cb=_(tr=>{"use strict";var KV=tr&&tr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},WV=tr&&tr.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(tr,"__esModule",{value:!0});tr.onErrorResumeNext=tr.onErrorResumeNextWith=void 0;var VV=li(),GV=Fv();function eM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=VV.argsOrArgArray(e);return function(r){return GV.onErrorResumeNext.apply(void 0,WV([r],KV(n)))}}tr.onErrorResumeNextWith=eM;tr.onErrorResumeNext=eM});var Db=_(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.pairwise=void 0;var zV=W(),YV=ee();function ZV(){return zV.operate(function(e,t){var n,r=!1;e.subscribe(YV.createOperatorSubscriber(t,function(o){var i=n;n=o,r&&t.next([i,o]),r=!0}))})}bp.pairwise=ZV});var kb=_(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.pluck=void 0;var QV=xr();function JV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return QV.map(function(r){for(var o=r,i=0;i<n;i++){var s=o?.[e[i]];if(typeof s<"u")o=s;else return}return o})}_p.pluck=JV});var Rb=_(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.publish=void 0;var XV=It(),eG=kc(),tG=Dc();function nG(e){return e?function(t){return tG.connect(e)(t)}:function(t){return eG.multicast(new XV.Subject)(t)}}wp.publish=nG});var Nb=_(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.publishBehavior=void 0;var rG=fv(),oG=xc();function iG(e){return function(t){var n=new rG.BehaviorSubject(e);return new oG.ConnectableObservable(t,function(){return n})}}Ep.publishBehavior=iG});var Lb=_(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.publishLast=void 0;var sG=tf(),aG=xc();function cG(){return function(e){var t=new sG.AsyncSubject;return new aG.ConnectableObservable(e,function(){return t})}}Sp.publishLast=cG});var jb=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.publishReplay=void 0;var uG=ef(),lG=kc(),tM=He();function fG(e,t,n,r){n&&!tM.isFunction(n)&&(r=n);var o=tM.isFunction(n)?n:void 0;return function(i){return lG.multicast(new uG.ReplaySubject(e,t,r),o)(i)}}xp.publishReplay=fG});var Ip=_(bo=>{"use strict";var dG=bo&&bo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},pG=bo&&bo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(bo,"__esModule",{value:!0});bo.raceWith=void 0;var hG=Bv(),gG=W(),mG=xt();function yG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?gG.operate(function(n,r){hG.raceInit(pG([n],dG(e)))(r)}):mG.identity}bo.raceWith=yG});var Fb=_(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.repeat=void 0;var vG=Rn(),bG=W(),nM=ee(),_G=me(),wG=uo();function EG(e){var t,n=1/0,r;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,r=e.delay):n=e),n<=0?function(){return vG.EMPTY}:bG.operate(function(o,i){var s=0,a,c=function(){if(a?.unsubscribe(),a=null,r!=null){var l=typeof r=="number"?wG.timer(r):_G.innerFrom(r(s)),f=nM.createOperatorSubscriber(i,function(){f.unsubscribe(),u()});l.subscribe(f)}else u()},u=function(){var l=!1;a=o.subscribe(nM.createOperatorSubscriber(i,void 0,function(){++s<n?a?c():l=!0:i.complete()})),l&&c()};u()})}Ap.repeat=EG});var qb=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.repeatWhen=void 0;var SG=me(),xG=It(),IG=W(),rM=ee();function AG(e){return IG.operate(function(t,n){var r,o=!1,i,s=!1,a=!1,c=function(){return a&&s&&(n.complete(),!0)},u=function(){return i||(i=new xG.Subject,SG.innerFrom(e(i)).subscribe(rM.createOperatorSubscriber(n,function(){r?l():o=!0},function(){s=!0,c()}))),i},l=function(){a=!1,r=t.subscribe(rM.createOperatorSubscriber(n,void 0,function(){a=!0,!c()&&u().next()})),o&&(r.unsubscribe(),r=null,o=!1,l())};l()})}Tp.repeatWhen=AG});var Bb=_(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.retry=void 0;var TG=W(),oM=ee(),MG=xt(),OG=uo(),PG=me();function CG(e){e===void 0&&(e=1/0);var t;e&&typeof e=="object"?t=e:t={count:e};var n=t.count,r=n===void 0?1/0:n,o=t.delay,i=t.resetOnSuccess,s=i===void 0?!1:i;return r<=0?MG.identity:TG.operate(function(a,c){var u=0,l,f=function(){var d=!1;l=a.subscribe(oM.createOperatorSubscriber(c,function(p){s&&(u=0),c.next(p)},void 0,function(p){if(u++<r){var h=function(){l?(l.unsubscribe(),l=null,f()):d=!0};if(o!=null){var m=typeof o=="number"?OG.timer(o):PG.innerFrom(o(p,u)),y=oM.createOperatorSubscriber(c,function(){y.unsubscribe(),h()},function(){c.complete()});m.subscribe(y)}else h()}else c.error(p)})),d&&(l.unsubscribe(),l=null,f())};f()})}Mp.retry=CG});var Ub=_(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.retryWhen=void 0;var DG=me(),kG=It(),RG=W(),iM=ee();function NG(e){return RG.operate(function(t,n){var r,o=!1,i,s=function(){r=t.subscribe(iM.createOperatorSubscriber(n,void 0,void 0,function(a){i||(i=new kG.Subject,DG.innerFrom(e(i)).subscribe(iM.createOperatorSubscriber(n,function(){return r?s():o=!0}))),i&&i.next(a)})),o&&(r.unsubscribe(),r=null,o=!1,s())};s()})}Op.retryWhen=NG});var Cp=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.sample=void 0;var LG=me(),jG=W(),FG=St(),sM=ee();function qG(e){return jG.operate(function(t,n){var r=!1,o=null;t.subscribe(sM.createOperatorSubscriber(n,function(i){r=!0,o=i})),LG.innerFrom(e).subscribe(sM.createOperatorSubscriber(n,function(){if(r){r=!1;var i=o;o=null,n.next(i)}},FG.noop))})}Pp.sample=qG});var Hb=_(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.sampleTime=void 0;var BG=Jt(),UG=Cp(),HG=Lv();function $G(e,t){return t===void 0&&(t=BG.asyncScheduler),UG.sample(HG.interval(e,t))}Dp.sampleTime=$G});var $b=_(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.scan=void 0;var KG=W(),WG=Zv();function VG(e,t){return KG.operate(WG.scanInternals(e,t,arguments.length>=2,!0))}kp.scan=VG});var Kb=_(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.sequenceEqual=void 0;var GG=W(),zG=ee(),YG=me();function ZG(e,t){return t===void 0&&(t=function(n,r){return n===r}),GG.operate(function(n,r){var o=aM(),i=aM(),s=function(c){r.next(c),r.complete()},a=function(c,u){var l=zG.createOperatorSubscriber(r,function(f){var d=u.buffer,p=u.complete;d.length===0?p?s(!1):c.buffer.push(f):!t(f,d.shift())&&s(!1)},function(){c.complete=!0;var f=u.complete,d=u.buffer;f&&s(d.length===0),l?.unsubscribe()});return l};n.subscribe(a(o,i)),YG.innerFrom(e).subscribe(a(i,o))})}Rp.sequenceEqual=ZG;function aM(){return{buffer:[],complete:!1}}});var Np=_(_o=>{"use strict";var QG=_o&&_o.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},JG=_o&&_o.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(_o,"__esModule",{value:!0});_o.share=void 0;var cM=me(),XG=It(),uM=ds(),e9=W();function t9(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new XG.Subject}:t,r=e.resetOnError,o=r===void 0?!0:r,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,c=a===void 0?!0:a;return function(u){var l,f,d,p=0,h=!1,m=!1,y=function(){f?.unsubscribe(),f=void 0},v=function(){y(),l=d=void 0,h=m=!1},w=function(){var A=l;v(),A?.unsubscribe()};return e9.operate(function(A,P){p++,!m&&!h&&y();var j=d=d??n();P.add(function(){p--,p===0&&!m&&!h&&(f=Wb(w,c))}),j.subscribe(P),!l&&p>0&&(l=new uM.SafeSubscriber({next:function(Q){return j.next(Q)},error:function(Q){m=!0,y(),f=Wb(v,o,Q),j.error(Q)},complete:function(){h=!0,y(),f=Wb(v,s),j.complete()}}),cM.innerFrom(A).subscribe(l))})(u)}}_o.share=t9;function Wb(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var o=new uM.SafeSubscriber({next:function(){o.unsubscribe(),e()}});return cM.innerFrom(t.apply(void 0,JG([],QG(n)))).subscribe(o)}}});var Vb=_(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.shareReplay=void 0;var n9=ef(),r9=Np();function o9(e,t,n){var r,o,i,s,a=!1;return e&&typeof e=="object"?(r=e.bufferSize,s=r===void 0?1/0:r,o=e.windowTime,t=o===void 0?1/0:o,i=e.refCount,a=i===void 0?!1:i,n=e.scheduler):s=e??1/0,r9.share({connector:function(){return new n9.ReplaySubject(s,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}Lp.shareReplay=o9});var Gb=_(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.single=void 0;var i9=io(),s9=Pv(),a9=Ov(),c9=W(),u9=ee();function l9(e){return c9.operate(function(t,n){var r=!1,o,i=!1,s=0;t.subscribe(u9.createOperatorSubscriber(n,function(a){i=!0,(!e||e(a,s++,t))&&(r&&n.error(new s9.SequenceError("Too many matching values")),r=!0,o=a)},function(){r?(n.next(o),n.complete()):n.error(i?new a9.NotFoundError("No matching values"):new i9.EmptyError)}))})}jp.single=l9});var zb=_(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.skip=void 0;var f9=Ir();function d9(e){return f9.filter(function(t,n){return e<=n})}Fp.skip=d9});var Yb=_(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.skipLast=void 0;var p9=xt(),h9=W(),g9=ee();function m9(e){return e<=0?p9.identity:h9.operate(function(t,n){var r=new Array(e),o=0;return t.subscribe(g9.createOperatorSubscriber(n,function(i){var s=o++;if(s<e)r[s]=i;else{var a=s%e,c=r[a];r[a]=i,n.next(c)}})),function(){r=null}})}qp.skipLast=m9});var Zb=_(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.skipUntil=void 0;var y9=W(),lM=ee(),v9=me(),b9=St();function _9(e){return y9.operate(function(t,n){var r=!1,o=lM.createOperatorSubscriber(n,function(){o?.unsubscribe(),r=!0},b9.noop);v9.innerFrom(e).subscribe(o),t.subscribe(lM.createOperatorSubscriber(n,function(i){return r&&n.next(i)}))})}Bp.skipUntil=_9});var Qb=_(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.skipWhile=void 0;var w9=W(),E9=ee();function S9(e){return w9.operate(function(t,n){var r=!1,o=0;t.subscribe(E9.createOperatorSubscriber(n,function(i){return(r||(r=!e(i,o++)))&&n.next(i)}))})}Up.skipWhile=S9});var Jb=_(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.startWith=void 0;var fM=Pc(),x9=Xt(),I9=W();function A9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x9.popScheduler(e);return I9.operate(function(r,o){(n?fM.concat(e,r,n):fM.concat(e,r)).subscribe(o)})}Hp.startWith=A9});var Ys=_($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.switchMap=void 0;var T9=me(),M9=W(),dM=ee();function O9(e,t){return M9.operate(function(n,r){var o=null,i=0,s=!1,a=function(){return s&&!o&&r.complete()};n.subscribe(dM.createOperatorSubscriber(r,function(c){o?.unsubscribe();var u=0,l=i++;T9.innerFrom(e(c,l)).subscribe(o=dM.createOperatorSubscriber(r,function(f){return r.next(t?t(c,f,l,u++):f)},function(){o=null,a()}))},function(){s=!0,a()}))})}$p.switchMap=O9});var Xb=_(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.switchAll=void 0;var P9=Ys(),C9=xt();function D9(){return P9.switchMap(C9.identity)}Kp.switchAll=D9});var e_=_(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.switchMapTo=void 0;var pM=Ys(),k9=He();function R9(e,t){return k9.isFunction(t)?pM.switchMap(function(){return e},t):pM.switchMap(function(){return e})}Wp.switchMapTo=R9});var t_=_(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.switchScan=void 0;var N9=Ys(),L9=W();function j9(e,t){return L9.operate(function(n,r){var o=t;return N9.switchMap(function(i,s){return e(o,i,s)},function(i,s){return o=s,s})(n).subscribe(r),function(){o=null}})}Vp.switchScan=j9});var n_=_(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.takeUntil=void 0;var F9=W(),q9=ee(),B9=me(),U9=St();function H9(e){return F9.operate(function(t,n){B9.innerFrom(e).subscribe(q9.createOperatorSubscriber(n,function(){return n.complete()},U9.noop)),!n.closed&&t.subscribe(n)})}Gp.takeUntil=H9});var r_=_(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.takeWhile=void 0;var $9=W(),K9=ee();function W9(e,t){return t===void 0&&(t=!1),$9.operate(function(n,r){var o=0;n.subscribe(K9.createOperatorSubscriber(r,function(i){var s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}zp.takeWhile=W9});var o_=_(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.tap=void 0;var V9=He(),G9=W(),z9=ee(),Y9=xt();function Z9(e,t,n){var r=V9.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return r?G9.operate(function(o,i){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var a=!0;o.subscribe(z9.createOperatorSubscriber(i,function(c){var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},function(){var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},function(c){var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},function(){var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Y9.identity}Yp.tap=Z9});var Qp=_(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.throttle=void 0;var Q9=W(),hM=ee(),J9=me();function X9(e,t){return Q9.operate(function(n,r){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,c=a===void 0?!1:a,u=!1,l=null,f=null,d=!1,p=function(){f?.unsubscribe(),f=null,c&&(y(),d&&r.complete())},h=function(){f=null,d&&r.complete()},m=function(v){return f=J9.innerFrom(e(v)).subscribe(hM.createOperatorSubscriber(r,p,h))},y=function(){if(u){u=!1;var v=l;l=null,r.next(v),!d&&m(v)}};n.subscribe(hM.createOperatorSubscriber(r,function(v){u=!0,l=v,!(f&&!f.closed)&&(s?y():m(v))},function(){d=!0,!(c&&u&&f&&!f.closed)&&r.complete()}))})}Zp.throttle=X9});var i_=_(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.throttleTime=void 0;var e7=Jt(),t7=Qp(),n7=uo();function r7(e,t,n){t===void 0&&(t=e7.asyncScheduler);var r=n7.timer(e,t);return t7.throttle(function(){return r},n)}Jp.throttleTime=r7});var s_=_(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.TimeInterval=Zs.timeInterval=void 0;var o7=Jt(),i7=W(),s7=ee();function a7(e){return e===void 0&&(e=o7.asyncScheduler),i7.operate(function(t,n){var r=e.now();t.subscribe(s7.createOperatorSubscriber(n,function(o){var i=e.now(),s=i-r;r=i,n.next(new gM(o,s))}))})}Zs.timeInterval=a7;var gM=(function(){function e(t,n){this.value=t,this.interval=n}return e})();Zs.TimeInterval=gM});var a_=_(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.timeoutWith=void 0;var c7=Jt(),u7=jf(),l7=Mc();function f7(e,t,n){var r,o,i;if(n=n??c7.async,u7.isValidDate(e)?r=e:typeof e=="number"&&(o=e),t)i=function(){return t};else throw new TypeError("No observable provided to switch to");if(r==null&&o==null)throw new TypeError("No timeout provided.");return l7.timeout({first:r,each:o,scheduler:n,with:i})}Xp.timeoutWith=f7});var c_=_(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.timestamp=void 0;var d7=Xl(),p7=xr();function h7(e){return e===void 0&&(e=d7.dateTimestampProvider),p7.map(function(t){return{value:t,timestamp:e.now()}})}eh.timestamp=h7});var u_=_(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.window=void 0;var mM=It(),g7=W(),yM=ee(),m7=St(),y7=me();function v7(e){return g7.operate(function(t,n){var r=new mM.Subject;n.next(r.asObservable());var o=function(i){r.error(i),n.error(i)};return t.subscribe(yM.createOperatorSubscriber(n,function(i){return r?.next(i)},function(){r.complete(),n.complete()},o)),y7.innerFrom(e).subscribe(yM.createOperatorSubscriber(n,function(){r.complete(),n.next(r=new mM.Subject)},m7.noop,o)),function(){r?.unsubscribe(),r=null}})}th.window=v7});var l_=_(Qs=>{"use strict";var b7=Qs&&Qs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.windowCount=void 0;var vM=It(),_7=W(),w7=ee();function E7(e,t){t===void 0&&(t=0);var n=t>0?t:e;return _7.operate(function(r,o){var i=[new vM.Subject],s=[],a=0;o.next(i[0].asObservable()),r.subscribe(w7.createOperatorSubscriber(o,function(c){var u,l;try{for(var f=b7(i),d=f.next();!d.done;d=f.next()){var p=d.value;p.next(c)}}catch(y){u={error:y}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(u)throw u.error}}var h=a-e+1;if(h>=0&&h%n===0&&i.shift().complete(),++a%n===0){var m=new vM.Subject;i.push(m),o.next(m.asObservable())}},function(){for(;i.length>0;)i.shift().complete();o.complete()},function(c){for(;i.length>0;)i.shift().error(c);o.error(c)},function(){s=null,i=null}))})}Qs.windowCount=E7});var f_=_(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.windowTime=void 0;var S7=It(),x7=Jt(),I7=dn(),A7=W(),T7=ee(),M7=_r(),O7=Xt(),bM=wr();function P7(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=(t=O7.popScheduler(r))!==null&&t!==void 0?t:x7.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return A7.operate(function(c,u){var l=[],f=!1,d=function(y){var v=y.window,w=y.subs;v.complete(),w.unsubscribe(),M7.arrRemove(l,y),f&&p()},p=function(){if(l){var y=new I7.Subscription;u.add(y);var v=new S7.Subject,w={window:v,subs:y,seen:0};l.push(w),u.next(v.asObservable()),bM.executeSchedule(y,i,function(){return d(w)},e)}};s!==null&&s>=0?bM.executeSchedule(u,i,p,s,!0):f=!0,p();var h=function(y){return l.slice().forEach(y)},m=function(y){h(function(v){var w=v.window;return y(w)}),y(u),u.unsubscribe()};return c.subscribe(T7.createOperatorSubscriber(u,function(y){h(function(v){v.window.next(y),a<=++v.seen&&d(v)})},function(){return m(function(y){return y.complete()})},function(y){return m(function(v){return v.error(y)})})),function(){l=null}})}nh.windowTime=P7});var p_=_(Js=>{"use strict";var C7=Js&&Js.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Js,"__esModule",{value:!0});Js.windowToggle=void 0;var D7=It(),k7=dn(),R7=W(),_M=me(),d_=ee(),wM=St(),N7=_r();function L7(e,t){return R7.operate(function(n,r){var o=[],i=function(s){for(;0<o.length;)o.shift().error(s);r.error(s)};_M.innerFrom(e).subscribe(d_.createOperatorSubscriber(r,function(s){var a=new D7.Subject;o.push(a);var c=new k7.Subscription,u=function(){N7.arrRemove(o,a),a.complete(),c.unsubscribe()},l;try{l=_M.innerFrom(t(s))}catch(f){i(f);return}r.next(a.asObservable()),c.add(l.subscribe(d_.createOperatorSubscriber(r,u,wM.noop,i)))},wM.noop)),n.subscribe(d_.createOperatorSubscriber(r,function(s){var a,c,u=o.slice();try{for(var l=C7(u),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(s)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(a)throw a.error}}},function(){for(;0<o.length;)o.shift().complete();r.complete()},i,function(){for(;0<o.length;)o.shift().unsubscribe()}))})}Js.windowToggle=L7});var h_=_(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.windowWhen=void 0;var j7=It(),F7=W(),EM=ee(),q7=me();function B7(e){return F7.operate(function(t,n){var r,o,i=function(a){r.error(a),n.error(a)},s=function(){o?.unsubscribe(),r?.complete(),r=new j7.Subject,n.next(r.asObservable());var a;try{a=q7.innerFrom(e())}catch(c){i(c);return}a.subscribe(o=EM.createOperatorSubscriber(n,s,s,i))};s(),t.subscribe(EM.createOperatorSubscriber(n,function(a){return r.next(a)},function(){r.complete(),n.complete()},i,function(){o?.unsubscribe(),r=null}))})}rh.windowWhen=B7});var g_=_(wo=>{"use strict";var SM=wo&&wo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},xM=wo&&wo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(wo,"__esModule",{value:!0});wo.withLatestFrom=void 0;var U7=W(),IM=ee(),H7=me(),$7=xt(),K7=St(),W7=Xt();function V7(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=W7.popResultSelector(e);return U7.operate(function(r,o){for(var i=e.length,s=new Array(i),a=e.map(function(){return!1}),c=!1,u=function(f){H7.innerFrom(e[f]).subscribe(IM.createOperatorSubscriber(o,function(d){s[f]=d,!c&&!a[f]&&(a[f]=!0,(c=a.every($7.identity))&&(a=null))},K7.noop))},l=0;l<i;l++)u(l);r.subscribe(IM.createOperatorSubscriber(o,function(f){if(c){var d=xM([f],SM(s));o.next(n?n.apply(void 0,xM([],SM(d))):d)}}))})}wo.withLatestFrom=V7});var m_=_(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.zipAll=void 0;var G7=dd(),z7=Qv();function Y7(e){return z7.joinAllInternals(G7.zip,e)}oh.zipAll=Y7});var y_=_(Eo=>{"use strict";var Z7=Eo&&Eo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Q7=Eo&&Eo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.zip=void 0;var J7=dd(),X7=W();function ez(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return X7.operate(function(n,r){J7.zip.apply(void 0,Q7([n],Z7(e))).subscribe(r)})}Eo.zip=ez});var v_=_(So=>{"use strict";var tz=So&&So.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},nz=So&&So.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(So,"__esModule",{value:!0});So.zipWith=void 0;var rz=y_();function oz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rz.zip.apply(void 0,nz([],tz(e)))}So.zipWith=oz});var Rc=_(g=>{"use strict";var iz=g&&g.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),sz=g&&g.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iz(t,e,n)};Object.defineProperty(g,"__esModule",{value:!0});g.interval=g.iif=g.generate=g.fromEventPattern=g.fromEvent=g.from=g.forkJoin=g.empty=g.defer=g.connectable=g.concat=g.combineLatest=g.bindNodeCallback=g.bindCallback=g.UnsubscriptionError=g.TimeoutError=g.SequenceError=g.ObjectUnsubscribedError=g.NotFoundError=g.EmptyError=g.ArgumentOutOfRangeError=g.firstValueFrom=g.lastValueFrom=g.isObservable=g.identity=g.noop=g.pipe=g.NotificationKind=g.Notification=g.Subscriber=g.Subscription=g.Scheduler=g.VirtualAction=g.VirtualTimeScheduler=g.animationFrameScheduler=g.animationFrame=g.queueScheduler=g.queue=g.asyncScheduler=g.async=g.asapScheduler=g.asap=g.AsyncSubject=g.ReplaySubject=g.BehaviorSubject=g.Subject=g.animationFrames=g.observable=g.ConnectableObservable=g.Observable=void 0;g.filter=g.expand=g.exhaustMap=g.exhaustAll=g.exhaust=g.every=g.endWith=g.elementAt=g.distinctUntilKeyChanged=g.distinctUntilChanged=g.distinct=g.dematerialize=g.delayWhen=g.delay=g.defaultIfEmpty=g.debounceTime=g.debounce=g.count=g.connect=g.concatWith=g.concatMapTo=g.concatMap=g.concatAll=g.combineLatestWith=g.combineLatestAll=g.combineAll=g.catchError=g.bufferWhen=g.bufferToggle=g.bufferTime=g.bufferCount=g.buffer=g.auditTime=g.audit=g.config=g.NEVER=g.EMPTY=g.scheduled=g.zip=g.using=g.timer=g.throwError=g.range=g.race=g.partition=g.pairs=g.onErrorResumeNext=g.of=g.never=g.merge=void 0;g.switchMap=g.switchAll=g.subscribeOn=g.startWith=g.skipWhile=g.skipUntil=g.skipLast=g.skip=g.single=g.shareReplay=g.share=g.sequenceEqual=g.scan=g.sampleTime=g.sample=g.refCount=g.retryWhen=g.retry=g.repeatWhen=g.repeat=g.reduce=g.raceWith=g.publishReplay=g.publishLast=g.publishBehavior=g.publish=g.pluck=g.pairwise=g.onErrorResumeNextWith=g.observeOn=g.multicast=g.min=g.mergeWith=g.mergeScan=g.mergeMapTo=g.mergeMap=g.flatMap=g.mergeAll=g.max=g.materialize=g.mapTo=g.map=g.last=g.isEmpty=g.ignoreElements=g.groupBy=g.first=g.findIndex=g.find=g.finalize=void 0;g.zipWith=g.zipAll=g.withLatestFrom=g.windowWhen=g.windowToggle=g.windowTime=g.windowCount=g.window=g.toArray=g.timestamp=g.timeoutWith=g.timeout=g.timeInterval=g.throwIfEmpty=g.throttleTime=g.throttle=g.tap=g.takeWhile=g.takeUntil=g.takeLast=g.take=g.switchScan=g.switchMapTo=void 0;var az=Ke();Object.defineProperty(g,"Observable",{enumerable:!0,get:function(){return az.Observable}});var cz=xc();Object.defineProperty(g,"ConnectableObservable",{enumerable:!0,get:function(){return cz.ConnectableObservable}});var uz=Ec();Object.defineProperty(g,"observable",{enumerable:!0,get:function(){return uz.observable}});var lz=rA();Object.defineProperty(g,"animationFrames",{enumerable:!0,get:function(){return lz.animationFrames}});var fz=It();Object.defineProperty(g,"Subject",{enumerable:!0,get:function(){return fz.Subject}});var dz=fv();Object.defineProperty(g,"BehaviorSubject",{enumerable:!0,get:function(){return dz.BehaviorSubject}});var pz=ef();Object.defineProperty(g,"ReplaySubject",{enumerable:!0,get:function(){return pz.ReplaySubject}});var hz=tf();Object.defineProperty(g,"AsyncSubject",{enumerable:!0,get:function(){return hz.AsyncSubject}});var AM=_A();Object.defineProperty(g,"asap",{enumerable:!0,get:function(){return AM.asap}});Object.defineProperty(g,"asapScheduler",{enumerable:!0,get:function(){return AM.asapScheduler}});var TM=Jt();Object.defineProperty(g,"async",{enumerable:!0,get:function(){return TM.async}});Object.defineProperty(g,"asyncScheduler",{enumerable:!0,get:function(){return TM.asyncScheduler}});var MM=SA();Object.defineProperty(g,"queue",{enumerable:!0,get:function(){return MM.queue}});Object.defineProperty(g,"queueScheduler",{enumerable:!0,get:function(){return MM.queueScheduler}});var OM=TA();Object.defineProperty(g,"animationFrame",{enumerable:!0,get:function(){return OM.animationFrame}});Object.defineProperty(g,"animationFrameScheduler",{enumerable:!0,get:function(){return OM.animationFrameScheduler}});var PM=PA();Object.defineProperty(g,"VirtualTimeScheduler",{enumerable:!0,get:function(){return PM.VirtualTimeScheduler}});Object.defineProperty(g,"VirtualAction",{enumerable:!0,get:function(){return PM.VirtualAction}});var gz=pv();Object.defineProperty(g,"Scheduler",{enumerable:!0,get:function(){return gz.Scheduler}});var mz=dn();Object.defineProperty(g,"Subscription",{enumerable:!0,get:function(){return mz.Subscription}});var yz=ds();Object.defineProperty(g,"Subscriber",{enumerable:!0,get:function(){return yz.Subscriber}});var CM=Mf();Object.defineProperty(g,"Notification",{enumerable:!0,get:function(){return CM.Notification}});Object.defineProperty(g,"NotificationKind",{enumerable:!0,get:function(){return CM.NotificationKind}});var vz=Sc();Object.defineProperty(g,"pipe",{enumerable:!0,get:function(){return vz.pipe}});var bz=St();Object.defineProperty(g,"noop",{enumerable:!0,get:function(){return bz.noop}});var _z=xt();Object.defineProperty(g,"identity",{enumerable:!0,get:function(){return _z.identity}});var wz=GA();Object.defineProperty(g,"isObservable",{enumerable:!0,get:function(){return wz.isObservable}});var Ez=zA();Object.defineProperty(g,"lastValueFrom",{enumerable:!0,get:function(){return Ez.lastValueFrom}});var Sz=YA();Object.defineProperty(g,"firstValueFrom",{enumerable:!0,get:function(){return Sz.firstValueFrom}});var xz=Mv();Object.defineProperty(g,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return xz.ArgumentOutOfRangeError}});var Iz=io();Object.defineProperty(g,"EmptyError",{enumerable:!0,get:function(){return Iz.EmptyError}});var Az=Ov();Object.defineProperty(g,"NotFoundError",{enumerable:!0,get:function(){return Az.NotFoundError}});var Tz=av();Object.defineProperty(g,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return Tz.ObjectUnsubscribedError}});var Mz=Pv();Object.defineProperty(g,"SequenceError",{enumerable:!0,get:function(){return Mz.SequenceError}});var Oz=Mc();Object.defineProperty(g,"TimeoutError",{enumerable:!0,get:function(){return Oz.TimeoutError}});var Pz=Yy();Object.defineProperty(g,"UnsubscriptionError",{enumerable:!0,get:function(){return Pz.UnsubscriptionError}});var Cz=QA();Object.defineProperty(g,"bindCallback",{enumerable:!0,get:function(){return Cz.bindCallback}});var Dz=JA();Object.defineProperty(g,"bindNodeCallback",{enumerable:!0,get:function(){return Dz.bindNodeCallback}});var kz=$f();Object.defineProperty(g,"combineLatest",{enumerable:!0,get:function(){return kz.combineLatest}});var Rz=Pc();Object.defineProperty(g,"concat",{enumerable:!0,get:function(){return Rz.concat}});var Nz=sT();Object.defineProperty(g,"connectable",{enumerable:!0,get:function(){return Nz.connectable}});var Lz=Cc();Object.defineProperty(g,"defer",{enumerable:!0,get:function(){return Lz.defer}});var jz=Rn();Object.defineProperty(g,"empty",{enumerable:!0,get:function(){return jz.empty}});var Fz=aT();Object.defineProperty(g,"forkJoin",{enumerable:!0,get:function(){return Fz.forkJoin}});var qz=Er();Object.defineProperty(g,"from",{enumerable:!0,get:function(){return qz.from}});var Bz=uT();Object.defineProperty(g,"fromEvent",{enumerable:!0,get:function(){return Bz.fromEvent}});var Uz=fT();Object.defineProperty(g,"fromEventPattern",{enumerable:!0,get:function(){return Uz.fromEventPattern}});var Hz=pT();Object.defineProperty(g,"generate",{enumerable:!0,get:function(){return Hz.generate}});var $z=hT();Object.defineProperty(g,"iif",{enumerable:!0,get:function(){return $z.iif}});var Kz=Lv();Object.defineProperty(g,"interval",{enumerable:!0,get:function(){return Kz.interval}});var Wz=mT();Object.defineProperty(g,"merge",{enumerable:!0,get:function(){return Wz.merge}});var Vz=jv();Object.defineProperty(g,"never",{enumerable:!0,get:function(){return Vz.never}});var Gz=Af();Object.defineProperty(g,"of",{enumerable:!0,get:function(){return Gz.of}});var zz=Fv();Object.defineProperty(g,"onErrorResumeNext",{enumerable:!0,get:function(){return zz.onErrorResumeNext}});var Yz=vT();Object.defineProperty(g,"pairs",{enumerable:!0,get:function(){return Yz.pairs}});var Zz=wT();Object.defineProperty(g,"partition",{enumerable:!0,get:function(){return Zz.partition}});var Qz=Bv();Object.defineProperty(g,"race",{enumerable:!0,get:function(){return Qz.race}});var Jz=xT();Object.defineProperty(g,"range",{enumerable:!0,get:function(){return Jz.range}});var Xz=Tv();Object.defineProperty(g,"throwError",{enumerable:!0,get:function(){return Xz.throwError}});var eY=uo();Object.defineProperty(g,"timer",{enumerable:!0,get:function(){return eY.timer}});var tY=IT();Object.defineProperty(g,"using",{enumerable:!0,get:function(){return tY.using}});var nY=dd();Object.defineProperty(g,"zip",{enumerable:!0,get:function(){return nY.zip}});var rY=Av();Object.defineProperty(g,"scheduled",{enumerable:!0,get:function(){return rY.scheduled}});var oY=Rn();Object.defineProperty(g,"EMPTY",{enumerable:!0,get:function(){return oY.EMPTY}});var iY=jv();Object.defineProperty(g,"NEVER",{enumerable:!0,get:function(){return iY.NEVER}});sz(TT(),g);var sY=ls();Object.defineProperty(g,"config",{enumerable:!0,get:function(){return sY.config}});var aY=hd();Object.defineProperty(g,"audit",{enumerable:!0,get:function(){return aY.audit}});var cY=Uv();Object.defineProperty(g,"auditTime",{enumerable:!0,get:function(){return cY.auditTime}});var uY=Hv();Object.defineProperty(g,"buffer",{enumerable:!0,get:function(){return uY.buffer}});var lY=Kv();Object.defineProperty(g,"bufferCount",{enumerable:!0,get:function(){return lY.bufferCount}});var fY=Wv();Object.defineProperty(g,"bufferTime",{enumerable:!0,get:function(){return fY.bufferTime}});var dY=Gv();Object.defineProperty(g,"bufferToggle",{enumerable:!0,get:function(){return dY.bufferToggle}});var pY=zv();Object.defineProperty(g,"bufferWhen",{enumerable:!0,get:function(){return pY.bufferWhen}});var hY=Yv();Object.defineProperty(g,"catchError",{enumerable:!0,get:function(){return hY.catchError}});var gY=Jv();Object.defineProperty(g,"combineAll",{enumerable:!0,get:function(){return gY.combineAll}});var mY=Id();Object.defineProperty(g,"combineLatestAll",{enumerable:!0,get:function(){return mY.combineLatestAll}});var yY=eb();Object.defineProperty(g,"combineLatestWith",{enumerable:!0,get:function(){return yY.combineLatestWith}});var vY=Oc();Object.defineProperty(g,"concatAll",{enumerable:!0,get:function(){return vY.concatAll}});var bY=Md();Object.defineProperty(g,"concatMap",{enumerable:!0,get:function(){return bY.concatMap}});var _Y=tb();Object.defineProperty(g,"concatMapTo",{enumerable:!0,get:function(){return _Y.concatMapTo}});var wY=rb();Object.defineProperty(g,"concatWith",{enumerable:!0,get:function(){return wY.concatWith}});var EY=Dc();Object.defineProperty(g,"connect",{enumerable:!0,get:function(){return EY.connect}});var SY=ob();Object.defineProperty(g,"count",{enumerable:!0,get:function(){return SY.count}});var xY=ib();Object.defineProperty(g,"debounce",{enumerable:!0,get:function(){return xY.debounce}});var IY=sb();Object.defineProperty(g,"debounceTime",{enumerable:!0,get:function(){return IY.debounceTime}});var AY=Ks();Object.defineProperty(g,"defaultIfEmpty",{enumerable:!0,get:function(){return AY.defaultIfEmpty}});var TY=ab();Object.defineProperty(g,"delay",{enumerable:!0,get:function(){return TY.delay}});var MY=Hd();Object.defineProperty(g,"delayWhen",{enumerable:!0,get:function(){return MY.delayWhen}});var OY=cb();Object.defineProperty(g,"dematerialize",{enumerable:!0,get:function(){return OY.dematerialize}});var PY=ub();Object.defineProperty(g,"distinct",{enumerable:!0,get:function(){return PY.distinct}});var CY=Gd();Object.defineProperty(g,"distinctUntilChanged",{enumerable:!0,get:function(){return CY.distinctUntilChanged}});var DY=lb();Object.defineProperty(g,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return DY.distinctUntilKeyChanged}});var kY=fb();Object.defineProperty(g,"elementAt",{enumerable:!0,get:function(){return kY.elementAt}});var RY=db();Object.defineProperty(g,"endWith",{enumerable:!0,get:function(){return RY.endWith}});var NY=pb();Object.defineProperty(g,"every",{enumerable:!0,get:function(){return NY.every}});var LY=hb();Object.defineProperty(g,"exhaust",{enumerable:!0,get:function(){return LY.exhaust}});var jY=tp();Object.defineProperty(g,"exhaustAll",{enumerable:!0,get:function(){return jY.exhaustAll}});var FY=Xd();Object.defineProperty(g,"exhaustMap",{enumerable:!0,get:function(){return FY.exhaustMap}});var qY=gb();Object.defineProperty(g,"expand",{enumerable:!0,get:function(){return qY.expand}});var BY=Ir();Object.defineProperty(g,"filter",{enumerable:!0,get:function(){return BY.filter}});var UY=mb();Object.defineProperty(g,"finalize",{enumerable:!0,get:function(){return UY.finalize}});var HY=ip();Object.defineProperty(g,"find",{enumerable:!0,get:function(){return HY.find}});var $Y=yb();Object.defineProperty(g,"findIndex",{enumerable:!0,get:function(){return $Y.findIndex}});var KY=vb();Object.defineProperty(g,"first",{enumerable:!0,get:function(){return KY.first}});var WY=bb();Object.defineProperty(g,"groupBy",{enumerable:!0,get:function(){return WY.groupBy}});var VY=Fd();Object.defineProperty(g,"ignoreElements",{enumerable:!0,get:function(){return VY.ignoreElements}});var GY=_b();Object.defineProperty(g,"isEmpty",{enumerable:!0,get:function(){return GY.isEmpty}});var zY=wb();Object.defineProperty(g,"last",{enumerable:!0,get:function(){return zY.last}});var YY=xr();Object.defineProperty(g,"map",{enumerable:!0,get:function(){return YY.map}});var ZY=Bd();Object.defineProperty(g,"mapTo",{enumerable:!0,get:function(){return ZY.mapTo}});var QY=Sb();Object.defineProperty(g,"materialize",{enumerable:!0,get:function(){return QY.materialize}});var JY=xb();Object.defineProperty(g,"max",{enumerable:!0,get:function(){return JY.max}});var XY=js();Object.defineProperty(g,"mergeAll",{enumerable:!0,get:function(){return XY.mergeAll}});var eZ=Ib();Object.defineProperty(g,"flatMap",{enumerable:!0,get:function(){return eZ.flatMap}});var tZ=er();Object.defineProperty(g,"mergeMap",{enumerable:!0,get:function(){return tZ.mergeMap}});var nZ=Ab();Object.defineProperty(g,"mergeMapTo",{enumerable:!0,get:function(){return nZ.mergeMapTo}});var rZ=Tb();Object.defineProperty(g,"mergeScan",{enumerable:!0,get:function(){return rZ.mergeScan}});var oZ=Ob();Object.defineProperty(g,"mergeWith",{enumerable:!0,get:function(){return oZ.mergeWith}});var iZ=Pb();Object.defineProperty(g,"min",{enumerable:!0,get:function(){return iZ.min}});var sZ=kc();Object.defineProperty(g,"multicast",{enumerable:!0,get:function(){return sZ.multicast}});var aZ=Rs();Object.defineProperty(g,"observeOn",{enumerable:!0,get:function(){return aZ.observeOn}});var cZ=Cb();Object.defineProperty(g,"onErrorResumeNextWith",{enumerable:!0,get:function(){return cZ.onErrorResumeNextWith}});var uZ=Db();Object.defineProperty(g,"pairwise",{enumerable:!0,get:function(){return uZ.pairwise}});var lZ=kb();Object.defineProperty(g,"pluck",{enumerable:!0,get:function(){return lZ.pluck}});var fZ=Rb();Object.defineProperty(g,"publish",{enumerable:!0,get:function(){return fZ.publish}});var dZ=Nb();Object.defineProperty(g,"publishBehavior",{enumerable:!0,get:function(){return dZ.publishBehavior}});var pZ=Lb();Object.defineProperty(g,"publishLast",{enumerable:!0,get:function(){return pZ.publishLast}});var hZ=jb();Object.defineProperty(g,"publishReplay",{enumerable:!0,get:function(){return hZ.publishReplay}});var gZ=Ip();Object.defineProperty(g,"raceWith",{enumerable:!0,get:function(){return gZ.raceWith}});var mZ=fi();Object.defineProperty(g,"reduce",{enumerable:!0,get:function(){return mZ.reduce}});var yZ=Fb();Object.defineProperty(g,"repeat",{enumerable:!0,get:function(){return yZ.repeat}});var vZ=qb();Object.defineProperty(g,"repeatWhen",{enumerable:!0,get:function(){return vZ.repeatWhen}});var bZ=Bb();Object.defineProperty(g,"retry",{enumerable:!0,get:function(){return bZ.retry}});var _Z=Ub();Object.defineProperty(g,"retryWhen",{enumerable:!0,get:function(){return _Z.retryWhen}});var wZ=Zl();Object.defineProperty(g,"refCount",{enumerable:!0,get:function(){return wZ.refCount}});var EZ=Cp();Object.defineProperty(g,"sample",{enumerable:!0,get:function(){return EZ.sample}});var SZ=Hb();Object.defineProperty(g,"sampleTime",{enumerable:!0,get:function(){return SZ.sampleTime}});var xZ=$b();Object.defineProperty(g,"scan",{enumerable:!0,get:function(){return xZ.scan}});var IZ=Kb();Object.defineProperty(g,"sequenceEqual",{enumerable:!0,get:function(){return IZ.sequenceEqual}});var AZ=Np();Object.defineProperty(g,"share",{enumerable:!0,get:function(){return AZ.share}});var TZ=Vb();Object.defineProperty(g,"shareReplay",{enumerable:!0,get:function(){return TZ.shareReplay}});var MZ=Gb();Object.defineProperty(g,"single",{enumerable:!0,get:function(){return MZ.single}});var OZ=zb();Object.defineProperty(g,"skip",{enumerable:!0,get:function(){return OZ.skip}});var PZ=Yb();Object.defineProperty(g,"skipLast",{enumerable:!0,get:function(){return PZ.skipLast}});var CZ=Zb();Object.defineProperty(g,"skipUntil",{enumerable:!0,get:function(){return CZ.skipUntil}});var DZ=Qb();Object.defineProperty(g,"skipWhile",{enumerable:!0,get:function(){return DZ.skipWhile}});var kZ=Jb();Object.defineProperty(g,"startWith",{enumerable:!0,get:function(){return kZ.startWith}});var RZ=Ns();Object.defineProperty(g,"subscribeOn",{enumerable:!0,get:function(){return RZ.subscribeOn}});var NZ=Xb();Object.defineProperty(g,"switchAll",{enumerable:!0,get:function(){return NZ.switchAll}});var LZ=Ys();Object.defineProperty(g,"switchMap",{enumerable:!0,get:function(){return LZ.switchMap}});var jZ=e_();Object.defineProperty(g,"switchMapTo",{enumerable:!0,get:function(){return jZ.switchMapTo}});var FZ=t_();Object.defineProperty(g,"switchScan",{enumerable:!0,get:function(){return FZ.switchScan}});var qZ=Ws();Object.defineProperty(g,"take",{enumerable:!0,get:function(){return qZ.take}});var BZ=lp();Object.defineProperty(g,"takeLast",{enumerable:!0,get:function(){return BZ.takeLast}});var UZ=n_();Object.defineProperty(g,"takeUntil",{enumerable:!0,get:function(){return UZ.takeUntil}});var HZ=r_();Object.defineProperty(g,"takeWhile",{enumerable:!0,get:function(){return HZ.takeWhile}});var $Z=o_();Object.defineProperty(g,"tap",{enumerable:!0,get:function(){return $Z.tap}});var KZ=Qp();Object.defineProperty(g,"throttle",{enumerable:!0,get:function(){return KZ.throttle}});var WZ=i_();Object.defineProperty(g,"throttleTime",{enumerable:!0,get:function(){return WZ.throttleTime}});var VZ=Vs();Object.defineProperty(g,"throwIfEmpty",{enumerable:!0,get:function(){return VZ.throwIfEmpty}});var GZ=s_();Object.defineProperty(g,"timeInterval",{enumerable:!0,get:function(){return GZ.timeInterval}});var zZ=Mc();Object.defineProperty(g,"timeout",{enumerable:!0,get:function(){return zZ.timeout}});var YZ=a_();Object.defineProperty(g,"timeoutWith",{enumerable:!0,get:function(){return YZ.timeoutWith}});var ZZ=c_();Object.defineProperty(g,"timestamp",{enumerable:!0,get:function(){return ZZ.timestamp}});var QZ=Ed();Object.defineProperty(g,"toArray",{enumerable:!0,get:function(){return QZ.toArray}});var JZ=u_();Object.defineProperty(g,"window",{enumerable:!0,get:function(){return JZ.window}});var XZ=l_();Object.defineProperty(g,"windowCount",{enumerable:!0,get:function(){return XZ.windowCount}});var eQ=f_();Object.defineProperty(g,"windowTime",{enumerable:!0,get:function(){return eQ.windowTime}});var tQ=p_();Object.defineProperty(g,"windowToggle",{enumerable:!0,get:function(){return tQ.windowToggle}});var nQ=h_();Object.defineProperty(g,"windowWhen",{enumerable:!0,get:function(){return nQ.windowWhen}});var rQ=g_();Object.defineProperty(g,"withLatestFrom",{enumerable:!0,get:function(){return rQ.withLatestFrom}});var oQ=m_();Object.defineProperty(g,"zipAll",{enumerable:!0,get:function(){return oQ.zipAll}});var iQ=v_();Object.defineProperty(g,"zipWith",{enumerable:!0,get:function(){return iQ.zipWith}})});var IO=_(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.partition=void 0;var $Q=qv(),xO=Ir();function KQ(e,t){return function(n){return[xO.filter(e,t)(n),xO.filter($Q.not(e,t))(n)]}}Gh.partition=KQ});var AO=_(Lo=>{"use strict";var WQ=Lo&&Lo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},VQ=Lo&&Lo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.race=void 0;var GQ=li(),zQ=Ip();function YQ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zQ.raceWith.apply(void 0,VQ([],WQ(GQ.argsOrArgArray(e))))}Lo.race=YQ});var TO=_(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.mergeAll=b.merge=b.max=b.materialize=b.mapTo=b.map=b.last=b.isEmpty=b.ignoreElements=b.groupBy=b.first=b.findIndex=b.find=b.finalize=b.filter=b.expand=b.exhaustMap=b.exhaustAll=b.exhaust=b.every=b.endWith=b.elementAt=b.distinctUntilKeyChanged=b.distinctUntilChanged=b.distinct=b.dematerialize=b.delayWhen=b.delay=b.defaultIfEmpty=b.debounceTime=b.debounce=b.count=b.connect=b.concatWith=b.concatMapTo=b.concatMap=b.concatAll=b.concat=b.combineLatestWith=b.combineLatest=b.combineLatestAll=b.combineAll=b.catchError=b.bufferWhen=b.bufferToggle=b.bufferTime=b.bufferCount=b.buffer=b.auditTime=b.audit=void 0;b.timeInterval=b.throwIfEmpty=b.throttleTime=b.throttle=b.tap=b.takeWhile=b.takeUntil=b.takeLast=b.take=b.switchScan=b.switchMapTo=b.switchMap=b.switchAll=b.subscribeOn=b.startWith=b.skipWhile=b.skipUntil=b.skipLast=b.skip=b.single=b.shareReplay=b.share=b.sequenceEqual=b.scan=b.sampleTime=b.sample=b.refCount=b.retryWhen=b.retry=b.repeatWhen=b.repeat=b.reduce=b.raceWith=b.race=b.publishReplay=b.publishLast=b.publishBehavior=b.publish=b.pluck=b.partition=b.pairwise=b.onErrorResumeNext=b.observeOn=b.multicast=b.min=b.mergeWith=b.mergeScan=b.mergeMapTo=b.mergeMap=b.flatMap=void 0;b.zipWith=b.zipAll=b.zip=b.withLatestFrom=b.windowWhen=b.windowToggle=b.windowTime=b.windowCount=b.window=b.toArray=b.timestamp=b.timeoutWith=b.timeout=void 0;var ZQ=hd();Object.defineProperty(b,"audit",{enumerable:!0,get:function(){return ZQ.audit}});var QQ=Uv();Object.defineProperty(b,"auditTime",{enumerable:!0,get:function(){return QQ.auditTime}});var JQ=Hv();Object.defineProperty(b,"buffer",{enumerable:!0,get:function(){return JQ.buffer}});var XQ=Kv();Object.defineProperty(b,"bufferCount",{enumerable:!0,get:function(){return XQ.bufferCount}});var eJ=Wv();Object.defineProperty(b,"bufferTime",{enumerable:!0,get:function(){return eJ.bufferTime}});var tJ=Gv();Object.defineProperty(b,"bufferToggle",{enumerable:!0,get:function(){return tJ.bufferToggle}});var nJ=zv();Object.defineProperty(b,"bufferWhen",{enumerable:!0,get:function(){return nJ.bufferWhen}});var rJ=Yv();Object.defineProperty(b,"catchError",{enumerable:!0,get:function(){return rJ.catchError}});var oJ=Jv();Object.defineProperty(b,"combineAll",{enumerable:!0,get:function(){return oJ.combineAll}});var iJ=Id();Object.defineProperty(b,"combineLatestAll",{enumerable:!0,get:function(){return iJ.combineLatestAll}});var sJ=Xv();Object.defineProperty(b,"combineLatest",{enumerable:!0,get:function(){return sJ.combineLatest}});var aJ=eb();Object.defineProperty(b,"combineLatestWith",{enumerable:!0,get:function(){return aJ.combineLatestWith}});var cJ=nb();Object.defineProperty(b,"concat",{enumerable:!0,get:function(){return cJ.concat}});var uJ=Oc();Object.defineProperty(b,"concatAll",{enumerable:!0,get:function(){return uJ.concatAll}});var lJ=Md();Object.defineProperty(b,"concatMap",{enumerable:!0,get:function(){return lJ.concatMap}});var fJ=tb();Object.defineProperty(b,"concatMapTo",{enumerable:!0,get:function(){return fJ.concatMapTo}});var dJ=rb();Object.defineProperty(b,"concatWith",{enumerable:!0,get:function(){return dJ.concatWith}});var pJ=Dc();Object.defineProperty(b,"connect",{enumerable:!0,get:function(){return pJ.connect}});var hJ=ob();Object.defineProperty(b,"count",{enumerable:!0,get:function(){return hJ.count}});var gJ=ib();Object.defineProperty(b,"debounce",{enumerable:!0,get:function(){return gJ.debounce}});var mJ=sb();Object.defineProperty(b,"debounceTime",{enumerable:!0,get:function(){return mJ.debounceTime}});var yJ=Ks();Object.defineProperty(b,"defaultIfEmpty",{enumerable:!0,get:function(){return yJ.defaultIfEmpty}});var vJ=ab();Object.defineProperty(b,"delay",{enumerable:!0,get:function(){return vJ.delay}});var bJ=Hd();Object.defineProperty(b,"delayWhen",{enumerable:!0,get:function(){return bJ.delayWhen}});var _J=cb();Object.defineProperty(b,"dematerialize",{enumerable:!0,get:function(){return _J.dematerialize}});var wJ=ub();Object.defineProperty(b,"distinct",{enumerable:!0,get:function(){return wJ.distinct}});var EJ=Gd();Object.defineProperty(b,"distinctUntilChanged",{enumerable:!0,get:function(){return EJ.distinctUntilChanged}});var SJ=lb();Object.defineProperty(b,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return SJ.distinctUntilKeyChanged}});var xJ=fb();Object.defineProperty(b,"elementAt",{enumerable:!0,get:function(){return xJ.elementAt}});var IJ=db();Object.defineProperty(b,"endWith",{enumerable:!0,get:function(){return IJ.endWith}});var AJ=pb();Object.defineProperty(b,"every",{enumerable:!0,get:function(){return AJ.every}});var TJ=hb();Object.defineProperty(b,"exhaust",{enumerable:!0,get:function(){return TJ.exhaust}});var MJ=tp();Object.defineProperty(b,"exhaustAll",{enumerable:!0,get:function(){return MJ.exhaustAll}});var OJ=Xd();Object.defineProperty(b,"exhaustMap",{enumerable:!0,get:function(){return OJ.exhaustMap}});var PJ=gb();Object.defineProperty(b,"expand",{enumerable:!0,get:function(){return PJ.expand}});var CJ=Ir();Object.defineProperty(b,"filter",{enumerable:!0,get:function(){return CJ.filter}});var DJ=mb();Object.defineProperty(b,"finalize",{enumerable:!0,get:function(){return DJ.finalize}});var kJ=ip();Object.defineProperty(b,"find",{enumerable:!0,get:function(){return kJ.find}});var RJ=yb();Object.defineProperty(b,"findIndex",{enumerable:!0,get:function(){return RJ.findIndex}});var NJ=vb();Object.defineProperty(b,"first",{enumerable:!0,get:function(){return NJ.first}});var LJ=bb();Object.defineProperty(b,"groupBy",{enumerable:!0,get:function(){return LJ.groupBy}});var jJ=Fd();Object.defineProperty(b,"ignoreElements",{enumerable:!0,get:function(){return jJ.ignoreElements}});var FJ=_b();Object.defineProperty(b,"isEmpty",{enumerable:!0,get:function(){return FJ.isEmpty}});var qJ=wb();Object.defineProperty(b,"last",{enumerable:!0,get:function(){return qJ.last}});var BJ=xr();Object.defineProperty(b,"map",{enumerable:!0,get:function(){return BJ.map}});var UJ=Bd();Object.defineProperty(b,"mapTo",{enumerable:!0,get:function(){return UJ.mapTo}});var HJ=Sb();Object.defineProperty(b,"materialize",{enumerable:!0,get:function(){return HJ.materialize}});var $J=xb();Object.defineProperty(b,"max",{enumerable:!0,get:function(){return $J.max}});var KJ=Mb();Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return KJ.merge}});var WJ=js();Object.defineProperty(b,"mergeAll",{enumerable:!0,get:function(){return WJ.mergeAll}});var VJ=Ib();Object.defineProperty(b,"flatMap",{enumerable:!0,get:function(){return VJ.flatMap}});var GJ=er();Object.defineProperty(b,"mergeMap",{enumerable:!0,get:function(){return GJ.mergeMap}});var zJ=Ab();Object.defineProperty(b,"mergeMapTo",{enumerable:!0,get:function(){return zJ.mergeMapTo}});var YJ=Tb();Object.defineProperty(b,"mergeScan",{enumerable:!0,get:function(){return YJ.mergeScan}});var ZJ=Ob();Object.defineProperty(b,"mergeWith",{enumerable:!0,get:function(){return ZJ.mergeWith}});var QJ=Pb();Object.defineProperty(b,"min",{enumerable:!0,get:function(){return QJ.min}});var JJ=kc();Object.defineProperty(b,"multicast",{enumerable:!0,get:function(){return JJ.multicast}});var XJ=Rs();Object.defineProperty(b,"observeOn",{enumerable:!0,get:function(){return XJ.observeOn}});var eX=Cb();Object.defineProperty(b,"onErrorResumeNext",{enumerable:!0,get:function(){return eX.onErrorResumeNext}});var tX=Db();Object.defineProperty(b,"pairwise",{enumerable:!0,get:function(){return tX.pairwise}});var nX=IO();Object.defineProperty(b,"partition",{enumerable:!0,get:function(){return nX.partition}});var rX=kb();Object.defineProperty(b,"pluck",{enumerable:!0,get:function(){return rX.pluck}});var oX=Rb();Object.defineProperty(b,"publish",{enumerable:!0,get:function(){return oX.publish}});var iX=Nb();Object.defineProperty(b,"publishBehavior",{enumerable:!0,get:function(){return iX.publishBehavior}});var sX=Lb();Object.defineProperty(b,"publishLast",{enumerable:!0,get:function(){return sX.publishLast}});var aX=jb();Object.defineProperty(b,"publishReplay",{enumerable:!0,get:function(){return aX.publishReplay}});var cX=AO();Object.defineProperty(b,"race",{enumerable:!0,get:function(){return cX.race}});var uX=Ip();Object.defineProperty(b,"raceWith",{enumerable:!0,get:function(){return uX.raceWith}});var lX=fi();Object.defineProperty(b,"reduce",{enumerable:!0,get:function(){return lX.reduce}});var fX=Fb();Object.defineProperty(b,"repeat",{enumerable:!0,get:function(){return fX.repeat}});var dX=qb();Object.defineProperty(b,"repeatWhen",{enumerable:!0,get:function(){return dX.repeatWhen}});var pX=Bb();Object.defineProperty(b,"retry",{enumerable:!0,get:function(){return pX.retry}});var hX=Ub();Object.defineProperty(b,"retryWhen",{enumerable:!0,get:function(){return hX.retryWhen}});var gX=Zl();Object.defineProperty(b,"refCount",{enumerable:!0,get:function(){return gX.refCount}});var mX=Cp();Object.defineProperty(b,"sample",{enumerable:!0,get:function(){return mX.sample}});var yX=Hb();Object.defineProperty(b,"sampleTime",{enumerable:!0,get:function(){return yX.sampleTime}});var vX=$b();Object.defineProperty(b,"scan",{enumerable:!0,get:function(){return vX.scan}});var bX=Kb();Object.defineProperty(b,"sequenceEqual",{enumerable:!0,get:function(){return bX.sequenceEqual}});var _X=Np();Object.defineProperty(b,"share",{enumerable:!0,get:function(){return _X.share}});var wX=Vb();Object.defineProperty(b,"shareReplay",{enumerable:!0,get:function(){return wX.shareReplay}});var EX=Gb();Object.defineProperty(b,"single",{enumerable:!0,get:function(){return EX.single}});var SX=zb();Object.defineProperty(b,"skip",{enumerable:!0,get:function(){return SX.skip}});var xX=Yb();Object.defineProperty(b,"skipLast",{enumerable:!0,get:function(){return xX.skipLast}});var IX=Zb();Object.defineProperty(b,"skipUntil",{enumerable:!0,get:function(){return IX.skipUntil}});var AX=Qb();Object.defineProperty(b,"skipWhile",{enumerable:!0,get:function(){return AX.skipWhile}});var TX=Jb();Object.defineProperty(b,"startWith",{enumerable:!0,get:function(){return TX.startWith}});var MX=Ns();Object.defineProperty(b,"subscribeOn",{enumerable:!0,get:function(){return MX.subscribeOn}});var OX=Xb();Object.defineProperty(b,"switchAll",{enumerable:!0,get:function(){return OX.switchAll}});var PX=Ys();Object.defineProperty(b,"switchMap",{enumerable:!0,get:function(){return PX.switchMap}});var CX=e_();Object.defineProperty(b,"switchMapTo",{enumerable:!0,get:function(){return CX.switchMapTo}});var DX=t_();Object.defineProperty(b,"switchScan",{enumerable:!0,get:function(){return DX.switchScan}});var kX=Ws();Object.defineProperty(b,"take",{enumerable:!0,get:function(){return kX.take}});var RX=lp();Object.defineProperty(b,"takeLast",{enumerable:!0,get:function(){return RX.takeLast}});var NX=n_();Object.defineProperty(b,"takeUntil",{enumerable:!0,get:function(){return NX.takeUntil}});var LX=r_();Object.defineProperty(b,"takeWhile",{enumerable:!0,get:function(){return LX.takeWhile}});var jX=o_();Object.defineProperty(b,"tap",{enumerable:!0,get:function(){return jX.tap}});var FX=Qp();Object.defineProperty(b,"throttle",{enumerable:!0,get:function(){return FX.throttle}});var qX=i_();Object.defineProperty(b,"throttleTime",{enumerable:!0,get:function(){return qX.throttleTime}});var BX=Vs();Object.defineProperty(b,"throwIfEmpty",{enumerable:!0,get:function(){return BX.throwIfEmpty}});var UX=s_();Object.defineProperty(b,"timeInterval",{enumerable:!0,get:function(){return UX.timeInterval}});var HX=Mc();Object.defineProperty(b,"timeout",{enumerable:!0,get:function(){return HX.timeout}});var $X=a_();Object.defineProperty(b,"timeoutWith",{enumerable:!0,get:function(){return $X.timeoutWith}});var KX=c_();Object.defineProperty(b,"timestamp",{enumerable:!0,get:function(){return KX.timestamp}});var WX=Ed();Object.defineProperty(b,"toArray",{enumerable:!0,get:function(){return WX.toArray}});var VX=u_();Object.defineProperty(b,"window",{enumerable:!0,get:function(){return VX.window}});var GX=l_();Object.defineProperty(b,"windowCount",{enumerable:!0,get:function(){return GX.windowCount}});var zX=f_();Object.defineProperty(b,"windowTime",{enumerable:!0,get:function(){return zX.windowTime}});var YX=p_();Object.defineProperty(b,"windowToggle",{enumerable:!0,get:function(){return YX.windowToggle}});var ZX=h_();Object.defineProperty(b,"windowWhen",{enumerable:!0,get:function(){return ZX.windowWhen}});var QX=g_();Object.defineProperty(b,"withLatestFrom",{enumerable:!0,get:function(){return QX.withLatestFrom}});var JX=y_();Object.defineProperty(b,"zip",{enumerable:!0,get:function(){return JX.zip}});var XX=m_();Object.defineProperty(b,"zipAll",{enumerable:!0,get:function(){return XX.zipAll}});var eee=v_();Object.defineProperty(b,"zipWith",{enumerable:!0,get:function(){return eee.zipWith}})});import{execFile as Lve}from"node:child_process";import{readFileSync as jve}from"node:fs";import{open as Fve,readFile as qve,readdir as RI,stat as Bve,unlink as Uve}from"node:fs/promises";import{homedir as Hve}from"node:os";import{join as vq}from"node:path";import{promisify as $ve}from"node:util";function FI(e=process.env){return{portFile:e.PLANX_AGENT_PORT_FILE,pidFile:e.PLANX_AGENT_PID_FILE,home:e.HOME,workersPortFile:e.PLANX_WORKERS_PORT_FILE,nosturnPortFile:e.PLANX_NOSTURN_PORT_FILE,configDir:e.PLANX_SERVER_CONFIG_DIR,serverName:e.PLANX_SERVER_NAME,serverId:e.PLANX_SERVER_ID,transportPortFile:e.PLANX_TRANSPORT_PORT_FILE}}import{join as Cq}from"node:path";var qI="/tmp/cc-socks";function BI(e,t){return t.flatMap(n=>{let r=/^(\d+)\.sock$/.exec(n);return r?[{pid:Number(r[1]),socketPath:Cq(e,n)}]:[]}).sort((n,r)=>n.pid-r.pid)}import{join as UI}from"node:path";function HI(e){return UI(e,".claude","sessions")}var Dq=new Set(["idle"]),kq=new Set(["busy","shell","waiting","working","running"]);function Rq(e){return typeof e!="string"?null:Dq.has(e)?"idle":kq.has(e)?"working":null}var Ol=e=>typeof e=="string"&&e?e:null;function Nq(e){let t;try{t=JSON.parse(e)}catch{return null}let n=Ol(t.sessionId);if(typeof t.pid!="number"||!n)return null;let r=t.statusUpdatedAt;return{pid:t.pid,sessionId:n,cwd:Ol(t.cwd),version:Ol(t.version),socketPath:Ol(t.messagingSocketPath),state:Rq(t.status),statusUpdatedAt:typeof r=="number"?new Date(r).toISOString():null}}async function $I(e,t,n){let r=new Map;return await Promise.all(t.map(async o=>{let i=/^(\d+)\.json$/.exec(o);if(!(!i||!n(Number(i[1]))))try{let s=Nq(await e.readFile(UI(e.dir,o)));s&&s.pid===Number(i[1])&&r.set(s.pid,s)}catch{return}})),r}var KI=["PLANX_SESSION_ID","PLANX_SESSION_NAME","PLANX_SERVER_NAME","PWD"];function Lq(e){let t={};for(let n of KI){let r=new RegExp(`(?:^|\\s)${n}=(\\S+)`).exec(e);r&&(t[n]=r[1])}return t}async function jq(e,t){try{let n=await t("/bin/ps",["eww","-o","command=","-p",String(e)]);return n.trim()?Lq(n):null}catch{return null}}function Fq(e){let t={};for(let n of e.split("\0")){let r=n.indexOf("=");if(r<=0)continue;let o=n.slice(0,r);KI.includes(o)&&(t[o]=n.slice(r+1))}return t}async function qq(e,t){try{let n=await t(`/proc/${e}/environ`);return n?Fq(n):null}catch{return null}}async function WI(e,t,n){return await jq(e,t)??qq(e,n)}function VI(e){let t=new Set;return async(n,r)=>{if(t.has(n))throw Object.assign(new Error(`spawn ${n} ENOENT (\u524D\u56DE ENOENT \u306E\u305F\u3081 spawn \u3057\u306A\u3044)`),{code:"ENOENT"});try{return await e(n,r)}catch(o){throw o?.code==="ENOENT"&&t.add(n),o}}}function Bq(e){let t=e.lastIndexOf(")");if(t<0)return null;let n=Number(e.slice(t+1).trim().split(/\s+/)[19]);return Number.isFinite(n)?n:null}function Uq(e){let t=/^btime\s+(\d+)$/m.exec(e);return t?Number(t[1])*1e3:null}async function Hq(e,t,n){let r=await t(`/proc/${e}/stat`).catch(()=>null),o=r?Bq(r):null,i=o===null?null:await n();return o===null||i===null?null:i+o*1e3/100}async function $q(e,t){try{let n=Date.parse((await t("/bin/ps",["-o","lstart=","-p",String(e)])).trim());return Number.isFinite(n)?n:null}catch{return null}}function GI(e,t){let n=null,r=()=>n??=e("/proc/stat").then(o=>o?Uq(o):null,()=>null);return async o=>await Hq(o,e,r)??$q(o,t)}import{join as Kq}from"node:path";var Wq=1e4,Vq=2e3;function Gq(e,t,n,r){let o=new Map,i=(s,a,c)=>{let u=c.exec(a);if(!u)return;let l=Number(u[1]);o.set(l,[...o.get(l)??[],Kq(s,a)])};for(let s of t)i(e,s,/^(\d+)\.sock$/);if(n)for(let s of r)i(n,s,/^(\d+)\.(?:json|[^/]+\.key)$/);return o}function zI(e){let t=new Set,n=new Map,r=new Map,o=new Set;async function i(u){let l=(await Promise.all(u.map(f=>e.stat(f)))).filter(f=>f!==null);return l.length>0?Math.max(...l):null}async function s(u,l){let f=n.get(u),d=await i(l);if(f!==void 0&&f===d)return!1;n.delete(u);let p=await e.startTimeMs(u);return p!==null&&d!==null&&p>d+Vq?(n.set(u,d),!1):(t.add(u),!0)}async function a(u,l){let f=await i(l);if(f===null||!e.unlink||e.now()-f<Wq)return;let d=e.unlink,h=(await Promise.allSettled(l.map(m=>d(m)))).find(m=>m.status==="rejected"&&m.reason?.code!=="ENOENT");h&&(r.set(u,f),!o.has(u)&&(o.add(u),e.warn(`\u6B7B\u3093\u3060 claude (pid=${u}) \u306E\u6B8B\u9AB8\u3092\u6D88\u305B\u306A\u3044: ${String(h.reason)}`)))}async function c(u,l){if(r.has(u)){if(await i(l)===r.get(u))return!1;r.delete(u)}return e.isAlive(u)?t.has(u)||s(u,l):(t.delete(u),n.delete(u),await a(u,l),!1)}return{async sweep(u,l){let f=Gq(e.socketDir,u,e.sessionsDir,l);for(let p of[t,n,r])for(let h of p.keys())f.has(h)||p.delete(h);let d=new Set;return await Promise.all([...f].map(async([p,h])=>{await c(p,h)&&d.add(p)})),d}}}function YI(e){let t={},n=0,r=0,o=e.now(),i=(s,a=1)=>{t[s]=(t[s]??0)+a};return{count:i,wrap:(s,a)=>(...c)=>(i(s),a(...c)),tick(s){n+=1,r+=s;let a=e.now();if(a-o<e.everyMs)return;let c=Object.entries(t).map(([u,l])=>`${u}=${l}`);e.log([`poll ${Math.round((a-o)/1e3)}s: ticks=${n} avgTickMs=${Math.round(r/n)}`,...c].join(" ")),t={},n=0,r=0,o=a},snapshot:()=>({...t})}}import{join as ZI}from"node:path";function Ay(e,t){return ZI(e,".claude","projects",t.replace(/[^A-Za-z0-9]/g,"-"))}function QI(e,t){let n=t.filter(r=>r.name.endsWith(".jsonl")).sort((r,o)=>o.mtimeMs-r.mtimeMs)[0];return n?ZI(e,n.name):null}var zq=new Set(["end_turn","stop_sequence"]),Yq=80,Zq=/^<[a-z-]+[ >]/i;function Ty(e){return{path:e,offset:0,invalidLines:0,state:"unknown",activity:null,skills:new Set,claudeVersion:null,lastActivityAt:null}}function JI(e,t){for(let n of t.split(`
5
- `)){if(!n.trim())continue;let r;try{r=JSON.parse(n)}catch{e.invalidLines+=1;continue}r&&typeof r=="object"&&Qq(e,r)}}function XI(e){return{state:e.state,activity:e.activity,skills:[...e.skills].sort(),claudeVersion:e.claudeVersion,lastActivityAt:e.lastActivityAt}}function Qq(e,t){if(t.type==="attachment")return oB(e,t.attachment);if(t.type!=="user"&&t.type!=="assistant"||t.isMeta===!0||t.isSidechain===!0)return;let n=t.message?.content;e.state=t.type==="user"?Jq(n):Xq(t.message?.stop_reason),e.activity=rB(t.type==="user"?eB(n):tB(n))??e.activity,typeof t.version=="string"&&(e.claudeVersion=t.version),typeof t.timestamp=="string"&&(e.lastActivityAt=t.timestamp)}function Jq(e){return typeof e=="string"&&e.includes("<local-command-stdout>")?"idle":"working"}function Xq(e){return typeof e=="string"&&zq.has(e)?"idle":"working"}var e1=e=>Array.isArray(e)?e.filter(t=>!!t&&typeof t=="object"):[],My=e=>e.split(`
6
- `).find(t=>t.trim()!=="")??"";function eB(e){let t=e1(e);if(t.some(r=>r.type==="tool_result"))return null;let n=typeof e=="string"?e:t.find(r=>typeof r.text=="string")?.text;return typeof n!="string"||Zq.test(n.trim())?null:`\u{1F4DD} ${My(n)}`}function tB(e){let t=e1(e),n=t.find(o=>o.type==="tool_use"&&typeof o.name=="string");if(n){let o=nB(n.input);return o?`\u{1F527} ${String(n.name)}: ${o}`:`\u{1F527} ${String(n.name)}`}let r=t.find(o=>o.type==="text"&&typeof o.text=="string"&&o.text.trim()!=="");return r?`\u{1F4AC} ${My(r.text)}`:t.some(o=>o.type==="thinking")?"\u{1F914} \u8003\u3048\u4E2D":null}function nB(e){if(!e||typeof e!="object")return"";let t=Object.entries(e),r=t.find(([o,i])=>o==="description"&&typeof i=="string"&&i.trim()!=="")??t.find(([,o])=>typeof o=="string"&&o.trim()!=="");return r?My(r[1]):""}function rB(e){return e===null?null:e.replace(/\s+/g," ").trim().slice(0,Yq)}function oB(e,t){let n=t?.type==="skill_listing"?t.names:t?.type==="dynamic_skill"?t.skillNames:void 0;if(Array.isArray(n))for(let r of n)typeof r=="string"&&e.skills.add(r)}import{join as iB}from"node:path";var sB=10;function t1(e){let t=new Map,n=new Set,r=(a,c)=>{n.has(a)||(n.add(a),e.warn(c))};async function o(a){let c=Ay(e.home,a);try{return QI(c,await e.listDir(c))}catch(u){return r(`dir:${c}`,`transcript dir \u3092\u8AAD\u3081\u306A\u3044 ${c}: ${String(u)}`),null}}async function i(a){let c=t.get(a)??Ty(a),{size:u,bytes:l}=await e.readRange(a,c.offset);u<c.offset&&(c=Ty(a),{size:u,bytes:l}=await e.readRange(a,0));let f=l.lastIndexOf(sB);return f>=0&&(JI(c,l.subarray(0,f+1).toString("utf8")),c.offset+=f+1),t.set(a,c),c.invalidLines>0&&r(`invalid:${a}`,`transcript \u306B JSON \u3067\u306A\u3044\u884C\u304C\u3042\u308B ${a} (${c.invalidLines} \u884C)`),c}async function s(a,c){try{return{path:a,summary:XI(await i(a))}}catch(u){return c&&u.code==="ENOENT"||r(`read:${a}`,`transcript \u3092\u8AAD\u3081\u306A\u3044 ${a}: ${String(u)}`),null}}return{async read(a){let c=await o(a);return c?s(c,!1):null},readSession(a,c){return s(iB(Ay(e.home,a),`${c}.jsonl`),!0)}}}function n1(e,t,n,r=null,o=null){return{id:String(e.pid),pid:e.pid,socketPath:e.socketPath,sessionId:t?.PLANX_SESSION_ID??null,sessionName:t?.PLANX_SESSION_NAME??null,serverName:t?.PLANX_SERVER_NAME??null,cwd:t?.PWD??o?.cwd??null,git:r,transcriptPath:n?.path??null,state:o?.state??n?.summary.state??"unknown",activity:n?.summary.activity??null,skills:n?.summary.skills??[],claudeVersion:n?.summary.claudeVersion??o?.version??null,lastActivityAt:n?.summary.lastActivityAt??o?.statusUpdatedAt??null}}var aB=6e4;function r1(e){let t=new Map,n=new Map,r=e.now??Date.now,o=new Set,i=(h,m)=>{o.has(h)||(o.add(h),e.warn(m))},s=zI({socketDir:e.socketDir,sessionsDir:e.sessions?.dir??null,isAlive:e.isAlive,startTimeMs:e.startTimeMs??(async()=>null),stat:e.stat??(async()=>null),unlink:e.unlink??null,now:r,warn:e.warn});async function a(){try{return await e.readdir(e.socketDir)}catch(h){return i("socket-dir",`claude \u306E socket dir \u3092\u8AAD\u3081\u306A\u3044 ${e.socketDir}: ${String(h)}`),[]}}async function c(){if(!e.sessions)return[];try{return await e.sessions.readdir(e.sessions.dir)}catch(h){return h.code!=="ENOENT"&&i("sessions-dir",`claude \u306E sessions dir \u3092\u8AAD\u3081\u306A\u3044 ${e.sessions.dir}: ${String(h)}`),[]}}async function u(h){let m=t.get(h);if(m)return m;let y=n.get(h);if(y!==void 0&&r()-y<aB)return null;let v=await e.readEnv(h);return v?(t.set(h,v),n.delete(h)):(n.set(h,r()),i(`env:${h}`,`claude (pid=${h}) \u306E env \u3092\u8AAD\u3081\u306A\u3044`)),v}async function l(h){let m=[...new Set(h)],y=await Promise.all(m.map(async v=>{if(!e.resolveGit)return null;try{return await e.resolveGit(v)}catch(w){return i(`git:${v}`,`git \u60C5\u5831\u3092\u8AAD\u3081\u306A\u3044 ${v}: ${String(w)}`),null}}));return new Map(m.map((v,w)=>[v,y[w]]))}function f(h,m){let y=new Map(h.map(v=>[v.pid,v]));for(let v of m.values())v.socketPath&&!y.has(v.pid)&&y.set(v.pid,{pid:v.pid,socketPath:v.socketPath});return[...y.values()].sort((v,w)=>v.pid-w.pid)}async function d(h,m,y){let v=h?.cwd??m;return h&&v?e.transcripts.readSession(v,h.sessionId):m&&y===1?e.transcripts.read(m):null}async function p(){let[h,m]=await Promise.all([a(),c()]),y=await s.sweep(h,m),v=BI(e.socketDir,h).filter(N=>y.has(N.pid)),w=e.sessions?await $I(e.sessions,m,N=>y.has(N)):new Map,A=f(v,w),P=new Set(A.map(N=>N.pid));for(let N of[t,n])for(let J of N.keys())P.has(J)||N.delete(J);let j=await Promise.all(A.map(N=>u(N.pid)));A.length>0&&j.every(N=>N===null)&&i("env-all",`ps (/bin/ps eww) \u3067 claude \u306E env \u3092 1 \u3064\u3082\u8AAD\u3081\u306A\u3044 (${A.length} \u4EF6): planx session \u3068\u306E\u5BFE\u5FDC\u4ED8\u3051\u304C\u3067\u304D\u306A\u3044`);let Q=A.map((N,J)=>j[J]?.PWD??w.get(N.pid)?.cwd??void 0),ue=new Map;A.forEach((N,J)=>{let de=Q[J];de&&!w.has(N.pid)&&ue.set(de,(ue.get(de)??0)+1)});let we=await l(Q.flatMap(N=>N?[N]:[]));return Promise.all(A.map(async(N,J)=>{let de=Q[J],G=w.get(N.pid),O=await d(G,de,de?ue.get(de)??0:0);return n1(N,j[J],O,de?we.get(de)??null:null,G??null)}))}return{list:p,async find(h){return(await p()).find(m=>m.id===h||m.sessionId===h)??null}}}function Pl(e){let{from:t,hint:n}=cB(e.replyTo),r=[`<cross-session-message from="${t}" from-mode="bypass">`,`[planx callback from ${e.label}] ${e.text}`,...n?[n]:[],"</cross-session-message>"].join(`
7
- `);return{msgV:1,msg_id:crypto.randomUUID(),type:"user",message:{role:"user",content:r},priority:"next",from:t}}function cB(e){if(e?.socketPath)return{from:`uds:${e.socketPath}`,hint:null};if(e?.serverId&&e.agentId)return{from:`planx:${e.serverId}/${e.agentId}`,hint:`(\u8FD4\u4FE1\u306F planx MCP \u306E agent_send serverId=${e.serverId} agentId=${e.agentId}${e.eventId?` replyToEvent=${e.eventId}`:""} \u3067\u9001\u308B)`};if(e?.nostr){let{pubkey:t,eventId:n}=e.nostr;return{from:`nostr:${t}`,hint:`(\u8FD4\u4FE1\u306F planx MCP \u306E agent_send nostrPubkey=${t} replyToEvent=${n} \u3067\u9001\u308B\u3002timeline \u306B\u3053\u306E\u6295\u7A3F\u3078\u306E\u8FD4\u4FE1\u3068\u3057\u3066\u51FA\u308B)`}}return{from:"planx:unknown",hint:"(\u8FD4\u4FE1\u5148\u306A\u3057: \u9001\u4FE1\u5143\u304C planx \u306B\u767B\u9332\u3055\u308C\u305F agent \u3067\u306F\u306A\u3044\u305F\u3081\u3001\u3053\u306E\u7D4C\u8DEF\u3067\u306F\u8FD4\u4FE1\u3067\u304D\u306A\u3044)"}}import*as o1 from"node:net";function Oy(e,t){return new Promise((n,r)=>{let o=!1,i=o1.createConnection({path:e},()=>{i.end(JSON.stringify(t)+`
8
- `)});i.on("error",s=>{o=!0,r(s)}),i.on("close",()=>{o||n()})})}import{isIP as uB}from"node:net";var i1="x-planx-l7-peer",s1=new Set(["127.0.0.1","localhost","::1","[::1]"]);function a1(e){let t=e.trim().toLowerCase();return t.startsWith("[")?t.slice(0,t.indexOf("]")+1):t.replace(/:\d+$/,"")}function lB(e){return!!e&&s1.has(a1(e))}function fB(e){return e?uB(a1(e).replace(/^\[|\]$/g,""))!==0:!1}function dB(e){if(!e)return!1;try{let t=new URL(e);return(t.protocol==="http:"||t.protocol==="https:")&&s1.has(t.hostname.toLowerCase())}catch{return!1}}function c1(e){return e.host&&!lB(e.host)&&!fB(e.host)?"bad-host":e.origin&&!dB(e.origin)&&!e.l7Peer?"bad-origin":"allow"}import{existsSync as Py,readFileSync as pB,statSync as hB}from"node:fs";import{extname as gB,join as Cy,resolve as u1,sep as mB}from"node:path";import{fileURLToPath as yB}from"node:url";var vB={".html":"text/html; charset=utf-8",".js":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".css":"text/css; charset=utf-8",".json":"application/json",".webmanifest":"application/manifest+json",".png":"image/png",".svg":"image/svg+xml",".ico":"image/x-icon",".woff2":"font/woff2",".txt":"text/plain; charset=utf-8"};function bB(e){try{return decodeURIComponent(e)}catch{return null}}function l1(e){let t=vB[gB(e).toLowerCase()]??"application/octet-stream",n=e.endsWith("index.html")?"no-cache":"public, max-age=300";return new Response(pB(e),{headers:{"content-type":t,"cache-control":n}})}function f1(e,t,n){if(!e)return new Response(n,{status:404,headers:{"content-type":"text/plain; charset=utf-8"}});let r=u1(e),o=Cy(r,"index.html"),i=bB(t);if(i===null||i.includes("\0"))return new Response("bad path",{status:400});let s=u1(r,`.${i.startsWith("/")?i:`/${i}`}`);return s!==r&&!s.startsWith(r+mB)?new Response("not found",{status:404}):s!==r&&Py(s)&&hB(s).isFile()?l1(s):Py(o)?l1(o):new Response("not found",{status:404})}function d1(e,t,n,r){return[yB(new URL(`./${n}`,e)),Cy(t,r,n)].find(i=>Py(Cy(i,"index.html")))??null}var Cl="/admin",p1="/admin/api/",Dy="agents/",_B="Agent \u306E\u753B\u9762\u304C\u3042\u308A\u307E\u305B\u3093 (agent/ \u304C bundle \u306E\u96A3\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093)",wB=new Set(["GET","HEAD","DELETE"]),eo=(e,t,n)=>{e.writeHead(t,{"content-type":"application/json","cache-control":"no-store"}),e.end(JSON.stringify(n))},ky=(e,t)=>{let n=e.headers[t];return typeof n=="string"?n:void 0},EB=e=>({id:e.id,name:e.name,state:e.state,activity:e.activity,sessionName:e.sessionName,cwd:e.cwd,repo:e.git?.repo??null,branch:e.git?.branch??null,claudeVersion:e.claudeVersion,lastActivityAt:e.lastActivityAt,skills:e.skills,nostrHandle:e.nostrHandle??null}),SB=e=>({id:e.id,name:e.name,cwd:e.cwd,repo:e.repo,branch:e.branch,lastActivityAt:e.lastActivityAt}),xB=async(e,t)=>{let n={};t.headers.forEach((r,o)=>{n[o]=r}),e.writeHead(t.status,n),e.end(Buffer.from(await t.arrayBuffer()))};async function IB(e,t,n,r){if(e.method==="DELETE"){if(!r.startsWith(Dy)||r.length===Dy.length)return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});let s=decodeURIComponent(r.slice(Dy.length)),a=(await n.rows()).stopped.some(c=>c.id===s);return eo(t,200,{removed:a&&await n.remove(s)?1:0})}if(r!=="status"&&r!=="agents")return eo(t,404,{error:{code:"NOT_FOUND"}});let o=await n.rows();if(r==="agents")return eo(t,200,{agents:o.agents.map(EB),stopped:o.stopped.map(SB)});let i={working:0,idle:0,unknown:0};for(let s of o.agents)i[s.state]+=1;eo(t,200,{version:n.version,nostr:n.nostr,live:o.agents.length,stopped:o.stopped.length,states:i})}function h1(e){return e===Cl||e.startsWith(`${Cl}/`)}async function g1(e,t,n,r){let o=c1({host:ky(e,"host"),origin:ky(e,"origin"),l7Peer:ky(e,i1)});if(o!=="allow")return eo(t,403,{error:{code:"FORBIDDEN",message:o}});if(!wB.has(e.method??"GET"))return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});if(r.startsWith(p1))return IB(e,t,n,r.slice(p1.length));if(e.method==="DELETE")return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});if(r===Cl){t.writeHead(301,{location:"admin/"}),t.end();return}await xB(t,f1(n.assetsDir(),r.slice(Cl.length)||"/",_B))}var m1=e=>e?.split("/").filter(Boolean).pop()??null;function AB(e){return e.sessionName||m1(e.worktreeRoot)||m1(e.cwd)||`pid-${e.pid}`}function Dl(e){let t=new Set;return e.map(n=>{let r=AB(n),o=t.has(r)?`${r}#${n.pid}`:r;return t.add(r),o})}async function Ry(e,t){let[n,r]=await Promise.all([e.registry.list(),e.roster?.stopped()??[]]),o=Dl(n.map(a=>({pid:a.pid,sessionName:a.sessionName,worktreeRoot:a.git?.worktreeRoot??null,cwd:a.cwd}))),i=new Set(o);return{agents:await Promise.all(n.map(async(a,c)=>({...await t(a),name:o[c]}))),stopped:r.filter(a=>!i.has(a.id)).map(a=>({...a,name:a.id}))}}var TB=64*1024,MB=/^\/agents\/([^/]+)$/,OB=/^\/agents\/([^/]+)\/messages$/;function v1(e){return(t,n)=>{PB(e,t,n).catch(r=>{e.log(`request failed ${t.method} ${t.url}: ${String(r)}`),n.headersSent||vt(n,500,{error:"internal"})})}}async function PB(e,t,n){let r=new URL(t.url??"/","http://localhost").pathname;if(t.method==="GET"&&r==="/health")return vt(n,200,{status:"ok",service:"agent",version:e.version??null});let o=a=>e.nostr?.decorate(a)??a;if(e.admin&&h1(r)){let a={...e.admin,rows:()=>Ry(e,o),remove:async c=>await e.roster?.remove(c)??!1,version:e.version??null,nostr:!!e.nostr};return g1(t,n,a,r)}if(t.method==="GET"&&r==="/agents")return vt(n,200,await Ry(e,o));if(t.method==="GET"&&r==="/worktrees")return CB(e,t,n);let i=MB.exec(r);if(t.method==="DELETE"&&i){if(!(await e.roster?.remove(decodeURIComponent(i[1]))??!1))return vt(n,404,{error:"agent not found"});n.writeHead(204).end();return}if(t.method==="PUT"&&i)return DB(e,decodeURIComponent(i[1]),t,n);if(t.method==="GET"&&i){let a=await e.registry.find(decodeURIComponent(i[1]));return a?vt(n,200,await o(a)):vt(n,404,{error:"agent not found"})}let s=OB.exec(r);if(t.method==="POST"&&s)return kB(e,decodeURIComponent(s[1]),t,n);await e.nostr?.handle(t,n,r)||vt(n,404,{error:"not found"})}async function CB(e,t,n){if(!e.listWorktrees)return vt(n,503,{error:"this agent child cannot list worktrees"});let r=new URL(t.url??"/","http://localhost").searchParams.get("cwd");if(!r)return vt(n,400,{error:"cwd is required"});try{vt(n,200,{worktrees:await e.listWorktrees(r)})}catch(o){vt(n,400,{error:`not a git repository: ${r}`,detail:String(o)})}}async function DB(e,t,n,r){let o=await b1(n),i=c=>typeof o?.[c]=="string"&&o[c]?o[c]:null,s=i("cwd");if(!s)return vt(r,400,{error:"cwd is required"});let a={cwd:s,worktreeRoot:i("worktreeRoot")??s,command:i("command")};if(!await e.roster?.define(t,a))return vt(r,503,{error:"agent list is not available (workers child)"});vt(r,200,{id:t,...a})}async function kB(e,t,n,r){let o=await b1(n),i=typeof o?.text=="string"?o.text:"";if(!i)return vt(r,400,{error:"text is required"});let s=typeof o?.label=="string"&&o.label?o.label:"planx",a=await e.registry.find(t);if(!a)return vt(r,404,{error:"agent not found"});let c=await RB(e,o?.replyTo),u=Pl({target:a.socketPath,text:i,label:s,replyTo:c});try{await e.deliver(a.socketPath,u)}catch(l){return e.log(`message failed ${y1(a)} from=${s}: ${String(l)}`),vt(r,502,{error:"delivery failed"})}e.log(`message ${y1(a)} from=${s} bytes=${Buffer.byteLength(i)} msgId=${u.msg_id}`),vt(r,202,{msgId:u.msg_id})}async function RB(e,t){if(!t||typeof t!="object")return;let n=t,r=s=>typeof s=="string"&&s?s:void 0,o=r(n.socketPath);return{socketPath:(o?(await e.registry.list()).some(s=>s.socketPath===o):!1)?o:void 0,serverId:r(n.serverId),agentId:r(n.agentId)}}function y1(e){return`pid=${e.pid} session=${e.sessionName??"-"}`}async function b1(e){let t=[],n=0;for await(let r of e){if(n+=r.length,n>TB)return null;t.push(r)}try{let r=JSON.parse(Buffer.concat(t).toString("utf8"));return r&&typeof r=="object"?r:null}catch{return null}}function vt(e,t,n){e.writeHead(t,{"content-type":"application/json"}),e.end(JSON.stringify(n))}import{createServer as qB}from"node:http";import{renameSync as NB,rmSync as LB,writeFileSync as jB}from"fs";var FB=0;function mc(e,t){let n=`${e}.${process.pid}.${++FB}.tmp`;try{jB(n,t,"utf-8"),NB(n,e)}catch(r){throw LB(n,{force:!0}),r}}function Ny(e,t){mc(e,String(t))}function Ly(e,t){mc(e,String(t))}async function _1(e){let t=qB(v1(e));await new Promise((r,o)=>{t.once("error",o),t.listen(0,"127.0.0.1",()=>r())});let{port:n}=t.address();return e.portFile&&Ly(e.portFile,n),e.pidFile&&Ny(e.pidFile,process.pid),e.write(`${JSON.stringify({service:"agent",port:n,pid:process.pid})}
9
- `),{port:n,close:()=>new Promise(r=>t.close(()=>r()))}}var BB=/^[a-z][a-z0-9+.-]*:\/\/(?:[^@/]+@)?[^/]+\/(.+)$/i,UB=/^(?:[^@/\s]+@)?[^:/\s]+:(?!\/)(.+)$/;function HB(e){let t=e.trim(),n=BB.exec(t)?.[1]??UB.exec(t)?.[1];if(!n)return null;let r=n.replace(/\.git\/?$/,"").split("/").filter(o=>o!=="");return r.length>=2?r.join("/"):null}async function w1(e,t){let n;try{n=(await t(e,["rev-parse","--show-toplevel","--abbrev-ref","HEAD"])).split(`
10
- `).map(s=>s.trim())}catch{return null}let[r,o]=n;if(!r)return null;let i=await t(e,["remote","get-url","origin"]).catch(()=>"");return{repo:HB(i),branch:o&&o!=="HEAD"?o:null,worktreeRoot:r}}function $B(e){let t=[];for(let n of e.split(`
11
- `)){if(n.startsWith("worktree ")){t.push({path:n.slice(9),branch:null,bare:!1,main:t.length===0,prunable:!1});continue}let r=t[t.length-1];r&&(n==="bare"&&(r.bare=!0),(n==="prunable"||n.startsWith("prunable "))&&(r.prunable=!0),n.startsWith("branch ")&&(r.branch=n.slice(7).replace(/^refs\/heads\//,"")))}return t}async function E1(e,t){return $B(await t(e,["worktree","list","--porcelain"]))}async function yc(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n).slice(0,16);r[0]=32,r[1]=1,r[2]=0,r[3]=42,r[6]=r[6]&15|128,r[8]=r[8]&63|128;let o=Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("");return[o.slice(0,8),o.slice(8,12),o.slice(12,16),o.slice(16,20),o.slice(20,32)].join("-")}var S1={maxAgeMs:3e4,now:()=>Date.now()};function rs(e){return typeof e=="object"&&e!==null&&e.kind==="key-ref"}var Lt=null,kl=!1,By=1,KB=null,ze=Symbol("SIGNAL");function te(e){let t=Lt;return Lt=e,t}function ei(){return Lt}var os={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function is(e){if(kl)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Lt===null)return;Lt.consumerOnSignalRead(e);let t=Lt.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Lt.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Lt.producers,n!==void 0&&n.producer===e)){Lt.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Lt&&(!r||WB(o,Lt)))return;let i=cs(Lt),s={producer:e,consumer:Lt,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Lt.producersTail=s,t!==void 0?t.nextProducer=s:Lt.producers=s,i&&M1(e,s)}function x1(){By++}function Uy(e){if(!(cs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===By)){if(!e.producerMustRecompute(e)&&!bc(e)){qy(e);return}e.producerRecomputeValue(e),qy(e)}}function Hy(e){if(e.consumers===void 0)return;let t=kl;kl=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||I1(r)}}finally{kl=t}}function $y(){return Lt?.consumerAllowSignalWrites!==!1}function I1(e){e.dirty=!0,Hy(e),e.consumerMarkedDirty?.(e)}function qy(e){e.dirty=!1,e.lastCleanEpoch=By}function ss(e){return e&&A1(e),te(e)}function A1(e){e.producersTail=void 0,e.recomputing=!0}function vc(e,t){te(t),e&&T1(e)}function T1(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(cs(e))do n=Ky(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function bc(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Uy(n),r!==n.version))return!0}return!1}function as(e){if(cs(e)){let t=e.producers;for(;t!==void 0;)t=Ky(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function M1(e,t){let n=e.consumersTail,r=cs(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)M1(o.producer,o)}function Ky(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!cs(t)){let i=t.producers;for(;i!==void 0;)i=Ky(i)}return n}function cs(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Wy(e){KB?.(e)}function WB(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Vy(e,t){return Object.is(e,t)}function _c(e,t){let n=Object.create(VB);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Uy(n),is(n),n.value===Rl)throw n.error;return n.value};return r[ze]=n,typeof ngDevMode<"u"&&ngDevMode&&(r.toString=()=>`[Computed${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),Wy(n),r}var jy=Symbol("UNSET"),Fy=Symbol("COMPUTING"),Rl=Symbol("ERRORED"),VB={...os,value:jy,dirty:!0,error:null,equal:Vy,kind:"computed",producerMustRecompute(e){return e.value===jy||e.value===Fy},producerRecomputeValue(e){if(e.value===Fy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let t=e.value;e.value=Fy;let n=ss(e),r,o=!1;try{r=e.computation(),te(null),o=t!==jy&&t!==Rl&&r!==Rl&&e.equal(t,r)}catch(i){r=Rl,e.error=i}finally{vc(e,n)}if(o){e.value=t;return}e.value=r,e.version++}};function GB(){throw new Error}var O1=GB;function P1(e){O1(e)}function Gy(e){O1=e}var zB=null;function zy(e,t){let n=Object.create(Nl);n.value=e,t!==void 0&&(n.equal=t);let r=()=>C1(n);return r[ze]=n,typeof ngDevMode<"u"&&ngDevMode&&(r.toString=()=>`[Signal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),Wy(n),[r,s=>us(n,s),s=>D1(n,s)]}function C1(e){return is(e),e.value}function us(e,t){$y()||P1(e),e.equal(e.value,t)||(e.value=t,YB(e))}function D1(e,t){$y()||P1(e),us(e,t(e.value))}var Nl={...os,equal:Vy,value:void 0,kind:"signal"};function YB(e){e.version++,x1(),Hy(e),zB?.(e)}var To=gc(Rc(),1);var b_;function ih(){return b_}function nr(e){let t=b_;return b_=e,t}var DM=Symbol("NotFound");function Xs(e){return e===DM||e?.name==="\u0275NotFound"}var w_={header:(e,t)=>{if(!__(e)||t?.ngSkipFormatting)return null;let n;try{n=e()}catch(i){return["span",`Signal(\u26A0\uFE0F Error)${i.message?`: ${i.message}`:""}`]}let r="computation"in e[ze]?"Computed":"Signal",o=n===null||!Array.isArray(n)&&typeof n!="object";return["span",{},["span",{},`${r}(`],__(n)?w_.header(n,t):o&&n!==void 0&&typeof n!="function"?["object",{object:n}]:uQ(n),["span",{},")"]]},hasBody:(e,t)=>{if(!__(e))return!1;try{e()}catch{return!1}return!t?.ngSkipFormatting},body:(e,t)=>{let n="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${n}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:e(),config:t}]],["div",{style:`color: ${n}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:e,config:{...t,ngSkipFormatting:!0}}]]]}};function uQ(e){if(e===null)return"null";if(Array.isArray(e))return`Array(${e.length})`;if(e instanceof Element)return`<${e.tagName.toLowerCase()}>`;if(e instanceof URL)return"URL";switch(typeof e){case"undefined":return"undefined";case"function":return"prototype"in e?"class":"() => {\u2026}";case"object":return e.constructor.name==="Object"?"{\u2026}":`${e.constructor.name} {}`;default:return["object",{object:e,config:{ngSkipFormatting:!0}}]}}function __(e){return e[ze]!==void 0}function lQ(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(e=>e===w_)||globalThis.devtoolsFormatters.push(w_)}(typeof ngDevMode>"u"||ngDevMode)&&lQ();var ch=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},S_=new ch("21.2.25"),ph=(()=>{let e=S_.full;return`https://${e.includes("-next")||e.includes("-rc")||e==="20.101.0"?"next":`v${S_.major}`}.angular.dev`})(),hh=`${ph}/errors`,sr="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(bt(t,n)),this.code=t}};function fQ(e){return`NG0${Math.abs(e)}`}function bt(e,t){let n=fQ(e),r=`${n}${t?": "+t:""}`;if(ngDevMode&&e<0){let i=!r.match(/[.,;!?\n]$/)?".":"";r=`${r}${i} Find more at ${hh}/${n}`}return r}var At=globalThis;function dQ(){let e=typeof location<"u"?location.toString():"",t={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return e.indexOf("ngDevMode=false")===-1?(typeof At.ngDevMode!="object"&&(At.ngDevMode={}),Object.assign(At.ngDevMode,t)):At.ngDevMode=!1,t}function gh(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&dQ(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function De(e){for(let t in e)if(e[t]===De)return t;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function FM(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ke).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
12
- `);return r>=0?n.slice(0,r):n}function mh(e,t){return e?t?`${e} ${t}`:e:t||""}var pQ=De({__forward_ref__:De});function Gc(e){return e.__forward_ref__=Gc,ngDevMode&&(e.toString=function(){return ke(this())}),e}function se(e){return zc(e)?e():e}function zc(e){return typeof e=="function"&&e.hasOwnProperty(pQ)&&e.__forward_ref__===Gc}function je(e,t){typeof e!="number"&&X(t,typeof e,"number","===")}function ia(e,t,n){je(e,"Expected a number"),qM(e,n,"Expected number to be less than or equal to"),cr(e,t,"Expected number to be greater than or equal to")}function mi(e,t){typeof e!="string"&&X(t,e===null?"null":typeof e,"string","===")}function F_(e,t){typeof e!="function"&&X(t,e===null?"null":typeof e,"function","===")}function re(e,t,n){e!=t&&X(n,e,t,"==")}function tn(e,t,n){e==t&&X(n,e,t,"!=")}function q_(e,t,n){e!==t&&X(n,e,t,"===")}function yi(e,t,n){e===t&&X(n,e,t,"!==")}function ar(e,t,n){e<t||X(n,e,t,"<")}function qM(e,t,n){e<=t||X(n,e,t,"<=")}function Mo(e,t,n){e>t||X(n,e,t,">")}function cr(e,t,n){e>=t||X(n,e,t,">=")}function F(e,t){e==null&&X(t,e,null,"!=")}function X(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Oo(e){e instanceof Node||X(`The provided value must be an instance of a DOM Node but got ${ke(e)}`)}function BM(e){e instanceof Element||X(`The provided value must be an element but got ${ke(e)}`)}function ct(e,t){F(e,"Array must be defined.");let n=e.length;(t<0||t>=n)&&X(`Index expected to be less than ${n} but got ${t}`)}function UM(e,...t){if(t.indexOf(e)!==-1)return!0;X(`Expected value to be one of ${JSON.stringify(t)} but was ${JSON.stringify(e)}.`)}function yh(e){ei()!==null&&X(`${e}() should never be called in a reactive context.`)}function Fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Yc(e){return{providers:e.providers||[],imports:e.imports||[]}}function vh(e){return hQ(e,sa)}function hQ(e,t){return e.hasOwnProperty(t)&&e[t]||null}function gQ(e){let t=e?.[sa]??null;return t?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${e.name}" that inherits its @Injectable decorator but does not provide one itself.
13
- This will become an error in a future version of Angular. Please add @Injectable() to the "${e.name}" class.`),t):null}function jc(e){return e&&e.hasOwnProperty(Fc)?e[Fc]:null}var sa=De({\u0275prov:De}),Fc=De({\u0275inj:De}),H=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?((typeof ngDevMode>"u"||ngDevMode)&&ar(n,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=n):n!==void 0&&(this.\u0275prov=Fe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},x_;function bh(){return!ngDevMode&&X("getInjectorProfilerContext should never be called in production mode"),x_}function jt(e){!ngDevMode&&X("setInjectorProfilerContext should never be called in production mode");let t=x_;return x_=e,t}var di=[],mQ=()=>{};function yQ(e){let t=di.indexOf(e);t!==-1&&di.splice(t,1)}function B_(e){return!ngDevMode&&X("setInjectorProfiler should never be called in production mode"),e!==null?(di.includes(e)||di.push(e),()=>yQ(e)):(di.length=0,mQ)}function _h(e){!ngDevMode&&X("Injector profiler should never be called in production mode");for(let t=0;t<di.length;t++){let n=di[t];n(e)}}function uh(e,t=!1){!ngDevMode&&X("Injector profiler should never be called in production mode");let n;typeof e=="function"||e instanceof H?n=e:n=se(e.provide);let r=e;e instanceof H&&(r=e.\u0275prov||e),_h({type:2,context:bh(),providerRecord:{token:n,provider:r,isViewProvider:t}})}function qc(e){!ngDevMode&&X("Injector profiler should never be called in production mode"),_h({type:5,context:bh(),token:e})}function Bc(e){!ngDevMode&&X("Injector profiler should never be called in production mode"),_h({type:1,context:bh(),instance:{value:e}})}function U_(e,t,n){!ngDevMode&&X("Injector profiler should never be called in production mode"),_h({type:0,context:bh(),service:{token:e,value:t,flags:n}})}function ta(e,t,n){!ngDevMode&&X("runInInjectorProfilerContext should never be called in production mode");let r=jt({injector:e,token:t});try{n()}finally{jt(r)}}function Zc(e){return e&&!!e.\u0275providers}var Cr=De({\u0275cmp:De}),vi=De({\u0275dir:De}),Qc=De({\u0275pipe:De}),wh=De({\u0275mod:De}),rr=De({\u0275fac:De}),bi=De({__NG_ELEMENT_ID__:De}),kM=De({__NG_ENV_ID__:De});function Fn(e){return Eh(e,"@NgModule"),e[wh]||null}function Jc(e){let t=Fn(e);if(!t)throw new D(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${ke(e)} does not have '\u0275mod' property.`);return t}function _e(e){return Eh(e,"@Component"),e[Cr]||null}function HM(e){let t=dt(e);if(!t)throw new D(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${ke(e)} does not have '\u0275dir' property.`);return t}function dt(e){return Eh(e,"@Directive"),e[vi]||null}function Kt(e){return Eh(e,"@Pipe"),e[Qc]||null}function Eh(e,t){if(e==null)throw new D(-919,(typeof ngDevMode>"u"||ngDevMode)&&`Cannot read ${t} metadata. This can indicate a runtime circular dependency in your app that needs to be resolved.`)}function Dr(e){let t=_e(e)||dt(e)||Kt(e);return t!==null&&t.standalone}function he(e){return typeof e=="string"?e:e==null?"":String(e)}function ge(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():he(e)}function H_(e){let t=_e(e);return t!==null&&t.debugInfo?vQ(t.debugInfo):ge(e)}function vQ(e){return!e.filePath||!e.lineNumber?e.className:`${e.className} (at ${e.filePath}:${e.lineNumber})`}var $_=De({ngErrorCode:De}),$M=De({ngErrorMessage:De}),Lc=De({ngTokenPath:De});function Sh(e,t){let n=ngDevMode?`Circular dependency detected for \`${e}\`.`:"";return WM(n,-200,t)}function K_(e,t){return KM(Sh(e,t),null)}function RM(){throw new Error("Cannot mix multi providers and regular providers")}function I_(e,t,n){if(e&&t){let r=t.map(o=>o==n?"?"+n+"?":"...");throw new Error(`Invalid provider for the NgModule '${ke(e)}' - only instances of Provider and Type are allowed, got: [${r.join(", ")}]`)}else throw Zc(n)?n.\u0275fromNgModule?new D(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new D(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function xh(e,t){let n=ngDevMode&&`No provider for ${ge(e)} found${t?` in ${t}`:""}`;throw new D(-201,n)}function bQ(e,t){e[Lc]??=[];let n=e[Lc],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(F(t.provide,"Token with multi: true should have a provide property"),r=ge(t.provide)):r=ge(t),n[0]!==r&&e[Lc].unshift(r)}function KM(e,t){let n=e[Lc],r=e[$_],o=e[$M]||e.message;return e.message=wQ(o,r,n,t),e}function WM(e,t,n){let r=new D(t,e);return r[$_]=t,r[$M]=e,n&&(r[Lc]=n),r}function _Q(e){return e[$_]}function wQ(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return bt(t,`${e}${i}${o}`)}var lh;function VM(){return lh}function $t(e){let t=lh;return lh=e,t}function W_(e,t,n){let r=vh(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;xh(e,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function GM(e){ngDevMode&&tn(lh,e,"Calling \u0275\u0275inject would cause infinite recursion")}var EQ={},pi=EQ,A_="__NG_DI_FLAG__",T_=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=hi(n)||0;try{return this.injector.get(t,r&8?null:pi,r)}catch(o){if(Xs(o))return o;throw o}}};function SQ(e,t=0){let n=ih();if(n===void 0)throw new D(-203,ngDevMode&&`The \`${ke(e)}\` token injection failed. \`inject()\` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);if(n===null)return W_(e,void 0,t);{let r=xQ(t),o=n.retrieve(e,r);if(ngDevMode&&U_(e,o,t),Xs(o)){if(r.optional)return null;throw o}return o}}function Tt(e,t=0){return(VM()||SQ)(se(e),t)}function Ih(e){throw new D(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${e} of the parameter list is invalid.
4
+ `):"",this.name="UnsubscriptionError",this.errors=n}})});var _r=_(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.arrRemove=void 0;function i8(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}Bl.arrRemove=i8});var dn=_(Qt=>{"use strict";var jA=Qt&&Qt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},FA=Qt&&Qt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},qA=Qt&&Qt.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.isSubscription=Qt.EMPTY_SUBSCRIPTION=Qt.Subscription=void 0;var Ec=He(),Zy=Yy(),BA=_r(),Qy=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=jA(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(m){t={error:m}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(Ec.isFunction(l))try{l()}catch(m){i=m instanceof Zy.UnsubscriptionError?m.errors:[m]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=jA(f),p=d.next();!p.done;p=d.next()){var h=p.value;try{UA(h)}catch(m){i=i??[],m instanceof Zy.UnsubscriptionError?i=qA(qA([],FA(i)),FA(m.errors)):i.push(m)}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}if(i)throw new Zy.UnsubscriptionError(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)UA(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&BA.arrRemove(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&BA.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();Qt.Subscription=Qy;Qt.EMPTY_SUBSCRIPTION=Qy.EMPTY;function s8(e){return e instanceof Qy||e&&"closed"in e&&Ec.isFunction(e.remove)&&Ec.isFunction(e.add)&&Ec.isFunction(e.unsubscribe)}Qt.isSubscription=s8;function UA(e){Ec.isFunction(e)?e():e.unsubscribe()}});var ls=_(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.config=void 0;Ul.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Jy=_(Yn=>{"use strict";var HA=Yn&&Yn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},$A=Yn&&Yn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.timeoutProvider=void 0;Yn.timeoutProvider={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Yn.timeoutProvider.delegate;return o?.setTimeout?o.setTimeout.apply(o,$A([e,t],HA(n))):setTimeout.apply(void 0,$A([e,t],HA(n)))},clearTimeout:function(e){var t=Yn.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});var Xy=_(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.reportUnhandledError=void 0;var a8=ls(),c8=Jy();function u8(e){c8.timeoutProvider.setTimeout(function(){var t=a8.config.onUnhandledError;if(t)t(e);else throw e})}Hl.reportUnhandledError=u8});var St=_($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.noop=void 0;function l8(){}$l.noop=l8});var KA=_(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.createNotification=Zn.nextNotification=Zn.errorNotification=Zn.COMPLETE_NOTIFICATION=void 0;Zn.COMPLETE_NOTIFICATION=(function(){return Kl("C",void 0,void 0)})();function f8(e){return Kl("E",void 0,e)}Zn.errorNotification=f8;function d8(e){return Kl("N",e,void 0)}Zn.nextNotification=d8;function Kl(e,t,n){return{kind:e,value:t,error:n}}Zn.createNotification=Kl});var Wl=_(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.captureError=fs.errorContext=void 0;var WA=ls(),ti=null;function p8(e){if(WA.config.useDeprecatedSynchronousErrorHandling){var t=!ti;if(t&&(ti={errorThrown:!1,error:null}),e(),t){var n=ti,r=n.errorThrown,o=n.error;if(ti=null,r)throw o}}else e()}fs.errorContext=p8;function h8(e){WA.config.useDeprecatedSynchronousErrorHandling&&ti&&(ti.errorThrown=!0,ti.error=e)}fs.captureError=h8});var ds=_(Dn=>{"use strict";var zA=Dn&&Dn.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.EMPTY_OBSERVER=Dn.SafeSubscriber=Dn.Subscriber=void 0;var g8=He(),VA=dn(),rv=ls(),m8=Xy(),GA=St(),ev=KA(),y8=Jy(),v8=Wl(),YA=(function(e){zA(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,VA.isSubscription(n)&&n.add(r)):r.destination=Dn.EMPTY_OBSERVER,r}return t.create=function(n,r,o){return new ZA(n,r,o)},t.prototype.next=function(n){this.isStopped?nv(ev.nextNotification(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?nv(ev.errorNotification(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?nv(ev.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(VA.Subscription);Dn.Subscriber=YA;var b8=Function.prototype.bind;function tv(e,t){return b8.call(e,t)}var _8=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Vl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Vl(r)}else Vl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Vl(n)}},e})(),ZA=(function(e){zA(t,e);function t(n,r,o){var i=e.call(this)||this,s;if(g8.isFunction(n)||!n)s={next:n??void 0,error:r??void 0,complete:o??void 0};else{var a;i&&rv.config.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return i.unsubscribe()},s={next:n.next&&tv(n.next,a),error:n.error&&tv(n.error,a),complete:n.complete&&tv(n.complete,a)}):s=n}return i.destination=new _8(s),i}return t})(YA);Dn.SafeSubscriber=ZA;function Vl(e){rv.config.useDeprecatedSynchronousErrorHandling?v8.captureError(e):m8.reportUnhandledError(e)}function w8(e){throw e}function nv(e,t){var n=rv.config.onStoppedNotification;n&&y8.timeoutProvider.setTimeout(function(){return n(e,t)})}Dn.EMPTY_OBSERVER={closed:!0,next:GA.noop,error:w8,complete:GA.noop}});var Sc=_(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.observable=void 0;Gl.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});var xt=_(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.identity=void 0;function E8(e){return e}zl.identity=E8});var xc=_(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.pipeFromArray=ps.pipe=void 0;var S8=xt();function x8(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return QA(e)}ps.pipe=x8;function QA(e){return e.length===0?S8.identity:e.length===1?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}ps.pipeFromArray=QA});var Ke=_(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.Observable=void 0;var iv=ds(),I8=dn(),A8=Sc(),T8=xc(),M8=ls(),ov=He(),O8=Wl(),P8=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=D8(t)?t:new iv.SafeSubscriber(t,n,r);return O8.errorContext(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=JA(n),new n(function(o,i){var s=new iv.SafeSubscriber({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[A8.observable]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return T8.pipeFromArray(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=JA(t),new t(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e})();Yl.Observable=P8;function JA(e){var t;return(t=e??M8.config.Promise)!==null&&t!==void 0?t:Promise}function C8(e){return e&&ov.isFunction(e.next)&&ov.isFunction(e.error)&&ov.isFunction(e.complete)}function D8(e){return e&&e instanceof iv.Subscriber||C8(e)&&I8.isSubscription(e)}});var W=_(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.operate=hs.hasLift=void 0;var k8=He();function XA(e){return k8.isFunction(e?.lift)}hs.hasLift=XA;function R8(e){return function(t){if(XA(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}hs.operate=R8});var ee=_(no=>{"use strict";var N8=no&&no.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(no,"__esModule",{value:!0});no.OperatorSubscriber=no.createOperatorSubscriber=void 0;var L8=ds();function j8(e,t,n,r,o){return new e1(e,t,n,r,o)}no.createOperatorSubscriber=j8;var e1=(function(e){N8(t,e);function t(n,r,o,i,s,a){var c=e.call(this,n)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(u){try{r(u)}catch(l){n.error(l)}}:e.prototype._next,c._error=i?function(u){try{i(u)}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=o?function(){try{o()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t})(L8.Subscriber);no.OperatorSubscriber=e1});var Ql=_(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.refCount=void 0;var F8=W(),q8=ee();function B8(){return F8.operate(function(e,t){var n=null;e._refCount++;var r=q8.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}Zl.refCount=B8});var Ic=_(gs=>{"use strict";var U8=gs&&gs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(gs,"__esModule",{value:!0});gs.ConnectableObservable=void 0;var H8=Ke(),t1=dn(),$8=Ql(),K8=ee(),W8=W(),V8=(function(e){U8(t,e);function t(n,r){var o=e.call(this)||this;return o.source=n,o.subjectFactory=r,o._subject=null,o._refCount=0,o._connection=null,W8.hasLift(n)&&(o.lift=n.lift),o}return t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,n?.unsubscribe()},t.prototype.connect=function(){var n=this,r=this._connection;if(!r){r=this._connection=new t1.Subscription;var o=this.getSubject();r.add(this.source.subscribe(K8.createOperatorSubscriber(o,void 0,function(){n._teardown(),o.complete()},function(i){n._teardown(),o.error(i)},function(){return n._teardown()}))),r.closed&&(this._connection=null,r=t1.Subscription.EMPTY)}return r},t.prototype.refCount=function(){return $8.refCount()(this)},t})(H8.Observable);gs.ConnectableObservable=V8});var n1=_(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.performanceTimestampProvider=void 0;Ac.performanceTimestampProvider={now:function(){return(Ac.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var sv=_(kn=>{"use strict";var r1=kn&&kn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},o1=kn&&kn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(kn,"__esModule",{value:!0});kn.animationFrameProvider=void 0;var G8=dn();kn.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=kn.animationFrameProvider.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var o=t(function(i){n=void 0,e(i)});return new G8.Subscription(function(){return n?.(o)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=kn.animationFrameProvider.delegate;return(n?.requestAnimationFrame||requestAnimationFrame).apply(void 0,o1([],r1(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=kn.animationFrameProvider.delegate;return(n?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,o1([],r1(e)))},delegate:void 0}});var a1=_(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.animationFrames=void 0;var z8=Ke(),Y8=n1(),i1=sv();function Z8(e){return e?s1(e):Q8}Jl.animationFrames=Z8;function s1(e){return new z8.Observable(function(t){var n=e||Y8.performanceTimestampProvider,r=n.now(),o=0,i=function(){t.closed||(o=i1.animationFrameProvider.requestAnimationFrame(function(s){o=0;var a=n.now();t.next({timestamp:e?a:s,elapsed:a-r}),i()}))};return i(),function(){o&&i1.animationFrameProvider.cancelAnimationFrame(o)}})}var Q8=s1()});var av=_(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.ObjectUnsubscribedError=void 0;var J8=to();Xl.ObjectUnsubscribedError=J8.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var It=_(Qn=>{"use strict";var u1=Qn&&Qn.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),X8=Qn&&Qn.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.AnonymousSubject=Qn.Subject=void 0;var c1=Ke(),uv=dn(),eU=av(),tU=_r(),cv=Wl(),l1=(function(e){u1(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new lv(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new eU.ObjectUnsubscribedError},t.prototype.next=function(n){var r=this;cv.errorContext(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=X8(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(n)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;cv.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;cv.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,o=this,i=o.hasError,s=o.isStopped,a=o.observers;return i||s?uv.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(n),new uv.Subscription(function(){r.currentObservers=null,tU.arrRemove(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r.thrownError,s=r.isStopped;o?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new c1.Observable;return n.source=this,n},t.create=function(n,r){return new lv(n,r)},t})(c1.Observable);Qn.Subject=l1;var lv=(function(e){u1(t,e);function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return t.prototype.next=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,n)},t.prototype.error=function(n){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&o!==void 0?o:uv.EMPTY_SUBSCRIPTION},t})(l1);Qn.AnonymousSubject=lv});var fv=_(ms=>{"use strict";var nU=ms&&ms.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ms,"__esModule",{value:!0});ms.BehaviorSubject=void 0;var rU=It(),oU=(function(e){nU(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,o=n.thrownError,i=n._value;if(r)throw o;return this._throwIfClosed(),i},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t})(rU.Subject);ms.BehaviorSubject=oU});var ef=_(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.dateTimestampProvider=void 0;Tc.dateTimestampProvider={now:function(){return(Tc.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var tf=_(ys=>{"use strict";var iU=ys&&ys.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ys,"__esModule",{value:!0});ys.ReplaySubject=void 0;var sU=It(),aU=ef(),cU=(function(e){iU(t,e);function t(n,r,o){n===void 0&&(n=1/0),r===void 0&&(r=1/0),o===void 0&&(o=aU.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=n,i._windowTime=r,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,n),i._windowTime=Math.max(1,r),i}return t.prototype.next=function(n){var r=this,o=r.isStopped,i=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;o||(i.push(n),!s&&i.push(a.now()+c)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),o=this,i=o._infiniteTimeWindow,s=o._buffer,a=s.slice(),c=0;c<a.length&&!n.closed;c+=i?1:2)n.next(a[c]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,o=n._timestampProvider,i=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<i.length&&i.splice(0,i.length-a),!s){for(var c=o.now(),u=0,l=1;l<i.length&&i[l]<=c;l+=2)u=l;u&&i.splice(0,u+1)}},t})(sU.Subject);ys.ReplaySubject=cU});var nf=_(vs=>{"use strict";var uU=vs&&vs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(vs,"__esModule",{value:!0});vs.AsyncSubject=void 0;var lU=It(),fU=(function(e){uU(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return t.prototype._checkFinalizedStatuses=function(n){var r=this,o=r.hasError,i=r._hasValue,s=r._value,a=r.thrownError,c=r.isStopped,u=r._isComplete;o?n.error(a):(c||u)&&(i&&n.next(s),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var n=this,r=n._hasValue,o=n._value,i=n._isComplete;i||(this._isComplete=!0,r&&e.prototype.next.call(this,o),e.prototype.complete.call(this))},t})(lU.Subject);vs.AsyncSubject=fU});var f1=_(bs=>{"use strict";var dU=bs&&bs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(bs,"__esModule",{value:!0});bs.Action=void 0;var pU=dn(),hU=(function(e){dU(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),this},t})(pU.Subscription);bs.Action=hU});var h1=_(Jn=>{"use strict";var d1=Jn&&Jn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},p1=Jn&&Jn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.intervalProvider=void 0;Jn.intervalProvider={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=Jn.intervalProvider.delegate;return o?.setInterval?o.setInterval.apply(o,p1([e,t],d1(n))):setInterval.apply(void 0,p1([e,t],d1(n)))},clearInterval:function(e){var t=Jn.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0}});var ws=_(_s=>{"use strict";var gU=_s&&_s.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(_s,"__esModule",{value:!0});_s.AsyncAction=void 0;var mU=f1(),g1=h1(),yU=_r(),vU=(function(e){gU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return t.prototype.schedule=function(n,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),g1.intervalProvider.setInterval(n.flush.bind(n,this),o)},t.prototype.recycleAsyncId=function(n,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&g1.intervalProvider.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var o=!1,i;try{this.work(n)}catch(s){o=!0,i=s||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,o=n.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,yU.arrRemove(i,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(mU.Action);_s.AsyncAction=vU});var y1=_(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.TestTools=Es.Immediate=void 0;var bU=1,dv,rf={};function m1(e){return e in rf?(delete rf[e],!0):!1}Es.Immediate={setImmediate:function(e){var t=bU++;return rf[t]=!0,dv||(dv=Promise.resolve()),dv.then(function(){return m1(t)&&e()}),t},clearImmediate:function(e){m1(e)}};Es.TestTools={pending:function(){return Object.keys(rf).length}}});var b1=_(Xn=>{"use strict";var _U=Xn&&Xn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},wU=Xn&&Xn.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.immediateProvider=void 0;var v1=y1(),EU=v1.Immediate.setImmediate,SU=v1.Immediate.clearImmediate;Xn.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Xn.immediateProvider.delegate;return(n?.setImmediate||EU).apply(void 0,wU([],_U(e)))},clearImmediate:function(e){var t=Xn.immediateProvider.delegate;return(t?.clearImmediate||SU)(e)},delegate:void 0}});var w1=_(Ss=>{"use strict";var xU=Ss&&Ss.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.AsapAction=void 0;var IU=ws(),_1=b1(),AU=(function(e){xU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.actions.push(this),n._scheduled||(n._scheduled=_1.immediateProvider.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,o);var s=n.actions;r!=null&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(_1.immediateProvider.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t})(IU.AsyncAction);Ss.AsapAction=AU});var pv=_(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.Scheduler=void 0;var TU=ef(),MU=(function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=TU.dateTimestampProvider.now,e})();of.Scheduler=MU});var Is=_(xs=>{"use strict";var OU=xs&&xs.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(xs,"__esModule",{value:!0});xs.AsyncScheduler=void 0;var E1=pv(),PU=(function(e){OU(t,e);function t(n,r){r===void 0&&(r=E1.Scheduler.now);var o=e.call(this,n,r)||this;return o.actions=[],o._active=!1,o}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var o;this._active=!0;do if(o=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,o){for(;n=r.shift();)n.unsubscribe();throw o}},t})(E1.Scheduler);xs.AsyncScheduler=PU});var S1=_(As=>{"use strict";var CU=As&&As.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(As,"__esModule",{value:!0});As.AsapScheduler=void 0;var DU=Is(),kU=(function(e){CU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var o=this.actions,i;n=n||o.shift();do if(i=n.execute(n.state,n.delay))break;while((n=o[0])&&n.id===r&&o.shift());if(this._active=!1,i){for(;(n=o[0])&&n.id===r&&o.shift();)n.unsubscribe();throw i}},t})(DU.AsyncScheduler);As.AsapScheduler=kU});var x1=_(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});ni.asap=ni.asapScheduler=void 0;var RU=w1(),NU=S1();ni.asapScheduler=new NU.AsapScheduler(RU.AsapAction);ni.asap=ni.asapScheduler});var Jt=_(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.async=ri.asyncScheduler=void 0;var LU=ws(),jU=Is();ri.asyncScheduler=new jU.AsyncScheduler(LU.AsyncAction);ri.async=ri.asyncScheduler});var I1=_(Ts=>{"use strict";var FU=Ts&&Ts.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ts,"__esModule",{value:!0});Ts.QueueAction=void 0;var qU=ws(),BU=(function(e){FU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},t.prototype.execute=function(n,r){return r>0||this.closed?e.prototype.execute.call(this,n,r):this._execute(n,r)},t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.flush(this),0)},t})(qU.AsyncAction);Ts.QueueAction=BU});var A1=_(Ms=>{"use strict";var UU=Ms&&Ms.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ms,"__esModule",{value:!0});Ms.QueueScheduler=void 0;var HU=Is(),$U=(function(e){UU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(HU.AsyncScheduler);Ms.QueueScheduler=$U});var T1=_(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.queue=oi.queueScheduler=void 0;var KU=I1(),WU=A1();oi.queueScheduler=new WU.QueueScheduler(KU.QueueAction);oi.queue=oi.queueScheduler});var O1=_(Os=>{"use strict";var VU=Os&&Os.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Os,"__esModule",{value:!0});Os.AnimationFrameAction=void 0;var GU=ws(),M1=sv(),zU=(function(e){VU(t,e);function t(n,r){var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o}return t.prototype.requestAsyncId=function(n,r,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,n,r,o):(n.actions.push(this),n._scheduled||(n._scheduled=M1.animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,o);var s=n.actions;r!=null&&r===n._scheduled&&((i=s[s.length-1])===null||i===void 0?void 0:i.id)!==r&&(M1.animationFrameProvider.cancelAnimationFrame(r),n._scheduled=void 0)},t})(GU.AsyncAction);Os.AnimationFrameAction=zU});var P1=_(Ps=>{"use strict";var YU=Ps&&Ps.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.AnimationFrameScheduler=void 0;var ZU=Is(),QU=(function(e){YU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r;n?r=n.id:(r=this._scheduled,this._scheduled=void 0);var o=this.actions,i;n=n||o.shift();do if(i=n.execute(n.state,n.delay))break;while((n=o[0])&&n.id===r&&o.shift());if(this._active=!1,i){for(;(n=o[0])&&n.id===r&&o.shift();)n.unsubscribe();throw i}},t})(ZU.AsyncScheduler);Ps.AnimationFrameScheduler=QU});var C1=_(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.animationFrame=ii.animationFrameScheduler=void 0;var JU=O1(),XU=P1();ii.animationFrameScheduler=new XU.AnimationFrameScheduler(JU.AnimationFrameAction);ii.animationFrame=ii.animationFrameScheduler});var R1=_(ro=>{"use strict";var D1=ro&&ro.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(ro,"__esModule",{value:!0});ro.VirtualAction=ro.VirtualTimeScheduler=void 0;var eH=ws(),tH=dn(),nH=Is(),rH=(function(e){D1(t,e);function t(n,r){n===void 0&&(n=k1),r===void 0&&(r=1/0);var o=e.call(this,n,function(){return o.frame})||this;return o.maxFrames=r,o.frame=0,o.index=-1,o}return t.prototype.flush=function(){for(var n=this,r=n.actions,o=n.maxFrames,i,s;(s=r[0])&&s.delay<=o&&(r.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=r.shift();)s.unsubscribe();throw i}},t.frameTimeFactor=10,t})(nH.AsyncScheduler);ro.VirtualTimeScheduler=rH;var k1=(function(e){D1(t,e);function t(n,r,o){o===void 0&&(o=n.index+=1);var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.index=o,i.active=!0,i.index=n.index=o,i}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}else return tH.Subscription.EMPTY},t.prototype.requestAsyncId=function(n,r,o){o===void 0&&(o=0),this.delay=n.frame+o;var i=n.actions;return i.push(this),i.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,r,o){o===void 0&&(o=0)},t.prototype._execute=function(n,r){if(this.active===!0)return e.prototype._execute.call(this,n,r)},t.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},t})(eH.AsyncAction);ro.VirtualAction=k1});var Rn=_(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.empty=si.EMPTY=void 0;var N1=Ke();si.EMPTY=new N1.Observable(function(e){return e.complete()});function oH(e){return e?iH(e):si.EMPTY}si.empty=oH;function iH(e){return new N1.Observable(function(t){return e.schedule(function(){return t.complete()})})}});var Mc=_(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.isScheduler=void 0;var sH=He();function aH(e){return e&&sH.isFunction(e.schedule)}sf.isScheduler=aH});var Xt=_(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.popNumber=oo.popScheduler=oo.popResultSelector=void 0;var cH=He(),uH=Mc();function hv(e){return e[e.length-1]}function lH(e){return cH.isFunction(hv(e))?e.pop():void 0}oo.popResultSelector=lH;function fH(e){return uH.isScheduler(hv(e))?e.pop():void 0}oo.popScheduler=fH;function dH(e,t){return typeof hv(e)=="number"?e.pop():t}oo.popNumber=dH});var cf=_(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.isArrayLike=void 0;af.isArrayLike=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"})});var gv=_(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.isPromise=void 0;var pH=He();function hH(e){return pH.isFunction(e?.then)}uf.isPromise=hH});var mv=_(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.isInteropObservable=void 0;var gH=Sc(),mH=He();function yH(e){return mH.isFunction(e[gH.observable])}lf.isInteropObservable=yH});var yv=_(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.isAsyncIterable=void 0;var vH=He();function bH(e){return Symbol.asyncIterator&&vH.isFunction(e?.[Symbol.asyncIterator])}ff.isAsyncIterable=bH});var vv=_(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.createInvalidObservableTypeError=void 0;function _H(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}df.createInvalidObservableTypeError=_H});var bv=_(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.iterator=Cs.getSymbolIterator=void 0;function L1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Cs.getSymbolIterator=L1;Cs.iterator=L1()});var _v=_(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.isIterable=void 0;var wH=bv(),EH=He();function SH(e){return EH.isFunction(e?.[wH.iterator])}pf.isIterable=SH});var hf=_(xn=>{"use strict";var xH=xn&&xn.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ds=xn&&xn.__await||function(e){return this instanceof Ds?(this.v=e,this):new Ds(e)},IH=xn&&xn.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(d){r[d]&&(o[d]=function(p){return new Promise(function(h,m){i.push([d,p,h,m])>1||a(d,p)})})}function a(d,p){try{c(r[d](p))}catch(h){f(i[0][3],h)}}function c(d){d.value instanceof Ds?Promise.resolve(d.value.v).then(u,l):f(i[0][2],d)}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,p){d(p),i.shift(),i.length&&a(i[0][0],i[0][1])}};Object.defineProperty(xn,"__esModule",{value:!0});xn.isReadableStreamLike=xn.readableStreamLikeToAsyncGenerator=void 0;var AH=He();function TH(e){return IH(this,arguments,function(){var n,r,o,i;return xH(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ds(n.read())];case 3:return r=s.sent(),o=r.value,i=r.done,i?[4,Ds(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ds(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}xn.readableStreamLikeToAsyncGenerator=TH;function MH(e){return AH.isFunction(e?.getReader)}xn.isReadableStreamLike=MH});var me=_(Je=>{"use strict";var OH=Je&&Je.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,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?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},PH=Je&&Je.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},CH=Je&&Je.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wv=="function"?wv(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}},wv=Je&&Je.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Je,"__esModule",{value:!0});Je.fromReadableStreamLike=Je.fromAsyncIterable=Je.fromIterable=Je.fromPromise=Je.fromArrayLike=Je.fromInteropObservable=Je.innerFrom=void 0;var DH=cf(),kH=gv(),ks=Ke(),RH=mv(),NH=yv(),LH=vv(),jH=_v(),j1=hf(),FH=He(),qH=Xy(),BH=Sc();function UH(e){if(e instanceof ks.Observable)return e;if(e!=null){if(RH.isInteropObservable(e))return F1(e);if(DH.isArrayLike(e))return q1(e);if(kH.isPromise(e))return B1(e);if(NH.isAsyncIterable(e))return Ev(e);if(jH.isIterable(e))return U1(e);if(j1.isReadableStreamLike(e))return H1(e)}throw LH.createInvalidObservableTypeError(e)}Je.innerFrom=UH;function F1(e){return new ks.Observable(function(t){var n=e[BH.observable]();if(FH.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}Je.fromInteropObservable=F1;function q1(e){return new ks.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}Je.fromArrayLike=q1;function B1(e){return new ks.Observable(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,qH.reportUnhandledError)})}Je.fromPromise=B1;function U1(e){return new ks.Observable(function(t){var n,r;try{for(var o=wv(e),i=o.next();!i.done;i=o.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}Je.fromIterable=U1;function Ev(e){return new ks.Observable(function(t){HH(e,t).catch(function(n){return t.error(n)})})}Je.fromAsyncIterable=Ev;function H1(e){return Ev(j1.readableStreamLikeToAsyncGenerator(e))}Je.fromReadableStreamLike=H1;function HH(e,t){var n,r,o,i;return OH(this,void 0,void 0,function(){var s,a;return PH(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=CH(e),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=c.sent(),o={error:a},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var wr=_(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.executeSchedule=void 0;function $H(e,t,n,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}gf.executeSchedule=$H});var Rs=_(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.observeOn=void 0;var Sv=wr(),KH=W(),WH=ee();function VH(e,t){return t===void 0&&(t=0),KH.operate(function(n,r){n.subscribe(WH.createOperatorSubscriber(r,function(o){return Sv.executeSchedule(r,e,function(){return r.next(o)},t)},function(){return Sv.executeSchedule(r,e,function(){return r.complete()},t)},function(o){return Sv.executeSchedule(r,e,function(){return r.error(o)},t)}))})}mf.observeOn=VH});var Ns=_(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.subscribeOn=void 0;var GH=W();function zH(e,t){return t===void 0&&(t=0),GH.operate(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}yf.subscribeOn=zH});var $1=_(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.scheduleObservable=void 0;var YH=me(),ZH=Rs(),QH=Ns();function JH(e,t){return YH.innerFrom(e).pipe(QH.subscribeOn(t),ZH.observeOn(t))}vf.scheduleObservable=JH});var K1=_(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.schedulePromise=void 0;var XH=me(),e3=Rs(),t3=Ns();function n3(e,t){return XH.innerFrom(e).pipe(t3.subscribeOn(t),e3.observeOn(t))}bf.schedulePromise=n3});var W1=_(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.scheduleArray=void 0;var r3=Ke();function o3(e,t){return new r3.Observable(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}_f.scheduleArray=o3});var xv=_(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.scheduleIterable=void 0;var i3=Ke(),s3=bv(),a3=He(),V1=wr();function c3(e,t){return new i3.Observable(function(n){var r;return V1.executeSchedule(n,t,function(){r=e[s3.iterator](),V1.executeSchedule(n,t,function(){var o,i,s;try{o=r.next(),i=o.value,s=o.done}catch(a){n.error(a);return}s?n.complete():n.next(i)},0,!0)}),function(){return a3.isFunction(r?.return)&&r.return()}})}wf.scheduleIterable=c3});var Iv=_(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.scheduleAsyncIterable=void 0;var u3=Ke(),G1=wr();function l3(e,t){if(!e)throw new Error("Iterable cannot be null");return new u3.Observable(function(n){G1.executeSchedule(n,t,function(){var r=e[Symbol.asyncIterator]();G1.executeSchedule(n,t,function(){r.next().then(function(o){o.done?n.complete():n.next(o.value)})},0,!0)})})}Ef.scheduleAsyncIterable=l3});var z1=_(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.scheduleReadableStreamLike=void 0;var f3=Iv(),d3=hf();function p3(e,t){return f3.scheduleAsyncIterable(d3.readableStreamLikeToAsyncGenerator(e),t)}Sf.scheduleReadableStreamLike=p3});var Av=_(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.scheduled=void 0;var h3=$1(),g3=K1(),m3=W1(),y3=xv(),v3=Iv(),b3=mv(),_3=gv(),w3=cf(),E3=_v(),S3=yv(),x3=vv(),I3=hf(),A3=z1();function T3(e,t){if(e!=null){if(b3.isInteropObservable(e))return h3.scheduleObservable(e,t);if(w3.isArrayLike(e))return m3.scheduleArray(e,t);if(_3.isPromise(e))return g3.schedulePromise(e,t);if(S3.isAsyncIterable(e))return v3.scheduleAsyncIterable(e,t);if(E3.isIterable(e))return y3.scheduleIterable(e,t);if(I3.isReadableStreamLike(e))return A3.scheduleReadableStreamLike(e,t)}throw x3.createInvalidObservableTypeError(e)}xf.scheduled=T3});var Er=_(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.from=void 0;var M3=Av(),O3=me();function P3(e,t){return t?M3.scheduled(e,t):O3.innerFrom(e)}If.from=P3});var Tf=_(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.of=void 0;var C3=Xt(),D3=Er();function k3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=C3.popScheduler(e);return D3.from(e,n)}Af.of=k3});var Tv=_(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.throwError=void 0;var R3=Ke(),N3=He();function L3(e,t){var n=N3.isFunction(e)?e:function(){return e},r=function(o){return o.error(n())};return new R3.Observable(t?function(o){return t.schedule(r,0,o)}:r)}Mf.throwError=L3});var Of=_(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.observeNotification=Sr.Notification=Sr.NotificationKind=void 0;var j3=Rn(),F3=Tf(),q3=Tv(),B3=He(),U3;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(U3=Sr.NotificationKind||(Sr.NotificationKind={}));var H3=(function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return Y1(this,t)},e.prototype.do=function(t,n,r){var o=this,i=o.kind,s=o.value,a=o.error;return i==="N"?t?.(s):i==="E"?n?.(a):r?.()},e.prototype.accept=function(t,n,r){var o;return B3.isFunction((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,o=t.error,i=n==="N"?F3.of(r):n==="E"?q3.throwError(function(){return o}):n==="C"?j3.EMPTY:0;if(!i)throw new TypeError("Unexpected notification kind "+n);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e})();Sr.Notification=H3;function Y1(e,t){var n,r,o,i=e,s=i.kind,a=i.value,c=i.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(n=t.next)===null||n===void 0||n.call(t,a):s==="E"?(r=t.error)===null||r===void 0||r.call(t,c):(o=t.complete)===null||o===void 0||o.call(t)}Sr.observeNotification=Y1});var Q1=_(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.isObservable=void 0;var $3=Ke(),Z1=He();function K3(e){return!!e&&(e instanceof $3.Observable||Z1.isFunction(e.lift)&&Z1.isFunction(e.subscribe))}Pf.isObservable=K3});var io=_(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.EmptyError=void 0;var W3=to();Cf.EmptyError=W3.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})});var J1=_(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.lastValueFrom=void 0;var V3=io();function G3(e,t){var n=typeof t=="object";return new Promise(function(r,o){var i=!1,s;e.subscribe({next:function(a){s=a,i=!0},error:o,complete:function(){i?r(s):n?r(t.defaultValue):o(new V3.EmptyError)}})})}Df.lastValueFrom=G3});var X1=_(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.firstValueFrom=void 0;var z3=io(),Y3=ds();function Z3(e,t){var n=typeof t=="object";return new Promise(function(r,o){var i=new Y3.SafeSubscriber({next:function(s){r(s),i.unsubscribe()},error:o,complete:function(){n?r(t.defaultValue):o(new z3.EmptyError)}});e.subscribe(i)})}kf.firstValueFrom=Z3});var Mv=_(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.ArgumentOutOfRangeError=void 0;var Q3=to();Rf.ArgumentOutOfRangeError=Q3.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Ov=_(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.NotFoundError=void 0;var J3=to();Nf.NotFoundError=J3.createErrorClass(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}})});var Pv=_(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.SequenceError=void 0;var X3=to();Lf.SequenceError=X3.createErrorClass(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}})});var Ff=_(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.isValidDate=void 0;function e$(e){return e instanceof Date&&!isNaN(e)}jf.isValidDate=e$});var Oc=_(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.timeout=ai.TimeoutError=void 0;var t$=Jt(),n$=Ff(),r$=W(),o$=me(),i$=to(),s$=ee(),a$=wr();ai.TimeoutError=i$.createErrorClass(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function c$(e,t){var n=n$.isValidDate(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,o=n.each,i=n.with,s=i===void 0?u$:i,a=n.scheduler,c=a===void 0?t??t$.asyncScheduler:a,u=n.meta,l=u===void 0?null:u;if(r==null&&o==null)throw new TypeError("No timeout provided.");return r$.operate(function(f,d){var p,h,m=null,y=0,v=function(w){h=a$.executeSchedule(d,c,function(){try{p.unsubscribe(),o$.innerFrom(s({meta:l,lastValue:m,seen:y})).subscribe(d)}catch(A){d.error(A)}},w)};p=f.subscribe(s$.createOperatorSubscriber(d,function(w){h?.unsubscribe(),y++,d.next(m=w),o>0&&v(o)},void 0,void 0,function(){h?.closed||h?.unsubscribe(),m=null})),!y&&v(r!=null?typeof r=="number"?r:+r-c.now():o)})}ai.timeout=c$;function u$(e){throw new ai.TimeoutError(e)}});var xr=_(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.map=void 0;var l$=W(),f$=ee();function d$(e,t){return l$.operate(function(n,r){var o=0;n.subscribe(f$.createOperatorSubscriber(r,function(i){r.next(e.call(t,i,o++))}))})}qf.map=d$});var ao=_(so=>{"use strict";var p$=so&&so.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},h$=so&&so.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(so,"__esModule",{value:!0});so.mapOneOrManyArgs=void 0;var g$=xr(),m$=Array.isArray;function y$(e,t){return m$(t)?e.apply(void 0,h$([],p$(t))):e(t)}function v$(e){return g$.map(function(t){return y$(e,t)})}so.mapOneOrManyArgs=v$});var Dv=_(co=>{"use strict";var b$=co&&co.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},eT=co&&co.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(co,"__esModule",{value:!0});co.bindCallbackInternals=void 0;var _$=Mc(),w$=Ke(),E$=Ns(),S$=ao(),x$=Rs(),I$=nf();function Cv(e,t,n,r){if(n)if(_$.isScheduler(n))r=n;else return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Cv(e,t,r).apply(this,o).pipe(S$.mapOneOrManyArgs(n))};return r?function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Cv(e,t).apply(this,o).pipe(E$.subscribeOn(r),x$.observeOn(r))}:function(){for(var o=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new I$.AsyncSubject,c=!0;return new w$.Observable(function(u){var l=a.subscribe(u);if(c){c=!1;var f=!1,d=!1;t.apply(o,eT(eT([],b$(i)),[function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];if(e){var m=p.shift();if(m!=null){a.error(m);return}}a.next(1<p.length?p:p[0]),d=!0,f&&a.complete()}])),d&&a.complete(),f=!0}return l})}}co.bindCallbackInternals=Cv});var tT=_(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.bindCallback=void 0;var A$=Dv();function T$(e,t,n){return A$.bindCallbackInternals(!1,e,t,n)}Bf.bindCallback=T$});var nT=_(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.bindNodeCallback=void 0;var M$=Dv();function O$(e,t,n){return M$.bindCallbackInternals(!0,e,t,n)}Uf.bindNodeCallback=O$});var kv=_(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.argsArgArrayOrObject=void 0;var P$=Array.isArray,C$=Object.getPrototypeOf,D$=Object.prototype,k$=Object.keys;function R$(e){if(e.length===1){var t=e[0];if(P$(t))return{args:t,keys:null};if(N$(t)){var n=k$(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}Hf.argsArgArrayOrObject=R$;function N$(e){return e&&typeof e=="object"&&C$(e)===D$}});var Rv=_($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.createObject=void 0;function L$(e,t){return e.reduce(function(n,r,o){return n[r]=t[o],n},{})}$f.createObject=L$});var Kf=_(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.combineLatestInit=Ls.combineLatest=void 0;var j$=Ke(),F$=kv(),iT=Er(),sT=xt(),q$=ao(),rT=Xt(),B$=Rv(),U$=ee(),H$=wr();function $$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=rT.popScheduler(e),r=rT.popResultSelector(e),o=F$.argsArgArrayOrObject(e),i=o.args,s=o.keys;if(i.length===0)return iT.from([],n);var a=new j$.Observable(aT(i,n,s?function(c){return B$.createObject(s,c)}:sT.identity));return r?a.pipe(q$.mapOneOrManyArgs(r)):a}Ls.combineLatest=$$;function aT(e,t,n){return n===void 0&&(n=sT.identity),function(r){oT(t,function(){for(var o=e.length,i=new Array(o),s=o,a=o,c=function(l){oT(t,function(){var f=iT.from(e[l],t),d=!1;f.subscribe(U$.createOperatorSubscriber(r,function(p){i[l]=p,d||(d=!0,a--),a||r.next(n(i.slice()))},function(){--s||r.complete()}))},r)},u=0;u<o;u++)c(u)},r)}}Ls.combineLatestInit=aT;function oT(e,t,n){e?H$.executeSchedule(n,e,t):t()}});var Vf=_(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.mergeInternals=void 0;var K$=me(),W$=wr(),cT=ee();function V$(e,t,n,r,o,i,s,a){var c=[],u=0,l=0,f=!1,d=function(){f&&!c.length&&!u&&t.complete()},p=function(m){return u<r?h(m):c.push(m)},h=function(m){i&&t.next(m),u++;var y=!1;K$.innerFrom(n(m,l++)).subscribe(cT.createOperatorSubscriber(t,function(v){o?.(v),i?p(v):t.next(v)},function(){y=!0},void 0,function(){if(y)try{u--;for(var v=function(){var w=c.shift();s?W$.executeSchedule(t,s,function(){return h(w)}):h(w)};c.length&&u<r;)v();d()}catch(w){t.error(w)}}))};return e.subscribe(cT.createOperatorSubscriber(t,p,function(){f=!0,d()})),function(){a?.()}}Wf.mergeInternals=V$});var er=_(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.mergeMap=void 0;var G$=xr(),z$=me(),Y$=W(),Z$=Vf(),Q$=He();function uT(e,t,n){return n===void 0&&(n=1/0),Q$.isFunction(t)?uT(function(r,o){return G$.map(function(i,s){return t(r,i,o,s)})(z$.innerFrom(e(r,o)))},n):(typeof t=="number"&&(n=t),Y$.operate(function(r,o){return Z$.mergeInternals(r,o,e,n)}))}Gf.mergeMap=uT});var js=_(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.mergeAll=void 0;var J$=er(),X$=xt();function e4(e){return e===void 0&&(e=1/0),J$.mergeMap(X$.identity,e)}zf.mergeAll=e4});var Pc=_(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.concatAll=void 0;var t4=js();function n4(){return t4.mergeAll(1)}Yf.concatAll=n4});var Cc=_(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.concat=void 0;var r4=Pc(),o4=Xt(),i4=Er();function s4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r4.concatAll()(i4.from(e,o4.popScheduler(e)))}Zf.concat=s4});var Dc=_(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.defer=void 0;var a4=Ke(),c4=me();function u4(e){return new a4.Observable(function(t){c4.innerFrom(e()).subscribe(t)})}Qf.defer=u4});var lT=_(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.connectable=void 0;var l4=It(),f4=Ke(),d4=Dc(),p4={connector:function(){return new l4.Subject},resetOnDisconnect:!0};function h4(e,t){t===void 0&&(t=p4);var n=null,r=t.connector,o=t.resetOnDisconnect,i=o===void 0?!0:o,s=r(),a=new f4.Observable(function(c){return s.subscribe(c)});return a.connect=function(){return(!n||n.closed)&&(n=d4.defer(function(){return e}).subscribe(s),i&&n.add(function(){return s=r()})),n},a}Jf.connectable=h4});var fT=_(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.forkJoin=void 0;var g4=Ke(),m4=kv(),y4=me(),v4=Xt(),b4=ee(),_4=ao(),w4=Rv();function E4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=v4.popResultSelector(e),r=m4.argsArgArrayOrObject(e),o=r.args,i=r.keys,s=new g4.Observable(function(a){var c=o.length;if(!c){a.complete();return}for(var u=new Array(c),l=c,f=c,d=function(h){var m=!1;y4.innerFrom(o[h]).subscribe(b4.createOperatorSubscriber(a,function(y){m||(m=!0,f--),u[h]=y},function(){return l--},void 0,function(){(!l||!m)&&(f||a.next(i?w4.createObject(i,u):u),a.complete())}))},p=0;p<c;p++)d(p)});return n?s.pipe(_4.mapOneOrManyArgs(n)):s}Xf.forkJoin=E4});var pT=_(Fs=>{"use strict";var S4=Fs&&Fs.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fromEvent=void 0;var x4=me(),I4=Ke(),A4=er(),T4=cf(),ci=He(),M4=ao(),O4=["addListener","removeListener"],P4=["addEventListener","removeEventListener"],C4=["on","off"];function Nv(e,t,n,r){if(ci.isFunction(n)&&(r=n,n=void 0),r)return Nv(e,t,n).pipe(M4.mapOneOrManyArgs(r));var o=S4(R4(e)?P4.map(function(a){return function(c){return e[a](t,c,n)}}):D4(e)?O4.map(dT(e,t)):k4(e)?C4.map(dT(e,t)):[],2),i=o[0],s=o[1];if(!i&&T4.isArrayLike(e))return A4.mergeMap(function(a){return Nv(a,t,n)})(x4.innerFrom(e));if(!i)throw new TypeError("Invalid event target");return new I4.Observable(function(a){var c=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return a.next(1<u.length?u:u[0])};return i(c),function(){return s(c)}})}Fs.fromEvent=Nv;function dT(e,t){return function(n){return function(r){return e[n](t,r)}}}function D4(e){return ci.isFunction(e.addListener)&&ci.isFunction(e.removeListener)}function k4(e){return ci.isFunction(e.on)&&ci.isFunction(e.off)}function R4(e){return ci.isFunction(e.addEventListener)&&ci.isFunction(e.removeEventListener)}});var gT=_(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.fromEventPattern=void 0;var N4=Ke(),L4=He(),j4=ao();function hT(e,t,n){return n?hT(e,t).pipe(j4.mapOneOrManyArgs(n)):new N4.Observable(function(r){var o=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r.next(s.length===1?s[0]:s)},i=e(o);return L4.isFunction(t)?function(){return t(o,i)}:void 0})}ed.fromEventPattern=hT});var yT=_(qs=>{"use strict";var F4=qs&&qs.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(qs,"__esModule",{value:!0});qs.generate=void 0;var mT=xt(),q4=Mc(),B4=Dc(),U4=xv();function H4(e,t,n,r,o){var i,s,a,c;arguments.length===1?(i=e,c=i.initialState,t=i.condition,n=i.iterate,s=i.resultSelector,a=s===void 0?mT.identity:s,o=i.scheduler):(c=e,!r||q4.isScheduler(r)?(a=mT.identity,o=r):a=r);function u(){var l;return F4(this,function(f){switch(f.label){case 0:l=c,f.label=1;case 1:return!t||t(l)?[4,a(l)]:[3,4];case 2:f.sent(),f.label=3;case 3:return l=n(l),[3,1];case 4:return[2]}})}return B4.defer(o?function(){return U4.scheduleIterable(u(),o)}:u)}qs.generate=H4});var vT=_(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.iif=void 0;var $4=Dc();function K4(e,t,n){return $4.defer(function(){return e()?t:n})}td.iif=K4});var uo=_(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.timer=void 0;var W4=Ke(),V4=Jt(),G4=Mc(),z4=Ff();function Y4(e,t,n){e===void 0&&(e=0),n===void 0&&(n=V4.async);var r=-1;return t!=null&&(G4.isScheduler(t)?n=t:r=t),new W4.Observable(function(o){var i=z4.isValidDate(e)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}nd.timer=Y4});var Lv=_(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.interval=void 0;var Z4=Jt(),Q4=uo();function J4(e,t){return e===void 0&&(e=0),t===void 0&&(t=Z4.asyncScheduler),e<0&&(e=0),Q4.timer(e,e,t)}rd.interval=J4});var _T=_(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.merge=void 0;var X4=js(),e6=me(),t6=Rn(),bT=Xt(),n6=Er();function r6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=bT.popScheduler(e),r=bT.popNumber(e,1/0),o=e;return o.length?o.length===1?e6.innerFrom(o[0]):X4.mergeAll(r)(n6.from(o,n)):t6.EMPTY}od.merge=r6});var jv=_(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.never=ui.NEVER=void 0;var o6=Ke(),i6=St();ui.NEVER=new o6.Observable(i6.noop);function s6(){return ui.NEVER}ui.never=s6});var li=_(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.argsOrArgArray=void 0;var a6=Array.isArray;function c6(e){return e.length===1&&a6(e[0])?e[0]:e}id.argsOrArgArray=c6});var Fv=_(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.onErrorResumeNext=void 0;var u6=Ke(),l6=li(),f6=ee(),wT=St(),d6=me();function p6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l6.argsOrArgArray(e);return new u6.Observable(function(r){var o=0,i=function(){if(o<n.length){var s=void 0;try{s=d6.innerFrom(n[o++])}catch{i();return}var a=new f6.OperatorSubscriber(r,void 0,wT.noop,wT.noop);s.subscribe(a),a.add(i)}else r.complete()};i()})}sd.onErrorResumeNext=p6});var ET=_(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.pairs=void 0;var h6=Er();function g6(e,t){return h6.from(Object.entries(e),t)}ad.pairs=g6});var qv=_(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.not=void 0;function m6(e,t){return function(n,r){return!e.call(t,n,r)}}cd.not=m6});var Ir=_(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.filter=void 0;var y6=W(),v6=ee();function b6(e,t){return y6.operate(function(n,r){var o=0;n.subscribe(v6.createOperatorSubscriber(r,function(i){return e.call(t,i,o++)&&r.next(i)}))})}ud.filter=b6});var IT=_(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.partition=void 0;var _6=qv(),ST=Ir(),xT=me();function w6(e,t,n){return[ST.filter(t,n)(xT.innerFrom(e)),ST.filter(_6.not(t,n))(xT.innerFrom(e))]}ld.partition=w6});var Bv=_(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.raceInit=Bs.race=void 0;var E6=Ke(),AT=me(),S6=li(),x6=ee();function I6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=S6.argsOrArgArray(e),e.length===1?AT.innerFrom(e[0]):new E6.Observable(TT(e))}Bs.race=I6;function TT(e){return function(t){for(var n=[],r=function(i){n.push(AT.innerFrom(e[i]).subscribe(x6.createOperatorSubscriber(t,function(s){if(n){for(var a=0;a<n.length;a++)a!==i&&n[a].unsubscribe();n=null}t.next(s)})))},o=0;n&&!t.closed&&o<e.length;o++)r(o)}}Bs.raceInit=TT});var MT=_(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.range=void 0;var A6=Ke(),T6=Rn();function M6(e,t,n){if(t==null&&(t=e,e=0),t<=0)return T6.EMPTY;var r=t+e;return new A6.Observable(n?function(o){var i=e;return n.schedule(function(){i<r?(o.next(i++),this.schedule()):o.complete()})}:function(o){for(var i=e;i<r&&!o.closed;)o.next(i++);o.complete()})}fd.range=M6});var OT=_(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.using=void 0;var O6=Ke(),P6=me(),C6=Rn();function D6(e,t){return new O6.Observable(function(n){var r=e(),o=t(r),i=o?P6.innerFrom(o):C6.EMPTY;return i.subscribe(n),function(){r&&r.unsubscribe()}})}dd.using=D6});var pd=_(lo=>{"use strict";var k6=lo&&lo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},R6=lo&&lo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(lo,"__esModule",{value:!0});lo.zip=void 0;var N6=Ke(),L6=me(),j6=li(),F6=Rn(),q6=ee(),B6=Xt();function U6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=B6.popResultSelector(e),r=j6.argsOrArgArray(e);return r.length?new N6.Observable(function(o){var i=r.map(function(){return[]}),s=r.map(function(){return!1});o.add(function(){i=s=null});for(var a=function(u){L6.innerFrom(r[u]).subscribe(q6.createOperatorSubscriber(o,function(l){if(i[u].push(l),i.every(function(d){return d.length})){var f=i.map(function(d){return d.shift()});o.next(n?n.apply(void 0,R6([],k6(f))):f),i.some(function(d,p){return!d.length&&s[p]})&&o.complete()}},function(){s[u]=!0,!i[u].length&&o.complete()}))},c=0;!o.closed&&c<r.length;c++)a(c);return function(){i=s=null}}):F6.EMPTY}lo.zip=U6});var CT=_(PT=>{"use strict";Object.defineProperty(PT,"__esModule",{value:!0})});var gd=_(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.audit=void 0;var H6=W(),$6=me(),DT=ee();function K6(e){return H6.operate(function(t,n){var r=!1,o=null,i=null,s=!1,a=function(){if(i?.unsubscribe(),i=null,r){r=!1;var u=o;o=null,n.next(u)}s&&n.complete()},c=function(){i=null,s&&n.complete()};t.subscribe(DT.createOperatorSubscriber(n,function(u){r=!0,o=u,i||$6.innerFrom(e(u)).subscribe(i=DT.createOperatorSubscriber(n,a,c))},function(){s=!0,(!r||!i||i.closed)&&n.complete()}))})}hd.audit=K6});var Uv=_(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.auditTime=void 0;var W6=Jt(),V6=gd(),G6=uo();function z6(e,t){return t===void 0&&(t=W6.asyncScheduler),V6.audit(function(){return G6.timer(e,t)})}md.auditTime=z6});var Hv=_(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.buffer=void 0;var Y6=W(),Z6=St(),kT=ee(),Q6=me();function J6(e){return Y6.operate(function(t,n){var r=[];return t.subscribe(kT.createOperatorSubscriber(n,function(o){return r.push(o)},function(){n.next(r),n.complete()})),Q6.innerFrom(e).subscribe(kT.createOperatorSubscriber(n,function(){var o=r;r=[],n.next(o)},Z6.noop)),function(){r=null}})}yd.buffer=J6});var Kv=_(Us=>{"use strict";var $v=Us&&Us.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Us,"__esModule",{value:!0});Us.bufferCount=void 0;var X6=W(),e5=ee(),t5=_r();function n5(e,t){return t===void 0&&(t=null),t=t??e,X6.operate(function(n,r){var o=[],i=0;n.subscribe(e5.createOperatorSubscriber(r,function(s){var a,c,u,l,f=null;i++%t===0&&o.push([]);try{for(var d=$v(o),p=d.next();!p.done;p=d.next()){var h=p.value;h.push(s),e<=h.length&&(f=f??[],f.push(h))}}catch(v){a={error:v}}finally{try{p&&!p.done&&(c=d.return)&&c.call(d)}finally{if(a)throw a.error}}if(f)try{for(var m=$v(f),y=m.next();!y.done;y=m.next()){var h=y.value;t5.arrRemove(o,h),r.next(h)}}catch(v){u={error:v}}finally{try{y&&!y.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}},function(){var s,a;try{for(var c=$v(o),u=c.next();!u.done;u=c.next()){var l=u.value;r.next(l)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}r.complete()},void 0,function(){o=null}))})}Us.bufferCount=n5});var Wv=_(Hs=>{"use strict";var r5=Hs&&Hs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.bufferTime=void 0;var o5=dn(),i5=W(),s5=ee(),a5=_r(),c5=Jt(),u5=Xt(),RT=wr();function l5(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=(t=u5.popScheduler(r))!==null&&t!==void 0?t:c5.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return i5.operate(function(c,u){var l=[],f=!1,d=function(m){var y=m.buffer,v=m.subs;v.unsubscribe(),a5.arrRemove(l,m),u.next(y),f&&p()},p=function(){if(l){var m=new o5.Subscription;u.add(m);var y=[],v={buffer:y,subs:m};l.push(v),RT.executeSchedule(m,i,function(){return d(v)},e)}};s!==null&&s>=0?RT.executeSchedule(u,i,p,s,!0):f=!0,p();var h=s5.createOperatorSubscriber(u,function(m){var y,v,w=l.slice();try{for(var A=r5(w),P=A.next();!P.done;P=A.next()){var j=P.value,Q=j.buffer;Q.push(m),a<=Q.length&&d(j)}}catch(ue){y={error:ue}}finally{try{P&&!P.done&&(v=A.return)&&v.call(A)}finally{if(y)throw y.error}}},function(){for(;l?.length;)u.next(l.shift().buffer);h?.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return l=null});c.subscribe(h)})}Hs.bufferTime=l5});var Gv=_($s=>{"use strict";var f5=$s&&$s.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty($s,"__esModule",{value:!0});$s.bufferToggle=void 0;var d5=dn(),p5=W(),NT=me(),Vv=ee(),LT=St(),h5=_r();function g5(e,t){return p5.operate(function(n,r){var o=[];NT.innerFrom(e).subscribe(Vv.createOperatorSubscriber(r,function(i){var s=[];o.push(s);var a=new d5.Subscription,c=function(){h5.arrRemove(o,s),r.next(s),a.unsubscribe()};a.add(NT.innerFrom(t(i)).subscribe(Vv.createOperatorSubscriber(r,c,LT.noop)))},LT.noop)),n.subscribe(Vv.createOperatorSubscriber(r,function(i){var s,a;try{for(var c=f5(o),u=c.next();!u.done;u=c.next()){var l=u.value;l.push(i)}}catch(f){s={error:f}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},function(){for(;o.length>0;)r.next(o.shift());r.complete()}))})}$s.bufferToggle=g5});var zv=_(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.bufferWhen=void 0;var m5=W(),y5=St(),jT=ee(),v5=me();function b5(e){return m5.operate(function(t,n){var r=null,o=null,i=function(){o?.unsubscribe();var s=r;r=[],s&&n.next(s),v5.innerFrom(e()).subscribe(o=jT.createOperatorSubscriber(n,i,y5.noop))};i(),t.subscribe(jT.createOperatorSubscriber(n,function(s){return r?.push(s)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=o=null}))})}vd.bufferWhen=b5});var Yv=_(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.catchError=void 0;var _5=me(),w5=ee(),E5=W();function FT(e){return E5.operate(function(t,n){var r=null,o=!1,i;r=t.subscribe(w5.createOperatorSubscriber(n,void 0,void 0,function(s){i=_5.innerFrom(e(s,FT(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}bd.catchError=FT});var Zv=_(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.scanInternals=void 0;var S5=ee();function x5(e,t,n,r,o){return function(i,s){var a=n,c=t,u=0;i.subscribe(S5.createOperatorSubscriber(s,function(l){var f=u++;c=a?e(c,l,f):(a=!0,l),r&&s.next(c)},o&&(function(){a&&s.next(c),s.complete()})))}}_d.scanInternals=x5});var fi=_(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.reduce=void 0;var I5=Zv(),A5=W();function T5(e,t){return A5.operate(I5.scanInternals(e,t,arguments.length>=2,!1,!0))}wd.reduce=T5});var Sd=_(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.toArray=void 0;var M5=fi(),O5=W(),P5=function(e,t){return e.push(t),e};function C5(){return O5.operate(function(e,t){M5.reduce(P5,[])(e).subscribe(t)})}Ed.toArray=C5});var Qv=_(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.joinAllInternals=void 0;var D5=xt(),k5=ao(),R5=xc(),N5=er(),L5=Sd();function j5(e,t){return R5.pipe(L5.toArray(),N5.mergeMap(function(n){return e(n)}),t?k5.mapOneOrManyArgs(t):D5.identity)}xd.joinAllInternals=j5});var Ad=_(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.combineLatestAll=void 0;var F5=Kf(),q5=Qv();function B5(e){return q5.joinAllInternals(F5.combineLatest,e)}Id.combineLatestAll=B5});var Jv=_(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.combineAll=void 0;var U5=Ad();Td.combineAll=U5.combineLatestAll});var Xv=_(fo=>{"use strict";var qT=fo&&fo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},BT=fo&&fo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(fo,"__esModule",{value:!0});fo.combineLatest=void 0;var H5=Kf(),$5=W(),K5=li(),W5=ao(),V5=xc(),G5=Xt();function UT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=G5.popResultSelector(e);return n?V5.pipe(UT.apply(void 0,BT([],qT(e))),W5.mapOneOrManyArgs(n)):$5.operate(function(r,o){H5.combineLatestInit(BT([r],qT(K5.argsOrArgArray(e))))(o)})}fo.combineLatest=UT});var eb=_(po=>{"use strict";var z5=po&&po.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},Y5=po&&po.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(po,"__esModule",{value:!0});po.combineLatestWith=void 0;var Z5=Xv();function Q5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Z5.combineLatest.apply(void 0,Y5([],z5(e)))}po.combineLatestWith=Q5});var Od=_(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.concatMap=void 0;var HT=er(),J5=He();function X5(e,t){return J5.isFunction(t)?HT.mergeMap(e,t,1):HT.mergeMap(e,1)}Md.concatMap=X5});var tb=_(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.concatMapTo=void 0;var $T=Od(),eK=He();function tK(e,t){return eK.isFunction(t)?$T.concatMap(function(){return e},t):$T.concatMap(function(){return e})}Pd.concatMapTo=tK});var nb=_(ho=>{"use strict";var nK=ho&&ho.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},rK=ho&&ho.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(ho,"__esModule",{value:!0});ho.concat=void 0;var oK=W(),iK=Pc(),sK=Xt(),aK=Er();function cK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=sK.popScheduler(e);return oK.operate(function(r,o){iK.concatAll()(aK.from(rK([r],nK(e)),n)).subscribe(o)})}ho.concat=cK});var rb=_(go=>{"use strict";var uK=go&&go.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},lK=go&&go.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(go,"__esModule",{value:!0});go.concatWith=void 0;var fK=nb();function dK(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fK.concat.apply(void 0,lK([],uK(e)))}go.concatWith=dK});var KT=_(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.fromSubscribable=void 0;var pK=Ke();function hK(e){return new pK.Observable(function(t){return e.subscribe(t)})}Cd.fromSubscribable=hK});var kc=_(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.connect=void 0;var gK=It(),mK=me(),yK=W(),vK=KT(),bK={connector:function(){return new gK.Subject}};function _K(e,t){t===void 0&&(t=bK);var n=t.connector;return yK.operate(function(r,o){var i=n();mK.innerFrom(e(vK.fromSubscribable(i))).subscribe(o),o.add(r.subscribe(i))})}Dd.connect=_K});var ob=_(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.count=void 0;var wK=fi();function EK(e){return wK.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}kd.count=EK});var ib=_(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.debounce=void 0;var SK=W(),xK=St(),WT=ee(),IK=me();function AK(e){return SK.operate(function(t,n){var r=!1,o=null,i=null,s=function(){if(i?.unsubscribe(),i=null,r){r=!1;var a=o;o=null,n.next(a)}};t.subscribe(WT.createOperatorSubscriber(n,function(a){i?.unsubscribe(),r=!0,o=a,i=WT.createOperatorSubscriber(n,s,xK.noop),IK.innerFrom(e(a)).subscribe(i)},function(){s(),n.complete()},void 0,function(){o=i=null}))})}Rd.debounce=AK});var sb=_(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.debounceTime=void 0;var TK=Jt(),MK=W(),OK=ee();function PK(e,t){return t===void 0&&(t=TK.asyncScheduler),MK.operate(function(n,r){var o=null,i=null,s=null,a=function(){if(o){o.unsubscribe(),o=null;var u=i;i=null,r.next(u)}};function c(){var u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a()}n.subscribe(OK.createOperatorSubscriber(r,function(u){i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},function(){a(),r.complete()},void 0,function(){i=o=null}))})}Nd.debounceTime=PK});var Ks=_(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.defaultIfEmpty=void 0;var CK=W(),DK=ee();function kK(e){return CK.operate(function(t,n){var r=!1;t.subscribe(DK.createOperatorSubscriber(n,function(o){r=!0,n.next(o)},function(){r||n.next(e),n.complete()}))})}Ld.defaultIfEmpty=kK});var Ws=_(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.take=void 0;var RK=Rn(),NK=W(),LK=ee();function jK(e){return e<=0?function(){return RK.EMPTY}:NK.operate(function(t,n){var r=0;t.subscribe(LK.createOperatorSubscriber(n,function(o){++r<=e&&(n.next(o),e<=r&&n.complete())}))})}jd.take=jK});var qd=_(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.ignoreElements=void 0;var FK=W(),qK=ee(),BK=St();function UK(){return FK.operate(function(e,t){e.subscribe(qK.createOperatorSubscriber(t,BK.noop))})}Fd.ignoreElements=UK});var Ud=_(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.mapTo=void 0;var HK=xr();function $K(e){return HK.map(function(){return e})}Bd.mapTo=$K});var $d=_(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.delayWhen=void 0;var KK=Cc(),VT=Ws(),WK=qd(),VK=Ud(),GK=er(),zK=me();function GT(e,t){return t?function(n){return KK.concat(t.pipe(VT.take(1),WK.ignoreElements()),n.pipe(GT(e)))}:GK.mergeMap(function(n,r){return zK.innerFrom(e(n,r)).pipe(VT.take(1),VK.mapTo(n))})}Hd.delayWhen=GT});var ab=_(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.delay=void 0;var YK=Jt(),ZK=$d(),QK=uo();function JK(e,t){t===void 0&&(t=YK.asyncScheduler);var n=QK.timer(e,t);return ZK.delayWhen(function(){return n})}Kd.delay=JK});var cb=_(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.dematerialize=void 0;var XK=Of(),eW=W(),tW=ee();function nW(){return eW.operate(function(e,t){e.subscribe(tW.createOperatorSubscriber(t,function(n){return XK.observeNotification(n,t)}))})}Wd.dematerialize=nW});var ub=_(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.distinct=void 0;var rW=W(),zT=ee(),oW=St(),iW=me();function sW(e,t){return rW.operate(function(n,r){var o=new Set;n.subscribe(zT.createOperatorSubscriber(r,function(i){var s=e?e(i):i;o.has(s)||(o.add(s),r.next(i))})),t&&iW.innerFrom(t).subscribe(zT.createOperatorSubscriber(r,function(){return o.clear()},oW.noop))})}Vd.distinct=sW});var zd=_(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.distinctUntilChanged=void 0;var aW=xt(),cW=W(),uW=ee();function lW(e,t){return t===void 0&&(t=aW.identity),e=e??fW,cW.operate(function(n,r){var o,i=!0;n.subscribe(uW.createOperatorSubscriber(r,function(s){var a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}Gd.distinctUntilChanged=lW;function fW(e,t){return e===t}});var lb=_(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.distinctUntilKeyChanged=void 0;var dW=zd();function pW(e,t){return dW.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}Yd.distinctUntilKeyChanged=pW});var Vs=_(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.throwIfEmpty=void 0;var hW=io(),gW=W(),mW=ee();function yW(e){return e===void 0&&(e=vW),gW.operate(function(t,n){var r=!1;t.subscribe(mW.createOperatorSubscriber(n,function(o){r=!0,n.next(o)},function(){return r?n.complete():n.error(e())}))})}Zd.throwIfEmpty=yW;function vW(){return new hW.EmptyError}});var fb=_(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.elementAt=void 0;var YT=Mv(),bW=Ir(),_W=Vs(),wW=Ks(),EW=Ws();function SW(e,t){if(e<0)throw new YT.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(r){return r.pipe(bW.filter(function(o,i){return i===e}),EW.take(1),n?wW.defaultIfEmpty(t):_W.throwIfEmpty(function(){return new YT.ArgumentOutOfRangeError}))}}Qd.elementAt=SW});var db=_(mo=>{"use strict";var xW=mo&&mo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},IW=mo&&mo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(mo,"__esModule",{value:!0});mo.endWith=void 0;var AW=Cc(),TW=Tf();function MW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return AW.concat(n,TW.of.apply(void 0,IW([],xW(e))))}}mo.endWith=MW});var pb=_(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.every=void 0;var OW=W(),PW=ee();function CW(e,t){return OW.operate(function(n,r){var o=0;n.subscribe(PW.createOperatorSubscriber(r,function(i){e.call(t,i,o++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}Jd.every=CW});var ep=_(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.exhaustMap=void 0;var DW=xr(),ZT=me(),kW=W(),QT=ee();function JT(e,t){return t?function(n){return n.pipe(JT(function(r,o){return ZT.innerFrom(e(r,o)).pipe(DW.map(function(i,s){return t(r,i,o,s)}))}))}:kW.operate(function(n,r){var o=0,i=null,s=!1;n.subscribe(QT.createOperatorSubscriber(r,function(a){i||(i=QT.createOperatorSubscriber(r,void 0,function(){i=null,s&&r.complete()}),ZT.innerFrom(e(a,o++)).subscribe(i))},function(){s=!0,!i&&r.complete()}))})}Xd.exhaustMap=JT});var np=_(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.exhaustAll=void 0;var RW=ep(),NW=xt();function LW(){return RW.exhaustMap(NW.identity)}tp.exhaustAll=LW});var hb=_(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.exhaust=void 0;var jW=np();rp.exhaust=jW.exhaustAll});var gb=_(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.expand=void 0;var FW=W(),qW=Vf();function BW(e,t,n){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,FW.operate(function(r,o){return qW.mergeInternals(r,o,e,t,void 0,!0,n)})}op.expand=BW});var mb=_(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.finalize=void 0;var UW=W();function HW(e){return UW.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}ip.finalize=HW});var sp=_(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.createFind=Gs.find=void 0;var $W=W(),KW=ee();function WW(e,t){return $W.operate(XT(e,t,"value"))}Gs.find=WW;function XT(e,t,n){var r=n==="index";return function(o,i){var s=0;o.subscribe(KW.createOperatorSubscriber(i,function(a){var c=s++;e.call(t,a,c,o)&&(i.next(r?c:a),i.complete())},function(){i.next(r?-1:void 0),i.complete()}))}}Gs.createFind=XT});var yb=_(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.findIndex=void 0;var VW=W(),GW=sp();function zW(e,t){return VW.operate(GW.createFind(e,t,"index"))}ap.findIndex=zW});var vb=_(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.first=void 0;var YW=io(),ZW=Ir(),QW=Ws(),JW=Ks(),XW=Vs(),eV=xt();function tV(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ZW.filter(function(o,i){return e(o,i,r)}):eV.identity,QW.take(1),n?JW.defaultIfEmpty(t):XW.throwIfEmpty(function(){return new YW.EmptyError}))}}cp.first=tV});var bb=_(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.groupBy=void 0;var nV=Ke(),rV=me(),oV=It(),iV=W(),eM=ee();function sV(e,t,n,r){return iV.operate(function(o,i){var s;!t||typeof t=="function"?s=t:(n=t.duration,s=t.element,r=t.connector);var a=new Map,c=function(h){a.forEach(h),h(i)},u=function(h){return c(function(m){return m.error(h)})},l=0,f=!1,d=new eM.OperatorSubscriber(i,function(h){try{var m=e(h),y=a.get(m);if(!y){a.set(m,y=r?r():new oV.Subject);var v=p(m,y);if(i.next(v),n){var w=eM.createOperatorSubscriber(y,function(){y.complete(),w?.unsubscribe()},void 0,void 0,function(){return a.delete(m)});d.add(rV.innerFrom(n(v)).subscribe(w))}}y.next(s?s(h):h)}catch(A){u(A)}},function(){return c(function(h){return h.complete()})},u,function(){return a.clear()},function(){return f=!0,l===0});o.subscribe(d);function p(h,m){var y=new nV.Observable(function(v){l++;var w=m.subscribe(v);return function(){w.unsubscribe(),--l===0&&f&&d.unsubscribe()}});return y.key=h,y}})}up.groupBy=sV});var _b=_(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.isEmpty=void 0;var aV=W(),cV=ee();function uV(){return aV.operate(function(e,t){e.subscribe(cV.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}lp.isEmpty=uV});var fp=_(zs=>{"use strict";var lV=zs&&zs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(zs,"__esModule",{value:!0});zs.takeLast=void 0;var fV=Rn(),dV=W(),pV=ee();function hV(e){return e<=0?function(){return fV.EMPTY}:dV.operate(function(t,n){var r=[];t.subscribe(pV.createOperatorSubscriber(n,function(o){r.push(o),e<r.length&&r.shift()},function(){var o,i;try{for(var s=lV(r),a=s.next();!a.done;a=s.next()){var c=a.value;n.next(c)}}catch(u){o={error:u}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}n.complete()},void 0,function(){r=null}))})}zs.takeLast=hV});var wb=_(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.last=void 0;var gV=io(),mV=Ir(),yV=fp(),vV=Vs(),bV=Ks(),_V=xt();function wV(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?mV.filter(function(o,i){return e(o,i,r)}):_V.identity,yV.takeLast(1),n?bV.defaultIfEmpty(t):vV.throwIfEmpty(function(){return new gV.EmptyError}))}}dp.last=wV});var Sb=_(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.materialize=void 0;var Eb=Of(),EV=W(),SV=ee();function xV(){return EV.operate(function(e,t){e.subscribe(SV.createOperatorSubscriber(t,function(n){t.next(Eb.Notification.createNext(n))},function(){t.next(Eb.Notification.createComplete()),t.complete()},function(n){t.next(Eb.Notification.createError(n)),t.complete()}))})}pp.materialize=xV});var xb=_(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.max=void 0;var IV=fi(),AV=He();function TV(e){return IV.reduce(AV.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}hp.max=TV});var Ib=_(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.flatMap=void 0;var MV=er();gp.flatMap=MV.mergeMap});var Ab=_(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.mergeMapTo=void 0;var tM=er(),OV=He();function PV(e,t,n){return n===void 0&&(n=1/0),OV.isFunction(t)?tM.mergeMap(function(){return e},t,n):(typeof t=="number"&&(n=t),tM.mergeMap(function(){return e},n))}mp.mergeMapTo=PV});var Tb=_(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.mergeScan=void 0;var CV=W(),DV=Vf();function kV(e,t,n){return n===void 0&&(n=1/0),CV.operate(function(r,o){var i=t;return DV.mergeInternals(r,o,function(s,a){return e(i,s,a)},n,function(s){i=s},!1,void 0,function(){return i=null})})}yp.mergeScan=kV});var Mb=_(yo=>{"use strict";var RV=yo&&yo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},NV=yo&&yo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(yo,"__esModule",{value:!0});yo.merge=void 0;var LV=W(),jV=js(),nM=Xt(),FV=Er();function qV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nM.popScheduler(e),r=nM.popNumber(e,1/0);return LV.operate(function(o,i){jV.mergeAll(r)(FV.from(NV([o],RV(e)),n)).subscribe(i)})}yo.merge=qV});var Ob=_(vo=>{"use strict";var BV=vo&&vo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},UV=vo&&vo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(vo,"__esModule",{value:!0});vo.mergeWith=void 0;var HV=Mb();function $V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return HV.merge.apply(void 0,UV([],BV(e)))}vo.mergeWith=$V});var Pb=_(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.min=void 0;var KV=fi(),WV=He();function VV(e){return KV.reduce(WV.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}vp.min=VV});var Rc=_(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.multicast=void 0;var GV=Ic(),rM=He(),zV=kc();function YV(e,t){var n=rM.isFunction(e)?e:function(){return e};return rM.isFunction(t)?zV.connect(t,{connector:n}):function(r){return new GV.ConnectableObservable(r,n)}}bp.multicast=YV});var Cb=_(tr=>{"use strict";var ZV=tr&&tr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},QV=tr&&tr.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(tr,"__esModule",{value:!0});tr.onErrorResumeNext=tr.onErrorResumeNextWith=void 0;var JV=li(),XV=Fv();function oM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=JV.argsOrArgArray(e);return function(r){return XV.onErrorResumeNext.apply(void 0,QV([r],ZV(n)))}}tr.onErrorResumeNextWith=oM;tr.onErrorResumeNext=oM});var Db=_(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.pairwise=void 0;var eG=W(),tG=ee();function nG(){return eG.operate(function(e,t){var n,r=!1;e.subscribe(tG.createOperatorSubscriber(t,function(o){var i=n;n=o,r&&t.next([i,o]),r=!0}))})}_p.pairwise=nG});var kb=_(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.pluck=void 0;var rG=xr();function oG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return rG.map(function(r){for(var o=r,i=0;i<n;i++){var s=o?.[e[i]];if(typeof s<"u")o=s;else return}return o})}wp.pluck=oG});var Rb=_(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.publish=void 0;var iG=It(),sG=Rc(),aG=kc();function cG(e){return e?function(t){return aG.connect(e)(t)}:function(t){return sG.multicast(new iG.Subject)(t)}}Ep.publish=cG});var Nb=_(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.publishBehavior=void 0;var uG=fv(),lG=Ic();function fG(e){return function(t){var n=new uG.BehaviorSubject(e);return new lG.ConnectableObservable(t,function(){return n})}}Sp.publishBehavior=fG});var Lb=_(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.publishLast=void 0;var dG=nf(),pG=Ic();function hG(){return function(e){var t=new dG.AsyncSubject;return new pG.ConnectableObservable(e,function(){return t})}}xp.publishLast=hG});var jb=_(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.publishReplay=void 0;var gG=tf(),mG=Rc(),iM=He();function yG(e,t,n,r){n&&!iM.isFunction(n)&&(r=n);var o=iM.isFunction(n)?n:void 0;return function(i){return mG.multicast(new gG.ReplaySubject(e,t,r),o)(i)}}Ip.publishReplay=yG});var Ap=_(bo=>{"use strict";var vG=bo&&bo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},bG=bo&&bo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(bo,"__esModule",{value:!0});bo.raceWith=void 0;var _G=Bv(),wG=W(),EG=xt();function SG(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?wG.operate(function(n,r){_G.raceInit(bG([n],vG(e)))(r)}):EG.identity}bo.raceWith=SG});var Fb=_(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.repeat=void 0;var xG=Rn(),IG=W(),sM=ee(),AG=me(),TG=uo();function MG(e){var t,n=1/0,r;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,r=e.delay):n=e),n<=0?function(){return xG.EMPTY}:IG.operate(function(o,i){var s=0,a,c=function(){if(a?.unsubscribe(),a=null,r!=null){var l=typeof r=="number"?TG.timer(r):AG.innerFrom(r(s)),f=sM.createOperatorSubscriber(i,function(){f.unsubscribe(),u()});l.subscribe(f)}else u()},u=function(){var l=!1;a=o.subscribe(sM.createOperatorSubscriber(i,void 0,function(){++s<n?a?c():l=!0:i.complete()})),l&&c()};u()})}Tp.repeat=MG});var qb=_(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.repeatWhen=void 0;var OG=me(),PG=It(),CG=W(),aM=ee();function DG(e){return CG.operate(function(t,n){var r,o=!1,i,s=!1,a=!1,c=function(){return a&&s&&(n.complete(),!0)},u=function(){return i||(i=new PG.Subject,OG.innerFrom(e(i)).subscribe(aM.createOperatorSubscriber(n,function(){r?l():o=!0},function(){s=!0,c()}))),i},l=function(){a=!1,r=t.subscribe(aM.createOperatorSubscriber(n,void 0,function(){a=!0,!c()&&u().next()})),o&&(r.unsubscribe(),r=null,o=!1,l())};l()})}Mp.repeatWhen=DG});var Bb=_(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.retry=void 0;var kG=W(),cM=ee(),RG=xt(),NG=uo(),LG=me();function jG(e){e===void 0&&(e=1/0);var t;e&&typeof e=="object"?t=e:t={count:e};var n=t.count,r=n===void 0?1/0:n,o=t.delay,i=t.resetOnSuccess,s=i===void 0?!1:i;return r<=0?RG.identity:kG.operate(function(a,c){var u=0,l,f=function(){var d=!1;l=a.subscribe(cM.createOperatorSubscriber(c,function(p){s&&(u=0),c.next(p)},void 0,function(p){if(u++<r){var h=function(){l?(l.unsubscribe(),l=null,f()):d=!0};if(o!=null){var m=typeof o=="number"?NG.timer(o):LG.innerFrom(o(p,u)),y=cM.createOperatorSubscriber(c,function(){y.unsubscribe(),h()},function(){c.complete()});m.subscribe(y)}else h()}else c.error(p)})),d&&(l.unsubscribe(),l=null,f())};f()})}Op.retry=jG});var Ub=_(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.retryWhen=void 0;var FG=me(),qG=It(),BG=W(),uM=ee();function UG(e){return BG.operate(function(t,n){var r,o=!1,i,s=function(){r=t.subscribe(uM.createOperatorSubscriber(n,void 0,void 0,function(a){i||(i=new qG.Subject,FG.innerFrom(e(i)).subscribe(uM.createOperatorSubscriber(n,function(){return r?s():o=!0}))),i&&i.next(a)})),o&&(r.unsubscribe(),r=null,o=!1,s())};s()})}Pp.retryWhen=UG});var Dp=_(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.sample=void 0;var HG=me(),$G=W(),KG=St(),lM=ee();function WG(e){return $G.operate(function(t,n){var r=!1,o=null;t.subscribe(lM.createOperatorSubscriber(n,function(i){r=!0,o=i})),HG.innerFrom(e).subscribe(lM.createOperatorSubscriber(n,function(){if(r){r=!1;var i=o;o=null,n.next(i)}},KG.noop))})}Cp.sample=WG});var Hb=_(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.sampleTime=void 0;var VG=Jt(),GG=Dp(),zG=Lv();function YG(e,t){return t===void 0&&(t=VG.asyncScheduler),GG.sample(zG.interval(e,t))}kp.sampleTime=YG});var $b=_(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.scan=void 0;var ZG=W(),QG=Zv();function JG(e,t){return ZG.operate(QG.scanInternals(e,t,arguments.length>=2,!0))}Rp.scan=JG});var Kb=_(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.sequenceEqual=void 0;var XG=W(),e9=ee(),t9=me();function n9(e,t){return t===void 0&&(t=function(n,r){return n===r}),XG.operate(function(n,r){var o=fM(),i=fM(),s=function(c){r.next(c),r.complete()},a=function(c,u){var l=e9.createOperatorSubscriber(r,function(f){var d=u.buffer,p=u.complete;d.length===0?p?s(!1):c.buffer.push(f):!t(f,d.shift())&&s(!1)},function(){c.complete=!0;var f=u.complete,d=u.buffer;f&&s(d.length===0),l?.unsubscribe()});return l};n.subscribe(a(o,i)),t9.innerFrom(e).subscribe(a(i,o))})}Np.sequenceEqual=n9;function fM(){return{buffer:[],complete:!1}}});var Lp=_(_o=>{"use strict";var r9=_o&&_o.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},o9=_o&&_o.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(_o,"__esModule",{value:!0});_o.share=void 0;var dM=me(),i9=It(),pM=ds(),s9=W();function a9(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new i9.Subject}:t,r=e.resetOnError,o=r===void 0?!0:r,i=e.resetOnComplete,s=i===void 0?!0:i,a=e.resetOnRefCountZero,c=a===void 0?!0:a;return function(u){var l,f,d,p=0,h=!1,m=!1,y=function(){f?.unsubscribe(),f=void 0},v=function(){y(),l=d=void 0,h=m=!1},w=function(){var A=l;v(),A?.unsubscribe()};return s9.operate(function(A,P){p++,!m&&!h&&y();var j=d=d??n();P.add(function(){p--,p===0&&!m&&!h&&(f=Wb(w,c))}),j.subscribe(P),!l&&p>0&&(l=new pM.SafeSubscriber({next:function(Q){return j.next(Q)},error:function(Q){m=!0,y(),f=Wb(v,o,Q),j.error(Q)},complete:function(){h=!0,y(),f=Wb(v,s),j.complete()}}),dM.innerFrom(A).subscribe(l))})(u)}}_o.share=a9;function Wb(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var o=new pM.SafeSubscriber({next:function(){o.unsubscribe(),e()}});return dM.innerFrom(t.apply(void 0,o9([],r9(n)))).subscribe(o)}}});var Vb=_(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.shareReplay=void 0;var c9=tf(),u9=Lp();function l9(e,t,n){var r,o,i,s,a=!1;return e&&typeof e=="object"?(r=e.bufferSize,s=r===void 0?1/0:r,o=e.windowTime,t=o===void 0?1/0:o,i=e.refCount,a=i===void 0?!1:i,n=e.scheduler):s=e??1/0,u9.share({connector:function(){return new c9.ReplaySubject(s,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}jp.shareReplay=l9});var Gb=_(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.single=void 0;var f9=io(),d9=Pv(),p9=Ov(),h9=W(),g9=ee();function m9(e){return h9.operate(function(t,n){var r=!1,o,i=!1,s=0;t.subscribe(g9.createOperatorSubscriber(n,function(a){i=!0,(!e||e(a,s++,t))&&(r&&n.error(new d9.SequenceError("Too many matching values")),r=!0,o=a)},function(){r?(n.next(o),n.complete()):n.error(i?new p9.NotFoundError("No matching values"):new f9.EmptyError)}))})}Fp.single=m9});var zb=_(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.skip=void 0;var y9=Ir();function v9(e){return y9.filter(function(t,n){return e<=n})}qp.skip=v9});var Yb=_(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.skipLast=void 0;var b9=xt(),_9=W(),w9=ee();function E9(e){return e<=0?b9.identity:_9.operate(function(t,n){var r=new Array(e),o=0;return t.subscribe(w9.createOperatorSubscriber(n,function(i){var s=o++;if(s<e)r[s]=i;else{var a=s%e,c=r[a];r[a]=i,n.next(c)}})),function(){r=null}})}Bp.skipLast=E9});var Zb=_(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.skipUntil=void 0;var S9=W(),hM=ee(),x9=me(),I9=St();function A9(e){return S9.operate(function(t,n){var r=!1,o=hM.createOperatorSubscriber(n,function(){o?.unsubscribe(),r=!0},I9.noop);x9.innerFrom(e).subscribe(o),t.subscribe(hM.createOperatorSubscriber(n,function(i){return r&&n.next(i)}))})}Up.skipUntil=A9});var Qb=_(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.skipWhile=void 0;var T9=W(),M9=ee();function O9(e){return T9.operate(function(t,n){var r=!1,o=0;t.subscribe(M9.createOperatorSubscriber(n,function(i){return(r||(r=!e(i,o++)))&&n.next(i)}))})}Hp.skipWhile=O9});var Jb=_($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.startWith=void 0;var gM=Cc(),P9=Xt(),C9=W();function D9(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=P9.popScheduler(e);return C9.operate(function(r,o){(n?gM.concat(e,r,n):gM.concat(e,r)).subscribe(o)})}$p.startWith=D9});var Ys=_(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.switchMap=void 0;var k9=me(),R9=W(),mM=ee();function N9(e,t){return R9.operate(function(n,r){var o=null,i=0,s=!1,a=function(){return s&&!o&&r.complete()};n.subscribe(mM.createOperatorSubscriber(r,function(c){o?.unsubscribe();var u=0,l=i++;k9.innerFrom(e(c,l)).subscribe(o=mM.createOperatorSubscriber(r,function(f){return r.next(t?t(c,f,l,u++):f)},function(){o=null,a()}))},function(){s=!0,a()}))})}Kp.switchMap=N9});var Xb=_(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.switchAll=void 0;var L9=Ys(),j9=xt();function F9(){return L9.switchMap(j9.identity)}Wp.switchAll=F9});var e_=_(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.switchMapTo=void 0;var yM=Ys(),q9=He();function B9(e,t){return q9.isFunction(t)?yM.switchMap(function(){return e},t):yM.switchMap(function(){return e})}Vp.switchMapTo=B9});var t_=_(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.switchScan=void 0;var U9=Ys(),H9=W();function $9(e,t){return H9.operate(function(n,r){var o=t;return U9.switchMap(function(i,s){return e(o,i,s)},function(i,s){return o=s,s})(n).subscribe(r),function(){o=null}})}Gp.switchScan=$9});var n_=_(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.takeUntil=void 0;var K9=W(),W9=ee(),V9=me(),G9=St();function z9(e){return K9.operate(function(t,n){V9.innerFrom(e).subscribe(W9.createOperatorSubscriber(n,function(){return n.complete()},G9.noop)),!n.closed&&t.subscribe(n)})}zp.takeUntil=z9});var r_=_(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.takeWhile=void 0;var Y9=W(),Z9=ee();function Q9(e,t){return t===void 0&&(t=!1),Y9.operate(function(n,r){var o=0;n.subscribe(Z9.createOperatorSubscriber(r,function(i){var s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}Yp.takeWhile=Q9});var o_=_(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.tap=void 0;var J9=He(),X9=W(),e7=ee(),t7=xt();function n7(e,t,n){var r=J9.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return r?X9.operate(function(o,i){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var a=!0;o.subscribe(e7.createOperatorSubscriber(i,function(c){var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},function(){var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},function(c){var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},function(){var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):t7.identity}Zp.tap=n7});var Jp=_(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.throttle=void 0;var r7=W(),vM=ee(),o7=me();function i7(e,t){return r7.operate(function(n,r){var o=t??{},i=o.leading,s=i===void 0?!0:i,a=o.trailing,c=a===void 0?!1:a,u=!1,l=null,f=null,d=!1,p=function(){f?.unsubscribe(),f=null,c&&(y(),d&&r.complete())},h=function(){f=null,d&&r.complete()},m=function(v){return f=o7.innerFrom(e(v)).subscribe(vM.createOperatorSubscriber(r,p,h))},y=function(){if(u){u=!1;var v=l;l=null,r.next(v),!d&&m(v)}};n.subscribe(vM.createOperatorSubscriber(r,function(v){u=!0,l=v,!(f&&!f.closed)&&(s?y():m(v))},function(){d=!0,!(c&&u&&f&&!f.closed)&&r.complete()}))})}Qp.throttle=i7});var i_=_(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.throttleTime=void 0;var s7=Jt(),a7=Jp(),c7=uo();function u7(e,t,n){t===void 0&&(t=s7.asyncScheduler);var r=c7.timer(e,t);return a7.throttle(function(){return r},n)}Xp.throttleTime=u7});var s_=_(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.TimeInterval=Zs.timeInterval=void 0;var l7=Jt(),f7=W(),d7=ee();function p7(e){return e===void 0&&(e=l7.asyncScheduler),f7.operate(function(t,n){var r=e.now();t.subscribe(d7.createOperatorSubscriber(n,function(o){var i=e.now(),s=i-r;r=i,n.next(new bM(o,s))}))})}Zs.timeInterval=p7;var bM=(function(){function e(t,n){this.value=t,this.interval=n}return e})();Zs.TimeInterval=bM});var a_=_(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.timeoutWith=void 0;var h7=Jt(),g7=Ff(),m7=Oc();function y7(e,t,n){var r,o,i;if(n=n??h7.async,g7.isValidDate(e)?r=e:typeof e=="number"&&(o=e),t)i=function(){return t};else throw new TypeError("No observable provided to switch to");if(r==null&&o==null)throw new TypeError("No timeout provided.");return m7.timeout({first:r,each:o,scheduler:n,with:i})}eh.timeoutWith=y7});var c_=_(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.timestamp=void 0;var v7=ef(),b7=xr();function _7(e){return e===void 0&&(e=v7.dateTimestampProvider),b7.map(function(t){return{value:t,timestamp:e.now()}})}th.timestamp=_7});var u_=_(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.window=void 0;var _M=It(),w7=W(),wM=ee(),E7=St(),S7=me();function x7(e){return w7.operate(function(t,n){var r=new _M.Subject;n.next(r.asObservable());var o=function(i){r.error(i),n.error(i)};return t.subscribe(wM.createOperatorSubscriber(n,function(i){return r?.next(i)},function(){r.complete(),n.complete()},o)),S7.innerFrom(e).subscribe(wM.createOperatorSubscriber(n,function(){r.complete(),n.next(r=new _M.Subject)},E7.noop,o)),function(){r?.unsubscribe(),r=null}})}nh.window=x7});var l_=_(Qs=>{"use strict";var I7=Qs&&Qs.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.windowCount=void 0;var EM=It(),A7=W(),T7=ee();function M7(e,t){t===void 0&&(t=0);var n=t>0?t:e;return A7.operate(function(r,o){var i=[new EM.Subject],s=[],a=0;o.next(i[0].asObservable()),r.subscribe(T7.createOperatorSubscriber(o,function(c){var u,l;try{for(var f=I7(i),d=f.next();!d.done;d=f.next()){var p=d.value;p.next(c)}}catch(y){u={error:y}}finally{try{d&&!d.done&&(l=f.return)&&l.call(f)}finally{if(u)throw u.error}}var h=a-e+1;if(h>=0&&h%n===0&&i.shift().complete(),++a%n===0){var m=new EM.Subject;i.push(m),o.next(m.asObservable())}},function(){for(;i.length>0;)i.shift().complete();o.complete()},function(c){for(;i.length>0;)i.shift().error(c);o.error(c)},function(){s=null,i=null}))})}Qs.windowCount=M7});var f_=_(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.windowTime=void 0;var O7=It(),P7=Jt(),C7=dn(),D7=W(),k7=ee(),R7=_r(),N7=Xt(),SM=wr();function L7(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=(t=N7.popScheduler(r))!==null&&t!==void 0?t:P7.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return D7.operate(function(c,u){var l=[],f=!1,d=function(y){var v=y.window,w=y.subs;v.complete(),w.unsubscribe(),R7.arrRemove(l,y),f&&p()},p=function(){if(l){var y=new C7.Subscription;u.add(y);var v=new O7.Subject,w={window:v,subs:y,seen:0};l.push(w),u.next(v.asObservable()),SM.executeSchedule(y,i,function(){return d(w)},e)}};s!==null&&s>=0?SM.executeSchedule(u,i,p,s,!0):f=!0,p();var h=function(y){return l.slice().forEach(y)},m=function(y){h(function(v){var w=v.window;return y(w)}),y(u),u.unsubscribe()};return c.subscribe(k7.createOperatorSubscriber(u,function(y){h(function(v){v.window.next(y),a<=++v.seen&&d(v)})},function(){return m(function(y){return y.complete()})},function(y){return m(function(v){return v.error(y)})})),function(){l=null}})}rh.windowTime=L7});var p_=_(Js=>{"use strict";var j7=Js&&Js.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Js,"__esModule",{value:!0});Js.windowToggle=void 0;var F7=It(),q7=dn(),B7=W(),xM=me(),d_=ee(),IM=St(),U7=_r();function H7(e,t){return B7.operate(function(n,r){var o=[],i=function(s){for(;0<o.length;)o.shift().error(s);r.error(s)};xM.innerFrom(e).subscribe(d_.createOperatorSubscriber(r,function(s){var a=new F7.Subject;o.push(a);var c=new q7.Subscription,u=function(){U7.arrRemove(o,a),a.complete(),c.unsubscribe()},l;try{l=xM.innerFrom(t(s))}catch(f){i(f);return}r.next(a.asObservable()),c.add(l.subscribe(d_.createOperatorSubscriber(r,u,IM.noop,i)))},IM.noop)),n.subscribe(d_.createOperatorSubscriber(r,function(s){var a,c,u=o.slice();try{for(var l=j7(u),f=l.next();!f.done;f=l.next()){var d=f.value;d.next(s)}}catch(p){a={error:p}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(a)throw a.error}}},function(){for(;0<o.length;)o.shift().complete();r.complete()},i,function(){for(;0<o.length;)o.shift().unsubscribe()}))})}Js.windowToggle=H7});var h_=_(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.windowWhen=void 0;var $7=It(),K7=W(),AM=ee(),W7=me();function V7(e){return K7.operate(function(t,n){var r,o,i=function(a){r.error(a),n.error(a)},s=function(){o?.unsubscribe(),r?.complete(),r=new $7.Subject,n.next(r.asObservable());var a;try{a=W7.innerFrom(e())}catch(c){i(c);return}a.subscribe(o=AM.createOperatorSubscriber(n,s,s,i))};s(),t.subscribe(AM.createOperatorSubscriber(n,function(a){return r.next(a)},function(){r.complete(),n.complete()},i,function(){o?.unsubscribe(),r=null}))})}oh.windowWhen=V7});var g_=_(wo=>{"use strict";var TM=wo&&wo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},MM=wo&&wo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(wo,"__esModule",{value:!0});wo.withLatestFrom=void 0;var G7=W(),OM=ee(),z7=me(),Y7=xt(),Z7=St(),Q7=Xt();function J7(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Q7.popResultSelector(e);return G7.operate(function(r,o){for(var i=e.length,s=new Array(i),a=e.map(function(){return!1}),c=!1,u=function(f){z7.innerFrom(e[f]).subscribe(OM.createOperatorSubscriber(o,function(d){s[f]=d,!c&&!a[f]&&(a[f]=!0,(c=a.every(Y7.identity))&&(a=null))},Z7.noop))},l=0;l<i;l++)u(l);r.subscribe(OM.createOperatorSubscriber(o,function(f){if(c){var d=MM([f],TM(s));o.next(n?n.apply(void 0,MM([],TM(d))):d)}}))})}wo.withLatestFrom=J7});var m_=_(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.zipAll=void 0;var X7=pd(),ez=Qv();function tz(e){return ez.joinAllInternals(X7.zip,e)}ih.zipAll=tz});var y_=_(Eo=>{"use strict";var nz=Eo&&Eo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},rz=Eo&&Eo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.zip=void 0;var oz=pd(),iz=W();function sz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return iz.operate(function(n,r){oz.zip.apply(void 0,rz([n],nz(e))).subscribe(r)})}Eo.zip=sz});var v_=_(So=>{"use strict";var az=So&&So.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},cz=So&&So.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(So,"__esModule",{value:!0});So.zipWith=void 0;var uz=y_();function lz(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return uz.zip.apply(void 0,cz([],az(e)))}So.zipWith=lz});var Nc=_(g=>{"use strict";var fz=g&&g.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),dz=g&&g.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fz(t,e,n)};Object.defineProperty(g,"__esModule",{value:!0});g.interval=g.iif=g.generate=g.fromEventPattern=g.fromEvent=g.from=g.forkJoin=g.empty=g.defer=g.connectable=g.concat=g.combineLatest=g.bindNodeCallback=g.bindCallback=g.UnsubscriptionError=g.TimeoutError=g.SequenceError=g.ObjectUnsubscribedError=g.NotFoundError=g.EmptyError=g.ArgumentOutOfRangeError=g.firstValueFrom=g.lastValueFrom=g.isObservable=g.identity=g.noop=g.pipe=g.NotificationKind=g.Notification=g.Subscriber=g.Subscription=g.Scheduler=g.VirtualAction=g.VirtualTimeScheduler=g.animationFrameScheduler=g.animationFrame=g.queueScheduler=g.queue=g.asyncScheduler=g.async=g.asapScheduler=g.asap=g.AsyncSubject=g.ReplaySubject=g.BehaviorSubject=g.Subject=g.animationFrames=g.observable=g.ConnectableObservable=g.Observable=void 0;g.filter=g.expand=g.exhaustMap=g.exhaustAll=g.exhaust=g.every=g.endWith=g.elementAt=g.distinctUntilKeyChanged=g.distinctUntilChanged=g.distinct=g.dematerialize=g.delayWhen=g.delay=g.defaultIfEmpty=g.debounceTime=g.debounce=g.count=g.connect=g.concatWith=g.concatMapTo=g.concatMap=g.concatAll=g.combineLatestWith=g.combineLatestAll=g.combineAll=g.catchError=g.bufferWhen=g.bufferToggle=g.bufferTime=g.bufferCount=g.buffer=g.auditTime=g.audit=g.config=g.NEVER=g.EMPTY=g.scheduled=g.zip=g.using=g.timer=g.throwError=g.range=g.race=g.partition=g.pairs=g.onErrorResumeNext=g.of=g.never=g.merge=void 0;g.switchMap=g.switchAll=g.subscribeOn=g.startWith=g.skipWhile=g.skipUntil=g.skipLast=g.skip=g.single=g.shareReplay=g.share=g.sequenceEqual=g.scan=g.sampleTime=g.sample=g.refCount=g.retryWhen=g.retry=g.repeatWhen=g.repeat=g.reduce=g.raceWith=g.publishReplay=g.publishLast=g.publishBehavior=g.publish=g.pluck=g.pairwise=g.onErrorResumeNextWith=g.observeOn=g.multicast=g.min=g.mergeWith=g.mergeScan=g.mergeMapTo=g.mergeMap=g.flatMap=g.mergeAll=g.max=g.materialize=g.mapTo=g.map=g.last=g.isEmpty=g.ignoreElements=g.groupBy=g.first=g.findIndex=g.find=g.finalize=void 0;g.zipWith=g.zipAll=g.withLatestFrom=g.windowWhen=g.windowToggle=g.windowTime=g.windowCount=g.window=g.toArray=g.timestamp=g.timeoutWith=g.timeout=g.timeInterval=g.throwIfEmpty=g.throttleTime=g.throttle=g.tap=g.takeWhile=g.takeUntil=g.takeLast=g.take=g.switchScan=g.switchMapTo=void 0;var pz=Ke();Object.defineProperty(g,"Observable",{enumerable:!0,get:function(){return pz.Observable}});var hz=Ic();Object.defineProperty(g,"ConnectableObservable",{enumerable:!0,get:function(){return hz.ConnectableObservable}});var gz=Sc();Object.defineProperty(g,"observable",{enumerable:!0,get:function(){return gz.observable}});var mz=a1();Object.defineProperty(g,"animationFrames",{enumerable:!0,get:function(){return mz.animationFrames}});var yz=It();Object.defineProperty(g,"Subject",{enumerable:!0,get:function(){return yz.Subject}});var vz=fv();Object.defineProperty(g,"BehaviorSubject",{enumerable:!0,get:function(){return vz.BehaviorSubject}});var bz=tf();Object.defineProperty(g,"ReplaySubject",{enumerable:!0,get:function(){return bz.ReplaySubject}});var _z=nf();Object.defineProperty(g,"AsyncSubject",{enumerable:!0,get:function(){return _z.AsyncSubject}});var PM=x1();Object.defineProperty(g,"asap",{enumerable:!0,get:function(){return PM.asap}});Object.defineProperty(g,"asapScheduler",{enumerable:!0,get:function(){return PM.asapScheduler}});var CM=Jt();Object.defineProperty(g,"async",{enumerable:!0,get:function(){return CM.async}});Object.defineProperty(g,"asyncScheduler",{enumerable:!0,get:function(){return CM.asyncScheduler}});var DM=T1();Object.defineProperty(g,"queue",{enumerable:!0,get:function(){return DM.queue}});Object.defineProperty(g,"queueScheduler",{enumerable:!0,get:function(){return DM.queueScheduler}});var kM=C1();Object.defineProperty(g,"animationFrame",{enumerable:!0,get:function(){return kM.animationFrame}});Object.defineProperty(g,"animationFrameScheduler",{enumerable:!0,get:function(){return kM.animationFrameScheduler}});var RM=R1();Object.defineProperty(g,"VirtualTimeScheduler",{enumerable:!0,get:function(){return RM.VirtualTimeScheduler}});Object.defineProperty(g,"VirtualAction",{enumerable:!0,get:function(){return RM.VirtualAction}});var wz=pv();Object.defineProperty(g,"Scheduler",{enumerable:!0,get:function(){return wz.Scheduler}});var Ez=dn();Object.defineProperty(g,"Subscription",{enumerable:!0,get:function(){return Ez.Subscription}});var Sz=ds();Object.defineProperty(g,"Subscriber",{enumerable:!0,get:function(){return Sz.Subscriber}});var NM=Of();Object.defineProperty(g,"Notification",{enumerable:!0,get:function(){return NM.Notification}});Object.defineProperty(g,"NotificationKind",{enumerable:!0,get:function(){return NM.NotificationKind}});var xz=xc();Object.defineProperty(g,"pipe",{enumerable:!0,get:function(){return xz.pipe}});var Iz=St();Object.defineProperty(g,"noop",{enumerable:!0,get:function(){return Iz.noop}});var Az=xt();Object.defineProperty(g,"identity",{enumerable:!0,get:function(){return Az.identity}});var Tz=Q1();Object.defineProperty(g,"isObservable",{enumerable:!0,get:function(){return Tz.isObservable}});var Mz=J1();Object.defineProperty(g,"lastValueFrom",{enumerable:!0,get:function(){return Mz.lastValueFrom}});var Oz=X1();Object.defineProperty(g,"firstValueFrom",{enumerable:!0,get:function(){return Oz.firstValueFrom}});var Pz=Mv();Object.defineProperty(g,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Pz.ArgumentOutOfRangeError}});var Cz=io();Object.defineProperty(g,"EmptyError",{enumerable:!0,get:function(){return Cz.EmptyError}});var Dz=Ov();Object.defineProperty(g,"NotFoundError",{enumerable:!0,get:function(){return Dz.NotFoundError}});var kz=av();Object.defineProperty(g,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return kz.ObjectUnsubscribedError}});var Rz=Pv();Object.defineProperty(g,"SequenceError",{enumerable:!0,get:function(){return Rz.SequenceError}});var Nz=Oc();Object.defineProperty(g,"TimeoutError",{enumerable:!0,get:function(){return Nz.TimeoutError}});var Lz=Yy();Object.defineProperty(g,"UnsubscriptionError",{enumerable:!0,get:function(){return Lz.UnsubscriptionError}});var jz=tT();Object.defineProperty(g,"bindCallback",{enumerable:!0,get:function(){return jz.bindCallback}});var Fz=nT();Object.defineProperty(g,"bindNodeCallback",{enumerable:!0,get:function(){return Fz.bindNodeCallback}});var qz=Kf();Object.defineProperty(g,"combineLatest",{enumerable:!0,get:function(){return qz.combineLatest}});var Bz=Cc();Object.defineProperty(g,"concat",{enumerable:!0,get:function(){return Bz.concat}});var Uz=lT();Object.defineProperty(g,"connectable",{enumerable:!0,get:function(){return Uz.connectable}});var Hz=Dc();Object.defineProperty(g,"defer",{enumerable:!0,get:function(){return Hz.defer}});var $z=Rn();Object.defineProperty(g,"empty",{enumerable:!0,get:function(){return $z.empty}});var Kz=fT();Object.defineProperty(g,"forkJoin",{enumerable:!0,get:function(){return Kz.forkJoin}});var Wz=Er();Object.defineProperty(g,"from",{enumerable:!0,get:function(){return Wz.from}});var Vz=pT();Object.defineProperty(g,"fromEvent",{enumerable:!0,get:function(){return Vz.fromEvent}});var Gz=gT();Object.defineProperty(g,"fromEventPattern",{enumerable:!0,get:function(){return Gz.fromEventPattern}});var zz=yT();Object.defineProperty(g,"generate",{enumerable:!0,get:function(){return zz.generate}});var Yz=vT();Object.defineProperty(g,"iif",{enumerable:!0,get:function(){return Yz.iif}});var Zz=Lv();Object.defineProperty(g,"interval",{enumerable:!0,get:function(){return Zz.interval}});var Qz=_T();Object.defineProperty(g,"merge",{enumerable:!0,get:function(){return Qz.merge}});var Jz=jv();Object.defineProperty(g,"never",{enumerable:!0,get:function(){return Jz.never}});var Xz=Tf();Object.defineProperty(g,"of",{enumerable:!0,get:function(){return Xz.of}});var eY=Fv();Object.defineProperty(g,"onErrorResumeNext",{enumerable:!0,get:function(){return eY.onErrorResumeNext}});var tY=ET();Object.defineProperty(g,"pairs",{enumerable:!0,get:function(){return tY.pairs}});var nY=IT();Object.defineProperty(g,"partition",{enumerable:!0,get:function(){return nY.partition}});var rY=Bv();Object.defineProperty(g,"race",{enumerable:!0,get:function(){return rY.race}});var oY=MT();Object.defineProperty(g,"range",{enumerable:!0,get:function(){return oY.range}});var iY=Tv();Object.defineProperty(g,"throwError",{enumerable:!0,get:function(){return iY.throwError}});var sY=uo();Object.defineProperty(g,"timer",{enumerable:!0,get:function(){return sY.timer}});var aY=OT();Object.defineProperty(g,"using",{enumerable:!0,get:function(){return aY.using}});var cY=pd();Object.defineProperty(g,"zip",{enumerable:!0,get:function(){return cY.zip}});var uY=Av();Object.defineProperty(g,"scheduled",{enumerable:!0,get:function(){return uY.scheduled}});var lY=Rn();Object.defineProperty(g,"EMPTY",{enumerable:!0,get:function(){return lY.EMPTY}});var fY=jv();Object.defineProperty(g,"NEVER",{enumerable:!0,get:function(){return fY.NEVER}});dz(CT(),g);var dY=ls();Object.defineProperty(g,"config",{enumerable:!0,get:function(){return dY.config}});var pY=gd();Object.defineProperty(g,"audit",{enumerable:!0,get:function(){return pY.audit}});var hY=Uv();Object.defineProperty(g,"auditTime",{enumerable:!0,get:function(){return hY.auditTime}});var gY=Hv();Object.defineProperty(g,"buffer",{enumerable:!0,get:function(){return gY.buffer}});var mY=Kv();Object.defineProperty(g,"bufferCount",{enumerable:!0,get:function(){return mY.bufferCount}});var yY=Wv();Object.defineProperty(g,"bufferTime",{enumerable:!0,get:function(){return yY.bufferTime}});var vY=Gv();Object.defineProperty(g,"bufferToggle",{enumerable:!0,get:function(){return vY.bufferToggle}});var bY=zv();Object.defineProperty(g,"bufferWhen",{enumerable:!0,get:function(){return bY.bufferWhen}});var _Y=Yv();Object.defineProperty(g,"catchError",{enumerable:!0,get:function(){return _Y.catchError}});var wY=Jv();Object.defineProperty(g,"combineAll",{enumerable:!0,get:function(){return wY.combineAll}});var EY=Ad();Object.defineProperty(g,"combineLatestAll",{enumerable:!0,get:function(){return EY.combineLatestAll}});var SY=eb();Object.defineProperty(g,"combineLatestWith",{enumerable:!0,get:function(){return SY.combineLatestWith}});var xY=Pc();Object.defineProperty(g,"concatAll",{enumerable:!0,get:function(){return xY.concatAll}});var IY=Od();Object.defineProperty(g,"concatMap",{enumerable:!0,get:function(){return IY.concatMap}});var AY=tb();Object.defineProperty(g,"concatMapTo",{enumerable:!0,get:function(){return AY.concatMapTo}});var TY=rb();Object.defineProperty(g,"concatWith",{enumerable:!0,get:function(){return TY.concatWith}});var MY=kc();Object.defineProperty(g,"connect",{enumerable:!0,get:function(){return MY.connect}});var OY=ob();Object.defineProperty(g,"count",{enumerable:!0,get:function(){return OY.count}});var PY=ib();Object.defineProperty(g,"debounce",{enumerable:!0,get:function(){return PY.debounce}});var CY=sb();Object.defineProperty(g,"debounceTime",{enumerable:!0,get:function(){return CY.debounceTime}});var DY=Ks();Object.defineProperty(g,"defaultIfEmpty",{enumerable:!0,get:function(){return DY.defaultIfEmpty}});var kY=ab();Object.defineProperty(g,"delay",{enumerable:!0,get:function(){return kY.delay}});var RY=$d();Object.defineProperty(g,"delayWhen",{enumerable:!0,get:function(){return RY.delayWhen}});var NY=cb();Object.defineProperty(g,"dematerialize",{enumerable:!0,get:function(){return NY.dematerialize}});var LY=ub();Object.defineProperty(g,"distinct",{enumerable:!0,get:function(){return LY.distinct}});var jY=zd();Object.defineProperty(g,"distinctUntilChanged",{enumerable:!0,get:function(){return jY.distinctUntilChanged}});var FY=lb();Object.defineProperty(g,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return FY.distinctUntilKeyChanged}});var qY=fb();Object.defineProperty(g,"elementAt",{enumerable:!0,get:function(){return qY.elementAt}});var BY=db();Object.defineProperty(g,"endWith",{enumerable:!0,get:function(){return BY.endWith}});var UY=pb();Object.defineProperty(g,"every",{enumerable:!0,get:function(){return UY.every}});var HY=hb();Object.defineProperty(g,"exhaust",{enumerable:!0,get:function(){return HY.exhaust}});var $Y=np();Object.defineProperty(g,"exhaustAll",{enumerable:!0,get:function(){return $Y.exhaustAll}});var KY=ep();Object.defineProperty(g,"exhaustMap",{enumerable:!0,get:function(){return KY.exhaustMap}});var WY=gb();Object.defineProperty(g,"expand",{enumerable:!0,get:function(){return WY.expand}});var VY=Ir();Object.defineProperty(g,"filter",{enumerable:!0,get:function(){return VY.filter}});var GY=mb();Object.defineProperty(g,"finalize",{enumerable:!0,get:function(){return GY.finalize}});var zY=sp();Object.defineProperty(g,"find",{enumerable:!0,get:function(){return zY.find}});var YY=yb();Object.defineProperty(g,"findIndex",{enumerable:!0,get:function(){return YY.findIndex}});var ZY=vb();Object.defineProperty(g,"first",{enumerable:!0,get:function(){return ZY.first}});var QY=bb();Object.defineProperty(g,"groupBy",{enumerable:!0,get:function(){return QY.groupBy}});var JY=qd();Object.defineProperty(g,"ignoreElements",{enumerable:!0,get:function(){return JY.ignoreElements}});var XY=_b();Object.defineProperty(g,"isEmpty",{enumerable:!0,get:function(){return XY.isEmpty}});var eZ=wb();Object.defineProperty(g,"last",{enumerable:!0,get:function(){return eZ.last}});var tZ=xr();Object.defineProperty(g,"map",{enumerable:!0,get:function(){return tZ.map}});var nZ=Ud();Object.defineProperty(g,"mapTo",{enumerable:!0,get:function(){return nZ.mapTo}});var rZ=Sb();Object.defineProperty(g,"materialize",{enumerable:!0,get:function(){return rZ.materialize}});var oZ=xb();Object.defineProperty(g,"max",{enumerable:!0,get:function(){return oZ.max}});var iZ=js();Object.defineProperty(g,"mergeAll",{enumerable:!0,get:function(){return iZ.mergeAll}});var sZ=Ib();Object.defineProperty(g,"flatMap",{enumerable:!0,get:function(){return sZ.flatMap}});var aZ=er();Object.defineProperty(g,"mergeMap",{enumerable:!0,get:function(){return aZ.mergeMap}});var cZ=Ab();Object.defineProperty(g,"mergeMapTo",{enumerable:!0,get:function(){return cZ.mergeMapTo}});var uZ=Tb();Object.defineProperty(g,"mergeScan",{enumerable:!0,get:function(){return uZ.mergeScan}});var lZ=Ob();Object.defineProperty(g,"mergeWith",{enumerable:!0,get:function(){return lZ.mergeWith}});var fZ=Pb();Object.defineProperty(g,"min",{enumerable:!0,get:function(){return fZ.min}});var dZ=Rc();Object.defineProperty(g,"multicast",{enumerable:!0,get:function(){return dZ.multicast}});var pZ=Rs();Object.defineProperty(g,"observeOn",{enumerable:!0,get:function(){return pZ.observeOn}});var hZ=Cb();Object.defineProperty(g,"onErrorResumeNextWith",{enumerable:!0,get:function(){return hZ.onErrorResumeNextWith}});var gZ=Db();Object.defineProperty(g,"pairwise",{enumerable:!0,get:function(){return gZ.pairwise}});var mZ=kb();Object.defineProperty(g,"pluck",{enumerable:!0,get:function(){return mZ.pluck}});var yZ=Rb();Object.defineProperty(g,"publish",{enumerable:!0,get:function(){return yZ.publish}});var vZ=Nb();Object.defineProperty(g,"publishBehavior",{enumerable:!0,get:function(){return vZ.publishBehavior}});var bZ=Lb();Object.defineProperty(g,"publishLast",{enumerable:!0,get:function(){return bZ.publishLast}});var _Z=jb();Object.defineProperty(g,"publishReplay",{enumerable:!0,get:function(){return _Z.publishReplay}});var wZ=Ap();Object.defineProperty(g,"raceWith",{enumerable:!0,get:function(){return wZ.raceWith}});var EZ=fi();Object.defineProperty(g,"reduce",{enumerable:!0,get:function(){return EZ.reduce}});var SZ=Fb();Object.defineProperty(g,"repeat",{enumerable:!0,get:function(){return SZ.repeat}});var xZ=qb();Object.defineProperty(g,"repeatWhen",{enumerable:!0,get:function(){return xZ.repeatWhen}});var IZ=Bb();Object.defineProperty(g,"retry",{enumerable:!0,get:function(){return IZ.retry}});var AZ=Ub();Object.defineProperty(g,"retryWhen",{enumerable:!0,get:function(){return AZ.retryWhen}});var TZ=Ql();Object.defineProperty(g,"refCount",{enumerable:!0,get:function(){return TZ.refCount}});var MZ=Dp();Object.defineProperty(g,"sample",{enumerable:!0,get:function(){return MZ.sample}});var OZ=Hb();Object.defineProperty(g,"sampleTime",{enumerable:!0,get:function(){return OZ.sampleTime}});var PZ=$b();Object.defineProperty(g,"scan",{enumerable:!0,get:function(){return PZ.scan}});var CZ=Kb();Object.defineProperty(g,"sequenceEqual",{enumerable:!0,get:function(){return CZ.sequenceEqual}});var DZ=Lp();Object.defineProperty(g,"share",{enumerable:!0,get:function(){return DZ.share}});var kZ=Vb();Object.defineProperty(g,"shareReplay",{enumerable:!0,get:function(){return kZ.shareReplay}});var RZ=Gb();Object.defineProperty(g,"single",{enumerable:!0,get:function(){return RZ.single}});var NZ=zb();Object.defineProperty(g,"skip",{enumerable:!0,get:function(){return NZ.skip}});var LZ=Yb();Object.defineProperty(g,"skipLast",{enumerable:!0,get:function(){return LZ.skipLast}});var jZ=Zb();Object.defineProperty(g,"skipUntil",{enumerable:!0,get:function(){return jZ.skipUntil}});var FZ=Qb();Object.defineProperty(g,"skipWhile",{enumerable:!0,get:function(){return FZ.skipWhile}});var qZ=Jb();Object.defineProperty(g,"startWith",{enumerable:!0,get:function(){return qZ.startWith}});var BZ=Ns();Object.defineProperty(g,"subscribeOn",{enumerable:!0,get:function(){return BZ.subscribeOn}});var UZ=Xb();Object.defineProperty(g,"switchAll",{enumerable:!0,get:function(){return UZ.switchAll}});var HZ=Ys();Object.defineProperty(g,"switchMap",{enumerable:!0,get:function(){return HZ.switchMap}});var $Z=e_();Object.defineProperty(g,"switchMapTo",{enumerable:!0,get:function(){return $Z.switchMapTo}});var KZ=t_();Object.defineProperty(g,"switchScan",{enumerable:!0,get:function(){return KZ.switchScan}});var WZ=Ws();Object.defineProperty(g,"take",{enumerable:!0,get:function(){return WZ.take}});var VZ=fp();Object.defineProperty(g,"takeLast",{enumerable:!0,get:function(){return VZ.takeLast}});var GZ=n_();Object.defineProperty(g,"takeUntil",{enumerable:!0,get:function(){return GZ.takeUntil}});var zZ=r_();Object.defineProperty(g,"takeWhile",{enumerable:!0,get:function(){return zZ.takeWhile}});var YZ=o_();Object.defineProperty(g,"tap",{enumerable:!0,get:function(){return YZ.tap}});var ZZ=Jp();Object.defineProperty(g,"throttle",{enumerable:!0,get:function(){return ZZ.throttle}});var QZ=i_();Object.defineProperty(g,"throttleTime",{enumerable:!0,get:function(){return QZ.throttleTime}});var JZ=Vs();Object.defineProperty(g,"throwIfEmpty",{enumerable:!0,get:function(){return JZ.throwIfEmpty}});var XZ=s_();Object.defineProperty(g,"timeInterval",{enumerable:!0,get:function(){return XZ.timeInterval}});var eQ=Oc();Object.defineProperty(g,"timeout",{enumerable:!0,get:function(){return eQ.timeout}});var tQ=a_();Object.defineProperty(g,"timeoutWith",{enumerable:!0,get:function(){return tQ.timeoutWith}});var nQ=c_();Object.defineProperty(g,"timestamp",{enumerable:!0,get:function(){return nQ.timestamp}});var rQ=Sd();Object.defineProperty(g,"toArray",{enumerable:!0,get:function(){return rQ.toArray}});var oQ=u_();Object.defineProperty(g,"window",{enumerable:!0,get:function(){return oQ.window}});var iQ=l_();Object.defineProperty(g,"windowCount",{enumerable:!0,get:function(){return iQ.windowCount}});var sQ=f_();Object.defineProperty(g,"windowTime",{enumerable:!0,get:function(){return sQ.windowTime}});var aQ=p_();Object.defineProperty(g,"windowToggle",{enumerable:!0,get:function(){return aQ.windowToggle}});var cQ=h_();Object.defineProperty(g,"windowWhen",{enumerable:!0,get:function(){return cQ.windowWhen}});var uQ=g_();Object.defineProperty(g,"withLatestFrom",{enumerable:!0,get:function(){return uQ.withLatestFrom}});var lQ=m_();Object.defineProperty(g,"zipAll",{enumerable:!0,get:function(){return lQ.zipAll}});var fQ=v_();Object.defineProperty(g,"zipWith",{enumerable:!0,get:function(){return fQ.zipWith}})});var OO=_(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.partition=void 0;var YQ=qv(),MO=Ir();function ZQ(e,t){return function(n){return[MO.filter(e,t)(n),MO.filter(YQ.not(e,t))(n)]}}zh.partition=ZQ});var PO=_(Lo=>{"use strict";var QQ=Lo&&Lo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i},JQ=Lo&&Lo.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};Object.defineProperty(Lo,"__esModule",{value:!0});Lo.race=void 0;var XQ=li(),eJ=Ap();function tJ(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eJ.raceWith.apply(void 0,JQ([],QQ(XQ.argsOrArgArray(e))))}Lo.race=tJ});var CO=_(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});b.mergeAll=b.merge=b.max=b.materialize=b.mapTo=b.map=b.last=b.isEmpty=b.ignoreElements=b.groupBy=b.first=b.findIndex=b.find=b.finalize=b.filter=b.expand=b.exhaustMap=b.exhaustAll=b.exhaust=b.every=b.endWith=b.elementAt=b.distinctUntilKeyChanged=b.distinctUntilChanged=b.distinct=b.dematerialize=b.delayWhen=b.delay=b.defaultIfEmpty=b.debounceTime=b.debounce=b.count=b.connect=b.concatWith=b.concatMapTo=b.concatMap=b.concatAll=b.concat=b.combineLatestWith=b.combineLatest=b.combineLatestAll=b.combineAll=b.catchError=b.bufferWhen=b.bufferToggle=b.bufferTime=b.bufferCount=b.buffer=b.auditTime=b.audit=void 0;b.timeInterval=b.throwIfEmpty=b.throttleTime=b.throttle=b.tap=b.takeWhile=b.takeUntil=b.takeLast=b.take=b.switchScan=b.switchMapTo=b.switchMap=b.switchAll=b.subscribeOn=b.startWith=b.skipWhile=b.skipUntil=b.skipLast=b.skip=b.single=b.shareReplay=b.share=b.sequenceEqual=b.scan=b.sampleTime=b.sample=b.refCount=b.retryWhen=b.retry=b.repeatWhen=b.repeat=b.reduce=b.raceWith=b.race=b.publishReplay=b.publishLast=b.publishBehavior=b.publish=b.pluck=b.partition=b.pairwise=b.onErrorResumeNext=b.observeOn=b.multicast=b.min=b.mergeWith=b.mergeScan=b.mergeMapTo=b.mergeMap=b.flatMap=void 0;b.zipWith=b.zipAll=b.zip=b.withLatestFrom=b.windowWhen=b.windowToggle=b.windowTime=b.windowCount=b.window=b.toArray=b.timestamp=b.timeoutWith=b.timeout=void 0;var nJ=gd();Object.defineProperty(b,"audit",{enumerable:!0,get:function(){return nJ.audit}});var rJ=Uv();Object.defineProperty(b,"auditTime",{enumerable:!0,get:function(){return rJ.auditTime}});var oJ=Hv();Object.defineProperty(b,"buffer",{enumerable:!0,get:function(){return oJ.buffer}});var iJ=Kv();Object.defineProperty(b,"bufferCount",{enumerable:!0,get:function(){return iJ.bufferCount}});var sJ=Wv();Object.defineProperty(b,"bufferTime",{enumerable:!0,get:function(){return sJ.bufferTime}});var aJ=Gv();Object.defineProperty(b,"bufferToggle",{enumerable:!0,get:function(){return aJ.bufferToggle}});var cJ=zv();Object.defineProperty(b,"bufferWhen",{enumerable:!0,get:function(){return cJ.bufferWhen}});var uJ=Yv();Object.defineProperty(b,"catchError",{enumerable:!0,get:function(){return uJ.catchError}});var lJ=Jv();Object.defineProperty(b,"combineAll",{enumerable:!0,get:function(){return lJ.combineAll}});var fJ=Ad();Object.defineProperty(b,"combineLatestAll",{enumerable:!0,get:function(){return fJ.combineLatestAll}});var dJ=Xv();Object.defineProperty(b,"combineLatest",{enumerable:!0,get:function(){return dJ.combineLatest}});var pJ=eb();Object.defineProperty(b,"combineLatestWith",{enumerable:!0,get:function(){return pJ.combineLatestWith}});var hJ=nb();Object.defineProperty(b,"concat",{enumerable:!0,get:function(){return hJ.concat}});var gJ=Pc();Object.defineProperty(b,"concatAll",{enumerable:!0,get:function(){return gJ.concatAll}});var mJ=Od();Object.defineProperty(b,"concatMap",{enumerable:!0,get:function(){return mJ.concatMap}});var yJ=tb();Object.defineProperty(b,"concatMapTo",{enumerable:!0,get:function(){return yJ.concatMapTo}});var vJ=rb();Object.defineProperty(b,"concatWith",{enumerable:!0,get:function(){return vJ.concatWith}});var bJ=kc();Object.defineProperty(b,"connect",{enumerable:!0,get:function(){return bJ.connect}});var _J=ob();Object.defineProperty(b,"count",{enumerable:!0,get:function(){return _J.count}});var wJ=ib();Object.defineProperty(b,"debounce",{enumerable:!0,get:function(){return wJ.debounce}});var EJ=sb();Object.defineProperty(b,"debounceTime",{enumerable:!0,get:function(){return EJ.debounceTime}});var SJ=Ks();Object.defineProperty(b,"defaultIfEmpty",{enumerable:!0,get:function(){return SJ.defaultIfEmpty}});var xJ=ab();Object.defineProperty(b,"delay",{enumerable:!0,get:function(){return xJ.delay}});var IJ=$d();Object.defineProperty(b,"delayWhen",{enumerable:!0,get:function(){return IJ.delayWhen}});var AJ=cb();Object.defineProperty(b,"dematerialize",{enumerable:!0,get:function(){return AJ.dematerialize}});var TJ=ub();Object.defineProperty(b,"distinct",{enumerable:!0,get:function(){return TJ.distinct}});var MJ=zd();Object.defineProperty(b,"distinctUntilChanged",{enumerable:!0,get:function(){return MJ.distinctUntilChanged}});var OJ=lb();Object.defineProperty(b,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return OJ.distinctUntilKeyChanged}});var PJ=fb();Object.defineProperty(b,"elementAt",{enumerable:!0,get:function(){return PJ.elementAt}});var CJ=db();Object.defineProperty(b,"endWith",{enumerable:!0,get:function(){return CJ.endWith}});var DJ=pb();Object.defineProperty(b,"every",{enumerable:!0,get:function(){return DJ.every}});var kJ=hb();Object.defineProperty(b,"exhaust",{enumerable:!0,get:function(){return kJ.exhaust}});var RJ=np();Object.defineProperty(b,"exhaustAll",{enumerable:!0,get:function(){return RJ.exhaustAll}});var NJ=ep();Object.defineProperty(b,"exhaustMap",{enumerable:!0,get:function(){return NJ.exhaustMap}});var LJ=gb();Object.defineProperty(b,"expand",{enumerable:!0,get:function(){return LJ.expand}});var jJ=Ir();Object.defineProperty(b,"filter",{enumerable:!0,get:function(){return jJ.filter}});var FJ=mb();Object.defineProperty(b,"finalize",{enumerable:!0,get:function(){return FJ.finalize}});var qJ=sp();Object.defineProperty(b,"find",{enumerable:!0,get:function(){return qJ.find}});var BJ=yb();Object.defineProperty(b,"findIndex",{enumerable:!0,get:function(){return BJ.findIndex}});var UJ=vb();Object.defineProperty(b,"first",{enumerable:!0,get:function(){return UJ.first}});var HJ=bb();Object.defineProperty(b,"groupBy",{enumerable:!0,get:function(){return HJ.groupBy}});var $J=qd();Object.defineProperty(b,"ignoreElements",{enumerable:!0,get:function(){return $J.ignoreElements}});var KJ=_b();Object.defineProperty(b,"isEmpty",{enumerable:!0,get:function(){return KJ.isEmpty}});var WJ=wb();Object.defineProperty(b,"last",{enumerable:!0,get:function(){return WJ.last}});var VJ=xr();Object.defineProperty(b,"map",{enumerable:!0,get:function(){return VJ.map}});var GJ=Ud();Object.defineProperty(b,"mapTo",{enumerable:!0,get:function(){return GJ.mapTo}});var zJ=Sb();Object.defineProperty(b,"materialize",{enumerable:!0,get:function(){return zJ.materialize}});var YJ=xb();Object.defineProperty(b,"max",{enumerable:!0,get:function(){return YJ.max}});var ZJ=Mb();Object.defineProperty(b,"merge",{enumerable:!0,get:function(){return ZJ.merge}});var QJ=js();Object.defineProperty(b,"mergeAll",{enumerable:!0,get:function(){return QJ.mergeAll}});var JJ=Ib();Object.defineProperty(b,"flatMap",{enumerable:!0,get:function(){return JJ.flatMap}});var XJ=er();Object.defineProperty(b,"mergeMap",{enumerable:!0,get:function(){return XJ.mergeMap}});var eX=Ab();Object.defineProperty(b,"mergeMapTo",{enumerable:!0,get:function(){return eX.mergeMapTo}});var tX=Tb();Object.defineProperty(b,"mergeScan",{enumerable:!0,get:function(){return tX.mergeScan}});var nX=Ob();Object.defineProperty(b,"mergeWith",{enumerable:!0,get:function(){return nX.mergeWith}});var rX=Pb();Object.defineProperty(b,"min",{enumerable:!0,get:function(){return rX.min}});var oX=Rc();Object.defineProperty(b,"multicast",{enumerable:!0,get:function(){return oX.multicast}});var iX=Rs();Object.defineProperty(b,"observeOn",{enumerable:!0,get:function(){return iX.observeOn}});var sX=Cb();Object.defineProperty(b,"onErrorResumeNext",{enumerable:!0,get:function(){return sX.onErrorResumeNext}});var aX=Db();Object.defineProperty(b,"pairwise",{enumerable:!0,get:function(){return aX.pairwise}});var cX=OO();Object.defineProperty(b,"partition",{enumerable:!0,get:function(){return cX.partition}});var uX=kb();Object.defineProperty(b,"pluck",{enumerable:!0,get:function(){return uX.pluck}});var lX=Rb();Object.defineProperty(b,"publish",{enumerable:!0,get:function(){return lX.publish}});var fX=Nb();Object.defineProperty(b,"publishBehavior",{enumerable:!0,get:function(){return fX.publishBehavior}});var dX=Lb();Object.defineProperty(b,"publishLast",{enumerable:!0,get:function(){return dX.publishLast}});var pX=jb();Object.defineProperty(b,"publishReplay",{enumerable:!0,get:function(){return pX.publishReplay}});var hX=PO();Object.defineProperty(b,"race",{enumerable:!0,get:function(){return hX.race}});var gX=Ap();Object.defineProperty(b,"raceWith",{enumerable:!0,get:function(){return gX.raceWith}});var mX=fi();Object.defineProperty(b,"reduce",{enumerable:!0,get:function(){return mX.reduce}});var yX=Fb();Object.defineProperty(b,"repeat",{enumerable:!0,get:function(){return yX.repeat}});var vX=qb();Object.defineProperty(b,"repeatWhen",{enumerable:!0,get:function(){return vX.repeatWhen}});var bX=Bb();Object.defineProperty(b,"retry",{enumerable:!0,get:function(){return bX.retry}});var _X=Ub();Object.defineProperty(b,"retryWhen",{enumerable:!0,get:function(){return _X.retryWhen}});var wX=Ql();Object.defineProperty(b,"refCount",{enumerable:!0,get:function(){return wX.refCount}});var EX=Dp();Object.defineProperty(b,"sample",{enumerable:!0,get:function(){return EX.sample}});var SX=Hb();Object.defineProperty(b,"sampleTime",{enumerable:!0,get:function(){return SX.sampleTime}});var xX=$b();Object.defineProperty(b,"scan",{enumerable:!0,get:function(){return xX.scan}});var IX=Kb();Object.defineProperty(b,"sequenceEqual",{enumerable:!0,get:function(){return IX.sequenceEqual}});var AX=Lp();Object.defineProperty(b,"share",{enumerable:!0,get:function(){return AX.share}});var TX=Vb();Object.defineProperty(b,"shareReplay",{enumerable:!0,get:function(){return TX.shareReplay}});var MX=Gb();Object.defineProperty(b,"single",{enumerable:!0,get:function(){return MX.single}});var OX=zb();Object.defineProperty(b,"skip",{enumerable:!0,get:function(){return OX.skip}});var PX=Yb();Object.defineProperty(b,"skipLast",{enumerable:!0,get:function(){return PX.skipLast}});var CX=Zb();Object.defineProperty(b,"skipUntil",{enumerable:!0,get:function(){return CX.skipUntil}});var DX=Qb();Object.defineProperty(b,"skipWhile",{enumerable:!0,get:function(){return DX.skipWhile}});var kX=Jb();Object.defineProperty(b,"startWith",{enumerable:!0,get:function(){return kX.startWith}});var RX=Ns();Object.defineProperty(b,"subscribeOn",{enumerable:!0,get:function(){return RX.subscribeOn}});var NX=Xb();Object.defineProperty(b,"switchAll",{enumerable:!0,get:function(){return NX.switchAll}});var LX=Ys();Object.defineProperty(b,"switchMap",{enumerable:!0,get:function(){return LX.switchMap}});var jX=e_();Object.defineProperty(b,"switchMapTo",{enumerable:!0,get:function(){return jX.switchMapTo}});var FX=t_();Object.defineProperty(b,"switchScan",{enumerable:!0,get:function(){return FX.switchScan}});var qX=Ws();Object.defineProperty(b,"take",{enumerable:!0,get:function(){return qX.take}});var BX=fp();Object.defineProperty(b,"takeLast",{enumerable:!0,get:function(){return BX.takeLast}});var UX=n_();Object.defineProperty(b,"takeUntil",{enumerable:!0,get:function(){return UX.takeUntil}});var HX=r_();Object.defineProperty(b,"takeWhile",{enumerable:!0,get:function(){return HX.takeWhile}});var $X=o_();Object.defineProperty(b,"tap",{enumerable:!0,get:function(){return $X.tap}});var KX=Jp();Object.defineProperty(b,"throttle",{enumerable:!0,get:function(){return KX.throttle}});var WX=i_();Object.defineProperty(b,"throttleTime",{enumerable:!0,get:function(){return WX.throttleTime}});var VX=Vs();Object.defineProperty(b,"throwIfEmpty",{enumerable:!0,get:function(){return VX.throwIfEmpty}});var GX=s_();Object.defineProperty(b,"timeInterval",{enumerable:!0,get:function(){return GX.timeInterval}});var zX=Oc();Object.defineProperty(b,"timeout",{enumerable:!0,get:function(){return zX.timeout}});var YX=a_();Object.defineProperty(b,"timeoutWith",{enumerable:!0,get:function(){return YX.timeoutWith}});var ZX=c_();Object.defineProperty(b,"timestamp",{enumerable:!0,get:function(){return ZX.timestamp}});var QX=Sd();Object.defineProperty(b,"toArray",{enumerable:!0,get:function(){return QX.toArray}});var JX=u_();Object.defineProperty(b,"window",{enumerable:!0,get:function(){return JX.window}});var XX=l_();Object.defineProperty(b,"windowCount",{enumerable:!0,get:function(){return XX.windowCount}});var eee=f_();Object.defineProperty(b,"windowTime",{enumerable:!0,get:function(){return eee.windowTime}});var tee=p_();Object.defineProperty(b,"windowToggle",{enumerable:!0,get:function(){return tee.windowToggle}});var nee=h_();Object.defineProperty(b,"windowWhen",{enumerable:!0,get:function(){return nee.windowWhen}});var ree=g_();Object.defineProperty(b,"withLatestFrom",{enumerable:!0,get:function(){return ree.withLatestFrom}});var oee=y_();Object.defineProperty(b,"zip",{enumerable:!0,get:function(){return oee.zip}});var iee=m_();Object.defineProperty(b,"zipAll",{enumerable:!0,get:function(){return iee.zipAll}});var see=v_();Object.defineProperty(b,"zipWith",{enumerable:!0,get:function(){return see.zipWith}})});import{execFile as Hve}from"node:child_process";import{readFileSync as $ve}from"node:fs";import{open as Kve,readFile as Wve,readdir as RI,stat as Vve,unlink as Gve}from"node:fs/promises";import{homedir as zve}from"node:os";import{join as Eq}from"node:path";import{promisify as Yve}from"node:util";function FI(e=process.env){return{portFile:e.PLANX_AGENT_PORT_FILE,pidFile:e.PLANX_AGENT_PID_FILE,home:e.HOME,workersPortFile:e.PLANX_WORKERS_PORT_FILE,nosturnPortFile:e.PLANX_NOSTURN_PORT_FILE,configDir:e.PLANX_SERVER_CONFIG_DIR,serverName:e.PLANX_SERVER_NAME,serverId:e.PLANX_SERVER_ID,transportPortFile:e.PLANX_TRANSPORT_PORT_FILE}}import{join as Nq}from"node:path";var qI="/tmp/cc-socks";function BI(e,t){return t.flatMap(n=>{let r=/^(\d+)\.sock$/.exec(n);return r?[{pid:Number(r[1]),socketPath:Nq(e,n)}]:[]}).sort((n,r)=>n.pid-r.pid)}import{join as UI}from"node:path";function HI(e){return UI(e,".claude","sessions")}var Lq=new Set(["idle"]),jq=new Set(["busy","shell","waiting","working","running"]);function Fq(e){return typeof e!="string"?null:Lq.has(e)?"idle":jq.has(e)?"working":null}var Pl=e=>typeof e=="string"&&e?e:null;function qq(e){let t;try{t=JSON.parse(e)}catch{return null}let n=Pl(t.sessionId);if(typeof t.pid!="number"||!n)return null;let r=t.statusUpdatedAt;return{pid:t.pid,sessionId:n,cwd:Pl(t.cwd),version:Pl(t.version),socketPath:Pl(t.messagingSocketPath),state:Fq(t.status),statusUpdatedAt:typeof r=="number"?new Date(r).toISOString():null}}async function $I(e,t,n){let r=new Map;return await Promise.all(t.map(async o=>{let i=/^(\d+)\.json$/.exec(o);if(!(!i||!n(Number(i[1]))))try{let s=qq(await e.readFile(UI(e.dir,o)));s&&s.pid===Number(i[1])&&r.set(s.pid,s)}catch{return}})),r}var KI=["PLANX_SESSION_ID","PLANX_SESSION_NAME","PLANX_SERVER_NAME","PWD"];function Bq(e){let t={};for(let n of KI){let r=new RegExp(`(?:^|\\s)${n}=(\\S+)`).exec(e);r&&(t[n]=r[1])}return t}async function Uq(e,t){try{let n=await t("/bin/ps",["eww","-o","command=","-p",String(e)]);return n.trim()?Bq(n):null}catch{return null}}function Hq(e){let t={};for(let n of e.split("\0")){let r=n.indexOf("=");if(r<=0)continue;let o=n.slice(0,r);KI.includes(o)&&(t[o]=n.slice(r+1))}return t}async function $q(e,t){try{let n=await t(`/proc/${e}/environ`);return n?Hq(n):null}catch{return null}}async function WI(e,t,n){return await Uq(e,t)??$q(e,n)}function VI(e){let t=new Set;return async(n,r)=>{if(t.has(n))throw Object.assign(new Error(`spawn ${n} ENOENT (\u524D\u56DE ENOENT \u306E\u305F\u3081 spawn \u3057\u306A\u3044)`),{code:"ENOENT"});try{return await e(n,r)}catch(o){throw o?.code==="ENOENT"&&t.add(n),o}}}function Kq(e){let t=e.lastIndexOf(")");if(t<0)return null;let n=Number(e.slice(t+1).trim().split(/\s+/)[19]);return Number.isFinite(n)?n:null}function Wq(e){let t=/^btime\s+(\d+)$/m.exec(e);return t?Number(t[1])*1e3:null}async function Vq(e,t,n){let r=await t(`/proc/${e}/stat`).catch(()=>null),o=r?Kq(r):null,i=o===null?null:await n();return o===null||i===null?null:i+o*1e3/100}async function Gq(e,t){try{let n=Date.parse((await t("/bin/ps",["-o","lstart=","-p",String(e)])).trim());return Number.isFinite(n)?n:null}catch{return null}}function GI(e,t){let n=null,r=()=>n??=e("/proc/stat").then(o=>o?Wq(o):null,()=>null);return async o=>await Vq(o,e,r)??Gq(o,t)}import{join as zq}from"node:path";var Yq=1e4,Zq=2e3;function Qq(e,t,n,r){let o=new Map,i=(s,a,c)=>{let u=c.exec(a);if(!u)return;let l=Number(u[1]);o.set(l,[...o.get(l)??[],zq(s,a)])};for(let s of t)i(e,s,/^(\d+)\.sock$/);if(n)for(let s of r)i(n,s,/^(\d+)\.(?:json|[^/]+\.key)$/);return o}function zI(e){let t=new Set,n=new Map,r=new Map,o=new Set;async function i(u){let l=(await Promise.all(u.map(f=>e.stat(f)))).filter(f=>f!==null);return l.length>0?Math.max(...l):null}async function s(u,l){let f=n.get(u),d=await i(l);if(f!==void 0&&f===d)return!1;n.delete(u);let p=await e.startTimeMs(u);return p!==null&&d!==null&&p>d+Zq?(n.set(u,d),!1):(t.add(u),!0)}async function a(u,l){let f=await i(l);if(f===null||!e.unlink||e.now()-f<Yq)return;let d=e.unlink,h=(await Promise.allSettled(l.map(m=>d(m)))).find(m=>m.status==="rejected"&&m.reason?.code!=="ENOENT");h&&(r.set(u,f),!o.has(u)&&(o.add(u),e.warn(`\u6B7B\u3093\u3060 claude (pid=${u}) \u306E\u6B8B\u9AB8\u3092\u6D88\u305B\u306A\u3044: ${String(h.reason)}`)))}async function c(u,l){if(r.has(u)){if(await i(l)===r.get(u))return!1;r.delete(u)}return e.isAlive(u)?t.has(u)||s(u,l):(t.delete(u),n.delete(u),await a(u,l),!1)}return{async sweep(u,l){let f=Qq(e.socketDir,u,e.sessionsDir,l);for(let p of[t,n,r])for(let h of p.keys())f.has(h)||p.delete(h);let d=new Set;return await Promise.all([...f].map(async([p,h])=>{await c(p,h)&&d.add(p)})),d}}}function YI(e){let t={},n=0,r=0,o=e.now(),i=(s,a=1)=>{t[s]=(t[s]??0)+a};return{count:i,wrap:(s,a)=>(...c)=>(i(s),a(...c)),tick(s){n+=1,r+=s;let a=e.now();if(a-o<e.everyMs)return;let c=Object.entries(t).map(([u,l])=>`${u}=${l}`);e.log([`poll ${Math.round((a-o)/1e3)}s: ticks=${n} avgTickMs=${Math.round(r/n)}`,...c].join(" ")),t={},n=0,r=0,o=a},snapshot:()=>({...t})}}import{join as ZI}from"node:path";function Ty(e,t){return ZI(e,".claude","projects",t.replace(/[^A-Za-z0-9]/g,"-"))}function QI(e,t){let n=t.filter(r=>r.name.endsWith(".jsonl")).sort((r,o)=>o.mtimeMs-r.mtimeMs)[0];return n?ZI(e,n.name):null}var Jq=new Set(["end_turn","stop_sequence"]),Xq=80,eB=/^<[a-z-]+[ >]/i;function My(e){return{path:e,offset:0,invalidLines:0,state:"unknown",activity:null,skills:new Set,claudeVersion:null,lastActivityAt:null,derivedFrom:[]}}function JI(e,t){for(let n of t.split(`
5
+ `)){if(!n.trim())continue;let r;try{r=JSON.parse(n)}catch{e.invalidLines+=1;continue}r&&typeof r=="object"&&tB(e,r)}}function XI(e){return{state:e.state,activity:e.activity,skills:[...e.skills].sort(),claudeVersion:e.claudeVersion,lastActivityAt:e.lastActivityAt}}function tB(e,t){if(t.type==="attachment")return uB(e,t.attachment);if(t.type==="derived-from")return nB(e,t);if(t.type!=="user"&&t.type!=="assistant"||t.isMeta===!0||t.isSidechain===!0||t.rowSource==="local")return;let n=t.message?.content;e.state=t.type==="user"?rB(n):oB(t.message?.stop_reason),e.activity=cB(t.type==="user"?iB(n):sB(n))??e.activity,typeof t.version=="string"&&(e.claudeVersion=t.version),typeof t.timestamp=="string"&&(e.lastActivityAt=t.timestamp)}function nB(e,t){let n=(Array.isArray(t.sessions)?t.sessions:[]).map(r=>r?.id);e.derivedFrom=n.filter(r=>typeof r=="string"&&r!==t.sessionId)}function rB(e){return typeof e=="string"&&e.includes("<local-command-stdout>")?"idle":"working"}function oB(e){return typeof e=="string"&&Jq.has(e)?"idle":"working"}var eA=e=>Array.isArray(e)?e.filter(t=>!!t&&typeof t=="object"):[],Oy=e=>e.split(`
6
+ `).find(t=>t.trim()!=="")??"";function iB(e){let t=eA(e);if(t.some(r=>r.type==="tool_result"))return null;let n=typeof e=="string"?e:t.find(r=>typeof r.text=="string")?.text;return typeof n!="string"||eB.test(n.trim())?null:`\u{1F4DD} ${Oy(n)}`}function sB(e){let t=eA(e),n=t.find(o=>o.type==="tool_use"&&typeof o.name=="string");if(n){let o=aB(n.input);return o?`\u{1F527} ${String(n.name)}: ${o}`:`\u{1F527} ${String(n.name)}`}let r=t.find(o=>o.type==="text"&&typeof o.text=="string"&&o.text.trim()!=="");return r?`\u{1F4AC} ${Oy(r.text)}`:t.some(o=>o.type==="thinking")?"\u{1F914} \u8003\u3048\u4E2D":null}function aB(e){if(!e||typeof e!="object")return"";let t=Object.entries(e),r=t.find(([o,i])=>o==="description"&&typeof i=="string"&&i.trim()!=="")??t.find(([,o])=>typeof o=="string"&&o.trim()!=="");return r?Oy(r[1]):""}function cB(e){return e===null?null:e.replace(/\s+/g," ").trim().slice(0,Xq)}function uB(e,t){let n=t?.type==="skill_listing"?t.names:t?.type==="dynamic_skill"?t.skillNames:void 0;if(Array.isArray(n))for(let r of n)typeof r=="string"&&e.skills.add(r)}import{dirname as lB,join as tA}from"node:path";var fB=10;function nA(e){let t=new Map,n=new Set,r=(c,u)=>{n.has(c)||(n.add(c),e.warn(u))};async function o(c){let u=Ty(e.home,c);try{return QI(u,await e.listDir(u))}catch(l){return r(`dir:${u}`,`transcript dir \u3092\u8AAD\u3081\u306A\u3044 ${u}: ${String(l)}`),null}}async function i(c){let u=t.get(c)??My(c),{size:l,bytes:f}=await e.readRange(c,u.offset);l<u.offset&&(u=My(c),{size:l,bytes:f}=await e.readRange(c,0));let d=f.lastIndexOf(fB);return d>=0&&(JI(u,f.subarray(0,d+1).toString("utf8")),u.offset+=d+1),t.set(c,u),u.invalidLines>0&&r(`invalid:${c}`,`transcript \u306B JSON \u3067\u306A\u3044\u884C\u304C\u3042\u308B ${c} (${u.invalidLines} \u884C)`),u}async function s(c,u){let l=null;for(let f of u){let d=(await i(tA(lB(c),`${f}.jsonl`)).catch(()=>null))?.lastActivityAt??null;d&&(!l||Date.parse(d)>Date.parse(l))&&(l=d)}return l}async function a(c,u){try{let l=await i(c),f=XI(l);return f.lastActivityAt===null&&(f.lastActivityAt=await s(c,l.derivedFrom)),{path:c,summary:f}}catch(l){return u&&l.code==="ENOENT"||r(`read:${c}`,`transcript \u3092\u8AAD\u3081\u306A\u3044 ${c}: ${String(l)}`),null}}return{async read(c){let u=await o(c);return u?a(u,!1):null},readSession(c,u){return a(tA(Ty(e.home,c),`${u}.jsonl`),!0)}}}function rA(e,t,n,r=null,o=null){return{id:String(e.pid),pid:e.pid,socketPath:e.socketPath,sessionId:t?.PLANX_SESSION_ID??null,sessionName:t?.PLANX_SESSION_NAME??null,serverName:t?.PLANX_SERVER_NAME??null,cwd:t?.PWD??o?.cwd??null,git:r,transcriptPath:n?.path??null,state:o?.state??n?.summary.state??"unknown",activity:n?.summary.activity??null,skills:n?.summary.skills??[],claudeVersion:n?.summary.claudeVersion??o?.version??null,lastActivityAt:n?.summary.lastActivityAt??o?.statusUpdatedAt??null}}var dB=6e4;function oA(e){let t=new Map,n=new Map,r=e.now??Date.now,o=new Set,i=(h,m)=>{o.has(h)||(o.add(h),e.warn(m))},s=zI({socketDir:e.socketDir,sessionsDir:e.sessions?.dir??null,isAlive:e.isAlive,startTimeMs:e.startTimeMs??(async()=>null),stat:e.stat??(async()=>null),unlink:e.unlink??null,now:r,warn:e.warn});async function a(){try{return await e.readdir(e.socketDir)}catch(h){return i("socket-dir",`claude \u306E socket dir \u3092\u8AAD\u3081\u306A\u3044 ${e.socketDir}: ${String(h)}`),[]}}async function c(){if(!e.sessions)return[];try{return await e.sessions.readdir(e.sessions.dir)}catch(h){return h.code!=="ENOENT"&&i("sessions-dir",`claude \u306E sessions dir \u3092\u8AAD\u3081\u306A\u3044 ${e.sessions.dir}: ${String(h)}`),[]}}async function u(h){let m=t.get(h);if(m)return m;let y=n.get(h);if(y!==void 0&&r()-y<dB)return null;let v=await e.readEnv(h);return v?(t.set(h,v),n.delete(h)):(n.set(h,r()),i(`env:${h}`,`claude (pid=${h}) \u306E env \u3092\u8AAD\u3081\u306A\u3044`)),v}async function l(h){let m=[...new Set(h)],y=await Promise.all(m.map(async v=>{if(!e.resolveGit)return null;try{return await e.resolveGit(v)}catch(w){return i(`git:${v}`,`git \u60C5\u5831\u3092\u8AAD\u3081\u306A\u3044 ${v}: ${String(w)}`),null}}));return new Map(m.map((v,w)=>[v,y[w]]))}function f(h,m){let y=new Map(h.map(v=>[v.pid,v]));for(let v of m.values())v.socketPath&&!y.has(v.pid)&&y.set(v.pid,{pid:v.pid,socketPath:v.socketPath});return[...y.values()].sort((v,w)=>v.pid-w.pid)}async function d(h,m,y){let v=h?.cwd??m;return h&&v?e.transcripts.readSession(v,h.sessionId):m&&y===1?e.transcripts.read(m):null}async function p(){let[h,m]=await Promise.all([a(),c()]),y=await s.sweep(h,m),v=BI(e.socketDir,h).filter(N=>y.has(N.pid)),w=e.sessions?await $I(e.sessions,m,N=>y.has(N)):new Map,A=f(v,w),P=new Set(A.map(N=>N.pid));for(let N of[t,n])for(let J of N.keys())P.has(J)||N.delete(J);let j=await Promise.all(A.map(N=>u(N.pid)));A.length>0&&j.every(N=>N===null)&&i("env-all",`ps (/bin/ps eww) \u3067 claude \u306E env \u3092 1 \u3064\u3082\u8AAD\u3081\u306A\u3044 (${A.length} \u4EF6): planx session \u3068\u306E\u5BFE\u5FDC\u4ED8\u3051\u304C\u3067\u304D\u306A\u3044`);let Q=A.map((N,J)=>j[J]?.PWD??w.get(N.pid)?.cwd??void 0),ue=new Map;A.forEach((N,J)=>{let de=Q[J];de&&!w.has(N.pid)&&ue.set(de,(ue.get(de)??0)+1)});let we=await l(Q.flatMap(N=>N?[N]:[]));return Promise.all(A.map(async(N,J)=>{let de=Q[J],G=w.get(N.pid),O=await d(G,de,de?ue.get(de)??0:0);return rA(N,j[J],O,de?we.get(de)??null:null,G??null)}))}return{list:p,async find(h){return(await p()).find(m=>m.id===h||m.sessionId===h)??null}}}function Cl(e){let{from:t,hint:n}=pB(e.replyTo),r=[`<cross-session-message from="${t}" from-mode="bypass">`,`[planx callback from ${e.label}] ${e.text}`,...n?[n]:[],"</cross-session-message>"].join(`
7
+ `);return{msgV:1,msg_id:crypto.randomUUID(),type:"user",message:{role:"user",content:r},priority:"next",from:t}}function pB(e){if(e?.socketPath)return{from:`uds:${e.socketPath}`,hint:null};if(e?.serverId&&e.agentId)return{from:`planx:${e.serverId}/${e.agentId}`,hint:`(\u8FD4\u4FE1\u306F planx MCP \u306E agent_send serverId=${e.serverId} agentId=${e.agentId}${e.eventId?` replyToEvent=${e.eventId}`:""} \u3067\u9001\u308B)`};if(e?.nostr){let{pubkey:t,eventId:n}=e.nostr;return{from:`nostr:${t}`,hint:`(\u8FD4\u4FE1\u306F planx MCP \u306E agent_send nostrPubkey=${t} replyToEvent=${n} \u3067\u9001\u308B\u3002timeline \u306B\u3053\u306E\u6295\u7A3F\u3078\u306E\u8FD4\u4FE1\u3068\u3057\u3066\u51FA\u308B)`}}return{from:"planx:unknown",hint:"(\u8FD4\u4FE1\u5148\u306A\u3057: \u9001\u4FE1\u5143\u304C planx \u306B\u767B\u9332\u3055\u308C\u305F agent \u3067\u306F\u306A\u3044\u305F\u3081\u3001\u3053\u306E\u7D4C\u8DEF\u3067\u306F\u8FD4\u4FE1\u3067\u304D\u306A\u3044)"}}import*as iA from"node:net";function Py(e,t){return new Promise((n,r)=>{let o=!1,i=iA.createConnection({path:e},()=>{i.end(JSON.stringify(t)+`
8
+ `)});i.on("error",s=>{o=!0,r(s)}),i.on("close",()=>{o||n()})})}import{isIP as hB}from"node:net";var sA="x-planx-l7-peer",aA=new Set(["127.0.0.1","localhost","::1","[::1]"]);function cA(e){let t=e.trim().toLowerCase();return t.startsWith("[")?t.slice(0,t.indexOf("]")+1):t.replace(/:\d+$/,"")}function gB(e){return!!e&&aA.has(cA(e))}function mB(e){return e?hB(cA(e).replace(/^\[|\]$/g,""))!==0:!1}function yB(e){if(!e)return!1;try{let t=new URL(e);return(t.protocol==="http:"||t.protocol==="https:")&&aA.has(t.hostname.toLowerCase())}catch{return!1}}function uA(e){return e.host&&!gB(e.host)&&!mB(e.host)?"bad-host":e.origin&&!yB(e.origin)&&!e.l7Peer?"bad-origin":"allow"}import{existsSync as Cy,readFileSync as vB,statSync as bB}from"node:fs";import{extname as _B,join as Dy,resolve as lA,sep as wB}from"node:path";import{fileURLToPath as EB}from"node:url";var SB={".html":"text/html; charset=utf-8",".js":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".css":"text/css; charset=utf-8",".json":"application/json",".webmanifest":"application/manifest+json",".png":"image/png",".svg":"image/svg+xml",".ico":"image/x-icon",".woff2":"font/woff2",".txt":"text/plain; charset=utf-8"};function xB(e){try{return decodeURIComponent(e)}catch{return null}}function fA(e){let t=SB[_B(e).toLowerCase()]??"application/octet-stream",n=e.endsWith("index.html")?"no-cache":"public, max-age=300";return new Response(vB(e),{headers:{"content-type":t,"cache-control":n}})}function dA(e,t,n){if(!e)return new Response(n,{status:404,headers:{"content-type":"text/plain; charset=utf-8"}});let r=lA(e),o=Dy(r,"index.html"),i=xB(t);if(i===null||i.includes("\0"))return new Response("bad path",{status:400});let s=lA(r,`.${i.startsWith("/")?i:`/${i}`}`);return s!==r&&!s.startsWith(r+wB)?new Response("not found",{status:404}):s!==r&&Cy(s)&&bB(s).isFile()?fA(s):Cy(o)?fA(o):new Response("not found",{status:404})}function pA(e,t,n,r){return[EB(new URL(`./${n}`,e)),Dy(t,r,n)].find(i=>Cy(Dy(i,"index.html")))??null}var Dl="/admin",hA="/admin/api/",ky="agents/",IB="Agent \u306E\u753B\u9762\u304C\u3042\u308A\u307E\u305B\u3093 (agent/ \u304C bundle \u306E\u96A3\u306B\u898B\u3064\u304B\u308A\u307E\u305B\u3093)",AB=new Set(["GET","HEAD","DELETE"]),eo=(e,t,n)=>{e.writeHead(t,{"content-type":"application/json","cache-control":"no-store"}),e.end(JSON.stringify(n))},Ry=(e,t)=>{let n=e.headers[t];return typeof n=="string"?n:void 0},TB=e=>({id:e.id,name:e.name,state:e.state,activity:e.activity,sessionName:e.sessionName,cwd:e.cwd,repo:e.git?.repo??null,branch:e.git?.branch??null,claudeVersion:e.claudeVersion,lastActivityAt:e.lastActivityAt,skills:e.skills,nostrHandle:e.nostrHandle??null}),MB=e=>({id:e.id,name:e.name,cwd:e.cwd,repo:e.repo,branch:e.branch,lastActivityAt:e.lastActivityAt}),OB=async(e,t)=>{let n={};t.headers.forEach((r,o)=>{n[o]=r}),e.writeHead(t.status,n),e.end(Buffer.from(await t.arrayBuffer()))};async function PB(e,t,n,r){if(e.method==="DELETE"){if(!r.startsWith(ky)||r.length===ky.length)return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});let s=decodeURIComponent(r.slice(ky.length)),a=(await n.rows()).stopped.some(c=>c.id===s);return eo(t,200,{removed:a&&await n.remove(s)?1:0})}if(r!=="status"&&r!=="agents")return eo(t,404,{error:{code:"NOT_FOUND"}});let o=await n.rows();if(r==="agents")return eo(t,200,{agents:o.agents.map(TB),stopped:o.stopped.map(MB)});let i={working:0,idle:0,unknown:0};for(let s of o.agents)i[s.state]+=1;eo(t,200,{version:n.version,nostr:n.nostr,live:o.agents.length,stopped:o.stopped.length,states:i})}function gA(e){return e===Dl||e.startsWith(`${Dl}/`)}async function mA(e,t,n,r){let o=uA({host:Ry(e,"host"),origin:Ry(e,"origin"),l7Peer:Ry(e,sA)});if(o!=="allow")return eo(t,403,{error:{code:"FORBIDDEN",message:o}});if(!AB.has(e.method??"GET"))return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});if(r.startsWith(hA))return PB(e,t,n,r.slice(hA.length));if(e.method==="DELETE")return eo(t,405,{error:{code:"METHOD_NOT_ALLOWED"}});if(r===Dl){t.writeHead(301,{location:"admin/"}),t.end();return}await OB(t,dA(n.assetsDir(),r.slice(Dl.length)||"/",IB))}var yA=e=>{let{skills:t,...n}=e;return Array.isArray(t)?{...n,skillCount:t.length}:n};function CB(e){let t=new Map;for(let n of e.agents)t.set(`a:${n.id}`,yA(n));for(let n of e.stopped)t.set(`s:${n.id}`,yA(n));return t}function vA(){let e=null,t=new Map,n=()=>[...e??[]].map(([r,{row:o}])=>({type:"agent",key:r,agent:o}));return{publish(r){let o=new Map([...CB(r)].map(([s,a])=>[s,{row:a,json:JSON.stringify(a)}])),i=[];for(let[s,a]of o)e?.get(s)?.json!==a.json&&i.push({type:"agent",key:s,agent:a.row});for(let s of e?.keys()??[])o.has(s)||i.push({type:"gone",key:s});e=o;for(let[s,a]of t)a.ready?s(i):s([...n(),{type:"ready"}]),a.ready=!0},subscribe(r){let o={ready:e!==null};return t.set(r,o),r(e===null?[{type:"hello"}]:[{type:"hello"},...n(),{type:"ready"}]),()=>{t.delete(r)}}}}function bA(e,t,n){n.writeHead(200,{"content-type":"text/event-stream","cache-control":"no-store"});let r=e.subscribe(o=>{n.write(o.length===0?`: keep
9
+
10
+ `:o.map(i=>`data: ${JSON.stringify(i)}
11
+
12
+ `).join(""))});t.on("close",r)}var _A=e=>e?.split("/").filter(Boolean).pop()??null;function DB(e){return e.sessionName||_A(e.worktreeRoot)||_A(e.cwd)||`pid-${e.pid}`}function kl(e){let t=new Set;return e.map(n=>{let r=DB(n),o=t.has(r)?`${r}#${n.pid}`:r;return t.add(r),o})}async function mc(e,t){let[n,r]=await Promise.all([e.registry.list(),e.roster?.stopped()??[]]),o=kl(n.map(a=>({pid:a.pid,sessionName:a.sessionName,worktreeRoot:a.git?.worktreeRoot??null,cwd:a.cwd}))),i=new Set(o);return{agents:await Promise.all(n.map(async(a,c)=>({...await t(a),name:o[c]}))),stopped:r.filter(a=>!i.has(a.id)).map(a=>({...a,name:a.id}))}}var kB=64*1024,RB=/^\/agents\/([^/]+)$/,NB=/^\/agents\/([^/]+)\/messages$/;function EA(e){return(t,n)=>{LB(e,t,n).catch(r=>{e.log(`request failed ${t.method} ${t.url}: ${String(r)}`),n.headersSent||vt(n,500,{error:"internal"})})}}async function LB(e,t,n){let r=new URL(t.url??"/","http://localhost").pathname;if(t.method==="GET"&&r==="/health")return vt(n,200,{status:"ok",service:"agent",version:e.version??null});let o=a=>e.nostr?.decorate(a)??a;if(e.admin&&gA(r)){let a={...e.admin,rows:()=>mc(e,o),remove:async c=>await e.roster?.remove(c)??!1,version:e.version??null,nostr:!!e.nostr};return mA(t,n,a,r)}if(t.method==="GET"&&r==="/agents")return vt(n,200,await mc(e,o));if(t.method==="GET"&&r==="/agents/stream"&&e.feed)return bA(e.feed,t,n);if(t.method==="GET"&&r==="/worktrees")return jB(e,t,n);let i=RB.exec(r);if(t.method==="DELETE"&&i){if(!(await e.roster?.remove(decodeURIComponent(i[1]))??!1))return vt(n,404,{error:"agent not found"});n.writeHead(204).end();return}if(t.method==="PUT"&&i)return FB(e,decodeURIComponent(i[1]),t,n);if(t.method==="GET"&&i){let a=await e.registry.find(decodeURIComponent(i[1]));return a?vt(n,200,await o(a)):vt(n,404,{error:"agent not found"})}let s=NB.exec(r);if(t.method==="POST"&&s)return qB(e,decodeURIComponent(s[1]),t,n);await e.nostr?.handle(t,n,r)||vt(n,404,{error:"not found"})}async function jB(e,t,n){if(!e.listWorktrees)return vt(n,503,{error:"this agent child cannot list worktrees"});let r=new URL(t.url??"/","http://localhost").searchParams.get("cwd");if(!r)return vt(n,400,{error:"cwd is required"});try{vt(n,200,{worktrees:await e.listWorktrees(r)})}catch(o){vt(n,400,{error:`not a git repository: ${r}`,detail:String(o)})}}async function FB(e,t,n,r){let o=await SA(n),i=c=>typeof o?.[c]=="string"&&o[c]?o[c]:null,s=i("cwd");if(!s)return vt(r,400,{error:"cwd is required"});let a={cwd:s,worktreeRoot:i("worktreeRoot")??s,command:i("command")};if(!await e.roster?.define(t,a))return vt(r,503,{error:"agent list is not available (workers child)"});vt(r,200,{id:t,...a})}async function qB(e,t,n,r){let o=await SA(n),i=typeof o?.text=="string"?o.text:"";if(!i)return vt(r,400,{error:"text is required"});let s=typeof o?.label=="string"&&o.label?o.label:"planx",a=await e.registry.find(t);if(!a)return vt(r,404,{error:"agent not found"});let c=await BB(e,o?.replyTo),u=Cl({target:a.socketPath,text:i,label:s,replyTo:c});try{await e.deliver(a.socketPath,u)}catch(l){return e.log(`message failed ${wA(a)} from=${s}: ${String(l)}`),vt(r,502,{error:"delivery failed"})}e.log(`message ${wA(a)} from=${s} bytes=${Buffer.byteLength(i)} msgId=${u.msg_id}`),vt(r,202,{msgId:u.msg_id})}async function BB(e,t){if(!t||typeof t!="object")return;let n=t,r=s=>typeof s=="string"&&s?s:void 0,o=r(n.socketPath);return{socketPath:(o?(await e.registry.list()).some(s=>s.socketPath===o):!1)?o:void 0,serverId:r(n.serverId),agentId:r(n.agentId)}}function wA(e){return`pid=${e.pid} session=${e.sessionName??"-"}`}async function SA(e){let t=[],n=0;for await(let r of e){if(n+=r.length,n>kB)return null;t.push(r)}try{let r=JSON.parse(Buffer.concat(t).toString("utf8"));return r&&typeof r=="object"?r:null}catch{return null}}function vt(e,t,n){e.writeHead(t,{"content-type":"application/json"}),e.end(JSON.stringify(n))}import{createServer as WB}from"node:http";import{renameSync as UB,rmSync as HB,writeFileSync as $B}from"fs";var KB=0;function yc(e,t){let n=`${e}.${process.pid}.${++KB}.tmp`;try{$B(n,t,"utf-8"),UB(n,e)}catch(r){throw HB(n,{force:!0}),r}}function Ny(e,t){yc(e,String(t))}function Ly(e,t){yc(e,String(t))}async function xA(e){let t=e.feed??vA(),n=WB(EA({...e,feed:t}));await new Promise((i,s)=>{n.once("error",s),n.listen(0,"127.0.0.1",()=>i())});let{port:r}=n.address();return e.portFile&&Ly(e.portFile,r),e.pidFile&&Ny(e.pidFile,process.pid),e.write(`${JSON.stringify({service:"agent",port:r,pid:process.pid})}
13
+ `),{port:r,publish:async i=>{let s={...e.registry,list:async()=>i};t.publish(await mc({registry:s,roster:e.roster},a=>e.nostr?.decorate(a)??a))},close:()=>new Promise(i=>{n.closeAllConnections(),n.close(()=>i())})}}var VB=/^[a-z][a-z0-9+.-]*:\/\/(?:[^@/]+@)?[^/]+\/(.+)$/i,GB=/^(?:[^@/\s]+@)?[^:/\s]+:(?!\/)(.+)$/;function zB(e){let t=e.trim(),n=VB.exec(t)?.[1]??GB.exec(t)?.[1];if(!n)return null;let r=n.replace(/\.git\/?$/,"").split("/").filter(o=>o!=="");return r.length>=2?r.join("/"):null}async function IA(e,t){let n;try{n=(await t(e,["rev-parse","--show-toplevel","--abbrev-ref","HEAD"])).split(`
14
+ `).map(s=>s.trim())}catch{return null}let[r,o]=n;if(!r)return null;let i=await t(e,["remote","get-url","origin"]).catch(()=>"");return{repo:zB(i),branch:o&&o!=="HEAD"?o:null,worktreeRoot:r}}function YB(e){let t=[];for(let n of e.split(`
15
+ `)){if(n.startsWith("worktree ")){t.push({path:n.slice(9),branch:null,bare:!1,main:t.length===0,prunable:!1});continue}let r=t[t.length-1];r&&(n==="bare"&&(r.bare=!0),(n==="prunable"||n.startsWith("prunable "))&&(r.prunable=!0),n.startsWith("branch ")&&(r.branch=n.slice(7).replace(/^refs\/heads\//,"")))}return t}async function AA(e,t){return YB(await t(e,["worktree","list","--porcelain"]))}async function vc(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n).slice(0,16);r[0]=32,r[1]=1,r[2]=0,r[3]=42,r[6]=r[6]&15|128,r[8]=r[8]&63|128;let o=Array.from(r).map(i=>i.toString(16).padStart(2,"0")).join("");return[o.slice(0,8),o.slice(8,12),o.slice(12,16),o.slice(16,20),o.slice(20,32)].join("-")}var TA={maxAgeMs:3e4,now:()=>Date.now()};function rs(e){return typeof e=="object"&&e!==null&&e.kind==="key-ref"}var Lt=null,Rl=!1,By=1,ZB=null,ze=Symbol("SIGNAL");function te(e){let t=Lt;return Lt=e,t}function ei(){return Lt}var os={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function is(e){if(Rl)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Lt===null)return;Lt.consumerOnSignalRead(e);let t=Lt.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Lt.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Lt.producers,n!==void 0&&n.producer===e)){Lt.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Lt&&(!r||QB(o,Lt)))return;let i=cs(Lt),s={producer:e,consumer:Lt,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Lt.producersTail=s,t!==void 0?t.nextProducer=s:Lt.producers=s,i&&DA(e,s)}function MA(){By++}function Uy(e){if(!(cs(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===By)){if(!e.producerMustRecompute(e)&&!_c(e)){qy(e);return}e.producerRecomputeValue(e),qy(e)}}function Hy(e){if(e.consumers===void 0)return;let t=Rl;Rl=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||OA(r)}}finally{Rl=t}}function $y(){return Lt?.consumerAllowSignalWrites!==!1}function OA(e){e.dirty=!0,Hy(e),e.consumerMarkedDirty?.(e)}function qy(e){e.dirty=!1,e.lastCleanEpoch=By}function ss(e){return e&&PA(e),te(e)}function PA(e){e.producersTail=void 0,e.recomputing=!0}function bc(e,t){te(t),e&&CA(e)}function CA(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(cs(e))do n=Ky(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function _c(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Uy(n),r!==n.version))return!0}return!1}function as(e){if(cs(e)){let t=e.producers;for(;t!==void 0;)t=Ky(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function DA(e,t){let n=e.consumersTail,r=cs(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)DA(o.producer,o)}function Ky(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!cs(t)){let i=t.producers;for(;i!==void 0;)i=Ky(i)}return n}function cs(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Wy(e){ZB?.(e)}function QB(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Vy(e,t){return Object.is(e,t)}function wc(e,t){let n=Object.create(JB);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Uy(n),is(n),n.value===Nl)throw n.error;return n.value};return r[ze]=n,typeof ngDevMode<"u"&&ngDevMode&&(r.toString=()=>`[Computed${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),Wy(n),r}var jy=Symbol("UNSET"),Fy=Symbol("COMPUTING"),Nl=Symbol("ERRORED"),JB={...os,value:jy,dirty:!0,error:null,equal:Vy,kind:"computed",producerMustRecompute(e){return e.value===jy||e.value===Fy},producerRecomputeValue(e){if(e.value===Fy)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Detected cycle in computations.":"");let t=e.value;e.value=Fy;let n=ss(e),r,o=!1;try{r=e.computation(),te(null),o=t!==jy&&t!==Nl&&r!==Nl&&e.equal(t,r)}catch(i){r=Nl,e.error=i}finally{bc(e,n)}if(o){e.value=t;return}e.value=r,e.version++}};function XB(){throw new Error}var kA=XB;function RA(e){kA(e)}function Gy(e){kA=e}var e8=null;function zy(e,t){let n=Object.create(Ll);n.value=e,t!==void 0&&(n.equal=t);let r=()=>NA(n);return r[ze]=n,typeof ngDevMode<"u"&&ngDevMode&&(r.toString=()=>`[Signal${n.debugName?" ("+n.debugName+")":""}: ${String(n.value)}]`),Wy(n),[r,s=>us(n,s),s=>LA(n,s)]}function NA(e){return is(e),e.value}function us(e,t){$y()||RA(e),e.equal(e.value,t)||(e.value=t,t8(e))}function LA(e,t){$y()||RA(e),us(e,t(e.value))}var Ll={...os,equal:Vy,value:void 0,kind:"signal"};function t8(e){e.version++,MA(),Hy(e),e8?.(e)}var To=gc(Nc(),1);var b_;function sh(){return b_}function nr(e){let t=b_;return b_=e,t}var LM=Symbol("NotFound");function Xs(e){return e===LM||e?.name==="\u0275NotFound"}var w_={header:(e,t)=>{if(!__(e)||t?.ngSkipFormatting)return null;let n;try{n=e()}catch(i){return["span",`Signal(\u26A0\uFE0F Error)${i.message?`: ${i.message}`:""}`]}let r="computation"in e[ze]?"Computed":"Signal",o=n===null||!Array.isArray(n)&&typeof n!="object";return["span",{},["span",{},`${r}(`],__(n)?w_.header(n,t):o&&n!==void 0&&typeof n!="function"?["object",{object:n}]:gQ(n),["span",{},")"]]},hasBody:(e,t)=>{if(!__(e))return!1;try{e()}catch{return!1}return!t?.ngSkipFormatting},body:(e,t)=>{let n="var(--sys-color-primary)";return["div",{style:"background: #FFFFFF10; padding-left: 4px; padding-top: 2px; padding-bottom: 2px;"},["div",{style:`color: ${n}`},"Signal value: "],["div",{style:"padding-left: .5rem;"},["object",{object:e(),config:t}]],["div",{style:`color: ${n}`},"Signal function: "],["div",{style:"padding-left: .5rem;"},["object",{object:e,config:{...t,ngSkipFormatting:!0}}]]]}};function gQ(e){if(e===null)return"null";if(Array.isArray(e))return`Array(${e.length})`;if(e instanceof Element)return`<${e.tagName.toLowerCase()}>`;if(e instanceof URL)return"URL";switch(typeof e){case"undefined":return"undefined";case"function":return"prototype"in e?"class":"() => {\u2026}";case"object":return e.constructor.name==="Object"?"{\u2026}":`${e.constructor.name} {}`;default:return["object",{object:e,config:{ngSkipFormatting:!0}}]}}function __(e){return e[ze]!==void 0}function mQ(){globalThis.devtoolsFormatters??=[],globalThis.devtoolsFormatters.some(e=>e===w_)||globalThis.devtoolsFormatters.push(w_)}(typeof ngDevMode>"u"||ngDevMode)&&mQ();var uh=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},S_=new uh("21.2.25"),hh=(()=>{let e=S_.full;return`https://${e.includes("-next")||e.includes("-rc")||e==="20.102.1"?"next":`v${S_.major}`}.angular.dev`})(),gh=`${hh}/errors`,sr="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(bt(t,n)),this.code=t}};function yQ(e){return`NG0${Math.abs(e)}`}function bt(e,t){let n=yQ(e),r=`${n}${t?": "+t:""}`;if(ngDevMode&&e<0){let i=!r.match(/[.,;!?\n]$/)?".":"";r=`${r}${i} Find more at ${gh}/${n}`}return r}var At=globalThis;function vQ(){let e=typeof location<"u"?location.toString():"",t={hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0,deferBlocksWithIncrementalHydration:0};return e.indexOf("ngDevMode=false")===-1?(typeof At.ngDevMode!="object"&&(At.ngDevMode={}),Object.assign(At.ngDevMode,t)):At.ngDevMode=!1,t}function mh(){return typeof ngDevMode>"u"||ngDevMode?((typeof ngDevMode!="object"||Object.keys(ngDevMode).length===0)&&vQ(),typeof ngDevMode<"u"&&!!ngDevMode):!1}function De(e){for(let t in e)if(e[t]===De)return t;throw Error(typeof ngDevMode<"u"&&ngDevMode?"Could not find renamed property on target object.":"")}function HM(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ke).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
16
+ `);return r>=0?n.slice(0,r):n}function yh(e,t){return e?t?`${e} ${t}`:e:t||""}var bQ=De({__forward_ref__:De});function zc(e){return e.__forward_ref__=zc,ngDevMode&&(e.toString=function(){return ke(this())}),e}function se(e){return Yc(e)?e():e}function Yc(e){return typeof e=="function"&&e.hasOwnProperty(bQ)&&e.__forward_ref__===zc}function je(e,t){typeof e!="number"&&X(t,typeof e,"number","===")}function ia(e,t,n){je(e,"Expected a number"),$M(e,n,"Expected number to be less than or equal to"),cr(e,t,"Expected number to be greater than or equal to")}function mi(e,t){typeof e!="string"&&X(t,e===null?"null":typeof e,"string","===")}function F_(e,t){typeof e!="function"&&X(t,e===null?"null":typeof e,"function","===")}function re(e,t,n){e!=t&&X(n,e,t,"==")}function tn(e,t,n){e==t&&X(n,e,t,"!=")}function q_(e,t,n){e!==t&&X(n,e,t,"===")}function yi(e,t,n){e===t&&X(n,e,t,"!==")}function ar(e,t,n){e<t||X(n,e,t,"<")}function $M(e,t,n){e<=t||X(n,e,t,"<=")}function Mo(e,t,n){e>t||X(n,e,t,">")}function cr(e,t,n){e>=t||X(n,e,t,">=")}function F(e,t){e==null&&X(t,e,null,"!=")}function X(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Oo(e){e instanceof Node||X(`The provided value must be an instance of a DOM Node but got ${ke(e)}`)}function KM(e){e instanceof Element||X(`The provided value must be an element but got ${ke(e)}`)}function ct(e,t){F(e,"Array must be defined.");let n=e.length;(t<0||t>=n)&&X(`Index expected to be less than ${n} but got ${t}`)}function WM(e,...t){if(t.indexOf(e)!==-1)return!0;X(`Expected value to be one of ${JSON.stringify(t)} but was ${JSON.stringify(e)}.`)}function vh(e){ei()!==null&&X(`${e}() should never be called in a reactive context.`)}function Fe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Zc(e){return{providers:e.providers||[],imports:e.imports||[]}}function bh(e){return _Q(e,sa)}function _Q(e,t){return e.hasOwnProperty(t)&&e[t]||null}function wQ(e){let t=e?.[sa]??null;return t?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${e.name}" that inherits its @Injectable decorator but does not provide one itself.
17
+ This will become an error in a future version of Angular. Please add @Injectable() to the "${e.name}" class.`),t):null}function Fc(e){return e&&e.hasOwnProperty(qc)?e[qc]:null}var sa=De({\u0275prov:De}),qc=De({\u0275inj:De}),H=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?((typeof ngDevMode>"u"||ngDevMode)&&ar(n,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=n):n!==void 0&&(this.\u0275prov=Fe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},x_;function _h(){return!ngDevMode&&X("getInjectorProfilerContext should never be called in production mode"),x_}function jt(e){!ngDevMode&&X("setInjectorProfilerContext should never be called in production mode");let t=x_;return x_=e,t}var di=[],EQ=()=>{};function SQ(e){let t=di.indexOf(e);t!==-1&&di.splice(t,1)}function B_(e){return!ngDevMode&&X("setInjectorProfiler should never be called in production mode"),e!==null?(di.includes(e)||di.push(e),()=>SQ(e)):(di.length=0,EQ)}function wh(e){!ngDevMode&&X("Injector profiler should never be called in production mode");for(let t=0;t<di.length;t++){let n=di[t];n(e)}}function lh(e,t=!1){!ngDevMode&&X("Injector profiler should never be called in production mode");let n;typeof e=="function"||e instanceof H?n=e:n=se(e.provide);let r=e;e instanceof H&&(r=e.\u0275prov||e),wh({type:2,context:_h(),providerRecord:{token:n,provider:r,isViewProvider:t}})}function Bc(e){!ngDevMode&&X("Injector profiler should never be called in production mode"),wh({type:5,context:_h(),token:e})}function Uc(e){!ngDevMode&&X("Injector profiler should never be called in production mode"),wh({type:1,context:_h(),instance:{value:e}})}function U_(e,t,n){!ngDevMode&&X("Injector profiler should never be called in production mode"),wh({type:0,context:_h(),service:{token:e,value:t,flags:n}})}function ta(e,t,n){!ngDevMode&&X("runInInjectorProfilerContext should never be called in production mode");let r=jt({injector:e,token:t});try{n()}finally{jt(r)}}function Qc(e){return e&&!!e.\u0275providers}var Cr=De({\u0275cmp:De}),vi=De({\u0275dir:De}),Jc=De({\u0275pipe:De}),Eh=De({\u0275mod:De}),rr=De({\u0275fac:De}),bi=De({__NG_ELEMENT_ID__:De}),jM=De({__NG_ENV_ID__:De});function Fn(e){return Sh(e,"@NgModule"),e[Eh]||null}function Xc(e){let t=Fn(e);if(!t)throw new D(915,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${ke(e)} does not have '\u0275mod' property.`);return t}function _e(e){return Sh(e,"@Component"),e[Cr]||null}function VM(e){let t=dt(e);if(!t)throw new D(916,(typeof ngDevMode>"u"||ngDevMode)&&`Type ${ke(e)} does not have '\u0275dir' property.`);return t}function dt(e){return Sh(e,"@Directive"),e[vi]||null}function Kt(e){return Sh(e,"@Pipe"),e[Jc]||null}function Sh(e,t){if(e==null)throw new D(-919,(typeof ngDevMode>"u"||ngDevMode)&&`Cannot read ${t} metadata. This can indicate a runtime circular dependency in your app that needs to be resolved.`)}function Dr(e){let t=_e(e)||dt(e)||Kt(e);return t!==null&&t.standalone}function he(e){return typeof e=="string"?e:e==null?"":String(e)}function ge(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():he(e)}function H_(e){let t=_e(e);return t!==null&&t.debugInfo?xQ(t.debugInfo):ge(e)}function xQ(e){return!e.filePath||!e.lineNumber?e.className:`${e.className} (at ${e.filePath}:${e.lineNumber})`}var $_=De({ngErrorCode:De}),GM=De({ngErrorMessage:De}),jc=De({ngTokenPath:De});function xh(e,t){let n=ngDevMode?`Circular dependency detected for \`${e}\`.`:"";return YM(n,-200,t)}function K_(e,t){return zM(xh(e,t),null)}function FM(){throw new Error("Cannot mix multi providers and regular providers")}function I_(e,t,n){if(e&&t){let r=t.map(o=>o==n?"?"+n+"?":"...");throw new Error(`Invalid provider for the NgModule '${ke(e)}' - only instances of Provider and Type are allowed, got: [${r.join(", ")}]`)}else throw Qc(n)?n.\u0275fromNgModule?new D(-207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new D(-207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function Ih(e,t){let n=ngDevMode&&`No provider for ${ge(e)} found${t?` in ${t}`:""}`;throw new D(-201,n)}function IQ(e,t){e[jc]??=[];let n=e[jc],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(F(t.provide,"Token with multi: true should have a provide property"),r=ge(t.provide)):r=ge(t),n[0]!==r&&e[jc].unshift(r)}function zM(e,t){let n=e[jc],r=e[$_],o=e[GM]||e.message;return e.message=TQ(o,r,n,t),e}function YM(e,t,n){let r=new D(t,e);return r[$_]=t,r[GM]=e,n&&(r[jc]=n),r}function AQ(e){return e[$_]}function TQ(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return bt(t,`${e}${i}${o}`)}var fh;function ZM(){return fh}function $t(e){let t=fh;return fh=e,t}function W_(e,t,n){let r=bh(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Ih(e,typeof ngDevMode<"u"&&ngDevMode?"Injector":"")}function QM(e){ngDevMode&&tn(fh,e,"Calling \u0275\u0275inject would cause infinite recursion")}var MQ={},pi=MQ,A_="__NG_DI_FLAG__",T_=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=hi(n)||0;try{return this.injector.get(t,r&8?null:pi,r)}catch(o){if(Xs(o))return o;throw o}}};function OQ(e,t=0){let n=sh();if(n===void 0)throw new D(-203,ngDevMode&&`The \`${ke(e)}\` token injection failed. \`inject()\` function must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with \`runInInjectionContext\`.`);if(n===null)return W_(e,void 0,t);{let r=PQ(t),o=n.retrieve(e,r);if(ngDevMode&&U_(e,o,t),Xs(o)){if(r.optional)return null;throw o}return o}}function Tt(e,t=0){return(ZM()||OQ)(se(e),t)}function Ah(e){throw new D(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${e} of the parameter list is invalid.
14
18
  This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
15
19
 
16
- Please check that 1) the type for the parameter at index ${e} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`)}function z(e,t){return Tt(e,hi(t))}function hi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function xQ(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function M_(e){let t=[];for(let n=0;n<e.length;n++){let r=se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,ngDevMode&&"Arguments array must have arguments.");let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=IQ(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Tt(o,i))}else t.push(Tt(r))}return t}function aa(e,t){return e[A_]=t,e.prototype[A_]=t,e}function IQ(e){return e[A_]}function Io(e,t){let n=e.hasOwnProperty(rr);if(!n&&t===!0&&ngDevMode)throw new Error(`Type ${ke(e)} does not have '\u0275fac' property.`);return n?e[rr]:null}function zM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Wt(e){return e.flat(Number.POSITIVE_INFINITY)}function _i(e,t){e.forEach(n=>Array.isArray(n)?_i(n,t):t(n))}function V_(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xc(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ca(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function G_(e,t,n){let r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop()}function z_(e,t,n,r){ngDevMode&&qM(t,e.length,"Can't insert past array end.");let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function eu(e,t,n){let r=ua(e,t);return r>=0?e[r|1]=n:(r=~r,z_(e,r,t,n)),r}function Ah(e,t){let n=ua(e,t);if(n>=0)return e[n|1]}function ua(e,t){return AQ(e,t,1)}function AQ(e,t,n){ngDevMode&&re(Array.isArray(e),!0,"Expecting an array");let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var pn={},Ae=[];(typeof ngDevMode>"u"||ngDevMode)&&gh()&&(Object.freeze(pn),Object.freeze(Ae));var wi=new H(typeof ngDevMode<"u"&&ngDevMode?"ENVIRONMENT_INITIALIZER":""),Y_=new H(typeof ngDevMode<"u"&&ngDevMode?"INJECTOR":"",-1),Th=new H(typeof ngDevMode<"u"&&ngDevMode?"INJECTOR_DEF_TYPES":""),gi=class{get(t,n=pi){if(n===pi){let r=ngDevMode?`No provider found for \`${ke(t)}\`.`:"",o=WM(r,-201);throw o.name="\u0275NotFound",o}return n}};function YM(...e){return{\u0275providers:Mh(!0,e),\u0275fromNgModule:!0}}function Mh(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return _i(t,s=>{if((typeof ngDevMode>"u"||ngDevMode)&&e&&_e(s)?.standalone)throw new D(800,`Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${ge(s)}"`);let a=s;Uc(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&ZM(o,i),n}function ZM(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Z_(o,i=>{ngDevMode&&QM(i,o||Ae,r),t(i,r)})}}function Uc(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=jc(e),s=!i&&_e(e);if(!i&&!s){let c=e.ngModule;if(i=jc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}if(ngDevMode&&n.indexOf(o)!==-1){let c=ke(o),u=n.map(ke).concat(c);throw K_(c,u)}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Uc(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){ngDevMode&&n.push(o),r.add(o);let u;try{_i(i.imports,l=>{Uc(l,t,n,r)&&(u||=[],u.push(l))})}finally{ngDevMode&&n.pop()}u!==void 0&&ZM(u,t)}if(!a){let u=Io(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:Th,useValue:o,multi:!0},o),t({provide:wi,useValue:()=>Tt(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Z_(c,l=>{ngDevMode&&QM(l,c,u),t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function QM(e,t,n){if(or(e)||Oh(e)||XM(e)||JM(e))return;se(e&&(e.useClass||e.provide))||I_(n,t,e)}function Z_(e,t){for(let n of e)Zc(n)&&(n=n.\u0275providers),Array.isArray(n)?Z_(n,t):t(n)}var TQ=De({provide:String,useValue:De});function Oh(e){return e!==null&&typeof e=="object"&&TQ in e}function JM(e){return!!(e&&e.useExisting)}function XM(e){return!!(e&&e.useFactory)}function or(e){return typeof e=="function"}function Q_(e){return!!e.useClass}var J_=new H(typeof ngDevMode<"u"&&ngDevMode?"Set Injector scope.":""),sh={},NM={},E_;function tu(){return E_===void 0&&(E_=new gi),E_}var Ft=class{},Nn=class extends Ft{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,P_(t,s=>this.processProvider(s)),this.records.set(Y_,ea(void 0,this)),o.has("environment")&&this.records.set(Ft,ea(void 0,this));let i=this.records.get(J_);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Th,Ae,{self:!0}))}retrieve(t,n){let r=hi(n)||0;try{return this.get(t,pi,r)}catch(o){if(Xs(o))return o;throw o}}destroy(){Nc(this),this._destroyed=!0;let t=te(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),te(t)}}onDestroy(t){return Nc(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Nc(this);let n=nr(this),r=$t(void 0),o;ngDevMode&&(o=jt({injector:this,token:null}));try{return t()}finally{nr(n),$t(r),ngDevMode&&jt(o)}}get(t,n=pi,r){if(Nc(this),t.hasOwnProperty(kM))return t[kM](this);let o=hi(r),i;ngDevMode&&(i=jt({injector:this,token:t}));let s=nr(this),a=$t(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=DQ(t)&&vh(t);l&&this.injectableDefInScope(l)?(ngDevMode&&ta(this,t,()=>{uh(t)}),u=ea(O_(t),sh)):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?tu():this.parent;return n=o&8&&n===pi?null:n,c.get(t,n)}catch(c){let u=_Q(c);throw u===-200||u===-201?ngDevMode?(bQ(c,t),s?c:KM(c,this.source)):new D(u,null):c}finally{$t(a),nr(s),ngDevMode&&jt(i)}}resolveInjectorInitializers(){let t=te(null),n=nr(this),r=$t(void 0),o;ngDevMode&&(o=jt({injector:this,token:null}));try{let i=this.get(wi,Ae,{self:!0});if(ngDevMode&&!Array.isArray(i))throw new D(-209,`Unexpected type of the \`ENVIRONMENT_INITIALIZER\` token value (expected an array, but got ${typeof i}). Please check that the \`ENVIRONMENT_INITIALIZER\` token is configured as a \`multi: true\` provider.`);for(let s of i)s()}finally{nr(n),$t(r),ngDevMode&&jt(o),te(t)}}toString(){if(ngDevMode){let t=[],n=this.records;for(let r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}return"R3Injector[...]"}processProvider(t){t=se(t);let n=or(t)?t:se(t&&t.provide),r=OQ(t);if(ngDevMode&&ta(this,n,()=>{Oh(t)&&(qc(n),Bc(t.useValue)),uh(t)}),!or(t)&&t.multi===!0){let o=this.records.get(n);o?ngDevMode&&o.multi===void 0&&RM():(o=ea(void 0,sh,!0),o.factory=()=>M_(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}else if(ngDevMode){let o=this.records.get(n);o&&o.multi!==void 0&&RM()}this.records.set(n,r)}hydrate(t,n,r){let o=te(null);try{if(n.value===NM)throw Sh(ngDevMode?ke(t):"");return n.value===sh&&(n.value=NM,ngDevMode?ta(this,t,()=>{qc(t),n.value=n.factory(void 0,r),Bc(n.value)}):n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&CQ(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{te(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function O_(e){let t=vh(e),n=t!==null?t.factory:Io(e);if(n!==null)return n;if(e instanceof H)throw new D(-204,ngDevMode&&`Token ${ke(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return MQ(e);throw new D(-204,ngDevMode&&"unreachable")}function MQ(e){let t=e.length;if(t>0)throw new D(-204,ngDevMode&&`Can't resolve all parameters for ${ke(e)}: (${ca(t,"?").join(", ")}).`);let n=gQ(e);return n!==null?()=>n.factory(e):()=>new e}function OQ(e){if(Oh(e))return ea(void 0,e.useValue);{let t=X_(e);return ea(t,sh)}}function X_(e,t,n){let r;if(ngDevMode&&Zc(e)&&I_(void 0,n,e),or(e)){let o=se(e);return Io(o)||O_(o)}else if(Oh(e))r=()=>se(e.useValue);else if(XM(e))r=()=>e.useFactory(...M_(e.deps||[]));else if(JM(e))r=(o,i)=>Tt(se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=se(e&&(e.useClass||e.provide));if(ngDevMode&&!o&&I_(t,n,e),PQ(e))r=()=>new o(...M_(e.deps));else return Io(o)||O_(o)}return r}function Nc(e){if(e.destroyed)throw new D(-205,ngDevMode&&"Injector has already been destroyed.")}function ea(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function PQ(e){return!!e.deps}function CQ(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function DQ(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function P_(e,t){for(let n of e)Array.isArray(n)?P_(n,t):n&&Zc(n)?P_(n.\u0275providers,t):t(n)}function Ph(e,t){let n;e instanceof Nn?(Nc(e),n=e):n=new T_(e);let r;ngDevMode&&(r=jt({injector:e,token:null}));let o=nr(n),i=$t(void 0);try{return t()}finally{nr(o),ngDevMode&&jt(r),$t(i)}}function Ch(){return VM()!==void 0||ih()!=null}function hn(e){if(!Ch())throw new D(-203,ngDevMode&&e.name+"() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`")}var Xe=0,x=1,ae=2,tt=3,Mt=4,_t=5,Po=6,Ei=7,Te=8,Se=9,Vt=10,pe=11,Co=12,nu=13,Mr=14,at=15,Do=16,Si=17,In=18,nn=19,e0=20,Tr=21,Dh=22,ru=23,rn=24,xi=25,ur=26,Z=27,t0=1,kr=6,Rr=7,ou=8,ko=9,qe=10;function nt(e){return Array.isArray(e)&&typeof e[t0]=="object"}function Ot(e){return Array.isArray(e)&&e[t0]===!0}function n0(e){return(e.flags&4)!==0}function qn(e){return e.componentOffset>-1}function Ii(e){return(e.flags&1)===1}function on(e){return!!e.template}function lr(e){return(e[ae]&512)!==0}function fr(e){return(e[ae]&256)===256}function sn(e,t){Ai(e,t[x])}function la(e,t){let n=t+Z;ct(e,n),ar(n,e[x].bindingStartIndex,"TNodes should be created before any bindings")}function Ai(e,t){dr(e);let n=t.data;for(let r=Z;r<n.length;r++)if(n[r]===e)return;X("This TNode does not belong to this TView.")}function dr(e){F(e,"TNode must be defined"),e&&typeof e=="object"&&e.hasOwnProperty("directiveStylingLast")||X("Not of type TNode, got: "+e)}function kh(e){F(e,"Expected TIcu to be defined"),typeof e.currentCaseLViewIndex!="number"&&X("Object is not of TIcu type.")}function eO(e,t="Type passed in is not ComponentType, it does not have '\u0275cmp' property."){_e(e)||X(t)}function tO(e,t="Type passed in is not NgModuleType, it does not have '\u0275mod' property."){Fn(e)||X(t)}function nO(e){F(e,"currentTNode should exist!"),F(e.parent,"currentTNode should have a parent")}function gn(e){F(e,"LContainer must be defined"),re(Ot(e),!0,"Expecting LContainer")}function rO(e){e&&re(nt(e),!0,"Expecting LView or undefined or null")}function an(e){F(e,"LView must be defined"),re(nt(e),!0,"Expecting LView")}function Pt(e,t){re(e.firstCreatePass,!0,t||"Should only be called in first create pass.")}function Rh(e,t){re(e.firstUpdatePass,!0,"Should only be called in first update pass.")}function oO(e){(e.type===void 0||e.selectors==null||e.inputs===void 0)&&X("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")}function fa(e,t){iO(Z,e.bindingStartIndex,t)}function Hc(e,t){let n=e[1];iO(n.expandoStartIndex,e.length,t)}function iO(e,t,n){e<=n&&n<t||X(`Index out of range (expecting ${e} <= ${n} < ${t})`)}function sO(e,t){F(e[at],"Component views should exist."),F(e[at][_t].projection,"Components with projection nodes (<ng-content>) must have projection slots defined.")}function r0(e,t){F(e,"Component views should always have a parent view (component's host view)")}function o0(e,t){Hc(e,t),Hc(e,t+8),je(e[t+0],"injectorIndex should point to a bloom filter"),je(e[t+1],"injectorIndex should point to a bloom filter"),je(e[t+2],"injectorIndex should point to a bloom filter"),je(e[t+3],"injectorIndex should point to a bloom filter"),je(e[t+4],"injectorIndex should point to a bloom filter"),je(e[t+5],"injectorIndex should point to a bloom filter"),je(e[t+6],"injectorIndex should point to a bloom filter"),je(e[t+7],"injectorIndex should point to a bloom filter"),je(e[t+8],"injectorIndex should point to parent injector")}var $e;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})($e||($e={}));var ah,na="svg",Nh="math";function i0(){return ah||(ah={},xo($e.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),xo($e.STYLE,void 0,[["*",["style"]]]),xo($e.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),xo($e.URL,Nh,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),xo($e.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),xo($e.URL,na,[["a",["href","xlink:href"]]]),xo($e.ATTRIBUTE_NO_BINDING,na,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),xo($e.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),ah}function xo(e,t,n){for(let[r,o]of n){let i=t&&r!=="unknown"?`:${t}:${r}`:r;i=i.toLowerCase();for(let s of o)ah[`${i}|${s.toLowerCase()}`]=e}}function s0(e,t,n){let r=i0(),o=e.toLowerCase(),i=t.toLowerCase(),s=n&&o!=="*"&&o!=="unknown"?r[`:${n}:${o}|${i}`]:void 0,a=n?r[`:${n}:*|${i}`]:void 0;return s??a??r[`${o}|${i}`]??r[`*|${i}`]??$e.NONE}function gt(e){for(;Array.isArray(e);)e=e[Xe];return e}function a0(e){for(;Array.isArray(e);){if(typeof e[t0]=="object")return e;e=e[Xe]}return null}function Ti(e,t){return ngDevMode&&ct(t,e),ngDevMode&&cr(e,Z,"Expected to be past HEADER_OFFSET"),gt(t[e])}function rt(e,t){return ngDevMode&&sn(e,t),ngDevMode&&ct(t,e.index),gt(t[e.index])}function Mi(e,t){ngDevMode&&Mo(t,-1,"wrong index for TNode"),ngDevMode&&ar(t,e.data.length,"wrong index for TNode");let n=e.data[t];return ngDevMode&&n!==null&&dr(n),n}function Ro(e,t){return ngDevMode&&ct(e,t),e[t]}function iu(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function cn(e,t){ngDevMode&&ct(t,e);let n=t[e];return nt(n)?n:n[Xe]}function da(e){return(e[ae]&4)===4}function Lh(e){return(e[ae]&128)===128}function aO(e){return Ot(e[tt])}function Ct(e,t){return t==null?null:(ngDevMode&&ct(e,t),e[t])}function c0(e){e[Si]=0}function u0(e){e[ae]&1024||(e[ae]|=1024,Lh(e)&&pa(e))}function l0(e,t){for(;e>0;)ngDevMode&&F(t[Mr],"Declaration view should be defined if nesting level is greater than 0."),t=t[Mr],e--;return t}function su(e){return!!(e[ae]&9216||e[rn]?.dirty)}function jh(e){e[Vt].changeDetectionScheduler?.notify(8),e[ae]&64&&(e[ae]|=1024),su(e)&&pa(e)}function pa(e){e[Vt].changeDetectionScheduler?.notify(0);let t=ir(e);for(;t!==null&&!(t[ae]&8192||(t[ae]|=8192,!Lh(t)));)t=ir(t)}function au(e,t){if(fr(e))throw new D(911,ngDevMode&&"View has already been destroyed.");e[Tr]===null&&(e[Tr]=[]),e[Tr].push(t)}function Fh(e,t){if(e[Tr]===null)return;let n=e[Tr].indexOf(t);n!==-1&&e[Tr].splice(n,1)}function ir(e){ngDevMode&&an(e);let t=e[tt];return Ot(t)?t[tt]:t}function f0(e){return e[Ei]??=[]}function fh(e){return e.cleanup??=[]}function cO(e,t,n,r){let o=f0(t);ngDevMode&&F(n,"Cleanup context is mandatory when registering framework-level destroy hooks"),o.push(n),e.firstCreatePass?fh(e).push(r,o.length-1):ngDevMode&&Object.freeze(fh(e))}var le={lFrame:gO(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ao;(function(e){e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews"})(Ao||(Ao={}));var d0=0,C_=!1;function uO(){return le.lFrame.elementDepthCount}function lO(){le.lFrame.elementDepthCount++}function p0(){le.lFrame.elementDepthCount--}function qh(){return le.bindingsEnabled}function h0(){return le.skipHydrationRootTNode!==null}function g0(e){return le.skipHydrationRootTNode===e}function m0(){le.bindingsEnabled=!0}function y0(){le.bindingsEnabled=!1}function v0(){le.skipHydrationRootTNode=null}function S(){return le.lFrame.lView}function fe(){return le.lFrame.tView}function b0(e){return le.lFrame.contextLView=e,e[Te]}function _0(e){return le.lFrame.contextLView=null,e}function ce(){let e=w0();for(;e!==null&&e.type===64;)e=e.parent;return e}function w0(){return le.lFrame.currentTNode}function ha(){let e=le.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){ngDevMode&&e&&Ai(e,le.lFrame.tView);let n=le.lFrame;n.currentTNode=e,n.isParent=t}function E0(){return le.lFrame.isParent}function S0(){le.lFrame.isParent=!1}function x0(){let e=le.lFrame.contextLView;return ngDevMode&&F(e,"contextLView must be defined."),e}function Nr(){return!ngDevMode&&X("Must never be called in production mode"),d0!==Ao.Off}function Bh(){return!ngDevMode&&X("Must never be called in production mode"),d0===Ao.Exhaustive}function I0(e){!ngDevMode&&X("Must never be called in production mode"),d0=e}function A0(){return C_}function T0(e){let t=C_;return C_=e,t}function Dt(){let e=le.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hr(){return le.lFrame.bindingIndex}function M0(e){return le.lFrame.bindingIndex=e}function Gt(){return le.lFrame.bindingIndex++}function gr(e){let t=le.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function fO(){return le.lFrame.inI18n}function O0(e){le.lFrame.inI18n=e}function dO(e,t){let n=le.lFrame;n.bindingIndex=n.bindingRootIndex=e,Uh(t)}function pO(){return le.lFrame.currentDirectiveIndex}function Uh(e){le.lFrame.currentDirectiveIndex=e}function Hh(e){let t=le.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $h(){return le.lFrame.currentQueryIndex}function cu(e){le.lFrame.currentQueryIndex=e}function kQ(e){let t=e[x];return t.type===2?(ngDevMode&&F(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):t.type===1?e[_t]:null}function P0(e,t,n){if(ngDevMode&&rO(e),n&4){ngDevMode&&Ai(t,e[x]);let o=t,i=e;for(;ngDevMode&&F(o,"Parent TNode should be defined"),o=o.parent,o===null&&!(n&1);)if(o=kQ(i),o===null||(ngDevMode&&F(i,"Parent LView should be defined"),i=i[Mr],o.type&10))break;if(o===null)return!1;t=o,e=i}ngDevMode&&sn(t,e);let r=le.lFrame=hO();return r.currentTNode=t,r.lView=e,!0}function Kh(e){ngDevMode&&tn(e[0],e[1],"????"),ngDevMode&&rO(e);let t=hO();ngDevMode&&(re(t.isParent,!0,"Expected clean LFrame"),re(t.lView,null,"Expected clean LFrame"),re(t.tView,null,"Expected clean LFrame"),re(t.selectedIndex,-1,"Expected clean LFrame"),re(t.elementDepthCount,0,"Expected clean LFrame"),re(t.currentDirectiveIndex,-1,"Expected clean LFrame"),re(t.currentNamespace,null,"Expected clean LFrame"),re(t.bindingRootIndex,-1,"Expected clean LFrame"),re(t.currentQueryIndex,0,"Expected clean LFrame"));let n=e[x];le.lFrame=t,ngDevMode&&n.firstChild&&Ai(n.firstChild,n),t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function hO(){let e=le.lFrame,t=e===null?null:e.child;return t===null?gO(e):t}function gO(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mO(){let e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var C0=mO;function Wh(){let e=mO();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yO(e){return(le.lFrame.contextLView=l0(e,le.lFrame.contextLView))[Te]}function ut(){return le.lFrame.selectedIndex}function mr(e){ngDevMode&&e!==-1&&cr(e,Z,"Index must be past HEADER_OFFSET (or -1)."),ngDevMode&&ar(e,le.lFrame.lView.length,"Can't set index passed end of LView"),le.lFrame.selectedIndex=e}function mn(){let e=le.lFrame;return Mi(e.tView,e.selectedIndex)}function D0(){le.lFrame.currentNamespace=na}function k0(){le.lFrame.currentNamespace=Nh}function R0(){RQ()}function RQ(){le.lFrame.currentNamespace=null}function N0(){return le.lFrame.currentNamespace}var vO=!0;function uu(){return vO}function ga(e){vO=e}function D_(e,t=null,n=null,r){let o=L0(e,t,n,r);return o.resolveInjectorInitializers(),o}function L0(e,t=null,n=null,r,o=new Set){let i=[n||Ae,YM(e)],s;return ngDevMode&&(s=r||(typeof e=="object"?void 0:ke(e))),new Nn(i,t||tu(),s||null,o)}var en=class e{static THROW_IF_NOT_FOUND=pi;static NULL=new gi;static create(t,n){if(Array.isArray(t))return D_({name:""},n,t,"");{let r=t.name??"";return D_({name:r},t.parent,t.providers,r)}}static \u0275prov=Fe({token:e,providedIn:"any",factory:()=>Tt(Y_)});static __NG_ELEMENT_ID__=-1},ma=new H(typeof ngDevMode<"u"&&ngDevMode?"DocumentToken":""),Ln=class{static __NG_ELEMENT_ID__=NQ;static __NG_ENV_ID__=t=>t},k_=class extends Ln{_lView;constructor(t){super(),this._lView=t}get destroyed(){return fr(this._lView)}onDestroy(t){let n=this._lView;return au(n,t),()=>Fh(n,t)}};function NQ(){return new k_(S())}var bO=!1,_O=new H(typeof ngDevMode<"u"&&ngDevMode?"DEBUG_TASK_TRACKER":""),jn=class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new To.BehaviorSubject(!1);debugTaskTracker=z(_O,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new To.Observable(t=>{t.next(!1),t.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),this.debugTaskTracker?.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.debugTaskTracker?.remove(t),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},R_=class extends To.Subject{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ch()&&(this.destroyRef=z(Ln,{optional:!0})??void 0,this.pendingTasks=z(jn,{optional:!0})??void 0)}emit(t){let n=te(null);try{super.next(t)}finally{te(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof To.Subscription&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ar=R_;function dh(...e){}function j0(e){let t,n;function r(){e=dh;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function wO(e){return queueMicrotask(()=>e()),()=>{e=dh}}var N_=class{createTask;constructor(t,n=console){this.name="asyncStackTagging for "+t,this.createTask=n?.createTask??(()=>null)}name;onScheduleTask(t,n,r,o){return o.consoleTask=this.createTask(`Zone - ${o.source||o.type}`),t.scheduleTask(r,o)}onInvokeTask(t,n,r,o,i,s){let a;return o.consoleTask?a=o.consoleTask.run(()=>t.invokeTask(r,o,i,s)):a=t.invokeTask(r,o,i,s),a}},F0="isAngularZone",$c=F0+"_ID",LQ=0,Ye=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ar(!1);onMicrotaskEmpty=new Ar(!1);onStable=new Ar(!1);onError=new Ar(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=bO}=t;if(typeof Zone>"u")throw new D(908,ngDevMode&&"In this configuration Angular requires Zone.js");Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,ngDevMode&&(s._inner=s._inner.fork(new N_("Angular"))),Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,qQ(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(F0)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,ngDevMode&&"Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,ngDevMode&&"Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,jQ,dh,dh);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},jQ={};function q0(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function FQ(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){j0(()=>{e.callbackScheduled=!1,L_(e),e.isCheckStableRunning=!0,q0(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),L_(e)}function qQ(e){let t=()=>{FQ(e)},n=LQ++;e._inner=e._inner.fork({name:"angular",properties:{[F0]:!0,[$c]:n,[$c+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(BQ(c))return r.invokeTask(i,s,a,c);try{return LM(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),jM(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return LM(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!UQ(c)&&t(),jM(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,L_(e),q0(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function L_(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function LM(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function jM(e){e._nesting--,q0(e)}var Kc=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ar;onMicrotaskEmpty=new Ar;onStable=new Ar;onError=new Ar;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function BQ(e){return EO(e,"__ignore_ng_zone__")}function UQ(e){return EO(e,"__scheduler_tick__")}function EO(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Or=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Lr=new H(typeof ngDevMode>"u"||ngDevMode?"internal error handler":"",{factory:()=>{let e=z(Ye),t=z(Ft),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Or),n.handleError(r))})}}}),SO={provide:wi,useValue:()=>{let e=z(Or,{optional:!0});if((typeof ngDevMode>"u"||ngDevMode)&&e===null)throw new D(402,"A required Injectable was not found in the dependency injection tree. If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.")},multi:!0},nIe=new H(typeof ngDevMode<"u"&&ngDevMode?"GlobalErrorListeners":"",{factory:()=>{if(typeof ngServerMode<"u"&&ngServerMode)return;let e=z(ma).defaultView;if(!e)return;let t=z(Lr),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(ngDevMode?`An ErrorEvent with no error occurred. See Error.cause for details: ${i.message}`:i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),z(Ln).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function No(e,t){let[n,r,o]=zy(e,t?.equal),i=n,s=i[ze];if(i.set=r,i.update=o,i.asReadonly=Vh.bind(i),typeof ngDevMode<"u"&&ngDevMode){let a=t?.debugName;s.debugName=a,i.toString=()=>`[Signal${a?" ("+a+")":""}: ${i()}]`}return i}function Vh(){let e=this[ze];if(e.readonlyFn===void 0){let t=()=>this();t[ze]=e,e.readonlyFn=t}return e.readonlyFn}function B0(e,t){if(ei()!==null)throw new D(-602,ngDevMode&&`${e.name}() cannot be called from within a reactive context.${t?` ${t}`:""}`)}var ra=class{view;node;constructor(t,n){this.view=t,this.node=n}static __NG_ELEMENT_ID__=HQ};function HQ(){return new ra(S(),ce())}var Pr=class{},lu=new H(typeof ngDevMode>"u"||ngDevMode?"Zoneless enabled":"",{factory:()=>!0}),U0=new H(typeof ngDevMode>"u"||ngDevMode?"Zoneless provided":"",{factory:()=>!1}),H0=new H(typeof ngDevMode>"u"||ngDevMode?"run changes outside zone in root":""),oa=class e{internalPendingTasks=z(jn);scheduler=z(Pr);errorHandler=z(Lr);add(){let t=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(t)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(t))}}run(t){let n=this.add();t().catch(this.errorHandler).finally(n)}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},Wc=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new j_})},j_=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Vc=class{[ze];constructor(t){this[ze]=t}destroy(){this[ze].destroy()}};var Ku=gc(Rc(),1),sC=gc(TO(),1);function Fr(e){return{toString:e}.toString()}var va="__annotations__",ba="__parameters__",_a="__prop__metadata__";function Wu(e,t,n,r,o){return Fr(()=>{let i=OE(t);function s(...a){if(this instanceof s)return i.call(this,...a),this;let c=new s(...a);return function(l){return o&&o(l,...a),(l.hasOwnProperty(va)?l[va]:Object.defineProperty(l,va,{value:[]})[va]).push(c),l}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function OE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Ba(e,t,n){return Fr(()=>{let r=OE(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let f=c.hasOwnProperty(ba)?c[ba]:Object.defineProperty(c,ba,{value:[]})[ba];for(;f.length<=l;)f.push(null);return(f[l]=f[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function qr(e,t,n,r){return Fr(()=>{let o=OE(t);function i(...s){if(this instanceof i)return o.apply(this,s),this;let a=new i(...s);function c(u,l){if(u===void 0)throw new Error("Standard Angular field decorators are not supported in JIT mode.");let f=u.constructor,d=f.hasOwnProperty(_a)?f[_a]:Object.defineProperty(f,_a,{value:{}})[_a];d[l]=d.hasOwnProperty(l)&&d[l]||[],d[l].unshift(a)}return c}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var aC=aa(Ba("Inject",e=>({token:e})),-1),nee=aa(Ba("Optional"),8),ree=aa(Ba("Self"),2),oee=aa(Ba("SkipSelf"),4),iee=aa(Ba("Host"),1);function yn(e){let t=At.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;if(typeof ngDevMode>"u"||ngDevMode){console.error(`JIT compilation failed for ${e.kind}`,e.type);let n=`The ${e.kind} '${e.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.
20
+ Please check that 1) the type for the parameter at index ${e} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`)}function z(e,t){return Tt(e,hi(t))}function hi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function PQ(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function M_(e){let t=[];for(let n=0;n<e.length;n++){let r=se(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,ngDevMode&&"Arguments array must have arguments.");let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=CQ(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Tt(o,i))}else t.push(Tt(r))}return t}function aa(e,t){return e[A_]=t,e.prototype[A_]=t,e}function CQ(e){return e[A_]}function Io(e,t){let n=e.hasOwnProperty(rr);if(!n&&t===!0&&ngDevMode)throw new Error(`Type ${ke(e)} does not have '\u0275fac' property.`);return n?e[rr]:null}function JM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Wt(e){return e.flat(Number.POSITIVE_INFINITY)}function _i(e,t){e.forEach(n=>Array.isArray(n)?_i(n,t):t(n))}function V_(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function eu(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ca(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function G_(e,t,n){let r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop()}function z_(e,t,n,r){ngDevMode&&$M(t,e.length,"Can't insert past array end.");let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function tu(e,t,n){let r=ua(e,t);return r>=0?e[r|1]=n:(r=~r,z_(e,r,t,n)),r}function Th(e,t){let n=ua(e,t);if(n>=0)return e[n|1]}function ua(e,t){return DQ(e,t,1)}function DQ(e,t,n){ngDevMode&&re(Array.isArray(e),!0,"Expecting an array");let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var pn={},Ae=[];(typeof ngDevMode>"u"||ngDevMode)&&mh()&&(Object.freeze(pn),Object.freeze(Ae));var wi=new H(typeof ngDevMode<"u"&&ngDevMode?"ENVIRONMENT_INITIALIZER":""),Y_=new H(typeof ngDevMode<"u"&&ngDevMode?"INJECTOR":"",-1),Mh=new H(typeof ngDevMode<"u"&&ngDevMode?"INJECTOR_DEF_TYPES":""),gi=class{get(t,n=pi){if(n===pi){let r=ngDevMode?`No provider found for \`${ke(t)}\`.`:"",o=YM(r,-201);throw o.name="\u0275NotFound",o}return n}};function XM(...e){return{\u0275providers:Oh(!0,e),\u0275fromNgModule:!0}}function Oh(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return _i(t,s=>{if((typeof ngDevMode>"u"||ngDevMode)&&e&&_e(s)?.standalone)throw new D(800,`Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${ge(s)}"`);let a=s;Hc(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&eO(o,i),n}function eO(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Z_(o,i=>{ngDevMode&&tO(i,o||Ae,r),t(i,r)})}}function Hc(e,t,n,r){if(e=se(e),!e)return!1;let o=null,i=Fc(e),s=!i&&_e(e);if(!i&&!s){let c=e.ngModule;if(i=Fc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}if(ngDevMode&&n.indexOf(o)!==-1){let c=ke(o),u=n.map(ke).concat(c);throw K_(c,u)}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Hc(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){ngDevMode&&n.push(o),r.add(o);let u;try{_i(i.imports,l=>{Hc(l,t,n,r)&&(u||=[],u.push(l))})}finally{ngDevMode&&n.pop()}u!==void 0&&eO(u,t)}if(!a){let u=Io(o)||(()=>new o);t({provide:o,useFactory:u,deps:Ae},o),t({provide:Mh,useValue:o,multi:!0},o),t({provide:wi,useValue:()=>Tt(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Z_(c,l=>{ngDevMode&&tO(l,c,u),t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function tO(e,t,n){if(or(e)||Ph(e)||rO(e)||nO(e))return;se(e&&(e.useClass||e.provide))||I_(n,t,e)}function Z_(e,t){for(let n of e)Qc(n)&&(n=n.\u0275providers),Array.isArray(n)?Z_(n,t):t(n)}var kQ=De({provide:String,useValue:De});function Ph(e){return e!==null&&typeof e=="object"&&kQ in e}function nO(e){return!!(e&&e.useExisting)}function rO(e){return!!(e&&e.useFactory)}function or(e){return typeof e=="function"}function Q_(e){return!!e.useClass}var J_=new H(typeof ngDevMode<"u"&&ngDevMode?"Set Injector scope.":""),ah={},qM={},E_;function nu(){return E_===void 0&&(E_=new gi),E_}var Ft=class{},Nn=class extends Ft{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,P_(t,s=>this.processProvider(s)),this.records.set(Y_,ea(void 0,this)),o.has("environment")&&this.records.set(Ft,ea(void 0,this));let i=this.records.get(J_);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Mh,Ae,{self:!0}))}retrieve(t,n){let r=hi(n)||0;try{return this.get(t,pi,r)}catch(o){if(Xs(o))return o;throw o}}destroy(){Lc(this),this._destroyed=!0;let t=te(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),te(t)}}onDestroy(t){return Lc(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Lc(this);let n=nr(this),r=$t(void 0),o;ngDevMode&&(o=jt({injector:this,token:null}));try{return t()}finally{nr(n),$t(r),ngDevMode&&jt(o)}}get(t,n=pi,r){if(Lc(this),t.hasOwnProperty(jM))return t[jM](this);let o=hi(r),i;ngDevMode&&(i=jt({injector:this,token:t}));let s=nr(this),a=$t(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=FQ(t)&&bh(t);l&&this.injectableDefInScope(l)?(ngDevMode&&ta(this,t,()=>{lh(t)}),u=ea(O_(t),ah)):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?nu():this.parent;return n=o&8&&n===pi?null:n,c.get(t,n)}catch(c){let u=AQ(c);throw u===-200||u===-201?ngDevMode?(IQ(c,t),s?c:zM(c,this.source)):new D(u,null):c}finally{$t(a),nr(s),ngDevMode&&jt(i)}}resolveInjectorInitializers(){let t=te(null),n=nr(this),r=$t(void 0),o;ngDevMode&&(o=jt({injector:this,token:null}));try{let i=this.get(wi,Ae,{self:!0});if(ngDevMode&&!Array.isArray(i))throw new D(-209,`Unexpected type of the \`ENVIRONMENT_INITIALIZER\` token value (expected an array, but got ${typeof i}). Please check that the \`ENVIRONMENT_INITIALIZER\` token is configured as a \`multi: true\` provider.`);for(let s of i)s()}finally{nr(n),$t(r),ngDevMode&&jt(o),te(t)}}toString(){if(ngDevMode){let t=[],n=this.records;for(let r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}return"R3Injector[...]"}processProvider(t){t=se(t);let n=or(t)?t:se(t&&t.provide),r=NQ(t);if(ngDevMode&&ta(this,n,()=>{Ph(t)&&(Bc(n),Uc(t.useValue)),lh(t)}),!or(t)&&t.multi===!0){let o=this.records.get(n);o?ngDevMode&&o.multi===void 0&&FM():(o=ea(void 0,ah,!0),o.factory=()=>M_(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}else if(ngDevMode){let o=this.records.get(n);o&&o.multi!==void 0&&FM()}this.records.set(n,r)}hydrate(t,n,r){let o=te(null);try{if(n.value===qM)throw xh(ngDevMode?ke(t):"");return n.value===ah&&(n.value=qM,ngDevMode?ta(this,t,()=>{Bc(t),n.value=n.factory(void 0,r),Uc(n.value)}):n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&jQ(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{te(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=se(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function O_(e){let t=bh(e),n=t!==null?t.factory:Io(e);if(n!==null)return n;if(e instanceof H)throw new D(-204,ngDevMode&&`Token ${ke(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return RQ(e);throw new D(-204,ngDevMode&&"unreachable")}function RQ(e){let t=e.length;if(t>0)throw new D(-204,ngDevMode&&`Can't resolve all parameters for ${ke(e)}: (${ca(t,"?").join(", ")}).`);let n=wQ(e);return n!==null?()=>n.factory(e):()=>new e}function NQ(e){if(Ph(e))return ea(void 0,e.useValue);{let t=X_(e);return ea(t,ah)}}function X_(e,t,n){let r;if(ngDevMode&&Qc(e)&&I_(void 0,n,e),or(e)){let o=se(e);return Io(o)||O_(o)}else if(Ph(e))r=()=>se(e.useValue);else if(rO(e))r=()=>e.useFactory(...M_(e.deps||[]));else if(nO(e))r=(o,i)=>Tt(se(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=se(e&&(e.useClass||e.provide));if(ngDevMode&&!o&&I_(t,n,e),LQ(e))r=()=>new o(...M_(e.deps));else return Io(o)||O_(o)}return r}function Lc(e){if(e.destroyed)throw new D(-205,ngDevMode&&"Injector has already been destroyed.")}function ea(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function LQ(e){return!!e.deps}function jQ(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function FQ(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function P_(e,t){for(let n of e)Array.isArray(n)?P_(n,t):n&&Qc(n)?P_(n.\u0275providers,t):t(n)}function Ch(e,t){let n;e instanceof Nn?(Lc(e),n=e):n=new T_(e);let r;ngDevMode&&(r=jt({injector:e,token:null}));let o=nr(n),i=$t(void 0);try{return t()}finally{nr(o),ngDevMode&&jt(r),$t(i)}}function Dh(){return ZM()!==void 0||sh()!=null}function hn(e){if(!Dh())throw new D(-203,ngDevMode&&e.name+"() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`")}var Xe=0,x=1,ae=2,tt=3,Mt=4,_t=5,Po=6,Ei=7,Te=8,Se=9,Vt=10,pe=11,Co=12,ru=13,Mr=14,at=15,Do=16,Si=17,In=18,nn=19,e0=20,Tr=21,kh=22,ou=23,rn=24,xi=25,ur=26,Z=27,t0=1,kr=6,Rr=7,iu=8,ko=9,qe=10;function nt(e){return Array.isArray(e)&&typeof e[t0]=="object"}function Ot(e){return Array.isArray(e)&&e[t0]===!0}function n0(e){return(e.flags&4)!==0}function qn(e){return e.componentOffset>-1}function Ii(e){return(e.flags&1)===1}function on(e){return!!e.template}function lr(e){return(e[ae]&512)!==0}function fr(e){return(e[ae]&256)===256}function sn(e,t){Ai(e,t[x])}function la(e,t){let n=t+Z;ct(e,n),ar(n,e[x].bindingStartIndex,"TNodes should be created before any bindings")}function Ai(e,t){dr(e);let n=t.data;for(let r=Z;r<n.length;r++)if(n[r]===e)return;X("This TNode does not belong to this TView.")}function dr(e){F(e,"TNode must be defined"),e&&typeof e=="object"&&e.hasOwnProperty("directiveStylingLast")||X("Not of type TNode, got: "+e)}function Rh(e){F(e,"Expected TIcu to be defined"),typeof e.currentCaseLViewIndex!="number"&&X("Object is not of TIcu type.")}function oO(e,t="Type passed in is not ComponentType, it does not have '\u0275cmp' property."){_e(e)||X(t)}function iO(e,t="Type passed in is not NgModuleType, it does not have '\u0275mod' property."){Fn(e)||X(t)}function sO(e){F(e,"currentTNode should exist!"),F(e.parent,"currentTNode should have a parent")}function gn(e){F(e,"LContainer must be defined"),re(Ot(e),!0,"Expecting LContainer")}function aO(e){e&&re(nt(e),!0,"Expecting LView or undefined or null")}function an(e){F(e,"LView must be defined"),re(nt(e),!0,"Expecting LView")}function Pt(e,t){re(e.firstCreatePass,!0,t||"Should only be called in first create pass.")}function Nh(e,t){re(e.firstUpdatePass,!0,"Should only be called in first update pass.")}function cO(e){(e.type===void 0||e.selectors==null||e.inputs===void 0)&&X("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")}function fa(e,t){uO(Z,e.bindingStartIndex,t)}function $c(e,t){let n=e[1];uO(n.expandoStartIndex,e.length,t)}function uO(e,t,n){e<=n&&n<t||X(`Index out of range (expecting ${e} <= ${n} < ${t})`)}function lO(e,t){F(e[at],"Component views should exist."),F(e[at][_t].projection,"Components with projection nodes (<ng-content>) must have projection slots defined.")}function r0(e,t){F(e,"Component views should always have a parent view (component's host view)")}function o0(e,t){$c(e,t),$c(e,t+8),je(e[t+0],"injectorIndex should point to a bloom filter"),je(e[t+1],"injectorIndex should point to a bloom filter"),je(e[t+2],"injectorIndex should point to a bloom filter"),je(e[t+3],"injectorIndex should point to a bloom filter"),je(e[t+4],"injectorIndex should point to a bloom filter"),je(e[t+5],"injectorIndex should point to a bloom filter"),je(e[t+6],"injectorIndex should point to a bloom filter"),je(e[t+7],"injectorIndex should point to a bloom filter"),je(e[t+8],"injectorIndex should point to parent injector")}var $e;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING"})($e||($e={}));var ch,na="svg",Lh="math";function i0(){return ch||(ch={},xo($e.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),xo($e.STYLE,void 0,[["*",["style"]]]),xo($e.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),xo($e.URL,Lh,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),xo($e.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),xo($e.URL,na,[["a",["href","xlink:href"]]]),xo($e.ATTRIBUTE_NO_BINDING,na,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),xo($e.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),ch}function xo(e,t,n){for(let[r,o]of n){let i=t&&r!=="unknown"?`:${t}:${r}`:r;i=i.toLowerCase();for(let s of o)ch[`${i}|${s.toLowerCase()}`]=e}}function s0(e,t,n){let r=i0(),o=e.toLowerCase(),i=t.toLowerCase(),s=n&&o!=="*"&&o!=="unknown"?r[`:${n}:${o}|${i}`]:void 0,a=n?r[`:${n}:*|${i}`]:void 0;return s??a??r[`${o}|${i}`]??r[`*|${i}`]??$e.NONE}function gt(e){for(;Array.isArray(e);)e=e[Xe];return e}function a0(e){for(;Array.isArray(e);){if(typeof e[t0]=="object")return e;e=e[Xe]}return null}function Ti(e,t){return ngDevMode&&ct(t,e),ngDevMode&&cr(e,Z,"Expected to be past HEADER_OFFSET"),gt(t[e])}function rt(e,t){return ngDevMode&&sn(e,t),ngDevMode&&ct(t,e.index),gt(t[e.index])}function Mi(e,t){ngDevMode&&Mo(t,-1,"wrong index for TNode"),ngDevMode&&ar(t,e.data.length,"wrong index for TNode");let n=e.data[t];return ngDevMode&&n!==null&&dr(n),n}function Ro(e,t){return ngDevMode&&ct(e,t),e[t]}function su(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function cn(e,t){ngDevMode&&ct(t,e);let n=t[e];return nt(n)?n:n[Xe]}function da(e){return(e[ae]&4)===4}function jh(e){return(e[ae]&128)===128}function fO(e){return Ot(e[tt])}function Ct(e,t){return t==null?null:(ngDevMode&&ct(e,t),e[t])}function c0(e){e[Si]=0}function u0(e){e[ae]&1024||(e[ae]|=1024,jh(e)&&pa(e))}function l0(e,t){for(;e>0;)ngDevMode&&F(t[Mr],"Declaration view should be defined if nesting level is greater than 0."),t=t[Mr],e--;return t}function au(e){return!!(e[ae]&9216||e[rn]?.dirty)}function Fh(e){e[Vt].changeDetectionScheduler?.notify(8),e[ae]&64&&(e[ae]|=1024),au(e)&&pa(e)}function pa(e){e[Vt].changeDetectionScheduler?.notify(0);let t=ir(e);for(;t!==null&&!(t[ae]&8192||(t[ae]|=8192,!jh(t)));)t=ir(t)}function cu(e,t){if(fr(e))throw new D(911,ngDevMode&&"View has already been destroyed.");e[Tr]===null&&(e[Tr]=[]),e[Tr].push(t)}function qh(e,t){if(e[Tr]===null)return;let n=e[Tr].indexOf(t);n!==-1&&e[Tr].splice(n,1)}function ir(e){ngDevMode&&an(e);let t=e[tt];return Ot(t)?t[tt]:t}function f0(e){return e[Ei]??=[]}function dh(e){return e.cleanup??=[]}function dO(e,t,n,r){let o=f0(t);ngDevMode&&F(n,"Cleanup context is mandatory when registering framework-level destroy hooks"),o.push(n),e.firstCreatePass?dh(e).push(r,o.length-1):ngDevMode&&Object.freeze(dh(e))}var le={lFrame:bO(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ao;(function(e){e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews"})(Ao||(Ao={}));var d0=0,C_=!1;function pO(){return le.lFrame.elementDepthCount}function hO(){le.lFrame.elementDepthCount++}function p0(){le.lFrame.elementDepthCount--}function Bh(){return le.bindingsEnabled}function h0(){return le.skipHydrationRootTNode!==null}function g0(e){return le.skipHydrationRootTNode===e}function m0(){le.bindingsEnabled=!0}function y0(){le.bindingsEnabled=!1}function v0(){le.skipHydrationRootTNode=null}function S(){return le.lFrame.lView}function fe(){return le.lFrame.tView}function b0(e){return le.lFrame.contextLView=e,e[Te]}function _0(e){return le.lFrame.contextLView=null,e}function ce(){let e=w0();for(;e!==null&&e.type===64;)e=e.parent;return e}function w0(){return le.lFrame.currentTNode}function ha(){let e=le.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function pr(e,t){ngDevMode&&e&&Ai(e,le.lFrame.tView);let n=le.lFrame;n.currentTNode=e,n.isParent=t}function E0(){return le.lFrame.isParent}function S0(){le.lFrame.isParent=!1}function x0(){let e=le.lFrame.contextLView;return ngDevMode&&F(e,"contextLView must be defined."),e}function Nr(){return!ngDevMode&&X("Must never be called in production mode"),d0!==Ao.Off}function Uh(){return!ngDevMode&&X("Must never be called in production mode"),d0===Ao.Exhaustive}function I0(e){!ngDevMode&&X("Must never be called in production mode"),d0=e}function A0(){return C_}function T0(e){let t=C_;return C_=e,t}function Dt(){let e=le.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function hr(){return le.lFrame.bindingIndex}function M0(e){return le.lFrame.bindingIndex=e}function Gt(){return le.lFrame.bindingIndex++}function gr(e){let t=le.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function gO(){return le.lFrame.inI18n}function O0(e){le.lFrame.inI18n=e}function mO(e,t){let n=le.lFrame;n.bindingIndex=n.bindingRootIndex=e,Hh(t)}function yO(){return le.lFrame.currentDirectiveIndex}function Hh(e){le.lFrame.currentDirectiveIndex=e}function $h(e){let t=le.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Kh(){return le.lFrame.currentQueryIndex}function uu(e){le.lFrame.currentQueryIndex=e}function qQ(e){let t=e[x];return t.type===2?(ngDevMode&&F(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):t.type===1?e[_t]:null}function P0(e,t,n){if(ngDevMode&&aO(e),n&4){ngDevMode&&Ai(t,e[x]);let o=t,i=e;for(;ngDevMode&&F(o,"Parent TNode should be defined"),o=o.parent,o===null&&!(n&1);)if(o=qQ(i),o===null||(ngDevMode&&F(i,"Parent LView should be defined"),i=i[Mr],o.type&10))break;if(o===null)return!1;t=o,e=i}ngDevMode&&sn(t,e);let r=le.lFrame=vO();return r.currentTNode=t,r.lView=e,!0}function Wh(e){ngDevMode&&tn(e[0],e[1],"????"),ngDevMode&&aO(e);let t=vO();ngDevMode&&(re(t.isParent,!0,"Expected clean LFrame"),re(t.lView,null,"Expected clean LFrame"),re(t.tView,null,"Expected clean LFrame"),re(t.selectedIndex,-1,"Expected clean LFrame"),re(t.elementDepthCount,0,"Expected clean LFrame"),re(t.currentDirectiveIndex,-1,"Expected clean LFrame"),re(t.currentNamespace,null,"Expected clean LFrame"),re(t.bindingRootIndex,-1,"Expected clean LFrame"),re(t.currentQueryIndex,0,"Expected clean LFrame"));let n=e[x];le.lFrame=t,ngDevMode&&n.firstChild&&Ai(n.firstChild,n),t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function vO(){let e=le.lFrame,t=e===null?null:e.child;return t===null?bO(e):t}function bO(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function _O(){let e=le.lFrame;return le.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var C0=_O;function Vh(){let e=_O();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function wO(e){return(le.lFrame.contextLView=l0(e,le.lFrame.contextLView))[Te]}function ut(){return le.lFrame.selectedIndex}function mr(e){ngDevMode&&e!==-1&&cr(e,Z,"Index must be past HEADER_OFFSET (or -1)."),ngDevMode&&ar(e,le.lFrame.lView.length,"Can't set index passed end of LView"),le.lFrame.selectedIndex=e}function mn(){let e=le.lFrame;return Mi(e.tView,e.selectedIndex)}function D0(){le.lFrame.currentNamespace=na}function k0(){le.lFrame.currentNamespace=Lh}function R0(){BQ()}function BQ(){le.lFrame.currentNamespace=null}function N0(){return le.lFrame.currentNamespace}var EO=!0;function lu(){return EO}function ga(e){EO=e}function D_(e,t=null,n=null,r){let o=L0(e,t,n,r);return o.resolveInjectorInitializers(),o}function L0(e,t=null,n=null,r,o=new Set){let i=[n||Ae,XM(e)],s;return ngDevMode&&(s=r||(typeof e=="object"?void 0:ke(e))),new Nn(i,t||nu(),s||null,o)}var en=class e{static THROW_IF_NOT_FOUND=pi;static NULL=new gi;static create(t,n){if(Array.isArray(t))return D_({name:""},n,t,"");{let r=t.name??"";return D_({name:r},t.parent,t.providers,r)}}static \u0275prov=Fe({token:e,providedIn:"any",factory:()=>Tt(Y_)});static __NG_ELEMENT_ID__=-1},ma=new H(typeof ngDevMode<"u"&&ngDevMode?"DocumentToken":""),Ln=class{static __NG_ELEMENT_ID__=UQ;static __NG_ENV_ID__=t=>t},k_=class extends Ln{_lView;constructor(t){super(),this._lView=t}get destroyed(){return fr(this._lView)}onDestroy(t){let n=this._lView;return cu(n,t),()=>qh(n,t)}};function UQ(){return new k_(S())}var SO=!1,xO=new H(typeof ngDevMode<"u"&&ngDevMode?"DEBUG_TASK_TRACKER":""),jn=class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new To.BehaviorSubject(!1);debugTaskTracker=z(xO,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new To.Observable(t=>{t.next(!1),t.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),this.debugTaskTracker?.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.debugTaskTracker?.remove(t),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},R_=class extends To.Subject{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Dh()&&(this.destroyRef=z(Ln,{optional:!0})??void 0,this.pendingTasks=z(jn,{optional:!0})??void 0)}emit(t){let n=te(null);try{super.next(t)}finally{te(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof To.Subscription&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ar=R_;function ph(...e){}function j0(e){let t,n;function r(){e=ph;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function IO(e){return queueMicrotask(()=>e()),()=>{e=ph}}var N_=class{createTask;constructor(t,n=console){this.name="asyncStackTagging for "+t,this.createTask=n?.createTask??(()=>null)}name;onScheduleTask(t,n,r,o){return o.consoleTask=this.createTask(`Zone - ${o.source||o.type}`),t.scheduleTask(r,o)}onInvokeTask(t,n,r,o,i,s){let a;return o.consoleTask?a=o.consoleTask.run(()=>t.invokeTask(r,o,i,s)):a=t.invokeTask(r,o,i,s),a}},F0="isAngularZone",Kc=F0+"_ID",HQ=0,Ye=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ar(!1);onMicrotaskEmpty=new Ar(!1);onStable=new Ar(!1);onError=new Ar(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=SO}=t;if(typeof Zone>"u")throw new D(908,ngDevMode&&"In this configuration Angular requires Zone.js");Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,ngDevMode&&(s._inner=s._inner.fork(new N_("Angular"))),Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,WQ(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(F0)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,ngDevMode&&"Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,ngDevMode&&"Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,$Q,ph,ph);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},$Q={};function q0(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function KQ(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){j0(()=>{e.callbackScheduled=!1,L_(e),e.isCheckStableRunning=!0,q0(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),L_(e)}function WQ(e){let t=()=>{KQ(e)},n=HQ++;e._inner=e._inner.fork({name:"angular",properties:{[F0]:!0,[Kc]:n,[Kc+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(VQ(c))return r.invokeTask(i,s,a,c);try{return BM(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),UM(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return BM(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!GQ(c)&&t(),UM(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,L_(e),q0(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function L_(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function BM(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function UM(e){e._nesting--,q0(e)}var Wc=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ar;onMicrotaskEmpty=new Ar;onStable=new Ar;onError=new Ar;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function VQ(e){return AO(e,"__ignore_ng_zone__")}function GQ(e){return AO(e,"__scheduler_tick__")}function AO(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Or=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Lr=new H(typeof ngDevMode>"u"||ngDevMode?"internal error handler":"",{factory:()=>{let e=z(Ye),t=z(Ft),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Or),n.handleError(r))})}}}),TO={provide:wi,useValue:()=>{let e=z(Or,{optional:!0});if((typeof ngDevMode>"u"||ngDevMode)&&e===null)throw new D(402,"A required Injectable was not found in the dependency injection tree. If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.")},multi:!0},hIe=new H(typeof ngDevMode<"u"&&ngDevMode?"GlobalErrorListeners":"",{factory:()=>{if(typeof ngServerMode<"u"&&ngServerMode)return;let e=z(ma).defaultView;if(!e)return;let t=z(Lr),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(ngDevMode?`An ErrorEvent with no error occurred. See Error.cause for details: ${i.message}`:i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),z(Ln).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function No(e,t){let[n,r,o]=zy(e,t?.equal),i=n,s=i[ze];if(i.set=r,i.update=o,i.asReadonly=Gh.bind(i),typeof ngDevMode<"u"&&ngDevMode){let a=t?.debugName;s.debugName=a,i.toString=()=>`[Signal${a?" ("+a+")":""}: ${i()}]`}return i}function Gh(){let e=this[ze];if(e.readonlyFn===void 0){let t=()=>this();t[ze]=e,e.readonlyFn=t}return e.readonlyFn}function B0(e,t){if(ei()!==null)throw new D(-602,ngDevMode&&`${e.name}() cannot be called from within a reactive context.${t?` ${t}`:""}`)}var ra=class{view;node;constructor(t,n){this.view=t,this.node=n}static __NG_ELEMENT_ID__=zQ};function zQ(){return new ra(S(),ce())}var Pr=class{},fu=new H(typeof ngDevMode>"u"||ngDevMode?"Zoneless enabled":"",{factory:()=>!0}),U0=new H(typeof ngDevMode>"u"||ngDevMode?"Zoneless provided":"",{factory:()=>!1}),H0=new H(typeof ngDevMode>"u"||ngDevMode?"run changes outside zone in root":""),oa=class e{internalPendingTasks=z(jn);scheduler=z(Pr);errorHandler=z(Lr);add(){let t=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(t)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(t))}}run(t){let n=this.add();t().catch(this.errorHandler).finally(n)}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},Vc=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new j_})},j_=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Gc=class{[ze];constructor(t){this[ze]=t}destroy(){this[ze].destroy()}};var Wu=gc(Nc(),1),lC=gc(CO(),1);function Fr(e){return{toString:e}.toString()}var va="__annotations__",ba="__parameters__",_a="__prop__metadata__";function Vu(e,t,n,r,o){return Fr(()=>{let i=OE(t);function s(...a){if(this instanceof s)return i.call(this,...a),this;let c=new s(...a);return function(l){return o&&o(l,...a),(l.hasOwnProperty(va)?l[va]:Object.defineProperty(l,va,{value:[]})[va]).push(c),l}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function OE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Ba(e,t,n){return Fr(()=>{let r=OE(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,u,l){let f=c.hasOwnProperty(ba)?c[ba]:Object.defineProperty(c,ba,{value:[]})[ba];for(;f.length<=l;)f.push(null);return(f[l]=f[l]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function qr(e,t,n,r){return Fr(()=>{let o=OE(t);function i(...s){if(this instanceof i)return o.apply(this,s),this;let a=new i(...s);function c(u,l){if(u===void 0)throw new Error("Standard Angular field decorators are not supported in JIT mode.");let f=u.constructor,d=f.hasOwnProperty(_a)?f[_a]:Object.defineProperty(f,_a,{value:{}})[_a];d[l]=d.hasOwnProperty(l)&&d[l]||[],d[l].unshift(a)}return c}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var fC=aa(Ba("Inject",e=>({token:e})),-1),cee=aa(Ba("Optional"),8),uee=aa(Ba("Self"),2),lee=aa(Ba("SkipSelf"),4),fee=aa(Ba("Host"),1);function yn(e){let t=At.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;if(typeof ngDevMode>"u"||ngDevMode){console.error(`JIT compilation failed for ${e.kind}`,e.type);let n=`The ${e.kind} '${e.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.
17
21
 
18
22
  `;throw e.usage===1?(n+=`The ${e.kind} is part of a library that has been partially compiled.
19
23
  `,n+=`However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.
@@ -21,47 +25,47 @@ Please check that 1) the type for the parameter at index ${e} is correct and 2)
21
25
  `,n+=`Ideally, the library is processed using the Angular Linker to become fully AOT compiled.
22
26
  `):n+=`JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.
23
27
  `,n+=`Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',
24
- `,n+=`or manually provide the compiler with 'import "@angular/compiler";' before bootstrapping.`,new Error(n)}else throw new Error("JIT compiler unavailable")}var MO={\u0275\u0275defineInjectable:Fe,\u0275\u0275defineInjector:Yc,\u0275\u0275inject:Tt,\u0275\u0275invalidFactoryDep:Ih,resolveForwardRef:se},see=Function;function pu(e){return typeof e=="function"}var aee=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,cee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,uee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,lee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function fee(e){return aee.test(e)||lee.test(e)||cee.test(e)&&!uee.test(e)}var pw=class{_reflect;constructor(t){this._reflect=t||At.Reflect}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;typeof t>"u"?r=ca(n.length):r=ca(t.length);for(let o=0;o<r.length;o++)typeof t>"u"?r[o]=[]:t[o]&&t[o]!=Object?r[o]=[t[o]]:r[o]=[],n&&n[o]!=null&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){let r=t.toString();if(fee(r))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;let o=t.ctorParameters;if(o&&o!==n.ctorParameters){let a=typeof o=="function"?o():o,c=a.map(l=>l&&l.type),u=a.map(l=>l&&$0(l.decorators));return this._zipTypesAndAnnotations(c,u)}let i=t.hasOwnProperty(ba)&&t[ba],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||i?this._zipTypesAndAnnotations(s,i):ca(t.length)}parameters(t){if(!pu(t))return[];let n=zh(t),r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return typeof r=="function"&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?$0(t.decorators):t.hasOwnProperty(va)?t[va]:null}annotations(t){if(!pu(t))return[];let n=zh(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return typeof r=="function"&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){let r=t.propDecorators,o={};return Object.keys(r).forEach(i=>{o[i]=$0(r[i])}),o}return t.hasOwnProperty(_a)?t[_a]:null}propMetadata(t){if(!pu(t))return{};let n=zh(t),r={};if(n!==Object){let i=this.propMetadata(n);Object.keys(i).forEach(s=>{r[s]=i[s]})}let o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(i=>{let s=[];r.hasOwnProperty(i)&&s.push(...r[i]),s.push(...o[i]),r[i]=s}),r}ownPropMetadata(t){return pu(t)?this._ownPropMetadata(t,zh(t))||{}:{}}hasLifecycleHook(t,n){return t instanceof see&&n in t.prototype}};function $0(e){return e?e.map(t=>{let r=t.type.annotationCls,o=t.args?t.args:[];return new r(...o)}):[]}function zh(e){let t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}function cC(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var hw=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},dee=(()=>{let e=()=>uC;return e.ngInherit=!0,e})();function uC(e){return e.type.prototype.ngOnChanges&&(e.setInput=hee),pee}function pee(){let e=fC(this),t=e?.current;if(t){let n=e.previous;if(n===pn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function hee(e,t,n,r,o){let i=this.declaredInputs[r];ngDevMode&&mi(i,"Name of input in ngOnChanges has to be a string");let s=fC(e)||gee(e,{previous:pn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new hw(u&&u.currentValue,n,c===pn),cC(e,t,o,n)}var lC="__ngSimpleChanges__";function fC(e){return e[lC]||null}function gee(e,t){return e[lC]=t}var Pi=[],mee=()=>{};function yee(e){let t=Pi.indexOf(e);t!==-1&&Pi.splice(t,1)}function dC(e){return e!==null?(Pi.includes(e)||Pi.push(e),()=>yee(e)):(Pi.length=0,mee)}var Be=function(e,t=null,n){for(let r=0;r<Pi.length;r++){let o=Pi[r];o(e,t,n)}},K;(function(e){e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd"})(K||(K={}));function vee(e,t,n){ngDevMode&&Pt(n);let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=uC(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function pC(e,t){ngDevMode&&Pt(e);for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n];ngDevMode&&F(o,"Expecting DirectiveDef");let i=o.type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ig(e,t,n){hC(e,t,3,n)}function sg(e,t,n,r){ngDevMode&&tn(n,3,"Init pre-order hooks should not be called more than once"),(e[ae]&3)===n&&hC(e,t,n,r)}function K0(e,t){ngDevMode&&tn(t,3,"Init hooks phase should not be incremented after all init hooks have been run.");let n=e[ae];(n&3)===t&&(n&=16383,n+=1,e[ae]=n)}function hC(e,t,n,r){ngDevMode&&re(Nr(),!1,"Hooks should never be run when in check no changes mode.");let o=r!==void 0?e[Si]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Si]+=65536),(a<i||i==-1)&&(bee(e,n,t,c),e[Si]=(e[Si]&4294901760)+c+2),c++}function OO(e,t){Be(K.LifecycleHookStart,e,t);let n=te(null);try{t.call(e)}finally{te(n),Be(K.LifecycleHookEnd,e,t)}}function bee(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[ae]>>14<e[Si]>>16&&(e[ae]&3)===t&&(e[ae]+=16384,OO(a,i)):OO(a,i)}var Ea=-1,Uo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,ngDevMode&&F(t,"Factory not specified"),ngDevMode&&re(typeof t,"function","Expected factory function."),this.canSeeViewProviders=n,this.injectImpl=r}};function gw(e){let t="";return e&1&&(t+="|Text"),e&2&&(t+="|Element"),e&4&&(t+="|Container"),e&8&&(t+="|ElementContainer"),e&16&&(t+="|Projection"),e&32&&(t+="|IcuContainer"),e&64&&(t+="|Placeholder"),e&128&&(t+="|LetDeclaration"),t.length>0?t.substring(1):t}function gC(e){return e!=null&&typeof e=="object"&&(e.insertBeforeIndex===null||typeof e.insertBeforeIndex=="number"||Array.isArray(e.insertBeforeIndex))}function _ee(e){return(e.flags&8)!==0}function wee(e){return(e.flags&16)!==0}function lt(e,t,n){F(e,"should be called with a TNode"),(e.type&t)===0&&X(n||`Expected [${gw(t)}] but got ${gw(e.type)}.`)}function Eee(e){e===2||e===1||e===4||e===8||e===32||e===16||e===64||e===128||X(`Expected TNodeType to have only a single type selected, but got ${gw(e)}.`)}function See(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];yC(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function mC(e){return e===3||e===4||e===6}function yC(e){return e.charCodeAt(0)===64}function Aa(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?PO(e,n,o,null,t[++r]):PO(e,n,o,null,null))}}return e}function PO(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function PE(e){return e!==Ea}function xu(e){if(ngDevMode){je(e,"Number expected"),tn(e,-1,"Not a valid state.");let t=e&32767;Mo(t,Z,"Parent injector must be pointing past HEADER_OFFSET.")}return e&32767}function xee(e){return e>>16}function Iu(e,t){let n=xee(e),r=t;for(;n>0;)r=r[Mr],n--;return r}var mw=!0;function vg(e){let t=mw;return mw=e,t}var Iee=256,vC=Iee-1,bC=5,Aee=0,yr={};function Tee(e,t,n){ngDevMode&&re(t.firstCreatePass,!0,"expected firstCreatePass to be true");let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(r=n[bi]),r==null&&(r=n[bi]=Aee++);let o=r&vC,i=1<<o;t.data[e+(o>>bC)]|=i}function bg(e,t){let n=_C(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,W0(r.data,e),W0(t,null),W0(r.blueprint,null));let o=Zg(e,t),i=e.injectorIndex;if(PE(o)){let s=xu(o),a=Iu(o,t),c=a[x].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function W0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function _C(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:(ngDevMode&&ct(t,e.injectorIndex),e.injectorIndex)}function Zg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=IC(o),r===null)return Ea;if(ngDevMode&&r&&sn(r,o[Mr]),n++,o=o[Mr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ea}function yw(e,t,n){Tee(e,t,n)}function Mee(e,t){if(ngDevMode&&lt(e,15),ngDevMode&&F(e,"expecting tNode"),t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(mC(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function wC(e,t,n){if(n&8||e!==void 0)return e;xh(t,"NodeInjector")}function EC(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Se],i=$t(void 0);try{return o?o.get(t,r,n&8):W_(t,r,n&8)}finally{$t(i)}}return wC(r,t,n)}function SC(e,t,n,r=0,o){if(e!==null){if(t[ae]&2048&&!(r&2)){let s=kee(e,t,n,r,yr);if(s!==yr)return s}let i=xC(e,t,n,r,yr);if(i!==yr)return i}return EC(t,n,r,o)}function xC(e,t,n,r,o){let i=Pee(n);if(typeof i=="function"){if(!P0(t,e,r))return r&1?wC(o,n,r):EC(t,n,r,o);try{let s;if(ngDevMode?ta(new We(ce(),S()),n,()=>{qc(n),s=i(r),Bc(s)}):s=i(r),s==null&&!(r&8))xh(n);else return s}finally{C0()}}else if(typeof i=="number"){let s=null,a=_C(e,t),c=Ea,u=r&1?t[at][_t]:null;for((a===-1||r&4)&&(c=a===-1?Zg(e,t):t[a+8],c===Ea||!DO(r,!1)?a=-1:(s=t[x],a=xu(c),t=Iu(c,t)));a!==-1;){ngDevMode&&o0(t,a);let l=t[x];if(ngDevMode&&sn(l.data[a+8],t),CO(i,a,l.data)){let f=Oee(a,t,n,s,r,u);if(f!==yr)return f}c=t[a+8],c!==Ea&&DO(r,t[x].data[a+8]===u)&&CO(i,a,t)?(s=l,a=xu(c),t=Iu(c,t)):a=-1}}return o}function Oee(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?qn(a)&&mw:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ag(a,s,n,c,u);return l!==null?Au(t,s,l,a,o):yr}function ag(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,d=o?a+l:u;for(let p=f;p<d;p++){let h=s[p];if(p<c&&n===h||p>=c&&h.type===n)return p}if(o){let p=s[c];if(p&&on(p)&&p.type===n)return c}return null}var V0=[];function Au(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Uo){let a=i;if(ngDevMode&&V0.push(a.name??"unknown"),a.resolving){let p="";throw ngDevMode?(p=ge(s[n]),K_(p,V0)):Sh(p)}let c=vg(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l;if(ngDevMode){let p=new We(r,e);l=jt({injector:p,token:u})}let f=a.injectImpl?$t(a.injectImpl):null,d=P0(e,r,0);ngDevMode&&re(d,!0,"Because flags do not contain `SkipSelf' we expect this to always succeed.");try{ngDevMode&&qc(u),i=e[n]=a.factory(void 0,o,s,e,r),ngDevMode&&Bc(i),t.firstCreatePass&&n>=r.directiveStart&&(ngDevMode&&oO(s[n]),vee(n,s[n],t))}finally{ngDevMode&&jt(l),f!==null&&$t(f),vg(c),a.resolving=!1,C0(),ngDevMode&&(V0=[])}}return i}function Pee(e){if(ngDevMode&&F(e,"token must be defined"),typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bi)?e[bi]:void 0;return typeof t=="number"?t>=0?t&vC:(ngDevMode&&re(t,-1,"Expecting to get Special Injector Id"),Cee):t}function CO(e,t,n){let r=1<<e;return!!(n[t+(e>>bC)]&r)}function DO(e,t){return!(e&2)&&!(e&1&&t)}function Ho(e){return e._lView}function $i(e){return e._tNode}var We=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return SC(this._tNode,this._lView,t,hi(r),n)}};function Cee(){return new We(ce(),S())}function Dee(e){return Fr(()=>{let t=e.prototype.constructor,n=t[rr]||vw(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[rr]||vw(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vw(e){return zc(e)?()=>{let t=vw(se(e));return t&&t()}:Io(e)}function kee(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[ae]&2048&&!lr(s);){ngDevMode&&sn(i,s);let a=xC(i,s,n,r|2,yr);if(a!==yr)return a;let c=i.parent;if(!c){let u=s[e0];if(u){let l=u.get(n,yr,r&-5);if(l!==yr)return l}c=IC(s),s=s[Mr]}i=c}return o}function IC(e){let t=e[x],n=t.type;return n===2?(ngDevMode&&F(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):n===1?e[_t]:null}function CE(e){return Mee(ce(),e)}var Ree=Ba("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>CE(e)})),kO=null;function DE(){return kO=kO||new pw}function Qg(e){return AC(DE().parameters(e))}function AC(e){return e.map(t=>Nee(t))}function Nee(e){let t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){let r=e[n];if(r===void 0)continue;let o=Object.getPrototypeOf(r);if(r instanceof nee||o.ngMetadataName==="Optional")t.optional=!0;else if(r instanceof oee||o.ngMetadataName==="SkipSelf")t.skipSelf=!0;else if(r instanceof ree||o.ngMetadataName==="Self")t.self=!0;else if(r instanceof iee||o.ngMetadataName==="Host")t.host=!0;else if(r instanceof aC)t.token=r.token;else if(r instanceof Ree){if(r.attributeName===void 0)throw new D(-204,ngDevMode&&"Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else e===void 0||Array.isArray(e)&&e.length===0?t.token=null:t.token=e;return t}function Lee(e,t){let n=null,r=null;e.hasOwnProperty(sa)||Object.defineProperty(e,sa,{get:()=>(n===null&&(n=yn({usage:0,kind:"injectable",type:e}).compileInjectable(MO,`ng:///${e.name}/\u0275prov.js`,Bee(e,t))),n)}),e.hasOwnProperty(rr)||Object.defineProperty(e,rr,{get:()=>{if(r===null){let o=yn({usage:0,kind:"injectable",type:e});r=o.compileFactory(MO,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Qg(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}var jee=De({provide:String,useValue:De});function RO(e){return e.useClass!==void 0}function Fee(e){return jee in e}function NO(e){return e.useFactory!==void 0}function qee(e){return e.useExisting!==void 0}function Bee(e,t){let n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(RO(n)||NO(n))&&n.deps!==void 0&&(r.deps=AC(n.deps)),RO(n)?r.useClass=n.useClass:Fee(n)?r.useValue=n.useValue:NO(n)?r.useFactory=n.useFactory:qee(n)&&(r.useExisting=n.useExisting),r}var Ie=Wu("Injectable",void 0,void 0,void 0,(e,t)=>Lee(e,t));function Uee(){return Ua(ce(),S())}function Ua(e,t){return new Ta(rt(e,t))}var Ta=class{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=Uee};function TC(e){return e instanceof Ta?e.nativeElement:e}function Hee(){return this._results[Symbol.iterator]()}var bw=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Ku.Subject}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Wt(t);(this._changesDetected=!zM(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Hee};function MC(e){return(e.flags&128)===128}var Ma;(function(e){e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default"})(Ma||(Ma={}));var Jg=new Map,$ee=0;function Kee(){return $ee++}function Wee(e){ngDevMode&&je(e[nn],"LView must have an ID in order to be registered"),Jg.set(e[nn],e)}function OC(e){return ngDevMode&&je(e,"ID used for LView lookup must be a number"),Jg.get(e)||null}function _w(e){ngDevMode&&je(e[nn],"Cannot stop tracking an LView that does not have an ID"),Jg.delete(e[nn])}function Vee(){return Jg}var ww=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return OC(this.lViewId)}constructor(t,n,r){this.lViewId=t,this.nodeIndex=n,this.native=r}};function $o(e){let t=vu(e);if(t){if(nt(t)){let n=t,r,o,i;if(DC(e)){if(r=kC(n,e),r==-1)throw new Error("The provided component was not found in the application");o=e}else if(Gee(e)){if(r=Yee(n,e),r==-1)throw new Error("The provided directive was not found in the application");i=RC(r,n)}else if(r=LO(n,e),r==-1)return null;let s=gt(n[r]),a=vu(s),c=a&&!Array.isArray(a)?a:Ew(n,r,s);if(o&&c.component===void 0&&(c.component=o,ln(c.component,c)),i&&c.directives===void 0){c.directives=i;for(let u=0;u<i.length;u++)ln(i[u],c)}ln(c.native,c),t=c}}else{let n=e;ngDevMode&&Oo(n);let r=n;for(;r=r.parentNode;){let o=vu(r);if(o){let i=Array.isArray(o)?o:o.lView;if(!i)return null;let s=LO(i,n);if(s>=0){let a=gt(i[s]),c=Ew(i,s,a);ln(a,c),t=c;break}}}}return t||null}function Ew(e,t,n){return new ww(e[nn],t,n)}function PC(e){let t=vu(e),n;if(nt(t)){let r=t,o=kC(r,e);n=cn(o,r);let i=Ew(r,o,n[Xe]);i.component=e,ln(e,i),ln(i.native,i)}else{let r=t,o=r.lView;ngDevMode&&an(o),n=cn(r.nodeIndex,o)}return n}var Sw="__ngContext__";function ln(e,t){ngDevMode&&F(e,"Target expected"),nt(t)?(e[Sw]=t[nn],Wee(t)):e[Sw]=t}function vu(e){ngDevMode&&F(e,"Target expected");let t=e[Sw];return typeof t=="number"?OC(t):t||null}function CC(e){let t=vu(e);return t?nt(t)?t:t.lView:null}function DC(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Gee(e){return e&&e.constructor&&e.constructor.\u0275dir}function LO(e,t){let n=e[x];for(let r=Z;r<n.bindingStartIndex;r++)if(gt(e[r])===t)return r;return-1}function zee(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function kC(e,t){let n=e[x].components;if(n)for(let r=0;r<n.length;r++){let o=n[r];if(cn(o,e)[Te]===t)return o}else if(cn(Z,e)[Te]===t)return Z;return-1}function Yee(e,t){let n=e[x].firstChild;for(;n;){let r=n.directiveStart,o=n.directiveEnd;for(let i=r;i<o;i++)if(e[i]===t)return n.index;n=zee(n)}return-1}function RC(e,t){let n=t[x].data[e];if(n.directiveStart===0)return Ae;let r=[];for(let o=n.directiveStart;o<n.directiveEnd;o++){let i=t[o];DC(i)||r.push(i)}return r}function Zee(e,t){let n=t[x].data[e];return qn(n)?t[n.directiveStart+n.componentOffset]:null}function Qee(e){ngDevMode&&F(e,"component");let t=nt(e)?e:CC(e);for(;t&&!lr(t);)t=ir(t);return ngDevMode&&an(t),t}function Jee(e){let t=Qee(e);return ngDevMode&&F(t[Te],"Root view has no context. Perhaps it is disconnected?"),t[Te]}function NC(e){return jC(e[Co])}function LC(e){return jC(e[Mt])}function jC(e){for(;e!==null&&!Ot(e);)e=e[Mt];return e}function FC(e){ngDevMode&&kE(e);let t=$o(e);if(t===null)return null;if(t.component===void 0){let n=t.lView;if(n===null)return null;t.component=Zee(t.nodeIndex,n)}return t.component}function Xee(e){kE(e);let t=$o(e),n=t?t.lView:null;return n===null?null:n[Te]}function ete(e){let t=$o(e),n=t?t.lView:null;if(n===null)return null;let r;for(;n[x].type===2&&(r=ir(n));)n=r;return lr(n)?null:n[Te]}function qC(e){let t=CC(e);return t!==null?[Jee(t)]:[]}function tte(e){let t=$o(e),n=t?t.lView:null;if(n===null)return en.NULL;let r=n[x].data[t.nodeIndex];return new We(r,n)}function nte(e){if(e instanceof Text)return[];let t=$o(e),n=t?t.lView:null;if(n===null)return[];let r=n[x],o=t.nodeIndex;return r?.data[o]?(t.directives===void 0&&(t.directives=RC(o,n)),t.directives===null?[]:[...t.directives]):[]}var jO;(function(e){e[e.Default=0]="Default",e[e.OnPush=1]="OnPush"})(jO||(jO={}));var FO;(function(e){e[e.Emulated=0]="Emulated",e[e.None=1]="None"})(FO||(FO={}));function rte(e){let{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");let n=_e(t);if(n)return{inputs:qO(n.inputs),outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Ma.OnPush:Ma.Eager};let r=dt(t);return r?{inputs:qO(r.inputs),outputs:r.outputs}:null}function ote(e){return $o(e).native}function ite(e){ngDevMode&&kE(e);let t=$o(e),n=t===null?null:t.lView;if(n===null)return[];let r=n[x],o=n[Ei],i=r.cleanup,s=[];if(i&&o)for(let a=0;a<i.length;){let c=i[a++],u=i[a++];if(typeof c=="string"){let l=c,f=gt(n[u]),d=o[i[a++]],p=i[a++],h=typeof p=="boolean"||p>=0?"dom":"output",m=typeof p=="boolean"?p:!1;e==f&&s.push({element:e,name:l,callback:d,useCapture:m,type:h})}}return s.sort(ste),s}function ste(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function kE(e){if(typeof Element<"u"&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function qO(e){let t={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];r!==void 0&&(t[n]=r[0])}return t}var BO;function Vu(){if(BO!==void 0)return BO;if(typeof document<"u")return document;throw new D(210,(typeof ngDevMode>"u"||ngDevMode)&&"The document object is not available in this context. Make sure the DOCUMENT injection token is provided.")}var Xg=new H(typeof ngDevMode<"u"&&ngDevMode?"AppId":"",{factory:()=>ate}),ate="ng",BC={provide:wi,multi:!0,useValue:()=>{let e=z(Xg);if(!/^[a-zA-Z0-9\-_]+$/.test(e))throw new D(211,`APP_ID value "${e}" is not alphanumeric. The APP_ID must be a string of alphanumeric characters. (a-zA-Z0-9), hyphens (-) and underscores (_) are allowed.`)}},UC=new H(typeof ngDevMode<"u"&&ngDevMode?"Platform Initializer":""),pIe=new H(typeof ngDevMode<"u"&&ngDevMode?"Platform ID":"",{providedIn:"platform",factory:()=>"unknown"}),hIe=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationModuleType":""),gIe=new H(typeof ngDevMode<"u"&&ngDevMode?"CSP nonce":"",{factory:()=>z(ma).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),cte={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},HC=new H(typeof ngDevMode<"u"&&ngDevMode?"ImageConfig":"",{factory:()=>cte});var Tu=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>{let t=new e;return(typeof ngServerMode>"u"||!ngServerMode)&&(t.store=$C(z(ma),z(Xg))),t}});store={};onSerializeCallbacks={};get(t,n){return this.store[t]!==void 0?this.store[t]:n}set(t,n){this.store[t]=n}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(t,n){this.onSerializeCallbacks[t]=n}toJson(){for(let t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(n){console.warn("Exception in onSerialize callback: ",n)}return JSON.stringify(this.store).replace(/</g,"\\u003C").replace(/\//g,"\\u002F")}};function $C(e,t){let n=e.getElementById(t+"-state");if(n?.tagName==="SCRIPT"&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r)}return{}}var RE="r";var NE="di",LE="s",KC="p";var ute=new H(typeof ngDevMode>"u"||ngDevMode?"IS_HYDRATION_DOM_REUSE_ENABLED":""),WC=!1,VC=new H(typeof ngDevMode>"u"||ngDevMode?"PRESERVE_HOST_CONTENT":"",{factory:()=>WC}),lte=new H(typeof ngDevMode>"u"||ngDevMode?"IS_I18N_HYDRATION_ENABLED":""),fte=new H(typeof ngDevMode>"u"||ngDevMode?"IS_EVENT_REPLAY_ENABLED":"");var dte=new H(typeof ngDevMode<"u"&&ngDevMode?"EVENT_REPLAY_QUEUE":"",{factory:()=>[]}),GC=new H(typeof ngDevMode>"u"||ngDevMode?"IS_INCREMENTAL_HYDRATION_ENABLED":""),pte=new H(typeof ngDevMode<"u"&&ngDevMode?"JSACTION_BLOCK_ELEMENT_MAP":"",{factory:()=>new Map}),mIe=new H(typeof ngDevMode>"u"||ngDevMode?"IS_ENABLED_BLOCKING_INITIAL_NAVIGATION":""),_g={passive:!0,capture:!0},G0=new WeakMap,z0=new WeakMap,Fo=new WeakMap,UO=["click","keydown"],HO=["mouseenter","mouseover","focusin"],Yh=new Map,Mu=class{callbacks=new Set;listener=()=>{for(let t of this.callbacks)t()}};function zC(e,t){let n=z0.get(e);if(!n){n=new Mu,z0.set(e,n);for(let r of UO)e.addEventListener(r,n.listener,_g)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){z0.delete(e);for(let i of UO)e.removeEventListener(i,o,_g)}}}function YC(e,t){let n=G0.get(e);if(!n){n=new Mu,G0.set(e,n);for(let r of HO)e.addEventListener(r,n.listener,_g)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){for(let i of HO)e.removeEventListener(i,o,_g);G0.delete(e)}}}function hte(e){let t=ZC(e);return new IntersectionObserver(n=>{for(let r of n)r.isIntersecting&&Fo.has(r.target)&&Fo.get(r.target)?.get(t)?.listener()},e)}function gte(e,t,n,r){let o=ZC(r),i=Fo.get(e)?.get(o);Yh.has(o)||Yh.set(o,{observer:n(r),count:0});let s=Yh.get(o);if(!i){i=new Mu,s.observer.observe(e);let a=Fo.get(e);a?a.set(o,i):(a=new Map,Fo.set(e,a)),a.set(o,i),s.count++}return i.callbacks.add(t),()=>{if(Fo.get(e)?.has(o)){if(i.callbacks.delete(t),i.callbacks.size===0){s.observer.unobserve(e),s.count--;let a=Fo.get(e);a&&(a.delete(o),a.size===0&&Fo.delete(e))}s.count===0&&(s.observer.disconnect(),Yh.delete(o))}}}function ZC(e){return e?`${e.rootMargin}/${typeof e.threshold=="number"?e.threshold:e.threshold?.join(`
25
- `)}`:""}var mte=new H(typeof ngDevMode<"u"&&ngDevMode?"EVENT_CONTRACT_DETAILS":"",{factory:()=>({})}),$O=new WeakMap;function yte(e,t){if(e==null||typeof e!="object")return;let n=$O.get(e);n||(n=new WeakSet,$O.set(e,n)),n.add(t)}var vte=(e,t,n,r)=>{};function bte(e,t,n,r){vte(e,t,n,r)}var Ha=new H(typeof ngDevMode<"u"&&ngDevMode?"DEHYDRATED_BLOCK_REGISTRY":"");function em(e){return(e.flags&32)===32}var QC="__nghData__",_te=QC,JC="__nghDeferData__",jE=JC;function wte(e){return e===QC||e===JC}var Ete=()=>null;function XC(e,t,n=!1){return Ete(e,t,n)}function eD(e){let t=e._lView;return t[x].type===2?null:(lr(t)&&(t=t[Z]),t)}var xw;(function(e){e.Hydrated="hydrated",e.Skipped="skipped",e.Mismatched="mismatched"})(xw||(xw={}));var Ste="__ngDebugHydrationInfo__";function xte(e,t){e[Ste]=t}function tD(e,t=null,n=null){if(!ngDevMode)throw new Error("Calling `markRNodeAsMismatchedByHydration` in prod mode is not supported and likely a mistake.");for(;e&&!FC(e);)e=e?.parentNode;e&&xte(e,{status:xw.Mismatched,expectedNodeDetails:t,actualNodeDetails:n})}function FE(e){return e.get(GC,!1,{optional:!0})}var KO=!1;function Ite(){KO||(KO=!0,console.warn(bt(508,"Angular has detected that some `@defer` blocks use `hydrate` triggers, but incremental hydration was not enabled. Please ensure that the `withIncrementalHydration()` call is added as an argument for the `provideClientHydration()` function call in your application config.")))}function qE(e){F(e,"Internal error: expecting an SSR id for a defer block that should be hydrated, but the id is not present")}function Ate(e,t){let n=t.get(Ha),o=t.get(Tu).get(jE,{}),i=!1,s=e,a=null,c=[];for(;!i&&s;){ngDevMode&&re(c.indexOf(s),-1,"Internal error: defer block hierarchy has a cycle."),i=n.has(s);let u=n.hydrating.get(s);if(a===null&&u!=null){a=u.promise;break}c.unshift(s),s=o[s][KC]}return{parentBlockPromise:a,hydrationQueue:c}}function nD(e,t){let n=e.contentQueries;if(n!==null){let r=te(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ngDevMode&&F(a,"DirectiveDef not found."),ngDevMode&&F(a.contentQueries,"contentQueries function should be defined"),cu(i),a.contentQueries(2,t[s],s)}}}finally{te(r)}}}function Iw(e,t,n){ngDevMode&&F(t,"View queries function to execute must be defined."),cu(0);let r=te(null);try{t(e,n)}finally{te(r)}}function BE(e,t,n){if(n0(t)){let r=te(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];ngDevMode&&F(s,"Incorrect reference to a directive defining a content query"),a.contentQueries(1,c,s)}}}finally{te(r)}}}var Un;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Un||(Un={}));var Tte={name:"custom-elements"},Mte={name:"no-errors-schema"},Ote=!1;var Pte=!1;function rD(e,t){let n=e[x];if(n.schemas===null)return;let r=t.value;if(!Ii(t)&&r!==null&&(typeof HTMLUnknownElement<"u"&&HTMLUnknownElement&&rt(t,e)instanceof HTMLUnknownElement||typeof customElements<"u"&&r.indexOf("-")>-1&&!customElements.get(r))&&!HE(n.schemas,r)){let i=tm(e),s=Ou(e),a=`'${i?"@Component":"@NgModule"}.schemas'`,c=`'${r}' is not a known element${s}:
28
+ `,n+=`or manually provide the compiler with 'import "@angular/compiler";' before bootstrapping.`,new Error(n)}else throw new Error("JIT compiler unavailable")}var DO={\u0275\u0275defineInjectable:Fe,\u0275\u0275defineInjector:Zc,\u0275\u0275inject:Tt,\u0275\u0275invalidFactoryDep:Ah,resolveForwardRef:se},dee=Function;function hu(e){return typeof e=="function"}var pee=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,hee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,gee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,mee=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function yee(e){return pee.test(e)||mee.test(e)||hee.test(e)&&!gee.test(e)}var pw=class{_reflect;constructor(t){this._reflect=t||At.Reflect}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;typeof t>"u"?r=ca(n.length):r=ca(t.length);for(let o=0;o<r.length;o++)typeof t>"u"?r[o]=[]:t[o]&&t[o]!=Object?r[o]=[t[o]]:r[o]=[],n&&n[o]!=null&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){let r=t.toString();if(yee(r))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;let o=t.ctorParameters;if(o&&o!==n.ctorParameters){let a=typeof o=="function"?o():o,c=a.map(l=>l&&l.type),u=a.map(l=>l&&$0(l.decorators));return this._zipTypesAndAnnotations(c,u)}let i=t.hasOwnProperty(ba)&&t[ba],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||i?this._zipTypesAndAnnotations(s,i):ca(t.length)}parameters(t){if(!hu(t))return[];let n=Yh(t),r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return typeof r=="function"&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?$0(t.decorators):t.hasOwnProperty(va)?t[va]:null}annotations(t){if(!hu(t))return[];let n=Yh(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return typeof r=="function"&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){let r=t.propDecorators,o={};return Object.keys(r).forEach(i=>{o[i]=$0(r[i])}),o}return t.hasOwnProperty(_a)?t[_a]:null}propMetadata(t){if(!hu(t))return{};let n=Yh(t),r={};if(n!==Object){let i=this.propMetadata(n);Object.keys(i).forEach(s=>{r[s]=i[s]})}let o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(i=>{let s=[];r.hasOwnProperty(i)&&s.push(...r[i]),s.push(...o[i]),r[i]=s}),r}ownPropMetadata(t){return hu(t)?this._ownPropMetadata(t,Yh(t))||{}:{}}hasLifecycleHook(t,n){return t instanceof dee&&n in t.prototype}};function $0(e){return e?e.map(t=>{let r=t.type.annotationCls,o=t.args?t.args:[];return new r(...o)}):[]}function Yh(e){let t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}function dC(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var hw=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},vee=(()=>{let e=()=>pC;return e.ngInherit=!0,e})();function pC(e){return e.type.prototype.ngOnChanges&&(e.setInput=_ee),bee}function bee(){let e=gC(this),t=e?.current;if(t){let n=e.previous;if(n===pn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _ee(e,t,n,r,o){let i=this.declaredInputs[r];ngDevMode&&mi(i,"Name of input in ngOnChanges has to be a string");let s=gC(e)||wee(e,{previous:pn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new hw(u&&u.currentValue,n,c===pn),dC(e,t,o,n)}var hC="__ngSimpleChanges__";function gC(e){return e[hC]||null}function wee(e,t){return e[hC]=t}var Pi=[],Eee=()=>{};function See(e){let t=Pi.indexOf(e);t!==-1&&Pi.splice(t,1)}function mC(e){return e!==null?(Pi.includes(e)||Pi.push(e),()=>See(e)):(Pi.length=0,Eee)}var Be=function(e,t=null,n){for(let r=0;r<Pi.length;r++){let o=Pi[r];o(e,t,n)}},K;(function(e){e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd"})(K||(K={}));function xee(e,t,n){ngDevMode&&Pt(n);let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=pC(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function yC(e,t){ngDevMode&&Pt(e);for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n];ngDevMode&&F(o,"Expecting DirectiveDef");let i=o.type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function sg(e,t,n){vC(e,t,3,n)}function ag(e,t,n,r){ngDevMode&&tn(n,3,"Init pre-order hooks should not be called more than once"),(e[ae]&3)===n&&vC(e,t,n,r)}function K0(e,t){ngDevMode&&tn(t,3,"Init hooks phase should not be incremented after all init hooks have been run.");let n=e[ae];(n&3)===t&&(n&=16383,n+=1,e[ae]=n)}function vC(e,t,n,r){ngDevMode&&re(Nr(),!1,"Hooks should never be run when in check no changes mode.");let o=r!==void 0?e[Si]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Si]+=65536),(a<i||i==-1)&&(Iee(e,n,t,c),e[Si]=(e[Si]&4294901760)+c+2),c++}function kO(e,t){Be(K.LifecycleHookStart,e,t);let n=te(null);try{t.call(e)}finally{te(n),Be(K.LifecycleHookEnd,e,t)}}function Iee(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[ae]>>14<e[Si]>>16&&(e[ae]&3)===t&&(e[ae]+=16384,kO(a,i)):kO(a,i)}var Ea=-1,Uo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,ngDevMode&&F(t,"Factory not specified"),ngDevMode&&re(typeof t,"function","Expected factory function."),this.canSeeViewProviders=n,this.injectImpl=r}};function gw(e){let t="";return e&1&&(t+="|Text"),e&2&&(t+="|Element"),e&4&&(t+="|Container"),e&8&&(t+="|ElementContainer"),e&16&&(t+="|Projection"),e&32&&(t+="|IcuContainer"),e&64&&(t+="|Placeholder"),e&128&&(t+="|LetDeclaration"),t.length>0?t.substring(1):t}function bC(e){return e!=null&&typeof e=="object"&&(e.insertBeforeIndex===null||typeof e.insertBeforeIndex=="number"||Array.isArray(e.insertBeforeIndex))}function Aee(e){return(e.flags&8)!==0}function Tee(e){return(e.flags&16)!==0}function lt(e,t,n){F(e,"should be called with a TNode"),(e.type&t)===0&&X(n||`Expected [${gw(t)}] but got ${gw(e.type)}.`)}function Mee(e){e===2||e===1||e===4||e===8||e===32||e===16||e===64||e===128||X(`Expected TNodeType to have only a single type selected, but got ${gw(e)}.`)}function Oee(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];wC(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function _C(e){return e===3||e===4||e===6}function wC(e){return e.charCodeAt(0)===64}function Aa(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?RO(e,n,o,null,t[++r]):RO(e,n,o,null,null))}}return e}function RO(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function PE(e){return e!==Ea}function Iu(e){if(ngDevMode){je(e,"Number expected"),tn(e,-1,"Not a valid state.");let t=e&32767;Mo(t,Z,"Parent injector must be pointing past HEADER_OFFSET.")}return e&32767}function Pee(e){return e>>16}function Au(e,t){let n=Pee(e),r=t;for(;n>0;)r=r[Mr],n--;return r}var mw=!0;function bg(e){let t=mw;return mw=e,t}var Cee=256,EC=Cee-1,SC=5,Dee=0,yr={};function kee(e,t,n){ngDevMode&&re(t.firstCreatePass,!0,"expected firstCreatePass to be true");let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bi)&&(r=n[bi]),r==null&&(r=n[bi]=Dee++);let o=r&EC,i=1<<o;t.data[e+(o>>SC)]|=i}function _g(e,t){let n=xC(e,t);if(n!==-1)return n;let r=t[x];r.firstCreatePass&&(e.injectorIndex=t.length,W0(r.data,e),W0(t,null),W0(r.blueprint,null));let o=Qg(e,t),i=e.injectorIndex;if(PE(o)){let s=Iu(o),a=Au(o,t),c=a[x].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function W0(e,t){e.push(0,0,0,0,0,0,0,0,t)}function xC(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:(ngDevMode&&ct(t,e.injectorIndex),e.injectorIndex)}function Qg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=OC(o),r===null)return Ea;if(ngDevMode&&r&&sn(r,o[Mr]),n++,o=o[Mr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Ea}function yw(e,t,n){kee(e,t,n)}function Ree(e,t){if(ngDevMode&&lt(e,15),ngDevMode&&F(e,"expecting tNode"),t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(_C(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else{if(i===t)return n[o+1];o=o+2}}}return null}function IC(e,t,n){if(n&8||e!==void 0)return e;Ih(t,"NodeInjector")}function AC(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Se],i=$t(void 0);try{return o?o.get(t,r,n&8):W_(t,r,n&8)}finally{$t(i)}}return IC(r,t,n)}function TC(e,t,n,r=0,o){if(e!==null){if(t[ae]&2048&&!(r&2)){let s=qee(e,t,n,r,yr);if(s!==yr)return s}let i=MC(e,t,n,r,yr);if(i!==yr)return i}return AC(t,n,r,o)}function MC(e,t,n,r,o){let i=Lee(n);if(typeof i=="function"){if(!P0(t,e,r))return r&1?IC(o,n,r):AC(t,n,r,o);try{let s;if(ngDevMode?ta(new We(ce(),S()),n,()=>{Bc(n),s=i(r),Uc(s)}):s=i(r),s==null&&!(r&8))Ih(n);else return s}finally{C0()}}else if(typeof i=="number"){let s=null,a=xC(e,t),c=Ea,u=r&1?t[at][_t]:null;for((a===-1||r&4)&&(c=a===-1?Qg(e,t):t[a+8],c===Ea||!LO(r,!1)?a=-1:(s=t[x],a=Iu(c),t=Au(c,t)));a!==-1;){ngDevMode&&o0(t,a);let l=t[x];if(ngDevMode&&sn(l.data[a+8],t),NO(i,a,l.data)){let f=Nee(a,t,n,s,r,u);if(f!==yr)return f}c=t[a+8],c!==Ea&&LO(r,t[x].data[a+8]===u)&&NO(i,a,t)?(s=l,a=Iu(c),t=Au(c,t)):a=-1}}return o}function Nee(e,t,n,r,o,i){let s=t[x],a=s.data[e+8],c=r==null?qn(a)&&mw:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=cg(a,s,n,c,u);return l!==null?Tu(t,s,l,a,o):yr}function cg(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,d=o?a+l:u;for(let p=f;p<d;p++){let h=s[p];if(p<c&&n===h||p>=c&&h.type===n)return p}if(o){let p=s[c];if(p&&on(p)&&p.type===n)return c}return null}var V0=[];function Tu(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Uo){let a=i;if(ngDevMode&&V0.push(a.name??"unknown"),a.resolving){let p="";throw ngDevMode?(p=ge(s[n]),K_(p,V0)):xh(p)}let c=bg(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l;if(ngDevMode){let p=new We(r,e);l=jt({injector:p,token:u})}let f=a.injectImpl?$t(a.injectImpl):null,d=P0(e,r,0);ngDevMode&&re(d,!0,"Because flags do not contain `SkipSelf' we expect this to always succeed.");try{ngDevMode&&Bc(u),i=e[n]=a.factory(void 0,o,s,e,r),ngDevMode&&Uc(i),t.firstCreatePass&&n>=r.directiveStart&&(ngDevMode&&cO(s[n]),xee(n,s[n],t))}finally{ngDevMode&&jt(l),f!==null&&$t(f),bg(c),a.resolving=!1,C0(),ngDevMode&&(V0=[])}}return i}function Lee(e){if(ngDevMode&&F(e,"token must be defined"),typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bi)?e[bi]:void 0;return typeof t=="number"?t>=0?t&EC:(ngDevMode&&re(t,-1,"Expecting to get Special Injector Id"),jee):t}function NO(e,t,n){let r=1<<e;return!!(n[t+(e>>SC)]&r)}function LO(e,t){return!(e&2)&&!(e&1&&t)}function Ho(e){return e._lView}function $i(e){return e._tNode}var We=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return TC(this._tNode,this._lView,t,hi(r),n)}};function jee(){return new We(ce(),S())}function Fee(e){return Fr(()=>{let t=e.prototype.constructor,n=t[rr]||vw(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[rr]||vw(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vw(e){return Yc(e)?()=>{let t=vw(se(e));return t&&t()}:Io(e)}function qee(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[ae]&2048&&!lr(s);){ngDevMode&&sn(i,s);let a=MC(i,s,n,r|2,yr);if(a!==yr)return a;let c=i.parent;if(!c){let u=s[e0];if(u){let l=u.get(n,yr,r&-5);if(l!==yr)return l}c=OC(s),s=s[Mr]}i=c}return o}function OC(e){let t=e[x],n=t.type;return n===2?(ngDevMode&&F(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):n===1?e[_t]:null}function CE(e){return Ree(ce(),e)}var Bee=Ba("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>CE(e)})),jO=null;function DE(){return jO=jO||new pw}function Jg(e){return PC(DE().parameters(e))}function PC(e){return e.map(t=>Uee(t))}function Uee(e){let t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){let r=e[n];if(r===void 0)continue;let o=Object.getPrototypeOf(r);if(r instanceof cee||o.ngMetadataName==="Optional")t.optional=!0;else if(r instanceof lee||o.ngMetadataName==="SkipSelf")t.skipSelf=!0;else if(r instanceof uee||o.ngMetadataName==="Self")t.self=!0;else if(r instanceof fee||o.ngMetadataName==="Host")t.host=!0;else if(r instanceof fC)t.token=r.token;else if(r instanceof Bee){if(r.attributeName===void 0)throw new D(-204,ngDevMode&&"Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else e===void 0||Array.isArray(e)&&e.length===0?t.token=null:t.token=e;return t}function Hee(e,t){let n=null,r=null;e.hasOwnProperty(sa)||Object.defineProperty(e,sa,{get:()=>(n===null&&(n=yn({usage:0,kind:"injectable",type:e}).compileInjectable(DO,`ng:///${e.name}/\u0275prov.js`,Vee(e,t))),n)}),e.hasOwnProperty(rr)||Object.defineProperty(e,rr,{get:()=>{if(r===null){let o=yn({usage:0,kind:"injectable",type:e});r=o.compileFactory(DO,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Jg(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}var $ee=De({provide:String,useValue:De});function FO(e){return e.useClass!==void 0}function Kee(e){return $ee in e}function qO(e){return e.useFactory!==void 0}function Wee(e){return e.useExisting!==void 0}function Vee(e,t){let n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(FO(n)||qO(n))&&n.deps!==void 0&&(r.deps=PC(n.deps)),FO(n)?r.useClass=n.useClass:Kee(n)?r.useValue=n.useValue:qO(n)?r.useFactory=n.useFactory:Wee(n)&&(r.useExisting=n.useExisting),r}var Ie=Vu("Injectable",void 0,void 0,void 0,(e,t)=>Hee(e,t));function Gee(){return Ua(ce(),S())}function Ua(e,t){return new Ta(rt(e,t))}var Ta=class{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=Gee};function CC(e){return e instanceof Ta?e.nativeElement:e}function zee(){return this._results[Symbol.iterator]()}var bw=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Wu.Subject}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Wt(t);(this._changesDetected=!JM(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=zee};function DC(e){return(e.flags&128)===128}var Ma;(function(e){e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default"})(Ma||(Ma={}));var Xg=new Map,Yee=0;function Zee(){return Yee++}function Qee(e){ngDevMode&&je(e[nn],"LView must have an ID in order to be registered"),Xg.set(e[nn],e)}function kC(e){return ngDevMode&&je(e,"ID used for LView lookup must be a number"),Xg.get(e)||null}function _w(e){ngDevMode&&je(e[nn],"Cannot stop tracking an LView that does not have an ID"),Xg.delete(e[nn])}function Jee(){return Xg}var ww=class{lViewId;nodeIndex;native;component;directives;localRefs;get lView(){return kC(this.lViewId)}constructor(t,n,r){this.lViewId=t,this.nodeIndex=n,this.native=r}};function $o(e){let t=bu(e);if(t){if(nt(t)){let n=t,r,o,i;if(LC(e)){if(r=jC(n,e),r==-1)throw new Error("The provided component was not found in the application");o=e}else if(Xee(e)){if(r=tte(n,e),r==-1)throw new Error("The provided directive was not found in the application");i=FC(r,n)}else if(r=BO(n,e),r==-1)return null;let s=gt(n[r]),a=bu(s),c=a&&!Array.isArray(a)?a:Ew(n,r,s);if(o&&c.component===void 0&&(c.component=o,ln(c.component,c)),i&&c.directives===void 0){c.directives=i;for(let u=0;u<i.length;u++)ln(i[u],c)}ln(c.native,c),t=c}}else{let n=e;ngDevMode&&Oo(n);let r=n;for(;r=r.parentNode;){let o=bu(r);if(o){let i=Array.isArray(o)?o:o.lView;if(!i)return null;let s=BO(i,n);if(s>=0){let a=gt(i[s]),c=Ew(i,s,a);ln(a,c),t=c;break}}}}return t||null}function Ew(e,t,n){return new ww(e[nn],t,n)}function RC(e){let t=bu(e),n;if(nt(t)){let r=t,o=jC(r,e);n=cn(o,r);let i=Ew(r,o,n[Xe]);i.component=e,ln(e,i),ln(i.native,i)}else{let r=t,o=r.lView;ngDevMode&&an(o),n=cn(r.nodeIndex,o)}return n}var Sw="__ngContext__";function ln(e,t){ngDevMode&&F(e,"Target expected"),nt(t)?(e[Sw]=t[nn],Qee(t)):e[Sw]=t}function bu(e){ngDevMode&&F(e,"Target expected");let t=e[Sw];return typeof t=="number"?kC(t):t||null}function NC(e){let t=bu(e);return t?nt(t)?t:t.lView:null}function LC(e){return e&&e.constructor&&e.constructor.\u0275cmp}function Xee(e){return e&&e.constructor&&e.constructor.\u0275dir}function BO(e,t){let n=e[x];for(let r=Z;r<n.bindingStartIndex;r++)if(gt(e[r])===t)return r;return-1}function ete(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function jC(e,t){let n=e[x].components;if(n)for(let r=0;r<n.length;r++){let o=n[r];if(cn(o,e)[Te]===t)return o}else if(cn(Z,e)[Te]===t)return Z;return-1}function tte(e,t){let n=e[x].firstChild;for(;n;){let r=n.directiveStart,o=n.directiveEnd;for(let i=r;i<o;i++)if(e[i]===t)return n.index;n=ete(n)}return-1}function FC(e,t){let n=t[x].data[e];if(n.directiveStart===0)return Ae;let r=[];for(let o=n.directiveStart;o<n.directiveEnd;o++){let i=t[o];LC(i)||r.push(i)}return r}function nte(e,t){let n=t[x].data[e];return qn(n)?t[n.directiveStart+n.componentOffset]:null}function rte(e){ngDevMode&&F(e,"component");let t=nt(e)?e:NC(e);for(;t&&!lr(t);)t=ir(t);return ngDevMode&&an(t),t}function ote(e){let t=rte(e);return ngDevMode&&F(t[Te],"Root view has no context. Perhaps it is disconnected?"),t[Te]}function qC(e){return UC(e[Co])}function BC(e){return UC(e[Mt])}function UC(e){for(;e!==null&&!Ot(e);)e=e[Mt];return e}function HC(e){ngDevMode&&kE(e);let t=$o(e);if(t===null)return null;if(t.component===void 0){let n=t.lView;if(n===null)return null;t.component=nte(t.nodeIndex,n)}return t.component}function ite(e){kE(e);let t=$o(e),n=t?t.lView:null;return n===null?null:n[Te]}function ste(e){let t=$o(e),n=t?t.lView:null;if(n===null)return null;let r;for(;n[x].type===2&&(r=ir(n));)n=r;return lr(n)?null:n[Te]}function $C(e){let t=NC(e);return t!==null?[ote(t)]:[]}function ate(e){let t=$o(e),n=t?t.lView:null;if(n===null)return en.NULL;let r=n[x].data[t.nodeIndex];return new We(r,n)}function cte(e){if(e instanceof Text)return[];let t=$o(e),n=t?t.lView:null;if(n===null)return[];let r=n[x],o=t.nodeIndex;return r?.data[o]?(t.directives===void 0&&(t.directives=FC(o,n)),t.directives===null?[]:[...t.directives]):[]}var UO;(function(e){e[e.Default=0]="Default",e[e.OnPush=1]="OnPush"})(UO||(UO={}));var HO;(function(e){e[e.Emulated=0]="Emulated",e[e.None=1]="None"})(HO||(HO={}));function ute(e){let{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");let n=_e(t);if(n)return{inputs:$O(n.inputs),outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Ma.OnPush:Ma.Eager};let r=dt(t);return r?{inputs:$O(r.inputs),outputs:r.outputs}:null}function lte(e){return $o(e).native}function fte(e){ngDevMode&&kE(e);let t=$o(e),n=t===null?null:t.lView;if(n===null)return[];let r=n[x],o=n[Ei],i=r.cleanup,s=[];if(i&&o)for(let a=0;a<i.length;){let c=i[a++],u=i[a++];if(typeof c=="string"){let l=c,f=gt(n[u]),d=o[i[a++]],p=i[a++],h=typeof p=="boolean"||p>=0?"dom":"output",m=typeof p=="boolean"?p:!1;e==f&&s.push({element:e,name:l,callback:d,useCapture:m,type:h})}}return s.sort(dte),s}function dte(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function kE(e){if(typeof Element<"u"&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function $O(e){let t={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];r!==void 0&&(t[n]=r[0])}return t}var KO;function Gu(){if(KO!==void 0)return KO;if(typeof document<"u")return document;throw new D(210,(typeof ngDevMode>"u"||ngDevMode)&&"The document object is not available in this context. Make sure the DOCUMENT injection token is provided.")}var em=new H(typeof ngDevMode<"u"&&ngDevMode?"AppId":"",{factory:()=>pte}),pte="ng",KC={provide:wi,multi:!0,useValue:()=>{let e=z(em);if(!/^[a-zA-Z0-9\-_]+$/.test(e))throw new D(211,`APP_ID value "${e}" is not alphanumeric. The APP_ID must be a string of alphanumeric characters. (a-zA-Z0-9), hyphens (-) and underscores (_) are allowed.`)}},WC=new H(typeof ngDevMode<"u"&&ngDevMode?"Platform Initializer":""),IIe=new H(typeof ngDevMode<"u"&&ngDevMode?"Platform ID":"",{providedIn:"platform",factory:()=>"unknown"}),AIe=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationModuleType":""),TIe=new H(typeof ngDevMode<"u"&&ngDevMode?"CSP nonce":"",{factory:()=>z(ma).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),hte={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},VC=new H(typeof ngDevMode<"u"&&ngDevMode?"ImageConfig":"",{factory:()=>hte});var Mu=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>{let t=new e;return(typeof ngServerMode>"u"||!ngServerMode)&&(t.store=GC(z(ma),z(em))),t}});store={};onSerializeCallbacks={};get(t,n){return this.store[t]!==void 0?this.store[t]:n}set(t,n){this.store[t]=n}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(t,n){this.onSerializeCallbacks[t]=n}toJson(){for(let t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(n){console.warn("Exception in onSerialize callback: ",n)}return JSON.stringify(this.store).replace(/</g,"\\u003C").replace(/\//g,"\\u002F")}};function GC(e,t){let n=e.getElementById(t+"-state");if(n?.tagName==="SCRIPT"&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r)}return{}}var RE="r";var NE="di",LE="s",zC="p";var gte=new H(typeof ngDevMode>"u"||ngDevMode?"IS_HYDRATION_DOM_REUSE_ENABLED":""),YC=!1,ZC=new H(typeof ngDevMode>"u"||ngDevMode?"PRESERVE_HOST_CONTENT":"",{factory:()=>YC}),mte=new H(typeof ngDevMode>"u"||ngDevMode?"IS_I18N_HYDRATION_ENABLED":""),yte=new H(typeof ngDevMode>"u"||ngDevMode?"IS_EVENT_REPLAY_ENABLED":"");var vte=new H(typeof ngDevMode<"u"&&ngDevMode?"EVENT_REPLAY_QUEUE":"",{factory:()=>[]}),QC=new H(typeof ngDevMode>"u"||ngDevMode?"IS_INCREMENTAL_HYDRATION_ENABLED":""),bte=new H(typeof ngDevMode<"u"&&ngDevMode?"JSACTION_BLOCK_ELEMENT_MAP":"",{factory:()=>new Map}),MIe=new H(typeof ngDevMode>"u"||ngDevMode?"IS_ENABLED_BLOCKING_INITIAL_NAVIGATION":""),wg={passive:!0,capture:!0},G0=new WeakMap,z0=new WeakMap,Fo=new WeakMap,WO=["click","keydown"],VO=["mouseenter","mouseover","focusin"],Zh=new Map,Ou=class{callbacks=new Set;listener=()=>{for(let t of this.callbacks)t()}};function JC(e,t){let n=z0.get(e);if(!n){n=new Ou,z0.set(e,n);for(let r of WO)e.addEventListener(r,n.listener,wg)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){z0.delete(e);for(let i of WO)e.removeEventListener(i,o,wg)}}}function XC(e,t){let n=G0.get(e);if(!n){n=new Ou,G0.set(e,n);for(let r of VO)e.addEventListener(r,n.listener,wg)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){for(let i of VO)e.removeEventListener(i,o,wg);G0.delete(e)}}}function _te(e){let t=eD(e);return new IntersectionObserver(n=>{for(let r of n)r.isIntersecting&&Fo.has(r.target)&&Fo.get(r.target)?.get(t)?.listener()},e)}function wte(e,t,n,r){let o=eD(r),i=Fo.get(e)?.get(o);Zh.has(o)||Zh.set(o,{observer:n(r),count:0});let s=Zh.get(o);if(!i){i=new Ou,s.observer.observe(e);let a=Fo.get(e);a?a.set(o,i):(a=new Map,Fo.set(e,a)),a.set(o,i),s.count++}return i.callbacks.add(t),()=>{if(Fo.get(e)?.has(o)){if(i.callbacks.delete(t),i.callbacks.size===0){s.observer.unobserve(e),s.count--;let a=Fo.get(e);a&&(a.delete(o),a.size===0&&Fo.delete(e))}s.count===0&&(s.observer.disconnect(),Zh.delete(o))}}}function eD(e){return e?`${e.rootMargin}/${typeof e.threshold=="number"?e.threshold:e.threshold?.join(`
29
+ `)}`:""}var Ete=new H(typeof ngDevMode<"u"&&ngDevMode?"EVENT_CONTRACT_DETAILS":"",{factory:()=>({})}),GO=new WeakMap;function Ste(e,t){if(e==null||typeof e!="object")return;let n=GO.get(e);n||(n=new WeakSet,GO.set(e,n)),n.add(t)}var xte=(e,t,n,r)=>{};function Ite(e,t,n,r){xte(e,t,n,r)}var Ha=new H(typeof ngDevMode<"u"&&ngDevMode?"DEHYDRATED_BLOCK_REGISTRY":"");function tm(e){return(e.flags&32)===32}var tD="__nghData__",Ate=tD,nD="__nghDeferData__",jE=nD;function Tte(e){return e===tD||e===nD}var Mte=()=>null;function rD(e,t,n=!1){return Mte(e,t,n)}function oD(e){let t=e._lView;return t[x].type===2?null:(lr(t)&&(t=t[Z]),t)}var xw;(function(e){e.Hydrated="hydrated",e.Skipped="skipped",e.Mismatched="mismatched"})(xw||(xw={}));var Ote="__ngDebugHydrationInfo__";function Pte(e,t){e[Ote]=t}function iD(e,t=null,n=null){if(!ngDevMode)throw new Error("Calling `markRNodeAsMismatchedByHydration` in prod mode is not supported and likely a mistake.");for(;e&&!HC(e);)e=e?.parentNode;e&&Pte(e,{status:xw.Mismatched,expectedNodeDetails:t,actualNodeDetails:n})}function FE(e){return e.get(QC,!1,{optional:!0})}var zO=!1;function Cte(){zO||(zO=!0,console.warn(bt(508,"Angular has detected that some `@defer` blocks use `hydrate` triggers, but incremental hydration was not enabled. Please ensure that the `withIncrementalHydration()` call is added as an argument for the `provideClientHydration()` function call in your application config.")))}function qE(e){F(e,"Internal error: expecting an SSR id for a defer block that should be hydrated, but the id is not present")}function Dte(e,t){let n=t.get(Ha),o=t.get(Mu).get(jE,{}),i=!1,s=e,a=null,c=[];for(;!i&&s;){ngDevMode&&re(c.indexOf(s),-1,"Internal error: defer block hierarchy has a cycle."),i=n.has(s);let u=n.hydrating.get(s);if(a===null&&u!=null){a=u.promise;break}c.unshift(s),s=o[s][zC]}return{parentBlockPromise:a,hydrationQueue:c}}function sD(e,t){let n=e.contentQueries;if(n!==null){let r=te(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ngDevMode&&F(a,"DirectiveDef not found."),ngDevMode&&F(a.contentQueries,"contentQueries function should be defined"),uu(i),a.contentQueries(2,t[s],s)}}}finally{te(r)}}}function Iw(e,t,n){ngDevMode&&F(t,"View queries function to execute must be defined."),uu(0);let r=te(null);try{t(e,n)}finally{te(r)}}function BE(e,t,n){if(n0(t)){let r=te(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];ngDevMode&&F(s,"Incorrect reference to a directive defining a content query"),a.contentQueries(1,c,s)}}}finally{te(r)}}}var Un;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(Un||(Un={}));var kte={name:"custom-elements"},Rte={name:"no-errors-schema"},Nte=!1;var Lte=!1;function aD(e,t){let n=e[x];if(n.schemas===null)return;let r=t.value;if(!Ii(t)&&r!==null&&(typeof HTMLUnknownElement<"u"&&HTMLUnknownElement&&rt(t,e)instanceof HTMLUnknownElement||typeof customElements<"u"&&r.indexOf("-")>-1&&!customElements.get(r))&&!HE(n.schemas,r)){let i=nm(e),s=Pu(e),a=`'${i?"@Component":"@NgModule"}.schemas'`,c=`'${r}' is not a known element${s}:
26
30
  `;if(c+=`1. If '${r}' is an Angular component, then verify that it is ${i?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared"}.
27
- `,r&&r.indexOf("-")>-1?c+=`2. If '${r}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${a} of this component to suppress this message.`:c+=`2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${a} of this component.`,Ote)throw new D(304,c);console.error(bt(304,c))}}function Cte(e,t,n,r){return r===null||HE(r,n)||t in e||yC(t)?!0:typeof Node>"u"||Node===null||!(e instanceof Node)}function WO(e,t,n,r){!t&&n===4&&(t="ng-template");let o=tm(r),i=Ou(r),s=`Can't bind to '${e}' since it isn't a known property of '${t}'${i}.`,a=`'${o?"@Component":"@NgModule"}.schemas'`,c=o?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared";if(VO.has(e)){let u=VO.get(e);s+=`
31
+ `,r&&r.indexOf("-")>-1?c+=`2. If '${r}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${a} of this component to suppress this message.`:c+=`2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${a} of this component.`,Nte)throw new D(304,c);console.error(bt(304,c))}}function jte(e,t,n,r){return r===null||HE(r,n)||t in e||wC(t)?!0:typeof Node>"u"||Node===null||!(e instanceof Node)}function YO(e,t,n,r){!t&&n===4&&(t="ng-template");let o=nm(r),i=Pu(r),s=`Can't bind to '${e}' since it isn't a known property of '${t}'${i}.`,a=`'${o?"@Component":"@NgModule"}.schemas'`,c=o?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared";if(ZO.has(e)){let u=ZO.get(e);s+=`
28
32
  If the '${e}' is an Angular control flow directive, please make sure that either the '${u}' directive or the 'CommonModule' is ${c}.`}else s+=`
29
33
  1. If '${t}' is an Angular component and it has the '${e}' input, then verify that it is ${c}.`,t&&t.indexOf("-")>-1?(s+=`
30
34
  2. If '${t}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${a} of this component to suppress this message.`,s+=`
31
35
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${a} of this component.`):s+=`
32
- 2. To allow any property add 'NO_ERRORS_SCHEMA' to the ${a} of this component.`;oD(s)}function oD(e){if(Pte)throw new D(303,e);console.error(bt(303,e))}function UE(e){!ngDevMode&&X("Must never be called in production mode");let n=e[at][Te];return n&&n.constructor?_e(n.constructor):null}function tm(e){return!ngDevMode&&X("Must never be called in production mode"),!!UE(e)?.standalone}function Ou(e){!ngDevMode&&X("Must never be called in production mode");let n=UE(e)?.type?.name;return n?` (used in the '${n}' component template)`:""}var VO=new Map([["ngIf","NgIf"],["ngFor","NgFor"],["ngSwitchCase","NgSwitchCase"],["ngSwitchDefault","NgSwitchDefault"]]);function HE(e,t){if(e!==null)for(let n=0;n<e.length;n++){let r=e[n];if(r===Mte||r===Tte&&t&&t.indexOf("-")>-1)return!0}return!1}var iD="svg",sD="math",aD={"http://www.w3.org/2000/svg":iD,"http://www.w3.org/1998/Math/MathML":sD},Zh;function cD(){if(Zh===void 0&&(Zh=null,At.trustedTypes))try{Zh=At.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Zh}function $a(e){return cD()?.createHTML(e)||e}function Dte(e){return cD()?.createScriptURL(e)||e}var Qh;function $E(){if(Qh===void 0&&(Qh=null,At.trustedTypes))try{Qh=At.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qh}function GO(e){return $E()?.createHTML(e)||e}function zO(e){return $E()?.createScript(e)||e}function YO(e){return $E()?.createScriptURL(e)||e}var wg=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${sr})`}};function Ko(e){return e instanceof wg?e.changingThisBreaksApplicationSecurity:e}function Gu(e,t){let n=kte(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${sr})`)}return n===t}function kte(e){return e instanceof wg&&e.getTypeName()||null}function uD(e){let t=new Tw(e);return Rte()?new Aw(t):t}var Aw=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString($a(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Tw=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=$a(t),n}};function Rte(){try{return!!new window.DOMParser().parseFromString($a(""),"text/html")}catch{return!1}}var Nte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function KE(e){return e=String(e),e.match(Nte)?e:((typeof ngDevMode>"u"||ngDevMode)&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see ${sr})`),"unsafe:"+e)}function Br(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function zu(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var lD=Br("area,br,col,hr,img,wbr"),fD=Br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dD=Br("rp,rt"),Lte=zu(dD,fD),jte=zu(fD,Br("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Fte=zu(dD,Br("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Mw=zu(lD,jte,Fte,Lte),pD=Br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qte=Br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bte=Br("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Ow=zu(pD,qte,Bte),Ute=Br("script,style,template"),Pw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Kte(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=$te(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=ZO(t).toLowerCase();if(!Mw.hasOwnProperty(n))return this.sanitizedSomething=!0,!Ute.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Ow.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;pD[a]&&(c=KE(c)),this.buf.push(" ",s,'="',QO(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=ZO(t).toLowerCase();Mw.hasOwnProperty(n)&&!lD.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(QO(t))}};function Hte(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $te(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw hD(t);return t}function Kte(e){let t=e.firstChild;if(t&&Hte(e,t))throw hD(t);return t}function ZO(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function hD(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Wte=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vte=/([^\#-~ |!])/g;function QO(e){return e.replace(/&/g,"&amp;").replace(Wte,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Vte,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Jh;function Gte(e,t){let n=null;try{Jh=Jh||uD(e);let r=t?String(t):"";n=Jh.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Jh.getInertBodyElement(r)}while(r!==i);let s=new Pw,a=s.sanitizeChildren(Cw(n)||n);return(typeof ngDevMode>"u"||ngDevMode)&&s.sanitizedSomething&&console.warn(`WARNING: sanitizing HTML stripped some content, see ${sr}`),$a(a)}finally{if(n){let r=Cw(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Cw(e){return"content"in e&&zte(e)?e.content:null}function zte(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Yte=/^>|^->|<!--|-->|--!>|<!-$/g,Zte=/(<|>)/g,Qte="\u200B$1\u200B";function gD(e){return e.replace(Yte,t=>t.replace(Zte,Qte))}function mD(e,t){return e.createText(t)}function yD(e,t,n){e.setValue(t,n)}function vD(e,t){return e.createComment(gD(t))}function WE(e,t,n){return e.createElement(t,n)}function Ri(e,t,n,r,o){e.insertBefore(t,n,r,o)}function bD(e,t,n){ngDevMode&&F(t,"parent node must be defined"),e.appendChild(t,n)}function JO(e,t,n,r,o){r!==null?Ri(e,t,n,r,o):bD(e,t,n)}function Yu(e,t,n,r){e.removeChild(null,t,n,r)}function Jte(e,t,n){ngDevMode&&mi(n,"'newValue' should be a string"),e.setAttribute(t,"style",n)}function Xte(e,t,n){ngDevMode&&mi(n,"'newValue' should be a string"),n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function _D(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&See(e,t,r),o!==null&&Xte(e,t,o),i!==null&&Jte(e,t,i)}function ene(e){let t=S();e.src="",e.srcdoc=$a(""),Yu(t[pe],e)}function VE(e,t=!0){if(e[0]!=":")return[null,e];let n=e.indexOf(":",1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function wD(e,t,n){if(t!==void 0&&n!==void 0&&ID(t,n)!==$e.HTML)return e;let r=Zu();return r?GO(r.sanitize($e.HTML,e)||""):Gu(e,"HTML")?GO(Ko(e)):Gte(Vu(),he(e))}function ED(e){let t=Zu();return t?t.sanitize($e.STYLE,e)||"":Gu(e,"Style")?Ko(e):he(e)}function SD(e){let t=Zu();return t?t.sanitize($e.URL,e)||"":Gu(e,"URL")?Ko(e):KE(he(e))}function GE(e){let t=Zu();if(t)return YO(t.sanitize($e.RESOURCE_URL,e)||"");if(Gu(e,"ResourceURL"))return YO(Ko(e));throw new D(904,ngDevMode&&`unsafe value used in a resource URL context (see ${sr})`)}function xD(e){let t=Zu();if(t)return zO(t.sanitize($e.SCRIPT,e)||"");if(Gu(e,"Script"))return zO(Ko(e));throw new D(905,ngDevMode&&"unsafe value used in a script context")}function tne(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==1))throw new Error(`Unexpected interpolation in trusted HTML constant: ${e.join("?")}`);return $a(e[0])}function nne(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==1))throw new Error(`Unexpected interpolation in trusted URL constant: ${e.join("?")}`);return Dte(e[0])}function rne(e,t){switch(ID(e,t)){case $e.RESOURCE_URL:return GE;case $e.URL:return SD;default:return null}}function one(e,t,n){return rne(t,n)?.(e)??e}function ine(e){if(e.toLowerCase().startsWith("on")){let t=`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
33
- If '${e}' is a directive input, make sure the directive is imported by the current module.`;throw new D(306,t)}}function Zu(){let e=S();return e&&e[Vt].sanitizer}function ID(e,t){let[n,r]=AD(e);return s0(r,t,n)}function AD(e){e=e.toLowerCase();let t=VE(e,!1);if(t[0])return t;let r=ut()===-1?null:mn(),o=r?.namespace;if(e==="#host"&&r?.type===2){let i=rt(r,S());if(i.tagName&&(e=i.tagName.toLowerCase()),o==null){let s=i.namespaceURI;o=s&&aD[s]}}return[o,e]}var Xh=new Set(["href","xlink:href"]),sne={animate:{to:Xh,values:Xh,from:Xh},set:{to:Xh}};function TD(e,t,n){let o=ut()===-1?null:mn();if(o&&o.type!==2)return e;let[i,s]=AD(t);if(s0(s,n,i)!==$e.ATTRIBUTE_NO_BINDING)return e;let c=S();if(o){if(s==="iframe"){let l=rt(o,c);ene(l)}else if(i===na){let l=sne[s]?.[n.toLowerCase()];if(l){let f=rt(o,c),d=ane(f,l);if(d){let p=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to the <${s}> element${Ou(c)}. For security reasons, the \`${n}\` can be set on the <${s}> element as a static attribute only when the "attributeName" is set to '${d}'.
34
- To fix this, switch the \`${d}\` binding to a static attribute in a template or in host bindings section.`;throw new D(-910,p)}return e}}}let u=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to the <${s}> element${o?Ou(c):""}. For security reasons, the \`${n}\` can be set on the <${s}> element as a static attribute only.
35
- To fix this, switch the \`${n}\` binding to a static attribute in a template or in host bindings section.`;throw new D(-910,u)}function ane(e,t){for(let n of e.getAttributeNames()){if(n.toLowerCase()!=="attributename")continue;let r=e.getAttribute(n);if(r!==null&&t.has(r.toLowerCase()))return r}return null}var MD=!1,cne=new H(typeof ngDevMode>"u"||ngDevMode?"NG_REFLECT_FLAG":"",{factory:()=>MD});function une(e){return e=fne(e.replace(/[$@]/g,"_")),`ng-reflect-${e}`}var lne=/([A-Z])/g;function fne(e){return e.replace(lne,(...t)=>"-"+t[1].toLowerCase())}function dne(e){try{return e!=null?e.toString().slice(0,30):e}catch{return"[ERROR] Exception while trying to serialize the value"}}function pne(e){return e.ownerDocument.defaultView}function hne(e){return e.ownerDocument}function gne(e){return e.ownerDocument.body}var Pu="\uFFFD";function vr(e){return e instanceof Function?e():e}var XO=200;function zE(e){if(!_e(e))throw new D(906,`The ${ge(e)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}function mne(e,t,n){throw new D(-300,`Multiple components match node with tagname ${e.value}: ${ge(t)} and ${ge(n)}`)}function yne(e,t,n,r,o){let s=UE(o)?.type?.name,c=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${r?` for '${r}'`:""}: '${eP(t)}'. Current value: '${eP(n)}'.${s?` Expression location: ${s} component`:""}`;throw e&&(c+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook?"),new D(-100,c)}function eP(e){let t=String(e);try{(Array.isArray(e)||t==="[object Object]")&&(t=JSON.stringify(e))}catch{}return t.length>XO?t.substring(0,XO)+"\u2026":t}function tP(e,t,n,r,o){let[i,s,...a]=r.split(Pu),c=s,u=s;for(let l=0;l<a.length;l++){let f=t+l;c+=`${e[f]}${a[l]}`,u+=`${f===n?o:e[f]}${a[l]}`}return{propName:i,oldValue:c,newValue:u}}function vne(e,t,n,r){let o=e[x].data,i=o[t];if(typeof i=="string")return i.indexOf(Pu)>-1?tP(e,t,t,i,r):{propName:i,oldValue:n,newValue:r};if(i===null){let s=t-1;for(;typeof o[s]!="string"&&o[s+1]===null;)s--;let a=o[s];if(typeof a=="string"){let c=a.match(new RegExp(Pu,"g"));if(c&&c.length-1>t-s)return tP(e,s,t,a,r)}}return{propName:void 0,oldValue:n,newValue:r}}function bne(e,t,n){ngDevMode&&tn(t,"",'can not look for "" string.');let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var OD="ng-template";function _ne(e,t,n,r){ngDevMode&&re(n,n.toLowerCase(),"Class name expected to be lowercase.");let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&bne(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(YE(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function YE(e){return e.type===4&&e.value!==OD}function wne(e,t,n){let r=e.type===4&&!n?OD:e.value;return t===r}function Ene(e,t,n){ngDevMode&&F(t[0],"Selector should have a tag name");let r=4,o=e.attrs,i=o!==null?Ine(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Bn(r)&&!Bn(c))return!1;if(s&&Bn(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!wne(e,c,n)||c===""&&t.length===1){if(Bn(r))return!1;s=!0}}else if(r&8){if(o===null||!_ne(e,o,c,n)){if(Bn(r))return!1;s=!0}}else{let u=t[++a],l=Sne(c,o,YE(e),n);if(l===-1){if(Bn(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":(ngDevMode&&tn(o[l],0,"We do not match directives on namespaced attributes"),f=o[l+1].toLowerCase()),r&2&&u!==f){if(Bn(r))return!1;s=!0}}}}return Bn(r)||s}function Bn(e){return(e&1)===0}function Sne(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Ane(t,e)}function PD(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ene(e,t[r],n))return!0;return!1}function xne(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function Ine(e){for(let t=0;t<e.length;t++){let n=e[t];if(mC(n))return t}return e.length}function Ane(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Tne(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function nP(e,t){return e?":not("+t.trim()+")":t}function Mne(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Bn(s)&&(t+=nP(i,o),o=""),r=s,i=i||!Bn(r);n++}return o!==""&&(t+=nP(i,o)),t}function CD(e){return e.map(Mne).join(",")}function One(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Bn(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var xe=typeof ngDevMode>"u"||ngDevMode?{__brand__:"NO_CHANGE"}:{};function ZE(e,t,n,r,o,i,s,a,c,u,l){let f=Z+r,d=f+o,p=Pne(f,d),h=typeof u=="function"?u():u,m=p[x]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l};return ngDevMode&&Object.seal(m),m}function Pne(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:xe);return n}function DD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ZE(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function nm(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[Xe]=o,f[ae]=r|4|128|8|64|1024,(u!==null||e&&e[ae]&2048)&&(f[ae]|=2048),c0(f),ngDevMode&&t.declTNode&&e&&sn(t.declTNode,e),f[tt]=f[Mr]=e,f[Te]=n,f[Vt]=s||e&&e[Vt],ngDevMode&&F(f[Vt],"LViewEnvironment is required"),f[pe]=a||e&&e[pe],ngDevMode&&F(f[pe],"Renderer is required"),f[Se]=c||e&&e[Se]||null,f[_t]=i,f[nn]=Kee(),f[Po]=l,f[e0]=u,ngDevMode&&re(t.type==2?e!==null:!0,!0,"Embedded views must have parentLView"),f[at]=t.type==2?e[at]:f,f}function Cne(e,t,n){let r=rt(t,e),o=DD(n),i=e[Vt].rendererFactory,s=JE(e,nm(e,o,null,QE(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function QE(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Qu(e,t,n,r){if(n===0)return-1;ngDevMode&&(Pt(e),q_(e,t[x],"`LView` must be associated with `TView`!"),re(e.data.length,t.length,"Expecting LView to be same size as TView"),re(e.data.length,e.blueprint.length,"Expecting Blueprint to be same size as TView"),Rh(e));let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function JE(e,t){return e[Co]?e[nu][Mt]=t:e[Co]=t,e[nu]=t,t}function Dne(e=1){ngDevMode&&Mo(e,0,"Can only advance forward"),kD(fe(),S(),ut()+e,!!ngDevMode&&Nr())}function kD(e,t,n,r){if(ngDevMode&&fa(t[x],n),!r)if((t[ae]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ig(t,i,n)}else{let i=e.preOrderHooks;i!==null&&sg(t,i,0,n)}mr(n)}var Cu;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Cu||(Cu={}));function Sa(e,t,n,r){let o=te(null);try{if(ngDevMode){if(!e.inputs.hasOwnProperty(n))throw new Error(`ASSERTION ERROR: Directive ${e.type.name} does not have an input with a public name of "${n}"`);if(t instanceof Uo)throw new Error(`ASSERTION ERROR: Cannot write input to factory for type ${e.type.name}. Directive has not been created yet.`)}let[i,s,a]=e.inputs[n],c=null;(s&Cu.SignalBased)!==0&&(c=t[i][ze]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):cC(t,c,i,r)}finally{te(o)}}var Eg;(function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"})(Eg||(Eg={}));var Dw;function XE(e,t){return Dw(e,t)}function kne(e){Dw===void 0&&(Dw=e())}var Rne=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationsDisabled":"",{factory:()=>!1}),Nne=new H(typeof ngDevMode<"u"&&ngDevMode?"MaxAnimationTimeout":"",{factory:()=>Lne}),Lne=4e3,jne=!1,Ki=(typeof ngServerMode>"u"||!ngServerMode)&&typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function rm(e){return e[Se].get(Rne,jne)}function om(e,t){if(e==null||typeof e!="string"&&typeof e!="function")throw new D(650,`'${t}' value must be a string of CSS classes or an animation function, got ${ke(e)}`)}function im(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new D(650,`'${t}' can only be used on an element node, got ${ke(e.nodeType)}`)}function Fne(e,t,n){let r=Oa.get(e);if(r){for(let o of t)r.classList.push(o);for(let o of n)r.cleanupFns.push(o)}else Oa.set(e,{classList:t,cleanupFns:n})}function eS(e){let t=Oa.get(e);if(t){for(let n of t.cleanupFns)n();Oa.delete(e)}Ci.delete(e)}var qne=()=>{},Oa=new WeakMap,Ci=new WeakMap,Du=new WeakMap,hu=new WeakSet;function kw(e,t){let n=Du.get(e);if(n&&n.length>0){let r=n.findIndex(o=>o===t);r>-1&&n.splice(r,1)}n?.length===0&&Du.delete(e)}function Bne(e,t){let n=Du.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),hu.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function tS(e,t){let n=Du.get(e);n?n.includes(t)||n.push(t):Du.set(e,[t])}function Sg(e){let t=e[ur]??={};return t.enter??=new Map}function Ni(e){let t=e[ur]??={};return t.leave??=new Map}function RD(e){let t=typeof e=="function"?e():e,n=Array.isArray(t)?t:null;return typeof t=="string"&&(n=t.trim().split(/\s+/).filter(r=>r)),n}function Une(e,t){if(!Ki)return;let n=Oa.get(e);if(n&&n.classList.length>0&&Hne(e,n.classList))for(let r of n.classList)t.removeClass(e,r);eS(e)}function Hne(e,t){for(let n of t)if(e.classList.contains(n))return!0;return!1}function ku(e){return e.composedPath?e.composedPath()[0]:e.target}function nS(e,t){let n=Ci.get(t);return n===void 0?!0:t===ku(e)&&(n.animationName!==void 0&&e.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||e.propertyName===n.propertyName))}function sm(e,t,n){let r=e.get(t.index)??{animateFns:[]};r.animateFns.push(n),e.set(t.index,r)}function Rw(e,t){if(e)for(let n of e)n();for(let n of t)n()}function Nw(e,t){let n=Ni(e).get(t.index);n&&(n.resolvers=void 0)}function eg(e,t,n,r,o){kw(t,n),Rw(r,o),Nw(e,t)}function xg(e){if(!e)return 0;let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function Oi(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}function $ne(e){let t=Oi(e,"transition-property"),n=Oi(e,"transition-duration"),r=Oi(e,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<t.length;i++){let s=xg(r[i])+xg(n[i]);s>o.duration&&(o.propertyName=t[i],o.duration=s)}return o}function Kne(e){let t=Oi(e,"animation-name"),n=Oi(e,"animation-delay"),r=Oi(e,"animation-duration"),o=Oi(e,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<t.length;s++){let a=xg(n[s])+xg(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=t[s],i.duration=a)}return i}function ND(e,t){return e!==void 0&&e.duration>t.duration}function LD(e){return(e.animationName!=null||e.propertyName!=null)&&e.duration>0}function Wne(e,t){let n=getComputedStyle(e),r=Kne(n),o=$ne(n),i=r.duration>o.duration?r:o;ND(t.get(e),i)||LD(i)&&t.set(e,i)}function jD(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?Wne(e,t):Vne(e,t,r)}function Vne(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let o of n){let i=o.effect?.getTiming();if(i?.iterations===1/0)continue;let s=typeof i?.duration=="number"?i.duration:0,a=(i?.delay??0)+s,c=o.playbackRate;c!==void 0&&c!==0&&c!==1&&(a/=Math.abs(c));let u,l;o.animationName?l=o.animationName:u=o.transitionProperty,a>=r.duration&&(r={animationName:l,propertyName:u,duration:a})}ND(t.get(e),r)||LD(r)&&t.set(e,r)}var Pa=new Set,Ig;(function(e){e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER"})(Ig||(Ig={}));var Ka=new H(typeof ngDevMode<"u"&&ngDevMode?"TracingService":""),rP=new Set;function qt(e){rP.has(e)||(rP.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Ru=class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},FD=[0,1,2,3],Ag=class e{ngZone=z(Ye);scheduler=z(Pr);errorHandler=z(Or,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){z(Ka,{optional:!0})}execute(){let t=this.sequences.size>0;t&&Be(K.AfterRenderHooksStart),this.executing=!0;for(let n of FD)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[n];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),t&&Be(K.AfterRenderHooksEnd)}register(t){let{view:n}=t;n!==void 0?((n[xi]??=[]).push(t),pa(n),n[ae]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,n){return n?n.run(Ig.AFTER_NEXT_RENDER,t):t()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},Tg=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[xi];t&&(this.view[xi]=t.filter(n=>n!==this))}};function Lw(e,t){ngDevMode&&B0(Lw,"Call `afterEveryRender` outside of a reactive context. For example, schedule the render callback inside the component constructor`."),ngDevMode&&!t?.injector&&hn(Lw);let n=t?.injector??z(en);return typeof ngServerMode<"u"&&ngServerMode?oS:(qt("NgAfterRender"),qD(e,n,t,!1))}function rS(e,t){ngDevMode&&!t?.injector&&hn(rS);let n=t?.injector??z(en);return typeof ngServerMode<"u"&&ngServerMode?oS:(qt("NgAfterNextRender"),qD(e,n,t,!0))}function Gne(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function qD(e,t,n,r){let o=t.get(Ru);o.impl??=t.get(Ag);let i=t.get(Ka,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ln):null,a=t.get(ra,null,{optional:!0}),c=new Tg(o.impl,Gne(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var oS={destroy(){}},am=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationQueue":"",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:z(Ft)})});function BD(e,t,n){let r=e.get(am);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function zne(e,t){let n=e.get(am);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function Yne(e){let t=e.get(am);t.isScheduled||(rS(()=>{t.isScheduled=!1;for(let n of t.queue)n();t.queue.clear()},{injector:t.injector}),t.isScheduled=!0)}function cm(e){let t=e.get(am);t.scheduler=Yne,t.scheduler(e)}function iS(e,t){for(let[n,r]of t)BD(e,r.animateFns)}function oP(e,t,n,r){let o=e?.[ur]?.enter;t!==null&&o&&o.has(n.index)&&iS(r,o)}function wa(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Ot(o)?c=o:nt(o)&&(u=!0,ngDevMode&&F(o[Xe],"HOST must be defined for a component LView"),o=o[Xe]);let l=gt(o);e===0&&r!==null?(oP(a,r,i,n),s==null?bD(t,r,l):Ri(t,r,l,s||null,!0)):e===1&&r!==null?(oP(a,r,i,n),Ri(t,r,l,s||null,!0),Bne(i,l)):e===2?(a?.[ur]?.leave?.has(i.index)&&tS(i,l),hu.delete(l),iP(a,i,n,f=>{if(hu.has(l)){hu.delete(l);return}Yu(t,l,u,f)})):e===3&&(hu.delete(l),iP(a,i,n,()=>{t.destroyNode(l)})),c!=null&&ere(t,e,n,c,i,r,s)}}function UD(e,t){HD(e,t),t[Xe]=null,t[_t]=null}function Zne(e,t,n,r,o,i){r[Xe]=o,r[_t]=t,um(e,r,n,1,o,i)}function HD(e,t){t[Vt].changeDetectionScheduler?.notify(9),um(e,t,t[pe],2,null,null)}function Qne(e){let t=e[Co];if(!t)return Y0(e[x],e);for(;t;){let n=null;if(nt(t))n=t[Co];else{ngDevMode&&gn(t);let r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)nt(t)&&Y0(t[x],t),t=t[tt];t===null&&(t=e),nt(t)&&Y0(t[x],t),n=t&&t[Mt]}t=n}}function sS(e,t){ngDevMode&&gn(e),ngDevMode&&F(e[ko],"A projected view should belong to a non-empty projected views collection");let n=e[ko],r=n.indexOf(t);n.splice(r,1)}function Ju(e,t){if(fr(t))return;let n=t[pe];n.destroyNode&&um(e,t,n,3,null,null),Qne(t)}function Y0(e,t){if(fr(t))return;let n=te(null);try{t[ae]&=-129,t[ae]|=256,t[rn]&&as(t[rn]),KD(e,t),$D(e,t),t[x].type===1&&t[pe].destroy();let r=t[Do];if(r!==null&&Ot(t[tt])){r!==t[tt]&&sS(r,t);let o=t[In];o!==null&&o.detachView(e)}_w(t)}finally{te(n)}}function iP(e,t,n,r){let o=e?.[ur];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Pa.add(e[nn]),BD(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),Jne(e,r)}else e&&Pa.delete(e[nn]),r(!1)},o)}function Jne(e,t){let n=e[ur]?.running;if(n){n.then(()=>{e[ur].running=void 0,Pa.delete(e[nn]),t(!0)});return}t(!1)}function $D(e,t){ngDevMode&&yh($D.name);let n=e.cleanup,r=t[Ei];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];ngDevMode&&je(a,"cleanup target must be a number"),a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ei]=null);let o=t[Tr];if(o!==null){t[Tr]=null;for(let s=0;s<o.length;s++){let a=o[s];ngDevMode&&F_(a,"Expecting destroy hook to be a function."),a()}}let i=t[ru];if(i!==null){t[ru]=null;for(let s of i)s.destroy()}}function KD(e,t){ngDevMode&&yh(KD.name);let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Uo)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];Be(K.LifecycleHookStart,a,c);try{c.call(a)}finally{Be(K.LifecycleHookEnd,a,c)}}else{Be(K.LifecycleHookStart,o,i);try{i.call(o)}finally{Be(K.LifecycleHookEnd,o,i)}}}}}function aS(e,t,n){return WD(e,t.parent,n)}function WD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Xe];if(ngDevMode&&lt(r,7),qn(r)){ngDevMode&&sn(r,n);let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Un.None||o===Un.Emulated)return null}return rt(r,n)}function VD(e,t,n){return zD(e,t,n)}function GD(e,t,n){return e.type&40?rt(e,n):null}var zD=GD,jw;function YD(e,t){zD=e,jw=t}function cS(e,t,n,r){let o=aS(e,r,t),i=t[pe],s=r.parent||t[_t],a=VD(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)JO(i,o,n[c],a,!1);else JO(i,o,n,a,!1);jw!==void 0&&jw(i,r,t,n,o)}function gu(e,t){if(t!==null){ngDevMode&&lt(t,191);let n=t.type;if(n&3)return rt(t,e);if(n&4)return Fw(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return gu(e,r);{let o=e[t.index];return Ot(o)?Fw(-1,o):gt(o)}}else{if(n&128)return gu(e,t.next);if(n&32)return XE(t,e)()||gt(e[t.index]);{let r=ZD(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=ir(e[at]);return ngDevMode&&r0(o),gu(o,r)}else return gu(e,t.next)}}}return null}function ZD(e,t){if(t!==null){let r=e[at][_t],o=t.projection;return ngDevMode&&sO(e),r.projection[o]}return null}function Fw(e,t){let n=qe+e+1;if(n<t.length){let r=t[n],o=r[x].firstChild;if(o!==null)return gu(r,o)}return t[Rr]}function uS(e,t,n,r,o,i,s){for(;n!=null;){ngDevMode&&sn(n,r);let a=r[Se];if(n.type===128){n=n.next;continue}ngDevMode&&lt(n,63);let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ln(gt(c),r),n.flags|=2),!em(n))if(u&8)uS(e,t,n.child,r,o,i,!1),wa(t,e,a,o,c,n,i,r);else if(u&32){let l=XE(n,r),f;for(;f=l();)wa(t,e,a,o,f,n,i,r);wa(t,e,a,o,c,n,i,r)}else u&16?QD(e,t,r,n,o,i):(ngDevMode&&lt(n,7),wa(t,e,a,o,c,n,i,r));n=s?n.projectionNext:n.next}}function um(e,t,n,r,o,i){uS(n,r,e.firstChild,t,o,i,!1)}function Xne(e,t,n){let r=t[pe],o=aS(e,n,t),i=n.parent||t[_t],s=VD(i,n,t);QD(r,0,t,n,o,s)}function QD(e,t,n,r,o,i){let s=n[at],a=s[_t];ngDevMode&&re(typeof r.projection,"number","expecting projection index");let c=a.projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];wa(t,e,n[Se],o,l,r,i,n)}else{let u=c,l=s[tt];MC(r)&&(u.flags|=128),uS(e,t,u,l,o,i,!0)}}function ere(e,t,n,r,o,i,s){ngDevMode&&gn(r);let a=r[Rr],c=gt(r);a!==c&&wa(t,e,n,i,a,o,s);for(let u=qe;u<r.length;u++){let l=r[u];um(l[x],l,e,t,i,a)}}function tre(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Eg.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Eg.Important),e.setStyle(n,r,o,i))}}function JD(e,t,n,r,o){let i=ut(),s=r&2;try{mr(-1),s&&t.length>Z&&kD(e,t,Z,!!ngDevMode&&Nr());let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;Be(a,o,n),n(r,o)}finally{mr(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;Be(a,o,n)}}function lm(e,t,n){sre(e,t,n),(n.flags&64)===64&&are(e,t,n)}function Wa(e,t,n=rt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function nre(e,t,n,r){let i=r.get(VC,WC)||n===Un.ShadowDom||n===Un.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return rre(s),s}function rre(e){ore(e)}var ore=()=>null;function ire(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function lS(e,t,n,r,o,i){ngDevMode&&yi(r,xe,"Incoming value should never be NO_CHANGE.");let s=t[x];if(hm(e,s,t,n,r)){qn(e)&&XD(t,e.index),ngDevMode&&ek(t,s,e,n,r);return}e.type&3&&(n=ire(n)),fS(e,t,n,r,o,i)}function fS(e,t,n,r,o,i){if(e.type&3){let s=rt(e,t);ngDevMode&&(t[x].firstUpdatePass&&ine(n),Cte(s,n,e.value,t[x].schemas)||WO(n,e.value,e.type,t)),r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12&&ngDevMode&&!HE(t[x].schemas,e.value)&&WO(n,e.value,e.type,t)}function XD(e,t){ngDevMode&&an(e);let n=cn(t,e);n[ae]&16||(n[ae]|=64)}function qw(e,t,n,r){if(!e[Vt].ngReflect)return;let i=rt(t,e),s=e[pe];n=une(n);let a=dne(r);if(t.type&3)r==null?s.removeAttribute(i,n):s.setAttribute(i,n,a);else{let c=gD(`bindings=${JSON.stringify({[n]:a},null,2)}`);s.setValue(i,c)}}function ek(e,t,n,r,o){if(!e[Vt].ngReflect||!(n.type&7))return;let s=n.inputs?.[r],a=n.hostDirectiveInputs?.[r];if(a)for(let c=0;c<a.length;c+=2){let u=a[c],l=a[c+1],f=t.data[u];qw(e,n,f.inputs[l][0],o)}if(s)for(let c of s){let u=t.data[c];qw(e,n,u.inputs[r][0],o)}}function sre(e,t,n){let r=n.directiveStart,o=n.directiveEnd;qn(n)&&(ngDevMode&&lt(n,3),Cne(t,n,e.data[r+n.componentOffset])),e.firstCreatePass||bg(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Au(t,e,s,n);if(ln(c,t),i!==null&&lre(t,s-r,c,a,n,i),on(a)){let u=cn(n.index,t);u[Te]=Au(t,e,s,n)}}}function are(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=pO();try{mr(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Uh(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&cre(c,u)}}finally{mr(-1),Uh(s)}}function cre(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function dS(e,t){ngDevMode&&Pt(e),ngDevMode&&lt(t,15);let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];PD(t,i.selectors,!1)&&(r??=[],on(i)?(ngDevMode&&(lt(t,2,`"${t.value}" tags cannot be used as component hosts. Please use a different tag to activate the ${ke(i.type)} component.`),r.length&&on(r[0])&&mne(t,r.find(on).type,i.type)),r.unshift(i)):r.push(i))}return r}function ure(e,t,n,r,o,i){ngDevMode&&(yi(r,xe,"Incoming value should never be NO_CHANGE."),lt(e,2,`Attempted to set attribute \`${n}\` on a container node. Host bindings are not valid on ng-container or ng-template.`));let s=rt(e,t);fm(t[pe],s,i,e.value,n,r,o)}function fm(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?he(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function lre(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Sa(r,n,c,u),ngDevMode&&qw(e,o,r.inputs[c][0],u)}}function dm(e,t,n,r,o){let i=Z+n,s=t[x],a=o(s,t,e,r,n);t[i]=a,pr(e,!0);let c=e.type===2;return c?(_D(t[pe],a,e),(uO()===0||Ii(e))&&ln(a,t),lO()):ln(a,t),uu()&&(!c||!em(e))&&cS(s,t,a,e),e}function pm(e){let t=e;return E0()?S0():(ngDevMode&&nO(ce()),t=t.parent,pr(t,!1)),t}function Va(e,t,n,r,...o){if(e[r]===null&&!t.inputs?.[n]&&!t.hostDirectiveInputs?.[n]){(t.propertyBindings||(t.propertyBindings=[])).push(r);let s=n;o.length>0&&(s+=Pu+o.join(Pu)),e[r]=s}}function tk(e,t,n){return(e===null||on(e))&&(n=a0(n[t.index])),n[pe]}function pS(e,t){let n=e[Se];if(!n)return;let r;try{r=n.get(Lr,null)}catch{r=null}r?.(t)}function hm(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c];ngDevMode&&ct(n,u);let l=s[c+1],f=t.data[u];Sa(f,n[u],l,o),a=!0}if(i)for(let c of i){ngDevMode&&ct(n,c);let u=n[c],l=t.data[c];Sa(l,u,r,o),a=!0}return a}function fre(e,t){ngDevMode&&re(da(e),!0,"Should be run in creation mode");let n=cn(t,e),r=n[x];dre(r,n);let o=n[Xe];o!==null&&n[Po]===null&&(n[Po]=XC(o,n[Se])),Be(K.ComponentStart);try{Xu(r,n,n[Te])}finally{Be(K.ComponentEnd,n[Te])}}function dre(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Xu(e,t,n){ngDevMode&&re(da(t),!0,"Should be run in creation mode"),ngDevMode&&yh(Xu.name),Kh(t);try{let r=e.viewQuery;r!==null&&Iw(1,r,n);let o=e.template;o!==null&&JD(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[In]?.finishViewCreation(e),e.staticContentQueries&&nD(e,t),e.staticViewQueries&&Iw(2,e.viewQuery,n);let i=e.components;i!==null&&pre(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ae]&=-5,Wh()}}function pre(e,t){for(let n=0;n<t.length;n++)fre(e,t[n])}function Ga(e,t,n,r){let o=te(null);try{let i=t.tView;ngDevMode&&F(i,"TView must be defined for a template node."),ngDevMode&&sn(t,e);let a=e[ae]&4096?4096:16,c=nm(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];ngDevMode&&gn(u),c[Do]=u;let l=e[In];return l!==null&&(c[In]=l.createEmbeddedView(i)),Xu(i,c,n),c}finally{te(o)}}function Li(e,t){return!t||t.firstChild===null||MC(e)}var sP=!1,nk=new H(typeof ngDevMode<"u"&&ngDevMode?"exhaustive checkNoChanges":"");function Ca(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}ngDevMode&&lt(n,63);let i=t[n.index];i!==null&&r.push(gt(i)),Ot(i)&&rk(i,r);let s=n.type;if(s&8)Ca(e,t,n.child,r);else if(s&32){let a=XE(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ZD(t,n);if(Array.isArray(a))r.push(...a);else{let c=ir(t[at]);ngDevMode&&r0(c),Ca(c[x],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function rk(e,t){for(let n=qe;n<e.length;n++){let r=e[n],o=r[x].firstChild;o!==null&&Ca(r[x],r,o,t)}e[Rr]!==e[Xe]&&t.push(e[Rr])}function ok(e){if(e[xi]!==null){for(let t of e[xi])t.impl.addSequence(t);e[xi].length=0}}var ik=[];function hre(e){return e[rn]??gre(e)}function gre(e){let t=ik.pop()??Object.create(yre);return t.lView=e,t}function mre(e){e.lView[rn]!==e&&(e.lView=null,ik.push(e))}var yre={...os,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{pa(e.lView)},consumerOnSignalRead(){this.lView[rn]=this}};function vre(e){let t=e[rn]??Object.create(bre);return t.lView=e,t}var bre={...os,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=ir(e.lView);for(;t&&!sk(t[x]);)t=ir(t);t&&u0(t)},consumerOnSignalRead(){this.lView[rn]=this}};function sk(e){return e.type!==2}function _re(e){return e.kind==="template"}function ak(e){if(e[ru]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ru])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ae]&8192)}}var wre=100;function gm(e,t=0){let r=e[Vt].rendererFactory,o=!!ngDevMode&&Nr();o||r.begin?.();try{Ere(e,t)}finally{o||r.end?.()}}function Ere(e,t){let n=A0();try{if(T0(!0),Bw(e,t),ngDevMode&&Bh())return;let r=0;for(;su(e);){if(r===wre)throw new D(103,ngDevMode&&"Infinite change detection while trying to refresh views. There may be components which each cause the other to require a refresh, causing an infinite loop.");r++,Bw(e,1)}}finally{T0(n)}}function ck(e,t){I0(t?Ao.Exhaustive:Ao.OnlyDirtyViews);try{gm(e)}finally{I0(Ao.Off)}}function uk(e,t,n,r){if(ngDevMode&&re(da(t),!1,"Should be run in update mode"),fr(t))return;let o=t[ae],i=ngDevMode&&Nr(),s=ngDevMode&&Bh();Kh(t);let a=!0,c=null,u=null;i||(sk(e)?(u=hre(t),c=ss(u)):ei()===null?(a=!1,u=vre(t),c=ss(u)):t[rn]&&(as(t[rn]),t[rn]=null));try{c0(t),M0(e.bindingStartIndex),n!==null&&JD(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&ig(t,p,null)}else{let p=e.preOrderHooks;p!==null&&sg(t,p,0,null),K0(t,0)}if(s||Sre(t),ak(t),lk(t,0),e.contentQueries!==null&&nD(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&ig(t,p)}else{let p=e.contentHooks;p!==null&&sg(t,p,1),K0(t,1)}Ire(e,t);let f=e.components;f!==null&&dk(t,f,0);let d=e.viewQuery;if(d!==null&&Iw(2,d,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&ig(t,p)}else{let p=e.viewHooks;p!==null&&sg(t,p,2),K0(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Dh]){for(let p of t[Dh])p();t[Dh]=null}i||(ok(t),t[ae]&=-73)}catch(l){throw i||pa(t),l}finally{u!==null&&(vc(u,c),a&&mre(u)),Wh()}}function lk(e,t){for(let n=NC(e);n!==null;n=LC(n))for(let r=qe;r<n.length;r++){let o=n[r];fk(o,t)}}function Sre(e){for(let t=NC(e);t!==null;t=LC(t)){if(!(t[ae]&2))continue;let n=t[ko];ngDevMode&&F(n,"Transplanted View flags set but missing MOVED_VIEWS");for(let r=0;r<n.length;r++){let o=n[r];u0(o)}}}function xre(e,t,n){ngDevMode&&re(da(e),!1,"Should be run in update mode"),Be(K.ComponentStart);let r=cn(t,e);try{fk(r,n)}finally{Be(K.ComponentEnd,r[Te])}}function fk(e,t){Lh(e)&&Bw(e,t)}function Bw(e,t){let n=ngDevMode&&Nr(),r=e[x],o=e[ae],i=e[rn],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0&&!n),s||=!!(o&1024),s||=!!(i?.dirty&&bc(i)),s||=!!(ngDevMode&&Bh()),i&&(i.dirty=!1),e[ae]&=-9217,s)uk(r,e,r.template,e[Te]);else if(o&8192){let a=te(null);try{n||ak(e),lk(e,1);let c=r.components;c!==null&&dk(e,c,1),n||ok(e)}finally{te(a)}}}function dk(e,t,n){for(let r=0;r<t.length;r++)xre(e,t[r],n)}function Ire(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)mr(~o);else{let i=o,s=n[++r],a=n[++r];dO(s,i);let c=t[i];Be(K.HostBindingsUpdateStart,c);try{a(2,c)}finally{Be(K.HostBindingsUpdateEnd,c)}}}}finally{mr(-1)}}function el(e,t){let n=A0()?64:1088;for(e[Vt].changeDetectionScheduler?.notify(t);e;){e[ae]|=n;let r=ir(e);if(lr(e)&&!r)return e;e=r}return null}function pk(e,t,n,r){ngDevMode&&an(t);let o=[e,!0,0,t,null,r,null,n,null,null];return ngDevMode&&re(o.length,qe,"Should allocate correct number of slots for LContainer header."),o}function hk(e,t){let n=qe+t;if(n<e.length){let r=e[n];return ngDevMode&&an(r),r}}function za(e,t,n,r=!0){let o=t[x];if(Are(o,t,e,n),r){let s=Fw(n,e),a=t[pe],c=a.parentNode(e[Rr]);c!==null&&Zne(o,e[_t],a,t,c,s)}let i=t[Po];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function hS(e,t){let n=Nu(e,t);return n!==void 0&&Ju(n[x],n),n}function Nu(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n];if(r){let o=r[Do];o!==null&&o!==e&&sS(o,r),t>0&&(e[n-1][Mt]=r[Mt]);let i=Xc(e,qe+t);UD(r[x],r);let s=i[In];s!==null&&s.detachView(i[x]),r[tt]=null,r[Mt]=null,r[ae]&=-129}return r}function Are(e,t,n,r){ngDevMode&&an(t),ngDevMode&&gn(n);let o=qe+r,i=n.length;r>0&&(n[o-1][Mt]=t),r<i-qe?(t[Mt]=n[o],V_(n,qe+r,t)):(n.push(t),t[Mt]=null),t[tt]=n;let s=t[Do];s!==null&&n!==s&&gk(s,t);let a=t[In];a!==null&&a.insertView(e),jh(t),t[ae]|=128}function gk(e,t){ngDevMode&&F(t,"LView required"),ngDevMode&&gn(e);let n=e[ko],r=t[tt];if(ngDevMode&&F(r,"missing parent"),nt(r))e[ae]|=2;else{let o=r[tt][at];ngDevMode&&F(o,"Missing insertedComponentLView");let i=t[at];ngDevMode&&F(i,"Missing declaredComponentLView"),i!==o&&(e[ae]|=2)}n===null?e[ko]=[t]:n.push(t)}var Da=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[x];return Ca(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[Te]}set context(t){ngDevMode&&console.warn("Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated."),this._lView[Te]=t}get destroyed(){return fr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[tt];if(Ot(t)){let n=t[ou],r=n?n.indexOf(this):-1;r>-1&&(ngDevMode&&re(r,t.indexOf(this._lView)-qe,"An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array."),Nu(t,r),Xc(n,r))}this._attachedToViewContainer=!1}Ju(this._lView[x],this._lView)}onDestroy(t){au(this._lView,t)}markForCheck(){el(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ae]&=-129}reattach(){jh(this._lView),this._lView[ae]|=128}detectChanges(){this._lView[ae]|=1024,gm(this._lView)}checkNoChanges(){if(ngDevMode){try{this.exhaustive??=this._lView[Se].get(nk,sP)}catch{this.exhaustive=sP}ck(this._lView,this.exhaustive)}}attachToViewContainerRef(){if(this._appRef)throw new D(902,ngDevMode&&"This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=lr(this._lView),n=this._lView[Do];n!==null&&!t&&sS(n,this._lView),HD(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,ngDevMode&&"This view is already attached to a ViewContainer!");this._appRef=t;let n=lr(this._lView),r=this._lView[Do];r!==null&&!n&&gk(r,this._lView),jh(this._lView)}};var ka=class{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Tre;constructor(t,n,r){this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Ga(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Da(o)}};function Tre(){return mm(ce(),S())}function mm(e,t){return e.type&4?(ngDevMode&&F(e.tView,"TView must be allocated"),new ka(t,e,Ua(e,t))):null}var Uw="<-- AT THIS LOCATION",Mre="/guide/hydration#third-party-scripts-with-dom-manipulation";function Ore(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";case 128:return"@let";default:return"<unknown>"}}function Pre(e){if(mk(e),!e.nextSibling){let t=`During hydration Angular expected more sibling nodes to be present.
36
+ 2. To allow any property add 'NO_ERRORS_SCHEMA' to the ${a} of this component.`;cD(s)}function cD(e){if(Lte)throw new D(303,e);console.error(bt(303,e))}function UE(e){!ngDevMode&&X("Must never be called in production mode");let n=e[at][Te];return n&&n.constructor?_e(n.constructor):null}function nm(e){return!ngDevMode&&X("Must never be called in production mode"),!!UE(e)?.standalone}function Pu(e){!ngDevMode&&X("Must never be called in production mode");let n=UE(e)?.type?.name;return n?` (used in the '${n}' component template)`:""}var ZO=new Map([["ngIf","NgIf"],["ngFor","NgFor"],["ngSwitchCase","NgSwitchCase"],["ngSwitchDefault","NgSwitchDefault"]]);function HE(e,t){if(e!==null)for(let n=0;n<e.length;n++){let r=e[n];if(r===Rte||r===kte&&t&&t.indexOf("-")>-1)return!0}return!1}var uD="svg",lD="math",fD={"http://www.w3.org/2000/svg":uD,"http://www.w3.org/1998/Math/MathML":lD},Qh;function dD(){if(Qh===void 0&&(Qh=null,At.trustedTypes))try{Qh=At.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Qh}function $a(e){return dD()?.createHTML(e)||e}function Fte(e){return dD()?.createScriptURL(e)||e}var Jh;function $E(){if(Jh===void 0&&(Jh=null,At.trustedTypes))try{Jh=At.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Jh}function QO(e){return $E()?.createHTML(e)||e}function JO(e){return $E()?.createScript(e)||e}function XO(e){return $E()?.createScriptURL(e)||e}var Eg=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${sr})`}};function Ko(e){return e instanceof Eg?e.changingThisBreaksApplicationSecurity:e}function zu(e,t){let n=qte(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${sr})`)}return n===t}function qte(e){return e instanceof Eg&&e.getTypeName()||null}function pD(e){let t=new Tw(e);return Bte()?new Aw(t):t}var Aw=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString($a(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Tw=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=$a(t),n}};function Bte(){try{return!!new window.DOMParser().parseFromString($a(""),"text/html")}catch{return!1}}var Ute=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function KE(e){return e=String(e),e.match(Ute)?e:((typeof ngDevMode>"u"||ngDevMode)&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see ${sr})`),"unsafe:"+e)}function Br(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Yu(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var hD=Br("area,br,col,hr,img,wbr"),gD=Br("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),mD=Br("rp,rt"),Hte=Yu(mD,gD),$te=Yu(gD,Br("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Kte=Yu(mD,Br("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Mw=Yu(hD,$te,Kte,Hte),yD=Br("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wte=Br("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vte=Br("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Ow=Yu(yD,Wte,Vte),Gte=Br("script,style,template"),Pw=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Zte(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Yte(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=eP(t).toLowerCase();if(!Mw.hasOwnProperty(n))return this.sanitizedSomething=!0,!Gte.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Ow.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;yD[a]&&(c=KE(c)),this.buf.push(" ",s,'="',tP(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=eP(t).toLowerCase();Mw.hasOwnProperty(n)&&!hD.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(tP(t))}};function zte(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Yte(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw vD(t);return t}function Zte(e){let t=e.firstChild;if(t&&zte(e,t))throw vD(t);return t}function eP(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function vD(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Qte=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Jte=/([^\#-~ |!])/g;function tP(e){return e.replace(/&/g,"&amp;").replace(Qte,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Jte,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Xh;function Xte(e,t){let n=null;try{Xh=Xh||pD(e);let r=t?String(t):"";n=Xh.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Xh.getInertBodyElement(r)}while(r!==i);let s=new Pw,a=s.sanitizeChildren(Cw(n)||n);return(typeof ngDevMode>"u"||ngDevMode)&&s.sanitizedSomething&&console.warn(`WARNING: sanitizing HTML stripped some content, see ${sr}`),$a(a)}finally{if(n){let r=Cw(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Cw(e){return"content"in e&&ene(e)?e.content:null}function ene(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var tne=/^>|^->|<!--|-->|--!>|<!-$/g,nne=/(<|>)/g,rne="\u200B$1\u200B";function bD(e){return e.replace(tne,t=>t.replace(nne,rne))}function _D(e,t){return e.createText(t)}function wD(e,t,n){e.setValue(t,n)}function ED(e,t){return e.createComment(bD(t))}function WE(e,t,n){return e.createElement(t,n)}function Ri(e,t,n,r,o){e.insertBefore(t,n,r,o)}function SD(e,t,n){ngDevMode&&F(t,"parent node must be defined"),e.appendChild(t,n)}function nP(e,t,n,r,o){r!==null?Ri(e,t,n,r,o):SD(e,t,n)}function Zu(e,t,n,r){e.removeChild(null,t,n,r)}function one(e,t,n){ngDevMode&&mi(n,"'newValue' should be a string"),e.setAttribute(t,"style",n)}function ine(e,t,n){ngDevMode&&mi(n,"'newValue' should be a string"),n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function xD(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Oee(e,t,r),o!==null&&ine(e,t,o),i!==null&&one(e,t,i)}function sne(e){let t=S();e.src="",e.srcdoc=$a(""),Zu(t[pe],e)}function VE(e,t=!0){if(e[0]!=":")return[null,e];let n=e.indexOf(":",1);if(n===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return[null,e]}return[e.slice(1,n),e.slice(n+1)]}function ID(e,t,n){if(t!==void 0&&n!==void 0&&OD(t,n)!==$e.HTML)return e;let r=Qu();return r?QO(r.sanitize($e.HTML,e)||""):zu(e,"HTML")?QO(Ko(e)):Xte(Gu(),he(e))}function AD(e){let t=Qu();return t?t.sanitize($e.STYLE,e)||"":zu(e,"Style")?Ko(e):he(e)}function TD(e){let t=Qu();return t?t.sanitize($e.URL,e)||"":zu(e,"URL")?Ko(e):KE(he(e))}function GE(e){let t=Qu();if(t)return XO(t.sanitize($e.RESOURCE_URL,e)||"");if(zu(e,"ResourceURL"))return XO(Ko(e));throw new D(904,ngDevMode&&`unsafe value used in a resource URL context (see ${sr})`)}function MD(e){let t=Qu();if(t)return JO(t.sanitize($e.SCRIPT,e)||"");if(zu(e,"Script"))return JO(Ko(e));throw new D(905,ngDevMode&&"unsafe value used in a script context")}function ane(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==1))throw new Error(`Unexpected interpolation in trusted HTML constant: ${e.join("?")}`);return $a(e[0])}function cne(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||e.length!==1))throw new Error(`Unexpected interpolation in trusted URL constant: ${e.join("?")}`);return Fte(e[0])}function une(e,t){switch(OD(e,t)){case $e.RESOURCE_URL:return GE;case $e.URL:return TD;default:return null}}function lne(e,t,n){return une(t,n)?.(e)??e}function fne(e){if(e.toLowerCase().startsWith("on")){let t=`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
37
+ If '${e}' is a directive input, make sure the directive is imported by the current module.`;throw new D(306,t)}}function Qu(){let e=S();return e&&e[Vt].sanitizer}function OD(e,t){let[n,r]=PD(e);return s0(r,t,n)}function PD(e){e=e.toLowerCase();let t=VE(e,!1);if(t[0])return t;let r=ut()===-1?null:mn(),o=r?.namespace;if(e==="#host"&&r?.type===2){let i=rt(r,S());if(i.tagName&&(e=i.tagName.toLowerCase()),o==null){let s=i.namespaceURI;o=s&&fD[s]}}return[o,e]}var eg=new Set(["href","xlink:href"]),dne={animate:{to:eg,values:eg,from:eg},set:{to:eg}};function CD(e,t,n){let o=ut()===-1?null:mn();if(o&&o.type!==2)return e;let[i,s]=PD(t);if(s0(s,n,i)!==$e.ATTRIBUTE_NO_BINDING)return e;let c=S();if(o){if(s==="iframe"){let l=rt(o,c);sne(l)}else if(i===na){let l=dne[s]?.[n.toLowerCase()];if(l){let f=rt(o,c),d=pne(f,l);if(d){let p=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to the <${s}> element${Pu(c)}. For security reasons, the \`${n}\` can be set on the <${s}> element as a static attribute only when the "attributeName" is set to '${d}'.
38
+ To fix this, switch the \`${d}\` binding to a static attribute in a template or in host bindings section.`;throw new D(-910,p)}return e}}}let u=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to the <${s}> element${o?Pu(c):""}. For security reasons, the \`${n}\` can be set on the <${s}> element as a static attribute only.
39
+ To fix this, switch the \`${n}\` binding to a static attribute in a template or in host bindings section.`;throw new D(-910,u)}function pne(e,t){for(let n of e.getAttributeNames()){if(n.toLowerCase()!=="attributename")continue;let r=e.getAttribute(n);if(r!==null&&t.has(r.toLowerCase()))return r}return null}var DD=!1,hne=new H(typeof ngDevMode>"u"||ngDevMode?"NG_REFLECT_FLAG":"",{factory:()=>DD});function gne(e){return e=yne(e.replace(/[$@]/g,"_")),`ng-reflect-${e}`}var mne=/([A-Z])/g;function yne(e){return e.replace(mne,(...t)=>"-"+t[1].toLowerCase())}function vne(e){try{return e!=null?e.toString().slice(0,30):e}catch{return"[ERROR] Exception while trying to serialize the value"}}function bne(e){return e.ownerDocument.defaultView}function _ne(e){return e.ownerDocument}function wne(e){return e.ownerDocument.body}var Cu="\uFFFD";function vr(e){return e instanceof Function?e():e}var rP=200;function zE(e){if(!_e(e))throw new D(906,`The ${ge(e)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}function Ene(e,t,n){throw new D(-300,`Multiple components match node with tagname ${e.value}: ${ge(t)} and ${ge(n)}`)}function Sne(e,t,n,r,o){let s=UE(o)?.type?.name,c=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${r?` for '${r}'`:""}: '${oP(t)}'. Current value: '${oP(n)}'.${s?` Expression location: ${s} component`:""}`;throw e&&(c+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook?"),new D(-100,c)}function oP(e){let t=String(e);try{(Array.isArray(e)||t==="[object Object]")&&(t=JSON.stringify(e))}catch{}return t.length>rP?t.substring(0,rP)+"\u2026":t}function iP(e,t,n,r,o){let[i,s,...a]=r.split(Cu),c=s,u=s;for(let l=0;l<a.length;l++){let f=t+l;c+=`${e[f]}${a[l]}`,u+=`${f===n?o:e[f]}${a[l]}`}return{propName:i,oldValue:c,newValue:u}}function xne(e,t,n,r){let o=e[x].data,i=o[t];if(typeof i=="string")return i.indexOf(Cu)>-1?iP(e,t,t,i,r):{propName:i,oldValue:n,newValue:r};if(i===null){let s=t-1;for(;typeof o[s]!="string"&&o[s+1]===null;)s--;let a=o[s];if(typeof a=="string"){let c=a.match(new RegExp(Cu,"g"));if(c&&c.length-1>t-s)return iP(e,s,t,a,r)}}return{propName:void 0,oldValue:n,newValue:r}}function Ine(e,t,n){ngDevMode&&tn(t,"",'can not look for "" string.');let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var kD="ng-template";function Ane(e,t,n,r){ngDevMode&&re(n,n.toLowerCase(),"Class name expected to be lowercase.");let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Ine(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(YE(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function YE(e){return e.type===4&&e.value!==kD}function Tne(e,t,n){let r=e.type===4&&!n?kD:e.value;return t===r}function Mne(e,t,n){ngDevMode&&F(t[0],"Selector should have a tag name");let r=4,o=e.attrs,i=o!==null?Cne(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Bn(r)&&!Bn(c))return!1;if(s&&Bn(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Tne(e,c,n)||c===""&&t.length===1){if(Bn(r))return!1;s=!0}}else if(r&8){if(o===null||!Ane(e,o,c,n)){if(Bn(r))return!1;s=!0}}else{let u=t[++a],l=One(c,o,YE(e),n);if(l===-1){if(Bn(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":(ngDevMode&&tn(o[l],0,"We do not match directives on namespaced attributes"),f=o[l+1].toLowerCase()),r&2&&u!==f){if(Bn(r))return!1;s=!0}}}}return Bn(r)||s}function Bn(e){return(e&1)===0}function One(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Dne(t,e)}function RD(e,t,n=!1){for(let r=0;r<t.length;r++)if(Mne(e,t[r],n))return!0;return!1}function Pne(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function Cne(e){for(let t=0;t<e.length;t++){let n=e[t];if(_C(n))return t}return e.length}function Dne(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function kne(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function sP(e,t){return e?":not("+t.trim()+")":t}function Rne(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Bn(s)&&(t+=sP(i,o),o=""),r=s,i=i||!Bn(r);n++}return o!==""&&(t+=sP(i,o)),t}function ND(e){return e.map(Rne).join(",")}function Nne(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Bn(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var xe=typeof ngDevMode>"u"||ngDevMode?{__brand__:"NO_CHANGE"}:{};function ZE(e,t,n,r,o,i,s,a,c,u,l){let f=Z+r,d=f+o,p=Lne(f,d),h=typeof u=="function"?u():u,m=p[x]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l};return ngDevMode&&Object.seal(m),m}function Lne(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:xe);return n}function LD(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=ZE(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function rm(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[Xe]=o,f[ae]=r|4|128|8|64|1024,(u!==null||e&&e[ae]&2048)&&(f[ae]|=2048),c0(f),ngDevMode&&t.declTNode&&e&&sn(t.declTNode,e),f[tt]=f[Mr]=e,f[Te]=n,f[Vt]=s||e&&e[Vt],ngDevMode&&F(f[Vt],"LViewEnvironment is required"),f[pe]=a||e&&e[pe],ngDevMode&&F(f[pe],"Renderer is required"),f[Se]=c||e&&e[Se]||null,f[_t]=i,f[nn]=Zee(),f[Po]=l,f[e0]=u,ngDevMode&&re(t.type==2?e!==null:!0,!0,"Embedded views must have parentLView"),f[at]=t.type==2?e[at]:f,f}function jne(e,t,n){let r=rt(t,e),o=LD(n),i=e[Vt].rendererFactory,s=JE(e,rm(e,o,null,QE(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function QE(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Ju(e,t,n,r){if(n===0)return-1;ngDevMode&&(Pt(e),q_(e,t[x],"`LView` must be associated with `TView`!"),re(e.data.length,t.length,"Expecting LView to be same size as TView"),re(e.data.length,e.blueprint.length,"Expecting Blueprint to be same size as TView"),Nh(e));let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function JE(e,t){return e[Co]?e[ru][Mt]=t:e[Co]=t,e[ru]=t,t}function Fne(e=1){ngDevMode&&Mo(e,0,"Can only advance forward"),jD(fe(),S(),ut()+e,!!ngDevMode&&Nr())}function jD(e,t,n,r){if(ngDevMode&&fa(t[x],n),!r)if((t[ae]&3)===3){let i=e.preOrderCheckHooks;i!==null&&sg(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ag(t,i,0,n)}mr(n)}var Du;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Du||(Du={}));function Sa(e,t,n,r){let o=te(null);try{if(ngDevMode){if(!e.inputs.hasOwnProperty(n))throw new Error(`ASSERTION ERROR: Directive ${e.type.name} does not have an input with a public name of "${n}"`);if(t instanceof Uo)throw new Error(`ASSERTION ERROR: Cannot write input to factory for type ${e.type.name}. Directive has not been created yet.`)}let[i,s,a]=e.inputs[n],c=null;(s&Du.SignalBased)!==0&&(c=t[i][ze]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):dC(t,c,i,r)}finally{te(o)}}var Sg;(function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"})(Sg||(Sg={}));var Dw;function XE(e,t){return Dw(e,t)}function qne(e){Dw===void 0&&(Dw=e())}var Bne=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationsDisabled":"",{factory:()=>!1}),Une=new H(typeof ngDevMode<"u"&&ngDevMode?"MaxAnimationTimeout":"",{factory:()=>Hne}),Hne=4e3,$ne=!1,Ki=(typeof ngServerMode>"u"||!ngServerMode)&&typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function om(e){return e[Se].get(Bne,$ne)}function im(e,t){if(e==null||typeof e!="string"&&typeof e!="function")throw new D(650,`'${t}' value must be a string of CSS classes or an animation function, got ${ke(e)}`)}function sm(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new D(650,`'${t}' can only be used on an element node, got ${ke(e.nodeType)}`)}function Kne(e,t,n){let r=Oa.get(e);if(r){for(let o of t)r.classList.push(o);for(let o of n)r.cleanupFns.push(o)}else Oa.set(e,{classList:t,cleanupFns:n})}function eS(e){let t=Oa.get(e);if(t){for(let n of t.cleanupFns)n();Oa.delete(e)}Ci.delete(e)}var Wne=()=>{},Oa=new WeakMap,Ci=new WeakMap,ku=new WeakMap,gu=new WeakSet;function kw(e,t){let n=ku.get(e);if(n&&n.length>0){let r=n.findIndex(o=>o===t);r>-1&&n.splice(r,1)}n?.length===0&&ku.delete(e)}function Vne(e,t){let n=ku.get(e);if(!n||n.length===0)return;let r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){let s=n[i],a=s.parentNode;s===t?(n.splice(i,1),gu.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function tS(e,t){let n=ku.get(e);n?n.includes(t)||n.push(t):ku.set(e,[t])}function xg(e){let t=e[ur]??={};return t.enter??=new Map}function Ni(e){let t=e[ur]??={};return t.leave??=new Map}function FD(e){let t=typeof e=="function"?e():e,n=Array.isArray(t)?t:null;return typeof t=="string"&&(n=t.trim().split(/\s+/).filter(r=>r)),n}function Gne(e,t){if(!Ki)return;let n=Oa.get(e);if(n&&n.classList.length>0&&zne(e,n.classList))for(let r of n.classList)t.removeClass(e,r);eS(e)}function zne(e,t){for(let n of t)if(e.classList.contains(n))return!0;return!1}function Ru(e){return e.composedPath?e.composedPath()[0]:e.target}function nS(e,t){let n=Ci.get(t);return n===void 0?!0:t===Ru(e)&&(n.animationName!==void 0&&e.animationName===n.animationName||n.propertyName!==void 0&&(n.propertyName==="all"||e.propertyName===n.propertyName))}function am(e,t,n){let r=e.get(t.index)??{animateFns:[]};r.animateFns.push(n),e.set(t.index,r)}function Rw(e,t){if(e)for(let n of e)n();for(let n of t)n()}function Nw(e,t){let n=Ni(e).get(t.index);n&&(n.resolvers=void 0)}function tg(e,t,n,r,o){kw(t,n),Rw(r,o),Nw(e,t)}function Ig(e){if(!e)return 0;let t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function Oi(e,t){return e.getPropertyValue(t).split(",").map(r=>r.trim())}function Yne(e){let t=Oi(e,"transition-property"),n=Oi(e,"transition-duration"),r=Oi(e,"transition-delay"),o={propertyName:"",duration:0,animationName:void 0};for(let i=0;i<t.length;i++){let s=Ig(r[i])+Ig(n[i]);s>o.duration&&(o.propertyName=t[i],o.duration=s)}return o}function Zne(e){let t=Oi(e,"animation-name"),n=Oi(e,"animation-delay"),r=Oi(e,"animation-duration"),o=Oi(e,"animation-iteration-count"),i={animationName:"",propertyName:void 0,duration:0};for(let s=0;s<t.length;s++){let a=Ig(n[s])+Ig(r[s]),c=o[s];a>i.duration&&c!=="infinite"&&(i.animationName=t[s],i.duration=a)}return i}function qD(e,t){return e!==void 0&&e.duration>t.duration}function BD(e){return(e.animationName!=null||e.propertyName!=null)&&e.duration>0}function Qne(e,t){let n=getComputedStyle(e),r=Zne(n),o=Yne(n),i=r.duration>o.duration?r:o;qD(t.get(e),i)||BD(i)&&t.set(e,i)}function UD(e,t,n){if(!n)return;let r=e.getAnimations();return r.length===0?Qne(e,t):Jne(e,t,r)}function Jne(e,t,n){let r={animationName:void 0,propertyName:void 0,duration:0};for(let o of n){let i=o.effect?.getTiming();if(i?.iterations===1/0)continue;let s=typeof i?.duration=="number"?i.duration:0,a=(i?.delay??0)+s,c=o.playbackRate;c!==void 0&&c!==0&&c!==1&&(a/=Math.abs(c));let u,l;o.animationName?l=o.animationName:u=o.transitionProperty,a>=r.duration&&(r={animationName:l,propertyName:u,duration:a})}qD(t.get(e),r)||BD(r)&&t.set(e,r)}var Pa=new Set,Ag;(function(e){e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER"})(Ag||(Ag={}));var Ka=new H(typeof ngDevMode<"u"&&ngDevMode?"TracingService":""),aP=new Set;function qt(e){aP.has(e)||(aP.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Nu=class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},HD=[0,1,2,3],Tg=class e{ngZone=z(Ye);scheduler=z(Pr);errorHandler=z(Or,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){z(Ka,{optional:!0})}execute(){let t=this.sequences.size>0;t&&Be(K.AfterRenderHooksStart),this.executing=!0;for(let n of HD)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[n];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),t&&Be(K.AfterRenderHooksEnd)}register(t){let{view:n}=t;n!==void 0?((n[xi]??=[]).push(t),pa(n),n[ae]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,n){return n?n.run(Ag.AFTER_NEXT_RENDER,t):t()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},Mg=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[xi];t&&(this.view[xi]=t.filter(n=>n!==this))}};function Lw(e,t){ngDevMode&&B0(Lw,"Call `afterEveryRender` outside of a reactive context. For example, schedule the render callback inside the component constructor`."),ngDevMode&&!t?.injector&&hn(Lw);let n=t?.injector??z(en);return typeof ngServerMode<"u"&&ngServerMode?oS:(qt("NgAfterRender"),$D(e,n,t,!1))}function rS(e,t){ngDevMode&&!t?.injector&&hn(rS);let n=t?.injector??z(en);return typeof ngServerMode<"u"&&ngServerMode?oS:(qt("NgAfterNextRender"),$D(e,n,t,!0))}function Xne(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function $D(e,t,n,r){let o=t.get(Nu);o.impl??=t.get(Tg);let i=t.get(Ka,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Ln):null,a=t.get(ra,null,{optional:!0}),c=new Mg(o.impl,Xne(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var oS={destroy(){}},cm=new H(typeof ngDevMode<"u"&&ngDevMode?"AnimationQueue":"",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:z(Ft)})});function KD(e,t,n){let r=e.get(cm);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function ere(e,t){let n=e.get(cm);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function tre(e){let t=e.get(cm);t.isScheduled||(rS(()=>{t.isScheduled=!1;for(let n of t.queue)n();t.queue.clear()},{injector:t.injector}),t.isScheduled=!0)}function um(e){let t=e.get(cm);t.scheduler=tre,t.scheduler(e)}function iS(e,t){for(let[n,r]of t)KD(e,r.animateFns)}function cP(e,t,n,r){let o=e?.[ur]?.enter;t!==null&&o&&o.has(n.index)&&iS(r,o)}function wa(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Ot(o)?c=o:nt(o)&&(u=!0,ngDevMode&&F(o[Xe],"HOST must be defined for a component LView"),o=o[Xe]);let l=gt(o);e===0&&r!==null?(cP(a,r,i,n),s==null?SD(t,r,l):Ri(t,r,l,s||null,!0)):e===1&&r!==null?(cP(a,r,i,n),Ri(t,r,l,s||null,!0),Vne(i,l)):e===2?(a?.[ur]?.leave?.has(i.index)&&tS(i,l),gu.delete(l),uP(a,i,n,f=>{if(gu.has(l)){gu.delete(l);return}Zu(t,l,u,f)})):e===3&&(gu.delete(l),uP(a,i,n,()=>{t.destroyNode(l)})),c!=null&&sre(t,e,n,c,i,r,s)}}function WD(e,t){VD(e,t),t[Xe]=null,t[_t]=null}function nre(e,t,n,r,o,i){r[Xe]=o,r[_t]=t,lm(e,r,n,1,o,i)}function VD(e,t){t[Vt].changeDetectionScheduler?.notify(9),lm(e,t,t[pe],2,null,null)}function rre(e){let t=e[Co];if(!t)return Y0(e[x],e);for(;t;){let n=null;if(nt(t))n=t[Co];else{ngDevMode&&gn(t);let r=t[qe];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)nt(t)&&Y0(t[x],t),t=t[tt];t===null&&(t=e),nt(t)&&Y0(t[x],t),n=t&&t[Mt]}t=n}}function sS(e,t){ngDevMode&&gn(e),ngDevMode&&F(e[ko],"A projected view should belong to a non-empty projected views collection");let n=e[ko],r=n.indexOf(t);n.splice(r,1)}function Xu(e,t){if(fr(t))return;let n=t[pe];n.destroyNode&&lm(e,t,n,3,null,null),rre(t)}function Y0(e,t){if(fr(t))return;let n=te(null);try{t[ae]&=-129,t[ae]|=256,t[rn]&&as(t[rn]),zD(e,t),GD(e,t),t[x].type===1&&t[pe].destroy();let r=t[Do];if(r!==null&&Ot(t[tt])){r!==t[tt]&&sS(r,t);let o=t[In];o!==null&&o.detachView(e)}_w(t)}finally{te(n)}}function uP(e,t,n,r){let o=e?.[ur];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Pa.add(e[nn]),KD(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),ore(e,r)}else e&&Pa.delete(e[nn]),r(!1)},o)}function ore(e,t){let n=e[ur]?.running;if(n){n.then(()=>{e[ur].running=void 0,Pa.delete(e[nn]),t(!0)});return}t(!1)}function GD(e,t){ngDevMode&&vh(GD.name);let n=e.cleanup,r=t[Ei];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];ngDevMode&&je(a,"cleanup target must be a number"),a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Ei]=null);let o=t[Tr];if(o!==null){t[Tr]=null;for(let s=0;s<o.length;s++){let a=o[s];ngDevMode&&F_(a,"Expecting destroy hook to be a function."),a()}}let i=t[ou];if(i!==null){t[ou]=null;for(let s of i)s.destroy()}}function zD(e,t){ngDevMode&&vh(zD.name);let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Uo)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];Be(K.LifecycleHookStart,a,c);try{c.call(a)}finally{Be(K.LifecycleHookEnd,a,c)}}else{Be(K.LifecycleHookStart,o,i);try{i.call(o)}finally{Be(K.LifecycleHookEnd,o,i)}}}}}function aS(e,t,n){return YD(e,t.parent,n)}function YD(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Xe];if(ngDevMode&&lt(r,7),qn(r)){ngDevMode&&sn(r,n);let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Un.None||o===Un.Emulated)return null}return rt(r,n)}function ZD(e,t,n){return JD(e,t,n)}function QD(e,t,n){return e.type&40?rt(e,n):null}var JD=QD,jw;function XD(e,t){JD=e,jw=t}function cS(e,t,n,r){let o=aS(e,r,t),i=t[pe],s=r.parent||t[_t],a=ZD(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)nP(i,o,n[c],a,!1);else nP(i,o,n,a,!1);jw!==void 0&&jw(i,r,t,n,o)}function mu(e,t){if(t!==null){ngDevMode&&lt(t,191);let n=t.type;if(n&3)return rt(t,e);if(n&4)return Fw(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return mu(e,r);{let o=e[t.index];return Ot(o)?Fw(-1,o):gt(o)}}else{if(n&128)return mu(e,t.next);if(n&32)return XE(t,e)()||gt(e[t.index]);{let r=ek(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=ir(e[at]);return ngDevMode&&r0(o),mu(o,r)}else return mu(e,t.next)}}}return null}function ek(e,t){if(t!==null){let r=e[at][_t],o=t.projection;return ngDevMode&&lO(e),r.projection[o]}return null}function Fw(e,t){let n=qe+e+1;if(n<t.length){let r=t[n],o=r[x].firstChild;if(o!==null)return mu(r,o)}return t[Rr]}function uS(e,t,n,r,o,i,s){for(;n!=null;){ngDevMode&&sn(n,r);let a=r[Se];if(n.type===128){n=n.next;continue}ngDevMode&&lt(n,63);let c=r[n.index],u=n.type;if(s&&t===0&&(c&&ln(gt(c),r),n.flags|=2),!tm(n))if(u&8)uS(e,t,n.child,r,o,i,!1),wa(t,e,a,o,c,n,i,r);else if(u&32){let l=XE(n,r),f;for(;f=l();)wa(t,e,a,o,f,n,i,r);wa(t,e,a,o,c,n,i,r)}else u&16?tk(e,t,r,n,o,i):(ngDevMode&&lt(n,7),wa(t,e,a,o,c,n,i,r));n=s?n.projectionNext:n.next}}function lm(e,t,n,r,o,i){uS(n,r,e.firstChild,t,o,i,!1)}function ire(e,t,n){let r=t[pe],o=aS(e,n,t),i=n.parent||t[_t],s=ZD(i,n,t);tk(r,0,t,n,o,s)}function tk(e,t,n,r,o,i){let s=n[at],a=s[_t];ngDevMode&&re(typeof r.projection,"number","expecting projection index");let c=a.projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];wa(t,e,n[Se],o,l,r,i,n)}else{let u=c,l=s[tt];DC(r)&&(u.flags|=128),uS(e,t,u,l,o,i,!0)}}function sre(e,t,n,r,o,i,s){ngDevMode&&gn(r);let a=r[Rr],c=gt(r);a!==c&&wa(t,e,n,i,a,o,s);for(let u=qe;u<r.length;u++){let l=r[u];lm(l[x],l,e,t,i,a)}}function are(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Sg.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Sg.Important),e.setStyle(n,r,o,i))}}function nk(e,t,n,r,o){let i=ut(),s=r&2;try{mr(-1),s&&t.length>Z&&jD(e,t,Z,!!ngDevMode&&Nr());let a=s?K.TemplateUpdateStart:K.TemplateCreateStart;Be(a,o,n),n(r,o)}finally{mr(i);let a=s?K.TemplateUpdateEnd:K.TemplateCreateEnd;Be(a,o,n)}}function fm(e,t,n){dre(e,t,n),(n.flags&64)===64&&pre(e,t,n)}function Wa(e,t,n=rt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function cre(e,t,n,r){let i=r.get(ZC,YC)||n===Un.ShadowDom||n===Un.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return ure(s),s}function ure(e){lre(e)}var lre=()=>null;function fre(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function lS(e,t,n,r,o,i){ngDevMode&&yi(r,xe,"Incoming value should never be NO_CHANGE.");let s=t[x];if(gm(e,s,t,n,r)){qn(e)&&rk(t,e.index),ngDevMode&&ok(t,s,e,n,r);return}e.type&3&&(n=fre(n)),fS(e,t,n,r,o,i)}function fS(e,t,n,r,o,i){if(e.type&3){let s=rt(e,t);ngDevMode&&(t[x].firstUpdatePass&&fne(n),jte(s,n,e.value,t[x].schemas)||YO(n,e.value,e.type,t)),r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12&&ngDevMode&&!HE(t[x].schemas,e.value)&&YO(n,e.value,e.type,t)}function rk(e,t){ngDevMode&&an(e);let n=cn(t,e);n[ae]&16||(n[ae]|=64)}function qw(e,t,n,r){if(!e[Vt].ngReflect)return;let i=rt(t,e),s=e[pe];n=gne(n);let a=vne(r);if(t.type&3)r==null?s.removeAttribute(i,n):s.setAttribute(i,n,a);else{let c=bD(`bindings=${JSON.stringify({[n]:a},null,2)}`);s.setValue(i,c)}}function ok(e,t,n,r,o){if(!e[Vt].ngReflect||!(n.type&7))return;let s=n.inputs?.[r],a=n.hostDirectiveInputs?.[r];if(a)for(let c=0;c<a.length;c+=2){let u=a[c],l=a[c+1],f=t.data[u];qw(e,n,f.inputs[l][0],o)}if(s)for(let c of s){let u=t.data[c];qw(e,n,u.inputs[r][0],o)}}function dre(e,t,n){let r=n.directiveStart,o=n.directiveEnd;qn(n)&&(ngDevMode&&lt(n,3),jne(t,n,e.data[r+n.componentOffset])),e.firstCreatePass||_g(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Tu(t,e,s,n);if(ln(c,t),i!==null&&mre(t,s-r,c,a,n,i),on(a)){let u=cn(n.index,t);u[Te]=Tu(t,e,s,n)}}}function pre(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=yO();try{mr(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Hh(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hre(c,u)}}finally{mr(-1),Hh(s)}}function hre(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function dS(e,t){ngDevMode&&Pt(e),ngDevMode&&lt(t,15);let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];RD(t,i.selectors,!1)&&(r??=[],on(i)?(ngDevMode&&(lt(t,2,`"${t.value}" tags cannot be used as component hosts. Please use a different tag to activate the ${ke(i.type)} component.`),r.length&&on(r[0])&&Ene(t,r.find(on).type,i.type)),r.unshift(i)):r.push(i))}return r}function gre(e,t,n,r,o,i){ngDevMode&&(yi(r,xe,"Incoming value should never be NO_CHANGE."),lt(e,2,`Attempted to set attribute \`${n}\` on a container node. Host bindings are not valid on ng-container or ng-template.`));let s=rt(e,t);dm(t[pe],s,i,e.value,n,r,o)}function dm(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?he(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function mre(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Sa(r,n,c,u),ngDevMode&&qw(e,o,r.inputs[c][0],u)}}function pm(e,t,n,r,o){let i=Z+n,s=t[x],a=o(s,t,e,r,n);t[i]=a,pr(e,!0);let c=e.type===2;return c?(xD(t[pe],a,e),(pO()===0||Ii(e))&&ln(a,t),hO()):ln(a,t),lu()&&(!c||!tm(e))&&cS(s,t,a,e),e}function hm(e){let t=e;return E0()?S0():(ngDevMode&&sO(ce()),t=t.parent,pr(t,!1)),t}function Va(e,t,n,r,...o){if(e[r]===null&&!t.inputs?.[n]&&!t.hostDirectiveInputs?.[n]){(t.propertyBindings||(t.propertyBindings=[])).push(r);let s=n;o.length>0&&(s+=Cu+o.join(Cu)),e[r]=s}}function ik(e,t,n){return(e===null||on(e))&&(n=a0(n[t.index])),n[pe]}function pS(e,t){let n=e[Se];if(!n)return;let r;try{r=n.get(Lr,null)}catch{r=null}r?.(t)}function gm(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c];ngDevMode&&ct(n,u);let l=s[c+1],f=t.data[u];Sa(f,n[u],l,o),a=!0}if(i)for(let c of i){ngDevMode&&ct(n,c);let u=n[c],l=t.data[c];Sa(l,u,r,o),a=!0}return a}function yre(e,t){ngDevMode&&re(da(e),!0,"Should be run in creation mode");let n=cn(t,e),r=n[x];vre(r,n);let o=n[Xe];o!==null&&n[Po]===null&&(n[Po]=rD(o,n[Se])),Be(K.ComponentStart);try{el(r,n,n[Te])}finally{Be(K.ComponentEnd,n[Te])}}function vre(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function el(e,t,n){ngDevMode&&re(da(t),!0,"Should be run in creation mode"),ngDevMode&&vh(el.name),Wh(t);try{let r=e.viewQuery;r!==null&&Iw(1,r,n);let o=e.template;o!==null&&nk(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[In]?.finishViewCreation(e),e.staticContentQueries&&sD(e,t),e.staticViewQueries&&Iw(2,e.viewQuery,n);let i=e.components;i!==null&&bre(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[ae]&=-5,Vh()}}function bre(e,t){for(let n=0;n<t.length;n++)yre(e,t[n])}function Ga(e,t,n,r){let o=te(null);try{let i=t.tView;ngDevMode&&F(i,"TView must be defined for a template node."),ngDevMode&&sn(t,e);let a=e[ae]&4096?4096:16,c=rm(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];ngDevMode&&gn(u),c[Do]=u;let l=e[In];return l!==null&&(c[In]=l.createEmbeddedView(i)),el(i,c,n),c}finally{te(o)}}function Li(e,t){return!t||t.firstChild===null||DC(e)}var lP=!1,sk=new H(typeof ngDevMode<"u"&&ngDevMode?"exhaustive checkNoChanges":"");function Ca(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}ngDevMode&&lt(n,63);let i=t[n.index];i!==null&&r.push(gt(i)),Ot(i)&&ak(i,r);let s=n.type;if(s&8)Ca(e,t,n.child,r);else if(s&32){let a=XE(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=ek(t,n);if(Array.isArray(a))r.push(...a);else{let c=ir(t[at]);ngDevMode&&r0(c),Ca(c[x],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function ak(e,t){for(let n=qe;n<e.length;n++){let r=e[n],o=r[x].firstChild;o!==null&&Ca(r[x],r,o,t)}e[Rr]!==e[Xe]&&t.push(e[Rr])}function ck(e){if(e[xi]!==null){for(let t of e[xi])t.impl.addSequence(t);e[xi].length=0}}var uk=[];function _re(e){return e[rn]??wre(e)}function wre(e){let t=uk.pop()??Object.create(Sre);return t.lView=e,t}function Ere(e){e.lView[rn]!==e&&(e.lView=null,uk.push(e))}var Sre={...os,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{pa(e.lView)},consumerOnSignalRead(){this.lView[rn]=this}};function xre(e){let t=e[rn]??Object.create(Ire);return t.lView=e,t}var Ire={...os,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=ir(e.lView);for(;t&&!lk(t[x]);)t=ir(t);t&&u0(t)},consumerOnSignalRead(){this.lView[rn]=this}};function lk(e){return e.type!==2}function Are(e){return e.kind==="template"}function fk(e){if(e[ou]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[ou])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[ae]&8192)}}var Tre=100;function mm(e,t=0){let r=e[Vt].rendererFactory,o=!!ngDevMode&&Nr();o||r.begin?.();try{Mre(e,t)}finally{o||r.end?.()}}function Mre(e,t){let n=A0();try{if(T0(!0),Bw(e,t),ngDevMode&&Uh())return;let r=0;for(;au(e);){if(r===Tre)throw new D(103,ngDevMode&&"Infinite change detection while trying to refresh views. There may be components which each cause the other to require a refresh, causing an infinite loop.");r++,Bw(e,1)}}finally{T0(n)}}function dk(e,t){I0(t?Ao.Exhaustive:Ao.OnlyDirtyViews);try{mm(e)}finally{I0(Ao.Off)}}function pk(e,t,n,r){if(ngDevMode&&re(da(t),!1,"Should be run in update mode"),fr(t))return;let o=t[ae],i=ngDevMode&&Nr(),s=ngDevMode&&Uh();Wh(t);let a=!0,c=null,u=null;i||(lk(e)?(u=_re(t),c=ss(u)):ei()===null?(a=!1,u=xre(t),c=ss(u)):t[rn]&&(as(t[rn]),t[rn]=null));try{c0(t),M0(e.bindingStartIndex),n!==null&&nk(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let p=e.preOrderCheckHooks;p!==null&&sg(t,p,null)}else{let p=e.preOrderHooks;p!==null&&ag(t,p,0,null),K0(t,0)}if(s||Ore(t),fk(t),hk(t,0),e.contentQueries!==null&&sD(e,t),!i)if(l){let p=e.contentCheckHooks;p!==null&&sg(t,p)}else{let p=e.contentHooks;p!==null&&ag(t,p,1),K0(t,1)}Cre(e,t);let f=e.components;f!==null&&mk(t,f,0);let d=e.viewQuery;if(d!==null&&Iw(2,d,r),!i)if(l){let p=e.viewCheckHooks;p!==null&&sg(t,p)}else{let p=e.viewHooks;p!==null&&ag(t,p,2),K0(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[kh]){for(let p of t[kh])p();t[kh]=null}i||(ck(t),t[ae]&=-73)}catch(l){throw i||pa(t),l}finally{u!==null&&(bc(u,c),a&&Ere(u)),Vh()}}function hk(e,t){for(let n=qC(e);n!==null;n=BC(n))for(let r=qe;r<n.length;r++){let o=n[r];gk(o,t)}}function Ore(e){for(let t=qC(e);t!==null;t=BC(t)){if(!(t[ae]&2))continue;let n=t[ko];ngDevMode&&F(n,"Transplanted View flags set but missing MOVED_VIEWS");for(let r=0;r<n.length;r++){let o=n[r];u0(o)}}}function Pre(e,t,n){ngDevMode&&re(da(e),!1,"Should be run in update mode"),Be(K.ComponentStart);let r=cn(t,e);try{gk(r,n)}finally{Be(K.ComponentEnd,r[Te])}}function gk(e,t){jh(e)&&Bw(e,t)}function Bw(e,t){let n=ngDevMode&&Nr(),r=e[x],o=e[ae],i=e[rn],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0&&!n),s||=!!(o&1024),s||=!!(i?.dirty&&_c(i)),s||=!!(ngDevMode&&Uh()),i&&(i.dirty=!1),e[ae]&=-9217,s)pk(r,e,r.template,e[Te]);else if(o&8192){let a=te(null);try{n||fk(e),hk(e,1);let c=r.components;c!==null&&mk(e,c,1),n||ck(e)}finally{te(a)}}}function mk(e,t,n){for(let r=0;r<t.length;r++)Pre(e,t[r],n)}function Cre(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)mr(~o);else{let i=o,s=n[++r],a=n[++r];mO(s,i);let c=t[i];Be(K.HostBindingsUpdateStart,c);try{a(2,c)}finally{Be(K.HostBindingsUpdateEnd,c)}}}}finally{mr(-1)}}function tl(e,t){let n=A0()?64:1088;for(e[Vt].changeDetectionScheduler?.notify(t);e;){e[ae]|=n;let r=ir(e);if(lr(e)&&!r)return e;e=r}return null}function yk(e,t,n,r){ngDevMode&&an(t);let o=[e,!0,0,t,null,r,null,n,null,null];return ngDevMode&&re(o.length,qe,"Should allocate correct number of slots for LContainer header."),o}function vk(e,t){let n=qe+t;if(n<e.length){let r=e[n];return ngDevMode&&an(r),r}}function za(e,t,n,r=!0){let o=t[x];if(Dre(o,t,e,n),r){let s=Fw(n,e),a=t[pe],c=a.parentNode(e[Rr]);c!==null&&nre(o,e[_t],a,t,c,s)}let i=t[Po];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function hS(e,t){let n=Lu(e,t);return n!==void 0&&Xu(n[x],n),n}function Lu(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n];if(r){let o=r[Do];o!==null&&o!==e&&sS(o,r),t>0&&(e[n-1][Mt]=r[Mt]);let i=eu(e,qe+t);WD(r[x],r);let s=i[In];s!==null&&s.detachView(i[x]),r[tt]=null,r[Mt]=null,r[ae]&=-129}return r}function Dre(e,t,n,r){ngDevMode&&an(t),ngDevMode&&gn(n);let o=qe+r,i=n.length;r>0&&(n[o-1][Mt]=t),r<i-qe?(t[Mt]=n[o],V_(n,qe+r,t)):(n.push(t),t[Mt]=null),t[tt]=n;let s=t[Do];s!==null&&n!==s&&bk(s,t);let a=t[In];a!==null&&a.insertView(e),Fh(t),t[ae]|=128}function bk(e,t){ngDevMode&&F(t,"LView required"),ngDevMode&&gn(e);let n=e[ko],r=t[tt];if(ngDevMode&&F(r,"missing parent"),nt(r))e[ae]|=2;else{let o=r[tt][at];ngDevMode&&F(o,"Missing insertedComponentLView");let i=t[at];ngDevMode&&F(i,"Missing declaredComponentLView"),i!==o&&(e[ae]|=2)}n===null?e[ko]=[t]:n.push(t)}var Da=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[x];return Ca(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[Te]}set context(t){ngDevMode&&console.warn("Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated."),this._lView[Te]=t}get destroyed(){return fr(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[tt];if(Ot(t)){let n=t[iu],r=n?n.indexOf(this):-1;r>-1&&(ngDevMode&&re(r,t.indexOf(this._lView)-qe,"An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array."),Lu(t,r),eu(n,r))}this._attachedToViewContainer=!1}Xu(this._lView[x],this._lView)}onDestroy(t){cu(this._lView,t)}markForCheck(){tl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ae]&=-129}reattach(){Fh(this._lView),this._lView[ae]|=128}detectChanges(){this._lView[ae]|=1024,mm(this._lView)}checkNoChanges(){if(ngDevMode){try{this.exhaustive??=this._lView[Se].get(sk,lP)}catch{this.exhaustive=lP}dk(this._lView,this.exhaustive)}}attachToViewContainerRef(){if(this._appRef)throw new D(902,ngDevMode&&"This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=lr(this._lView),n=this._lView[Do];n!==null&&!t&&sS(n,this._lView),VD(this._lView[x],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,ngDevMode&&"This view is already attached to a ViewContainer!");this._appRef=t;let n=lr(this._lView),r=this._lView[Do];r!==null&&!n&&bk(r,this._lView),Fh(this._lView)}};var ka=class{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=kre;constructor(t,n,r){this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Ga(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Da(o)}};function kre(){return ym(ce(),S())}function ym(e,t){return e.type&4?(ngDevMode&&F(e.tView,"TView must be allocated"),new ka(t,e,Ua(e,t))):null}var Uw="<-- AT THIS LOCATION",Rre="/guide/hydration#third-party-scripts-with-dom-manipulation";function Nre(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";case 128:return"@let";default:return"<unknown>"}}function Lre(e){if(_k(e),!e.nextSibling){let t=`During hydration Angular expected more sibling nodes to be present.
36
40
 
37
41
  `,n=`Actual DOM is:
38
42
 
39
- ${Nre(e)}
43
+ ${Ure(e)}
40
44
 
41
- `,r=yk(),o=t+n+r;throw tD(e,"",n),new D(-501,o)}}function mk(e,t=null,n=null){if(!e){let r=`During hydration, Angular expected an element to be present at this location.
45
+ `,r=wk(),o=t+n+r;throw iD(e,"",n),new D(-501,o)}}function _k(e,t=null,n=null){if(!e){let r=`During hydration, Angular expected an element to be present at this location.
42
46
 
43
- `,o="",i="";throw t!==null&&n!==null&&(o=Rre(t,n,!1),i=yk(),tD(gt(t[Xe]),o,"")),new D(-502,`${r}${o}
47
+ `,o="",i="";throw t!==null&&n!==null&&(o=Bre(t,n,!1),i=wk(),iD(gt(t[Xe]),o,"")),new D(-502,`${r}${o}
44
48
 
45
- ${i}`)}}function Cre(e){let t=[];if(e.attrs)for(let n=0;n<e.attrs.length;){let r=e.attrs[n++];if(typeof r=="number")break;let o=e.attrs[n++];t.push(`${r}="${Mg(o)}"`)}return t.join(" ")}var Dre=new Set(["ngh","ng-version","ng-server-context"]);function kre(e){let t=[];for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];Dre.has(r.name)||t.push(`${r.name}="${Mg(r.value)}"`)}return t.join(" ")}function Z0(e,t="\u2026"){switch(e.type){case 1:return`#text${e.value?`(${e.value})`:""}`;case 2:let r=Cre(e),o=e.value.toLowerCase();return`<${o}${r?" "+r:""}>${t}</${o}>`;case 8:return"<!-- ng-container -->";case 4:return"<!-- container -->";default:return`#node(${Ore(e.type)})`}}function cg(e,t="\u2026"){let n=e;switch(n.nodeType){case Node.ELEMENT_NODE:let r=n.tagName.toLowerCase(),o=kre(n);return`<${r}${o?" "+o:""}>${t}</${r}>`;case Node.TEXT_NODE:let i=n.textContent?Mg(n.textContent):"";return`#text${i?`(${i})`:""}`;case Node.COMMENT_NODE:return`<!-- ${Mg(n.textContent??"")} -->`;default:return`#node(${n.nodeType})`}}function Rre(e,t,n){let o="";t.prev?(o+=` \u2026
49
+ ${i}`)}}function jre(e){let t=[];if(e.attrs)for(let n=0;n<e.attrs.length;){let r=e.attrs[n++];if(typeof r=="number")break;let o=e.attrs[n++];t.push(`${r}="${Og(o)}"`)}return t.join(" ")}var Fre=new Set(["ngh","ng-version","ng-server-context"]);function qre(e){let t=[];for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];Fre.has(r.name)||t.push(`${r.name}="${Og(r.value)}"`)}return t.join(" ")}function Z0(e,t="\u2026"){switch(e.type){case 1:return`#text${e.value?`(${e.value})`:""}`;case 2:let r=jre(e),o=e.value.toLowerCase();return`<${o}${r?" "+r:""}>${t}</${o}>`;case 8:return"<!-- ng-container -->";case 4:return"<!-- container -->";default:return`#node(${Nre(e.type)})`}}function ug(e,t="\u2026"){let n=e;switch(n.nodeType){case Node.ELEMENT_NODE:let r=n.tagName.toLowerCase(),o=qre(n);return`<${r}${o?" "+o:""}>${t}</${r}>`;case Node.TEXT_NODE:let i=n.textContent?Og(n.textContent):"";return`#text${i?`(${i})`:""}`;case Node.COMMENT_NODE:return`<!-- ${Og(n.textContent??"")} -->`;default:return`#node(${n.nodeType})`}}function Bre(e,t,n){let o="";t.prev?(o+=` \u2026
46
50
  `,o+=" "+Z0(t.prev)+`
47
51
  `):t.type&&t.type&12&&(o+=` \u2026
48
52
  `),n?(o+=" "+Z0(t)+`
49
53
  `,o+=` <!-- container --> ${Uw}
50
54
  `):o+=" "+Z0(t)+` ${Uw}
51
55
  `,o+=` \u2026
52
- `;let i=t.type?aS(e[x],t,e):null;return i&&(o=cg(i,`
53
- `+o)),o}function Nre(e){let n="",r=e;return r.previousSibling&&(n+=` \u2026
54
- `,n+=" "+cg(r.previousSibling)+`
55
- `),n+=" "+cg(r)+` ${Uw}
56
+ `;let i=t.type?aS(e[x],t,e):null;return i&&(o=ug(i,`
57
+ `+o)),o}function Ure(e){let n="",r=e;return r.previousSibling&&(n+=` \u2026
58
+ `,n+=" "+ug(r.previousSibling)+`
59
+ `),n+=" "+ug(r)+` ${Uw}
56
60
  `,e.nextSibling&&(n+=` \u2026
57
- `),e.parentNode&&(n=cg(r.parentNode,`
58
- `+n)),n}function yk(e){return`To fix this problem:
61
+ `),e.parentNode&&(n=ug(r.parentNode,`
62
+ `+n)),n}function wk(e){return`To fix this problem:
59
63
  * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues
60
64
  * check to see if your template has valid HTML structure
61
- * check if there are any third-party scripts that manipulate the DOM. More info: ${ph}${Mre}
65
+ * check if there are any third-party scripts that manipulate the DOM. More info: ${hh}${Rre}
62
66
  * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template
63
67
 
64
- `}function Lre(e){return e.replace(/\s+/gm,"")}function Mg(e,t=50){return e?(e=Lre(e),e.length>t?`${e.substring(0,t-1)}\u2026`:e):""}function vk(e,t,n){let r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?GD(e,t,n):(ngDevMode&&ct(n,o),gt(n[o]))}function bk(e,t,n,r,o){let i=t.insertBeforeIndex;if(Array.isArray(i)){ngDevMode&&Oo(r);let s=r,a=null;if(t.type&3||(a=s,s=o),s!==null&&t.componentOffset===-1)for(let c=1;c<i.length;c++){let u=n[i[c]];Ri(e,s,u,a,!1)}}}function Wi(e,t,n,r,o){ngDevMode&&t!==0&&cr(t,Z,"TNodes can't be in the LView header."),ngDevMode&&Eee(n);let i=e.data[t];if(i===null)i=gS(e,t,n,r,o),fO()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ha();i.injectorIndex=s===null?-1:s.injectorIndex,ngDevMode&&Ai(i,e),ngDevMode&&re(t,i.index,"Expecting same index")}return pr(i,!0),i}function gS(e,t,n,r,o){let i=w0(),s=E0(),a=s?i:i&&i.parent,c=e.data[t]=Fre(e,a,n,t,r,o);return jre(e,c,i,s),c}function jre(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Fre(e,t,n,r,o,i){ngDevMode&&r!==0&&cr(r,Z,"TNodes can't be in the LView header."),ngDevMode&&yi(i,void 0,"'undefined' is not valid value for 'attrs'"),ngDevMode&&t&&Ai(t,e);let s=t?t.injectorIndex:-1,a=0;h0()&&(a|=128);let c={type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:N0(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};return ngDevMode&&Object.seal(c),c}function _k(e,t){if(ngDevMode&&re(t.insertBeforeIndex,null,"We expect that insertBeforeIndex is not set"),e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){let r=e[n];wk(r)||qre(r,t)&&Bre(r)===null&&Ure(r,t.index)}}function wk(e){return!(e.type&64)}function qre(e,t){return wk(t)||e.index>t.index}function Bre(e){let t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Ure(e,t){let n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(YD(vk,bk),e.insertBeforeIndex=t)}function bu(e,t){let n=e.data[t];if(n===null||typeof n=="string")return null;ngDevMode&&!(n.hasOwnProperty("tView")||n.hasOwnProperty("currentCaseLViewIndex"))&&X("We expect to get 'null'|'TIcu'|'TIcuContainer', but got: "+n);let r=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return ngDevMode&&kh(r),r}function Hre(e,t,n){let r=e.data[t];ngDevMode&&re(r===null||r.hasOwnProperty("tView"),!0,"We expect to get 'null'|'TIcuContainer'"),r===null?e.data[t]=n:(ngDevMode&&lt(r,32),r.value=n)}function $re(e,t){ngDevMode&&dr(e);let n=e.insertBeforeIndex;n===null?(YD(vk,bk),n=e.insertBeforeIndex=[null,t]):(re(Array.isArray(n),!0,"Expecting array here"),n.push(t))}function Kre(e,t,n){let r=gS(e,n,64,null,null);return _k(t,r),r}function ym(e,t){let n=t[e.currentCaseLViewIndex];return n===null?n:n<0?~n:n}function Ek(e){return e>>>17}function Sk(e){return(e&131070)>>>1}function aP(e){return e&1}function Wre(e,t,n){return ngDevMode&&cr(t,0,"Missing parent index"),ngDevMode&&Mo(n,0,"Missing ref index"),e|t<<17|n<<1}function Vre(e){return e===-1}function xk(e,t,n){e.index=0;let r=ym(t,n);r!==null?(ngDevMode&&ia(r,0,t.cases.length-1),e.removes=t.remove[r]):e.removes=Ae}function Hw(e){if(e.index<e.removes.length){let t=e.removes[e.index++];if(ngDevMode&&je(t,"Expecting OpCode number"),t>0){let n=e.lView[t];return ngDevMode&&Oo(n),n}else{e.stack.push(e.index,e.removes);let n=~t,r=e.lView[x].data[n];return ngDevMode&&kh(r),xk(e,r,e.lView),Hw(e)}}else return e.stack.length===0?(e.lView=void 0,null):(e.removes=e.stack.pop(),e.index=e.stack.pop(),Hw(e))}function Gre(){let e={stack:[],index:-1};function t(n,r){for(e.lView=r;e.stack.length;)e.stack.pop();return ngDevMode&&sn(n,r),xk(e,n.value,r),Hw.bind(null,e)}return t}var zre=()=>{};function Yre(e,t,n,r){zre(e,t,n,r)}var Zre=()=>{};function Qre(e,t,n){Zre(e,t,n)}function Jre(e){let t=e[Po];if(t){let{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){let o=e[pe];for(let i of r.values())Xre(o,n,i)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}function Xre(e,t,n){for(let r of n.node.cases[n.case]){let o=t.get(r.index-Z);o&&Yu(e,o,!1)}}function Ik(e){let t=e[kr]??[],r=e[tt][pe],o=[];for(let i of t)i.data[NE]!==void 0?o.push(i):(Ak(i,r),ngDevMode&&ngDevMode.dehydratedViewsRemoved++);e[kr]=o}function eoe(e){let{lContainer:t}=e,n=t[kr];if(n===null)return;let o=t[tt][pe];for(let i of n)Ak(i,o),ngDevMode&&ngDevMode.dehydratedViewsRemoved++}function Ak(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[RE];for(;n<o;){ngDevMode&&Pre(r);let i=r.nextSibling;Yu(t,r,!1),r=i,n++}}}function vm(e){Ik(e);let t=e[Xe];nt(t)&&Lu(t);for(let n=qe;n<e.length;n++)Lu(e[n])}function Lu(e){Jre(e);let t=e[x];for(let n=Z;n<t.bindingStartIndex;n++)if(Ot(e[n])){let r=e[n];vm(r)}else nt(e[n])&&Lu(e[n])}function Tk(e){let t=e._views;for(let n of t){let r=eD(n);r!==null&&r[Xe]!==null&&(nt(r)?Lu(r):vm(r),ngDevMode&&ngDevMode.dehydratedViewsCleanupRuns++)}}function toe(e,t,n,r){e!==null&&(n.cleanup(t),vm(e.lContainer),Tk(r))}var noe=()=>null,roe=()=>null;function Og(e,t){return noe(e,t)}function Mk(e,t,n){return roe(e,t,n)}var ooe=class{},Ok=class{},$w=class{resolveComponentFactory(t){throw new D(917,typeof ngDevMode<"u"&&ngDevMode&&`No component factory found for ${ke(t)}.`)}},bm=class{static NULL=new $w},Pg=class{};var Kw=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>null})};function mS(e){return e.ngModule!==void 0}function ya(e){return!!Fn(e)}function tg(e){return!!Kt(e)}function cP(e){return!!dt(e)}function _u(e){return!!_e(e)}function ioe(e){return _e(e)?"component":dt(e)?"directive":Kt(e)?"pipe":"type"}function Ww(e,t){if(zc(e)&&(e=se(e),!e))throw new Error(`Expected forwardRef function, imported from "${ge(t)}", to return a standalone entity or NgModule but got "${ge(e)||e}".`);if(Fn(e)==null){let n=_e(e)||dt(e)||Kt(e);if(n!=null){if(!n.standalone){let r=ioe(e);throw new Error(`The "${ge(e)}" ${r}, imported from "${ge(t)}", is not standalone. Does the ${r} have the standalone: false flag?`)}}else throw mS(e)?new Error(`A module with providers was imported from "${ge(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${ge(e)}" type, imported from "${ge(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var Vw=class{ownerNgModule=new WeakMap;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new WeakMap;standaloneComponentsScopeCache=new WeakMap;resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let t of this.ngModulesWithSomeUnresolvedDecls){let n=Fn(t);if(n?.declarations)for(let r of vr(n.declarations))_u(r)&&this.ownerNgModule.set(r,t)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(t,n){this.resolveNgModulesDecls();let r=_e(t);if(r===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${t}`);if(r.standalone){let o=this.getStandaloneComponentScope(t,n);return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes,...o.compilation.ngModules]}}else{if(!this.ownerNgModule.has(t))return{dependencies:[]};let o=this.getNgModuleScope(this.ownerNgModule.get(t));return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes]}}}registerNgModule(t,n){if(!ya(t))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${t}`);this.ngModulesWithSomeUnresolvedDecls.add(t)}clearScopeCacheFor(t){this.ngModulesScopeCache.delete(t),this.standaloneComponentsScopeCache.delete(t)}getNgModuleScope(t){if(this.ngModulesScopeCache.has(t))return this.ngModulesScopeCache.get(t);let n=this.computeNgModuleScope(t);return this.ngModulesScopeCache.set(t,n),n}computeNgModuleScope(t){let n=Jc(t),r={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let o of vr(n.imports))if(ya(o)){let i=this.getNgModuleScope(o);jo(i.exported.directives,r.compilation.directives),jo(i.exported.pipes,r.compilation.pipes)}else if(Dr(o))if(cP(o)||_u(o))r.compilation.directives.add(o);else if(tg(o))r.compilation.pipes.add(o);else throw new D(980,"The standalone imported type is neither a component nor a directive nor a pipe");else{r.compilation.isPoisoned=!0;break}if(!r.compilation.isPoisoned)for(let o of vr(n.declarations)){if(ya(o)||Dr(o)){r.compilation.isPoisoned=!0;break}tg(o)?r.compilation.pipes.add(o):r.compilation.directives.add(o)}for(let o of vr(n.exports))if(ya(o)){let i=this.getNgModuleScope(o);jo(i.exported.directives,r.exported.directives),jo(i.exported.pipes,r.exported.pipes),jo(i.exported.directives,r.compilation.directives),jo(i.exported.pipes,r.compilation.pipes)}else tg(o)?r.exported.pipes.add(o):r.exported.directives.add(o);return r}getStandaloneComponentScope(t,n){if(this.standaloneComponentsScopeCache.has(t))return this.standaloneComponentsScopeCache.get(t);let r=this.computeStandaloneComponentScope(t,n);return this.standaloneComponentsScopeCache.set(t,r),r}computeStandaloneComponentScope(t,n){let r={compilation:{directives:new Set([t]),pipes:new Set,ngModules:new Set}};for(let o of Wt(n??[])){let i=se(o);try{Ww(i,t)}catch{return r.compilation.isPoisoned=!0,r}if(ya(i)){r.compilation.ngModules.add(i);let s=this.getNgModuleScope(i);if(s.exported.isPoisoned)return r.compilation.isPoisoned=!0,r;jo(s.exported.directives,r.compilation.directives),jo(s.exported.pipes,r.compilation.pipes)}else if(tg(i))r.compilation.pipes.add(i);else if(cP(i)||_u(i))r.compilation.directives.add(i);else return r.compilation.isPoisoned=!0,r}return r}isOrphanComponent(t){let n=_e(t);return!n||n.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(t))}};function jo(e,t){for(let n of e)t.add(n)}var Ra=new Vw,Q0={},Bo=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Q0,r);return o!==Q0||n===Q0?o:this.parentInjector.get(t,n,r)}};function Cg(e,t,n){ngDevMode&&Pt(fe(),"Expecting to be called in first template pass only");let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=mh(o,a);else if(i==2){let c=a,u=t[++s];r=mh(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ya(e,t=0){let n=S();if(n===null)return ngDevMode&&GM(Ya),Tt(e,t);let r=ce(),o=SC(r,n,se(e),t);return ngDevMode&&U_(e,o,t),o}function soe(){let e=ngDevMode?"This constructor was not compatible with Dependency Injection.":"invalid";throw new Error(e)}function Pk(e,t,n,r,o){ngDevMode&&Pt(e);let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}ngDevMode&&moe(a),uoe(e,t,n,a,i,c,u)}i!==null&&r!==null&&aoe(n,r,i)}function aoe(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new D(-301,ngDevMode&&`Export of name '${t[o+1]}' not found!`);r.push(t[o],i)}}function coe(e,t,n){ngDevMode&&Pt(e),ngDevMode&&Mo(n,-1,"componentOffset must be great than -1"),t.componentOffset=n,(e.components??=[]).push(t.index)}function uoe(e,t,n,r,o,i,s){ngDevMode&&Pt(e);let a=r.length,c=null;for(let d=0;d<a;d++){let p=r[d];c===null&&on(p)&&(c=p,coe(e,n,d)),yw(bg(n,t),e,p.type)}goe(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let d=0;d<a;d++){let p=r[d];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,f=Qu(e,t,a,null);ngDevMode&&q_(f,n.directiveStart,"TNode.directiveStart should point to just allocated space"),a>0&&(n.directiveToIndex=new Map);for(let d=0;d<a;d++){let p=r[d];if(n.mergedAttrs=Aa(n.mergedAttrs,p.hostAttrs),foe(e,n,t,f,p),hoe(f,p,o),s!==null&&s.has(p)){let[m,y]=s.get(p);n.directiveToIndex.set(p.type,[f,m+n.directiveStart,y+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}loe(e,n,i)}function loe(e,t,n){ngDevMode&&Pt(e);for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))uP(0,t,o,r),uP(1,t,o,r),fP(t,r,!1);else{let i=n.get(o);lP(0,t,i,r),lP(1,t,i,r),fP(t,r,!0)}}}function uP(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Ck(t,i)}}function lP(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Ck(t,s)}}function Ck(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function fP(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||YE(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function foe(e,t,n,r,o){ngDevMode&&cr(r,Z,"Must be in Expando section"),e.data[r]=o;let i=o.factory||(o.factory=Io(o.type,!0)),s=new Uo(i,on(o),Ya,ngDevMode?o.type.name:null);e.blueprint[r]=s,n[r]=s,doe(e,t,r,Qu(e,n,o.hostVars,xe),o)}function doe(e,t,n,r,o){ngDevMode&&Pt(e);let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;poe(s)!=a&&s.push(a),s.push(n,r,i)}}function poe(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function hoe(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;on(t)&&(n[""]=e)}}function goe(e,t,n){ngDevMode&&tn(n,e.directiveEnd-e.directiveStart,"Reached the max number of directives"),e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function moe(e){if(e.length<2)return;let t=new Set;for(let n of e){if(t.has(n))throw new D(309,`Directive ${n.type.name} matches multiple times on the same element. Directives can only match an element once.`);t.add(n)}}function yS(e,t,n,r,o,i,s,a){let c=t[x];ngDevMode&&Pt(c);let u=c.consts,l=Ct(u,s),f=Wi(c,e,n,r,l);return i&&Pk(c,t,f,Ct(u,a),o),f.mergedAttrs=Aa(f.mergedAttrs,f.attrs),f.attrs!==null&&Cg(f,f.attrs,!1),f.mergedAttrs!==null&&Cg(f,f.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,f),f}function vS(e,t){ngDevMode&&Pt(e),pC(e,t),n0(t)&&e.queries.elementEnd(t)}function Dk(e,t,n,r,o,i){ngDevMode&&Pt(t);let s=t.consts,a=Ct(s,o),c=Wi(t,e,n,r,a);if(c.mergedAttrs=Aa(c.mergedAttrs,c.attrs),i!=null){let u=Ct(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&Cg(c,c.attrs,!1),c.mergedAttrs!==null&&Cg(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function ju(e){return _m(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function yoe(e,t,n){let r=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done||!n(i.value,s.value))return!1}}function kk(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function _m(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Rk(e,t){let n=ju(e),r=ju(t);return n&&r?yoe(e,t,Rk):!n&&(e&&(typeof e=="object"||typeof e=="function"))&&!r&&(t&&(typeof t=="object"||typeof t=="function"))?!0:Object.is(e,t)}function Hn(e,t,n){return e[t]=n}function Za(e,t){return ngDevMode&&ct(e,t),ngDevMode&&yi(e[t],xe,"Stored value should never be NO_CHANGE."),e[t]}function et(e,t,n){if(ngDevMode&&ar(t,e.length,"Slot should have been initialized to NO_CHANGE"),n===xe)return!1;let r=e[t];if(Object.is(r,n))return!1;if(ngDevMode&&Nr()){let o=r!==xe?r:void 0;if(!Rk(o,n)){let i=vne(e,t,o,n);yne(r===xe,i.oldValue,i.newValue,i.propName,e)}return!1}return e[t]=n,!0}function ji(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function wm(e,t,n,r,o){let i=ji(e,t,n,r);return et(e,t+2,o)||i}function An(e,t,n,r,o,i){let s=ji(e,t,n,r);return ji(e,t+2,o,i)||s}function Di(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&yte(o,i);let s=qn(e)?cn(e.index,t):t;el(s,5);let a=t[Te],c=dP(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=dP(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function dP(e,t,n,r){let o=te(null);try{return Be(K.OutputStart,t,n),n(r)!==!1}catch(i){return pS(e,i),!1}finally{Be(K.OutputEnd,t,n),te(o)}}function bS(e,t,n,r,o,i,s,a){ngDevMode&&yi(a,s,"Expected wrapped and original listeners to be different.");let c=Ii(e),u=!1,l=null;if(!r&&c&&(l=boe(t,n,i,e.index)),l!==null){let f=l.__ngLastListenerFn__||l;f.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let f=rt(e,n),d=r?r(f):f;bte(n,d,i,a),r||(a.__ngNativeEl__=f);let p=o.listen(d,i,a);if(!voe(i)){let h=r?m=>r(gt(m[e.index])):e.index;Nk(h,t,n,i,a,p,!1)}}return u}function voe(e){return e.startsWith("animation")||e.startsWith("transition")}function boe(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Ei],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Nk(e,t,n,r,o,i,s){let a=t.firstCreatePass?fh(t):null,c=f0(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Dg(e,t,n,r,o,i){ngDevMode&&ct(t,n);let s=t[n],a=t[x],u=a.data[n].outputs[r],l=s[u];if(ngDevMode&&!_oe(l))throw new Error(`@Output ${u} not initialized in '${s.constructor.name}'.`);let f=l.subscribe(i);Nk(e.index,a,t,o,i,f,!0)}function _oe(e){return e!=null&&typeof e.subscribe=="function"}function woe(){Eoe()}function Eoe(){let e=S(),t=fe(),n=ce();if(t.firstCreatePass&&Ioe(t,n),n.controlDirectiveIndex===-1)return;qt("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new kg(e,t,n))}function Soe(){xoe()}function xoe(){if(ngDevMode&&Nr())return;let e=S(),t=fe(),n=mn();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new kg(e,t,n))}var kg=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get descriptor(){if(ngDevMode&&qn(this.tNode)){let t=this.tNode.directiveStart+this.tNode.componentOffset,n=this.tView.data[t];return`Component ${H_(n.type)}`}return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){Lk(this.tView.data[this.tNode.customControlIndex],t)&&Dg(this.tNode,this.lView,this.tNode.customControlIndex,t,t,Di(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange";Dg(this.tNode,this.lView,this.tNode.customControlIndex,n,n,Di(this.tNode,this.lView,t))}listenToDom(t,n){bS(this.tNode,this.tView,this.lView,void 0,this.lView[pe],t,n,Di(this.tNode,this.lView,n))}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return!1;if(r)for(let i of r){let s=this.tView.data[i],a=this.lView[i];Sa(s,a,t,n)}if(o)for(let i=0;i<o.length;i+=2){let s=o[i],a=o[i+1],c=this.tView.data[s],u=this.lView[s];Sa(c,u,a,n)}return!0}setCustomControlModelInput(t){let n=this.lView[this.tNode.customControlIndex],r=this.tView.data[this.tNode.customControlIndex],o=this.tNode.flags&1024?"value":"checked";Sa(r,n,o,t)}customControlHasInput(t){return this.tNode.customControlIndex===-1?!1:this.tView.data[this.tNode.customControlIndex].inputs[t]!=null}};function Ioe(e,t,n){ngDevMode&&Pt(e);for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}Aoe(e,t)}function Aoe(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(pP(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(pP(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}function pP(e,t){return Toe(e,t)&&Lk(e,t+"Change")}function Toe(e,t){return t in e.inputs}function Lk(e,t){return t in e.outputs}var Gw=Symbol("BINDING");function jk(e){return e.debugInfo?.className||e.type.name||null}var Rg=class extends bm{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){ngDevMode&&eO(t);let n=_e(t);return new Na(n,this.ngModule)}};function Moe(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Cu.SignalBased)!==0};return o&&(i.transform=o),i})}function Ooe(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Poe(e){if((typeof ngJitMode>"u"||ngJitMode)&&e.debugInfo?.forbidOrphanRendering&&Ra.isOrphanComponent(e.type))throw new D(981,`Orphan component found! Trying to render the component ${H_(e.type)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`)}function Coe(e,t,n){let r=t instanceof Ft?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Bo(n,r):n}function Doe(e){let t=e.get(Pg,null);if(t===null)throw new D(407,ngDevMode&&"Angular was not able to inject a renderer (RendererFactory2). Likely this is due to a broken DI hierarchy. Make sure that any injector used to create this component has a correct parent.");let n=e.get(Kw,null),r=e.get(Pr,null),o=e.get(Ka,null,{optional:!0}),i=!1;return(typeof ngDevMode>"u"||ngDevMode)&&(i=e.get(cne,MD)),{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:i,tracingService:o}}function koe(e,t){let n=Noe(e);return WE(t,n,n==="svg"?na:n==="math"?Nh:null)}function Roe(e){if(e?.toLowerCase()==="script")throw new D(905,ngDevMode&&'"<script>" tag is not allowed as a component host element.')}function Noe(e){return(e.selectors[0][0]||"div").toLowerCase()}var Na=class extends Ok{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Moe(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Ooe(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=CD(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){Be(K.DynamicComponentStart);let a=te(null);try{let c=this.componentDef;ngDevMode&&Poe(c);let u=Coe(c,o||this.ngModule,t),l=Doe(u),f=l.tracingService;return f&&f.componentCreate?f.componentCreate(jk(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{te(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=Loe(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?nre(u,o,a.encapsulation,n):koe(a,u);Roe(l?.tagName);let f=s?.some(hP)||i?.some(h=>typeof h!="function"&&h.bindings.some(hP)),d=nm(null,c,null,512|QE(a),null,null,t,u,n,null,XC(l,n,!0));d[Z]=l,Kh(d);let p=null;try{let h=yS(Z,d,2,"#host",()=>c.directiveRegistry,!0,0);_D(u,l,h),ln(l,d),lm(c,d,h),BE(c,h,d),vS(c,h),r!==void 0&&Foe(h,this.ngContentSelectors,r),p=cn(h.index,d),d[Te]=p[Te],Xu(c,d,null)}catch(h){throw p!==null&&_w(p),_w(d),h}finally{Be(K.DynamicComponentEnd),Wh()}return new zw(this.componentType,d,!!f)}};function Loe(e,t,n,r){let o=e?["ng-version","21.2.25"]:One(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Gw].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let f=r[l];if(typeof f!="function")for(let d of f.bindings){a+=d[Gw].requiredVars;let p=l+1;d.create&&(d.targetIdx=p,(i??=[]).push(d)),d.update&&(d.targetIdx=p,(s??=[]).push(d))}}let c=[t];if(r)for(let l of r){let f=typeof l=="function"?l:l.type,d=ngDevMode?HM(f):dt(f);if(ngDevMode&&!d.standalone)throw new D(907,`The ${ge(f)} directive must be standalone in order to be applied to a dynamically-created component.`);c.push(d)}return ZE(0,null,joe(i,s),1,a,c,null,null,null,[o],null)}function joe(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function hP(e){let t=e[Gw].kind;return t==="input"||t==="twoWay"}var zw=class extends ooe{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Mi(n[x],Z),this.location=Ua(this._tNode,n),this.instance=cn(this._tNode.index,n)[Te],this.hostView=this.changeDetectorRef=new Da(n,void 0),this.componentType=t}setInput(t,n){if(this._hasInputBindings&&ngDevMode)throw new D(317,"Cannot call `setInput` on a component that is using the `inputBinding` or `twoWayBinding` functions.");let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=hm(r,o[x],o,t,n);this.previousInputValues.set(t,n);let s=cn(r.index,o);if(el(s,1),ngDevMode&&!i){let a=ge(this.componentType),c=`Can't set value of the '${t}' input on the '${a}' component. `;c+=`Make sure that the '${t}' property is declared as an input using the input() or model() function or the @Input() decorator.`,oD(c)}}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Foe(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Fu=class{static __NG_ELEMENT_ID__=qoe};function qoe(){let e=ce();return Fk(e,S())}var Yw=class e extends Fu{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ua(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){let t=Zg(this._hostTNode,this._hostLView);if(PE(t)){let n=Iu(t,this._hostLView),r=xu(t);ngDevMode&&o0(n,r);let o=n[x].data[r+8];return new We(o,n)}else return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=gP(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-qe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Og(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Li(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!pu(t),u;if(c)ngDevMode&&re(typeof n!="object",!0,"It looks like Component factory was provided as the first argument and an options object as the second argument. This combination of arguments is incompatible. You can either change the first argument to provide Component type or change the second argument to be a number (representing an index at which to insert the new component's host view into this container)"),u=n;else{ngDevMode&&(F(_e(t),"Provided Component class doesn't contain Component definition. Please check whether provided class has @Component decorator."),re(typeof n!="number",!0,"It looks like Component type was provided as the first argument and a number (representing an index at which to insert the new component's host view into this container as the second argument. This combination of arguments is incompatible. Please use an object as the second argument instead."));let y=n||{};ngDevMode&&y.environmentInjector&&y.ngModuleRef&&X("Cannot pass both environmentInjector and ngModuleRef options to createComponent()."),u=y.index,r=y.injector,o=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,a=y.bindings}let l=c?t:new Na(_e(t)),f=r||this.parentInjector;if(!i&&l.ngModule==null){let v=(c?f:this.parentInjector).get(Ft,null);v&&(i=v)}let d=_e(l.componentType??{}),p=Og(this._lContainer,d?.id??null),h=p?.firstChild??null,m=l.create(f,o,h,i,s,a);return this.insertImpl(m.hostView,u,Li(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ngDevMode&&t.destroyed)throw new D(922,ngDevMode&&"Cannot insert a destroyed View in a ViewContainer!");if(aO(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[tt];ngDevMode&&re(Ot(c),!0,"An attached view should have its PARENT point to a container.");let u=new e(c,c[_t],c[tt]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return za(s,o,i,r),t.attachToViewContainerRef(),V_(J0(s),i,t),t}move(t,n){if(ngDevMode&&t.destroyed)throw new D(923,ngDevMode&&"Cannot move a destroyed View in a ViewContainer!");return this.insert(t,n)}indexOf(t){let n=gP(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Nu(this._lContainer,n);r&&(Xc(J0(this._lContainer),n),Ju(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=Nu(this._lContainer,n);return r&&Xc(J0(this._lContainer),n)!=null?new Da(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:(ngDevMode&&(Mo(t,-1,`ViewRef index must be positive, got ${t}`),ar(t,this.length+1+n,"index")),t)}};function gP(e){return e[ou]}function J0(e){return e[ou]||(e[ou]=[])}function Fk(e,t){ngDevMode&&lt(e,15);let n,r=t[e.index];return Ot(r)?n=r:(n=pk(r,t,null,e),t[e.index]=n,JE(t,n)),Uoe(n,t,e,r),new Yw(n,e,t)}function Boe(e,t){let n=e[pe],r=n.createComment(ngDevMode?"container":""),o=rt(t,e),i=n.parentNode(o);return Ri(n,i,r,n.nextSibling(o),!1),r}var Uoe=$oe,Hoe=()=>!1;function qk(e,t,n){return Hoe(e,t,n)}function $oe(e,t,n,r){if(e[Rr])return;let o;n.type&8?o=gt(r):o=Boe(t,n),e[Rr]=o}var Zw=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Qw=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)wS(t,n).matches!==null&&this.queries[n].setDirty()}},Ng=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=zoe(t):this.predicate=t}},Jw=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){ngDevMode&&Pt(t,"Queries should collect results on the first template pass only");for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){ngDevMode&&Pt(t,"Queries should collect results on the first template pass only");for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return ngDevMode&&ct(this.queries,t),this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Xw=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,Koe(n,i)),this.matchTNodeWithReadOption(t,n,ag(n,t,i,!1,!1))}else r===ka?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ag(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ta||o===Fu||o===ka&&n.type&4)this.addMatch(n.index,-2);else{let i=ag(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function Koe(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Woe(e,t){return e.type&11?Ua(e,t):e.type&4?mm(e,t):null}function Voe(e,t,n,r){return n===-1?Woe(t,e):n===-2?Goe(e,t,r):Au(e,e[x],n,t)}function Goe(e,t,n){if(n===Ta)return Ua(t,e);if(n===ka)return mm(t,e);if(n===Fu)return ngDevMode&&lt(t,15),Fk(t,e);ngDevMode&&X(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${ke(n)}.`)}function Bk(e,t,n,r){let o=t[In].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{ngDevMode&&ct(i,u);let l=i[u];a.push(Voe(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function eE(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bk(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];ngDevMode&&gn(l);for(let f=qe;f<l.length;f++){let d=l[f];d[Do]===d[tt]&&eE(d[x],d,u,r)}if(l[ko]!==null){let f=l[ko];for(let d=0;d<f.length;d++){let p=f[d];eE(p[x],p,u,r)}}}}}return r}function _S(e,t){return ngDevMode&&F(e[In],"LQueries should be defined when trying to load a query"),ngDevMode&&ct(e[In].queries,t),e[In].queries[t].queryList}function Uk(e,t,n){let r=new bw((n&4)===4);return cO(e,t,r,r.destroy),(t[In]??=new Qw).queries.push(new Zw(r))-1}function Hk(e,t,n){ngDevMode&&je(t,"Expecting flags");let r=fe();return r.firstCreatePass&&(Kk(r,new Ng(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Uk(r,S(),t)}function $k(e,t,n,r){ngDevMode&&je(n,"Expecting flags");let o=fe();if(o.firstCreatePass){let i=ce();Kk(o,new Ng(t,n,r),i.index),Yoe(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return Uk(o,S(),n)}function zoe(e){return e.split(",").map(t=>t.trim())}function Kk(e,t,n){e.queries===null&&(e.queries=new Jw),e.queries.track(new Xw(t,n))}function Yoe(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function wS(e,t){return ngDevMode&&F(e.queries,"TQueries must be defined to retrieve a TQuery"),e.queries.getByIndex(t)}function Wk(e,t){let n=e[x],r=wS(n,t);return r.crossesNgTemplate?eE(n,e,t,[]):Bk(n,e,r,t)}function ES(e,t,n){let r,o=_c(()=>{r._dirtyCounter();let i=Zoe(r,e);if(t&&i===void 0)throw new D(-951,ngDevMode&&"Child query result is required but no value is available.");return i});return r=o[ze],r._dirtyCounter=No(0),r._flatValue=void 0,ngDevMode&&(o.toString=()=>"[Query Signal]",r.debugName=n?.debugName),o}function SS(e){return ES(!0,!1,e)}function xS(e){return ES(!0,!0,e)}function Vk(e){return ES(!1,!1,e)}function Gk(e,t){let n=e[ze];n._lView=S(),n._queryIndex=t,n._queryList=_S(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function Zoe(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[ae]&4)return t?void 0:Ae;let o=_S(n,r),i=Wk(n,r);return o.reset(i,TC),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var Lg=new Map,zk=new Set;async function Yk(e){let t=Lg;Lg=new Map;let n=new Map;function r(i){let s=n.get(i);if(s)return s;let a=e(i).then(c=>Joe(i,c));return n.set(i,a),a}let o=Array.from(t).map(async([i,s])=>{if(s.styleUrl&&s.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");let a=[];s.templateUrl&&a.push(r(s.templateUrl).then(f=>{s.template=f}));let c=typeof s.styles=="string"?[s.styles]:s.styles??[];s.styles=c;let{styleUrl:u,styleUrls:l}=s;if(u&&(l=[u],s.styleUrl=void 0),l?.length){let f=Promise.all(l.map(d=>r(d))).then(d=>{c.push(...d),s.styleUrls=void 0});a.push(f)}await Promise.all(a),zk.delete(i)});await Promise.all(o)}function Qoe(e,t){Zk(t)&&(Lg.set(e,t),zk.add(e))}function Zk(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls?.length||e.styleUrl)}function Qk(){return Lg.size===0}async function Joe(e,t){if(typeof t=="string")return t;if(t.status!==void 0&&t.status!==200)throw new D(918,ngDevMode&&`Could not load resource: ${e}. Response status: ${t.status}`);return t.text()}var mP=new Map,Xoe=!0;function eie(e,t,n){if(t&&t!==n&&Xoe)throw new D(921,ngDevMode&&`Duplicate module registered for ${e} - ${ke(t)} vs ${ke(t.name)}`)}function Jk(e,t){let n=mP.get(t)||null;eie(t,n,e),mP.set(t,e)}var La=class{},tie=class{};var jg=class extends La{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Rg(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Fn(t);ngDevMode&&F(i,`NgModule '${ke(t)}' is not a subtype of 'NgModuleType'.`),this._bootstrapComponents=vr(i.bootstrap),this._r3Injector=L0(t,n,[{provide:La,useValue:this},{provide:bm,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){ngDevMode&&F(this.destroyCbs,"NgModule already destroyed");let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){ngDevMode&&F(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(t)}},qu=class extends tie{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new jg(this.moduleType,t,[])}};function Xk(e,t,n){return new jg(e,t,n,!1)}var Fg=class extends La{injector;componentFactoryResolver=new Rg(this);instance=null;constructor(t){super();let n=new Nn([...t.providers,{provide:La,useValue:this},{provide:bm,useValue:this.componentFactoryResolver}],t.parent||tu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function eR(e,t,n=null){return new Fg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var tE=class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=Mh(!1,t.type),r=n.length>0?eR([n],this._injector,typeof ngDevMode<"u"&&ngDevMode?`Standalone[${t.type.name}]`:""):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Fe({token:e,providedIn:"environment",factory:()=>new e(Tt(Ft))})};function nie(e){return Fr(()=>{(typeof ngDevMode>"u"||ngDevMode)&&gh();let t=nR(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ma.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(tE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Un.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&qt("NgStandalone"),rR(n);let r=e.dependencies;return n.directiveDefs=qg(r,tR),n.pipeDefs=qg(r,Kt),n.id=aie(n),n})}function tR(e){return _e(e)||dt(e)}function IS(e){return Fr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function rie(e,t){if(e==null)return pn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Cu.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function oie(e){if(e==null)return pn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function iie(e){return Fr(()=>{let t=nR(e);return rR(t),t})}function sie(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function nR(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:rie(e.inputs,t),outputs:oie(e.outputs),debugInfo:null}}function rR(e){e.features?.forEach(t=>t(e))}function qg(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}var X0=new Map;function aie(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];if(typeof ngDevMode>"u"||ngDevMode)for(let i of r)tn(typeof i,"function","Internal error: attempting to use a function in component id computation logic.");for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;t+=2147483648;let o="c"+t;if((typeof ngDevMode>"u"||ngDevMode)&&(typeof ngServerMode>"u"||!ngServerMode))if(X0.has(o)){let i=X0.get(o);i!==e.type&&console.warn(bt(-912,`Component ID generation collision detected. Components '${i.name}' and '${e.type.name}' with selector '${CD(e.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`))}else X0.set(o,e.type);return o}function cie(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function uie(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=lie,n.hostDirectives=r?e.map(nE):[e]):r?n.hostDirectives.unshift(...e.map(nE)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function lie(e){let t=[],n=!1,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,oR(s,t,r),o.set(s,[a,t.length-1])}i===0&&on(s)&&(n=!0,t.push(s))}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return[t,r,o]}function oR(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)yP(nE(i),t,n)}else yP(r,t,n)}function yP(e,t,n){let r=dt(e.directive);(typeof ngDevMode>"u"||ngDevMode)&&die(e,r),fie(r.declaredInputs,e.inputs),oR(r,t,n),n.set(r,e),t.push(r)}function nE(e){return typeof e=="function"?{directive:se(e),inputs:pn,outputs:pn}:{directive:se(e.directive),inputs:vP(e.inputs),outputs:vP(e.outputs)}}function vP(e){if(e===void 0||e.length===0)return pn;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function fie(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];(typeof ngDevMode>"u"||ngDevMode)&&e.hasOwnProperty(r)&&re(e[r],e[n],`Conflicting host directive input alias ${n}.`),e[r]=o}}function die(e,t){let n=e.directive;if(t===null)throw _e(n)!==null?new D(310,`Host directive ${n.name} cannot be a component.`):new D(307,`Could not resolve metadata for host directive ${n.name}. Make sure that the ${n.name} class is annotated with an @Directive decorator.`);if(!t.standalone)throw new D(308,`Host directive ${t.type.name} must be standalone.`);bP("input",t,e.inputs),bP("output",t,e.outputs)}function bP(e,t,n){let r=t.type.name,o=e==="input"?t.inputs:t.outputs;for(let i in n)if(n.hasOwnProperty(i)){if(!o.hasOwnProperty(i))throw new D(311,`Directive ${r} does not have an ${e} with a public name of ${i}.`);let s=n[i];if(o.hasOwnProperty(s)&&s!==i)throw new D(312,`Cannot alias ${e} ${i} of host directive ${r} to ${s}, because it already has a different ${e} with the same public name.`)}}function pie(e){return Object.getPrototypeOf(e.prototype).constructor}function iR(e){let t=pie(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Cr)?t[Cr]:void 0,s=Object.hasOwn(t,vi)?t[vi]:void 0;if(on(e))o=i??s;else{if(i)throw new D(903,ngDevMode&&`Directives cannot inherit Components. Directive ${ge(e.type)} is attempting to extend component ${ge(t)}`);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=ew(e.inputs),c.declaredInputs=ew(e.declaredInputs),c.outputs=ew(e.outputs);let u=o.hostBindings;u&&vie(e,u);let l=o.viewQuery,f=o.contentQueries;if(l&&mie(e,l),f&&yie(e,f),hie(e,o),FM(e.outputs,o.outputs),on(o)&&o.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let u=a[c];u&&u.ngInherit&&u(e),u===iR&&(n=!1)}}t=Object.getPrototypeOf(t)}gie(r)}function hie(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function gie(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Aa(o.hostAttrs,n=Aa(n,o.hostAttrs))}}function ew(e){return e===pn?{}:e===Ae?[]:e}function mie(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function yie(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function vie(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function sR(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Aa(e.mergedAttrs,e.attrs);let l=e.tView=ZE(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),pr(e,!1);let c=_ie(n,t,e,r);uu()&&cS(n,t,c,e),ln(c,t);let u=pk(c,t,c,e);t[r+Z]=u,JE(t,u),qk(u,e,t)}function bie(e,t,n,r,o,i,s,a,c,u,l){let f=n+Z,d;return t.firstCreatePass?(d=Wi(t,f,4,s||null,a||null),qh()&&Pk(t,e,d,Ct(t.consts,u),dS),pC(t,d)):d=t.data[f],sR(d,e,t,n,r,o,i,c),Ii(d)&&lm(t,e,d),u!=null&&Wa(e,d,l),d}function Fi(e,t,n,r,o,i,s,a,c,u,l){let f=n+Z,d;if(t.firstCreatePass){if(d=Wi(t,f,4,s||null,a||null),u!=null){let p=Ct(t.consts,u);d.localNames=[];for(let h=0;h<p.length;h+=2)d.localNames.push(p[h],-1)}}else d=t.data[f];return sR(d,e,t,n,r,o,i,c),u!=null&&Wa(e,d,l),d}function aR(e,t,n,r,o,i,s,a){let c=S(),u=fe(),l=Ct(u.consts,i);return bie(c,u,e,t,n,r,o,l,void 0,s,a),aR}function cR(e,t,n,r,o,i,s,a){let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,void 0,s,a),cR}var _ie=wie;function wie(e,t,n,r){return ga(!0),t[pe].createComment(ngDevMode?"container":"")}var ot;(function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED"})(ot||(ot={}));var Bg=0,uR=1,Ue;(function(e){e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error"})(Ue||(Ue={}));var qi;(function(e){e[e.Initial=-1]="Initial"})(qi||(qi={}));var xa=0,Ur=1,mu=2,ng=3,Eie=4,Sie=5,Bi=6,xie=7,Ia=8,Iie=9,rE;(function(e){e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough"})(rE||(rE={}));function tl(e,t,n){let r=fR(e);t[r]===null&&(t[r]=[]),t[r].push(n)}function ug(e,t){let n=fR(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null}}function lR(e){ug(1,e),ug(0,e),ug(2,e)}function fR(e){let t=Eie;return e===1?t=Sie:e===2&&(t=Iie),t}function Em(e){return e+1}function Bt(e,t){let n=e[x],r=Em(t.index);return ngDevMode&&fa(n,r),e[r]}function Aie(e,t,n){let r=e[x],o=Em(t);ngDevMode&&fa(r,o),e[o]=n}function kt(e,t){let n=Em(t.index);return ngDevMode&&fa(e,n),e.data[n]}function Tie(e,t,n){let r=Em(t);ngDevMode&&fa(e,r),e.data[r]=n}function Mie(e,t,n){let r=t[x],o=kt(r,n);switch(e){case Ue.Complete:return o.primaryTmplIndex;case Ue.Loading:return o.loadingTmplIndex;case Ue.Error:return o.errorTmplIndex;case Ue.Placeholder:return o.placeholderTmplIndex;default:return ngDevMode&&X(`Unexpected defer block state: ${e}`),null}}function oE(e,t){return t===Ue.Placeholder?e.placeholderBlockConfig?.[Bg]??null:t===Ue.Loading?e.loadingBlockConfig?.[Bg]??null:null}function dR(e){return e.loadingBlockConfig?.[uR]??null}function _P(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function Oie(e,t){let n=t.primaryTmplIndex+Z;return Mi(e,n)}function pR(e){re(e.loadingState,ot.COMPLETE,"Expecting all deferred dependencies to be loaded.")}function Pie(e){return e!==null&&typeof e=="object"&&typeof e.primaryTmplIndex=="number"}function it(e,t,n){let r=kt(e,t);r.debug??={},r.debug.triggers??=new Set,r.debug.triggers.add(n)}function hR(e,t,n,r){let o=n.get(Ye);return gte(e,()=>o.run(t),i=>o.runOutsideAngular(()=>hte(i)),r)}function Cie(e,t,n){if(n==null)return e;if(n>=0)return l0(n,e);let r=e[t.index];ngDevMode&&gn(r);let o=r[qe]??null;if(ngDevMode&&o!==null){let s=Bt(e,t)[Ur];re(s,Ue.Placeholder,"Expected a placeholder to be rendered in this defer block."),an(o)}return o}function Die(e,t){let n=Ti(Z+t,e);return ngDevMode&&BM(n),n}function Qa(e,t,n,r,o,i,s,a){let c=e[Se],u=c.get(Ye),l;function f(){if(fr(e)){l.destroy();return}let d=Bt(e,t),p=d[Ur];if(p!==qi.Initial&&p!==Ue.Placeholder){l.destroy();return}let h=Cie(e,t,r);if(!h||(l.destroy(),fr(h)))return;let m=Die(h,n),y=o(m,()=>{u.run(()=>{e!==h&&Fh(h,y),i()})},c,a);e!==h&&au(h,y),tl(s,d,y)}l=Lw({read:f},{injector:c})}function AS(e,t){let n=t.get(iE),r=()=>n.remove(e);return n.add(e),r}var kie=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,Rie=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,iE=class e{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=z(Ye);requestIdleCallbackFn=kie().bind(globalThis);cancelIdleCallbackFn=Rie().bind(globalThis);add(t){(this.executingCallbacks?this.deferred:this.current).add(t),this.idleId===null&&this.scheduleIdleCallback()}remove(t){let{current:n,deferred:r}=this;n.delete(t),r.delete(t),n.size===0&&r.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let t=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let n of this.current)n();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let n of this.deferred)this.current.add(n);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(t))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})};function TS(e){return(t,n)=>gR(e,t,n)}function gR(e,t,n){let r=n.get(sE),o=n.get(Ye),i=()=>r.remove(t);return r.add(e,t,o),i}var sE=class e{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(t,n,r){let o=this.executingCallbacks?this.deferred:this.current;this.addToQueue(o,Date.now()+t,n),this.scheduleTimer(r)}remove(t){let{current:n,deferred:r}=this;this.removeFromQueue(n,t)===-1&&this.removeFromQueue(r,t),n.length===0&&r.length===0&&this.clearTimeout()}addToQueue(t,n,r){let o=t.length;for(let i=0;i<t.length;i+=2)if(t[i]>n){o=i;break}z_(t,o,n,r)}removeFromQueue(t,n){let r=-1;for(let o=0;o<t.length;o+=2)if(t[o+1]===n){r=o;break}return r>-1&&G_(t,r,2),r}scheduleTimer(t){let n=()=>{this.clearTimeout(),this.executingCallbacks=!0;let o=[...this.current],i=Date.now();for(let a=0;a<o.length;a+=2){let c=o[a],u=o[a+1];if(c<=i)u();else break}let s=-1;for(let a=0;a<this.current.length&&this.current[a]<=i;a+=2)s=a+1;if(s>=0&&G_(this.current,0,s+1),this.executingCallbacks=!1,this.deferred.length>0){for(let a=0;a<this.deferred.length;a+=2){let c=this.deferred[a],u=this.deferred[a+1];this.addToQueue(this.current,c,u)}this.deferred.length=0}this.scheduleTimer(t)};if(this.current.length>0){let o=Date.now(),i=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-i>16){this.clearTimeout();let s=Math.max(i-o,16);this.invokeTimerAt=i,this.timeoutId=t.runOutsideAngular(()=>setTimeout(()=>t.run(n),s))}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},aE=class e{cachedInjectors=new Map;getOrCreateInjector(t,n,r,o){if(!this.cachedInjectors.has(t)){let i=r.length>0?eR(r,n,o):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Fe({token:e,providedIn:"environment",factory:()=>new e})},Nie=new H("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),Lie=new H(typeof ngDevMode<"u"&&ngDevMode?"DEFER_BLOCK_CONFIG":"");function tw(e,t,n){return e.get(aE).getOrCreateInjector(t,e,n,ngDevMode?"DeferBlock Injector":"")}function jie(e,t,n){if(e instanceof Bo){let o=e.injector,i=e.parentInjector,s=tw(i,t,n);return new Bo(o,s)}let r=e.get(Ft);if(r!==e){let o=tw(r,t,n);return new Bo(e,o)}return tw(e,t,n)}function qo(e,t,n,r=!1){let o=n[tt],i=o[x];if(fr(o))return;ngDevMode&&sn(t,o);let s=Bt(o,t);ngDevMode&&F(s,"Expected a defer block state defined");let a=s[Ur],c=s[xie];if(!(c!==null&&e<c)&&EP(a,e)&&EP(s[xa]??-1,e)){let u=kt(i,t),l=!r&&(typeof ngServerMode>"u"||!ngServerMode)&&(dR(u)!==null||oE(u,Ue.Loading)!==null||oE(u,Ue.Placeholder));ngDevMode&&l&&F(Ug,"Expected scheduling function to be defined");let f=l?Ug:mR;try{f(e,s,n,t,o)}catch(d){pS(o,d)}}}function Fie(e,t){let n=e[kr]?.findIndex(o=>o.data[LE]===t[Ur])??-1;return{dehydratedView:n>-1?e[kr][n]:null,dehydratedViewIx:n}}function mR(e,t,n,r,o){Be(K.DeferBlockStateStart);let i=Mie(e,o,r);if(i!==null){t[Ur]=e;let s=o[x],a=i+Z,c=Mi(s,a),u=0;hS(n,u);let l;if(e===Ue.Complete){let h=kt(s,r),m=h.providers;m&&m.length>0&&(l=jie(o[Se],h,m))}let{dehydratedView:f,dehydratedViewIx:d}=Fie(n,t),p=Ga(o,c,null,{injector:l,dehydratedView:f});if(za(n,p,u,Li(c,f)),el(p,2),d>-1&&n[kr]?.splice(d,1),(e===Ue.Complete||e===Ue.Error)&&Array.isArray(t[Ia])){for(let h of t[Ia])h();t[Ia]=null}}Be(K.DeferBlockStateEnd)}function qie(e,t,n,r,o){let i=Date.now(),s=o[x],a=kt(s,r);if(t[mu]===null||t[mu]<=i){t[mu]=null;let c=dR(a),u=t[ng]!==null;if(e===Ue.Loading&&c!==null&&!u){t[xa]=e;let l=wP(c,t,r,n,o);t[ng]=l}else{e>Ue.Loading&&u&&(t[ng](),t[ng]=null,t[xa]=null),mR(e,t,n,r,o);let l=oE(a,e);l!==null&&(t[mu]=i+l,wP(l,t,r,n,o))}}else t[xa]=e}function wP(e,t,n,r,o){return gR(e,()=>{let s=t[xa];t[mu]=null,t[xa]=null,s!==null&&qo(s,n,r)},o[Se])}function EP(e,t){return e<t}function Ja(e,t){let n=e[t.index];ngDevMode&&gn(n),qo(Ue.Placeholder,t,n)}function SP(e,t,n){ngDevMode&&F(e.loadingPromise,"Expected loading Promise to exist on this defer block"),e.loadingPromise.then(()=>{e.loadingState===ot.COMPLETE?(ngDevMode&&pR(e),qo(Ue.Complete,t,n)):e.loadingState===ot.FAILED&&qo(Ue.Error,t,n)})}var Ug=null;function Bie(e,t,n,r){let o=e.consts;n!=null&&(t.placeholderBlockConfig=Ct(o,n)),r!=null&&(t.loadingBlockConfig=Ct(o,r)),Ug===null&&(Ug=qie)}function vn(e,t,n,r){return Fr(()=>{let o=e;t!==null&&(o.hasOwnProperty("decorators")&&o.decorators!==void 0?o.decorators.push(...t):o.decorators=t),n!==null&&(o.ctorParameters=n),r!==null&&(o.hasOwnProperty("propDecorators")&&o.propDecorators!==void 0?o.propDecorators={...o.propDecorators,...r}:o.propDecorators=r)})}var ja=class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(ja,[{type:Ie,args:[{providedIn:"platform"}]}],null,null);var cE=class{resolverToTokenToDependencies=new WeakMap;resolverToProviders=new WeakMap;resolverToEffects=new WeakMap;standaloneInjectorToComponent=new WeakMap;reset(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}},Xa=new cE;function nl(){return Xa}function Uie(){Xa.reset(),B_(Hie)}function Hie(e){let{context:t,type:n}=e;n===0?$ie(t,e.service):n===1?Wie(t,e.instance):n===2?Gie(t,e.providerRecord):n===3?xP(t,e.effect):n===4&&xP(t,e.effectPhase)}function xP(e,t){let n=MS(e.injector);n===null&&X("An EffectCreated event must be run within an injection context.");let{resolverToEffects:r}=Xa,o=t instanceof Vc?t[ze]:t.sequence,i=r.get(n);i||(i=[],r.set(n,i)),i.push(t),o.onDestroyFns??=[],o.onDestroyFns.push(()=>{let s=i.indexOf(t);s>-1&&i.splice(s,1)})}function $ie(e,t){let n=MS(e.injector);n===null&&X("An Inject event must be run within an injection context.");let r=Xa.resolverToTokenToDependencies;if(r.has(n)||r.set(n,new WeakMap),!zie(e.token))return;let o=r.get(n);o.has(e.token)||o.set(e.token,[]);let{token:i,value:s,flags:a}=t;F(e.token,"Injector profiler context token is undefined.");let c=o.get(e.token);F(c,"Could not resolve dependencies for token."),e.injector instanceof We?c.push({token:i,value:s,flags:a,injectedIn:Kie(e.injector)}):c.push({token:i,value:s,flags:a})}function Kie(e){e instanceof We||X("getNodeInjectorContext must be called with a NodeInjector");let t=Ho(e),n=$i(e);if(n!==null)return sn(n,t),{lView:t,tNode:n}}function Wie(e,t){let{value:n}=t;if(t.value==null)return;MS(e.injector)===null&&X("An InjectorCreatedInstance event must be run within an injection context.");let r;if(typeof n=="object"&&(r=n?.constructor),r==null||!Vie(r))return;let o=e.injector.get(Ft,null,{optional:!0});if(o===null)return;let{standaloneInjectorToComponent:i}=Xa;i.has(o)||i.set(o,r)}function Vie(e){return!!_e(e)?.standalone}function Gie(e,t){let{resolverToProviders:n}=Xa,r;e?.injector instanceof We?r=$i(e.injector):r=e.injector,r===null&&X("A ProviderConfigured event must be run within an injection context."),n.has(r)||n.set(r,[]),n.get(r).push(t)}function MS(e){let t=null;return e===void 0||(e instanceof We?t=Ho(e):t=e),t}function zie(e){return e!==null&&(typeof e=="object"||typeof e=="function"||typeof e=="symbol")}function OS(e){return typeof e=="function"&&e[ze]!==void 0}function yR(e){return OS(e)&&typeof e.set=="function"}function Yie(e){ngDevMode&&F(e,"component"),el(PC(e),3),qC(e).forEach(t=>Zie(t))}function Zie(e){let t=PC(e);t[ae]|=1024,gm(t)}function lg(e,t){let n=e[x];for(let r=Z;r<n.bindingStartIndex;r++)if(Ot(e[r])){let o=e[r];if(!(r===n.bindingStartIndex-1)){let s=n.data[r],a=kt(n,s);if(Pie(a)){t.push({lContainer:o,lView:e,tNode:s,tDetails:a});continue}}nt(o[Xe])&&lg(o[Xe],t);for(let s=qe;s<o.length;s++)lg(o[s],t)}else nt(e[r])&&lg(e[r],t)}function Qie(e){let t=[],n=$o(e)?.lView;return n&&vR(e,n,t),t}function vR(e,t,n){let r=t[Se],o=r.get(Ha,null,{optional:!0}),i=[];lg(t,i);let a=r.get(Tu).get(jE,{});for(let c of i){let u=rt(c.tNode,c.lView),l=Bt(c.lView,c.tNode);if(!e.contains(u))continue;let f=c.tDetails,d=ese(c),p=[],h=Xie(f,l,o);if(d!==null)Ca(d[x],d,d[x].firstChild,p);else if(h==="dehydrated"){let y=l[Bi],w=a[y][RE],A=0,j=c.lContainer[Rr].previousSibling;for(;A<w&&j;)p.unshift(j),j=j.previousSibling,A++}let m={state:Jie(l[Ur]),incrementalHydrationState:h,hasErrorBlock:f.errorTmplIndex!==null,loadingBlock:{exists:f.loadingTmplIndex!==null,minimumTime:f.loadingBlockConfig?.[Bg]??null,afterTime:f.loadingBlockConfig?.[uR]??null},placeholderBlock:{exists:f.placeholderTmplIndex!==null,minimumTime:f.placeholderBlockConfig?.[Bg]??null},triggers:f.debug?.triggers?Array.from(f.debug.triggers).sort():[],hostNode:c.lContainer[Xe],rootNodes:p};n.push(m),d!==null&&vR(e,d,n)}}function Jie(e){switch(e){case Ue.Complete:return"complete";case Ue.Loading:return"loading";case Ue.Placeholder:return"placeholder";case Ue.Error:return"error";case qi.Initial:return"initial";default:throw new Error(`Unrecognized state ${e}`)}}function Xie(e,t,n){return n===null||t[Bi]===null||e.hydrateTriggers===null||e.hydrateTriggers.has(7)?"not-configured":n.has(t[Bi])?"dehydrated":"hydrated"}function ese(e){if(e.lContainer.length<=qe)return null;let t=e.lContainer[qe];return ngDevMode&&an(t),t}function tse(e,t){let n=e.get(t,null,{self:!0,optional:!0});if(n===null)throw new Error(`Unable to determine instance of ${t} in given injector`);let r=nse(t,e),o=bR(e),i=r.map(s=>{let a={value:s.value},c=s.flags;a.flags={optional:(8&c)===8,host:(1&c)===1,self:(2&c)===2,skipSelf:(4&c)===4};for(let u=0;u<o.length;u++){let l=o[u];if(u===0&&a.flags.skipSelf)continue;if(a.flags.host&&l instanceof Ft)break;if(l.get(s.token,null,{self:!0,optional:!0})!==null){if(a.flags.host){o[0].get(s.token,null,{...a.flags,optional:!0})!==null&&(a.providedIn=l);break}a.providedIn=l;break}if(u===0&&a.flags.self)break}return s.token&&(a.token=s.token),a});return{instance:n,dependencies:i}}function nse(e,t){let{resolverToTokenToDependencies:n}=nl();if(!(t instanceof We))return n.get(t)?.get?.(e)??[];let r=Ho(t);return(n.get(r)?.get(e)??[]).filter(s=>{let a=s.injectedIn?.tNode;if(a===void 0)return!1;let c=$i(t);return dr(a),dr(c),a===c})}function rse(e){let{standaloneInjectorToComponent:t}=nl();if(t.has(e))return t.get(e);let n=e.get(La,null,{self:!0,optional:!0});return n===null||n.instance===null?null:n.instance.constructor}function ose(e){let t=$i(e),{resolverToProviders:n}=nl();return n.get(t)??[]}function ise(e){let t=new Map,r=sse(t,new Set);return Uc(e,r,[],new Set),t}function sse(e,t){return(n,r)=>{if(e.has(n)||e.set(n,[r]),!t.has(r))for(let o of e.keys()){let i=e.get(o),s=jc(r);if(!s){let u=r.ngModule;s=jc(u)}if(!s)return;let a=i[0],c=!1;_i(s.imports,u=>{c||(c=u.ngModule===a||u===a,c&&e.get(o)?.unshift(r))})}t.add(r)}}function ase(e){let t=nl().resolverToProviders.get(e)??[];if(cse(e))return t;let n=rse(e);if(n===null)return t;let r=ise(n),o=[];for(let i of t){let s=i.provider,a=s.provide;if(a===wi||a===Th)continue;let c=r.get(s)??[];_e(n)?.standalone&&(c=[n,...c]),o.push({...i,importPath:c})}return o}function cse(e){return e instanceof Nn&&e.scopes.has("platform")}function use(e){if(e instanceof We)return ose(e);if(e instanceof Ft)return ase(e);X("getInjectorProviders only supports NodeInjector and EnvironmentInjector")}function lse(e){if(e instanceof We){let t=Ho(e),n=$i(e);return sn(n,t),{type:"element",source:rt(n,t)}}return e instanceof Nn?{type:"environment",source:e.source??null}:e instanceof gi?{type:"null",source:null}:null}function bR(e){let t=[e];return uE(e,t),t}function uE(e,t){let n=fse(e);if(n===null){if(e instanceof We){let r=t[0];if(r instanceof We){let o=dse(r);o===null&&X("NodeInjector must have some connection to the module injector tree"),t.push(o),uE(o,t)}return t}}else t.push(n),uE(n,t);return t}function fse(e){if(e instanceof Nn)return e.parent;let t,n;if(e instanceof We)t=$i(e),n=Ho(e);else{if(e instanceof gi)return null;if(e instanceof Bo)return e.parentInjector;X("getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector")}let r=Zg(t,n);if(PE(r)){let o=xu(r),i=Iu(r,n),a=i[x].data[o+8];return new We(a,i)}else{let i=n[Se].injector?.parent;if(i instanceof We)return i}return null}function dse(e){let t;e instanceof We?t=Ho(e):X("getModuleInjectorOfNodeInjector must be called with a NodeInjector");let n=t[Se],r=n instanceof Bo?n.parentInjector:n.parent;return r||X("NodeInjector must have some connection to the module injector tree"),r}function pse(e){return e.kind==="computed"}function hse(e){return e.kind==="template"}function gse(e){return e.kind==="signal"}function mse(e){let t=$i(e);dr(t);let n=Ho(e);an(n);let r=n[t.index];return nt(r)?r[rn]??null:null}var IP=new WeakMap,AP=0;function yse(e){let t=Array.from(e.keys()),n=[],r=[];for(let[o,i]of e.entries()){let s=t.indexOf(o),a=IP.get(o);a||(AP++,a=AP.toString(),IP.set(o,a)),pse(o)?n.push({label:o.debugName,value:o.value,kind:o.kind,epoch:o.version,debuggableFn:o.computation,id:a}):gse(o)?n.push({label:o.debugName,value:o.value,kind:o.kind,epoch:o.version,id:a}):hse(o)?n.push({label:o.debugName??o.lView?.[Xe]?.tagName?.toLowerCase?.(),kind:o.kind,epoch:o.version,debuggableFn:o.lView?.[Te]?.constructor,id:a}):n.push({label:o.debugName,kind:o.kind,epoch:o.version,id:a});for(let c of i)r.push({consumer:s,producer:t.indexOf(c)})}return{nodes:n,edges:r}}function vse(e){let t=e;return e instanceof We&&(t=Ho(e)),(nl().resolverToEffects.get(t)??[]).map(o=>o instanceof Vc?o[ze]:o.signal[ze])}function _R(e,t=new Map){for(let n of e){if(t.has(n))continue;let r=[];for(let o=n.producers;o!==void 0;o=o.nextProducer){let i=o.producer;r.push(i)}t.set(n,r),_R(r,t)}return t}function bse(e){let t=null;if(!(e instanceof We)&&!(e instanceof Nn))return X("getSignalGraph must be called with a NodeInjector or R3Injector");e instanceof We&&(t=mse(e));let n=vse(e),r=t?[t,...n]:n,o=_R(r);return yse(o)}var _se=0,TP=0,MP=0,wR=[];function ER(e){wR.push([e,MP]),console.timeStamp("Event_"+e+"_"+MP++)}function un(e,t,n){let r;do r=wR.pop(),F(r,"Profiling error: could not find start event entry "+e);while(r[0]!==e);console.timeStamp(t,"Event_"+r[0]+"_"+r[1],void 0,"\u{1F170}\uFE0F Angular",void 0,n)}var wse=e=>{let t=e.type;if(t===5)ER(100);else if(t===1){let n=e.context.token;un(100,SR(n),"tertiary-dark")}},Ese=(e,t,n)=>{switch(e){case K.BootstrapApplicationStart:case K.BootstrapComponentStart:case K.ChangeDetectionStart:case K.ChangeDetectionSyncStart:case K.AfterRenderHooksStart:case K.ComponentStart:case K.DeferBlockStateStart:case K.DynamicComponentStart:case K.TemplateCreateStart:case K.LifecycleHookStart:case K.TemplateUpdateStart:case K.HostBindingsUpdateStart:case K.OutputStart:{ER(e);break}case K.BootstrapApplicationEnd:{un(K.BootstrapApplicationStart,"Bootstrap application","primary-dark");break}case K.BootstrapComponentEnd:{un(K.BootstrapComponentStart,"Bootstrap component","primary-dark");break}case K.ChangeDetectionEnd:{TP=0,un(K.ChangeDetectionStart,"Change detection "+_se++,"primary-dark");break}case K.ChangeDetectionSyncEnd:{un(K.ChangeDetectionSyncStart,"Synchronization "+TP++,"primary");break}case K.AfterRenderHooksEnd:{un(K.AfterRenderHooksStart,"After render hooks","primary");break}case K.ComponentEnd:{let r=OP(t);un(K.ComponentStart,r,"primary-light");break}case K.DeferBlockStateEnd:{un(K.DeferBlockStateStart,"Defer block","primary-dark");break}case K.DynamicComponentEnd:{un(K.DynamicComponentStart,"Dynamic component creation","primary-dark");break}case K.TemplateUpdateEnd:{un(K.TemplateUpdateStart,ge(n)+" (update)","secondary-dark");break}case K.TemplateCreateEnd:{un(K.TemplateCreateStart,ge(n)+" (create)","secondary");break}case K.HostBindingsUpdateEnd:{un(K.HostBindingsUpdateStart,"HostBindings","secondary-dark");break}case K.LifecycleHookEnd:{let r=OP(t);un(K.LifecycleHookStart,`${r}:${ge(n)}`,"tertiary");break}case K.OutputEnd:{un(K.OutputStart,ge(n),"tertiary-light");break}default:throw new Error("Unexpected profiling event type: "+e)}};function OP(e){return e.constructor.name}function SR(e){return or(e)?e.name:e.provide!=null?SR(e.provide):e.toString()}function Sse(){if(qt("Chrome DevTools profiling"),typeof ngDevMode<"u"&&ngDevMode){let e=B_(wse),t=dC(Ese);return()=>{e(),t()}}return()=>{}}function xse(e){let t=e.get(ma),n=e.get(Xg),r=$C(t,n),o={};for(let[i,s]of Object.entries(r))wte(i)||(o[i]=s);return o}var PP="ng",Ise={\u0275getDependenciesFromInjectable:tse,\u0275getInjectorProviders:use,\u0275getInjectorResolutionPath:bR,\u0275getInjectorMetadata:lse,\u0275setProfiler:dC,\u0275getSignalGraph:bse,\u0275getDeferBlocks:Qie,\u0275getTransferState:xse,getDirectiveMetadata:rte,getComponent:FC,getContext:Xee,getListeners:ite,getOwningComponent:ete,getHostElement:ote,getInjector:tte,getRootComponents:qC,getDirectives:nte,applyChanges:Yie,isSignal:OS,enableProfiling:Sse},CP=!1;function Ase(){if(!CP){CP=!0,typeof window<"u"&&Uie();for(let[e,t]of Object.entries(Ise))Tse(e,t)}}function Tse(e,t){Mse(e,t)}function Mse(e,t){if(typeof COMPILED>"u"||!COMPILED){let n=At;ngDevMode&&F(t,"function not defined"),n[PP]??={},n[PP][e]=t}}var Ose=new H(""),xR=new H(""),lE=class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(t,n,r){this._ngZone=t,this.registry=n,Ch()&&(this._destroyRef=z(Ln,{optional:!0})??void 0),PS||(Pse(r),r.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let t=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{t.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(i=>i.timeoutId!==o),t()},n)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,n,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,r){return[]}static \u0275fac=function(n){return new(n||e)(Tt(Ye),Tt(Bu),Tt(xR))};static \u0275prov=Fe({token:e,factory:e.\u0275fac})};(typeof ngDevMode>"u"||ngDevMode)&&vn(lE,[{type:Ie}],()=>[{type:Ye},{type:Bu},{type:void 0,decorators:[{type:aC,args:[xR]}]}],null);var Bu=class e{_applications=new Map;registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return PS?.findTestabilityInTree(this,t,n)??null}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Bu,[{type:Ie,args:[{providedIn:"platform"}]}],null,null);function Pse(e){PS=e}var PS;function CS(e){return!!e&&typeof e.then=="function"}function Cse(e){return!!e&&typeof e.subscribe=="function"}var Dse=new H(ngDevMode?"Application Initializer":"");var Fa=class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n});appInits=z(Dse,{optional:!0})??[];injector=z(en);constructor(){if((typeof ngDevMode>"u"||ngDevMode)&&!Array.isArray(this.appInits))throw new D(-209,`Unexpected type of the \`APP_INITIALIZER\` token value (expected an array, but got ${typeof this.appInits}). Please check that the \`APP_INITIALIZER\` token is configured as a \`multi: true\` provider.`)}runInitializers(){if(this.initialized)return;let t=[];for(let r of this.appInits){let o=Ph(this.injector,r);if(CS(o))t.push(o);else if(Cse(o)){let i=new Promise((s,a)=>{o.subscribe({complete:s,error:a})});t.push(i)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(r=>{this.reject(r)}),t.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Fa,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);var IR=new H(ngDevMode?"appBootstrapListener":"");function AR(){ngDevMode&&Ase()}function TR(){Gy(()=>{let e="";if(ngDevMode){let t=ei();e=t&&_re(t)?"Writing to signals is not allowed while Angular renders the template (eg. interpolations)":"Writing to signals is not allowed in a `computed`"}throw new D(600,e)})}function kse(e){return e.isBoundToModule}var DP=10;function DS(e,t){return Array.isArray(t)?t.reduce(DS,e):{...e,...t}}var Tn=class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=z(Lr);afterRenderManager=z(Ru);zonelessEnabled=z(lu);rootEffectScheduler=z(Wc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ku.Subject;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=z(jn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,sC.map)(t=>!t))}constructor(){z(Ka,{optional:!0})}whenStable(){let t;return new Promise(n=>{t=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{t.unsubscribe()})}_injector=z(Ft);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,n){return this.bootstrapImpl(t,n)}bootstrapImpl(t,n,r=en.NULL){return this._injector.get(Ye).run(()=>{Be(K.BootstrapComponentStart),(typeof ngDevMode>"u"||ngDevMode)&&fu(this._destroyed);let i=t instanceof Ok;if(!this._injector.get(Fa).done){let p="";throw(typeof ngDevMode>"u"||ngDevMode)&&(p="Cannot bootstrap as there are still asynchronous initializers running."+(!i&&Dr(t)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.")),new D(405,p)}let a;i?a=t:a=this._injector.get(bm).resolveComponentFactory(t),this.componentTypes.push(a.componentType);let c=kse(a)?void 0:this._injector.get(La),u=n||a.selector,l=a.create(r,[],u,c),f=l.location.nativeElement,d=l.injector.get(Ose,null);return d?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),wu(this.components,l),d?.unregisterApplication(f)}),this._loadComponent(l),(typeof ngDevMode>"u"||ngDevMode)&&this._injector.get(ja).log("Angular is running in development mode."),Be(K.BootstrapComponentEnd,l),l})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Be(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ig.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if((typeof ngDevMode>"u"||ngDevMode)&&fu(this._destroyed),this._runningTick)throw Be(K.ChangeDetectionEnd),new D(101,ngDevMode&&"ApplicationRef.tick is called recursively");let t=te(null);try{if(this._runningTick=!0,this.synchronize(),typeof ngDevMode>"u"||ngDevMode)for(let n of this.allViews)n.checkNoChanges()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,te(t),this.afterTick.next(),Be(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Pg,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++<DP;){Be(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Be(K.ChangeDetectionSyncEnd)}}if((typeof ngDevMode>"u"||ngDevMode)&&t>=DP)throw new D(103,ngDevMode&&"Infinite change detection while refreshing application views. Ensure views are not calling `markForCheck` on every template execution or that afterRender hooks always mark views for check.")}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let t=!1;if(this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r}of this.allViews){if(!n&&!su(r))continue;let o=n&&!this.zonelessEnabled?0:1;gm(r,o),t=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}t||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:t})=>su(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){(typeof ngDevMode>"u"||ngDevMode)&&fu(this._destroyed);let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){(typeof ngDevMode>"u"||ngDevMode)&&fu(this._destroyed);let n=t;wu(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(t);let n=this._injector.get(IR,[]);if(ngDevMode&&!Array.isArray(n))throw new D(-209,`Unexpected type of the \`APP_BOOTSTRAP_LISTENER\` token value (expected an array, but got ${typeof n}). Please check that the \`APP_BOOTSTRAP_LISTENER\` token is configured as a \`multi: true\` provider.`);n.forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return(typeof ngDevMode>"u"||ngDevMode)&&fu(this._destroyed),this._destroyListeners.push(t),()=>wu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new D(406,ngDevMode&&"This instance of the `ApplicationRef` has already been destroyed.");let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Tn,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);function fu(e){e&&console.warn(bt(406,"This instance of the `ApplicationRef` has already been destroyed."))}function wu(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kS(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}function MR(e){let t=S(),n=ce();if(Ja(t,n),!CR(0,t))return;let r=t[Se],o=Bt(t,n),i=e(()=>Yt(0,t,n),r);tl(0,o,i)}function OR(e){if(typeof ngServerMode<"u"&&ngServerMode)return;let t=S(),n=t[Se],r=ce(),o=t[x],i=kt(o,r);if(i.loadingState===ot.NOT_STARTED){let s=Bt(t,r),c=e(()=>rl(i,t,r),n);tl(1,s,c)}}function PR(e,t,n){if(typeof ngServerMode<"u"&&ngServerMode)return;let r=t[Se],o=Bt(t,n),i=o[Bi];ngDevMode&&qE(i);let s=e(()=>Sm(r,i),r);tl(2,o,s)}function rl(e,t,n){RS(e,t,n)}function RS(e,t,n){let r=t[Se],o=t[x];if(e.loadingState!==ot.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Bt(t,n),s=Oie(o,e);e.loadingState=ot.IN_PROGRESS,ug(1,i);let a=e.dependencyResolverFn;if(ngDevMode){let u=r.get(Nie,null,{optional:!0});u&&(a=u.intercept(a))}let c=r.get(oa).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(u=>{let l=!1,f=null,d=[],p=[];for(let h=0;h<u.length;h++){let m=u[h];if(m.status==="fulfilled"){let y=m.value,v=_e(y)||dt(y);if(v)d.push(v);else{let w=Kt(y);w&&p.push(w)}}else{l=!0,f=m.reason instanceof Error?m.reason:new Error(String(m.reason));break}}if(l){if(e.loadingState=ot.FAILED,e.errorTmplIndex===null){let h=ngDevMode?Ou(t):"",m="";if(ngDevMode){m=`Loading dependencies for \`@defer\` block failed, but no \`@error\` block was configured${h}. Consider using the \`@error\` block to render an error state.`;let v=e.dependencyResolverFn,w=f?.message;v&&(m+=`
68
+ `}function Hre(e){return e.replace(/\s+/gm,"")}function Og(e,t=50){return e?(e=Hre(e),e.length>t?`${e.substring(0,t-1)}\u2026`:e):""}function Ek(e,t,n){let r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?QD(e,t,n):(ngDevMode&&ct(n,o),gt(n[o]))}function Sk(e,t,n,r,o){let i=t.insertBeforeIndex;if(Array.isArray(i)){ngDevMode&&Oo(r);let s=r,a=null;if(t.type&3||(a=s,s=o),s!==null&&t.componentOffset===-1)for(let c=1;c<i.length;c++){let u=n[i[c]];Ri(e,s,u,a,!1)}}}function Wi(e,t,n,r,o){ngDevMode&&t!==0&&cr(t,Z,"TNodes can't be in the LView header."),ngDevMode&&Mee(n);let i=e.data[t];if(i===null)i=gS(e,t,n,r,o),gO()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ha();i.injectorIndex=s===null?-1:s.injectorIndex,ngDevMode&&Ai(i,e),ngDevMode&&re(t,i.index,"Expecting same index")}return pr(i,!0),i}function gS(e,t,n,r,o){let i=w0(),s=E0(),a=s?i:i&&i.parent,c=e.data[t]=Kre(e,a,n,t,r,o);return $re(e,c,i,s),c}function $re(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Kre(e,t,n,r,o,i){ngDevMode&&r!==0&&cr(r,Z,"TNodes can't be in the LView header."),ngDevMode&&yi(i,void 0,"'undefined' is not valid value for 'attrs'"),ngDevMode&&t&&Ai(t,e);let s=t?t.injectorIndex:-1,a=0;h0()&&(a|=128);let c={type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:N0(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};return ngDevMode&&Object.seal(c),c}function xk(e,t){if(ngDevMode&&re(t.insertBeforeIndex,null,"We expect that insertBeforeIndex is not set"),e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){let r=e[n];Ik(r)||Wre(r,t)&&Vre(r)===null&&Gre(r,t.index)}}function Ik(e){return!(e.type&64)}function Wre(e,t){return Ik(t)||e.index>t.index}function Vre(e){let t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function Gre(e,t){let n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(XD(Ek,Sk),e.insertBeforeIndex=t)}function _u(e,t){let n=e.data[t];if(n===null||typeof n=="string")return null;ngDevMode&&!(n.hasOwnProperty("tView")||n.hasOwnProperty("currentCaseLViewIndex"))&&X("We expect to get 'null'|'TIcu'|'TIcuContainer', but got: "+n);let r=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return ngDevMode&&Rh(r),r}function zre(e,t,n){let r=e.data[t];ngDevMode&&re(r===null||r.hasOwnProperty("tView"),!0,"We expect to get 'null'|'TIcuContainer'"),r===null?e.data[t]=n:(ngDevMode&&lt(r,32),r.value=n)}function Yre(e,t){ngDevMode&&dr(e);let n=e.insertBeforeIndex;n===null?(XD(Ek,Sk),n=e.insertBeforeIndex=[null,t]):(re(Array.isArray(n),!0,"Expecting array here"),n.push(t))}function Zre(e,t,n){let r=gS(e,n,64,null,null);return xk(t,r),r}function vm(e,t){let n=t[e.currentCaseLViewIndex];return n===null?n:n<0?~n:n}function Ak(e){return e>>>17}function Tk(e){return(e&131070)>>>1}function fP(e){return e&1}function Qre(e,t,n){return ngDevMode&&cr(t,0,"Missing parent index"),ngDevMode&&Mo(n,0,"Missing ref index"),e|t<<17|n<<1}function Jre(e){return e===-1}function Mk(e,t,n){e.index=0;let r=vm(t,n);r!==null?(ngDevMode&&ia(r,0,t.cases.length-1),e.removes=t.remove[r]):e.removes=Ae}function Hw(e){if(e.index<e.removes.length){let t=e.removes[e.index++];if(ngDevMode&&je(t,"Expecting OpCode number"),t>0){let n=e.lView[t];return ngDevMode&&Oo(n),n}else{e.stack.push(e.index,e.removes);let n=~t,r=e.lView[x].data[n];return ngDevMode&&Rh(r),Mk(e,r,e.lView),Hw(e)}}else return e.stack.length===0?(e.lView=void 0,null):(e.removes=e.stack.pop(),e.index=e.stack.pop(),Hw(e))}function Xre(){let e={stack:[],index:-1};function t(n,r){for(e.lView=r;e.stack.length;)e.stack.pop();return ngDevMode&&sn(n,r),Mk(e,n.value,r),Hw.bind(null,e)}return t}var eoe=()=>{};function toe(e,t,n,r){eoe(e,t,n,r)}var noe=()=>{};function roe(e,t,n){noe(e,t,n)}function ooe(e){let t=e[Po];if(t){let{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){let o=e[pe];for(let i of r.values())ioe(o,n,i)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}function ioe(e,t,n){for(let r of n.node.cases[n.case]){let o=t.get(r.index-Z);o&&Zu(e,o,!1)}}function Ok(e){let t=e[kr]??[],r=e[tt][pe],o=[];for(let i of t)i.data[NE]!==void 0?o.push(i):(Pk(i,r),ngDevMode&&ngDevMode.dehydratedViewsRemoved++);e[kr]=o}function soe(e){let{lContainer:t}=e,n=t[kr];if(n===null)return;let o=t[tt][pe];for(let i of n)Pk(i,o),ngDevMode&&ngDevMode.dehydratedViewsRemoved++}function Pk(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[RE];for(;n<o;){ngDevMode&&Lre(r);let i=r.nextSibling;Zu(t,r,!1),r=i,n++}}}function bm(e){Ok(e);let t=e[Xe];nt(t)&&ju(t);for(let n=qe;n<e.length;n++)ju(e[n])}function ju(e){ooe(e);let t=e[x];for(let n=Z;n<t.bindingStartIndex;n++)if(Ot(e[n])){let r=e[n];bm(r)}else nt(e[n])&&ju(e[n])}function Ck(e){let t=e._views;for(let n of t){let r=oD(n);r!==null&&r[Xe]!==null&&(nt(r)?ju(r):bm(r),ngDevMode&&ngDevMode.dehydratedViewsCleanupRuns++)}}function aoe(e,t,n,r){e!==null&&(n.cleanup(t),bm(e.lContainer),Ck(r))}var coe=()=>null,uoe=()=>null;function Pg(e,t){return coe(e,t)}function Dk(e,t,n){return uoe(e,t,n)}var loe=class{},kk=class{},$w=class{resolveComponentFactory(t){throw new D(917,typeof ngDevMode<"u"&&ngDevMode&&`No component factory found for ${ke(t)}.`)}},_m=class{static NULL=new $w},Cg=class{};var Kw=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>null})};function mS(e){return e.ngModule!==void 0}function ya(e){return!!Fn(e)}function ng(e){return!!Kt(e)}function dP(e){return!!dt(e)}function wu(e){return!!_e(e)}function foe(e){return _e(e)?"component":dt(e)?"directive":Kt(e)?"pipe":"type"}function Ww(e,t){if(Yc(e)&&(e=se(e),!e))throw new Error(`Expected forwardRef function, imported from "${ge(t)}", to return a standalone entity or NgModule but got "${ge(e)||e}".`);if(Fn(e)==null){let n=_e(e)||dt(e)||Kt(e);if(n!=null){if(!n.standalone){let r=foe(e);throw new Error(`The "${ge(e)}" ${r}, imported from "${ge(t)}", is not standalone. Does the ${r} have the standalone: false flag?`)}}else throw mS(e)?new Error(`A module with providers was imported from "${ge(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${ge(e)}" type, imported from "${ge(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var Vw=class{ownerNgModule=new WeakMap;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new WeakMap;standaloneComponentsScopeCache=new WeakMap;resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let t of this.ngModulesWithSomeUnresolvedDecls){let n=Fn(t);if(n?.declarations)for(let r of vr(n.declarations))wu(r)&&this.ownerNgModule.set(r,t)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(t,n){this.resolveNgModulesDecls();let r=_e(t);if(r===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${t}`);if(r.standalone){let o=this.getStandaloneComponentScope(t,n);return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes,...o.compilation.ngModules]}}else{if(!this.ownerNgModule.has(t))return{dependencies:[]};let o=this.getNgModuleScope(this.ownerNgModule.get(t));return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes]}}}registerNgModule(t,n){if(!ya(t))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${t}`);this.ngModulesWithSomeUnresolvedDecls.add(t)}clearScopeCacheFor(t){this.ngModulesScopeCache.delete(t),this.standaloneComponentsScopeCache.delete(t)}getNgModuleScope(t){if(this.ngModulesScopeCache.has(t))return this.ngModulesScopeCache.get(t);let n=this.computeNgModuleScope(t);return this.ngModulesScopeCache.set(t,n),n}computeNgModuleScope(t){let n=Xc(t),r={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let o of vr(n.imports))if(ya(o)){let i=this.getNgModuleScope(o);jo(i.exported.directives,r.compilation.directives),jo(i.exported.pipes,r.compilation.pipes)}else if(Dr(o))if(dP(o)||wu(o))r.compilation.directives.add(o);else if(ng(o))r.compilation.pipes.add(o);else throw new D(980,"The standalone imported type is neither a component nor a directive nor a pipe");else{r.compilation.isPoisoned=!0;break}if(!r.compilation.isPoisoned)for(let o of vr(n.declarations)){if(ya(o)||Dr(o)){r.compilation.isPoisoned=!0;break}ng(o)?r.compilation.pipes.add(o):r.compilation.directives.add(o)}for(let o of vr(n.exports))if(ya(o)){let i=this.getNgModuleScope(o);jo(i.exported.directives,r.exported.directives),jo(i.exported.pipes,r.exported.pipes),jo(i.exported.directives,r.compilation.directives),jo(i.exported.pipes,r.compilation.pipes)}else ng(o)?r.exported.pipes.add(o):r.exported.directives.add(o);return r}getStandaloneComponentScope(t,n){if(this.standaloneComponentsScopeCache.has(t))return this.standaloneComponentsScopeCache.get(t);let r=this.computeStandaloneComponentScope(t,n);return this.standaloneComponentsScopeCache.set(t,r),r}computeStandaloneComponentScope(t,n){let r={compilation:{directives:new Set([t]),pipes:new Set,ngModules:new Set}};for(let o of Wt(n??[])){let i=se(o);try{Ww(i,t)}catch{return r.compilation.isPoisoned=!0,r}if(ya(i)){r.compilation.ngModules.add(i);let s=this.getNgModuleScope(i);if(s.exported.isPoisoned)return r.compilation.isPoisoned=!0,r;jo(s.exported.directives,r.compilation.directives),jo(s.exported.pipes,r.compilation.pipes)}else if(ng(i))r.compilation.pipes.add(i);else if(dP(i)||wu(i))r.compilation.directives.add(i);else return r.compilation.isPoisoned=!0,r}return r}isOrphanComponent(t){let n=_e(t);return!n||n.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(t))}};function jo(e,t){for(let n of e)t.add(n)}var Ra=new Vw,Q0={},Bo=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,Q0,r);return o!==Q0||n===Q0?o:this.parentInjector.get(t,n,r)}};function Dg(e,t,n){ngDevMode&&Pt(fe(),"Expecting to be called in first template pass only");let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=yh(o,a);else if(i==2){let c=a,u=t[++s];r=yh(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Ya(e,t=0){let n=S();if(n===null)return ngDevMode&&QM(Ya),Tt(e,t);let r=ce(),o=TC(r,n,se(e),t);return ngDevMode&&U_(e,o,t),o}function doe(){let e=ngDevMode?"This constructor was not compatible with Dependency Injection.":"invalid";throw new Error(e)}function Rk(e,t,n,r,o){ngDevMode&&Pt(e);let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}ngDevMode&&Eoe(a),goe(e,t,n,a,i,c,u)}i!==null&&r!==null&&poe(n,r,i)}function poe(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new D(-301,ngDevMode&&`Export of name '${t[o+1]}' not found!`);r.push(t[o],i)}}function hoe(e,t,n){ngDevMode&&Pt(e),ngDevMode&&Mo(n,-1,"componentOffset must be great than -1"),t.componentOffset=n,(e.components??=[]).push(t.index)}function goe(e,t,n,r,o,i,s){ngDevMode&&Pt(e);let a=r.length,c=null;for(let d=0;d<a;d++){let p=r[d];c===null&&on(p)&&(c=p,hoe(e,n,d)),yw(_g(n,t),e,p.type)}woe(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let d=0;d<a;d++){let p=r[d];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,f=Ju(e,t,a,null);ngDevMode&&q_(f,n.directiveStart,"TNode.directiveStart should point to just allocated space"),a>0&&(n.directiveToIndex=new Map);for(let d=0;d<a;d++){let p=r[d];if(n.mergedAttrs=Aa(n.mergedAttrs,p.hostAttrs),yoe(e,n,t,f,p),_oe(f,p,o),s!==null&&s.has(p)){let[m,y]=s.get(p);n.directiveToIndex.set(p.type,[f,m+n.directiveStart,y+n.directiveStart])}else(i===null||!i.has(p))&&n.directiveToIndex.set(p.type,f);p.contentQueries!==null&&(n.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(n.flags|=64);let h=p.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}moe(e,n,i)}function moe(e,t,n){ngDevMode&&Pt(e);for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))pP(0,t,o,r),pP(1,t,o,r),gP(t,r,!1);else{let i=n.get(o);hP(0,t,i,r),hP(1,t,i,r),gP(t,r,!0)}}}function pP(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Nk(t,i)}}function hP(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Nk(t,s)}}function Nk(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function gP(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||YE(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function yoe(e,t,n,r,o){ngDevMode&&cr(r,Z,"Must be in Expando section"),e.data[r]=o;let i=o.factory||(o.factory=Io(o.type,!0)),s=new Uo(i,on(o),Ya,ngDevMode?o.type.name:null);e.blueprint[r]=s,n[r]=s,voe(e,t,r,Ju(e,n,o.hostVars,xe),o)}function voe(e,t,n,r,o){ngDevMode&&Pt(e);let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;boe(s)!=a&&s.push(a),s.push(n,r,i)}}function boe(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function _oe(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;on(t)&&(n[""]=e)}}function woe(e,t,n){ngDevMode&&tn(n,e.directiveEnd-e.directiveStart,"Reached the max number of directives"),e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Eoe(e){if(e.length<2)return;let t=new Set;for(let n of e){if(t.has(n))throw new D(309,`Directive ${n.type.name} matches multiple times on the same element. Directives can only match an element once.`);t.add(n)}}function yS(e,t,n,r,o,i,s,a){let c=t[x];ngDevMode&&Pt(c);let u=c.consts,l=Ct(u,s),f=Wi(c,e,n,r,l);return i&&Rk(c,t,f,Ct(u,a),o),f.mergedAttrs=Aa(f.mergedAttrs,f.attrs),f.attrs!==null&&Dg(f,f.attrs,!1),f.mergedAttrs!==null&&Dg(f,f.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,f),f}function vS(e,t){ngDevMode&&Pt(e),yC(e,t),n0(t)&&e.queries.elementEnd(t)}function Lk(e,t,n,r,o,i){ngDevMode&&Pt(t);let s=t.consts,a=Ct(s,o),c=Wi(t,e,n,r,a);if(c.mergedAttrs=Aa(c.mergedAttrs,c.attrs),i!=null){let u=Ct(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&Dg(c,c.attrs,!1),c.mergedAttrs!==null&&Dg(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Fu(e){return wm(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Soe(e,t,n){let r=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done||!n(i.value,s.value))return!1}}function jk(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function wm(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Fk(e,t){let n=Fu(e),r=Fu(t);return n&&r?Soe(e,t,Fk):!n&&(e&&(typeof e=="object"||typeof e=="function"))&&!r&&(t&&(typeof t=="object"||typeof t=="function"))?!0:Object.is(e,t)}function Hn(e,t,n){return e[t]=n}function Za(e,t){return ngDevMode&&ct(e,t),ngDevMode&&yi(e[t],xe,"Stored value should never be NO_CHANGE."),e[t]}function et(e,t,n){if(ngDevMode&&ar(t,e.length,"Slot should have been initialized to NO_CHANGE"),n===xe)return!1;let r=e[t];if(Object.is(r,n))return!1;if(ngDevMode&&Nr()){let o=r!==xe?r:void 0;if(!Fk(o,n)){let i=xne(e,t,o,n);Sne(r===xe,i.oldValue,i.newValue,i.propName,e)}return!1}return e[t]=n,!0}function ji(e,t,n,r){let o=et(e,t,n);return et(e,t+1,r)||o}function Em(e,t,n,r,o){let i=ji(e,t,n,r);return et(e,t+2,o)||i}function An(e,t,n,r,o,i){let s=ji(e,t,n,r);return ji(e,t+2,o,i)||s}function Di(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Ste(o,i);let s=qn(e)?cn(e.index,t):t;tl(s,5);let a=t[Te],c=mP(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=mP(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function mP(e,t,n,r){let o=te(null);try{return Be(K.OutputStart,t,n),n(r)!==!1}catch(i){return pS(e,i),!1}finally{Be(K.OutputEnd,t,n),te(o)}}function bS(e,t,n,r,o,i,s,a){ngDevMode&&yi(a,s,"Expected wrapped and original listeners to be different.");let c=Ii(e),u=!1,l=null;if(!r&&c&&(l=Ioe(t,n,i,e.index)),l!==null){let f=l.__ngLastListenerFn__||l;f.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let f=rt(e,n),d=r?r(f):f;Ite(n,d,i,a),r||(a.__ngNativeEl__=f);let p=o.listen(d,i,a);if(!xoe(i)){let h=r?m=>r(gt(m[e.index])):e.index;qk(h,t,n,i,a,p,!1)}}return u}function xoe(e){return e.startsWith("animation")||e.startsWith("transition")}function Ioe(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Ei],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function qk(e,t,n,r,o,i,s){let a=t.firstCreatePass?dh(t):null,c=f0(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function kg(e,t,n,r,o,i){ngDevMode&&ct(t,n);let s=t[n],a=t[x],u=a.data[n].outputs[r],l=s[u];if(ngDevMode&&!Aoe(l))throw new Error(`@Output ${u} not initialized in '${s.constructor.name}'.`);let f=l.subscribe(i);qk(e.index,a,t,o,i,f,!0)}function Aoe(e){return e!=null&&typeof e.subscribe=="function"}function Toe(){Moe()}function Moe(){let e=S(),t=fe(),n=ce();if(t.firstCreatePass&&Coe(t,n),n.controlDirectiveIndex===-1)return;qt("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new Rg(e,t,n))}function Ooe(){Poe()}function Poe(){if(ngDevMode&&Nr())return;let e=S(),t=fe(),n=mn();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new Rg(e,t,n))}var Rg=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get descriptor(){if(ngDevMode&&qn(this.tNode)){let t=this.tNode.directiveStart+this.tNode.componentOffset,n=this.tView.data[t];return`Component ${H_(n.type)}`}return`<${this.tNode.value}>`}listenToCustomControlOutput(t,n){Bk(this.tView.data[this.tNode.customControlIndex],t)&&kg(this.tNode,this.lView,this.tNode.customControlIndex,t,t,Di(this.tNode,this.lView,n))}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange";kg(this.tNode,this.lView,this.tNode.customControlIndex,n,n,Di(this.tNode,this.lView,t))}listenToDom(t,n){bS(this.tNode,this.tView,this.lView,void 0,this.lView[pe],t,n,Di(this.tNode,this.lView,n))}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return!1;if(r)for(let i of r){let s=this.tView.data[i],a=this.lView[i];Sa(s,a,t,n)}if(o)for(let i=0;i<o.length;i+=2){let s=o[i],a=o[i+1],c=this.tView.data[s],u=this.lView[s];Sa(c,u,a,n)}return!0}setCustomControlModelInput(t){let n=this.lView[this.tNode.customControlIndex],r=this.tView.data[this.tNode.customControlIndex],o=this.tNode.flags&1024?"value":"checked";Sa(r,n,o,t)}customControlHasInput(t){return this.tNode.customControlIndex===-1?!1:this.tView.data[this.tNode.customControlIndex].inputs[t]!=null}};function Coe(e,t,n){ngDevMode&&Pt(e);for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}Doe(e,t)}function Doe(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(yP(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(yP(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}function yP(e,t){return koe(e,t)&&Bk(e,t+"Change")}function koe(e,t){return t in e.inputs}function Bk(e,t){return t in e.outputs}var Gw=Symbol("BINDING");function Uk(e){return e.debugInfo?.className||e.type.name||null}var Ng=class extends _m{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){ngDevMode&&oO(t);let n=_e(t);return new Na(n,this.ngModule)}};function Roe(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Du.SignalBased)!==0};return o&&(i.transform=o),i})}function Noe(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Loe(e){if((typeof ngJitMode>"u"||ngJitMode)&&e.debugInfo?.forbidOrphanRendering&&Ra.isOrphanComponent(e.type))throw new D(981,`Orphan component found! Trying to render the component ${H_(e.type)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`)}function joe(e,t,n){let r=t instanceof Ft?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Bo(n,r):n}function Foe(e){let t=e.get(Cg,null);if(t===null)throw new D(407,ngDevMode&&"Angular was not able to inject a renderer (RendererFactory2). Likely this is due to a broken DI hierarchy. Make sure that any injector used to create this component has a correct parent.");let n=e.get(Kw,null),r=e.get(Pr,null),o=e.get(Ka,null,{optional:!0}),i=!1;return(typeof ngDevMode>"u"||ngDevMode)&&(i=e.get(hne,DD)),{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:i,tracingService:o}}function qoe(e,t){let n=Uoe(e);return WE(t,n,n==="svg"?na:n==="math"?Lh:null)}function Boe(e){if(e?.toLowerCase()==="script")throw new D(905,ngDevMode&&'"<script>" tag is not allowed as a component host element.')}function Uoe(e){return(e.selectors[0][0]||"div").toLowerCase()}var Na=class extends kk{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Roe(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Noe(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=ND(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){Be(K.DynamicComponentStart);let a=te(null);try{let c=this.componentDef;ngDevMode&&Loe(c);let u=joe(c,o||this.ngModule,t),l=Foe(u),f=l.tracingService;return f&&f.componentCreate?f.componentCreate(Uk(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{te(a)}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=Hoe(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?cre(u,o,a.encapsulation,n):qoe(a,u);Boe(l?.tagName);let f=s?.some(vP)||i?.some(h=>typeof h!="function"&&h.bindings.some(vP)),d=rm(null,c,null,512|QE(a),null,null,t,u,n,null,rD(l,n,!0));d[Z]=l,Wh(d);let p=null;try{let h=yS(Z,d,2,"#host",()=>c.directiveRegistry,!0,0);xD(u,l,h),ln(l,d),fm(c,d,h),BE(c,h,d),vS(c,h),r!==void 0&&Koe(h,this.ngContentSelectors,r),p=cn(h.index,d),d[Te]=p[Te],el(c,d,null)}catch(h){throw p!==null&&_w(p),_w(d),h}finally{Be(K.DynamicComponentEnd),Vh()}return new zw(this.componentType,d,!!f)}};function Hoe(e,t,n,r){let o=e?["ng-version","21.2.25"]:Nne(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[Gw].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let f=r[l];if(typeof f!="function")for(let d of f.bindings){a+=d[Gw].requiredVars;let p=l+1;d.create&&(d.targetIdx=p,(i??=[]).push(d)),d.update&&(d.targetIdx=p,(s??=[]).push(d))}}let c=[t];if(r)for(let l of r){let f=typeof l=="function"?l:l.type,d=ngDevMode?VM(f):dt(f);if(ngDevMode&&!d.standalone)throw new D(907,`The ${ge(f)} directive must be standalone in order to be applied to a dynamically-created component.`);c.push(d)}return ZE(0,null,$oe(i,s),1,a,c,null,null,null,[o],null)}function $oe(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function vP(e){let t=e[Gw].kind;return t==="input"||t==="twoWay"}var zw=class extends loe{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Mi(n[x],Z),this.location=Ua(this._tNode,n),this.instance=cn(this._tNode.index,n)[Te],this.hostView=this.changeDetectorRef=new Da(n,void 0),this.componentType=t}setInput(t,n){if(this._hasInputBindings&&ngDevMode)throw new D(317,"Cannot call `setInput` on a component that is using the `inputBinding` or `twoWayBinding` functions.");let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=gm(r,o[x],o,t,n);this.previousInputValues.set(t,n);let s=cn(r.index,o);if(tl(s,1),ngDevMode&&!i){let a=ge(this.componentType),c=`Can't set value of the '${t}' input on the '${a}' component. `;c+=`Make sure that the '${t}' property is declared as an input using the input() or model() function or the @Input() decorator.`,cD(c)}}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Koe(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var qu=class{static __NG_ELEMENT_ID__=Woe};function Woe(){let e=ce();return Hk(e,S())}var Yw=class e extends qu{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ua(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){let t=Qg(this._hostTNode,this._hostLView);if(PE(t)){let n=Au(t,this._hostLView),r=Iu(t);ngDevMode&&o0(n,r);let o=n[x].data[r+8];return new We(o,n)}else return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=bP(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-qe}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Pg(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Li(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!hu(t),u;if(c)ngDevMode&&re(typeof n!="object",!0,"It looks like Component factory was provided as the first argument and an options object as the second argument. This combination of arguments is incompatible. You can either change the first argument to provide Component type or change the second argument to be a number (representing an index at which to insert the new component's host view into this container)"),u=n;else{ngDevMode&&(F(_e(t),"Provided Component class doesn't contain Component definition. Please check whether provided class has @Component decorator."),re(typeof n!="number",!0,"It looks like Component type was provided as the first argument and a number (representing an index at which to insert the new component's host view into this container as the second argument. This combination of arguments is incompatible. Please use an object as the second argument instead."));let y=n||{};ngDevMode&&y.environmentInjector&&y.ngModuleRef&&X("Cannot pass both environmentInjector and ngModuleRef options to createComponent()."),u=y.index,r=y.injector,o=y.projectableNodes,i=y.environmentInjector||y.ngModuleRef,s=y.directives,a=y.bindings}let l=c?t:new Na(_e(t)),f=r||this.parentInjector;if(!i&&l.ngModule==null){let v=(c?f:this.parentInjector).get(Ft,null);v&&(i=v)}let d=_e(l.componentType??{}),p=Pg(this._lContainer,d?.id??null),h=p?.firstChild??null,m=l.create(f,o,h,i,s,a);return this.insertImpl(m.hostView,u,Li(this._hostTNode,p)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ngDevMode&&t.destroyed)throw new D(922,ngDevMode&&"Cannot insert a destroyed View in a ViewContainer!");if(fO(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[tt];ngDevMode&&re(Ot(c),!0,"An attached view should have its PARENT point to a container.");let u=new e(c,c[_t],c[tt]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return za(s,o,i,r),t.attachToViewContainerRef(),V_(J0(s),i,t),t}move(t,n){if(ngDevMode&&t.destroyed)throw new D(923,ngDevMode&&"Cannot move a destroyed View in a ViewContainer!");return this.insert(t,n)}indexOf(t){let n=bP(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Lu(this._lContainer,n);r&&(eu(J0(this._lContainer),n),Xu(r[x],r))}detach(t){let n=this._adjustIndex(t,-1),r=Lu(this._lContainer,n);return r&&eu(J0(this._lContainer),n)!=null?new Da(r):null}_adjustIndex(t,n=0){return t==null?this.length+n:(ngDevMode&&(Mo(t,-1,`ViewRef index must be positive, got ${t}`),ar(t,this.length+1+n,"index")),t)}};function bP(e){return e[iu]}function J0(e){return e[iu]||(e[iu]=[])}function Hk(e,t){ngDevMode&&lt(e,15);let n,r=t[e.index];return Ot(r)?n=r:(n=yk(r,t,null,e),t[e.index]=n,JE(t,n)),Goe(n,t,e,r),new Yw(n,e,t)}function Voe(e,t){let n=e[pe],r=n.createComment(ngDevMode?"container":""),o=rt(t,e),i=n.parentNode(o);return Ri(n,i,r,n.nextSibling(o),!1),r}var Goe=Yoe,zoe=()=>!1;function $k(e,t,n){return zoe(e,t,n)}function Yoe(e,t,n,r){if(e[Rr])return;let o;n.type&8?o=gt(r):o=Voe(t,n),e[Rr]=o}var Zw=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Qw=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)wS(t,n).matches!==null&&this.queries[n].setDirty()}},Lg=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=eie(t):this.predicate=t}},Jw=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){ngDevMode&&Pt(t,"Queries should collect results on the first template pass only");for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){ngDevMode&&Pt(t,"Queries should collect results on the first template pass only");for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return ngDevMode&&ct(this.queries,t),this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Xw=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,Zoe(n,i)),this.matchTNodeWithReadOption(t,n,cg(n,t,i,!1,!1))}else r===ka?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,cg(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ta||o===qu||o===ka&&n.type&4)this.addMatch(n.index,-2);else{let i=cg(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function Zoe(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function Qoe(e,t){return e.type&11?Ua(e,t):e.type&4?ym(e,t):null}function Joe(e,t,n,r){return n===-1?Qoe(t,e):n===-2?Xoe(e,t,r):Tu(e,e[x],n,t)}function Xoe(e,t,n){if(n===Ta)return Ua(t,e);if(n===ka)return ym(t,e);if(n===qu)return ngDevMode&&lt(t,15),Hk(t,e);ngDevMode&&X(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${ke(n)}.`)}function Kk(e,t,n,r){let o=t[In].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{ngDevMode&&ct(i,u);let l=i[u];a.push(Joe(t,l,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function eE(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Kk(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let u=i[a+1],l=t[-c];ngDevMode&&gn(l);for(let f=qe;f<l.length;f++){let d=l[f];d[Do]===d[tt]&&eE(d[x],d,u,r)}if(l[ko]!==null){let f=l[ko];for(let d=0;d<f.length;d++){let p=f[d];eE(p[x],p,u,r)}}}}}return r}function _S(e,t){return ngDevMode&&F(e[In],"LQueries should be defined when trying to load a query"),ngDevMode&&ct(e[In].queries,t),e[In].queries[t].queryList}function Wk(e,t,n){let r=new bw((n&4)===4);return dO(e,t,r,r.destroy),(t[In]??=new Qw).queries.push(new Zw(r))-1}function Vk(e,t,n){ngDevMode&&je(t,"Expecting flags");let r=fe();return r.firstCreatePass&&(zk(r,new Lg(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),Wk(r,S(),t)}function Gk(e,t,n,r){ngDevMode&&je(n,"Expecting flags");let o=fe();if(o.firstCreatePass){let i=ce();zk(o,new Lg(t,n,r),i.index),tie(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return Wk(o,S(),n)}function eie(e){return e.split(",").map(t=>t.trim())}function zk(e,t,n){e.queries===null&&(e.queries=new Jw),e.queries.track(new Xw(t,n))}function tie(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function wS(e,t){return ngDevMode&&F(e.queries,"TQueries must be defined to retrieve a TQuery"),e.queries.getByIndex(t)}function Yk(e,t){let n=e[x],r=wS(n,t);return r.crossesNgTemplate?eE(n,e,t,[]):Kk(n,e,r,t)}function ES(e,t,n){let r,o=wc(()=>{r._dirtyCounter();let i=nie(r,e);if(t&&i===void 0)throw new D(-951,ngDevMode&&"Child query result is required but no value is available.");return i});return r=o[ze],r._dirtyCounter=No(0),r._flatValue=void 0,ngDevMode&&(o.toString=()=>"[Query Signal]",r.debugName=n?.debugName),o}function SS(e){return ES(!0,!1,e)}function xS(e){return ES(!0,!0,e)}function Zk(e){return ES(!1,!1,e)}function Qk(e,t){let n=e[ze];n._lView=S(),n._queryIndex=t,n._queryList=_S(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function nie(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[ae]&4)return t?void 0:Ae;let o=_S(n,r),i=Yk(n,r);return o.reset(i,CC),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var jg=new Map,Jk=new Set;async function Xk(e){let t=jg;jg=new Map;let n=new Map;function r(i){let s=n.get(i);if(s)return s;let a=e(i).then(c=>oie(i,c));return n.set(i,a),a}let o=Array.from(t).map(async([i,s])=>{if(s.styleUrl&&s.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");let a=[];s.templateUrl&&a.push(r(s.templateUrl).then(f=>{s.template=f}));let c=typeof s.styles=="string"?[s.styles]:s.styles??[];s.styles=c;let{styleUrl:u,styleUrls:l}=s;if(u&&(l=[u],s.styleUrl=void 0),l?.length){let f=Promise.all(l.map(d=>r(d))).then(d=>{c.push(...d),s.styleUrls=void 0});a.push(f)}await Promise.all(a),Jk.delete(i)});await Promise.all(o)}function rie(e,t){eR(t)&&(jg.set(e,t),Jk.add(e))}function eR(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls?.length||e.styleUrl)}function tR(){return jg.size===0}async function oie(e,t){if(typeof t=="string")return t;if(t.status!==void 0&&t.status!==200)throw new D(918,ngDevMode&&`Could not load resource: ${e}. Response status: ${t.status}`);return t.text()}var _P=new Map,iie=!0;function sie(e,t,n){if(t&&t!==n&&iie)throw new D(921,ngDevMode&&`Duplicate module registered for ${e} - ${ke(t)} vs ${ke(t.name)}`)}function nR(e,t){let n=_P.get(t)||null;sie(t,n,e),_P.set(t,e)}var La=class{},aie=class{};var Fg=class extends La{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ng(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Fn(t);ngDevMode&&F(i,`NgModule '${ke(t)}' is not a subtype of 'NgModuleType'.`),this._bootstrapComponents=vr(i.bootstrap),this._r3Injector=L0(t,n,[{provide:La,useValue:this},{provide:_m,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){ngDevMode&&F(this.destroyCbs,"NgModule already destroyed");let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){ngDevMode&&F(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(t)}},Bu=class extends aie{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Fg(this.moduleType,t,[])}};function rR(e,t,n){return new Fg(e,t,n,!1)}var qg=class extends La{injector;componentFactoryResolver=new Ng(this);instance=null;constructor(t){super();let n=new Nn([...t.providers,{provide:La,useValue:this},{provide:_m,useValue:this.componentFactoryResolver}],t.parent||nu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function oR(e,t,n=null){return new qg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var tE=class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=Oh(!1,t.type),r=n.length>0?oR([n],this._injector,typeof ngDevMode<"u"&&ngDevMode?`Standalone[${t.type.name}]`:""):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Fe({token:e,providedIn:"environment",factory:()=>new e(Tt(Ft))})};function cie(e){return Fr(()=>{(typeof ngDevMode>"u"||ngDevMode)&&mh();let t=sR(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ma.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(tE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Un.Emulated,styles:e.styles||Ae,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&qt("NgStandalone"),aR(n);let r=e.dependencies;return n.directiveDefs=Bg(r,iR),n.pipeDefs=Bg(r,Kt),n.id=pie(n),n})}function iR(e){return _e(e)||dt(e)}function IS(e){return Fr(()=>({type:e.type,bootstrap:e.bootstrap||Ae,declarations:e.declarations||Ae,imports:e.imports||Ae,exports:e.exports||Ae,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function uie(e,t){if(e==null)return pn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Du.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function lie(e){if(e==null)return pn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function fie(e){return Fr(()=>{let t=sR(e);return aR(t),t})}function die(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function sR(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Ae,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:uie(e.inputs,t),outputs:lie(e.outputs),debugInfo:null}}function aR(e){e.features?.forEach(t=>t(e))}function Bg(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}var X0=new Map;function pie(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];if(typeof ngDevMode>"u"||ngDevMode)for(let i of r)tn(typeof i,"function","Internal error: attempting to use a function in component id computation logic.");for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;t+=2147483648;let o="c"+t;if((typeof ngDevMode>"u"||ngDevMode)&&(typeof ngServerMode>"u"||!ngServerMode))if(X0.has(o)){let i=X0.get(o);i!==e.type&&console.warn(bt(-912,`Component ID generation collision detected. Components '${i.name}' and '${e.type.name}' with selector '${ND(e.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`))}else X0.set(o,e.type);return o}function hie(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r)},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r)},passThroughInput:e}}}function gie(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=mie,n.hostDirectives=r?e.map(nE):[e]):r?n.hostDirectives.unshift(...e.map(nE)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function mie(e){let t=[],n=!1,r=null,o=null;for(let i=0;i<e.length;i++){let s=e[i];if(s.hostDirectives!==null){let a=t.length;r??=new Map,o??=new Map,cR(s,t,r),o.set(s,[a,t.length-1])}i===0&&on(s)&&(n=!0,t.push(s))}for(let i=n?1:0;i<e.length;i++)t.push(e[i]);return[t,r,o]}function cR(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives)if(typeof r=="function"){let o=r();for(let i of o)wP(nE(i),t,n)}else wP(r,t,n)}function wP(e,t,n){let r=dt(e.directive);(typeof ngDevMode>"u"||ngDevMode)&&vie(e,r),yie(r.declaredInputs,e.inputs),cR(r,t,n),n.set(r,e),t.push(r)}function nE(e){return typeof e=="function"?{directive:se(e),inputs:pn,outputs:pn}:{directive:se(e.directive),inputs:EP(e.inputs),outputs:EP(e.outputs)}}function EP(e){if(e===void 0||e.length===0)return pn;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function yie(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];(typeof ngDevMode>"u"||ngDevMode)&&e.hasOwnProperty(r)&&re(e[r],e[n],`Conflicting host directive input alias ${n}.`),e[r]=o}}function vie(e,t){let n=e.directive;if(t===null)throw _e(n)!==null?new D(310,`Host directive ${n.name} cannot be a component.`):new D(307,`Could not resolve metadata for host directive ${n.name}. Make sure that the ${n.name} class is annotated with an @Directive decorator.`);if(!t.standalone)throw new D(308,`Host directive ${t.type.name} must be standalone.`);SP("input",t,e.inputs),SP("output",t,e.outputs)}function SP(e,t,n){let r=t.type.name,o=e==="input"?t.inputs:t.outputs;for(let i in n)if(n.hasOwnProperty(i)){if(!o.hasOwnProperty(i))throw new D(311,`Directive ${r} does not have an ${e} with a public name of ${i}.`);let s=n[i];if(o.hasOwnProperty(s)&&s!==i)throw new D(312,`Cannot alias ${e} ${i} of host directive ${r} to ${s}, because it already has a different ${e} with the same public name.`)}}function bie(e){return Object.getPrototypeOf(e.prototype).constructor}function uR(e){let t=bie(e.type),n=!0,r=[e];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let o,i=Object.hasOwn(t,Cr)?t[Cr]:void 0,s=Object.hasOwn(t,vi)?t[vi]:void 0;if(on(e))o=i??s;else{if(i)throw new D(903,ngDevMode&&`Directives cannot inherit Components. Directive ${ge(e.type)} is attempting to extend component ${ge(t)}`);o=s}if(o){if(n){r.push(o);let c=e;c.inputs=ew(e.inputs),c.declaredInputs=ew(e.declaredInputs),c.outputs=ew(e.outputs);let u=o.hostBindings;u&&xie(e,u);let l=o.viewQuery,f=o.contentQueries;if(l&&Eie(e,l),f&&Sie(e,f),_ie(e,o),HM(e.outputs,o.outputs),on(o)&&o.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let a=o.features;if(a)for(let c=0;c<a.length;c++){let u=a[c];u&&u.ngInherit&&u(e),u===uR&&(n=!1)}}t=Object.getPrototypeOf(t)}wie(r)}function _ie(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function wie(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Aa(o.hostAttrs,n=Aa(n,o.hostAttrs))}}function ew(e){return e===pn?{}:e===Ae?[]:e}function Eie(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Sie(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function xie(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function lR(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Aa(e.mergedAttrs,e.attrs);let l=e.tView=ZE(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),pr(e,!1);let c=Aie(n,t,e,r);lu()&&cS(n,t,c,e),ln(c,t);let u=yk(c,t,c,e);t[r+Z]=u,JE(t,u),$k(u,e,t)}function Iie(e,t,n,r,o,i,s,a,c,u,l){let f=n+Z,d;return t.firstCreatePass?(d=Wi(t,f,4,s||null,a||null),Bh()&&Rk(t,e,d,Ct(t.consts,u),dS),yC(t,d)):d=t.data[f],lR(d,e,t,n,r,o,i,c),Ii(d)&&fm(t,e,d),u!=null&&Wa(e,d,l),d}function Fi(e,t,n,r,o,i,s,a,c,u,l){let f=n+Z,d;if(t.firstCreatePass){if(d=Wi(t,f,4,s||null,a||null),u!=null){let p=Ct(t.consts,u);d.localNames=[];for(let h=0;h<p.length;h+=2)d.localNames.push(p[h],-1)}}else d=t.data[f];return lR(d,e,t,n,r,o,i,c),u!=null&&Wa(e,d,l),d}function fR(e,t,n,r,o,i,s,a){let c=S(),u=fe(),l=Ct(u.consts,i);return Iie(c,u,e,t,n,r,o,l,void 0,s,a),fR}function dR(e,t,n,r,o,i,s,a){let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,void 0,s,a),dR}var Aie=Tie;function Tie(e,t,n,r){return ga(!0),t[pe].createComment(ngDevMode?"container":"")}var ot;(function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED"})(ot||(ot={}));var Ug=0,pR=1,Ue;(function(e){e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error"})(Ue||(Ue={}));var qi;(function(e){e[e.Initial=-1]="Initial"})(qi||(qi={}));var xa=0,Ur=1,yu=2,rg=3,Mie=4,Oie=5,Bi=6,Pie=7,Ia=8,Cie=9,rE;(function(e){e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough"})(rE||(rE={}));function nl(e,t,n){let r=gR(e);t[r]===null&&(t[r]=[]),t[r].push(n)}function lg(e,t){let n=gR(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null}}function hR(e){lg(1,e),lg(0,e),lg(2,e)}function gR(e){let t=Mie;return e===1?t=Oie:e===2&&(t=Cie),t}function Sm(e){return e+1}function Bt(e,t){let n=e[x],r=Sm(t.index);return ngDevMode&&fa(n,r),e[r]}function Die(e,t,n){let r=e[x],o=Sm(t);ngDevMode&&fa(r,o),e[o]=n}function kt(e,t){let n=Sm(t.index);return ngDevMode&&fa(e,n),e.data[n]}function kie(e,t,n){let r=Sm(t);ngDevMode&&fa(e,r),e.data[r]=n}function Rie(e,t,n){let r=t[x],o=kt(r,n);switch(e){case Ue.Complete:return o.primaryTmplIndex;case Ue.Loading:return o.loadingTmplIndex;case Ue.Error:return o.errorTmplIndex;case Ue.Placeholder:return o.placeholderTmplIndex;default:return ngDevMode&&X(`Unexpected defer block state: ${e}`),null}}function oE(e,t){return t===Ue.Placeholder?e.placeholderBlockConfig?.[Ug]??null:t===Ue.Loading?e.loadingBlockConfig?.[Ug]??null:null}function mR(e){return e.loadingBlockConfig?.[pR]??null}function xP(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function Nie(e,t){let n=t.primaryTmplIndex+Z;return Mi(e,n)}function yR(e){re(e.loadingState,ot.COMPLETE,"Expecting all deferred dependencies to be loaded.")}function Lie(e){return e!==null&&typeof e=="object"&&typeof e.primaryTmplIndex=="number"}function it(e,t,n){let r=kt(e,t);r.debug??={},r.debug.triggers??=new Set,r.debug.triggers.add(n)}function vR(e,t,n,r){let o=n.get(Ye);return wte(e,()=>o.run(t),i=>o.runOutsideAngular(()=>_te(i)),r)}function jie(e,t,n){if(n==null)return e;if(n>=0)return l0(n,e);let r=e[t.index];ngDevMode&&gn(r);let o=r[qe]??null;if(ngDevMode&&o!==null){let s=Bt(e,t)[Ur];re(s,Ue.Placeholder,"Expected a placeholder to be rendered in this defer block."),an(o)}return o}function Fie(e,t){let n=Ti(Z+t,e);return ngDevMode&&KM(n),n}function Qa(e,t,n,r,o,i,s,a){let c=e[Se],u=c.get(Ye),l;function f(){if(fr(e)){l.destroy();return}let d=Bt(e,t),p=d[Ur];if(p!==qi.Initial&&p!==Ue.Placeholder){l.destroy();return}let h=jie(e,t,r);if(!h||(l.destroy(),fr(h)))return;let m=Fie(h,n),y=o(m,()=>{u.run(()=>{e!==h&&qh(h,y),i()})},c,a);e!==h&&cu(h,y),nl(s,d,y)}l=Lw({read:f},{injector:c})}function AS(e,t){let n=t.get(iE),r=()=>n.remove(e);return n.add(e),r}var qie=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,Bie=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,iE=class e{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=z(Ye);requestIdleCallbackFn=qie().bind(globalThis);cancelIdleCallbackFn=Bie().bind(globalThis);add(t){(this.executingCallbacks?this.deferred:this.current).add(t),this.idleId===null&&this.scheduleIdleCallback()}remove(t){let{current:n,deferred:r}=this;n.delete(t),r.delete(t),n.size===0&&r.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let t=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let n of this.current)n();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let n of this.deferred)this.current.add(n);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(t))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})};function TS(e){return(t,n)=>bR(e,t,n)}function bR(e,t,n){let r=n.get(sE),o=n.get(Ye),i=()=>r.remove(t);return r.add(e,t,o),i}var sE=class e{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(t,n,r){let o=this.executingCallbacks?this.deferred:this.current;this.addToQueue(o,Date.now()+t,n),this.scheduleTimer(r)}remove(t){let{current:n,deferred:r}=this;this.removeFromQueue(n,t)===-1&&this.removeFromQueue(r,t),n.length===0&&r.length===0&&this.clearTimeout()}addToQueue(t,n,r){let o=t.length;for(let i=0;i<t.length;i+=2)if(t[i]>n){o=i;break}z_(t,o,n,r)}removeFromQueue(t,n){let r=-1;for(let o=0;o<t.length;o+=2)if(t[o+1]===n){r=o;break}return r>-1&&G_(t,r,2),r}scheduleTimer(t){let n=()=>{this.clearTimeout(),this.executingCallbacks=!0;let o=[...this.current],i=Date.now();for(let a=0;a<o.length;a+=2){let c=o[a],u=o[a+1];if(c<=i)u();else break}let s=-1;for(let a=0;a<this.current.length&&this.current[a]<=i;a+=2)s=a+1;if(s>=0&&G_(this.current,0,s+1),this.executingCallbacks=!1,this.deferred.length>0){for(let a=0;a<this.deferred.length;a+=2){let c=this.deferred[a],u=this.deferred[a+1];this.addToQueue(this.current,c,u)}this.deferred.length=0}this.scheduleTimer(t)};if(this.current.length>0){let o=Date.now(),i=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-i>16){this.clearTimeout();let s=Math.max(i-o,16);this.invokeTimerAt=i,this.timeoutId=t.runOutsideAngular(()=>setTimeout(()=>t.run(n),s))}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=Fe({token:e,providedIn:"root",factory:()=>new e})},aE=class e{cachedInjectors=new Map;getOrCreateInjector(t,n,r,o){if(!this.cachedInjectors.has(t)){let i=r.length>0?oR(r,n,o):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=Fe({token:e,providedIn:"environment",factory:()=>new e})},Uie=new H("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),Hie=new H(typeof ngDevMode<"u"&&ngDevMode?"DEFER_BLOCK_CONFIG":"");function tw(e,t,n){return e.get(aE).getOrCreateInjector(t,e,n,ngDevMode?"DeferBlock Injector":"")}function $ie(e,t,n){if(e instanceof Bo){let o=e.injector,i=e.parentInjector,s=tw(i,t,n);return new Bo(o,s)}let r=e.get(Ft);if(r!==e){let o=tw(r,t,n);return new Bo(e,o)}return tw(e,t,n)}function qo(e,t,n,r=!1){let o=n[tt],i=o[x];if(fr(o))return;ngDevMode&&sn(t,o);let s=Bt(o,t);ngDevMode&&F(s,"Expected a defer block state defined");let a=s[Ur],c=s[Pie];if(!(c!==null&&e<c)&&AP(a,e)&&AP(s[xa]??-1,e)){let u=kt(i,t),l=!r&&(typeof ngServerMode>"u"||!ngServerMode)&&(mR(u)!==null||oE(u,Ue.Loading)!==null||oE(u,Ue.Placeholder));ngDevMode&&l&&F(Hg,"Expected scheduling function to be defined");let f=l?Hg:_R;try{f(e,s,n,t,o)}catch(d){pS(o,d)}}}function Kie(e,t){let n=e[kr]?.findIndex(o=>o.data[LE]===t[Ur])??-1;return{dehydratedView:n>-1?e[kr][n]:null,dehydratedViewIx:n}}function _R(e,t,n,r,o){Be(K.DeferBlockStateStart);let i=Rie(e,o,r);if(i!==null){t[Ur]=e;let s=o[x],a=i+Z,c=Mi(s,a),u=0;hS(n,u);let l;if(e===Ue.Complete){let h=kt(s,r),m=h.providers;m&&m.length>0&&(l=$ie(o[Se],h,m))}let{dehydratedView:f,dehydratedViewIx:d}=Kie(n,t),p=Ga(o,c,null,{injector:l,dehydratedView:f});if(za(n,p,u,Li(c,f)),tl(p,2),d>-1&&n[kr]?.splice(d,1),(e===Ue.Complete||e===Ue.Error)&&Array.isArray(t[Ia])){for(let h of t[Ia])h();t[Ia]=null}}Be(K.DeferBlockStateEnd)}function Wie(e,t,n,r,o){let i=Date.now(),s=o[x],a=kt(s,r);if(t[yu]===null||t[yu]<=i){t[yu]=null;let c=mR(a),u=t[rg]!==null;if(e===Ue.Loading&&c!==null&&!u){t[xa]=e;let l=IP(c,t,r,n,o);t[rg]=l}else{e>Ue.Loading&&u&&(t[rg](),t[rg]=null,t[xa]=null),_R(e,t,n,r,o);let l=oE(a,e);l!==null&&(t[yu]=i+l,IP(l,t,r,n,o))}}else t[xa]=e}function IP(e,t,n,r,o){return bR(e,()=>{let s=t[xa];t[yu]=null,t[xa]=null,s!==null&&qo(s,n,r)},o[Se])}function AP(e,t){return e<t}function Ja(e,t){let n=e[t.index];ngDevMode&&gn(n),qo(Ue.Placeholder,t,n)}function TP(e,t,n){ngDevMode&&F(e.loadingPromise,"Expected loading Promise to exist on this defer block"),e.loadingPromise.then(()=>{e.loadingState===ot.COMPLETE?(ngDevMode&&yR(e),qo(Ue.Complete,t,n)):e.loadingState===ot.FAILED&&qo(Ue.Error,t,n)})}var Hg=null;function Vie(e,t,n,r){let o=e.consts;n!=null&&(t.placeholderBlockConfig=Ct(o,n)),r!=null&&(t.loadingBlockConfig=Ct(o,r)),Hg===null&&(Hg=Wie)}function vn(e,t,n,r){return Fr(()=>{let o=e;t!==null&&(o.hasOwnProperty("decorators")&&o.decorators!==void 0?o.decorators.push(...t):o.decorators=t),n!==null&&(o.ctorParameters=n),r!==null&&(o.hasOwnProperty("propDecorators")&&o.propDecorators!==void 0?o.propDecorators={...o.propDecorators,...r}:o.propDecorators=r)})}var ja=class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(ja,[{type:Ie,args:[{providedIn:"platform"}]}],null,null);var cE=class{resolverToTokenToDependencies=new WeakMap;resolverToProviders=new WeakMap;resolverToEffects=new WeakMap;standaloneInjectorToComponent=new WeakMap;reset(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}},Xa=new cE;function rl(){return Xa}function Gie(){Xa.reset(),B_(zie)}function zie(e){let{context:t,type:n}=e;n===0?Yie(t,e.service):n===1?Qie(t,e.instance):n===2?Xie(t,e.providerRecord):n===3?MP(t,e.effect):n===4&&MP(t,e.effectPhase)}function MP(e,t){let n=MS(e.injector);n===null&&X("An EffectCreated event must be run within an injection context.");let{resolverToEffects:r}=Xa,o=t instanceof Gc?t[ze]:t.sequence,i=r.get(n);i||(i=[],r.set(n,i)),i.push(t),o.onDestroyFns??=[],o.onDestroyFns.push(()=>{let s=i.indexOf(t);s>-1&&i.splice(s,1)})}function Yie(e,t){let n=MS(e.injector);n===null&&X("An Inject event must be run within an injection context.");let r=Xa.resolverToTokenToDependencies;if(r.has(n)||r.set(n,new WeakMap),!ese(e.token))return;let o=r.get(n);o.has(e.token)||o.set(e.token,[]);let{token:i,value:s,flags:a}=t;F(e.token,"Injector profiler context token is undefined.");let c=o.get(e.token);F(c,"Could not resolve dependencies for token."),e.injector instanceof We?c.push({token:i,value:s,flags:a,injectedIn:Zie(e.injector)}):c.push({token:i,value:s,flags:a})}function Zie(e){e instanceof We||X("getNodeInjectorContext must be called with a NodeInjector");let t=Ho(e),n=$i(e);if(n!==null)return sn(n,t),{lView:t,tNode:n}}function Qie(e,t){let{value:n}=t;if(t.value==null)return;MS(e.injector)===null&&X("An InjectorCreatedInstance event must be run within an injection context.");let r;if(typeof n=="object"&&(r=n?.constructor),r==null||!Jie(r))return;let o=e.injector.get(Ft,null,{optional:!0});if(o===null)return;let{standaloneInjectorToComponent:i}=Xa;i.has(o)||i.set(o,r)}function Jie(e){return!!_e(e)?.standalone}function Xie(e,t){let{resolverToProviders:n}=Xa,r;e?.injector instanceof We?r=$i(e.injector):r=e.injector,r===null&&X("A ProviderConfigured event must be run within an injection context."),n.has(r)||n.set(r,[]),n.get(r).push(t)}function MS(e){let t=null;return e===void 0||(e instanceof We?t=Ho(e):t=e),t}function ese(e){return e!==null&&(typeof e=="object"||typeof e=="function"||typeof e=="symbol")}function OS(e){return typeof e=="function"&&e[ze]!==void 0}function wR(e){return OS(e)&&typeof e.set=="function"}function tse(e){ngDevMode&&F(e,"component"),tl(RC(e),3),$C(e).forEach(t=>nse(t))}function nse(e){let t=RC(e);t[ae]|=1024,mm(t)}function fg(e,t){let n=e[x];for(let r=Z;r<n.bindingStartIndex;r++)if(Ot(e[r])){let o=e[r];if(!(r===n.bindingStartIndex-1)){let s=n.data[r],a=kt(n,s);if(Lie(a)){t.push({lContainer:o,lView:e,tNode:s,tDetails:a});continue}}nt(o[Xe])&&fg(o[Xe],t);for(let s=qe;s<o.length;s++)fg(o[s],t)}else nt(e[r])&&fg(e[r],t)}function rse(e){let t=[],n=$o(e)?.lView;return n&&ER(e,n,t),t}function ER(e,t,n){let r=t[Se],o=r.get(Ha,null,{optional:!0}),i=[];fg(t,i);let a=r.get(Mu).get(jE,{});for(let c of i){let u=rt(c.tNode,c.lView),l=Bt(c.lView,c.tNode);if(!e.contains(u))continue;let f=c.tDetails,d=sse(c),p=[],h=ise(f,l,o);if(d!==null)Ca(d[x],d,d[x].firstChild,p);else if(h==="dehydrated"){let y=l[Bi],w=a[y][RE],A=0,j=c.lContainer[Rr].previousSibling;for(;A<w&&j;)p.unshift(j),j=j.previousSibling,A++}let m={state:ose(l[Ur]),incrementalHydrationState:h,hasErrorBlock:f.errorTmplIndex!==null,loadingBlock:{exists:f.loadingTmplIndex!==null,minimumTime:f.loadingBlockConfig?.[Ug]??null,afterTime:f.loadingBlockConfig?.[pR]??null},placeholderBlock:{exists:f.placeholderTmplIndex!==null,minimumTime:f.placeholderBlockConfig?.[Ug]??null},triggers:f.debug?.triggers?Array.from(f.debug.triggers).sort():[],hostNode:c.lContainer[Xe],rootNodes:p};n.push(m),d!==null&&ER(e,d,n)}}function ose(e){switch(e){case Ue.Complete:return"complete";case Ue.Loading:return"loading";case Ue.Placeholder:return"placeholder";case Ue.Error:return"error";case qi.Initial:return"initial";default:throw new Error(`Unrecognized state ${e}`)}}function ise(e,t,n){return n===null||t[Bi]===null||e.hydrateTriggers===null||e.hydrateTriggers.has(7)?"not-configured":n.has(t[Bi])?"dehydrated":"hydrated"}function sse(e){if(e.lContainer.length<=qe)return null;let t=e.lContainer[qe];return ngDevMode&&an(t),t}function ase(e,t){let n=e.get(t,null,{self:!0,optional:!0});if(n===null)throw new Error(`Unable to determine instance of ${t} in given injector`);let r=cse(t,e),o=SR(e),i=r.map(s=>{let a={value:s.value},c=s.flags;a.flags={optional:(8&c)===8,host:(1&c)===1,self:(2&c)===2,skipSelf:(4&c)===4};for(let u=0;u<o.length;u++){let l=o[u];if(u===0&&a.flags.skipSelf)continue;if(a.flags.host&&l instanceof Ft)break;if(l.get(s.token,null,{self:!0,optional:!0})!==null){if(a.flags.host){o[0].get(s.token,null,{...a.flags,optional:!0})!==null&&(a.providedIn=l);break}a.providedIn=l;break}if(u===0&&a.flags.self)break}return s.token&&(a.token=s.token),a});return{instance:n,dependencies:i}}function cse(e,t){let{resolverToTokenToDependencies:n}=rl();if(!(t instanceof We))return n.get(t)?.get?.(e)??[];let r=Ho(t);return(n.get(r)?.get(e)??[]).filter(s=>{let a=s.injectedIn?.tNode;if(a===void 0)return!1;let c=$i(t);return dr(a),dr(c),a===c})}function use(e){let{standaloneInjectorToComponent:t}=rl();if(t.has(e))return t.get(e);let n=e.get(La,null,{self:!0,optional:!0});return n===null||n.instance===null?null:n.instance.constructor}function lse(e){let t=$i(e),{resolverToProviders:n}=rl();return n.get(t)??[]}function fse(e){let t=new Map,r=dse(t,new Set);return Hc(e,r,[],new Set),t}function dse(e,t){return(n,r)=>{if(e.has(n)||e.set(n,[r]),!t.has(r))for(let o of e.keys()){let i=e.get(o),s=Fc(r);if(!s){let u=r.ngModule;s=Fc(u)}if(!s)return;let a=i[0],c=!1;_i(s.imports,u=>{c||(c=u.ngModule===a||u===a,c&&e.get(o)?.unshift(r))})}t.add(r)}}function pse(e){let t=rl().resolverToProviders.get(e)??[];if(hse(e))return t;let n=use(e);if(n===null)return t;let r=fse(n),o=[];for(let i of t){let s=i.provider,a=s.provide;if(a===wi||a===Mh)continue;let c=r.get(s)??[];_e(n)?.standalone&&(c=[n,...c]),o.push({...i,importPath:c})}return o}function hse(e){return e instanceof Nn&&e.scopes.has("platform")}function gse(e){if(e instanceof We)return lse(e);if(e instanceof Ft)return pse(e);X("getInjectorProviders only supports NodeInjector and EnvironmentInjector")}function mse(e){if(e instanceof We){let t=Ho(e),n=$i(e);return sn(n,t),{type:"element",source:rt(n,t)}}return e instanceof Nn?{type:"environment",source:e.source??null}:e instanceof gi?{type:"null",source:null}:null}function SR(e){let t=[e];return uE(e,t),t}function uE(e,t){let n=yse(e);if(n===null){if(e instanceof We){let r=t[0];if(r instanceof We){let o=vse(r);o===null&&X("NodeInjector must have some connection to the module injector tree"),t.push(o),uE(o,t)}return t}}else t.push(n),uE(n,t);return t}function yse(e){if(e instanceof Nn)return e.parent;let t,n;if(e instanceof We)t=$i(e),n=Ho(e);else{if(e instanceof gi)return null;if(e instanceof Bo)return e.parentInjector;X("getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector")}let r=Qg(t,n);if(PE(r)){let o=Iu(r),i=Au(r,n),a=i[x].data[o+8];return new We(a,i)}else{let i=n[Se].injector?.parent;if(i instanceof We)return i}return null}function vse(e){let t;e instanceof We?t=Ho(e):X("getModuleInjectorOfNodeInjector must be called with a NodeInjector");let n=t[Se],r=n instanceof Bo?n.parentInjector:n.parent;return r||X("NodeInjector must have some connection to the module injector tree"),r}function bse(e){return e.kind==="computed"}function _se(e){return e.kind==="template"}function wse(e){return e.kind==="signal"}function Ese(e){let t=$i(e);dr(t);let n=Ho(e);an(n);let r=n[t.index];return nt(r)?r[rn]??null:null}var OP=new WeakMap,PP=0;function Sse(e){let t=Array.from(e.keys()),n=[],r=[];for(let[o,i]of e.entries()){let s=t.indexOf(o),a=OP.get(o);a||(PP++,a=PP.toString(),OP.set(o,a)),bse(o)?n.push({label:o.debugName,value:o.value,kind:o.kind,epoch:o.version,debuggableFn:o.computation,id:a}):wse(o)?n.push({label:o.debugName,value:o.value,kind:o.kind,epoch:o.version,id:a}):_se(o)?n.push({label:o.debugName??o.lView?.[Xe]?.tagName?.toLowerCase?.(),kind:o.kind,epoch:o.version,debuggableFn:o.lView?.[Te]?.constructor,id:a}):n.push({label:o.debugName,kind:o.kind,epoch:o.version,id:a});for(let c of i)r.push({consumer:s,producer:t.indexOf(c)})}return{nodes:n,edges:r}}function xse(e){let t=e;return e instanceof We&&(t=Ho(e)),(rl().resolverToEffects.get(t)??[]).map(o=>o instanceof Gc?o[ze]:o.signal[ze])}function xR(e,t=new Map){for(let n of e){if(t.has(n))continue;let r=[];for(let o=n.producers;o!==void 0;o=o.nextProducer){let i=o.producer;r.push(i)}t.set(n,r),xR(r,t)}return t}function Ise(e){let t=null;if(!(e instanceof We)&&!(e instanceof Nn))return X("getSignalGraph must be called with a NodeInjector or R3Injector");e instanceof We&&(t=Ese(e));let n=xse(e),r=t?[t,...n]:n,o=xR(r);return Sse(o)}var Ase=0,CP=0,DP=0,IR=[];function AR(e){IR.push([e,DP]),console.timeStamp("Event_"+e+"_"+DP++)}function un(e,t,n){let r;do r=IR.pop(),F(r,"Profiling error: could not find start event entry "+e);while(r[0]!==e);console.timeStamp(t,"Event_"+r[0]+"_"+r[1],void 0,"\u{1F170}\uFE0F Angular",void 0,n)}var Tse=e=>{let t=e.type;if(t===5)AR(100);else if(t===1){let n=e.context.token;un(100,TR(n),"tertiary-dark")}},Mse=(e,t,n)=>{switch(e){case K.BootstrapApplicationStart:case K.BootstrapComponentStart:case K.ChangeDetectionStart:case K.ChangeDetectionSyncStart:case K.AfterRenderHooksStart:case K.ComponentStart:case K.DeferBlockStateStart:case K.DynamicComponentStart:case K.TemplateCreateStart:case K.LifecycleHookStart:case K.TemplateUpdateStart:case K.HostBindingsUpdateStart:case K.OutputStart:{AR(e);break}case K.BootstrapApplicationEnd:{un(K.BootstrapApplicationStart,"Bootstrap application","primary-dark");break}case K.BootstrapComponentEnd:{un(K.BootstrapComponentStart,"Bootstrap component","primary-dark");break}case K.ChangeDetectionEnd:{CP=0,un(K.ChangeDetectionStart,"Change detection "+Ase++,"primary-dark");break}case K.ChangeDetectionSyncEnd:{un(K.ChangeDetectionSyncStart,"Synchronization "+CP++,"primary");break}case K.AfterRenderHooksEnd:{un(K.AfterRenderHooksStart,"After render hooks","primary");break}case K.ComponentEnd:{let r=kP(t);un(K.ComponentStart,r,"primary-light");break}case K.DeferBlockStateEnd:{un(K.DeferBlockStateStart,"Defer block","primary-dark");break}case K.DynamicComponentEnd:{un(K.DynamicComponentStart,"Dynamic component creation","primary-dark");break}case K.TemplateUpdateEnd:{un(K.TemplateUpdateStart,ge(n)+" (update)","secondary-dark");break}case K.TemplateCreateEnd:{un(K.TemplateCreateStart,ge(n)+" (create)","secondary");break}case K.HostBindingsUpdateEnd:{un(K.HostBindingsUpdateStart,"HostBindings","secondary-dark");break}case K.LifecycleHookEnd:{let r=kP(t);un(K.LifecycleHookStart,`${r}:${ge(n)}`,"tertiary");break}case K.OutputEnd:{un(K.OutputStart,ge(n),"tertiary-light");break}default:throw new Error("Unexpected profiling event type: "+e)}};function kP(e){return e.constructor.name}function TR(e){return or(e)?e.name:e.provide!=null?TR(e.provide):e.toString()}function Ose(){if(qt("Chrome DevTools profiling"),typeof ngDevMode<"u"&&ngDevMode){let e=B_(Tse),t=mC(Mse);return()=>{e(),t()}}return()=>{}}function Pse(e){let t=e.get(ma),n=e.get(em),r=GC(t,n),o={};for(let[i,s]of Object.entries(r))Tte(i)||(o[i]=s);return o}var RP="ng",Cse={\u0275getDependenciesFromInjectable:ase,\u0275getInjectorProviders:gse,\u0275getInjectorResolutionPath:SR,\u0275getInjectorMetadata:mse,\u0275setProfiler:mC,\u0275getSignalGraph:Ise,\u0275getDeferBlocks:rse,\u0275getTransferState:Pse,getDirectiveMetadata:ute,getComponent:HC,getContext:ite,getListeners:fte,getOwningComponent:ste,getHostElement:lte,getInjector:ate,getRootComponents:$C,getDirectives:cte,applyChanges:tse,isSignal:OS,enableProfiling:Ose},NP=!1;function Dse(){if(!NP){NP=!0,typeof window<"u"&&Gie();for(let[e,t]of Object.entries(Cse))kse(e,t)}}function kse(e,t){Rse(e,t)}function Rse(e,t){if(typeof COMPILED>"u"||!COMPILED){let n=At;ngDevMode&&F(t,"function not defined"),n[RP]??={},n[RP][e]=t}}var Nse=new H(""),MR=new H(""),lE=class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(t,n,r){this._ngZone=t,this.registry=n,Dh()&&(this._destroyRef=z(Ln,{optional:!0})??void 0),PS||(Lse(r),r.addToWindow(n)),this._watchAngularEvents(),t.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let t=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{t.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(t)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,n,r){let o=-1;n&&n>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(i=>i.timeoutId!==o),t()},n)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,n,r){if(r&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,n,r),this._runCallbacksIfReady()}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,n,r){return[]}static \u0275fac=function(n){return new(n||e)(Tt(Ye),Tt(Uu),Tt(MR))};static \u0275prov=Fe({token:e,factory:e.\u0275fac})};(typeof ngDevMode>"u"||ngDevMode)&&vn(lE,[{type:Ie}],()=>[{type:Ye},{type:Uu},{type:void 0,decorators:[{type:fC,args:[MR]}]}],null);var Uu=class e{_applications=new Map;registerApplication(t,n){this._applications.set(t,n)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,n=!0){return PS?.findTestabilityInTree(this,t,n)??null}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Uu,[{type:Ie,args:[{providedIn:"platform"}]}],null,null);function Lse(e){PS=e}var PS;function CS(e){return!!e&&typeof e.then=="function"}function jse(e){return!!e&&typeof e.subscribe=="function"}var Fse=new H(ngDevMode?"Application Initializer":"");var Fa=class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n});appInits=z(Fse,{optional:!0})??[];injector=z(en);constructor(){if((typeof ngDevMode>"u"||ngDevMode)&&!Array.isArray(this.appInits))throw new D(-209,`Unexpected type of the \`APP_INITIALIZER\` token value (expected an array, but got ${typeof this.appInits}). Please check that the \`APP_INITIALIZER\` token is configured as a \`multi: true\` provider.`)}runInitializers(){if(this.initialized)return;let t=[];for(let r of this.appInits){let o=Ch(this.injector,r);if(CS(o))t.push(o);else if(jse(o)){let i=new Promise((s,a)=>{o.subscribe({complete:s,error:a})});t.push(i)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(r=>{this.reject(r)}),t.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Fa,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);var OR=new H(ngDevMode?"appBootstrapListener":"");function PR(){ngDevMode&&Dse()}function CR(){Gy(()=>{let e="";if(ngDevMode){let t=ei();e=t&&Are(t)?"Writing to signals is not allowed while Angular renders the template (eg. interpolations)":"Writing to signals is not allowed in a `computed`"}throw new D(600,e)})}function qse(e){return e.isBoundToModule}var LP=10;function DS(e,t){return Array.isArray(t)?t.reduce(DS,e):{...e,...t}}var Tn=class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=z(Lr);afterRenderManager=z(Nu);zonelessEnabled=z(fu);rootEffectScheduler=z(Vc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Wu.Subject;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=z(jn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,lC.map)(t=>!t))}constructor(){z(Ka,{optional:!0})}whenStable(){let t;return new Promise(n=>{t=this.isStable.subscribe({next:r=>{r&&n()}})}).finally(()=>{t.unsubscribe()})}_injector=z(Ft);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,n){return this.bootstrapImpl(t,n)}bootstrapImpl(t,n,r=en.NULL){return this._injector.get(Ye).run(()=>{Be(K.BootstrapComponentStart),(typeof ngDevMode>"u"||ngDevMode)&&du(this._destroyed);let i=t instanceof kk;if(!this._injector.get(Fa).done){let p="";throw(typeof ngDevMode>"u"||ngDevMode)&&(p="Cannot bootstrap as there are still asynchronous initializers running."+(!i&&Dr(t)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.")),new D(405,p)}let a;i?a=t:a=this._injector.get(_m).resolveComponentFactory(t),this.componentTypes.push(a.componentType);let c=qse(a)?void 0:this._injector.get(La),u=n||a.selector,l=a.create(r,[],u,c),f=l.location.nativeElement,d=l.injector.get(Nse,null);return d?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),Eu(this.components,l),d?.unregisterApplication(f)}),this._loadComponent(l),(typeof ngDevMode>"u"||ngDevMode)&&this._injector.get(ja).log("Angular is running in development mode."),Be(K.BootstrapComponentEnd,l),l})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Be(K.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ag.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if((typeof ngDevMode>"u"||ngDevMode)&&du(this._destroyed),this._runningTick)throw Be(K.ChangeDetectionEnd),new D(101,ngDevMode&&"ApplicationRef.tick is called recursively");let t=te(null);try{if(this._runningTick=!0,this.synchronize(),typeof ngDevMode>"u"||ngDevMode)for(let n of this.allViews)n.checkNoChanges()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,te(t),this.afterTick.next(),Be(K.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Cg,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++<LP;){Be(K.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Be(K.ChangeDetectionSyncEnd)}}if((typeof ngDevMode>"u"||ngDevMode)&&t>=LP)throw new D(103,ngDevMode&&"Infinite change detection while refreshing application views. Ensure views are not calling `markForCheck` on every template execution or that afterRender hooks always mark views for check.")}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let t=!1;if(this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r}of this.allViews){if(!n&&!au(r))continue;let o=n&&!this.zonelessEnabled?0:1;mm(r,o),t=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}t||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:t})=>au(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){(typeof ngDevMode>"u"||ngDevMode)&&du(this._destroyed);let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){(typeof ngDevMode>"u"||ngDevMode)&&du(this._destroyed);let n=t;Eu(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(t);let n=this._injector.get(OR,[]);if(ngDevMode&&!Array.isArray(n))throw new D(-209,`Unexpected type of the \`APP_BOOTSTRAP_LISTENER\` token value (expected an array, but got ${typeof n}). Please check that the \`APP_BOOTSTRAP_LISTENER\` token is configured as a \`multi: true\` provider.`);n.forEach(r=>r(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return(typeof ngDevMode>"u"||ngDevMode)&&du(this._destroyed),this._destroyListeners.push(t),()=>Eu(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new D(406,ngDevMode&&"This instance of the `ApplicationRef` has already been destroyed.");let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Tn,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);function du(e){e&&console.warn(bt(406,"This instance of the `ApplicationRef` has already been destroyed."))}function Eu(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function kS(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}function DR(e){let t=S(),n=ce();if(Ja(t,n),!NR(0,t))return;let r=t[Se],o=Bt(t,n),i=e(()=>Yt(0,t,n),r);nl(0,o,i)}function kR(e){if(typeof ngServerMode<"u"&&ngServerMode)return;let t=S(),n=t[Se],r=ce(),o=t[x],i=kt(o,r);if(i.loadingState===ot.NOT_STARTED){let s=Bt(t,r),c=e(()=>ol(i,t,r),n);nl(1,s,c)}}function RR(e,t,n){if(typeof ngServerMode<"u"&&ngServerMode)return;let r=t[Se],o=Bt(t,n),i=o[Bi];ngDevMode&&qE(i);let s=e(()=>xm(r,i),r);nl(2,o,s)}function ol(e,t,n){RS(e,t,n)}function RS(e,t,n){let r=t[Se],o=t[x];if(e.loadingState!==ot.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Bt(t,n),s=Nie(o,e);e.loadingState=ot.IN_PROGRESS,lg(1,i);let a=e.dependencyResolverFn;if(ngDevMode){let u=r.get(Uie,null,{optional:!0});u&&(a=u.intercept(a))}let c=r.get(oa).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(u=>{let l=!1,f=null,d=[],p=[];for(let h=0;h<u.length;h++){let m=u[h];if(m.status==="fulfilled"){let y=m.value,v=_e(y)||dt(y);if(v)d.push(v);else{let w=Kt(y);w&&p.push(w)}}else{l=!0,f=m.reason instanceof Error?m.reason:new Error(String(m.reason));break}}if(l){if(e.loadingState=ot.FAILED,e.errorTmplIndex===null){let h=ngDevMode?Pu(t):"",m="";if(ngDevMode){m=`Loading dependencies for \`@defer\` block failed, but no \`@error\` block was configured${h}. Consider using the \`@error\` block to render an error state.`;let v=e.dependencyResolverFn,w=f?.message;v&&(m+=`
65
69
 
66
70
  Angular tried to invoke the following dependency function (compiler-generated):
67
71
  \`\`\`
@@ -74,17 +78,17 @@ ${w}`:`
74
78
 
75
79
  The loading resulted in the following error:
76
80
 
77
- ${w}`)}let y=new D(-750,m);pS(t,y)}}else{e.loadingState=ot.COMPLETE;let h=s.tView;if(d.length>0){h.directiveRegistry=_P(h.directiveRegistry,d);let m=d.map(v=>v.type),y=Mh(!1,...m);e.providers=y}p.length>0&&(h.pipeRegistry=_P(h.pipeRegistry,p))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=ot.COMPLETE,c()}),e.loadingPromise)}function CR(e,t){return!(e===0&&typeof ngServerMode<"u"&&ngServerMode||t[Se].get(Lie,null,{optional:!0})?.behavior===rE.Manual)}function Yt(e,t,n){let r=t[x],o=t[n.index];if(ngDevMode&&gn(o),!CR(e,t))return;let i=Bt(t,n),s=kt(r,n);switch(lR(i),s.loadingState){case ot.NOT_STARTED:qo(Ue.Loading,n,o),RS(s,t,n),s.loadingState===ot.IN_PROGRESS&&SP(s,n,o);break;case ot.IN_PROGRESS:qo(Ue.Loading,n,o),SP(s,n,o);break;case ot.COMPLETE:ngDevMode&&pR(s),qo(Ue.Complete,n,o);break;case ot.FAILED:qo(Ue.Error,n,o);break;default:ngDevMode&&X("Unknown defer block state")}}async function Sm(e,t,n){let r=e.get(Ha);if(r.hydrating.has(t))return;let{parentBlockPromise:i,hydrationQueue:s}=Ate(t,e);if(s.length===0)return;i!==null&&s.shift(),Lse(r,s),i!==null&&await i;let a=s[0];r.has(a)?await kP(e,s,n):r.awaitParentBlock(a,async()=>await kP(e,s,n))}async function kP(e,t,n){let r=e.get(Ha),o=r.hydrating,i=e.get(jn),s=i.add();for(let c=0;c<t.length;c++){let u=t[c],l=r.get(u);if(l!=null){if(await Fse(l),await jse(e),Rse(l)){eoe(l),RP(t.slice(c),r);break}o.get(u).resolve()}else{Nse(c,t,r),RP(t.slice(c),r);break}}let a=t[t.length-1];await o.get(a)?.promise,i.remove(s),n&&n(t),toe(r.get(a),t,r,e.get(Tn))}function Rse(e){return Bt(e.lView,e.tNode)[Ur]===Ue.Error}function Nse(e,t,n){let r=e-1,o=r>-1?n.get(t[r]):null;o&&vm(o.lContainer)}function RP(e,t){let n=t.hydrating;for(let r in e)n.get(r)?.reject();t.cleanup(e)}function Lse(e,t){for(let n of t)e.hydrating.set(n,kS())}function jse(e){return new Promise(t=>rS(t,{injector:e}))}async function Fse(e){let{tNode:t,lView:n}=e,r=Bt(n,t);return new Promise(o=>{qse(r,o),Yt(2,n,t)})}function qse(e,t){Array.isArray(e[Ia])||(e[Ia]=[]),e[Ia].push(t)}function st(e,t,n){return e===0?NP(t,n):e===2?!NP(t,n):!(typeof ngServerMode<"u"&&ngServerMode)}function DR(e){return e!=null&&(e&1)===1}function NP(e,t){let n=e[Se],r=kt(e[x],t),o=FE(n),i=DR(r.flags);if(typeof ngServerMode<"u"&&ngServerMode)return!o||!i;let a=Bt(e,t)[Bi]!==null;return!(i&&a&&o)}function Wo(e,t){let n=kt(e,t);return n.hydrateTriggers??=new Map}var LP=!1;function Bse(e){LP||(LP=!0,e.get(ja).log(bt(-751,"Angular has detected that this application contains `@defer` blocks and the hot module replacement (HMR) mode is enabled. All `@defer` block dependencies will be loaded eagerly.")))}function Use(e,t,n,r,o,i,s,a,c,u){let l=S(),f=fe(),d=e+Z,p=Fi(l,f,e,null,0,0),h=l[Se],m=FE(h);if(f.firstCreatePass){qt("NgDefer"),ngDevMode&&(typeof ngHmrMode<"u"&&ngHmrMode&&Bse(h),DR(u)&&!m&&Ite());let Q={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ot.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:u??0};c?.(f,Q,a,s),Tie(f,d,Q)}let y=l[d];qk(y,p,l);let v=null,w=null;if(y[kr]?.length>0){let Q=y[kr][0].data;w=Q[NE]??null,v=Q[LE]}let A=[null,qi.Initial,null,null,null,null,w,v,null,null];Aie(l,d,A);let P=null;w!==null&&m&&(P=h.get(Ha),P.add(w,{lView:l,tNode:p,lContainer:y}));let j=()=>{lR(A),w!==null&&P?.cleanup([w])};tl(0,A,()=>Fh(l,j)),au(l,j)}function Hse(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"when <expression>"),!st(0,t,n))return;let r=Gt();if(et(t,r,e)){let o=te(null);try{let i=!!e,a=Bt(t,n)[Ur];i===!1&&a===qi.Initial?Ja(t,n):i===!0&&(a===qi.Initial||a===Ue.Placeholder)&&Yt(0,t,n)}finally{te(o)}}}function $se(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"prefetch when <expression>"),!st(1,t,n))return;let r=Gt();if(et(t,r,e)){let o=te(null);try{let i=!!e,s=t[x],a=kt(s,n);i===!0&&a.loadingState===ot.NOT_STARTED&&rl(a,t,n)}finally{te(o)}}}function Kse(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"hydrate when <expression>"),!st(2,t,n))return;let r=Gt(),o=fe();if(Wo(o,n).set(6,null),et(t,r,e))if(typeof ngServerMode<"u"&&ngServerMode)Yt(2,t,n);else{let s=t[Se],a=te(null);try{if(!!e===!0){let l=Bt(t,n)[Bi];ngDevMode&&qE(l),Sm(s,l)}}finally{te(a)}}}function Wse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate never"),!st(2,e,t))return;Wo(fe(),t).set(7,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function Vse(){let e=S(),t=ce();ngDevMode&&it(e[x],t,"on idle"),st(0,e,t)&&MR(AS)}function Gse(){let e=S(),t=ce();ngDevMode&&it(e[x],t,"prefetch on idle"),st(1,e,t)&&OR(AS)}function zse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on idle"),!st(2,e,t))return;Wo(fe(),t).set(0,null),typeof ngServerMode<"u"&&ngServerMode?Yt(2,e,t):PR(AS,e,t)}function Yse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"on immediate"),!st(0,e,t))return;kt(e[x],t).loadingTmplIndex===null&&Ja(e,t),Yt(0,e,t)}function Zse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"prefetch on immediate"),!st(1,e,t))return;let n=e[x],r=kt(n,t);r.loadingState===ot.NOT_STARTED&&RS(r,e,t)}function Qse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on immediate"),!st(2,e,t))return;if(Wo(fe(),t).set(1,null),typeof ngServerMode<"u"&&ngServerMode)Yt(2,e,t);else{let r=e[Se],i=Bt(e,t)[Bi];ngDevMode&&qE(i),Sm(r,i)}}function Jse(e){let t=S(),n=ce();ngDevMode&&it(t[x],n,`on timer(${e}ms)`),st(0,t,n)&&MR(TS(e))}function Xse(e){let t=S(),n=ce();ngDevMode&&it(t[x],n,`prefetch on timer(${e}ms)`),st(1,t,n)&&OR(TS(e))}function eae(e){let t=S(),n=ce();if(ngDevMode&&it(t[x],n,`hydrate on timer(${e}ms)`),!st(2,t,n))return;Wo(fe(),n).set(5,{type:5,delay:e}),typeof ngServerMode<"u"&&ngServerMode?Yt(2,t,n):PR(TS(e),t,n)}function tae(e,t){let n=S(),r=ce();ngDevMode&&it(n[x],r,`on hover${t===-1?"":"(<target>)"}`),st(0,n,r)&&(Ja(n,r),typeof ngServerMode<"u"&&ngServerMode||Qa(n,r,e,t,YC,()=>Yt(0,n,r),0))}function nae(e,t){let n=S(),r=ce();if(ngDevMode&&it(n[x],r,`prefetch on hover${t===-1?"":"(<target>)"}`),!st(1,n,r))return;let o=n[x],i=kt(o,r);i.loadingState===ot.NOT_STARTED&&Qa(n,r,e,t,YC,()=>rl(i,n,r),1)}function rae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on hover"),!st(2,e,t))return;Wo(fe(),t).set(4,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function oae(e,t){let n=S(),r=ce();ngDevMode&&it(n[x],r,`on interaction${t===-1?"":"(<target>)"}`),st(0,n,r)&&(Ja(n,r),typeof ngServerMode<"u"&&ngServerMode||Qa(n,r,e,t,zC,()=>Yt(0,n,r),0))}function iae(e,t){let n=S(),r=ce();if(ngDevMode&&it(n[x],r,`prefetch on interaction${t===-1?"":"(<target>)"}`),!st(1,n,r))return;let o=n[x],i=kt(o,r);i.loadingState===ot.NOT_STARTED&&Qa(n,r,e,t,zC,()=>rl(i,n,r),1)}function sae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on interaction"),!st(2,e,t))return;Wo(fe(),t).set(3,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function aae(e,t,n){let r=S(),o=ce();if(ngDevMode){let i=[];t!==void 0&&t!==-1&&i.push("<target>"),n&&i.push(JSON.stringify(n)),it(r[x],o,`on viewport${i.length===0?"":`(${i.join(", ")})`}`)}st(0,r,o)&&(Ja(r,o),typeof ngServerMode<"u"&&ngServerMode||Qa(r,o,e,t,hR,()=>Yt(0,r,o),0,n))}function cae(e,t,n){let r=S(),o=ce();if(ngDevMode){let a=[];t!==void 0&&t!==-1&&a.push("<target>"),n&&a.push(JSON.stringify(n)),it(r[x],o,`prefetch on viewport${a.length===0?"":`(${a.join(", ")})`}`)}if(!st(1,r,o))return;let i=r[x],s=kt(i,o);s.loadingState===ot.NOT_STARTED&&Qa(r,o,e,t,hR,()=>rl(s,r,o),1,n)}function uae(e){let t=S(),n=ce();if(ngDevMode&&it(t[x],n,`hydrate on viewport${e?`(${JSON.stringify(e)})`:""}`),!st(2,t,n))return;Wo(fe(),n).set(2,e?{type:2,intersectionObserverOptions:e}:null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,t,n)}function kR(e,t){let n=S(),r=Gt();if(et(n,r,t)){let o=fe(),i=mn();if(hm(i,o,n,e,t))qn(i)&&XD(n,i.index),ngDevMode&&ek(n,o,i,e,t);else{ngDevMode&&lt(i,2);let a=rt(i,n);fm(n[pe],a,null,i.value,e,t,null)}ngDevMode&&Va(o.data,i,e,r)}return kR}function RR(e,t,n,r){let o=S(),i=Gt();if(et(o,i,t)){let s=fe(),a=mn();ure(a,o,e,t,n,r),ngDevMode&&Va(s.data,a,"attr."+e,i)}return RR}function fg(e){if(qt("NgAnimateEnter"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return fg;ngDevMode&&om(e,"animate.enter");let t=S();if(rm(t))return fg;let n=ce(),r=t[Se].get(Ye);return sm(Sg(t),n,()=>lae(t,n,e,r)),cm(t[Se]),iS(t[Se],Sg(t)),fg}function lae(e,t,n,r){let o=rt(t,e);ngDevMode&&im(o,"animate.enter");let i=e[pe],s=RD(n),a=[],c=!1,u=f=>{if(ku(f)!==o)return;let d=f instanceof AnimationEvent?"animationend":"transitionend";r.runOutsideAngular(()=>{i.listen(o,d,l)})},l=f=>{ku(f)===o&&(nS(f,o)&&(c=!0),fae(f,o,i))};if(s&&s.length>0){r.runOutsideAngular(()=>{a.push(i.listen(o,"animationstart",u)),a.push(i.listen(o,"transitionstart",u))}),Fne(o,s,a);for(let f of s)i.addClass(o,f);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(jD(o,Ci,Ki),!Ci.has(o))){for(let f of s)i.removeClass(o,f);eS(o)}})})}}function fae(e,t,n){let r=Oa.get(t);if(!(ku(e)!==t||!r)&&nS(e,t)){e.stopPropagation();for(let o of r.classList)n.removeClass(t,o);eS(t)}}function dg(e){if(qt("NgAnimateEnter"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return dg;ngDevMode&&om(e,"animate.enter");let t=S();if(rm(t))return dg;let n=ce();return sm(Sg(t),n,()=>dae(t,n,e)),cm(t[Se]),iS(t[Se],Sg(t)),dg}function dae(e,t,n){let r=rt(t,e);ngDevMode&&im(r,"animate.enter"),n.call(e[Te],{target:r,animationComplete:qne})}function pg(e){if(qt("NgAnimateLeave"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return pg;ngDevMode&&om(e,"animate.leave");let t=S();if(rm(t))return pg;let r=ce(),o=t[Se].get(Ye);return sm(Ni(t),r,()=>pae(t,r,e,o)),cm(t[Se]),pg}function pae(e,t,n,r){let{promise:o,resolve:i}=kS(),s=rt(t,e);ngDevMode&&im(s,"animate.leave");let a=e[pe];Pa.add(e[nn]),(Ni(e).get(t.index).resolvers??=[]).push(i);let c=RD(n);return c&&c.length>0?hae(s,t,e,c,a,r):i(),{promise:o,resolve:i}}function hae(e,t,n,r,o,i){Une(e,o);let s=[],a=Ni(n).get(t.index)?.resolvers,c,u=!1,l=f=>{if(!(ku(f)!==e&&f.type!=="animation-fallback")&&(f.type==="animation-fallback"||nS(f,e))){if(u=!0,c&&clearTimeout(c),f.type!=="animation-fallback"&&f.stopPropagation(),Ci.delete(e),kw(t,e),Array.isArray(t.projection))for(let p of r)o.removeClass(e,p);Rw(a,s),Nw(n,t)}};i.runOutsideAngular(()=>{s.push(o.listen(e,"animationend",l)),s.push(o.listen(e,"transitionend",l))}),tS(t,e);for(let f of r)o.addClass(e,f);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(u)return;jD(e,Ci,Ki);let f=Ci.get(e);f?(c=setTimeout(()=>{l(new CustomEvent("animation-fallback"))},f.duration+50),s.push(()=>clearTimeout(c))):(kw(t,e),Rw(a,s),Nw(n,t))})})}function fE(e){if(qt("NgAnimateLeave"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return fE;ngDevMode&&om(e,"animate.leave");let t=S(),n=ce();Pa.add(t[nn]);let r=t[Se].get(Ye),o=t[Se].get(Nne);return sm(Ni(t),n,()=>gae(t,n,e,r,o)),cm(t[Se]),fE}function gae(e,t,n,r,o){let{promise:i,resolve:s}=kS(),a=rt(t,e);ngDevMode&&im(a,"animate.leave");let c=[],u=e[pe],l=rm(e);(Ni(e).get(t.index).resolvers??=[]).push(s);let f=Ni(e).get(t.index)?.resolvers;if(l)eg(e,t,a,f,c);else{let d=setTimeout(()=>eg(e,t,a,f,c),o),p={target:a,animationComplete:()=>{eg(e,t,a,f,c),clearTimeout(d)}};tS(t,a),r.runOutsideAngular(()=>{c.push(u.listen(a,"animationend",()=>{eg(e,t,a,f,c),clearTimeout(d)},{once:!0}))}),n.call(e[Te],p)}return{promise:i,resolve:s}}function mae(){let e=S()[at][Te];return ngDevMode&&F(e,"Expected component instance to be defined"),e}var dE=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function nw(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function rw(e,t,n){let r=e.get(t);r!==void 0?r.add(n):e.set(t,new Set([n]))}function yae(e,t,n,r){let o,i,s=0,a=e.length-1,c=ngDevMode?new Map:void 0;if(Array.isArray(t)){te(r);let u=t.length-1;for(te(null);s<=a&&s<=u;){let l=e.at(s),f=t[s];ngDevMode&&rw(c,n(s,f),s);let d=nw(s,l,s,f,n);if(d!==0){d<0&&e.updateValue(s,f),s++;continue}let p=e.at(a),h=t[u];ngDevMode&&rw(c,n(u,h),u);let m=nw(a,p,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let y=n(s,l),v=n(a,p),w=n(s,f);if(Object.is(w,v)){let A=n(u,h);Object.is(A,y)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,f),s++;continue}if(o??=new Hg,i??=FP(e,s,a,n),pE(e,o,s,w))e.updateValue(s,f),s++,a++;else if(i.has(w))o.set(y,e.detach(s)),a--;else{let A=e.create(s,t[s]);e.attach(s,A),s++,a++}}for(;s<=u;)jP(e,o,n,s,t[s]),s++}else if(t!=null){te(r);let u=t[Symbol.iterator]();te(null);let l=u.next();for(;!l.done&&s<=a;){let f=e.at(s),d=l.value;ngDevMode&&rw(c,n(s,d),s);let p=nw(s,f,s,d,n);if(p!==0)p<0&&e.updateValue(s,d),s++,l=u.next();else{o??=new Hg,i??=FP(e,s,a,n);let h=n(s,d);if(pE(e,o,s,h))e.updateValue(s,d),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,d)),s++,a++,l=u.next();else{let m=n(s,f);o.set(m,e.detach(s)),a--}}}for(;!l.done;)jP(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));if(o?.forEach(u=>{e.destroy(u)}),ngDevMode){let u=[];for(let[l,f]of c)if(f.size>1){let d=[...f].sort((p,h)=>p-h);for(let p=1;p<d.length;p++)u.push(`key "${ge(l)}" at index "${d[p-1]}" and "${d[p]}"`)}if(u.length>0){let l=bt(-955,`The provided track expression resulted in duplicated keys for a given collection. Adjust the tracking expression such that it uniquely identifies all the items in the collection. Duplicated keys were:
81
+ ${w}`)}let y=new D(-750,m);pS(t,y)}}else{e.loadingState=ot.COMPLETE;let h=s.tView;if(d.length>0){h.directiveRegistry=xP(h.directiveRegistry,d);let m=d.map(v=>v.type),y=Oh(!1,...m);e.providers=y}p.length>0&&(h.pipeRegistry=xP(h.pipeRegistry,p))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=ot.COMPLETE,c()}),e.loadingPromise)}function NR(e,t){return!(e===0&&typeof ngServerMode<"u"&&ngServerMode||t[Se].get(Hie,null,{optional:!0})?.behavior===rE.Manual)}function Yt(e,t,n){let r=t[x],o=t[n.index];if(ngDevMode&&gn(o),!NR(e,t))return;let i=Bt(t,n),s=kt(r,n);switch(hR(i),s.loadingState){case ot.NOT_STARTED:qo(Ue.Loading,n,o),RS(s,t,n),s.loadingState===ot.IN_PROGRESS&&TP(s,n,o);break;case ot.IN_PROGRESS:qo(Ue.Loading,n,o),TP(s,n,o);break;case ot.COMPLETE:ngDevMode&&yR(s),qo(Ue.Complete,n,o);break;case ot.FAILED:qo(Ue.Error,n,o);break;default:ngDevMode&&X("Unknown defer block state")}}async function xm(e,t,n){let r=e.get(Ha);if(r.hydrating.has(t))return;let{parentBlockPromise:i,hydrationQueue:s}=Dte(t,e);if(s.length===0)return;i!==null&&s.shift(),Hse(r,s),i!==null&&await i;let a=s[0];r.has(a)?await jP(e,s,n):r.awaitParentBlock(a,async()=>await jP(e,s,n))}async function jP(e,t,n){let r=e.get(Ha),o=r.hydrating,i=e.get(jn),s=i.add();for(let c=0;c<t.length;c++){let u=t[c],l=r.get(u);if(l!=null){if(await Kse(l),await $se(e),Bse(l)){soe(l),FP(t.slice(c),r);break}o.get(u).resolve()}else{Use(c,t,r),FP(t.slice(c),r);break}}let a=t[t.length-1];await o.get(a)?.promise,i.remove(s),n&&n(t),aoe(r.get(a),t,r,e.get(Tn))}function Bse(e){return Bt(e.lView,e.tNode)[Ur]===Ue.Error}function Use(e,t,n){let r=e-1,o=r>-1?n.get(t[r]):null;o&&bm(o.lContainer)}function FP(e,t){let n=t.hydrating;for(let r in e)n.get(r)?.reject();t.cleanup(e)}function Hse(e,t){for(let n of t)e.hydrating.set(n,kS())}function $se(e){return new Promise(t=>rS(t,{injector:e}))}async function Kse(e){let{tNode:t,lView:n}=e,r=Bt(n,t);return new Promise(o=>{Wse(r,o),Yt(2,n,t)})}function Wse(e,t){Array.isArray(e[Ia])||(e[Ia]=[]),e[Ia].push(t)}function st(e,t,n){return e===0?qP(t,n):e===2?!qP(t,n):!(typeof ngServerMode<"u"&&ngServerMode)}function LR(e){return e!=null&&(e&1)===1}function qP(e,t){let n=e[Se],r=kt(e[x],t),o=FE(n),i=LR(r.flags);if(typeof ngServerMode<"u"&&ngServerMode)return!o||!i;let a=Bt(e,t)[Bi]!==null;return!(i&&a&&o)}function Wo(e,t){let n=kt(e,t);return n.hydrateTriggers??=new Map}var BP=!1;function Vse(e){BP||(BP=!0,e.get(ja).log(bt(-751,"Angular has detected that this application contains `@defer` blocks and the hot module replacement (HMR) mode is enabled. All `@defer` block dependencies will be loaded eagerly.")))}function Gse(e,t,n,r,o,i,s,a,c,u){let l=S(),f=fe(),d=e+Z,p=Fi(l,f,e,null,0,0),h=l[Se],m=FE(h);if(f.firstCreatePass){qt("NgDefer"),ngDevMode&&(typeof ngHmrMode<"u"&&ngHmrMode&&Vse(h),LR(u)&&!m&&Cte());let Q={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ot.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:u??0};c?.(f,Q,a,s),kie(f,d,Q)}let y=l[d];$k(y,p,l);let v=null,w=null;if(y[kr]?.length>0){let Q=y[kr][0].data;w=Q[NE]??null,v=Q[LE]}let A=[null,qi.Initial,null,null,null,null,w,v,null,null];Die(l,d,A);let P=null;w!==null&&m&&(P=h.get(Ha),P.add(w,{lView:l,tNode:p,lContainer:y}));let j=()=>{hR(A),w!==null&&P?.cleanup([w])};nl(0,A,()=>qh(l,j)),cu(l,j)}function zse(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"when <expression>"),!st(0,t,n))return;let r=Gt();if(et(t,r,e)){let o=te(null);try{let i=!!e,a=Bt(t,n)[Ur];i===!1&&a===qi.Initial?Ja(t,n):i===!0&&(a===qi.Initial||a===Ue.Placeholder)&&Yt(0,t,n)}finally{te(o)}}}function Yse(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"prefetch when <expression>"),!st(1,t,n))return;let r=Gt();if(et(t,r,e)){let o=te(null);try{let i=!!e,s=t[x],a=kt(s,n);i===!0&&a.loadingState===ot.NOT_STARTED&&ol(a,t,n)}finally{te(o)}}}function Zse(e){let t=S(),n=mn();if(ngDevMode&&it(t[x],n,"hydrate when <expression>"),!st(2,t,n))return;let r=Gt(),o=fe();if(Wo(o,n).set(6,null),et(t,r,e))if(typeof ngServerMode<"u"&&ngServerMode)Yt(2,t,n);else{let s=t[Se],a=te(null);try{if(!!e===!0){let l=Bt(t,n)[Bi];ngDevMode&&qE(l),xm(s,l)}}finally{te(a)}}}function Qse(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate never"),!st(2,e,t))return;Wo(fe(),t).set(7,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function Jse(){let e=S(),t=ce();ngDevMode&&it(e[x],t,"on idle"),st(0,e,t)&&DR(AS)}function Xse(){let e=S(),t=ce();ngDevMode&&it(e[x],t,"prefetch on idle"),st(1,e,t)&&kR(AS)}function eae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on idle"),!st(2,e,t))return;Wo(fe(),t).set(0,null),typeof ngServerMode<"u"&&ngServerMode?Yt(2,e,t):RR(AS,e,t)}function tae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"on immediate"),!st(0,e,t))return;kt(e[x],t).loadingTmplIndex===null&&Ja(e,t),Yt(0,e,t)}function nae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"prefetch on immediate"),!st(1,e,t))return;let n=e[x],r=kt(n,t);r.loadingState===ot.NOT_STARTED&&RS(r,e,t)}function rae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on immediate"),!st(2,e,t))return;if(Wo(fe(),t).set(1,null),typeof ngServerMode<"u"&&ngServerMode)Yt(2,e,t);else{let r=e[Se],i=Bt(e,t)[Bi];ngDevMode&&qE(i),xm(r,i)}}function oae(e){let t=S(),n=ce();ngDevMode&&it(t[x],n,`on timer(${e}ms)`),st(0,t,n)&&DR(TS(e))}function iae(e){let t=S(),n=ce();ngDevMode&&it(t[x],n,`prefetch on timer(${e}ms)`),st(1,t,n)&&kR(TS(e))}function sae(e){let t=S(),n=ce();if(ngDevMode&&it(t[x],n,`hydrate on timer(${e}ms)`),!st(2,t,n))return;Wo(fe(),n).set(5,{type:5,delay:e}),typeof ngServerMode<"u"&&ngServerMode?Yt(2,t,n):RR(TS(e),t,n)}function aae(e,t){let n=S(),r=ce();ngDevMode&&it(n[x],r,`on hover${t===-1?"":"(<target>)"}`),st(0,n,r)&&(Ja(n,r),typeof ngServerMode<"u"&&ngServerMode||Qa(n,r,e,t,XC,()=>Yt(0,n,r),0))}function cae(e,t){let n=S(),r=ce();if(ngDevMode&&it(n[x],r,`prefetch on hover${t===-1?"":"(<target>)"}`),!st(1,n,r))return;let o=n[x],i=kt(o,r);i.loadingState===ot.NOT_STARTED&&Qa(n,r,e,t,XC,()=>ol(i,n,r),1)}function uae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on hover"),!st(2,e,t))return;Wo(fe(),t).set(4,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function lae(e,t){let n=S(),r=ce();ngDevMode&&it(n[x],r,`on interaction${t===-1?"":"(<target>)"}`),st(0,n,r)&&(Ja(n,r),typeof ngServerMode<"u"&&ngServerMode||Qa(n,r,e,t,JC,()=>Yt(0,n,r),0))}function fae(e,t){let n=S(),r=ce();if(ngDevMode&&it(n[x],r,`prefetch on interaction${t===-1?"":"(<target>)"}`),!st(1,n,r))return;let o=n[x],i=kt(o,r);i.loadingState===ot.NOT_STARTED&&Qa(n,r,e,t,JC,()=>ol(i,n,r),1)}function dae(){let e=S(),t=ce();if(ngDevMode&&it(e[x],t,"hydrate on interaction"),!st(2,e,t))return;Wo(fe(),t).set(3,null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,e,t)}function pae(e,t,n){let r=S(),o=ce();if(ngDevMode){let i=[];t!==void 0&&t!==-1&&i.push("<target>"),n&&i.push(JSON.stringify(n)),it(r[x],o,`on viewport${i.length===0?"":`(${i.join(", ")})`}`)}st(0,r,o)&&(Ja(r,o),typeof ngServerMode<"u"&&ngServerMode||Qa(r,o,e,t,vR,()=>Yt(0,r,o),0,n))}function hae(e,t,n){let r=S(),o=ce();if(ngDevMode){let a=[];t!==void 0&&t!==-1&&a.push("<target>"),n&&a.push(JSON.stringify(n)),it(r[x],o,`prefetch on viewport${a.length===0?"":`(${a.join(", ")})`}`)}if(!st(1,r,o))return;let i=r[x],s=kt(i,o);s.loadingState===ot.NOT_STARTED&&Qa(r,o,e,t,vR,()=>ol(s,r,o),1,n)}function gae(e){let t=S(),n=ce();if(ngDevMode&&it(t[x],n,`hydrate on viewport${e?`(${JSON.stringify(e)})`:""}`),!st(2,t,n))return;Wo(fe(),n).set(2,e?{type:2,intersectionObserverOptions:e}:null),typeof ngServerMode<"u"&&ngServerMode&&Yt(2,t,n)}function jR(e,t){let n=S(),r=Gt();if(et(n,r,t)){let o=fe(),i=mn();if(gm(i,o,n,e,t))qn(i)&&rk(n,i.index),ngDevMode&&ok(n,o,i,e,t);else{ngDevMode&&lt(i,2);let a=rt(i,n);dm(n[pe],a,null,i.value,e,t,null)}ngDevMode&&Va(o.data,i,e,r)}return jR}function FR(e,t,n,r){let o=S(),i=Gt();if(et(o,i,t)){let s=fe(),a=mn();gre(a,o,e,t,n,r),ngDevMode&&Va(s.data,a,"attr."+e,i)}return FR}function dg(e){if(qt("NgAnimateEnter"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return dg;ngDevMode&&im(e,"animate.enter");let t=S();if(om(t))return dg;let n=ce(),r=t[Se].get(Ye);return am(xg(t),n,()=>mae(t,n,e,r)),um(t[Se]),iS(t[Se],xg(t)),dg}function mae(e,t,n,r){let o=rt(t,e);ngDevMode&&sm(o,"animate.enter");let i=e[pe],s=FD(n),a=[],c=!1,u=f=>{if(Ru(f)!==o)return;let d=f instanceof AnimationEvent?"animationend":"transitionend";r.runOutsideAngular(()=>{i.listen(o,d,l)})},l=f=>{Ru(f)===o&&(nS(f,o)&&(c=!0),yae(f,o,i))};if(s&&s.length>0){r.runOutsideAngular(()=>{a.push(i.listen(o,"animationstart",u)),a.push(i.listen(o,"transitionstart",u))}),Kne(o,s,a);for(let f of s)i.addClass(o,f);r.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(!c&&(UD(o,Ci,Ki),!Ci.has(o))){for(let f of s)i.removeClass(o,f);eS(o)}})})}}function yae(e,t,n){let r=Oa.get(t);if(!(Ru(e)!==t||!r)&&nS(e,t)){e.stopPropagation();for(let o of r.classList)n.removeClass(t,o);eS(t)}}function pg(e){if(qt("NgAnimateEnter"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return pg;ngDevMode&&im(e,"animate.enter");let t=S();if(om(t))return pg;let n=ce();return am(xg(t),n,()=>vae(t,n,e)),um(t[Se]),iS(t[Se],xg(t)),pg}function vae(e,t,n){let r=rt(t,e);ngDevMode&&sm(r,"animate.enter"),n.call(e[Te],{target:r,animationComplete:Wne})}function hg(e){if(qt("NgAnimateLeave"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return hg;ngDevMode&&im(e,"animate.leave");let t=S();if(om(t))return hg;let r=ce(),o=t[Se].get(Ye);return am(Ni(t),r,()=>bae(t,r,e,o)),um(t[Se]),hg}function bae(e,t,n,r){let{promise:o,resolve:i}=kS(),s=rt(t,e);ngDevMode&&sm(s,"animate.leave");let a=e[pe];Pa.add(e[nn]),(Ni(e).get(t.index).resolvers??=[]).push(i);let c=FD(n);return c&&c.length>0?_ae(s,t,e,c,a,r):i(),{promise:o,resolve:i}}function _ae(e,t,n,r,o,i){Gne(e,o);let s=[],a=Ni(n).get(t.index)?.resolvers,c,u=!1,l=f=>{if(!(Ru(f)!==e&&f.type!=="animation-fallback")&&(f.type==="animation-fallback"||nS(f,e))){if(u=!0,c&&clearTimeout(c),f.type!=="animation-fallback"&&f.stopPropagation(),Ci.delete(e),kw(t,e),Array.isArray(t.projection))for(let p of r)o.removeClass(e,p);Rw(a,s),Nw(n,t)}};i.runOutsideAngular(()=>{s.push(o.listen(e,"animationend",l)),s.push(o.listen(e,"transitionend",l))}),tS(t,e);for(let f of r)o.addClass(e,f);i.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(u)return;UD(e,Ci,Ki);let f=Ci.get(e);f?(c=setTimeout(()=>{l(new CustomEvent("animation-fallback"))},f.duration+50),s.push(()=>clearTimeout(c))):(kw(t,e),Rw(a,s),Nw(n,t))})})}function fE(e){if(qt("NgAnimateLeave"),typeof ngServerMode<"u"&&ngServerMode||!Ki)return fE;ngDevMode&&im(e,"animate.leave");let t=S(),n=ce();Pa.add(t[nn]);let r=t[Se].get(Ye),o=t[Se].get(Une);return am(Ni(t),n,()=>wae(t,n,e,r,o)),um(t[Se]),fE}function wae(e,t,n,r,o){let{promise:i,resolve:s}=kS(),a=rt(t,e);ngDevMode&&sm(a,"animate.leave");let c=[],u=e[pe],l=om(e);(Ni(e).get(t.index).resolvers??=[]).push(s);let f=Ni(e).get(t.index)?.resolvers;if(l)tg(e,t,a,f,c);else{let d=setTimeout(()=>tg(e,t,a,f,c),o),p={target:a,animationComplete:()=>{tg(e,t,a,f,c),clearTimeout(d)}};tS(t,a),r.runOutsideAngular(()=>{c.push(u.listen(a,"animationend",()=>{tg(e,t,a,f,c),clearTimeout(d)},{once:!0}))}),n.call(e[Te],p)}return{promise:i,resolve:s}}function Eae(){let e=S()[at][Te];return ngDevMode&&F(e,"Expected component instance to be defined"),e}var dE=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function nw(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function rw(e,t,n){let r=e.get(t);r!==void 0?r.add(n):e.set(t,new Set([n]))}function Sae(e,t,n,r){let o,i,s=0,a=e.length-1,c=ngDevMode?new Map:void 0;if(Array.isArray(t)){te(r);let u=t.length-1;for(te(null);s<=a&&s<=u;){let l=e.at(s),f=t[s];ngDevMode&&rw(c,n(s,f),s);let d=nw(s,l,s,f,n);if(d!==0){d<0&&e.updateValue(s,f),s++;continue}let p=e.at(a),h=t[u];ngDevMode&&rw(c,n(u,h),u);let m=nw(a,p,u,h,n);if(m!==0){m<0&&e.updateValue(a,h),a--,u--;continue}let y=n(s,l),v=n(a,p),w=n(s,f);if(Object.is(w,v)){let A=n(u,h);Object.is(A,y)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,f),s++;continue}if(o??=new $g,i??=HP(e,s,a,n),pE(e,o,s,w))e.updateValue(s,f),s++,a++;else if(i.has(w))o.set(y,e.detach(s)),a--;else{let A=e.create(s,t[s]);e.attach(s,A),s++,a++}}for(;s<=u;)UP(e,o,n,s,t[s]),s++}else if(t!=null){te(r);let u=t[Symbol.iterator]();te(null);let l=u.next();for(;!l.done&&s<=a;){let f=e.at(s),d=l.value;ngDevMode&&rw(c,n(s,d),s);let p=nw(s,f,s,d,n);if(p!==0)p<0&&e.updateValue(s,d),s++,l=u.next();else{o??=new $g,i??=HP(e,s,a,n);let h=n(s,d);if(pE(e,o,s,h))e.updateValue(s,d),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,d)),s++,a++,l=u.next();else{let m=n(s,f);o.set(m,e.detach(s)),a--}}}for(;!l.done;)UP(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));if(o?.forEach(u=>{e.destroy(u)}),ngDevMode){let u=[];for(let[l,f]of c)if(f.size>1){let d=[...f].sort((p,h)=>p-h);for(let p=1;p<d.length;p++)u.push(`key "${ge(l)}" at index "${d[p-1]}" and "${d[p]}"`)}if(u.length>0){let l=bt(-955,`The provided track expression resulted in duplicated keys for a given collection. Adjust the tracking expression such that it uniquely identifies all the items in the collection. Duplicated keys were:
78
82
  `+u.join(`,
79
- `)+".");console.warn(l)}}}function pE(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function jP(e,t,n,r,o){if(pE(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function FP(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Hg=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);if(ngDevMode&&r===n)throw new Error(`Detected a duplicated value ${n} for the key ${t}`);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function vae(e,t,n,r,o,i,s,a){qt("NgControlFlow");let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,256,s,a),NS}function NS(e,t,n,r,o,i,s,a){qt("NgControlFlow");let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,512,s,a),NS}function bae(e,t){qt("NgControlFlow");let n=S(),r=Gt(),o=n[r]!==xe?n[r]:-1,i=o!==-1?$g(n,Z+o):void 0,s=0;if(et(n,r,e)){let a=te(null);try{if(i!==void 0&&hS(i,s),e!==-1){let c=Z+e,u=$g(n,c),l=vE(n[x],c),f=Mk(u,l,n),d=Ga(n,l,t,{dehydratedView:f});za(u,d,s,Li(l,f))}}finally{te(a)}}else if(i!==void 0){let a=hk(i,s);a!==void 0&&(a[Te]=t)}}var hE=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-qe}};function _ae(e){return e}function NR(e,t){return t}var gE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function wae(e,t,n,r,o,i,s,a,c,u,l,f,d){qt("NgControlFlow"),ngDevMode&&F_(s,`A track expression must be a function, was ${typeof s} instead.`);let p=S(),h=fe(),m=c!==void 0,y=S(),v=a?s.bind(y[at][Te]):s,w=new gE(m,v);y[Z+e]=w,Fi(p,h,e+1,t,n,r,o,Ct(h.consts,i),256),m&&(ngDevMode&&F(u,"Missing number of declarations for the empty repeater block."),ngDevMode&&F(l,"Missing number of bindings for the empty repeater block."),Fi(p,h,e+2,c,u,l,f,Ct(h.consts,d),512))}function Eae(e){return e.length-Z>2}var mE=class{created=0;destroyed=0;reset(){this.created=0,this.destroyed=0}recordCreate(){this.created++}recordDestroy(){this.destroyed++}wasReCreated(t){return t>0&&this.created===this.destroyed&&this.created===t}},yE=class extends dE{lContainer;hostLView;templateTNode;operationsCounter=ngDevMode?new mE:void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-qe}at(t){return this.getLView(t)[Te].$implicit}attach(t,n){let r=n[Po];this.needsIndexUpdate||=t!==this.length,za(this.lContainer,n,t,Li(this.templateTNode,r)),xae(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Iae(this.lContainer,t),Aae(this.lContainer,t)}create(t,n){let r=Og(this.lContainer,this.templateTNode.tView.ssrId),o=Ga(this.hostLView,this.templateTNode,new hE(this.lContainer,n,t),{dehydratedView:r});return ngDevMode&&this.operationsCounter?.recordCreate(),o}destroy(t){Ju(t[x],t),ngDevMode&&this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Te].$implicit=n}reset(){this.needsIndexUpdate=!1,ngDevMode&&this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Te].$index=t}getLView(t){return LR(this.lContainer,t)}};function Sae(e){let t=te(null),n=ut();try{let r=S(),o=r[x],i=r[n],s=n+1,a=$g(r,s);if(i.liveCollection===void 0){let u=vE(o,s);i.liveCollection=new yE(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(yae(c,e,i.trackByFn,t),ngDevMode&&i.trackByFn===NR&&c.operationsCounter?.wasReCreated(c.length)&&Eae(LR(a,0))){let u=bt(-956,`The configured tracking expression (track by identity) caused re-creation of the entire collection of size ${c.length}. This is an expensive operation requiring destruction and subsequent creation of DOM nodes, directives, components etc. Please review the "track expression" and make sure that it uniquely identifies items in a collection.`);console.warn(u)}if(c.updateIndexes(),i.hasEmptyBlock){let u=Gt(),l=c.length===0;if(et(r,u,l)){let f=n+2,d=$g(r,f);if(l){let p=vE(o,f),h=Mk(d,p,r),m=Ga(r,p,void 0,{dehydratedView:h});za(d,m,0,Li(p,h))}else o.firstUpdatePass&&Ik(d),hS(d,0)}}}finally{te(t)}}function $g(e,t){let n=e[t];return ngDevMode&&gn(n),n}function xae(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n],o=r?r[ur]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Se];zne(i,o),Pa.delete(r[nn]),o.detachedLeaveAnimationFns=void 0}}function Iae(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n],o=r?r[ur]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Aae(e,t){let n=Nu(e,t);return ngDevMode&&an(n),n}function LR(e,t){let n=hk(e,t);return ngDevMode&&an(n),n}function vE(e,t){let n=Mi(e,t);return ngDevMode&&dr(n),n}function jR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();lS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return jR}function bE(e,t,n,r,o){hm(t,e,n,o?"class":"style",r)}function Kg(e,t,n,r){let o=S();ngDevMode&&la(o,e);let i=o[x],s=e+Z,a=i.firstCreatePass?yS(s,o,2,t,dS,qh(),n,r):i.data[s];if(qn(a)){let c=o[Vt].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(jk(u),()=>(qP(e,t,o,a,r),Kg))}}return qP(e,t,o,a,r),Kg}function qP(e,t,n,r,o){if(dm(r,n,e,t,BR),Ii(r)){let i=n[x];lm(i,n,r),BE(i,r,n)}o!=null&&Wa(n,r),ngDevMode&&n[x].firstCreatePass&&rD(n,r)}function LS(){let e=fe(),t=ce();ngDevMode&&F(t,"No parent node to close.");let n=pm(t);return ngDevMode&&lt(n,3),e.firstCreatePass&&vS(e,n),g0(n)&&v0(),p0(),n.classesWithoutHost!=null&&_ee(n)&&bE(e,n,S(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&wee(n)&&bE(e,n,S(),n.stylesWithoutHost,!1),LS}function FR(e,t,n,r){return Kg(e,t,n,r),LS(),FR}function jS(e,t,n,r){let o=S();ngDevMode&&la(o,e);let i=o[x],s=e+Z,a=i.firstCreatePass?Dk(s,i,2,t,n,r):i.data[s];return dm(a,o,e,t,BR),r!=null&&Wa(o,a),ngDevMode&&o[x].firstCreatePass&&rD(o,a),jS}function FS(){let e=ce();ngDevMode&&F(e,"No parent node to close.");let t=pm(e);return ngDevMode&&lt(t,3),g0(t)&&v0(),p0(),FS}function qR(e,t,n,r){return jS(e,t,n,r),FS(),qR}var BR=(e,t,n,r,o)=>(ga(!0),WE(t[pe],r,N0()));function qS(e,t,n){let r=S();ngDevMode&&la(r,e);let o=r[x],i=e+Z,s=o.firstCreatePass?yS(i,r,8,"ng-container",dS,qh(),t,n):o.data[i];if(dm(s,r,e,"ng-container",KR),Ii(s)){let a=r[x];lm(a,r,s),BE(a,s,r)}return n!=null&&Wa(r,s),qS}function xm(){let e=fe(),t=ce();ngDevMode&&F(t,"No parent node to close.");let n=pm(t);return e.firstCreatePass&&vS(e,n),ngDevMode&&lt(n,8),xm}function UR(e,t,n){return qS(e,t,n),xm(),UR}function BS(e,t,n){let r=S();ngDevMode&&la(r,e);let o=r[x],i=e+Z,s=o.firstCreatePass?Dk(i,o,8,"ng-container",t,n):o.data[i];return dm(s,r,e,"ng-container",KR),n!=null&&Wa(r,s),BS}function HR(){let e=ce();ngDevMode&&F(e,"No parent node to close.");let t=pm(e);return ngDevMode&&lt(t,8),xm}function $R(e,t,n){return BS(e,t,n),HR(),$R}var KR=(e,t,n,r,o)=>(ga(!0),vD(t[pe],ngDevMode?r:""));function Tae(){return S()}function WR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();fS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return WR}function VR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn(),a=Hh(i.data),c=tk(a,s,r);fS(s,r,e,t,c,n),ngDevMode&&Va(i.data,s,e,o)}return VR}var du=void 0;function Mae(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Oae=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],du,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],du,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",du,du,du],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Mae],ow=Object.create(null);function Pae(e){let t=Dae(e),n=BP(t);if(n)return n;let r=t.split("-")[0];if(n=BP(r),n)return n;if(r==="en")return Oae;throw new D(701,ngDevMode&&`Missing locale data for the locale "${e}".`)}function Cae(e){return Pae(e)[_E.PluralCase]}function BP(e){if(!(e in ow)){let t=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[e];return t!==void 0&&(ow[e]=t),t}return ow[e]}var _E;(function(e){e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData"})(_E||(_E={}));function Dae(e){return e.toLowerCase().replace(/_/g,"-")}var kae=["zero","one","two","few","many"];function Rae(e,t){let n=Cae(t)(parseInt(e,10)),r=kae[n];return r!==void 0?r:"other"}var ol="en-US",Nae="USD",Im={marker:"element"},Am={marker:"ICU"},zt;(function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"})(zt||(zt={}));var GR=ol;function zR(e){ngDevMode&&F(e,"Expected localeId to be defined"),typeof e=="string"&&(GR=e.toLowerCase().replace(/_/g,"-"))}function Lae(){return GR}var Uu=0,Eu=0;function jae(e){e&&(Uu=Uu|1<<Math.min(Eu,31)),Eu++}function Fae(e,t,n){try{if(Eu>0){ngDevMode&&F(e,"tView should be defined");let r=e.data[n],o=Array.isArray(r)?r:r.update,i=hr()-Eu-1;ZR(e,t,o,i,Uu)}}finally{Uu=0,Eu=0}}function qae(e,t,n){let r=e[pe];switch(n){case Node.COMMENT_NODE:return vD(r,t);case Node.TEXT_NODE:return mD(r,t);case Node.ELEMENT_NODE:return WE(r,t,null)}}var hg=(e,t,n,r)=>(ga(!0),qae(e,n,r));function Bae(e,t,n,r){let o=e[pe];for(let i=0;i<t.length;i++){let s=t[i++],a=t[i],c=(s&zt.COMMENT)===zt.COMMENT,u=(s&zt.APPEND_EAGERLY)===zt.APPEND_EAGERLY,l=s>>>zt.SHIFT,f=e[l],d=!1;f===null&&(f=e[l]=hg(e,l,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),d=uu()),u&&n!==null&&d&&Ri(o,n,f,r,!1)}}function YR(e,t,n,r){ngDevMode&&Oo(r);let o=n[pe],i=null,s;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="string"){let u=t[++a];n[u]===null&&(ngDevMode&&ct(n,u),n[u]=hg(n,u,c,Node.TEXT_NODE))}else if(typeof c=="number")switch(c&1){case 0:let u=Ek(c);i===null&&(i=u,s=o.parentNode(r));let l,f;if(u===i?(l=r,f=s):(l=null,f=gt(n[u])),f!==null){ngDevMode&&Oo(f);let m=Sk(c);ngDevMode&&Mo(m,Z,"Missing ref");let y=n[m];ngDevMode&&Oo(y),Ri(o,f,y,l,!1);let v=bu(e,m);if(v!==null&&typeof v=="object"){ngDevMode&&kh(v);let w=ym(v,n);w!==null&&YR(e,v.create[w],n,n[v.anchorIdx])}}break;case 1:let d=c>>>1,p=t[++a],h=t[++a];fm(o,Ti(d,n),null,null,p,h,null);break;default:if(ngDevMode)throw new D(700,`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Am:let u=t[++a],l=t[++a];if(n[l]===null){ngDevMode&&re(typeof u,"string",`Expected "${u}" to be a comment node value`),ngDevMode&&Hc(n,l);let p=n[l]=hg(n,l,u,Node.COMMENT_NODE);ln(p,n)}break;case Im:let f=t[++a],d=t[++a];if(n[d]===null){ngDevMode&&re(typeof f,"string",`Expected "${f}" to be an element node tag name`),ngDevMode&&Hc(n,d);let p=n[d]=hg(n,d,f,Node.ELEMENT_NODE);ln(p,n)}break;default:ngDevMode&&X(`Unable to determine the type of mutate operation for "${c}"`)}}}function ZR(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=n[i],a=n[++i];if(s&o){let c="";for(let u=i+1;u<=i+a;u++){let l=n[u];if(typeof l=="string")c+=l;else if(typeof l=="number")if(l<0)c+=he(t[r-l]);else{let f=l>>>2;switch(l&3){case 1:let d=n[++u],p=n[++u],h=e.data[f];if(ngDevMode&&F(h,"Experting TNode or string"),typeof h=="string")fm(t[pe],t[f],null,h,d,c,p);else{let y=ut();mr(f);try{lS(h,t,d,c,t[pe],p)}finally{mr(y)}}break;case 0:let m=t[f];m!==null&&yD(t[pe],m,c);break;case 2:Uae(e,bu(e,f),t,c);break;case 3:UP(e,bu(e,f),r,t);break}}}}else{let c=n[i+1];if(c>0&&(c&3)===3){let u=c>>>2,l=bu(e,u);t[l.currentCaseLViewIndex]<0&&UP(e,l,r,t)}}i+=a}}function UP(e,t,n,r){ngDevMode&&ct(r,t.currentCaseLViewIndex);let o=r[t.currentCaseLViewIndex];if(o!==null){let i=Uu;o<0&&(o=r[t.currentCaseLViewIndex]=~o,i=-1),ZR(e,r,t.update[o],n,i)}}function Uae(e,t,n,r){let o=Hae(t,r);if(ym(t,n)!==o&&(QR(e,t,n),n[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[t.anchorIdx];s&&(ngDevMode&&Oo(s),YR(e,t.create[o],n,s)),Qre(n,t.anchorIdx,o)}}function QR(e,t,n){let r=ym(t,n);if(r!==null){let o=t.remove[r];for(let i=0;i<o.length;i++){let s=o[i];if(s>0){let a=Ti(s,n);a!==null&&Yu(n[pe],a)}else QR(e,bu(e,~s),n)}}}function Hae(e,t){let n=e.cases.indexOf(t);if(n===-1)switch(e.type){case 1:{let r=Rae(t,Lae());n=e.cases.indexOf(r),n===-1&&r!=="other"&&(n=e.cases.indexOf("other"));break}case 0:{n=e.cases.indexOf("other");break}}return n===-1?null:n}function $ae(e){let t=e||(Array.isArray(this)?this:[]),n=[];for(let r=0;r<t.length;r++){let o=t[r++],i=t[r],s=(o&zt.COMMENT)===zt.COMMENT,a=(o&zt.APPEND_EAGERLY)===zt.APPEND_EAGERLY,c=o>>>zt.SHIFT;n.push(`lView[${c}] = document.${s?"createComment":"createText"}(${JSON.stringify(i)});`),a&&n.push(`parent.appendChild(lView[${c}]);`)}return n}function Tm(e){let t=new Wg(e||(Array.isArray(this)?this:[])),n=[];function r(o){let i=o>>>2;switch(o&3){case 0:return`(lView[${i}] as Text).textContent = $$$`;case 1:let a=t.consumeString(),c=t.consumeFunction(),u=c?`(${c})($$$)`:"$$$";return`(lView[${i}] as Element).setAttribute('${a}', ${u})`;case 2:return`icuSwitchCase(${i}, $$$)`;case 3:return`icuUpdateCase(${i})`}throw new Error("unexpected OpCode")}for(;t.hasMore();){let o=t.consumeNumber(),i=t.consumeNumber(),s=t.i+i,a=[],c="";for(;t.i<s;){let u=t.consumeNumberOrString();if(typeof u=="string")c+=u;else if(u<0)c+="${lView[i"+u+"]}";else{let l=r(u);a.push(l.replace("$$$","`"+c+"`")+";"),c=""}}n.push(`if (mask & 0b${o.toString(2)}) { ${a.join(" ")} }`)}return n}function Kae(e){let t=new Wg(e||(Array.isArray(this)?this:[])),n=[];function r(i){let s=Ek(i),a=Sk(i);switch(aP(i)){case 0:return`(lView[${s}] as Element).appendChild(lView[${o}])`;case 1:return`(lView[${a}] as Element).setAttribute("${t.consumeString()}", "${t.consumeString()}")`}throw new Error("Unexpected OpCode: "+aP(i))}let o=-1;for(;t.hasMore();){let i=t.consumeNumberStringOrMarker();if(i===Am){let s=t.consumeString();o=t.consumeNumber(),n.push(`lView[${o}] = document.createComment("${s}")`)}else if(i===Im){let s=t.consumeString();o=t.consumeNumber(),n.push(`lView[${o}] = document.createElement("${s}")`)}else if(typeof i=="string")o=t.consumeNumber(),n.push(`lView[${o}] = document.createTextNode("${i}")`);else if(typeof i=="number"){let s=r(i);s&&n.push(s)}else throw new Error("Unexpected value")}return n}function Wae(e){let t=e||(Array.isArray(this)?this:[]),n=[];for(let r=0;r<t.length;r++){let o=t[r];o>0?n.push(`remove(lView[${o}])`):n.push(`removeNestedICU(${~o})`)}return n}var Wg=class{i=0;codes;constructor(t){this.codes=t}hasMore(){return this.i<this.codes.length}consumeNumber(){let t=this.codes[this.i++];return je(t,"expecting number in OpCode"),t}consumeString(){let t=this.codes[this.i++];return mi(t,"expecting string in OpCode"),t}consumeFunction(){let t=this.codes[this.i++];if(t===null||typeof t=="function")return t;throw new Error("expecting function in OpCode")}consumeNumberOrString(){let t=this.codes[this.i++];return typeof t=="string"||je(t,"expecting number or string in OpCode"),t}consumeNumberStringOrMarker(){let t=this.codes[this.i++];return typeof t=="string"||typeof t=="number"||t==Am||t==Im||je(t,"expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode"),t}},Vg=/�(\d+):?\d*�/gi,Vae=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,Gae=/�(\d+)�/,JR=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,Su="\uFFFD",zae=/�\/?\*(\d+:\d+)�/gi,Yae=/�(\/?[#*]\d+):?\d*�/gi,Zae=/\uE500/g;function Qae(e){return e.replace(Zae," ")}function ki(e,t){if(ngDevMode)Object.defineProperty(e,"debug",{get:t,enumerable:!1});else throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!")}function Jae(e,t,n,r,o,i){let s=ha(),a=[],c=[],u=[[]],l=[[]];ngDevMode&&(ki(a,$ae),ki(c,Tm)),o=nce(o,i);let f=Qae(o).split(Yae);for(let d=0;d<f.length;d++){let p=f[d];if((d&1)===0){let h=wE(p);for(let m=0;m<h.length;m++){let y=h[m];if((m&1)===0){let v=y;ngDevMode&&mi(v,"Parsed ICU part should be string"),v!==""&&Xae(l[0],e,s,u[0],a,c,n,v)}else{let v=y;if(typeof v!="object")throw new Error(`Unable to parse ICU expression in "${o}" message.`);let A=XR(e,s,u[0],n,a,ngDevMode?`ICU ${r}:${v.mainBinding}`:"",!0).index;ngDevMode&&cr(A,Z,"Index must be in absolute LView offset"),tN(l[0],e,n,c,t,v,A)}}}else{let h=p.charCodeAt(0)===47,m=p.charCodeAt(h?1:0);ngDevMode&&UM(m,42,35);let y=Z+Number.parseInt(p.substring(h?2:1));if(h)u.shift(),l.shift(),pr(ha(),!1);else{let v=Kre(e,u[0],y);u.unshift([]),pr(v,!0);let w={kind:2,index:y,children:[],type:m===35?0:1};l[0].push(w),l.unshift(w.children)}}}e.data[r]={create:a,update:c,ast:l[0],parentTNodeIndex:t}}function XR(e,t,n,r,o,i,s){let a=Qu(e,r,1,null),c=a<<zt.SHIFT,u=ha();t===u&&(u=null),u===null&&(c|=zt.APPEND_EAGERLY),s&&(c|=zt.COMMENT,kne(Gre)),o.push(c,i===null?"":i);let l=gS(e,a,s?32:1,i===null?ngDevMode?"{{?}}":"":i,null);_k(n,l);let f=l.index;return pr(l,!1),u!==null&&t!==u&&$re(u,f),l}function Xae(e,t,n,r,o,i,s,a){let c=a.match(Vg),l=XR(t,n,r,s,o,c?null:a,!1).index;c&&Gg(i,a,l,null,0,null),e.push({kind:0,index:l})}function ece(e,t,n){let r=ce(),o=r.index,i=[];if(ngDevMode&&ki(i,Tm),e.firstCreatePass&&e.data[t]===null){for(let s=0;s<n.length;s+=2){let a=n[s],c=n[s+1];if(c!==""){if(Vae.test(c))throw new Error(`ICU expressions are not supported in attributes. Message: "${c}".`);let u=r.namespace?`:${r.namespace}:${r.value}`:r.value;Gg(i,c,o,a,tce(i),EE(a,u))}}e.data[t]=i}}function Gg(e,t,n,r,o,i){ngDevMode&&cr(n,Z,"Index must be in absolute LView offset");let s=e.length,a=s+1;e.push(null,null);let c=s+2;ngDevMode&&ki(e,Tm);let u=t.split(Vg),l=0;for(let f=0;f<u.length;f++){let d=u[f];if(f&1){let p=o+parseInt(d,10);e.push(-1-p),l=l|eN(p)}else d!==""&&e.push(d)}return e.push(n<<2|(r?1:0)),r&&e.push(r,i),e[s]=l,e[a]=e.length-c,l}function tce(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"&&r<0&&t++}return t}function eN(e){return 1<<Math.min(e,31)}function HP(e){let t,n="",r=0,o=!1,i;for(;(t=zae.exec(e))!==null;)o?t[0]===`${Su}/*${i}${Su}`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),i=t[1],o=!0);return ngDevMode&&re(o,!1,`Tag mismatch: unable to find the end of the sub-template in the translation "${e}"`),n+=e.slice(r),n}function nce(e,t){if(Vre(t))return HP(e);{let n=e.indexOf(`:${t}${Su}`)+2+t.toString().length,r=e.search(new RegExp(`${Su}\\/\\*\\d+:${t}${Su}`));return HP(e.substring(n,r))}}function tN(e,t,n,r,o,i,s){ngDevMode&&F(i,"ICU expression must be defined");let a=0,c={type:i.type,currentCaseLViewIndex:Qu(t,n,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};sce(r,i,s),Hre(t,s,c);let u=i.values,l=[];for(let f=0;f<u.length;f++){let d=u[f],p=[];for(let m=0;m<d.length;m++){let y=d[m];if(typeof y!="string"){let v=p.push(y)-1;d[m]=`<!--\uFFFD${v}\uFFFD-->`}}let h=[];l.push(h),a=oce(h,t,c,n,r,o,i.cases[f],d.join(""),p)|a}a&&ace(r,a,s),e.push({kind:3,index:s,cases:l,currentCaseLViewIndex:c.currentCaseLViewIndex})}function rce(e){let t=[],n=[],r=1,o=0;e=e.replace(JR,function(s,a,c){return c==="select"?r=0:r=1,o=parseInt(a.slice(1),10),""});let i=wE(e);for(let s=0;s<i.length;){let a=i[s++].trim();r===1&&(a=a.replace(/\s*(?:=)?(\w+)\s*/,"$1")),a.length&&t.push(a);let c=wE(i[s++]);t.length>n.length&&n.push(c)}return{type:r,mainBinding:o,cases:t,values:n}}function wE(e){if(!e)return[];let t=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(e);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let c=e.substring(t,a);JR.test(c)?r.push(rce(c)):r.push(c),t=a+1}}else{if(n.length==0){let c=e.substring(t,a);r.push(c),t=a+1}n.push("{")}}let s=e.substring(t);return r.push(s),r}function oce(e,t,n,r,o,i,s,a,c){let u=[],l=[],f=[];ngDevMode&&(ki(u,Kae),ki(l,Wae),ki(f,Tm)),n.cases.push(s),n.create.push(u),n.remove.push(l),n.update.push(f);let p=uD(Vu()).getInertBodyElement(a);ngDevMode&&F(p,"Unable to generate inert body element");let h=Cw(p)||p;return h?nN(e,t,n,r,o,u,l,f,h,i,c,0):0}function nN(e,t,n,r,o,i,s,a,c,u,l,f){let d=0,p=c.firstChild;for(;p;){let h=Qu(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:let m=p,y=m.tagName.toLowerCase();if(Mw.hasOwnProperty(y)){iw(i,Im,y,u,h),t.data[h]=y;let P=m.attributes;for(let Q=0;Q<P.length;Q++){let ue=P.item(Q),we=ue.name.toLowerCase(),N=!!ue.value.match(Vg),J=m.namespaceURI,de=J&&aD[J],G=de?`:${de}:${y}`:y;if(N)Ow.hasOwnProperty(we)?Gg(a,ue.value,h,ue.name,0,EE(we,G)):ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute value ${we} on element ${y} (see ${sr})`);else if(Ow[we]){let O=ue.value;EE(we,G)?(typeof ngDevMode<"u"&&ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute ${we} on element ${y} (see ${sr})`),KP(i,h,ue.name,"unsafe:blocked")):KP(i,h,ue.name,O)}else typeof ngDevMode<"u"&&ngDevMode&&console.warn(`WARNING: ignoring unknown attribute name ${we} on element ${y} (see ${sr})`)}let j={kind:1,index:h,children:[]};e.push(j),d=nN(j.children,t,n,r,o,i,s,a,p,h,l,f+1)|d,$P(s,h,f)}break;case Node.TEXT_NODE:let v=p.textContent||"",w=v.match(Vg);iw(i,null,w?"":v,u,h),$P(s,h,f),w&&(d=Gg(a,v,h,null,0,null)|d),e.push({kind:0,index:h});break;case Node.COMMENT_NODE:let A=Gae.exec(p.textContent||"");if(A){let P=parseInt(A[1],10),j=l[P];iw(i,Am,ngDevMode?`nested ICU ${P}`:"",u,h),tN(e,t,r,o,u,j,h),ice(s,h,f)}break}p=p.nextSibling}return d}function $P(e,t,n){n===0&&e.push(t)}function ice(e,t,n){n===0&&(e.push(~t),e.push(t))}function sce(e,t,n){e.push(eN(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}function ace(e,t,n){e.push(t,1,n<<2|3)}function iw(e,t,n,r,o){t!==null&&e.push(t),e.push(n,o,Wre(0,r,o))}function KP(e,t,n,r){e.push(t<<1|1,n,r)}function cce(e){let t=e.toLowerCase(),[n,r]=VE(t,!1);return n===iD||n===sD?`:${n}:${r}`:r}function EE(e,t){let n=e.toLowerCase(),r=t?cce(t):"*",[o]=VE(r,!1),i=i0();switch(i[`${r}|${n}`]||(o?i[`:${o}:*|${n}`]:void 0)||i[`*|${n}`]||$e.NONE){case $e.HTML:return wD;case $e.STYLE:return ED;case $e.SCRIPT:return xD;case $e.URL:return KE;case $e.RESOURCE_URL:return GE;case $e.ATTRIBUTE_NO_BINDING:return TD;default:return null}}var WP=0,uce=/\[(�.+?�?)\]/,lce=/\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g,fce=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,dce=/{([A-Z0-9_]+)}/g,pce=/�I18N_EXP_(ICU(_\d+)?)�/g,hce=/\/\*/,gce=/\d+\:(\d+)/;function mce(e,t={}){let n=e;if(uce.test(e)){let r={},o=[WP];n=n.replace(lce,(i,s,a)=>{let c=s||a,u=r[c]||[];if(u.length||(c.split("|").forEach(m=>{let y=m.match(gce),v=y?parseInt(y[1],10):WP,w=hce.test(m);u.push([v,w,m])}),r[c]=u),!u.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);let l=o[o.length-1],f=0;for(let m=0;m<u.length;m++)if(u[m][0]===l){f=m;break}let[d,p,h]=u[f];return p?o.pop():l!==d&&o.push(d),u.splice(f,1),h})}return Object.keys(t).length&&(n=n.replace(fce,(r,o,i,s,a,c)=>t.hasOwnProperty(i)?`${o}${t[i]}${c}`:r),n=n.replace(dce,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(pce,(r,o)=>{if(t.hasOwnProperty(o)){let i=t[o];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return i.shift()}return r})),n}function rN(e,t,n=-1){let r=fe(),o=S(),i=Z+e;ngDevMode&&F(r,"tView should be defined");let s=Ct(r.consts,t),a=ha();if(r.firstCreatePass&&Jae(r,a===null?0:a.index,o,i,s,n),r.type===2){let d=o[at];d[ae]|=32}else o[ae]|=32;let c=r.data[i],u=a===o[_t]?null:a,l=WD(r,u,o),f=a&&a.type&8?o[a.index]:null;Yre(o,i,a,n),Bae(o,c.create,l,f),O0(!0)}function oN(){O0(!1)}function yce(e,t,n){rN(e,t,n),oN()}function vce(e,t){let n=fe();ngDevMode&&F(n,"tView should be defined");let r=Ct(n.consts,t);ece(n,e+Z,r)}function iN(e){let t=S();return jae(et(t,Gt(),e)),iN}function bce(e){Fae(fe(),S(),e+Z)}function _ce(e,t={}){return mce(e,t)}function sN(e,t,n){let r=S(),o=fe(),i=ce();return US(o,r,r[pe],i,e,t,n),sN}function aN(e,t){let n=ce(),r=S(),o=fe(),i=Hh(o.data),s=tk(i,n,r);return US(o,r,s,n,e,t),aN}function cN(e,t,n){let r=S(),o=fe(),i=ce();return(i.type&3||n)&&bS(i,o,r,n,r[pe],e,t,Di(i,r,t)),cN}function US(e,t,n,r,o,i,s){ngDevMode&&lt(r,15);let a=!0,c=null;if((r.type&3||s)&&(c??=Di(r,t,i),bS(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let f=0;f<l.length;f+=2){let d=l[f],p=l[f+1];c??=Di(r,t,i),Dg(r,t,d,p,o,c)}if(u&&u.length)for(let f of u)c??=Di(r,t,i),Dg(r,t,f,o,o,c)}}function wce(e=1){return yO(e)}function Ece(e,t){let n=null,r=xne(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?PD(e,i,!0):Tne(r,i))return o}return n}function Sce(e){let t=S()[at][_t];if(!t.projection){let n=e?e.length:1,r=t.projection=ca(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?Ece(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function xce(e,t=0,n,r,o,i){let s=S(),a=fe(),c=r?e+1:null;c!==null&&Fi(s,a,c,r,o,i,null,n);let u=Wi(a,Z+e,16,null,n||null);u.projection===null&&(u.projection=t),S0();let f=!s[Po]||h0();s[at][_t].projection[u.projection]===null&&c!==null?Ice(s,a,c):f&&!em(u)&&Xne(a,s,u)}function Ice(e,t,n){let r=Z+n,o=t.data[r],i=e[r];ngDevMode&&dr(o),ngDevMode&&gn(i);let s=Og(i,o.tView.ssrId),a=Ga(e,o,void 0,{dehydratedView:s});za(i,a,0,Li(o,s))}function uN(e,t,n,r){return $k(e,t,n,r),uN}function lN(e,t,n){return Hk(e,t,n),lN}function Ace(e){let t=S(),n=fe(),r=$h();cu(r+1);let o=wS(n,r);if(e.dirty&&da(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Wk(t,r);e.reset(i,TC),e.notifyOnChanges()}return!0}return!1}function Tce(){return _S(S(),$h())}function fN(e,t,n,r,o){return Gk(t,$k(e,n,r,o)),fN}function dN(e,t,n,r){return Gk(e,Hk(t,n,r)),dN}function Mce(e=1){cu($h()+e)}function Oce(e){let t=x0();return Ro(t,Z+e)}function rg(e,t){return ngDevMode&&ia(e,0,32767),ngDevMode&&ia(t,0,32767),e<<17|t<<2}function Ui(e){return ngDevMode&&je(e,"expected number"),e>>17&32767}function Pce(e){return ngDevMode&&je(e,"expected number"),(e&2)==2}function Cce(e,t){return ngDevMode&&je(e,"expected number"),ngDevMode&&ia(t,0,32767),e&131071|t<<17}function SE(e){return ngDevMode&&je(e,"expected number"),e|2}function Hi(e){return ngDevMode&&je(e,"expected number"),(e&131068)>>2}function sw(e,t){return ngDevMode&&je(e,"expected number"),ngDevMode&&ia(t,0,32767),e&-131069|t<<2}function Dce(e){return ngDevMode&&je(e,"expected number"),(e&1)===1}function xE(e){return ngDevMode&&je(e,"expected number"),e|1}function kce(e,t,n,r,o,i){ngDevMode&&Rh(fe());let s=i?t.classBindings:t.styleBindings,a=Ui(s),c=Hi(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||ua(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let d=Ui(e[a+1]);e[r+1]=rg(d,a),d!==0&&(e[d+1]=sw(e[d+1],r)),e[a+1]=Cce(e[a+1],r)}else e[r+1]=rg(a,0),a!==0&&(e[a+1]=sw(e[a+1],r)),a=r;else e[r+1]=rg(c,0),ngDevMode&&re(a!==0&&c===0,!1,"Adding template bindings after hostBindings is not allowed."),a===0?a=r:e[c+1]=sw(e[c+1],r),c=r;u&&(e[r+1]=SE(e[r+1])),VP(e,l,r,!0),VP(e,l,r,!1),Rce(t,l,e,r,i),s=rg(a,c),i?t.classBindings=s:t.styleBindings=s}function Rce(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ua(i,t)>=0&&(n[r+1]=xE(n[r+1]))}function VP(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ui(o):Hi(o),a=!1;for(;s!==0&&(a===!1||i);){ngDevMode&&ct(e,s);let c=e[s],u=e[s+1];Nce(c,t)&&(a=!0,e[s+1]=r?xE(u):SE(u)),s=r?Ui(u):Hi(u)}a&&(e[n+1]=r?SE(o):xE(o))}function Nce(e,t){return ngDevMode&&tn(Array.isArray(t),!0,"Expected that 'tStylingKey' has been unwrapped"),e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ua(e,t)>=0:!1}var mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function pN(e){return e.substring(mt.key,mt.keyEnd)}function Lce(e){return e.substring(mt.value,mt.valueEnd)}function jce(e){return mN(e),hN(e,qa(e,0,mt.textEnd))}function hN(e,t){let n=mt.textEnd;return n===t?-1:(t=mt.keyEnd=qce(e,mt.key=t,n),qa(e,t,n))}function Fce(e){return mN(e),gN(e,qa(e,0,mt.textEnd))}function gN(e,t){let n=mt.textEnd,r=mt.key=qa(e,t,n);return n===r?-1:(r=mt.keyEnd=Bce(e,r,n),r=GP(e,r,n,58),r=mt.value=qa(e,r,n),r=mt.valueEnd=Uce(e,r,n),GP(e,r,n,59))}function mN(e){mt.key=0,mt.keyEnd=0,mt.value=0,mt.valueEnd=0,mt.textEnd=e.length}function qa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function qce(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Bce(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function GP(e,t,n,r){return t=qa(e,t,n),t<n&&(ngDevMode&&e.charCodeAt(t)!==r&&yN(e,String.fromCharCode(r),t),t++),t}function Uce(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=zP(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=zP(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33}return a}function zP(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s}throw ngDevMode?yN(e,String.fromCharCode(t),r):new Error}function yN(e,t,n){throw ngDevMode&&re(typeof e=="string",!0,"String expected here"),X(`Malformed style at location ${n} in string '`+e.substring(0,n)+"[>>"+e.substring(n,n+1)+"<<]"+e.slice(n+1)+`'. Expecting '${t}'.`)}function vN(e,t,n){return _N(e,t,n,!1),vN}function bN(e,t){return _N(e,t,null,!0),bN}function Hce(e){wN(xN,$ce,e,!1)}function $ce(e,t){for(let n=Fce(t);n>=0;n=gN(t,n))xN(e,pN(t),Lce(t))}function Kce(e){wN(Qce,Wce,e,!0)}function Wce(e,t){for(let n=jce(t);n>=0;n=hN(t,n))eu(e,pN(t),!0)}function _N(e,t,n,r){let o=S(),i=fe(),s=gr(2);if(i.firstUpdatePass&&SN(i,e,s,r),t!==xe&&et(o,s,t)){let a=i.data[ut()];IN(i,a,o,o[pe],e,o[s+1]=Xce(t,n),r,s)}}function wN(e,t,n,r){let o=fe(),i=gr(2);o.firstUpdatePass&&SN(o,null,i,r);let s=S();if(n!==xe&&et(s,i,n)){let a=o.data[ut()];if(AN(a,r)&&!EN(o,i)){if(ngDevMode){let u=o.data[i];re(Array.isArray(u)?u[1]:u,!1,"Styling linked list shadow input should be marked as 'false'")}let c=r?a.classesWithoutHost:a.stylesWithoutHost;ngDevMode&&r===!1&&c!==null&&re(c.endsWith(";"),!0,"Expecting static portion to end with ';'"),c!==null&&(n=mh(c,n||"")),bE(o,a,s,n,r)}else Jce(o,a,s,s[pe],s[i+1],s[i+1]=Zce(e,t,n),r,i)}}function EN(e,t){return t>=e.expandoStartIndex}function SN(e,t,n,r){ngDevMode&&Rh(e);let o=e.data;if(o[n+1]===null){let i=o[ut()];ngDevMode&&F(i,"TNode expected");let s=EN(e,n);AN(i,r)&&t===null&&!s&&(t=!1),t=Vce(o,i,t,r),kce(o,i,t,n,s,r)}}function Vce(e,t,n,r){let o=Hh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=aw(null,e,t,n,r),n=Hu(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=aw(o,e,t,n,r),i===null){let c=Gce(e,t,r);c!==void 0&&Array.isArray(c)&&(c=aw(null,e,t,c[1],r),c=Hu(c,t.attrs,r),zce(e,t,r,c))}else i=Yce(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Gce(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Hi(r)!==0)return e[Ui(r)]}function zce(e,t,n,r){let o=n?t.classBindings:t.styleBindings;ngDevMode&&tn(Hi(o),0,"Expecting to have at least one template styling binding."),e[Ui(o)]=r}function Yce(e,t,n){let r,o=t.directiveEnd;ngDevMode&&tn(t.directiveStylingLast,-1,"By the time this function gets called at least one hostBindings-node styling instruction must have executed.");for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Hu(r,s,n)}return Hu(r,t.attrs,n)}function aw(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],ngDevMode&&F(i,"expected to be defined"),r=Hu(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Hu(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),eu(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Zce(e,t,n){if(n==null||n==="")return Ae;let r=[],o=Ko(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"?t(r,o):ngDevMode&&X("Unsupported styling type: "+typeof o+" ("+o+")");return r}function xN(e,t,n){eu(e,t,Ko(n))}function Qce(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&eu(e,r,n)}function Jce(e,t,n,r,o,i,s,a){o===xe&&(o=Ae);let c=0,u=0,l=0<o.length?o[0]:null,f=0<i.length?i[0]:null;for(;l!==null||f!==null;){ngDevMode&&ar(c,999,"Are we stuck in infinite loop?"),ngDevMode&&ar(u,999,"Are we stuck in infinite loop?");let d=c<o.length?o[c+1]:void 0,p=u<i.length?i[u+1]:void 0,h=null,m;l===f?(c+=2,u+=2,d!==p&&(h=f,m=p)):f===null||l!==null&&l<f?(c+=2,h=l):(ngDevMode&&F(f,"Expecting to have a valid key"),u+=2,h=f,m=p),h!==null&&IN(e,t,n,r,h,m,s,a),l=c<o.length?o[c]:null,f=u<i.length?i[u]:null}}function IN(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Dce(u)?YP(c,t,n,o,Hi(u),s):void 0;if(!zg(l)){zg(i)||Pce(u)&&(i=YP(c,null,n,o,a,s));let f=Ti(ut(),n);tre(r,s,f,o,i)}}function YP(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,d=n[o+1];d===xe&&(d=f?Ae:void 0);let p=f?Ah(d,r):l===r?d:void 0;if(u&&!zg(p)&&(p=Ah(c,r)),zg(p)&&(a=p,s))return a;let h=e[o+1];o=s?Ui(h):Hi(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ah(c,r))}return a}function zg(e){return e!==void 0}function Xce(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ke(Ko(e)))),e}function AN(e,t){return(e.flags&(t?8:16))!==0}function eue(e,t=""){let n=S(),r=fe(),o=e+Z;ngDevMode&&la(n,e);let i=r.firstCreatePass?Wi(r,o,1,t,null):r.data[o],s=tue(r,n,i,t);n[o]=s,uu()&&cS(r,n,s,i),pr(i,!1)}var tue=(e,t,n,r)=>(ga(!0),mD(t[pe],r));function TN(e,t){ngDevMode&&ar(2,t.length,"should have at least 3 values");let n=!1,r=hr();for(let i=1;i<t.length;i+=2)n=et(e,r++,t[i])||n;if(M0(r),!n)return xe;let o=t[0];for(let i=1;i<t.length;i+=2)o+=he(t[i])+(i+1!==t.length?t[i+1]:"");return o}function MN(e,t,n,r=""){return et(e,Gt(),n)?t+he(n)+r:xe}function ON(e,t,n,r,o,i=""){let s=hr(),a=ji(e,s,n,o);return gr(2),a?t+he(n)+r+he(o)+i:xe}function PN(e,t,n,r,o,i,s,a=""){let c=hr(),u=wm(e,c,n,o,s);return gr(3),u?t+he(n)+r+he(o)+i+he(s)+a:xe}function CN(e,t,n,r,o,i,s,a,c,u=""){let l=hr(),f=An(e,l,n,o,s,c);return gr(4),f?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u:xe}function DN(e,t,n,r,o,i,s,a,c,u,l,f=""){let d=hr(),p=An(e,d,n,o,s,c);return p=et(e,d+4,l)||p,gr(5),p?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f:xe}function kN(e,t,n,r,o,i,s,a,c,u,l,f,d,p=""){let h=hr(),m=An(e,h,n,o,s,c);return m=ji(e,h+4,l,d)||m,gr(6),m?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p:xe}function RN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m=""){let y=hr(),v=An(e,y,n,o,s,c);return v=wm(e,y+4,l,d,h)||v,gr(7),v?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p+he(h)+m:xe}function NN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y,v=""){let w=hr(),A=An(e,w,n,o,s,c);return A=An(e,w+4,l,d,h,y)||A,gr(8),A?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p+he(h)+m+he(y)+v:xe}function LN(e){return HS("",e),LN}function HS(e,t,n){let r=S(),o=MN(r,e,t,n);return o!==xe&&Hr(r,ut(),o),HS}function jN(e,t,n,r,o){let i=S(),s=ON(i,e,t,n,r,o);return s!==xe&&Hr(i,ut(),s),jN}function FN(e,t,n,r,o,i,s){let a=S(),c=PN(a,e,t,n,r,o,i,s);return c!==xe&&Hr(a,ut(),c),FN}function qN(e,t,n,r,o,i,s,a,c){let u=S(),l=CN(u,e,t,n,r,o,i,s,a,c);return l!==xe&&Hr(u,ut(),l),qN}function BN(e,t,n,r,o,i,s,a,c,u,l){let f=S(),d=DN(f,e,t,n,r,o,i,s,a,c,u,l);return d!==xe&&Hr(f,ut(),d),BN}function UN(e,t,n,r,o,i,s,a,c,u,l,f,d){let p=S(),h=kN(p,e,t,n,r,o,i,s,a,c,u,l,f,d);return h!==xe&&Hr(p,ut(),h),UN}function HN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h){let m=S(),y=RN(m,e,t,n,r,o,i,s,a,c,u,l,f,d,p,h);return y!==xe&&Hr(m,ut(),y),HN}function $N(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y){let v=S(),w=NN(v,e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y);return w!==xe&&Hr(v,ut(),w),$N}function KN(e){let t=S(),n=TN(t,e);return n!==xe&&Hr(t,ut(),n),KN}function Hr(e,t,n){ngDevMode&&mi(n,"Value should be a string"),ngDevMode&&yi(n,xe,"value should not be NO_CHANGE"),ngDevMode&&ct(e,t);let r=Ti(t,e);ngDevMode&&F(r,"native element should exist"),yD(e[pe],r,n)}function WN(e,t,n){yR(t)&&(t=t());let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();lS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return WN}function nue(e,t){let n=yR(e);return n&&e.set(t),n}function VN(e,t){let n=S(),r=fe(),o=ce();return US(r,n,n[pe],o,e,t),VN}var GN={};function zN(e){qt("NgLet");let t=fe(),n=S(),r=e+Z,o=Wi(t,r,128,null,null);return pr(o,!1),iu(t,n,r,GN),zN}function rue(e){let t=fe(),n=S(),r=ut();return iu(t,n,r,e),e}function oue(e){let t=x0(),n=Ro(t,Z+e);if(n===GN)throw new D(314,ngDevMode&&"Attempting to access a @let declaration whose value is not available yet");return n}function iue(e,t){let n=fe(),r=S(),o=r[pe],i="data-ng-source-location";for(let[s,a,c,u]of t){let l=Mi(n,s+Z);ngDevMode&&lt(l,2);let f=Ti(s+Z,r);if(!f.hasAttribute(i)){let d=`${e}@o:${a},l:${c},c:${u}`;o.setAttribute(f,i,d)}}}function sue(e){return et(S(),Gt(),e)?he(e):xe}function aue(e,t,n=""){return MN(S(),e,t,n)}function cue(e,t,n,r,o=""){return ON(S(),e,t,n,r,o)}function uue(e,t,n,r,o,i,s=""){return PN(S(),e,t,n,r,o,i,s)}function lue(e,t,n,r,o,i,s,a,c=""){return CN(S(),e,t,n,r,o,i,s,a,c)}function fue(e,t,n,r,o,i,s,a,c,u,l=""){return DN(S(),e,t,n,r,o,i,s,a,c,u,l)}function due(e,t,n,r,o,i,s,a,c,u,l,f,d=""){return kN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d)}function pue(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h=""){return RN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d,p,h)}function hue(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y=""){return NN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y)}function gue(e){return TN(S(),e)}function mue(e,t,n){let r=Dt()+e,o=S();return o[r]===xe?Hn(o,r,t(n,o)):Za(o,r)}function ZP(e,t,n){let r=fe();r.firstCreatePass&&YN(t,r.data,r.blueprint,on(e),n)}function YN(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i<e.length;i++)YN(e[i],t,n,r,o);else{let i=fe(),s=S(),a=ce(),c=or(e)?e:se(e.provide),u=X_(e);if(ngDevMode){let p=new We(a,s);ta(p,c,()=>{uh(e,o)})}let l=a.providerIndexes&1048575,f=a.directiveStart,d=a.providerIndexes>>20;if(or(e)||!e.multi){let p=new Uo(u,o,Ya,ngDevMode?QN(e):null),h=uw(c,t,o?l:l+d,f);h===-1?(yw(bg(a,s),i,c),cw(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p)}else{let p=uw(c,t,l+d,f),h=uw(c,t,l,l+d),m=p>=0&&n[p],y=h>=0&&n[h];if(o&&!y||!o&&!m){yw(bg(a,s),i,c);let v=bue(o?vue:yue,n.length,o,r,u,e);!o&&y&&(n[h].providerFactory=v),cw(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)}else{let v=ZN(n[o?h:p],u,!o&&r);cw(i,e,p>-1?p:h,v)}!o&&r&&y&&n[h].componentProviders++}}}function cw(e,t,n,r){let o=or(t),i=Q_(t);if(o||i){let c=(i?se(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){ngDevMode&&F(r,"indexInFactory when registering multi factory destroy hook");let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function ZN(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uw(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function yue(e,t,n,r,o){return IE(this.multi,[])}function vue(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Au(r,r[x],this.providerFactory.index,o);s=c.slice(0,a),IE(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],IE(i,s);return s}function IE(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function bue(e,t,n,r,o,i){let s=new Uo(e,n,Ya,ngDevMode?QN(i):null);return s.multi=[],s.index=t,s.componentProviders=0,ZN(s,o,r&&!n),s}function QN(e){return Array.isArray(e)?null:or(e)?e.name:Q_(e)?e.provide instanceof H?`('${e.provide.toString()}':${e.useClass.name})`:e.useClass.name:e.provide instanceof H?e.provide.toString():typeof e.provide=="string"?e.provide:null}function _ue(e,t){return n=>{n.providersResolver=(r,o)=>ZP(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>ZP(r,o?o(t):t,!0))}}function wue(e){return t=>{e.length<1||(t.getExternalStyles=n=>e.map(o=>o+"?ngcomp"+(n?"="+encodeURIComponent(n):"")+"&e="+t.encapsulation))}}function Eue(e,t,n){let r=e.\u0275cmp;r.directiveDefs=qg(t,tR),r.pipeDefs=qg(n,Kt)}function Sue(e,t){return Fr(()=>{let n=Jc(e);n.declarations=og(t.declarations||Ae),n.imports=og(t.imports||Ae),n.exports=og(t.exports||Ae),t.bootstrap&&(n.bootstrap=og(t.bootstrap)),Ra.registerNgModule(e,t)})}function og(e){if(typeof e=="function")return e;let t=Wt(e);return t.some(zc)?()=>t.map(se).map(QP):t.map(QP)}function QP(e){return mS(e)?e.ngModule:e}function xue(e,t){let n=Dt()+e,r=S();return r[n]===xe?Hn(r,n,t()):Za(r,n)}function Iue(e,t,n){return JN(S(),Dt(),e,t,n)}function Aue(e,t,n,r){return XN(S(),Dt(),e,t,n,r)}function Tue(e,t,n,r,o){return eL(S(),Dt(),e,t,n,r,o)}function Mue(e,t,n,r,o,i,s){return tL(S(),Dt(),e,t,n,r,o,i)}function Oue(e,t,n,r,o,i,s){let a=Dt()+e,c=S(),u=An(c,a,n,r,o,i);return et(c,a+4,s)||u?Hn(c,a+5,t(n,r,o,i,s)):Za(c,a+5)}function Pue(e,t,n,r,o,i,s,a){let c=Dt()+e,u=S(),l=An(u,c,n,r,o,i);return ji(u,c+4,s,a)||l?Hn(u,c+6,t(n,r,o,i,s,a)):Za(u,c+6)}function Cue(e,t,n,r,o,i,s,a,c){let u=Dt()+e,l=S(),f=An(l,u,n,r,o,i);return wm(l,u+4,s,a,c)||f?Hn(l,u+7,t(n,r,o,i,s,a,c)):Za(l,u+7)}function Due(e,t,n,r,o,i,s,a,c,u){let l=Dt()+e,f=S(),d=An(f,l,n,r,o,i);return An(f,l+4,s,a,c,u)||d?Hn(f,l+8,t(n,r,o,i,s,a,c,u)):Za(f,l+8)}function kue(e,t,n){return nL(S(),Dt(),e,t,n)}function il(e,t){ngDevMode&&ct(e,t);let n=e[t];return n===xe?void 0:n}function JN(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Hn(e,s+1,i?r.call(i,o):r(o)):il(e,s+1)}function XN(e,t,n,r,o,i,s){let a=t+n;return ji(e,a,o,i)?Hn(e,a+2,s?r.call(s,o,i):r(o,i)):il(e,a+2)}function eL(e,t,n,r,o,i,s,a){let c=t+n;return wm(e,c,o,i,s)?Hn(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):il(e,c+3)}function tL(e,t,n,r,o,i,s,a,c){let u=t+n;return An(e,u,o,i,s,a)?Hn(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):il(e,u+4)}function nL(e,t,n,r,o,i){let s=t+n,a=!1;for(let c=0;c<o.length;c++)et(e,s++,o[c])&&(a=!0);return a?Hn(e,s,r.apply(i,o)):il(e,s)}function Rue(e,t){let n=fe(),r,o=e+Z;n.firstCreatePass?(r=Nue(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Io(r.type,!0)),s;ngDevMode&&(s=jt({injector:new We(ce(),S()),token:r.type}));let a=$t(Ya);try{let c=vg(!1),u=i();return vg(c),iu(n,S(),o,u),u}finally{$t(a),ngDevMode&&jt(s)}}function Nue(e,t){if(t){ngDevMode&&t.filter(r=>r.name===e).length>1&&console.warn(bt(313,Lue(e)));for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}if(ngDevMode)throw new D(-302,jue(e))}function Lue(e){let t=S(),r=t[at][Te],o=tm(t),i=r?` in the '${r.constructor.name}' component`:"";return`Multiple pipes match the name \`${e}\`${i}. ${`check ${o?"'@Component.imports' of this component":"the imports of this module"}`}`}function jue(e){let t=S(),r=t[at][Te],o=tm(t),i=r?` in the '${r.constructor.name}' component`:"";return`The pipe '${e}' could not be found${i}. ${`Verify that it is ${o?"included in the '@Component.imports' of this component":"declared or imported in this module"}`}`}function Fue(e,t,n){let r=e+Z,o=S(),i=Ro(o,r);return sl(o,r)?JN(o,Dt(),t,i.transform,n,i):i.transform(n)}function que(e,t,n,r){let o=e+Z,i=S(),s=Ro(i,o);return sl(i,o)?XN(i,Dt(),t,s.transform,n,r,s):s.transform(n,r)}function Bue(e,t,n,r,o){let i=e+Z,s=S(),a=Ro(s,i);return sl(s,i)?eL(s,Dt(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Uue(e,t,n,r,o,i){let s=e+Z,a=S(),c=Ro(a,s);return sl(a,s)?tL(a,Dt(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function Hue(e,t,n){let r=e+Z,o=S(),i=Ro(o,r);return sl(o,r)?nL(o,Dt(),t,i.transform,n,i):i.transform.apply(i,n)}function sl(e,t){return e[x].data[t].pure}function $ue(e,t){return mm(e,t)}function Kue(e,t){return()=>{try{return Ra.getComponentDependencies(e,t).dependencies}catch(n){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,n),n}}}function Wue(e,t){let n=_e(e);n!==null&&(n.debugInfo=t)}function Vue(e,t,n){let r=`./@ng/component?c=${e}&t=${encodeURIComponent(t)}`;return new URL(r,n).href}function Gue(e,t,n,r,o=null,i=null){ngDevMode&&zE(e);let s=_e(e);t.apply(null,[e,n,...r]);let{newDef:a,oldDef:c}=zue(s,_e(e));if(e[Cr]=a,c.tView){let u=Vee().values();for(let l of u)lr(l)&&l[tt]===null&&gg(o,i,a,c,l)}}function zue(e,t){let n={...e},r=Object.assign(e,t,{directiveDefs:n.directiveDefs,pipeDefs:n.pipeDefs,setInput:n.setInput,type:n.type});return ngDevMode&&re(r,e,"Expected definition to be merged in place"),{newDef:r,oldDef:n}}function gg(e,t,n,r,o){ngDevMode&&F(r.tView,"Expected a component definition that has been instantiated at least once");let i=o[x];if(i===r.tView){ngDevMode&&zE(r.type),Zue(e,t,n,r,o);return}for(let s=Z;s<i.bindingStartIndex;s++){let a=o[s];if(Ot(a)){nt(a[Xe])&&gg(e,t,n,r,a[Xe]);for(let c=qe;c<a.length;c++)gg(e,t,n,r,a[c])}else nt(a)&&gg(e,t,n,r,a)}}function Yue(e,t){e.componentReplaced?.(t.id)}function Zue(e,t,n,r,o){let i=o[Te],s=o[Xe],a=o[tt];ngDevMode&&an(a);let c=o[_t];ngDevMode&&lt(c,2),ngDevMode&&tn(n,r,"Expected different component definition");let u=o[Se].get(Ye,null),l=()=>{if(r.encapsulation===Un.ShadowDom||r.encapsulation===Un.ExperimentalIsolatedShadowDom){let h=s.cloneNode(!1);s.replaceWith(h),s=h}let f=DD(n),d=nm(a,f,i,QE(n),s,c,null,null,null,null,null);Que(a,o,d,c.index),Ju(o[x],o),Lu(o);let p=o[Vt].rendererFactory;Yue(p,r),d[pe]=p.createRenderer(s,n),UD(o[x],o),Jue(c),Xu(f,d,i),uk(f,d,f.template,i)};u===null?JP(e,t,l):u.run(()=>JP(e,t,l))}function JP(e,t,n){try{n()}catch(r){let o=r;if(t!==null&&o.message){let i=o.message+(o.stack?`
80
- `+o.stack:"");e?.hot?.send?.("angular:invalidate",{id:t,message:i,error:!0})}throw r}}function Que(e,t,n,r){for(let o=Z;o<e[x].bindingStartIndex;o++){let i=e[o];if((nt(i)||Ot(i))&&i[Mt]===t){i[Mt]=n;break}}e[Co]===t&&(e[Co]=n),e[nu]===t&&(e[nu]=n),n[Mt]=t[Mt],t[Mt]=null,e[r]=n}function Jue(e){if(e.projection!==null){for(let t of e.projection)gC(t)&&(t.projectionNext=null,t.flags&=-3);e.projection=null}}var jr={\u0275\u0275animateEnter:fg,\u0275\u0275animateEnterListener:dg,\u0275\u0275animateLeave:pg,\u0275\u0275animateLeaveListener:fE,\u0275\u0275attribute:RR,\u0275\u0275defineComponent:nie,\u0275\u0275defineDirective:iie,\u0275\u0275defineInjectable:Fe,\u0275\u0275defineInjector:Yc,\u0275\u0275defineNgModule:IS,\u0275\u0275definePipe:sie,\u0275\u0275directiveInject:Ya,\u0275\u0275getInheritedFactory:Dee,\u0275\u0275inject:Tt,\u0275\u0275injectAttribute:CE,\u0275\u0275invalidFactory:soe,\u0275\u0275invalidFactoryDep:Ih,\u0275\u0275templateRefExtractor:$ue,\u0275\u0275resetView:_0,\u0275\u0275HostDirectivesFeature:uie,\u0275\u0275NgOnChangesFeature:dee,\u0275\u0275ControlFeature:cie,\u0275\u0275ProvidersFeature:_ue,\u0275\u0275InheritDefinitionFeature:iR,\u0275\u0275ExternalStylesFeature:wue,\u0275\u0275nextContext:wce,\u0275\u0275namespaceHTML:R0,\u0275\u0275namespaceMathML:k0,\u0275\u0275namespaceSVG:D0,\u0275\u0275enableBindings:m0,\u0275\u0275disableBindings:y0,\u0275\u0275elementStart:Kg,\u0275\u0275elementEnd:LS,\u0275\u0275element:FR,\u0275\u0275elementContainerStart:qS,\u0275\u0275elementContainerEnd:xm,\u0275\u0275domElement:qR,\u0275\u0275domElementStart:jS,\u0275\u0275domElementEnd:FS,\u0275\u0275domElementContainer:$R,\u0275\u0275domElementContainerStart:BS,\u0275\u0275domElementContainerEnd:HR,\u0275\u0275domTemplate:cR,\u0275\u0275domListener:cN,\u0275\u0275elementContainer:UR,\u0275\u0275pureFunction0:xue,\u0275\u0275pureFunction1:Iue,\u0275\u0275pureFunction2:Aue,\u0275\u0275pureFunction3:Tue,\u0275\u0275pureFunction4:Mue,\u0275\u0275pureFunction5:Oue,\u0275\u0275pureFunction6:Pue,\u0275\u0275pureFunction7:Cue,\u0275\u0275pureFunction8:Due,\u0275\u0275pureFunctionV:kue,\u0275\u0275getCurrentView:Tae,\u0275\u0275restoreView:b0,\u0275\u0275listener:sN,\u0275\u0275projection:xce,\u0275\u0275syntheticHostProperty:VR,\u0275\u0275syntheticHostListener:aN,\u0275\u0275pipeBind1:Fue,\u0275\u0275pipeBind2:que,\u0275\u0275pipeBind3:Bue,\u0275\u0275pipeBind4:Uue,\u0275\u0275pipeBindV:Hue,\u0275\u0275projectionDef:Sce,\u0275\u0275domProperty:WR,\u0275\u0275ariaProperty:kR,\u0275\u0275property:jR,\u0275\u0275control:Soe,\u0275\u0275controlCreate:woe,\u0275\u0275pipe:Rue,\u0275\u0275queryRefresh:Ace,\u0275\u0275queryAdvance:Mce,\u0275\u0275viewQuery:lN,\u0275\u0275viewQuerySignal:dN,\u0275\u0275loadQuery:Tce,\u0275\u0275contentQuery:uN,\u0275\u0275contentQuerySignal:fN,\u0275\u0275reference:Oce,\u0275\u0275classMap:Kce,\u0275\u0275styleMap:Hce,\u0275\u0275styleProp:vN,\u0275\u0275classProp:bN,\u0275\u0275advance:Dne,\u0275\u0275template:aR,\u0275\u0275conditional:bae,\u0275\u0275conditionalCreate:vae,\u0275\u0275conditionalBranchCreate:NS,\u0275\u0275defer:Use,\u0275\u0275deferWhen:Hse,\u0275\u0275deferOnIdle:Vse,\u0275\u0275deferOnImmediate:Yse,\u0275\u0275deferOnTimer:Jse,\u0275\u0275deferOnHover:tae,\u0275\u0275deferOnInteraction:oae,\u0275\u0275deferOnViewport:aae,\u0275\u0275deferPrefetchWhen:$se,\u0275\u0275deferPrefetchOnIdle:Gse,\u0275\u0275deferPrefetchOnImmediate:Zse,\u0275\u0275deferPrefetchOnTimer:Xse,\u0275\u0275deferPrefetchOnHover:nae,\u0275\u0275deferPrefetchOnInteraction:iae,\u0275\u0275deferPrefetchOnViewport:cae,\u0275\u0275deferHydrateWhen:Kse,\u0275\u0275deferHydrateNever:Wse,\u0275\u0275deferHydrateOnIdle:zse,\u0275\u0275deferHydrateOnImmediate:Qse,\u0275\u0275deferHydrateOnTimer:eae,\u0275\u0275deferHydrateOnHover:rae,\u0275\u0275deferHydrateOnInteraction:sae,\u0275\u0275deferHydrateOnViewport:uae,\u0275\u0275deferEnableTimerScheduling:Bie,\u0275\u0275repeater:Sae,\u0275\u0275repeaterCreate:wae,\u0275\u0275repeaterTrackByIndex:_ae,\u0275\u0275repeaterTrackByIdentity:NR,\u0275\u0275componentInstance:mae,\u0275\u0275text:eue,\u0275\u0275textInterpolate:LN,\u0275\u0275textInterpolate1:HS,\u0275\u0275textInterpolate2:jN,\u0275\u0275textInterpolate3:FN,\u0275\u0275textInterpolate4:qN,\u0275\u0275textInterpolate5:BN,\u0275\u0275textInterpolate6:UN,\u0275\u0275textInterpolate7:HN,\u0275\u0275textInterpolate8:$N,\u0275\u0275textInterpolateV:KN,\u0275\u0275i18n:yce,\u0275\u0275i18nAttributes:vce,\u0275\u0275i18nExp:iN,\u0275\u0275i18nStart:rN,\u0275\u0275i18nEnd:oN,\u0275\u0275i18nApply:bce,\u0275\u0275i18nPostprocess:_ce,\u0275\u0275resolveWindow:pne,\u0275\u0275resolveDocument:hne,\u0275\u0275resolveBody:gne,\u0275\u0275setComponentScope:Eue,\u0275\u0275setNgModuleScope:Sue,\u0275\u0275registerNgModuleType:Jk,\u0275\u0275getComponentDepsFactory:Kue,\u0275setClassDebugInfo:Wue,\u0275\u0275declareLet:zN,\u0275\u0275storeLet:rue,\u0275\u0275arrowFunction:mue,\u0275\u0275readContextLet:oue,\u0275\u0275attachSourceLocations:iue,\u0275\u0275interpolate:sue,\u0275\u0275interpolate1:aue,\u0275\u0275interpolate2:cue,\u0275\u0275interpolate3:uue,\u0275\u0275interpolate4:lue,\u0275\u0275interpolate5:fue,\u0275\u0275interpolate6:due,\u0275\u0275interpolate7:pue,\u0275\u0275interpolate8:hue,\u0275\u0275interpolateV:gue,\u0275\u0275sanitizeHtml:wD,\u0275\u0275sanitizeStyle:ED,\u0275\u0275sanitizeResourceUrl:GE,\u0275\u0275sanitizeScript:xD,\u0275\u0275validateAttribute:TD,\u0275\u0275sanitizeUrl:SD,\u0275\u0275sanitizeUrlOrResourceUrl:one,\u0275\u0275trustConstantHtml:tne,\u0275\u0275trustConstantResourceUrl:nne,forwardRef:Gc,resolveForwardRef:se,\u0275\u0275twoWayProperty:WN,\u0275\u0275twoWayBindingSet:nue,\u0275\u0275twoWayListener:VN,\u0275\u0275replaceMetadata:Gue,\u0275\u0275getReplaceMetadataURL:Vue},yu=null;function rL(e){if(yu!==null){if(e.defaultEncapsulation!==yu.defaultEncapsulation){ngDevMode&&console.error("Provided value for `defaultEncapsulation` can not be changed once it has been set.");return}if(e.preserveWhitespaces!==yu.preserveWhitespaces){ngDevMode&&console.error("Provided value for `preserveWhitespaces` can not be changed once it has been set.");return}}yu=e}function Xue(){return yu}var mg=[];function ele(e,t){mg.push({moduleType:e,ngModule:t})}var lw=!1;function tle(){if(!lw){lw=!0;try{for(let e=mg.length-1;e>=0;e--){let{moduleType:t,ngModule:n}=mg[e];n.declarations&&n.declarations.every(oL)&&(mg.splice(e,1),sle(t,n))}}finally{lw=!1}}}function oL(e){return Array.isArray(e)?e.every(oL):!!se(e)}function nle(e,t={}){rle(e,t),t.id!==void 0&&Jk(e,t.id),ele(e,t)}function rle(e,t,n=!1){ngDevMode&&F(e,"Required value moduleType"),ngDevMode&&F(t,"Required value ngModule");let r=Wt(t.declarations||Ae),o=null;Object.defineProperty(e,wh,{configurable:!0,get:()=>{if(o===null){if(ngDevMode&&t.imports&&t.imports.indexOf(e)>-1)throw new Error(`'${ge(e)}' module can't import itself`);o=yn({usage:0,kind:"NgModule",type:e}).compileNgModule(jr,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Wt(t.bootstrap||Ae).map(se),declarations:r.map(se),imports:Wt(t.imports||Ae).map(se).map(tC),exports:Wt(t.exports||Ae).map(se).map(tC),schemas:t.schemas?Wt(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])}return o}});let i=null;Object.defineProperty(e,rr,{get:()=>{if(i===null){let a=yn({usage:0,kind:"NgModule",type:e});i=a.compileFactory(jr,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Qg(e),target:a.FactoryTarget.NgModule,typeArgumentCount:0})}return i},configurable:!!ngDevMode});let s=null;Object.defineProperty(e,Fc,{get:()=>{if(s===null){ngDevMode&&Yg(e,n);let a={name:e.name,type:e,providers:t.providers||Ae,imports:[(t.imports||Ae).map(se),(t.exports||Ae).map(se)]};s=yn({usage:0,kind:"NgModule",type:e}).compileInjector(jr,`ng:///${e.name}/\u0275inj.js`,a)}return s},configurable:!!ngDevMode})}function ole(e,t){let n=`Unexpected "${ge(e)}" found in the "declarations" array of the`,r=`"${ge(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`;return`${n} ${t}, ${r}`}function Yg(e,t,n){if(eC.get(e)||Dr(e))return;eC.set(e,!0),e=se(e);let r;if(n){if(r=Fn(e),!r)throw new Error(`Unexpected value '${e.name}' imported by the module '${n.name}'. Please add an @NgModule annotation.`)}else r=Jc(e);let o=[],i=vr(r.declarations),s=vr(r.imports);Wt(s).map(XP).forEach(w=>{v(w,e),Yg(w,!1,e)});let a=vr(r.exports);i.forEach(l),i.forEach(f),i.forEach(w=>d(w,e));let c=[...i.map(se),...Wt(s.map(iL)).map(se)];a.forEach(p),i.forEach(w=>h(w,t));let u=ile(e,"NgModule");if(u&&(u.imports&&Wt(u.imports).map(XP).forEach(w=>{v(w,e),Yg(w,!1,e)}),u.bootstrap&&_i(u.bootstrap,y),u.bootstrap&&_i(u.bootstrap,m)),o.length)throw new Error(o.join(`
81
- `));function l(w){w=se(w),_e(w)||dt(w)||Kt(w)||o.push(`Unexpected value '${ge(w)}' declared by the module '${ge(e)}'. Please add a @Pipe/@Directive/@Component annotation.`)}function f(w){w=se(w);let A=dt(w);!_e(w)&&A&&A.selectors.length==0&&o.push(`Directive ${ge(w)} has no selector, please add it!`)}function d(w,A){if(w=se(w),(_e(w)||dt(w)||Kt(w))?.standalone){let j=`"${ge(A)}" NgModule`;o.push(ole(w,j))}}function p(w){w=se(w);let A=_e(w)&&"component"||dt(w)&&"directive"||Kt(w)&&"pipe";A&&c.lastIndexOf(w)===-1&&o.push(`Can't export ${A} ${ge(w)} from ${ge(e)} as it was neither declared nor imported!`)}function h(w,A){w=se(w);let P=fw.get(w);if(P&&P!==e){if(!A){let j=[P,e].map(ge).sort();o.push(`Type ${ge(w)} is part of the declarations of 2 modules: ${j[0]} and ${j[1]}! Please consider moving ${ge(w)} to a higher module that imports ${j[0]} and ${j[1]}. You can also create a new NgModule that exports and includes ${ge(w)} then import that NgModule in ${j[0]} and ${j[1]}.`)}}else fw.set(w,e)}function m(w){w=se(w),!fw.get(w)&&!Dr(w)&&o.push(`Component ${ge(w)} is not part of any NgModule or the module has not been imported into your module.`)}function y(w){w=se(w),_e(w)||o.push(`${ge(w)} cannot be used as an entry component.`),Dr(w)&&o.push(`The \`${ge(w)}\` class is a standalone component, which can not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` function for bootstrap instead.`)}function v(w,A){w=se(w);let P=_e(w)||dt(w);if(P!==null&&!P.standalone)throw new Error(`Unexpected directive '${w.name}' imported by the module '${A.name}'. Please add an @NgModule annotation.`);let j=Kt(w);if(j!==null&&!j.standalone)throw new Error(`Unexpected pipe '${w.name}' imported by the module '${A.name}'. Please add an @NgModule annotation.`)}}function XP(e){return e=se(e),e.ngModule||e}function ile(e,t){let n=null;return r(e.__annotations__),r(e.decorators),n;function r(i){i&&i.forEach(o)}function o(i){n||(Object.getPrototypeOf(i).ngMetadataName==t?n=i:i.type&&Object.getPrototypeOf(i.type).ngMetadataName==t&&(n=i.args[0]))}}var fw=new WeakMap,eC=new WeakMap;function iL(e){e=se(e);let t=Fn(e);return t===null?[e]:Wt(vr(t.exports).map(n=>Fn(n)?(Yg(n,!1),iL(n)):n))}function sle(e,t){let n=Wt(t.declarations||Ae),r=aL(e);n.forEach(o=>{if(o=se(o),o.hasOwnProperty(Cr)){let s=_e(o);sL(s,r)}else!o.hasOwnProperty(vi)&&!o.hasOwnProperty(Qc)&&(o.ngSelectorScope=e)})}function sL(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(Cr)?_e(n):dt(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Kt(n)),e.schemas=t.schemas,e.tView=null}function aL(e){if(ya(e)){let t=Ra.getNgModuleScope(e);return{schemas:Jc(e).schemas||null,...t}}else if(Dr(e)){if((_e(e)||dt(e))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(Kt(e)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function tC(e){return mS(e)?e.ngModule:e}var dw=0;function ale(e,t){(typeof ngDevMode>"u"||ngDevMode)&&gh();let n=null;Qoe(e,t),lL(e,t),Object.defineProperty(e,Cr,{get:()=>{if(n===null){let r=yn({usage:0,kind:"component",type:e});if(Zk(t)){let l=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&l.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&l.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&l.push(` - styleUrl: ${t.styleUrl}`),l.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(l.join(`
82
- `))}let o=Xue(),i=t.preserveWhitespaces;i===void 0&&(o!==null&&o.preserveWhitespaces!==void 0?i=o.preserveWhitespaces:i=!1);let s=t.encapsulation;s===void 0&&(o!==null&&o.defaultEncapsulation!==void 0?s=o.defaultEncapsulation:s=Un.Emulated);let a=t.templateUrl||`ng:///${e.name}/template.html`,c=fL(e,t),u={...c,typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:i,styles:typeof t.styles=="string"?[t.styles]:t.styles||Ae,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,viewProviders:t.viewProviders||null,hasDirectiveDependencies:!c.isStandalone||t.imports!=null&&t.imports.length>0};dw++;try{if(u.usesInheritance&&dL(e),n=r.compileComponent(jr,a,u),u.isStandalone){let l=Wt(t.imports||Ae),{directiveDefs:f,pipeDefs:d}=cle(e,l);n.directiveDefs=f,n.pipeDefs=d,n.dependencies=()=>l.map(se)}}finally{dw--}if(dw===0&&tle(),ule(e)){let l=aL(e.ngSelectorScope);sL(n,l)}if(t.schemas)if(u.isStandalone)n.schemas=t.schemas;else throw new Error(`The 'schemas' was specified for the ${ge(e)} but is only valid on a component that is standalone.`);else u.isStandalone&&(n.schemas=[])}return n},set:r=>{n=r},configurable:!!ngDevMode})}function cle(e,t){return{directiveDefs:()=>{if(ngDevMode)for(let i of t)Ww(i,e);return _u(e)?[...Ra.getStandaloneComponentScope(e,t).compilation.directives].map(i=>_e(i)||dt(i)).filter(i=>i!==null):[]},pipeDefs:()=>{if(ngDevMode)for(let i of t)Ww(i,e);return _u(e)?[...Ra.getStandaloneComponentScope(e,t).compilation.pipes].map(i=>Kt(i)).filter(i=>i!==null):[]}}}function ule(e){return e.ngSelectorScope!==void 0}function cL(e,t){let n=null;lL(e,t||{}),Object.defineProperty(e,vi,{get:()=>{if(n===null){let r=uL(e,t||{});n=yn({usage:0,kind:"directive",type:e}).compileDirective(jr,r.sourceMapUrl,r.metadata)}return n},configurable:!!ngDevMode})}function uL(e,t){let n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=yn({usage:0,kind:"directive",type:e}),i=fL(e,t);return i.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),i.usesInheritance&&dL(e),{metadata:i,sourceMapUrl:r}}function lL(e,t){let n=null;Object.defineProperty(e,rr,{get:()=>{if(n===null){let r=uL(e,t),o=yn({usage:0,kind:"directive",type:e});n=o.compileFactory(jr,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Qg(e),target:o.FactoryTarget.Directive})}return n},configurable:!!ngDevMode})}function lle(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function fL(e,t){let n=DE(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:t.selector!==void 0?t.selector:null,host:t.host||pn,propMetadata:r,inputs:t.inputs||Ae,outputs:t.outputs||Ae,queries:nC(e,r,pL),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},controlCreate:null,typeSourceSpan:null,usesInheritance:!lle(e),exportAs:ple(t.exportAs),providers:t.providers||null,viewQueries:nC(e,r,hL),isStandalone:t.standalone===void 0?!0:!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map(o=>typeof o=="function"?{directive:o}:o)||null}}function dL(e){let t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!dt(n)&&!_e(n)&&gle(n)&&cL(n,null),n=Object.getPrototypeOf(n)}function fle(e){return typeof e=="string"?mL(e):se(e)}function dle(e,t){return{propertyName:e,predicate:fle(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal}}function nC(e,t,n){let r=[],o=[];for(let i in t)if(t.hasOwnProperty(i)){let s=t[i];s.forEach(a=>{if(n(a)){if(!a.selector)throw new Error(`Can't construct a query for the property "${i}" of "${ge(e)}" since the query selector wasn't defined.`);if(s.some(gL))throw new Error("Cannot combine @Input decorators with query decorators");let c=dle(i,a);c.isSignal?r.push(c):o.push(c)}})}return[...r,...o]}function ple(e){return e===void 0?null:mL(e)}function pL(e){let t=e.ngMetadataName;return t==="ContentChild"||t==="ContentChildren"}function hL(e){let t=e.ngMetadataName;return t==="ViewChild"||t==="ViewChildren"}function gL(e){return e.ngMetadataName==="Input"}function mL(e){return e.split(",").map(t=>t.trim())}var hle=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function gle(e){let t=DE();if(hle.some(r=>t.hasLifecycleHook(e,r)))return!0;let n=t.propMetadata(e);for(let r in n){let o=n[r];for(let i=0;i<o.length;i++){let s=o[i],a=s.ngMetadataName;if(gL(s)||pL(s)||hL(s)||a==="Output"||a==="HostBinding"||a==="HostListener")return!0}}return!1}function mle(e,t){let n=null,r=null;Object.defineProperty(e,rr,{get:()=>{if(r===null){let o=rC(e,t),i=yn({usage:0,kind:"pipe",type:o.type});r=i.compileFactory(jr,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Qg(e),target:i.FactoryTarget.Pipe})}return r},configurable:!!ngDevMode}),Object.defineProperty(e,Qc,{get:()=>{if(n===null){let o=rC(e,t);n=yn({usage:0,kind:"pipe",type:o.type}).compilePipe(jr,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!!ngDevMode})}function rC(e,t){return{type:e,name:e.name,pipeName:t.name,pure:t.pure!==void 0?t.pure:!0,isStandalone:t.standalone===void 0?!0:!!t.standalone}}var yle=Wu("Directive",(e={})=>e,void 0,void 0,(e,t)=>cL(e,t)),EIe=Wu("Component",(e={})=>({changeDetection:Ma.Eager,...e}),yle,void 0,(e,t)=>ale(e,t)),SIe=Wu("Pipe",e=>({pure:!0,...e}),void 0,void 0,(e,t)=>mle(e,t)),xIe=qr("Input",e=>e?typeof e=="string"?{alias:e}:e:{}),IIe=qr("Output",e=>({alias:e})),AIe=qr("HostBinding",e=>({hostPropertyName:e})),TIe=qr("HostListener",(e,t)=>({eventName:e,args:t})),yL=Wu("NgModule",e=>e,void 0,void 0,(e,t)=>nle(e,t)),AE=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},TE=class e{compileModuleSync(t){return new qu(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),r=Fn(t),o=vr(r.declarations).reduce((i,s)=>{let a=_e(s);return a&&i.push(new Na(a)),i},[]);return new AE(n,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(TE,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var vL=new H(typeof ngDevMode<"u"&&ngDevMode?"compilerOptions":"");var oC=100,yg=0,ME=[];function vle(){if(yg++,oC-yg<5){let e=new Error().stack;e&&ME.push(e)}if(yg===oC)throw new D(103,`Angular could not stabilize because there were endless change notifications within the browser event loop. The stack from the last several notifications:
83
+ `)+".");console.warn(l)}}}function pE(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function UP(e,t,n,r,o){if(pE(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function HP(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var $g=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);if(ngDevMode&&r===n)throw new Error(`Detected a duplicated value ${n} for the key ${t}`);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function xae(e,t,n,r,o,i,s,a){qt("NgControlFlow");let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,256,s,a),NS}function NS(e,t,n,r,o,i,s,a){qt("NgControlFlow");let c=S(),u=fe(),l=Ct(u.consts,i);return Fi(c,u,e,t,n,r,o,l,512,s,a),NS}function Iae(e,t){qt("NgControlFlow");let n=S(),r=Gt(),o=n[r]!==xe?n[r]:-1,i=o!==-1?Kg(n,Z+o):void 0,s=0;if(et(n,r,e)){let a=te(null);try{if(i!==void 0&&hS(i,s),e!==-1){let c=Z+e,u=Kg(n,c),l=vE(n[x],c),f=Dk(u,l,n),d=Ga(n,l,t,{dehydratedView:f});za(u,d,s,Li(l,f))}}finally{te(a)}}else if(i!==void 0){let a=vk(i,s);a!==void 0&&(a[Te]=t)}}var hE=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-qe}};function Aae(e){return e}function qR(e,t){return t}var gE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Tae(e,t,n,r,o,i,s,a,c,u,l,f,d){qt("NgControlFlow"),ngDevMode&&F_(s,`A track expression must be a function, was ${typeof s} instead.`);let p=S(),h=fe(),m=c!==void 0,y=S(),v=a?s.bind(y[at][Te]):s,w=new gE(m,v);y[Z+e]=w,Fi(p,h,e+1,t,n,r,o,Ct(h.consts,i),256),m&&(ngDevMode&&F(u,"Missing number of declarations for the empty repeater block."),ngDevMode&&F(l,"Missing number of bindings for the empty repeater block."),Fi(p,h,e+2,c,u,l,f,Ct(h.consts,d),512))}function Mae(e){return e.length-Z>2}var mE=class{created=0;destroyed=0;reset(){this.created=0,this.destroyed=0}recordCreate(){this.created++}recordDestroy(){this.destroyed++}wasReCreated(t){return t>0&&this.created===this.destroyed&&this.created===t}},yE=class extends dE{lContainer;hostLView;templateTNode;operationsCounter=ngDevMode?new mE:void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-qe}at(t){return this.getLView(t)[Te].$implicit}attach(t,n){let r=n[Po];this.needsIndexUpdate||=t!==this.length,za(this.lContainer,n,t,Li(this.templateTNode,r)),Pae(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Cae(this.lContainer,t),Dae(this.lContainer,t)}create(t,n){let r=Pg(this.lContainer,this.templateTNode.tView.ssrId),o=Ga(this.hostLView,this.templateTNode,new hE(this.lContainer,n,t),{dehydratedView:r});return ngDevMode&&this.operationsCounter?.recordCreate(),o}destroy(t){Xu(t[x],t),ngDevMode&&this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Te].$implicit=n}reset(){this.needsIndexUpdate=!1,ngDevMode&&this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Te].$index=t}getLView(t){return BR(this.lContainer,t)}};function Oae(e){let t=te(null),n=ut();try{let r=S(),o=r[x],i=r[n],s=n+1,a=Kg(r,s);if(i.liveCollection===void 0){let u=vE(o,s);i.liveCollection=new yE(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(Sae(c,e,i.trackByFn,t),ngDevMode&&i.trackByFn===qR&&c.operationsCounter?.wasReCreated(c.length)&&Mae(BR(a,0))){let u=bt(-956,`The configured tracking expression (track by identity) caused re-creation of the entire collection of size ${c.length}. This is an expensive operation requiring destruction and subsequent creation of DOM nodes, directives, components etc. Please review the "track expression" and make sure that it uniquely identifies items in a collection.`);console.warn(u)}if(c.updateIndexes(),i.hasEmptyBlock){let u=Gt(),l=c.length===0;if(et(r,u,l)){let f=n+2,d=Kg(r,f);if(l){let p=vE(o,f),h=Dk(d,p,r),m=Ga(r,p,void 0,{dehydratedView:h});za(d,m,0,Li(p,h))}else o.firstUpdatePass&&Ok(d),hS(d,0)}}}finally{te(t)}}function Kg(e,t){let n=e[t];return ngDevMode&&gn(n),n}function Pae(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n],o=r?r[ur]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Se];ere(i,o),Pa.delete(r[nn]),o.detachedLeaveAnimationFns=void 0}}function Cae(e,t){if(e.length<=qe)return;let n=qe+t,r=e[n],o=r?r[ur]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function Dae(e,t){let n=Lu(e,t);return ngDevMode&&an(n),n}function BR(e,t){let n=vk(e,t);return ngDevMode&&an(n),n}function vE(e,t){let n=Mi(e,t);return ngDevMode&&dr(n),n}function UR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();lS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return UR}function bE(e,t,n,r,o){gm(t,e,n,o?"class":"style",r)}function Wg(e,t,n,r){let o=S();ngDevMode&&la(o,e);let i=o[x],s=e+Z,a=i.firstCreatePass?yS(s,o,2,t,dS,Bh(),n,r):i.data[s];if(qn(a)){let c=o[Vt].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Uk(u),()=>($P(e,t,o,a,r),Wg))}}return $P(e,t,o,a,r),Wg}function $P(e,t,n,r,o){if(pm(r,n,e,t,KR),Ii(r)){let i=n[x];fm(i,n,r),BE(i,r,n)}o!=null&&Wa(n,r),ngDevMode&&n[x].firstCreatePass&&aD(n,r)}function LS(){let e=fe(),t=ce();ngDevMode&&F(t,"No parent node to close.");let n=hm(t);return ngDevMode&&lt(n,3),e.firstCreatePass&&vS(e,n),g0(n)&&v0(),p0(),n.classesWithoutHost!=null&&Aee(n)&&bE(e,n,S(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Tee(n)&&bE(e,n,S(),n.stylesWithoutHost,!1),LS}function HR(e,t,n,r){return Wg(e,t,n,r),LS(),HR}function jS(e,t,n,r){let o=S();ngDevMode&&la(o,e);let i=o[x],s=e+Z,a=i.firstCreatePass?Lk(s,i,2,t,n,r):i.data[s];return pm(a,o,e,t,KR),r!=null&&Wa(o,a),ngDevMode&&o[x].firstCreatePass&&aD(o,a),jS}function FS(){let e=ce();ngDevMode&&F(e,"No parent node to close.");let t=hm(e);return ngDevMode&&lt(t,3),g0(t)&&v0(),p0(),FS}function $R(e,t,n,r){return jS(e,t,n,r),FS(),$R}var KR=(e,t,n,r,o)=>(ga(!0),WE(t[pe],r,N0()));function qS(e,t,n){let r=S();ngDevMode&&la(r,e);let o=r[x],i=e+Z,s=o.firstCreatePass?yS(i,r,8,"ng-container",dS,Bh(),t,n):o.data[i];if(pm(s,r,e,"ng-container",zR),Ii(s)){let a=r[x];fm(a,r,s),BE(a,s,r)}return n!=null&&Wa(r,s),qS}function Im(){let e=fe(),t=ce();ngDevMode&&F(t,"No parent node to close.");let n=hm(t);return e.firstCreatePass&&vS(e,n),ngDevMode&&lt(n,8),Im}function WR(e,t,n){return qS(e,t,n),Im(),WR}function BS(e,t,n){let r=S();ngDevMode&&la(r,e);let o=r[x],i=e+Z,s=o.firstCreatePass?Lk(i,o,8,"ng-container",t,n):o.data[i];return pm(s,r,e,"ng-container",zR),n!=null&&Wa(r,s),BS}function VR(){let e=ce();ngDevMode&&F(e,"No parent node to close.");let t=hm(e);return ngDevMode&&lt(t,8),Im}function GR(e,t,n){return BS(e,t,n),VR(),GR}var zR=(e,t,n,r,o)=>(ga(!0),ED(t[pe],ngDevMode?r:""));function kae(){return S()}function YR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();fS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return YR}function ZR(e,t,n){let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn(),a=$h(i.data),c=ik(a,s,r);fS(s,r,e,t,c,n),ngDevMode&&Va(i.data,s,e,o)}return ZR}var pu=void 0;function Rae(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var Nae=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],pu,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],pu,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",pu,pu,pu],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Rae],ow=Object.create(null);function Lae(e){let t=Fae(e),n=KP(t);if(n)return n;let r=t.split("-")[0];if(n=KP(r),n)return n;if(r==="en")return Nae;throw new D(701,ngDevMode&&`Missing locale data for the locale "${e}".`)}function jae(e){return Lae(e)[_E.PluralCase]}function KP(e){if(!(e in ow)){let t=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[e];return t!==void 0&&(ow[e]=t),t}return ow[e]}var _E;(function(e){e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData"})(_E||(_E={}));function Fae(e){return e.toLowerCase().replace(/_/g,"-")}var qae=["zero","one","two","few","many"];function Bae(e,t){let n=jae(t)(parseInt(e,10)),r=qae[n];return r!==void 0?r:"other"}var il="en-US",Uae="USD",Am={marker:"element"},Tm={marker:"ICU"},zt;(function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"})(zt||(zt={}));var QR=il;function JR(e){ngDevMode&&F(e,"Expected localeId to be defined"),typeof e=="string"&&(QR=e.toLowerCase().replace(/_/g,"-"))}function Hae(){return QR}var Hu=0,Su=0;function $ae(e){e&&(Hu=Hu|1<<Math.min(Su,31)),Su++}function Kae(e,t,n){try{if(Su>0){ngDevMode&&F(e,"tView should be defined");let r=e.data[n],o=Array.isArray(r)?r:r.update,i=hr()-Su-1;eN(e,t,o,i,Hu)}}finally{Hu=0,Su=0}}function Wae(e,t,n){let r=e[pe];switch(n){case Node.COMMENT_NODE:return ED(r,t);case Node.TEXT_NODE:return _D(r,t);case Node.ELEMENT_NODE:return WE(r,t,null)}}var gg=(e,t,n,r)=>(ga(!0),Wae(e,n,r));function Vae(e,t,n,r){let o=e[pe];for(let i=0;i<t.length;i++){let s=t[i++],a=t[i],c=(s&zt.COMMENT)===zt.COMMENT,u=(s&zt.APPEND_EAGERLY)===zt.APPEND_EAGERLY,l=s>>>zt.SHIFT,f=e[l],d=!1;f===null&&(f=e[l]=gg(e,l,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),d=lu()),u&&n!==null&&d&&Ri(o,n,f,r,!1)}}function XR(e,t,n,r){ngDevMode&&Oo(r);let o=n[pe],i=null,s;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="string"){let u=t[++a];n[u]===null&&(ngDevMode&&ct(n,u),n[u]=gg(n,u,c,Node.TEXT_NODE))}else if(typeof c=="number")switch(c&1){case 0:let u=Ak(c);i===null&&(i=u,s=o.parentNode(r));let l,f;if(u===i?(l=r,f=s):(l=null,f=gt(n[u])),f!==null){ngDevMode&&Oo(f);let m=Tk(c);ngDevMode&&Mo(m,Z,"Missing ref");let y=n[m];ngDevMode&&Oo(y),Ri(o,f,y,l,!1);let v=_u(e,m);if(v!==null&&typeof v=="object"){ngDevMode&&Rh(v);let w=vm(v,n);w!==null&&XR(e,v.create[w],n,n[v.anchorIdx])}}break;case 1:let d=c>>>1,p=t[++a],h=t[++a];dm(o,Ti(d,n),null,null,p,h,null);break;default:if(ngDevMode)throw new D(700,`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Tm:let u=t[++a],l=t[++a];if(n[l]===null){ngDevMode&&re(typeof u,"string",`Expected "${u}" to be a comment node value`),ngDevMode&&$c(n,l);let p=n[l]=gg(n,l,u,Node.COMMENT_NODE);ln(p,n)}break;case Am:let f=t[++a],d=t[++a];if(n[d]===null){ngDevMode&&re(typeof f,"string",`Expected "${f}" to be an element node tag name`),ngDevMode&&$c(n,d);let p=n[d]=gg(n,d,f,Node.ELEMENT_NODE);ln(p,n)}break;default:ngDevMode&&X(`Unable to determine the type of mutate operation for "${c}"`)}}}function eN(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=n[i],a=n[++i];if(s&o){let c="";for(let u=i+1;u<=i+a;u++){let l=n[u];if(typeof l=="string")c+=l;else if(typeof l=="number")if(l<0)c+=he(t[r-l]);else{let f=l>>>2;switch(l&3){case 1:let d=n[++u],p=n[++u],h=e.data[f];if(ngDevMode&&F(h,"Experting TNode or string"),typeof h=="string")dm(t[pe],t[f],null,h,d,c,p);else{let y=ut();mr(f);try{lS(h,t,d,c,t[pe],p)}finally{mr(y)}}break;case 0:let m=t[f];m!==null&&wD(t[pe],m,c);break;case 2:Gae(e,_u(e,f),t,c);break;case 3:WP(e,_u(e,f),r,t);break}}}}else{let c=n[i+1];if(c>0&&(c&3)===3){let u=c>>>2,l=_u(e,u);t[l.currentCaseLViewIndex]<0&&WP(e,l,r,t)}}i+=a}}function WP(e,t,n,r){ngDevMode&&ct(r,t.currentCaseLViewIndex);let o=r[t.currentCaseLViewIndex];if(o!==null){let i=Hu;o<0&&(o=r[t.currentCaseLViewIndex]=~o,i=-1),eN(e,r,t.update[o],n,i)}}function Gae(e,t,n,r){let o=zae(t,r);if(vm(t,n)!==o&&(tN(e,t,n),n[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[t.anchorIdx];s&&(ngDevMode&&Oo(s),XR(e,t.create[o],n,s)),roe(n,t.anchorIdx,o)}}function tN(e,t,n){let r=vm(t,n);if(r!==null){let o=t.remove[r];for(let i=0;i<o.length;i++){let s=o[i];if(s>0){let a=Ti(s,n);a!==null&&Zu(n[pe],a)}else tN(e,_u(e,~s),n)}}}function zae(e,t){let n=e.cases.indexOf(t);if(n===-1)switch(e.type){case 1:{let r=Bae(t,Hae());n=e.cases.indexOf(r),n===-1&&r!=="other"&&(n=e.cases.indexOf("other"));break}case 0:{n=e.cases.indexOf("other");break}}return n===-1?null:n}function Yae(e){let t=e||(Array.isArray(this)?this:[]),n=[];for(let r=0;r<t.length;r++){let o=t[r++],i=t[r],s=(o&zt.COMMENT)===zt.COMMENT,a=(o&zt.APPEND_EAGERLY)===zt.APPEND_EAGERLY,c=o>>>zt.SHIFT;n.push(`lView[${c}] = document.${s?"createComment":"createText"}(${JSON.stringify(i)});`),a&&n.push(`parent.appendChild(lView[${c}]);`)}return n}function Mm(e){let t=new Vg(e||(Array.isArray(this)?this:[])),n=[];function r(o){let i=o>>>2;switch(o&3){case 0:return`(lView[${i}] as Text).textContent = $$$`;case 1:let a=t.consumeString(),c=t.consumeFunction(),u=c?`(${c})($$$)`:"$$$";return`(lView[${i}] as Element).setAttribute('${a}', ${u})`;case 2:return`icuSwitchCase(${i}, $$$)`;case 3:return`icuUpdateCase(${i})`}throw new Error("unexpected OpCode")}for(;t.hasMore();){let o=t.consumeNumber(),i=t.consumeNumber(),s=t.i+i,a=[],c="";for(;t.i<s;){let u=t.consumeNumberOrString();if(typeof u=="string")c+=u;else if(u<0)c+="${lView[i"+u+"]}";else{let l=r(u);a.push(l.replace("$$$","`"+c+"`")+";"),c=""}}n.push(`if (mask & 0b${o.toString(2)}) { ${a.join(" ")} }`)}return n}function Zae(e){let t=new Vg(e||(Array.isArray(this)?this:[])),n=[];function r(i){let s=Ak(i),a=Tk(i);switch(fP(i)){case 0:return`(lView[${s}] as Element).appendChild(lView[${o}])`;case 1:return`(lView[${a}] as Element).setAttribute("${t.consumeString()}", "${t.consumeString()}")`}throw new Error("Unexpected OpCode: "+fP(i))}let o=-1;for(;t.hasMore();){let i=t.consumeNumberStringOrMarker();if(i===Tm){let s=t.consumeString();o=t.consumeNumber(),n.push(`lView[${o}] = document.createComment("${s}")`)}else if(i===Am){let s=t.consumeString();o=t.consumeNumber(),n.push(`lView[${o}] = document.createElement("${s}")`)}else if(typeof i=="string")o=t.consumeNumber(),n.push(`lView[${o}] = document.createTextNode("${i}")`);else if(typeof i=="number"){let s=r(i);s&&n.push(s)}else throw new Error("Unexpected value")}return n}function Qae(e){let t=e||(Array.isArray(this)?this:[]),n=[];for(let r=0;r<t.length;r++){let o=t[r];o>0?n.push(`remove(lView[${o}])`):n.push(`removeNestedICU(${~o})`)}return n}var Vg=class{i=0;codes;constructor(t){this.codes=t}hasMore(){return this.i<this.codes.length}consumeNumber(){let t=this.codes[this.i++];return je(t,"expecting number in OpCode"),t}consumeString(){let t=this.codes[this.i++];return mi(t,"expecting string in OpCode"),t}consumeFunction(){let t=this.codes[this.i++];if(t===null||typeof t=="function")return t;throw new Error("expecting function in OpCode")}consumeNumberOrString(){let t=this.codes[this.i++];return typeof t=="string"||je(t,"expecting number or string in OpCode"),t}consumeNumberStringOrMarker(){let t=this.codes[this.i++];return typeof t=="string"||typeof t=="number"||t==Tm||t==Am||je(t,"expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode"),t}},Gg=/�(\d+):?\d*�/gi,Jae=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,Xae=/�(\d+)�/,nN=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,xu="\uFFFD",ece=/�\/?\*(\d+:\d+)�/gi,tce=/�(\/?[#*]\d+):?\d*�/gi,nce=/\uE500/g;function rce(e){return e.replace(nce," ")}function ki(e,t){if(ngDevMode)Object.defineProperty(e,"debug",{get:t,enumerable:!1});else throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!")}function oce(e,t,n,r,o,i){let s=ha(),a=[],c=[],u=[[]],l=[[]];ngDevMode&&(ki(a,Yae),ki(c,Mm)),o=cce(o,i);let f=rce(o).split(tce);for(let d=0;d<f.length;d++){let p=f[d];if((d&1)===0){let h=wE(p);for(let m=0;m<h.length;m++){let y=h[m];if((m&1)===0){let v=y;ngDevMode&&mi(v,"Parsed ICU part should be string"),v!==""&&ice(l[0],e,s,u[0],a,c,n,v)}else{let v=y;if(typeof v!="object")throw new Error(`Unable to parse ICU expression in "${o}" message.`);let A=rN(e,s,u[0],n,a,ngDevMode?`ICU ${r}:${v.mainBinding}`:"",!0).index;ngDevMode&&cr(A,Z,"Index must be in absolute LView offset"),iN(l[0],e,n,c,t,v,A)}}}else{let h=p.charCodeAt(0)===47,m=p.charCodeAt(h?1:0);ngDevMode&&WM(m,42,35);let y=Z+Number.parseInt(p.substring(h?2:1));if(h)u.shift(),l.shift(),pr(ha(),!1);else{let v=Zre(e,u[0],y);u.unshift([]),pr(v,!0);let w={kind:2,index:y,children:[],type:m===35?0:1};l[0].push(w),l.unshift(w.children)}}}e.data[r]={create:a,update:c,ast:l[0],parentTNodeIndex:t}}function rN(e,t,n,r,o,i,s){let a=Ju(e,r,1,null),c=a<<zt.SHIFT,u=ha();t===u&&(u=null),u===null&&(c|=zt.APPEND_EAGERLY),s&&(c|=zt.COMMENT,qne(Xre)),o.push(c,i===null?"":i);let l=gS(e,a,s?32:1,i===null?ngDevMode?"{{?}}":"":i,null);xk(n,l);let f=l.index;return pr(l,!1),u!==null&&t!==u&&Yre(u,f),l}function ice(e,t,n,r,o,i,s,a){let c=a.match(Gg),l=rN(t,n,r,s,o,c?null:a,!1).index;c&&zg(i,a,l,null,0,null),e.push({kind:0,index:l})}function sce(e,t,n){let r=ce(),o=r.index,i=[];if(ngDevMode&&ki(i,Mm),e.firstCreatePass&&e.data[t]===null){for(let s=0;s<n.length;s+=2){let a=n[s],c=n[s+1];if(c!==""){if(Jae.test(c))throw new Error(`ICU expressions are not supported in attributes. Message: "${c}".`);let u=r.namespace?`:${r.namespace}:${r.value}`:r.value;zg(i,c,o,a,ace(i),EE(a,u))}}e.data[t]=i}}function zg(e,t,n,r,o,i){ngDevMode&&cr(n,Z,"Index must be in absolute LView offset");let s=e.length,a=s+1;e.push(null,null);let c=s+2;ngDevMode&&ki(e,Mm);let u=t.split(Gg),l=0;for(let f=0;f<u.length;f++){let d=u[f];if(f&1){let p=o+parseInt(d,10);e.push(-1-p),l=l|oN(p)}else d!==""&&e.push(d)}return e.push(n<<2|(r?1:0)),r&&e.push(r,i),e[s]=l,e[a]=e.length-c,l}function ace(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];typeof r=="number"&&r<0&&t++}return t}function oN(e){return 1<<Math.min(e,31)}function VP(e){let t,n="",r=0,o=!1,i;for(;(t=ece.exec(e))!==null;)o?t[0]===`${xu}/*${i}${xu}`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),i=t[1],o=!0);return ngDevMode&&re(o,!1,`Tag mismatch: unable to find the end of the sub-template in the translation "${e}"`),n+=e.slice(r),n}function cce(e,t){if(Jre(t))return VP(e);{let n=e.indexOf(`:${t}${xu}`)+2+t.toString().length,r=e.search(new RegExp(`${xu}\\/\\*\\d+:${t}${xu}`));return VP(e.substring(n,r))}}function iN(e,t,n,r,o,i,s){ngDevMode&&F(i,"ICU expression must be defined");let a=0,c={type:i.type,currentCaseLViewIndex:Ju(t,n,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};dce(r,i,s),zre(t,s,c);let u=i.values,l=[];for(let f=0;f<u.length;f++){let d=u[f],p=[];for(let m=0;m<d.length;m++){let y=d[m];if(typeof y!="string"){let v=p.push(y)-1;d[m]=`<!--\uFFFD${v}\uFFFD-->`}}let h=[];l.push(h),a=lce(h,t,c,n,r,o,i.cases[f],d.join(""),p)|a}a&&pce(r,a,s),e.push({kind:3,index:s,cases:l,currentCaseLViewIndex:c.currentCaseLViewIndex})}function uce(e){let t=[],n=[],r=1,o=0;e=e.replace(nN,function(s,a,c){return c==="select"?r=0:r=1,o=parseInt(a.slice(1),10),""});let i=wE(e);for(let s=0;s<i.length;){let a=i[s++].trim();r===1&&(a=a.replace(/\s*(?:=)?(\w+)\s*/,"$1")),a.length&&t.push(a);let c=wE(i[s++]);t.length>n.length&&n.push(c)}return{type:r,mainBinding:o,cases:t,values:n}}function wE(e){if(!e)return[];let t=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(e);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let c=e.substring(t,a);nN.test(c)?r.push(uce(c)):r.push(c),t=a+1}}else{if(n.length==0){let c=e.substring(t,a);r.push(c),t=a+1}n.push("{")}}let s=e.substring(t);return r.push(s),r}function lce(e,t,n,r,o,i,s,a,c){let u=[],l=[],f=[];ngDevMode&&(ki(u,Zae),ki(l,Qae),ki(f,Mm)),n.cases.push(s),n.create.push(u),n.remove.push(l),n.update.push(f);let p=pD(Gu()).getInertBodyElement(a);ngDevMode&&F(p,"Unable to generate inert body element");let h=Cw(p)||p;return h?sN(e,t,n,r,o,u,l,f,h,i,c,0):0}function sN(e,t,n,r,o,i,s,a,c,u,l,f){let d=0,p=c.firstChild;for(;p;){let h=Ju(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:let m=p,y=m.tagName.toLowerCase();if(Mw.hasOwnProperty(y)){iw(i,Am,y,u,h),t.data[h]=y;let P=m.attributes;for(let Q=0;Q<P.length;Q++){let ue=P.item(Q),we=ue.name.toLowerCase(),N=!!ue.value.match(Gg),J=m.namespaceURI,de=J&&fD[J],G=de?`:${de}:${y}`:y;if(N)Ow.hasOwnProperty(we)?zg(a,ue.value,h,ue.name,0,EE(we,G)):ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute value ${we} on element ${y} (see ${sr})`);else if(Ow[we]){let O=ue.value;EE(we,G)?(typeof ngDevMode<"u"&&ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute ${we} on element ${y} (see ${sr})`),zP(i,h,ue.name,"unsafe:blocked")):zP(i,h,ue.name,O)}else typeof ngDevMode<"u"&&ngDevMode&&console.warn(`WARNING: ignoring unknown attribute name ${we} on element ${y} (see ${sr})`)}let j={kind:1,index:h,children:[]};e.push(j),d=sN(j.children,t,n,r,o,i,s,a,p,h,l,f+1)|d,GP(s,h,f)}break;case Node.TEXT_NODE:let v=p.textContent||"",w=v.match(Gg);iw(i,null,w?"":v,u,h),GP(s,h,f),w&&(d=zg(a,v,h,null,0,null)|d),e.push({kind:0,index:h});break;case Node.COMMENT_NODE:let A=Xae.exec(p.textContent||"");if(A){let P=parseInt(A[1],10),j=l[P];iw(i,Tm,ngDevMode?`nested ICU ${P}`:"",u,h),iN(e,t,r,o,u,j,h),fce(s,h,f)}break}p=p.nextSibling}return d}function GP(e,t,n){n===0&&e.push(t)}function fce(e,t,n){n===0&&(e.push(~t),e.push(t))}function dce(e,t,n){e.push(oN(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}function pce(e,t,n){e.push(t,1,n<<2|3)}function iw(e,t,n,r,o){t!==null&&e.push(t),e.push(n,o,Qre(0,r,o))}function zP(e,t,n,r){e.push(t<<1|1,n,r)}function hce(e){let t=e.toLowerCase(),[n,r]=VE(t,!1);return n===uD||n===lD?`:${n}:${r}`:r}function EE(e,t){let n=e.toLowerCase(),r=t?hce(t):"*",[o]=VE(r,!1),i=i0();switch(i[`${r}|${n}`]||(o?i[`:${o}:*|${n}`]:void 0)||i[`*|${n}`]||$e.NONE){case $e.HTML:return ID;case $e.STYLE:return AD;case $e.SCRIPT:return MD;case $e.URL:return KE;case $e.RESOURCE_URL:return GE;case $e.ATTRIBUTE_NO_BINDING:return CD;default:return null}}var YP=0,gce=/\[(�.+?�?)\]/,mce=/\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g,yce=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,vce=/{([A-Z0-9_]+)}/g,bce=/�I18N_EXP_(ICU(_\d+)?)�/g,_ce=/\/\*/,wce=/\d+\:(\d+)/;function Ece(e,t={}){let n=e;if(gce.test(e)){let r={},o=[YP];n=n.replace(mce,(i,s,a)=>{let c=s||a,u=r[c]||[];if(u.length||(c.split("|").forEach(m=>{let y=m.match(wce),v=y?parseInt(y[1],10):YP,w=_ce.test(m);u.push([v,w,m])}),r[c]=u),!u.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);let l=o[o.length-1],f=0;for(let m=0;m<u.length;m++)if(u[m][0]===l){f=m;break}let[d,p,h]=u[f];return p?o.pop():l!==d&&o.push(d),u.splice(f,1),h})}return Object.keys(t).length&&(n=n.replace(yce,(r,o,i,s,a,c)=>t.hasOwnProperty(i)?`${o}${t[i]}${c}`:r),n=n.replace(vce,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(bce,(r,o)=>{if(t.hasOwnProperty(o)){let i=t[o];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return i.shift()}return r})),n}function aN(e,t,n=-1){let r=fe(),o=S(),i=Z+e;ngDevMode&&F(r,"tView should be defined");let s=Ct(r.consts,t),a=ha();if(r.firstCreatePass&&oce(r,a===null?0:a.index,o,i,s,n),r.type===2){let d=o[at];d[ae]|=32}else o[ae]|=32;let c=r.data[i],u=a===o[_t]?null:a,l=YD(r,u,o),f=a&&a.type&8?o[a.index]:null;toe(o,i,a,n),Vae(o,c.create,l,f),O0(!0)}function cN(){O0(!1)}function Sce(e,t,n){aN(e,t,n),cN()}function xce(e,t){let n=fe();ngDevMode&&F(n,"tView should be defined");let r=Ct(n.consts,t);sce(n,e+Z,r)}function uN(e){let t=S();return $ae(et(t,Gt(),e)),uN}function Ice(e){Kae(fe(),S(),e+Z)}function Ace(e,t={}){return Ece(e,t)}function lN(e,t,n){let r=S(),o=fe(),i=ce();return US(o,r,r[pe],i,e,t,n),lN}function fN(e,t){let n=ce(),r=S(),o=fe(),i=$h(o.data),s=ik(i,n,r);return US(o,r,s,n,e,t),fN}function dN(e,t,n){let r=S(),o=fe(),i=ce();return(i.type&3||n)&&bS(i,o,r,n,r[pe],e,t,Di(i,r,t)),dN}function US(e,t,n,r,o,i,s){ngDevMode&&lt(r,15);let a=!0,c=null;if((r.type&3||s)&&(c??=Di(r,t,i),bS(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let f=0;f<l.length;f+=2){let d=l[f],p=l[f+1];c??=Di(r,t,i),kg(r,t,d,p,o,c)}if(u&&u.length)for(let f of u)c??=Di(r,t,i),kg(r,t,f,o,o,c)}}function Tce(e=1){return wO(e)}function Mce(e,t){let n=null,r=Pne(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?RD(e,i,!0):kne(r,i))return o}return n}function Oce(e){let t=S()[at][_t];if(!t.projection){let n=e?e.length:1,r=t.projection=ca(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?Mce(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function Pce(e,t=0,n,r,o,i){let s=S(),a=fe(),c=r?e+1:null;c!==null&&Fi(s,a,c,r,o,i,null,n);let u=Wi(a,Z+e,16,null,n||null);u.projection===null&&(u.projection=t),S0();let f=!s[Po]||h0();s[at][_t].projection[u.projection]===null&&c!==null?Cce(s,a,c):f&&!tm(u)&&ire(a,s,u)}function Cce(e,t,n){let r=Z+n,o=t.data[r],i=e[r];ngDevMode&&dr(o),ngDevMode&&gn(i);let s=Pg(i,o.tView.ssrId),a=Ga(e,o,void 0,{dehydratedView:s});za(i,a,0,Li(o,s))}function pN(e,t,n,r){return Gk(e,t,n,r),pN}function hN(e,t,n){return Vk(e,t,n),hN}function Dce(e){let t=S(),n=fe(),r=Kh();uu(r+1);let o=wS(n,r);if(e.dirty&&da(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Yk(t,r);e.reset(i,CC),e.notifyOnChanges()}return!0}return!1}function kce(){return _S(S(),Kh())}function gN(e,t,n,r,o){return Qk(t,Gk(e,n,r,o)),gN}function mN(e,t,n,r){return Qk(e,Vk(t,n,r)),mN}function Rce(e=1){uu(Kh()+e)}function Nce(e){let t=x0();return Ro(t,Z+e)}function og(e,t){return ngDevMode&&ia(e,0,32767),ngDevMode&&ia(t,0,32767),e<<17|t<<2}function Ui(e){return ngDevMode&&je(e,"expected number"),e>>17&32767}function Lce(e){return ngDevMode&&je(e,"expected number"),(e&2)==2}function jce(e,t){return ngDevMode&&je(e,"expected number"),ngDevMode&&ia(t,0,32767),e&131071|t<<17}function SE(e){return ngDevMode&&je(e,"expected number"),e|2}function Hi(e){return ngDevMode&&je(e,"expected number"),(e&131068)>>2}function sw(e,t){return ngDevMode&&je(e,"expected number"),ngDevMode&&ia(t,0,32767),e&-131069|t<<2}function Fce(e){return ngDevMode&&je(e,"expected number"),(e&1)===1}function xE(e){return ngDevMode&&je(e,"expected number"),e|1}function qce(e,t,n,r,o,i){ngDevMode&&Nh(fe());let s=i?t.classBindings:t.styleBindings,a=Ui(s),c=Hi(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||ua(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let d=Ui(e[a+1]);e[r+1]=og(d,a),d!==0&&(e[d+1]=sw(e[d+1],r)),e[a+1]=jce(e[a+1],r)}else e[r+1]=og(a,0),a!==0&&(e[a+1]=sw(e[a+1],r)),a=r;else e[r+1]=og(c,0),ngDevMode&&re(a!==0&&c===0,!1,"Adding template bindings after hostBindings is not allowed."),a===0?a=r:e[c+1]=sw(e[c+1],r),c=r;u&&(e[r+1]=SE(e[r+1])),ZP(e,l,r,!0),ZP(e,l,r,!1),Bce(t,l,e,r,i),s=og(a,c),i?t.classBindings=s:t.styleBindings=s}function Bce(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ua(i,t)>=0&&(n[r+1]=xE(n[r+1]))}function ZP(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ui(o):Hi(o),a=!1;for(;s!==0&&(a===!1||i);){ngDevMode&&ct(e,s);let c=e[s],u=e[s+1];Uce(c,t)&&(a=!0,e[s+1]=r?xE(u):SE(u)),s=r?Ui(u):Hi(u)}a&&(e[n+1]=r?SE(o):xE(o))}function Uce(e,t){return ngDevMode&&tn(Array.isArray(t),!0,"Expected that 'tStylingKey' has been unwrapped"),e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ua(e,t)>=0:!1}var mt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yN(e){return e.substring(mt.key,mt.keyEnd)}function Hce(e){return e.substring(mt.value,mt.valueEnd)}function $ce(e){return _N(e),vN(e,qa(e,0,mt.textEnd))}function vN(e,t){let n=mt.textEnd;return n===t?-1:(t=mt.keyEnd=Wce(e,mt.key=t,n),qa(e,t,n))}function Kce(e){return _N(e),bN(e,qa(e,0,mt.textEnd))}function bN(e,t){let n=mt.textEnd,r=mt.key=qa(e,t,n);return n===r?-1:(r=mt.keyEnd=Vce(e,r,n),r=QP(e,r,n,58),r=mt.value=qa(e,r,n),r=mt.valueEnd=Gce(e,r,n),QP(e,r,n,59))}function _N(e){mt.key=0,mt.keyEnd=0,mt.value=0,mt.valueEnd=0,mt.textEnd=e.length}function qa(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Wce(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function Vce(e,t,n){let r;for(;t<n&&((r=e.charCodeAt(t))===45||r===95||(r&-33)>=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function QP(e,t,n,r){return t=qa(e,t,n),t<n&&(ngDevMode&&e.charCodeAt(t)!==r&&wN(e,String.fromCharCode(r),t),t++),t}function Gce(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=JP(e,c,s,n):t===s-4&&i===85&&o===82&&r===76&&c===40?a=s=JP(e,41,s,n):c>32&&(a=s),i=o,o=r,r=c&-33}return a}function JP(e,t,n,r){let o=-1,i=n;for(;i<r;){let s=e.charCodeAt(i++);if(s==t&&o!==92)return i;s==92&&o===92?o=0:o=s}throw ngDevMode?wN(e,String.fromCharCode(t),r):new Error}function wN(e,t,n){throw ngDevMode&&re(typeof e=="string",!0,"String expected here"),X(`Malformed style at location ${n} in string '`+e.substring(0,n)+"[>>"+e.substring(n,n+1)+"<<]"+e.slice(n+1)+`'. Expecting '${t}'.`)}function EN(e,t,n){return xN(e,t,n,!1),EN}function SN(e,t){return xN(e,t,null,!0),SN}function zce(e){IN(MN,Yce,e,!1)}function Yce(e,t){for(let n=Kce(t);n>=0;n=bN(t,n))MN(e,yN(t),Hce(t))}function Zce(e){IN(rue,Qce,e,!0)}function Qce(e,t){for(let n=$ce(t);n>=0;n=vN(t,n))tu(e,yN(t),!0)}function xN(e,t,n,r){let o=S(),i=fe(),s=gr(2);if(i.firstUpdatePass&&TN(i,e,s,r),t!==xe&&et(o,s,t)){let a=i.data[ut()];ON(i,a,o,o[pe],e,o[s+1]=iue(t,n),r,s)}}function IN(e,t,n,r){let o=fe(),i=gr(2);o.firstUpdatePass&&TN(o,null,i,r);let s=S();if(n!==xe&&et(s,i,n)){let a=o.data[ut()];if(PN(a,r)&&!AN(o,i)){if(ngDevMode){let u=o.data[i];re(Array.isArray(u)?u[1]:u,!1,"Styling linked list shadow input should be marked as 'false'")}let c=r?a.classesWithoutHost:a.stylesWithoutHost;ngDevMode&&r===!1&&c!==null&&re(c.endsWith(";"),!0,"Expecting static portion to end with ';'"),c!==null&&(n=yh(c,n||"")),bE(o,a,s,n,r)}else oue(o,a,s,s[pe],s[i+1],s[i+1]=nue(e,t,n),r,i)}}function AN(e,t){return t>=e.expandoStartIndex}function TN(e,t,n,r){ngDevMode&&Nh(e);let o=e.data;if(o[n+1]===null){let i=o[ut()];ngDevMode&&F(i,"TNode expected");let s=AN(e,n);PN(i,r)&&t===null&&!s&&(t=!1),t=Jce(o,i,t,r),qce(o,i,t,n,s,r)}}function Jce(e,t,n,r){let o=$h(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=aw(null,e,t,n,r),n=$u(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=aw(o,e,t,n,r),i===null){let c=Xce(e,t,r);c!==void 0&&Array.isArray(c)&&(c=aw(null,e,t,c[1],r),c=$u(c,t.attrs,r),eue(e,t,r,c))}else i=tue(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Xce(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Hi(r)!==0)return e[Ui(r)]}function eue(e,t,n,r){let o=n?t.classBindings:t.styleBindings;ngDevMode&&tn(Hi(o),0,"Expecting to have at least one template styling binding."),e[Ui(o)]=r}function tue(e,t,n){let r,o=t.directiveEnd;ngDevMode&&tn(t.directiveStylingLast,-1,"By the time this function gets called at least one hostBindings-node styling instruction must have executed.");for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=$u(r,s,n)}return $u(r,t.attrs,n)}function aw(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],ngDevMode&&F(i,"expected to be defined"),r=$u(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function $u(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),tu(e,s,n?!0:t[++i]))}return e===void 0?null:e}function nue(e,t,n){if(n==null||n==="")return Ae;let r=[],o=Ko(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(let i of o)e(r,i,!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"?t(r,o):ngDevMode&&X("Unsupported styling type: "+typeof o+" ("+o+")");return r}function MN(e,t,n){tu(e,t,Ko(n))}function rue(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&tu(e,r,n)}function oue(e,t,n,r,o,i,s,a){o===xe&&(o=Ae);let c=0,u=0,l=0<o.length?o[0]:null,f=0<i.length?i[0]:null;for(;l!==null||f!==null;){ngDevMode&&ar(c,999,"Are we stuck in infinite loop?"),ngDevMode&&ar(u,999,"Are we stuck in infinite loop?");let d=c<o.length?o[c+1]:void 0,p=u<i.length?i[u+1]:void 0,h=null,m;l===f?(c+=2,u+=2,d!==p&&(h=f,m=p)):f===null||l!==null&&l<f?(c+=2,h=l):(ngDevMode&&F(f,"Expecting to have a valid key"),u+=2,h=f,m=p),h!==null&&ON(e,t,n,r,h,m,s,a),l=c<o.length?o[c]:null,f=u<i.length?i[u]:null}}function ON(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=Fce(u)?XP(c,t,n,o,Hi(u),s):void 0;if(!Yg(l)){Yg(i)||Lce(u)&&(i=XP(c,null,n,o,a,s));let f=Ti(ut(),n);are(r,s,f,o,i)}}function XP(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,d=n[o+1];d===xe&&(d=f?Ae:void 0);let p=f?Th(d,r):l===r?d:void 0;if(u&&!Yg(p)&&(p=Th(c,r)),Yg(p)&&(a=p,s))return a;let h=e[o+1];o=s?Ui(h):Hi(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Th(c,r))}return a}function Yg(e){return e!==void 0}function iue(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ke(Ko(e)))),e}function PN(e,t){return(e.flags&(t?8:16))!==0}function sue(e,t=""){let n=S(),r=fe(),o=e+Z;ngDevMode&&la(n,e);let i=r.firstCreatePass?Wi(r,o,1,t,null):r.data[o],s=aue(r,n,i,t);n[o]=s,lu()&&cS(r,n,s,i),pr(i,!1)}var aue=(e,t,n,r)=>(ga(!0),_D(t[pe],r));function CN(e,t){ngDevMode&&ar(2,t.length,"should have at least 3 values");let n=!1,r=hr();for(let i=1;i<t.length;i+=2)n=et(e,r++,t[i])||n;if(M0(r),!n)return xe;let o=t[0];for(let i=1;i<t.length;i+=2)o+=he(t[i])+(i+1!==t.length?t[i+1]:"");return o}function DN(e,t,n,r=""){return et(e,Gt(),n)?t+he(n)+r:xe}function kN(e,t,n,r,o,i=""){let s=hr(),a=ji(e,s,n,o);return gr(2),a?t+he(n)+r+he(o)+i:xe}function RN(e,t,n,r,o,i,s,a=""){let c=hr(),u=Em(e,c,n,o,s);return gr(3),u?t+he(n)+r+he(o)+i+he(s)+a:xe}function NN(e,t,n,r,o,i,s,a,c,u=""){let l=hr(),f=An(e,l,n,o,s,c);return gr(4),f?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u:xe}function LN(e,t,n,r,o,i,s,a,c,u,l,f=""){let d=hr(),p=An(e,d,n,o,s,c);return p=et(e,d+4,l)||p,gr(5),p?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f:xe}function jN(e,t,n,r,o,i,s,a,c,u,l,f,d,p=""){let h=hr(),m=An(e,h,n,o,s,c);return m=ji(e,h+4,l,d)||m,gr(6),m?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p:xe}function FN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m=""){let y=hr(),v=An(e,y,n,o,s,c);return v=Em(e,y+4,l,d,h)||v,gr(7),v?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p+he(h)+m:xe}function qN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y,v=""){let w=hr(),A=An(e,w,n,o,s,c);return A=An(e,w+4,l,d,h,y)||A,gr(8),A?t+he(n)+r+he(o)+i+he(s)+a+he(c)+u+he(l)+f+he(d)+p+he(h)+m+he(y)+v:xe}function BN(e){return HS("",e),BN}function HS(e,t,n){let r=S(),o=DN(r,e,t,n);return o!==xe&&Hr(r,ut(),o),HS}function UN(e,t,n,r,o){let i=S(),s=kN(i,e,t,n,r,o);return s!==xe&&Hr(i,ut(),s),UN}function HN(e,t,n,r,o,i,s){let a=S(),c=RN(a,e,t,n,r,o,i,s);return c!==xe&&Hr(a,ut(),c),HN}function $N(e,t,n,r,o,i,s,a,c){let u=S(),l=NN(u,e,t,n,r,o,i,s,a,c);return l!==xe&&Hr(u,ut(),l),$N}function KN(e,t,n,r,o,i,s,a,c,u,l){let f=S(),d=LN(f,e,t,n,r,o,i,s,a,c,u,l);return d!==xe&&Hr(f,ut(),d),KN}function WN(e,t,n,r,o,i,s,a,c,u,l,f,d){let p=S(),h=jN(p,e,t,n,r,o,i,s,a,c,u,l,f,d);return h!==xe&&Hr(p,ut(),h),WN}function VN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h){let m=S(),y=FN(m,e,t,n,r,o,i,s,a,c,u,l,f,d,p,h);return y!==xe&&Hr(m,ut(),y),VN}function GN(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y){let v=S(),w=qN(v,e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y);return w!==xe&&Hr(v,ut(),w),GN}function zN(e){let t=S(),n=CN(t,e);return n!==xe&&Hr(t,ut(),n),zN}function Hr(e,t,n){ngDevMode&&mi(n,"Value should be a string"),ngDevMode&&yi(n,xe,"value should not be NO_CHANGE"),ngDevMode&&ct(e,t);let r=Ti(t,e);ngDevMode&&F(r,"native element should exist"),wD(e[pe],r,n)}function YN(e,t,n){wR(t)&&(t=t());let r=S(),o=Gt();if(et(r,o,t)){let i=fe(),s=mn();lS(s,r,e,t,r[pe],n),ngDevMode&&Va(i.data,s,e,o)}return YN}function cue(e,t){let n=wR(e);return n&&e.set(t),n}function ZN(e,t){let n=S(),r=fe(),o=ce();return US(r,n,n[pe],o,e,t),ZN}var QN={};function JN(e){qt("NgLet");let t=fe(),n=S(),r=e+Z,o=Wi(t,r,128,null,null);return pr(o,!1),su(t,n,r,QN),JN}function uue(e){let t=fe(),n=S(),r=ut();return su(t,n,r,e),e}function lue(e){let t=x0(),n=Ro(t,Z+e);if(n===QN)throw new D(314,ngDevMode&&"Attempting to access a @let declaration whose value is not available yet");return n}function fue(e,t){let n=fe(),r=S(),o=r[pe],i="data-ng-source-location";for(let[s,a,c,u]of t){let l=Mi(n,s+Z);ngDevMode&&lt(l,2);let f=Ti(s+Z,r);if(!f.hasAttribute(i)){let d=`${e}@o:${a},l:${c},c:${u}`;o.setAttribute(f,i,d)}}}function due(e){return et(S(),Gt(),e)?he(e):xe}function pue(e,t,n=""){return DN(S(),e,t,n)}function hue(e,t,n,r,o=""){return kN(S(),e,t,n,r,o)}function gue(e,t,n,r,o,i,s=""){return RN(S(),e,t,n,r,o,i,s)}function mue(e,t,n,r,o,i,s,a,c=""){return NN(S(),e,t,n,r,o,i,s,a,c)}function yue(e,t,n,r,o,i,s,a,c,u,l=""){return LN(S(),e,t,n,r,o,i,s,a,c,u,l)}function vue(e,t,n,r,o,i,s,a,c,u,l,f,d=""){return jN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d)}function bue(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h=""){return FN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d,p,h)}function _ue(e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y=""){return qN(S(),e,t,n,r,o,i,s,a,c,u,l,f,d,p,h,m,y)}function wue(e){return CN(S(),e)}function Eue(e,t,n){let r=Dt()+e,o=S();return o[r]===xe?Hn(o,r,t(n,o)):Za(o,r)}function eC(e,t,n){let r=fe();r.firstCreatePass&&XN(t,r.data,r.blueprint,on(e),n)}function XN(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let i=0;i<e.length;i++)XN(e[i],t,n,r,o);else{let i=fe(),s=S(),a=ce(),c=or(e)?e:se(e.provide),u=X_(e);if(ngDevMode){let p=new We(a,s);ta(p,c,()=>{lh(e,o)})}let l=a.providerIndexes&1048575,f=a.directiveStart,d=a.providerIndexes>>20;if(or(e)||!e.multi){let p=new Uo(u,o,Ya,ngDevMode?tL(e):null),h=uw(c,t,o?l:l+d,f);h===-1?(yw(_g(a,s),i,c),cw(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p)}else{let p=uw(c,t,l+d,f),h=uw(c,t,l,l+d),m=p>=0&&n[p],y=h>=0&&n[h];if(o&&!y||!o&&!m){yw(_g(a,s),i,c);let v=Iue(o?xue:Sue,n.length,o,r,u,e);!o&&y&&(n[h].providerFactory=v),cw(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)}else{let v=eL(n[o?h:p],u,!o&&r);cw(i,e,p>-1?p:h,v)}!o&&r&&y&&n[h].componentProviders++}}}function cw(e,t,n,r){let o=or(t),i=Q_(t);if(o||i){let c=(i?se(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){ngDevMode&&F(r,"indexInFactory when registering multi factory destroy hook");let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function eL(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function uw(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function Sue(e,t,n,r,o){return IE(this.multi,[])}function xue(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Tu(r,r[x],this.providerFactory.index,o);s=c.slice(0,a),IE(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],IE(i,s);return s}function IE(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Iue(e,t,n,r,o,i){let s=new Uo(e,n,Ya,ngDevMode?tL(i):null);return s.multi=[],s.index=t,s.componentProviders=0,eL(s,o,r&&!n),s}function tL(e){return Array.isArray(e)?null:or(e)?e.name:Q_(e)?e.provide instanceof H?`('${e.provide.toString()}':${e.useClass.name})`:e.useClass.name:e.provide instanceof H?e.provide.toString():typeof e.provide=="string"?e.provide:null}function Aue(e,t){return n=>{n.providersResolver=(r,o)=>eC(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>eC(r,o?o(t):t,!0))}}function Tue(e){return t=>{e.length<1||(t.getExternalStyles=n=>e.map(o=>o+"?ngcomp"+(n?"="+encodeURIComponent(n):"")+"&e="+t.encapsulation))}}function Mue(e,t,n){let r=e.\u0275cmp;r.directiveDefs=Bg(t,iR),r.pipeDefs=Bg(n,Kt)}function Oue(e,t){return Fr(()=>{let n=Xc(e);n.declarations=ig(t.declarations||Ae),n.imports=ig(t.imports||Ae),n.exports=ig(t.exports||Ae),t.bootstrap&&(n.bootstrap=ig(t.bootstrap)),Ra.registerNgModule(e,t)})}function ig(e){if(typeof e=="function")return e;let t=Wt(e);return t.some(Yc)?()=>t.map(se).map(tC):t.map(tC)}function tC(e){return mS(e)?e.ngModule:e}function Pue(e,t){let n=Dt()+e,r=S();return r[n]===xe?Hn(r,n,t()):Za(r,n)}function Cue(e,t,n){return nL(S(),Dt(),e,t,n)}function Due(e,t,n,r){return rL(S(),Dt(),e,t,n,r)}function kue(e,t,n,r,o){return oL(S(),Dt(),e,t,n,r,o)}function Rue(e,t,n,r,o,i,s){return iL(S(),Dt(),e,t,n,r,o,i)}function Nue(e,t,n,r,o,i,s){let a=Dt()+e,c=S(),u=An(c,a,n,r,o,i);return et(c,a+4,s)||u?Hn(c,a+5,t(n,r,o,i,s)):Za(c,a+5)}function Lue(e,t,n,r,o,i,s,a){let c=Dt()+e,u=S(),l=An(u,c,n,r,o,i);return ji(u,c+4,s,a)||l?Hn(u,c+6,t(n,r,o,i,s,a)):Za(u,c+6)}function jue(e,t,n,r,o,i,s,a,c){let u=Dt()+e,l=S(),f=An(l,u,n,r,o,i);return Em(l,u+4,s,a,c)||f?Hn(l,u+7,t(n,r,o,i,s,a,c)):Za(l,u+7)}function Fue(e,t,n,r,o,i,s,a,c,u){let l=Dt()+e,f=S(),d=An(f,l,n,r,o,i);return An(f,l+4,s,a,c,u)||d?Hn(f,l+8,t(n,r,o,i,s,a,c,u)):Za(f,l+8)}function que(e,t,n){return sL(S(),Dt(),e,t,n)}function sl(e,t){ngDevMode&&ct(e,t);let n=e[t];return n===xe?void 0:n}function nL(e,t,n,r,o,i){let s=t+n;return et(e,s,o)?Hn(e,s+1,i?r.call(i,o):r(o)):sl(e,s+1)}function rL(e,t,n,r,o,i,s){let a=t+n;return ji(e,a,o,i)?Hn(e,a+2,s?r.call(s,o,i):r(o,i)):sl(e,a+2)}function oL(e,t,n,r,o,i,s,a){let c=t+n;return Em(e,c,o,i,s)?Hn(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):sl(e,c+3)}function iL(e,t,n,r,o,i,s,a,c){let u=t+n;return An(e,u,o,i,s,a)?Hn(e,u+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):sl(e,u+4)}function sL(e,t,n,r,o,i){let s=t+n,a=!1;for(let c=0;c<o.length;c++)et(e,s++,o[c])&&(a=!0);return a?Hn(e,s,r.apply(i,o)):sl(e,s)}function Bue(e,t){let n=fe(),r,o=e+Z;n.firstCreatePass?(r=Uue(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Io(r.type,!0)),s;ngDevMode&&(s=jt({injector:new We(ce(),S()),token:r.type}));let a=$t(Ya);try{let c=bg(!1),u=i();return bg(c),su(n,S(),o,u),u}finally{$t(a),ngDevMode&&jt(s)}}function Uue(e,t){if(t){ngDevMode&&t.filter(r=>r.name===e).length>1&&console.warn(bt(313,Hue(e)));for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}if(ngDevMode)throw new D(-302,$ue(e))}function Hue(e){let t=S(),r=t[at][Te],o=nm(t),i=r?` in the '${r.constructor.name}' component`:"";return`Multiple pipes match the name \`${e}\`${i}. ${`check ${o?"'@Component.imports' of this component":"the imports of this module"}`}`}function $ue(e){let t=S(),r=t[at][Te],o=nm(t),i=r?` in the '${r.constructor.name}' component`:"";return`The pipe '${e}' could not be found${i}. ${`Verify that it is ${o?"included in the '@Component.imports' of this component":"declared or imported in this module"}`}`}function Kue(e,t,n){let r=e+Z,o=S(),i=Ro(o,r);return al(o,r)?nL(o,Dt(),t,i.transform,n,i):i.transform(n)}function Wue(e,t,n,r){let o=e+Z,i=S(),s=Ro(i,o);return al(i,o)?rL(i,Dt(),t,s.transform,n,r,s):s.transform(n,r)}function Vue(e,t,n,r,o){let i=e+Z,s=S(),a=Ro(s,i);return al(s,i)?oL(s,Dt(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function Gue(e,t,n,r,o,i){let s=e+Z,a=S(),c=Ro(a,s);return al(a,s)?iL(a,Dt(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function zue(e,t,n){let r=e+Z,o=S(),i=Ro(o,r);return al(o,r)?sL(o,Dt(),t,i.transform,n,i):i.transform.apply(i,n)}function al(e,t){return e[x].data[t].pure}function Yue(e,t){return ym(e,t)}function Zue(e,t){return()=>{try{return Ra.getComponentDependencies(e,t).dependencies}catch(n){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,n),n}}}function Que(e,t){let n=_e(e);n!==null&&(n.debugInfo=t)}function Jue(e,t,n){let r=`./@ng/component?c=${e}&t=${encodeURIComponent(t)}`;return new URL(r,n).href}function Xue(e,t,n,r,o=null,i=null){ngDevMode&&zE(e);let s=_e(e);t.apply(null,[e,n,...r]);let{newDef:a,oldDef:c}=ele(s,_e(e));if(e[Cr]=a,c.tView){let u=Jee().values();for(let l of u)lr(l)&&l[tt]===null&&mg(o,i,a,c,l)}}function ele(e,t){let n={...e},r=Object.assign(e,t,{directiveDefs:n.directiveDefs,pipeDefs:n.pipeDefs,setInput:n.setInput,type:n.type});return ngDevMode&&re(r,e,"Expected definition to be merged in place"),{newDef:r,oldDef:n}}function mg(e,t,n,r,o){ngDevMode&&F(r.tView,"Expected a component definition that has been instantiated at least once");let i=o[x];if(i===r.tView){ngDevMode&&zE(r.type),nle(e,t,n,r,o);return}for(let s=Z;s<i.bindingStartIndex;s++){let a=o[s];if(Ot(a)){nt(a[Xe])&&mg(e,t,n,r,a[Xe]);for(let c=qe;c<a.length;c++)mg(e,t,n,r,a[c])}else nt(a)&&mg(e,t,n,r,a)}}function tle(e,t){e.componentReplaced?.(t.id)}function nle(e,t,n,r,o){let i=o[Te],s=o[Xe],a=o[tt];ngDevMode&&an(a);let c=o[_t];ngDevMode&&lt(c,2),ngDevMode&&tn(n,r,"Expected different component definition");let u=o[Se].get(Ye,null),l=()=>{if(r.encapsulation===Un.ShadowDom||r.encapsulation===Un.ExperimentalIsolatedShadowDom){let h=s.cloneNode(!1);s.replaceWith(h),s=h}let f=LD(n),d=rm(a,f,i,QE(n),s,c,null,null,null,null,null);rle(a,o,d,c.index),Xu(o[x],o),ju(o);let p=o[Vt].rendererFactory;tle(p,r),d[pe]=p.createRenderer(s,n),WD(o[x],o),ole(c),el(f,d,i),pk(f,d,f.template,i)};u===null?nC(e,t,l):u.run(()=>nC(e,t,l))}function nC(e,t,n){try{n()}catch(r){let o=r;if(t!==null&&o.message){let i=o.message+(o.stack?`
84
+ `+o.stack:"");e?.hot?.send?.("angular:invalidate",{id:t,message:i,error:!0})}throw r}}function rle(e,t,n,r){for(let o=Z;o<e[x].bindingStartIndex;o++){let i=e[o];if((nt(i)||Ot(i))&&i[Mt]===t){i[Mt]=n;break}}e[Co]===t&&(e[Co]=n),e[ru]===t&&(e[ru]=n),n[Mt]=t[Mt],t[Mt]=null,e[r]=n}function ole(e){if(e.projection!==null){for(let t of e.projection)bC(t)&&(t.projectionNext=null,t.flags&=-3);e.projection=null}}var jr={\u0275\u0275animateEnter:dg,\u0275\u0275animateEnterListener:pg,\u0275\u0275animateLeave:hg,\u0275\u0275animateLeaveListener:fE,\u0275\u0275attribute:FR,\u0275\u0275defineComponent:cie,\u0275\u0275defineDirective:fie,\u0275\u0275defineInjectable:Fe,\u0275\u0275defineInjector:Zc,\u0275\u0275defineNgModule:IS,\u0275\u0275definePipe:die,\u0275\u0275directiveInject:Ya,\u0275\u0275getInheritedFactory:Fee,\u0275\u0275inject:Tt,\u0275\u0275injectAttribute:CE,\u0275\u0275invalidFactory:doe,\u0275\u0275invalidFactoryDep:Ah,\u0275\u0275templateRefExtractor:Yue,\u0275\u0275resetView:_0,\u0275\u0275HostDirectivesFeature:gie,\u0275\u0275NgOnChangesFeature:vee,\u0275\u0275ControlFeature:hie,\u0275\u0275ProvidersFeature:Aue,\u0275\u0275InheritDefinitionFeature:uR,\u0275\u0275ExternalStylesFeature:Tue,\u0275\u0275nextContext:Tce,\u0275\u0275namespaceHTML:R0,\u0275\u0275namespaceMathML:k0,\u0275\u0275namespaceSVG:D0,\u0275\u0275enableBindings:m0,\u0275\u0275disableBindings:y0,\u0275\u0275elementStart:Wg,\u0275\u0275elementEnd:LS,\u0275\u0275element:HR,\u0275\u0275elementContainerStart:qS,\u0275\u0275elementContainerEnd:Im,\u0275\u0275domElement:$R,\u0275\u0275domElementStart:jS,\u0275\u0275domElementEnd:FS,\u0275\u0275domElementContainer:GR,\u0275\u0275domElementContainerStart:BS,\u0275\u0275domElementContainerEnd:VR,\u0275\u0275domTemplate:dR,\u0275\u0275domListener:dN,\u0275\u0275elementContainer:WR,\u0275\u0275pureFunction0:Pue,\u0275\u0275pureFunction1:Cue,\u0275\u0275pureFunction2:Due,\u0275\u0275pureFunction3:kue,\u0275\u0275pureFunction4:Rue,\u0275\u0275pureFunction5:Nue,\u0275\u0275pureFunction6:Lue,\u0275\u0275pureFunction7:jue,\u0275\u0275pureFunction8:Fue,\u0275\u0275pureFunctionV:que,\u0275\u0275getCurrentView:kae,\u0275\u0275restoreView:b0,\u0275\u0275listener:lN,\u0275\u0275projection:Pce,\u0275\u0275syntheticHostProperty:ZR,\u0275\u0275syntheticHostListener:fN,\u0275\u0275pipeBind1:Kue,\u0275\u0275pipeBind2:Wue,\u0275\u0275pipeBind3:Vue,\u0275\u0275pipeBind4:Gue,\u0275\u0275pipeBindV:zue,\u0275\u0275projectionDef:Oce,\u0275\u0275domProperty:YR,\u0275\u0275ariaProperty:jR,\u0275\u0275property:UR,\u0275\u0275control:Ooe,\u0275\u0275controlCreate:Toe,\u0275\u0275pipe:Bue,\u0275\u0275queryRefresh:Dce,\u0275\u0275queryAdvance:Rce,\u0275\u0275viewQuery:hN,\u0275\u0275viewQuerySignal:mN,\u0275\u0275loadQuery:kce,\u0275\u0275contentQuery:pN,\u0275\u0275contentQuerySignal:gN,\u0275\u0275reference:Nce,\u0275\u0275classMap:Zce,\u0275\u0275styleMap:zce,\u0275\u0275styleProp:EN,\u0275\u0275classProp:SN,\u0275\u0275advance:Fne,\u0275\u0275template:fR,\u0275\u0275conditional:Iae,\u0275\u0275conditionalCreate:xae,\u0275\u0275conditionalBranchCreate:NS,\u0275\u0275defer:Gse,\u0275\u0275deferWhen:zse,\u0275\u0275deferOnIdle:Jse,\u0275\u0275deferOnImmediate:tae,\u0275\u0275deferOnTimer:oae,\u0275\u0275deferOnHover:aae,\u0275\u0275deferOnInteraction:lae,\u0275\u0275deferOnViewport:pae,\u0275\u0275deferPrefetchWhen:Yse,\u0275\u0275deferPrefetchOnIdle:Xse,\u0275\u0275deferPrefetchOnImmediate:nae,\u0275\u0275deferPrefetchOnTimer:iae,\u0275\u0275deferPrefetchOnHover:cae,\u0275\u0275deferPrefetchOnInteraction:fae,\u0275\u0275deferPrefetchOnViewport:hae,\u0275\u0275deferHydrateWhen:Zse,\u0275\u0275deferHydrateNever:Qse,\u0275\u0275deferHydrateOnIdle:eae,\u0275\u0275deferHydrateOnImmediate:rae,\u0275\u0275deferHydrateOnTimer:sae,\u0275\u0275deferHydrateOnHover:uae,\u0275\u0275deferHydrateOnInteraction:dae,\u0275\u0275deferHydrateOnViewport:gae,\u0275\u0275deferEnableTimerScheduling:Vie,\u0275\u0275repeater:Oae,\u0275\u0275repeaterCreate:Tae,\u0275\u0275repeaterTrackByIndex:Aae,\u0275\u0275repeaterTrackByIdentity:qR,\u0275\u0275componentInstance:Eae,\u0275\u0275text:sue,\u0275\u0275textInterpolate:BN,\u0275\u0275textInterpolate1:HS,\u0275\u0275textInterpolate2:UN,\u0275\u0275textInterpolate3:HN,\u0275\u0275textInterpolate4:$N,\u0275\u0275textInterpolate5:KN,\u0275\u0275textInterpolate6:WN,\u0275\u0275textInterpolate7:VN,\u0275\u0275textInterpolate8:GN,\u0275\u0275textInterpolateV:zN,\u0275\u0275i18n:Sce,\u0275\u0275i18nAttributes:xce,\u0275\u0275i18nExp:uN,\u0275\u0275i18nStart:aN,\u0275\u0275i18nEnd:cN,\u0275\u0275i18nApply:Ice,\u0275\u0275i18nPostprocess:Ace,\u0275\u0275resolveWindow:bne,\u0275\u0275resolveDocument:_ne,\u0275\u0275resolveBody:wne,\u0275\u0275setComponentScope:Mue,\u0275\u0275setNgModuleScope:Oue,\u0275\u0275registerNgModuleType:nR,\u0275\u0275getComponentDepsFactory:Zue,\u0275setClassDebugInfo:Que,\u0275\u0275declareLet:JN,\u0275\u0275storeLet:uue,\u0275\u0275arrowFunction:Eue,\u0275\u0275readContextLet:lue,\u0275\u0275attachSourceLocations:fue,\u0275\u0275interpolate:due,\u0275\u0275interpolate1:pue,\u0275\u0275interpolate2:hue,\u0275\u0275interpolate3:gue,\u0275\u0275interpolate4:mue,\u0275\u0275interpolate5:yue,\u0275\u0275interpolate6:vue,\u0275\u0275interpolate7:bue,\u0275\u0275interpolate8:_ue,\u0275\u0275interpolateV:wue,\u0275\u0275sanitizeHtml:ID,\u0275\u0275sanitizeStyle:AD,\u0275\u0275sanitizeResourceUrl:GE,\u0275\u0275sanitizeScript:MD,\u0275\u0275validateAttribute:CD,\u0275\u0275sanitizeUrl:TD,\u0275\u0275sanitizeUrlOrResourceUrl:lne,\u0275\u0275trustConstantHtml:ane,\u0275\u0275trustConstantResourceUrl:cne,forwardRef:zc,resolveForwardRef:se,\u0275\u0275twoWayProperty:YN,\u0275\u0275twoWayBindingSet:cue,\u0275\u0275twoWayListener:ZN,\u0275\u0275replaceMetadata:Xue,\u0275\u0275getReplaceMetadataURL:Jue},vu=null;function aL(e){if(vu!==null){if(e.defaultEncapsulation!==vu.defaultEncapsulation){ngDevMode&&console.error("Provided value for `defaultEncapsulation` can not be changed once it has been set.");return}if(e.preserveWhitespaces!==vu.preserveWhitespaces){ngDevMode&&console.error("Provided value for `preserveWhitespaces` can not be changed once it has been set.");return}}vu=e}function ile(){return vu}var yg=[];function sle(e,t){yg.push({moduleType:e,ngModule:t})}var lw=!1;function ale(){if(!lw){lw=!0;try{for(let e=yg.length-1;e>=0;e--){let{moduleType:t,ngModule:n}=yg[e];n.declarations&&n.declarations.every(cL)&&(yg.splice(e,1),dle(t,n))}}finally{lw=!1}}}function cL(e){return Array.isArray(e)?e.every(cL):!!se(e)}function cle(e,t={}){ule(e,t),t.id!==void 0&&nR(e,t.id),sle(e,t)}function ule(e,t,n=!1){ngDevMode&&F(e,"Required value moduleType"),ngDevMode&&F(t,"Required value ngModule");let r=Wt(t.declarations||Ae),o=null;Object.defineProperty(e,Eh,{configurable:!0,get:()=>{if(o===null){if(ngDevMode&&t.imports&&t.imports.indexOf(e)>-1)throw new Error(`'${ge(e)}' module can't import itself`);o=yn({usage:0,kind:"NgModule",type:e}).compileNgModule(jr,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Wt(t.bootstrap||Ae).map(se),declarations:r.map(se),imports:Wt(t.imports||Ae).map(se).map(iC),exports:Wt(t.exports||Ae).map(se).map(iC),schemas:t.schemas?Wt(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])}return o}});let i=null;Object.defineProperty(e,rr,{get:()=>{if(i===null){let a=yn({usage:0,kind:"NgModule",type:e});i=a.compileFactory(jr,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Jg(e),target:a.FactoryTarget.NgModule,typeArgumentCount:0})}return i},configurable:!!ngDevMode});let s=null;Object.defineProperty(e,qc,{get:()=>{if(s===null){ngDevMode&&Zg(e,n);let a={name:e.name,type:e,providers:t.providers||Ae,imports:[(t.imports||Ae).map(se),(t.exports||Ae).map(se)]};s=yn({usage:0,kind:"NgModule",type:e}).compileInjector(jr,`ng:///${e.name}/\u0275inj.js`,a)}return s},configurable:!!ngDevMode})}function lle(e,t){let n=`Unexpected "${ge(e)}" found in the "declarations" array of the`,r=`"${ge(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`;return`${n} ${t}, ${r}`}function Zg(e,t,n){if(oC.get(e)||Dr(e))return;oC.set(e,!0),e=se(e);let r;if(n){if(r=Fn(e),!r)throw new Error(`Unexpected value '${e.name}' imported by the module '${n.name}'. Please add an @NgModule annotation.`)}else r=Xc(e);let o=[],i=vr(r.declarations),s=vr(r.imports);Wt(s).map(rC).forEach(w=>{v(w,e),Zg(w,!1,e)});let a=vr(r.exports);i.forEach(l),i.forEach(f),i.forEach(w=>d(w,e));let c=[...i.map(se),...Wt(s.map(uL)).map(se)];a.forEach(p),i.forEach(w=>h(w,t));let u=fle(e,"NgModule");if(u&&(u.imports&&Wt(u.imports).map(rC).forEach(w=>{v(w,e),Zg(w,!1,e)}),u.bootstrap&&_i(u.bootstrap,y),u.bootstrap&&_i(u.bootstrap,m)),o.length)throw new Error(o.join(`
85
+ `));function l(w){w=se(w),_e(w)||dt(w)||Kt(w)||o.push(`Unexpected value '${ge(w)}' declared by the module '${ge(e)}'. Please add a @Pipe/@Directive/@Component annotation.`)}function f(w){w=se(w);let A=dt(w);!_e(w)&&A&&A.selectors.length==0&&o.push(`Directive ${ge(w)} has no selector, please add it!`)}function d(w,A){if(w=se(w),(_e(w)||dt(w)||Kt(w))?.standalone){let j=`"${ge(A)}" NgModule`;o.push(lle(w,j))}}function p(w){w=se(w);let A=_e(w)&&"component"||dt(w)&&"directive"||Kt(w)&&"pipe";A&&c.lastIndexOf(w)===-1&&o.push(`Can't export ${A} ${ge(w)} from ${ge(e)} as it was neither declared nor imported!`)}function h(w,A){w=se(w);let P=fw.get(w);if(P&&P!==e){if(!A){let j=[P,e].map(ge).sort();o.push(`Type ${ge(w)} is part of the declarations of 2 modules: ${j[0]} and ${j[1]}! Please consider moving ${ge(w)} to a higher module that imports ${j[0]} and ${j[1]}. You can also create a new NgModule that exports and includes ${ge(w)} then import that NgModule in ${j[0]} and ${j[1]}.`)}}else fw.set(w,e)}function m(w){w=se(w),!fw.get(w)&&!Dr(w)&&o.push(`Component ${ge(w)} is not part of any NgModule or the module has not been imported into your module.`)}function y(w){w=se(w),_e(w)||o.push(`${ge(w)} cannot be used as an entry component.`),Dr(w)&&o.push(`The \`${ge(w)}\` class is a standalone component, which can not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` function for bootstrap instead.`)}function v(w,A){w=se(w);let P=_e(w)||dt(w);if(P!==null&&!P.standalone)throw new Error(`Unexpected directive '${w.name}' imported by the module '${A.name}'. Please add an @NgModule annotation.`);let j=Kt(w);if(j!==null&&!j.standalone)throw new Error(`Unexpected pipe '${w.name}' imported by the module '${A.name}'. Please add an @NgModule annotation.`)}}function rC(e){return e=se(e),e.ngModule||e}function fle(e,t){let n=null;return r(e.__annotations__),r(e.decorators),n;function r(i){i&&i.forEach(o)}function o(i){n||(Object.getPrototypeOf(i).ngMetadataName==t?n=i:i.type&&Object.getPrototypeOf(i.type).ngMetadataName==t&&(n=i.args[0]))}}var fw=new WeakMap,oC=new WeakMap;function uL(e){e=se(e);let t=Fn(e);return t===null?[e]:Wt(vr(t.exports).map(n=>Fn(n)?(Zg(n,!1),uL(n)):n))}function dle(e,t){let n=Wt(t.declarations||Ae),r=fL(e);n.forEach(o=>{if(o=se(o),o.hasOwnProperty(Cr)){let s=_e(o);lL(s,r)}else!o.hasOwnProperty(vi)&&!o.hasOwnProperty(Jc)&&(o.ngSelectorScope=e)})}function lL(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(Cr)?_e(n):dt(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Kt(n)),e.schemas=t.schemas,e.tView=null}function fL(e){if(ya(e)){let t=Ra.getNgModuleScope(e);return{schemas:Xc(e).schemas||null,...t}}else if(Dr(e)){if((_e(e)||dt(e))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(Kt(e)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function iC(e){return mS(e)?e.ngModule:e}var dw=0;function ple(e,t){(typeof ngDevMode>"u"||ngDevMode)&&mh();let n=null;rie(e,t),hL(e,t),Object.defineProperty(e,Cr,{get:()=>{if(n===null){let r=yn({usage:0,kind:"component",type:e});if(eR(t)){let l=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&l.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&l.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&l.push(` - styleUrl: ${t.styleUrl}`),l.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(l.join(`
86
+ `))}let o=ile(),i=t.preserveWhitespaces;i===void 0&&(o!==null&&o.preserveWhitespaces!==void 0?i=o.preserveWhitespaces:i=!1);let s=t.encapsulation;s===void 0&&(o!==null&&o.defaultEncapsulation!==void 0?s=o.defaultEncapsulation:s=Un.Emulated);let a=t.templateUrl||`ng:///${e.name}/template.html`,c=gL(e,t),u={...c,typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:i,styles:typeof t.styles=="string"?[t.styles]:t.styles||Ae,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,viewProviders:t.viewProviders||null,hasDirectiveDependencies:!c.isStandalone||t.imports!=null&&t.imports.length>0};dw++;try{if(u.usesInheritance&&mL(e),n=r.compileComponent(jr,a,u),u.isStandalone){let l=Wt(t.imports||Ae),{directiveDefs:f,pipeDefs:d}=hle(e,l);n.directiveDefs=f,n.pipeDefs=d,n.dependencies=()=>l.map(se)}}finally{dw--}if(dw===0&&ale(),gle(e)){let l=fL(e.ngSelectorScope);lL(n,l)}if(t.schemas)if(u.isStandalone)n.schemas=t.schemas;else throw new Error(`The 'schemas' was specified for the ${ge(e)} but is only valid on a component that is standalone.`);else u.isStandalone&&(n.schemas=[])}return n},set:r=>{n=r},configurable:!!ngDevMode})}function hle(e,t){return{directiveDefs:()=>{if(ngDevMode)for(let i of t)Ww(i,e);return wu(e)?[...Ra.getStandaloneComponentScope(e,t).compilation.directives].map(i=>_e(i)||dt(i)).filter(i=>i!==null):[]},pipeDefs:()=>{if(ngDevMode)for(let i of t)Ww(i,e);return wu(e)?[...Ra.getStandaloneComponentScope(e,t).compilation.pipes].map(i=>Kt(i)).filter(i=>i!==null):[]}}}function gle(e){return e.ngSelectorScope!==void 0}function dL(e,t){let n=null;hL(e,t||{}),Object.defineProperty(e,vi,{get:()=>{if(n===null){let r=pL(e,t||{});n=yn({usage:0,kind:"directive",type:e}).compileDirective(jr,r.sourceMapUrl,r.metadata)}return n},configurable:!!ngDevMode})}function pL(e,t){let n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=yn({usage:0,kind:"directive",type:e}),i=gL(e,t);return i.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),i.usesInheritance&&mL(e),{metadata:i,sourceMapUrl:r}}function hL(e,t){let n=null;Object.defineProperty(e,rr,{get:()=>{if(n===null){let r=pL(e,t),o=yn({usage:0,kind:"directive",type:e});n=o.compileFactory(jr,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Jg(e),target:o.FactoryTarget.Directive})}return n},configurable:!!ngDevMode})}function mle(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function gL(e,t){let n=DE(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:t.selector!==void 0?t.selector:null,host:t.host||pn,propMetadata:r,inputs:t.inputs||Ae,outputs:t.outputs||Ae,queries:sC(e,r,yL),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},controlCreate:null,typeSourceSpan:null,usesInheritance:!mle(e),exportAs:ble(t.exportAs),providers:t.providers||null,viewQueries:sC(e,r,vL),isStandalone:t.standalone===void 0?!0:!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map(o=>typeof o=="function"?{directive:o}:o)||null}}function mL(e){let t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!dt(n)&&!_e(n)&&wle(n)&&dL(n,null),n=Object.getPrototypeOf(n)}function yle(e){return typeof e=="string"?_L(e):se(e)}function vle(e,t){return{propertyName:e,predicate:yle(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal}}function sC(e,t,n){let r=[],o=[];for(let i in t)if(t.hasOwnProperty(i)){let s=t[i];s.forEach(a=>{if(n(a)){if(!a.selector)throw new Error(`Can't construct a query for the property "${i}" of "${ge(e)}" since the query selector wasn't defined.`);if(s.some(bL))throw new Error("Cannot combine @Input decorators with query decorators");let c=vle(i,a);c.isSignal?r.push(c):o.push(c)}})}return[...r,...o]}function ble(e){return e===void 0?null:_L(e)}function yL(e){let t=e.ngMetadataName;return t==="ContentChild"||t==="ContentChildren"}function vL(e){let t=e.ngMetadataName;return t==="ViewChild"||t==="ViewChildren"}function bL(e){return e.ngMetadataName==="Input"}function _L(e){return e.split(",").map(t=>t.trim())}var _le=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function wle(e){let t=DE();if(_le.some(r=>t.hasLifecycleHook(e,r)))return!0;let n=t.propMetadata(e);for(let r in n){let o=n[r];for(let i=0;i<o.length;i++){let s=o[i],a=s.ngMetadataName;if(bL(s)||yL(s)||vL(s)||a==="Output"||a==="HostBinding"||a==="HostListener")return!0}}return!1}function Ele(e,t){let n=null,r=null;Object.defineProperty(e,rr,{get:()=>{if(r===null){let o=aC(e,t),i=yn({usage:0,kind:"pipe",type:o.type});r=i.compileFactory(jr,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Jg(e),target:i.FactoryTarget.Pipe})}return r},configurable:!!ngDevMode}),Object.defineProperty(e,Jc,{get:()=>{if(n===null){let o=aC(e,t);n=yn({usage:0,kind:"pipe",type:o.type}).compilePipe(jr,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!!ngDevMode})}function aC(e,t){return{type:e,name:e.name,pipeName:t.name,pure:t.pure!==void 0?t.pure:!0,isStandalone:t.standalone===void 0?!0:!!t.standalone}}var Sle=Vu("Directive",(e={})=>e,void 0,void 0,(e,t)=>dL(e,t)),RIe=Vu("Component",(e={})=>({changeDetection:Ma.Eager,...e}),Sle,void 0,(e,t)=>ple(e,t)),NIe=Vu("Pipe",e=>({pure:!0,...e}),void 0,void 0,(e,t)=>Ele(e,t)),LIe=qr("Input",e=>e?typeof e=="string"?{alias:e}:e:{}),jIe=qr("Output",e=>({alias:e})),FIe=qr("HostBinding",e=>({hostPropertyName:e})),qIe=qr("HostListener",(e,t)=>({eventName:e,args:t})),wL=Vu("NgModule",e=>e,void 0,void 0,(e,t)=>cle(e,t)),AE=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},TE=class e{compileModuleSync(t){return new Bu(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),r=Fn(t),o=vr(r.declarations).reduce((i,s)=>{let a=_e(s);return a&&i.push(new Na(a)),i},[]);return new AE(n,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(TE,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var EL=new H(typeof ngDevMode<"u"&&ngDevMode?"compilerOptions":"");var cC=100,vg=0,ME=[];function xle(){if(vg++,cC-vg<5){let e=new Error().stack;e&&ME.push(e)}if(vg===cC)throw new D(103,`Angular could not stabilize because there were endless change notifications within the browser event loop. The stack from the last several notifications:
83
87
  `+ME.join(`
84
- `))}var $u=class e{applicationErrorHandler=z(Lr);appRef=z(Tn);taskService=z(jn);ngZone=z(Ye);zonelessEnabled=z(lu);tracing=z(Ka,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ku.Subscription;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($c):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(z(H0,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let t=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(t);return}this.switchToMicrotaskScheduler(),this.taskService.remove(t)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let t=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})})}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;(typeof ngDevMode>"u"||ngDevMode)&&(this.useMicrotaskScheduler?vle():(yg=0,ME.length=0));let n=this.useMicrotaskScheduler?wO:j0;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($c+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(t),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn($u,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);function bL(){return[{provide:Pr,useExisting:$u},{provide:Ye,useClass:Kc},{provide:lu,useValue:!0}]}function ble(){return typeof ngI18nClosureMode<"u"&&ngI18nClosureMode&&typeof goog<"u"&&goog.LOCALE!=="en"?goog.LOCALE:typeof $localize<"u"&&$localize.locale||ol}var $S=new H(typeof ngDevMode<"u"&&ngDevMode?"LocaleId":"",{factory:()=>z($S,{optional:!0,skipSelf:!0})||ble()}),MIe=new H(typeof ngDevMode<"u"&&ngDevMode?"DefaultCurrencyCode":"",{factory:()=>Nae}),OIe=new H(typeof ngDevMode<"u"&&ngDevMode?"Translations":""),PIe=new H(typeof ngDevMode<"u"&&ngDevMode?"TranslationsFormat":""),iC;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(iC||(iC={}));var Mm=class{destroyed=!1;listeners=null;errorHandler=z(Or,{optional:!0});destroyRef=z(Ln);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,ngDevMode&&"Unexpected subscription to destroyed `OutputRef`. The owning directive/component is destroyed.");return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(bt(953,ngDevMode&&"Unexpected emit for destroyed `OutputRef`. The owning directive/component is destroyed."));return}if(this.listeners===null)return;let n=te(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{te(n)}}};function KS(e,t){let n=_c(e,t?.equal);if(typeof ngDevMode<"u"&&ngDevMode){let r=t?.debugName;n[ze].debugName=r,n.toString=()=>`[Computed${r?" ("+r+")":""}: ${n()}]`}return n}var NL=gc(Rc(),1);var Lm=Symbol("InputSignalNode#UNSET"),LL={...Nl,transformFn:void 0,applyValueToInputSignal(e,t){us(e,t)}};function jL(e,t){let n=Object.create(LL);n.value=e,n.transformFn=t?.transform;function r(){if(is(n),n.value===Lm){let o=null;if(ngDevMode){let i=t?.debugName??t?.alias;o=`Input${i?` "${i}"`:""} is required but no value is available yet.`}throw new D(-950,o)}return n.value}return r[ze]=n,ngDevMode&&(r.toString=()=>`[Input Signal: ${r()}]`,n.debugName=t?.debugName),r}var _L;(function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"})(_L||(_L={}));var wL;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(wL||(wL={}));var EL;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(EL||(EL={}));var SL;(function(e){e.Angular="angular",e.ACX="acx",e.Wiz="wiz"})(SL||(SL={}));function xL(e,t){return ngDevMode&&hn(FL),jL(e,t)}function wle(e){return ngDevMode&&hn(FL),jL(Lm,e)}var FL=(xL.required=wle,xL);function IL(e,t){return ngDevMode&&hn(qL),SS(t)}function Ele(e,t){return ngDevMode&&hn(qL),xS(t)}var qL=(IL.required=Ele,IL);function AL(e,t){return ngDevMode&&hn(xle),SS(t)}function Sle(e,t){return ngDevMode&&hn(Ile),xS(t)}var xle=(AL.required=Sle,AL);function Ile(e,t){return Vk(t)}function BL(e,t){let n=Object.create(LL),r=new Mm;n.value=e;function o(){return is(n),TL(n.value),n.value}return o[ze]=n,o.asReadonly=Vh.bind(o),o.set=i=>{n.equal(n.value,i)||(us(n,i),r.emit(i))},o.update=i=>{TL(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,ngDevMode&&(o.toString=()=>`[Model Signal: ${o()}]`,n.debugName=t?.debugName),o}function TL(e){if(e===Lm)throw new D(952,ngDevMode&&"Model is required but no value is available yet.")}function ML(e,t){return ngDevMode&&hn(UL),BL(e,t)}function Ale(e){return ngDevMode&&hn(UL),BL(Lm,e)}var UL=(ML.required=Ale,ML),HL=!0,ec=class{},Q1e=qr("ContentChildren",(e,t={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:HL,...t}),ec),J1e=qr("ContentChild",(e,t={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...t}),ec),X1e=qr("ViewChildren",(e,t={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:HL,...t}),ec),eAe=qr("ViewChild",(e,t)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...t}),ec);function Tle(e,t,n){ngDevMode&&tO(n);let r=new qu(n);if(typeof ngJitMode<"u"&&!ngJitMode)return Promise.resolve(r);let o=e.get(vL,[]).concat(t);if(rL({defaultEncapsulation:OL(o.map(u=>u.defaultEncapsulation)),preserveWhitespaces:OL(o.map(u=>u.preserveWhitespaces))}),Qk())return Promise.resolve(r);let i=o.flatMap(u=>u.providers??[]);if(i.length===0)return Promise.resolve(r);let s=yn({usage:0,kind:"NgModule",type:n}),c=en.create({providers:i}).get(s.ResourceLoader);return Yk(u=>Promise.resolve(c.get(u))).then(()=>r)}function OL(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var WS=class e{zone=z(Ye);changeDetectionScheduler=z(Pr);applicationRef=z(Tn);applicationErrorHandler=z(Lr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(t){this.applicationErrorHandler(t)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(WS,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var Mle=new H(typeof ngDevMode>"u"||ngDevMode?"provideZoneChangeDetection token":"",{factory:()=>!1});var VS=class e{subscription=new NL.Subscription;initialized=!1;zone=z(Ye);pendingTasks=z(jn);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(VS,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var Ole=200,PL=1200,Om=class e{window=null;observer=null;options=z(HC);lcpImageUrl;start(){if(typeof ngServerMode<"u"&&ngServerMode||typeof PerformanceObserver>"u"||this.options?.disableImageSizeWarning&&this.options?.disableImageLazyLoadWarning)return;this.observer=this.initPerformanceObserver();let t=Vu(),n=t.defaultView;if(n){this.window=n;let r=()=>{setTimeout(this.scanImages.bind(this),Ole)},o=()=>{t.readyState==="complete"?r():this.window?.addEventListener("load",r,{once:!0})};typeof Zone<"u"?Zone.root.run(()=>o()):o()}}ngOnDestroy(){this.observer?.disconnect()}initPerformanceObserver(){if(typeof PerformanceObserver>"u")return null;let t=new PerformanceObserver(n=>{let r=n.getEntries();if(r.length===0)return;let i=r[r.length-1].element?.src??"";i.startsWith("data:")||i.startsWith("blob:")||(this.lcpImageUrl=i)});return t.observe({type:"largest-contentful-paint",buffered:!0}),t}scanImages(){let t=Vu().querySelectorAll("img"),n,r=!1;for(let o=0;o<t.length;o++){let i=t[o];i&&(this.options?.disableImageSizeWarning||!i.getAttribute("ng-img")&&this.isOversized(i)&&Cle(i.src),!this.options?.disableImageLazyLoadWarning&&this.lcpImageUrl&&i.src===this.lcpImageUrl&&(n=!0,(i.loading!=="lazy"||i.getAttribute("ng-img"))&&(r=!0)))}n&&!r&&this.lcpImageUrl&&!this.options?.disableImageLazyLoadWarning&&Ple(this.lcpImageUrl)}isOversized(t){if(!this.window)return!1;let n=[".svg"],r=(t.src||"").toLowerCase();if(n.some(m=>r.endsWith(m)))return!1;let o=this.window.getComputedStyle(t),i=parseFloat(o.getPropertyValue("width")),s=parseFloat(o.getPropertyValue("height")),a=o.getPropertyValue("box-sizing");if(o.getPropertyValue("object-fit")==="cover")return!1;if(a==="border-box"){let m=o.getPropertyValue("padding-top"),y=o.getPropertyValue("padding-right"),v=o.getPropertyValue("padding-bottom"),w=o.getPropertyValue("padding-left");i-=parseFloat(y)+parseFloat(w),s-=parseFloat(m)+parseFloat(v)}let u=t.naturalWidth,l=t.naturalHeight,f=this.window.devicePixelRatio*i,d=this.window.devicePixelRatio*s,p=u-f>=PL,h=l-d>=PL;return p||h}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Om,[{type:Ie,args:[{providedIn:"root"}]}],null,null);function Ple(e){console.warn(bt(-913,`An image with src ${e} is the Largest Contentful Paint (LCP) element but was given a "loading" value of "lazy", which can negatively impact application loading performance. This warning can be addressed by changing the loading value of the LCP image to "eager", or by using the NgOptimizedImage directive's prioritization utilities. For more information about addressing or disabling this warning, see ${hh}/NG0913`))}function Cle(e){console.warn(bt(-913,`An image with src ${e} has intrinsic file dimensions much larger than its rendered size. This can negatively impact application loading performance. For more information about addressing or disabling this warning, see ${hh}/NG0913`))}var Pm=new H(typeof ngDevMode<"u"&&ngDevMode?"PlatformDestroyListeners":""),Dle=new H(typeof ngDevMode<"u"&&ngDevMode?"ENABLE_ROOT_COMPONENT_BOOTSTRAP":"");function al(e){return!e.moduleRef}function kle(e){let t=al(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ye);return n.run(()=>{al(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Lr);(typeof ngDevMode>"u"||ngDevMode)&&t.get(U0)&&t.get(Mle)&&console.warn(bt(408,"Both provideZoneChangeDetection and provideZonelessChangeDetection are provided. This is likely a mistake. Update the application providers to use only one of the two."));let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),al(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Pm);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Pm);s.add(i),e.moduleRef.onDestroy(()=>{wu(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Nle(r,n,()=>{let i=t.get(jn),s=i.add(),a=t.get(Fa);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get($S,ol);if(zR(c||ol),!t.get(Dle,!0))return al(e)?t.get(Tn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if((typeof ngDevMode>"u"||ngDevMode)&&t.get(Om).start(),al(e)){let l=t.get(Tn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return $L?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var $L;function CL(){$L=Rle}function Rle(e,t){let n=e.injector.get(Tn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,ngDevMode&&`The module ${ke(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.push(e)}function Nle(e,t,n){try{let r=n();return CS(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var cl=class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,n){let r=[bL(),...n?.applicationProviders??[],SO,...ngDevMode?[BC]:[]],o=Xk(t.moduleType,this.injector,r);return CL(),kle({moduleRef:o,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,n=[]){let r=DS({},n);return CL(),Tle(this.injector,r,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,ngDevMode&&"The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(Pm,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||e)(Tt(en))};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(cl,[{type:Ie,args:[{providedIn:"platform"}]}],()=>[{type:en}],null);var XS=null;function Lle(e){if(ex())throw new D(400,ngDevMode&&"There can be only one platform. Destroy the previous one to create a new one.");AR(),TR(),XS=typeof ngServerMode>"u"||!ngServerMode?e:null;let t=e.get(cl);return Ble(e),t}function jle(e,t,n=[]){let r=`Platform: ${t}`,o=new H(r);return(i=[])=>{let s=ex();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??Lle(Fle(a,r))}return typeof ngServerMode<"u"&&ngServerMode?s:qle(o)}}function Fle(e=[],t){return en.create({name:t,providers:[{provide:J_,useValue:"platform"},{provide:Pm,useValue:new Set([()=>XS=null])},...e]})}function qle(e){let t=ex();if(!t)throw new D(-401,ngDevMode&&"No platform exists!");if((typeof ngDevMode>"u"||ngDevMode)&&!t.injector.get(e,null))throw new D(400,"A platform with a different configuration has been created. Please destroy it first.");return t}function ex(){return typeof ngServerMode<"u"&&ngServerMode?null:XS?.get(cl)??null}function Ble(e){let t=e.get(UC,null);Ph(e,()=>{t?.forEach(n=>n())})}var Ule=1e4;var tAe=Ule-1e3;var Cm=class{supports(t){return ju(t)}create(t){return new GS(t)}},Hle=(e,t)=>t,GS=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Hle}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<DL(r,o,i)?n:r,a=DL(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let d=0;d<u;d++){let p=d<i.length?i[d]:i[d]=0,h=p+d;l<=h&&h<u&&(i[d]=p+1)}let f=s.previousIndex;i[f]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!ju(t))throw new D(900,ngDevMode&&`Error trying to diff '${ke(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,kk(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new zS(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Dm),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Dm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},zS=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},YS=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Dm=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new YS,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function DL(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var km=class{supports(t){return t instanceof Map||_m(t)}create(){return new ZS}},ZS=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||_m(t)))throw new D(900,ngDevMode&&`Error trying to diff '${ke(t)}'. Only maps and objects are allowed`);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new QS(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},QS=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function kL(){return new Rm([new Cm])}var Rm=class e{factories;static \u0275prov=Fe({token:e,providedIn:"root",factory:kL});constructor(t){this.factories=t}static create(t,n){if(n!=null){let r=n.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let n=z(e,{optional:!0,skipSelf:!0});return e.create(t,n||kL())}}}find(t){let n=this.factories.find(r=>r.supports(t));if(n!=null)return n;throw new D(901,ngDevMode&&`Cannot find a differ supporting object '${t}' of type '${$le(t)}'`)}};function $le(e){return e.name||typeof e}function RL(){return new Nm([new km])}var Nm=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:RL});factories;constructor(t){this.factories=t}static create(t,n){if(n){let r=n.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let n=z(e,{optional:!0,skipSelf:!0});return e.create(t,n||RL())}}}find(t){let n=this.factories.find(r=>r.supports(t));if(n)return n;throw new D(901,ngDevMode&&`Cannot find a differ supporting object '${t}'`)}},Kle=[new km],Wle=[new Cm],nAe=new Rm(Wle),rAe=new Nm(Kle),oAe=jle(null,"core",[]),JS=class e{constructor(t){}static \u0275fac=function(n){return new(n||e)(Tt(Tn))};static \u0275mod=IS({type:e});static \u0275inj=Yc({})};(typeof ngDevMode>"u"||ngDevMode)&&vn(JS,[{type:yL}],()=>[{type:Tn}],null);var iAe=new H(typeof ngDevMode>"u"||ngDevMode?"REQUEST":"",{providedIn:"platform",factory:()=>null}),sAe=new H(typeof ngDevMode>"u"||ngDevMode?"RESPONSE_INIT":"",{providedIn:"platform",factory:()=>null}),aAe=new H(typeof ngDevMode>"u"||ngDevMode?"REQUEST_CONTEXT":"",{providedIn:"platform",factory:()=>null});function ul(e,t){let n=e[t];if(!n)throw new Error(`algorithm-suite: unsupported key algorithm ${t}`);return n}function jm(e,t,n,r){let o=ul(e,t)[n];if(!o)throw new Error(`algorithm-suite: ${t} cannot be used for ${r}`);return o}function KL(e,t){return jm(e,t,"sign","signing")}function WL(e,t){return jm(e,t,"signImport","signing")}function VL(e,t){return jm(e,t,"kx","key exchange")}function GL(e,t){return jm(e,t,"kxImport","key exchange")}function zL(e,t){return ul(e,t).generate}function YL(e,t){return ul(e,t).acceptsDerSignature===!0}function tx(e,t){return ul(e,t).oid}function ZL(e,t){let n=ul(e,t).pkcs8Prefix;if(!n)throw new Error(`algorithm-suite: ${t} has no raw pkcs8 prefix`);return n}var zle=48;function Yle(e){let t;try{t=atob(e)}catch{throw new Error("detectKeyAlgorithm: unknown or unsupported key algorithm (not base64 DER)")}let n=Math.min(t.length,zle),r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}function Zle(e,t){e:for(let n=0;n+t.length<=e.length;n++){for(let r=0;r<t.length;r++)if(e[n+r]!==t[r])continue e;return!0}return!1}function QL(e,t,n){let r=Yle(n);for(let o of t)if(Zle(r,tx(e,o)))return o;throw new Error("detectKeyAlgorithm: unknown or unsupported key algorithm")}var $r={Ed25519:{oid:[6,3,43,101,112],pkcs8Prefix:[48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32],generate:{name:"Ed25519"},sign:{name:"Ed25519"},signImport:{name:"Ed25519"}},X25519:{oid:[6,3,43,101,110],pkcs8Prefix:[48,46,2,1,0,48,5,6,3,43,101,110,4,34,4,32],spkiPrefix:[48,42,48,5,6,3,43,101,110,3,33,0],generate:{name:"X25519"},kx:{name:"X25519"},kxImport:{name:"X25519"}},"P-256":{oid:[6,7,42,134,72,206,61,2,1],generate:{name:"ECDSA",namedCurve:"P-256"},sign:{name:"ECDSA",hash:"SHA-256"},signImport:{name:"ECDSA",namedCurve:"P-256"},kx:{name:"ECDH"},kxImport:{name:"ECDH",namedCurve:"P-256"},acceptsDerSignature:!0}},JL=Object.keys($r);function nx(e){return KL($r,e)}function tc(e){return WL($r,e)}function XL(e){return VL($r,e)}function Vi(e){return GL($r,e)}function e2(e){return zL($r,e)}function t2(e){return YL($r,e)}function n2(e){return ZL($r,e)}var Qle={accept:["Ed25519","X25519","P-256"]};var yAe=new H("CRYPTO_POLICY",{providedIn:"root",factory:()=>Qle});function Kr(e){return QL($r,JL,e)}function ll(e){if(typeof e=="string")return Kr(e);if(rs(e))return e.algorithm;let{name:t,namedCurve:n}=e.algorithm,r=t==="ECDSA"||t==="ECDH"?n:t;if(!JL.includes(r))throw new Error(`keyAlgorithmOf: unsupported CryptoKey algorithm ${t}`);return r}function o2(e){return e.length!==64&&e.length>8&&e[0]===48}function i2(e){let t=2;if(e[t]!==2)throw new Error("Invalid DER: expected INTEGER for r");t++;let n=e[t++],r=t;e[r]===0&&n>32&&r++;let o=e.slice(r,t+n);if(t+=n,e[t]!==2)throw new Error("Invalid DER: expected INTEGER for s");t++;let i=e[t++],s=t;e[s]===0&&i>32&&s++;let a=e.slice(s,t+i),c=new Uint8Array(64);return c.set(r2(o),0),c.set(r2(a),32),c}function r2(e){if(e.length===32)return e;if(e.length>32)return e.slice(e.length-32);let t=new Uint8Array(32);return t.set(e,32-e.length),t}var Jle=e=>{let t=atob(e),n=new Uint8Array(new ArrayBuffer(t.length));for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},Xle=e=>{let t=new Uint8Array(e),n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)};async function Fm(e,t=Kr(e)){let n=tc(t),r=await crypto.subtle.importKey("pkcs8",Jle(e),n,!0,["sign"]),{kty:o,crv:i,x:s,y:a}=await crypto.subtle.exportKey("jwk",r);if(!s)throw new Error(`signPublicKeyFromSecretKey: ${t} secretKey \u304B\u3089\u516C\u958B\u9375\u3092\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093`);let c=await crypto.subtle.importKey("jwk",{kty:o,crv:i,x:s,y:a},n,!0,["verify"]);return Xle(await crypto.subtle.exportKey("spki",c))}var efe=32,s2=32,qm=Uint8Array.from(n2("X25519"));async function a2(e){let t=e.slice(e.length-efe),n=new Uint8Array(await crypto.subtle.digest("SHA-512",t));t.fill(0);let r=new Uint8Array(new ArrayBuffer(qm.length+s2));r.set(qm),r.set(n.subarray(0,s2),qm.length),n.fill(0);let o=qm.length;return r[o]&=248,r[o+31]&=127,r[o+31]|=64,r}var Vo=class{async generateIdentityKeySet(){let t=await this.generateSignKeyPair();return this.deriveIdentityKeySet(t.privateKey)}async deriveIdentityKeySet(t){let n=this.base64ToBytes(t),r=await Fm(t,"Ed25519"),o=await a2(n),i=await crypto.subtle.importKey("pkcs8",o,Vi("X25519"),!0,["deriveBits"]),s=await crypto.subtle.exportKey("jwk",i);if(!s.x)throw new Error("deriveIdentityKeySet: X25519 \u516C\u958B\u9375\u3092\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093");let a=await crypto.subtle.importKey("jwk",{kty:"OKP",crv:"X25519",x:s.x},Vi("X25519"),!0,[]);return{sign:{publicKey:r,privateKey:t,algorithm:"Ed25519"},kx:{publicKey:this.bufferToBase64(await crypto.subtle.exportKey("spki",a)),privateKey:this.bufferToBase64(o.buffer),algorithm:"X25519"},createdAt:new Date}}base64ToBytes(t){let n=atob(t),r=new Uint8Array(new ArrayBuffer(n.length));for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}async generateSignKeyPair(){return{...await this.generateRaw("Ed25519",["sign","verify"]),algorithm:"Ed25519"}}async generateRaw(t,n){let r=await crypto.subtle.generateKey(e2(t),!0,n);return{publicKey:this.bufferToBase64(await crypto.subtle.exportKey("spki",r.publicKey)),privateKey:this.bufferToBase64(await crypto.subtle.exportKey("pkcs8",r.privateKey)),createdAt:new Date}}async getPeerId(t){return yc(t.publicKey)}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};Vo=Qe([Ie()],Vo);function Gi(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return"["+e.map(r=>Gi(r)).join(",")+"]";let t=e;return"{"+Object.keys(t).sort().filter(r=>t[r]!==void 0).map(r=>JSON.stringify(r)+":"+Gi(t[r])).join(",")+"}"}var zi=class{async deriveSharedKey(t,n){let r=rs(t)?(await t.client.deriveBits(t.ref,this.base64ToBytes(n),256)).slice().buffer:await this.deriveLocalBits(t,n),o=await crypto.subtle.digest("SHA-256",r);return crypto.subtle.importKey("raw",o,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async deriveLocalBits(t,n){let r=ll(t),o=typeof t=="string"?await crypto.subtle.importKey("pkcs8",this.base64ToBytes(t),Vi(r),!1,["deriveBits"]):t,i=await crypto.subtle.importKey("spki",this.base64ToBytes(n),Vi(Kr(n)),!1,[]);return crypto.subtle.deriveBits({...XL(r),public:i},o,256)}async encryptBytes(t,n){let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,t);return{encrypted:this.bufferToBase64(o),iv:this.bufferToBase64(r.buffer)}}async decryptBytes(t,n,r){let o=await crypto.subtle.decrypt({name:"AES-GCM",iv:this.base64ToBytes(n)},r,this.base64ToBytes(t));return new Uint8Array(o)}async encrypt(t,n){return this.encryptBytes(new TextEncoder().encode(t),n)}async decrypt(t,n,r){return new TextDecoder().decode(await this.decryptBytes(t,n,r))}base64ToBuffer(t){return this.base64ToBytes(t).buffer}base64ToBytes(t){let n=atob(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};zi=Qe([Ie()],zi);var bn=class{async sha256(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}async toUuid(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r).slice(0,16);o[0]=32,o[1]=1,o[2]=0,o[3]=42,o[6]=o[6]&15|128,o[8]=o[8]&63|128;let i=Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join("");return[i.slice(0,8),i.slice(8,12),i.slice(12,16),i.slice(16,20),i.slice(20,32)].join("-")}};bn=Qe([Ie({providedIn:"root"})],bn);var Yi=class{async sign(t,n){let r=Gi(t),o=await this.createSignature(r,n);return{payload:t,signature:o}}async verify(t,n){try{let r=Gi(t.payload);return await this.verifySignature(r,t.signature,n)?{valid:!0,verifiedBy:n}:{valid:!1,error:"Signature verification failed"}}catch(r){return{valid:!1,error:`Verification error: ${r}`}}}validateTimestamp(t,n=S1){let o=(n.now?n.now():Date.now())-t;return o>=0&&o<=n.maxAgeMs}async createSignature(t,n){if(rs(n))return this.bufferToBase64((await n.client.sign(n.ref,new TextEncoder().encode(t))).slice().buffer);let r=ll(n),o=typeof n=="string"?await crypto.subtle.importKey("pkcs8",this.base64ToBytes(n),tc(r),!1,["sign"]):n,i=await crypto.subtle.sign(nx(r),o,new TextEncoder().encode(t));return this.bufferToBase64(i)}async verifySignature(t,n,r){let o=Kr(r),i=await crypto.subtle.importKey("spki",this.base64ToBytes(r),tc(o),!1,["verify"]),s=this.base64ToBytes(n),a=t2(o)&&o2(s)?i2(s):s;return crypto.subtle.verify(nx(o),i,a,new TextEncoder().encode(t))}base64ToBuffer(t){return this.base64ToBytes(t).buffer}base64ToBytes(t){let n=atob(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};Yi=Qe([Ie()],Yi);var Wr=class{async loadKeySet(t){let n=await this.loadSecretKey(t);return n?new Vo().deriveIdentityKeySet(n):null}async createKeySet(t){let n=await new Vo().generateIdentityKeySet();return await this.saveSecretKey(n.sign.privateKey,t),n}};Wr=Qe([Ie()],Wr);var Bm=class extends Wr{constructor(){super(...arguments);this.secretKeys=new Map}async saveSecretKey(n,r){this.secretKeys.set(r??"",n)}async loadSecretKey(n){return this.secretKeys.get(n??"")??null}async deleteSecretKey(n){this.secretKeys.delete(n??"")}async exists(n){return this.secretKeys.has(n??"")}};Bm=Qe([Ie()],Bm);var Um=class{constructor(){this.storage=z(Wr);this.identityKeySet=null;this.keyPair=null;this.peerId=null;this._initialized=No(!1);this.scope=null;this.pendingKeySet=null}getScope(){return this.scope}async useScope(t){this.scope===t&&this._initialized()||(this.scope=t,this.identityKeySet=null,this.keyPair=null,this.peerId=null,this._initialized.set(!1),await this.initialize())}async initialize(){if(this._initialized())return;let t=await this.ensureIdentityKeySet();this.keyPair={publicKey:t.sign.publicKey,privateKey:t.sign.privateKey,algorithm:t.sign.algorithm,createdAt:t.createdAt},this.peerId=await yc(t.sign.publicKey),this._initialized.set(!0)}async ensureIdentityKeySet(){if(this.identityKeySet)return this.identityKeySet;let t=this.scope,n=this.pendingKeySet;if(n&&n.scope===t)return n.promise;let r=this.loadOrCreateIdentityKeySet(t).finally(()=>{this.pendingKeySet?.promise===r&&(this.pendingKeySet=null)});return this.pendingKeySet={scope:t,promise:r},r}async loadOrCreateIdentityKeySet(t){let n=await this.storage.loadKeySet(t??void 0)??await this.storage.createKeySet(t??void 0);return this.scope===t&&(this.identityKeySet=n),n}getIdentityKeySet(){return this.identityKeySet}getKeyPair(){if(!this.keyPair)throw new Error("KeyManager not initialized");return this.keyPair}getPeerId(){if(!this.peerId)throw new Error("KeyManager not initialized");return this.peerId}isInitialized(){return this._initialized()}async waitForInitialization(t=1e4){if(this._initialized())return;let n=Date.now(),r=50;return new Promise((o,i)=>{let s=()=>{if(this._initialized()){o();return}if(Date.now()-n>t){i(new Error("KeyManager initialization timeout"));return}setTimeout(s,r)};s()})}async reset(){await this.storage.deleteSecretKey(this.scope??void 0),this.identityKeySet=null,this.keyPair=null,this.peerId=null,this._initialized.set(!1),await this.initialize()}async rotateKeyPair(){if(!this.keyPair)throw new Error("KeyManager not initialized");let t=await this.storage.createKeySet(this.scope??void 0);return this.identityKeySet=t,this.keyPair={publicKey:t.sign.publicKey,privateKey:t.sign.privateKey,algorithm:t.sign.algorithm,createdAt:t.createdAt},this.peerId=await yc(t.sign.publicKey),this.keyPair}};Um=Qe([Ie({providedIn:"root"})],Um);var $Te=BigInt(0),tfe=BigInt(1),KTe=BigInt(2),WTe=BigInt(8),VTe=BigInt(255),nfe=tfe<<BigInt(255),GTe=nfe-BigInt(19);var nMe=new zi,rMe=new TextEncoder;var AMe=new H("SIGNALING_CHANNELS");var TMe=new H("PRESENCE_VERIFIER");var LMe=new H("SIGNALING_MESSAGE_SENDER");var u2=new H("Logger"),Hm=class{debug(t,n){this.log(0,t,n)}info(t,n){this.log(1,t,n)}warn(t,n){this.log(2,t,n)}error(t,n,r){this.log(3,t,r,n)}fatal(t,n,r){this.log(4,t,r,n)}};Hm=Qe([Ie()],Hm);var rx=new H("LogFilter");var _Oe=new H("LoggingService"),fl=class{constructor(){this.loggers=z(u2,{optional:!0})??[];this.filter=z(rx,{optional:!0})}getLogger(t,n){let r=(...i)=>i.map(s=>{if(typeof s=="string")return s;if(s===void 0)return"undefined";if(s===null)return"null";let a=JSON.stringify(s);return a!==void 0?a:String(s)}).join(" "),o={component:t};return n?.package!=null&&(o.package=n.package),{log:(...i)=>this.log(1,r(...i),o),debug:(...i)=>this.log(0,r(...i),o),info:(...i)=>this.log(1,r(...i),o),warn:(...i)=>this.log(2,r(...i),o),error:(...i)=>this.log(3,r(...i),o),child:i=>this.getLogger(`${t}.${i}`,n)}}log(t,n,r,o){this.filter&&!this.filter(t,r)||this.loggers.forEach(i=>i.log(t,n,r,o))}close(){this.loggers.forEach(t=>t.close())}debug(t,n){this.log(0,t,n)}info(t,n){this.log(1,t,n)}warn(t,n){this.log(2,t,n)}error(t,n,r){this.log(3,t,r,n)}fatal(t,n,r){this.log(4,t,r,n)}setLogLevel(t){}setComponent(t){}};fl=Qe([Ie({providedIn:"root"})],fl);var ofe=null;var dl=()=>{},l2={log:dl,debug:dl,info:dl,warn:dl,error:dl,child:()=>l2};function ox(e,t){return ofe?.getLogger(e,t)??l2}var $m=class{constructor(){this.logger=ox("SignalingIdService");this.hashAdapter=z(bn)}async generateId(t){return await this.hashAdapter.toUuid(t)}async findPublicKeyByHash(t,n){for(let r of n)if(await this.generateId(r)===t)return r;return null}isHashedId(t){return/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(t)}};$m=Qe([Ie({providedIn:"root"})],$m);var _n={prod:{hasuraUrl:"https://graphql-prod.machina.at/v1/graphql",apiNextUrl:"https://api.machina.at",webServerUrl:"https://webkernel.machina.at",invoiceAppUrl:"https://presenter.machina.at/stable",appUrl:"https://machina.at"},stg:{hasuraUrl:"https://graphql-stg.machina.at/v1/graphql",apiNextUrl:"https://api.stg.machina.at",webServerUrl:"https://webkernel.machina.at",invoiceAppUrl:"https://presenter.machina.at/stable",appUrl:"https://machina.at/develop"}};var nc={PLANX_GRAPHQL_URL:_n.prod.hasuraUrl,PLANX_CLOUD_API_URL:_n.prod.apiNextUrl,PLANX_NOSTR_RELAYS:["wss://nosturn.machina.at","wss://nos.lol","wss://relay.snort.social","wss://relay.primal.net","wss://relay.mostr.pub","wss://yabu.me","wss://nostr.mom","wss://nostr.data.haus","wss://nostr-pub.wellorder.net","wss://nostr.mikoshi.de","wss://nostream.ocha.one"].join(",")};var KOe=nc.PLANX_NOSTR_RELAYS.split(",").map(e=>e.trim()).filter(e=>e.length>0);var f2="{version}",ife=7447,sfe=`ws://127.0.0.1:${ife}`,d2="http://localhost:5401/v1/graphql",p2="http://localhost:5406/api-next",h2="http://localhost:4301",g2={prod:{"hasura-endpoint":_n.prod.hasuraUrl,"api-next-url":`${_n.prod.apiNextUrl}/${f2}`,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":_n.prod.webServerUrl,"invoice-app-url":_n.prod.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},stg:{"hasura-endpoint":_n.stg.hasuraUrl,"api-next-url":`${_n.stg.apiNextUrl}/${f2}`,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":_n.stg.webServerUrl,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},local:{"hasura-endpoint":d2,"api-next-url":p2,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":h2,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},"local-emulator":{"hasura-endpoint":d2,"api-next-url":p2,"nostr-relays":sfe,"web-server-url":h2,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"localhost:9099","ice-servers":""}};var m2=gc(Rc(),1);var pl=class{constructor(){this._config={roles:["client"],origin:"cli-server",allowPeersPublicKeys:[],peerSessionOptions:{}};this._changes$=new m2.ReplaySubject(1);this.changes$=this._changes$.asObservable()}async peerId(){return this.current.identity?.peerId??""}async publicKey(){return this.current.identity?.publicKey??null}async shortServerId(){let t=this.current.identity?.peerId??"";return t?t.replace(/-/g,"").substring(8,16):""}async getWebRTCConfig(){return this.current}async setWebRTCConfig(t){this.write(t)}async updateWebRTCConfig(t){this.write(t(this.current))}async isConfigured(){return!!this.current.identity}async configure(t){this.write({...this.current,identity:t})}async initializeKeys(){}async waitForKeyInitialization(){}get current(){return this._config}getCurrentConfig(){return this._config}write(t){this._config=t,!this._changes$.observed&&typeof window<"u"&&console.warn("[PeerConfigStore] write with no subscriber \u2014 provideWebRTCConfigBridge may be missing in this entrypoint (PR #3922 trap)"),this._changes$.next(t)}};pl=Qe([Ie({providedIn:"root"})],pl);var ix=["session","transport","presentation","log","filesystem","config","storage","intelligence","computer","browser","explorer","egress","agent","github","nosturn","ingress","pages","workers"],y2=["session","transport","presentation","log","filesystem","config"],TPe=[...y2,"storage","intelligence","computer","browser","explorer","egress","agent","github","nosturn","ingress","pages","workers"],MPe=ix.filter(e=>!y2.includes(e));var v2="/apps";var CPe=new Set([...ix,"proxy","ingress","servers","peer","apps","s3"]);var b2="/ingress",UPe=[`${b2}/tcp`,`${b2}/udp`,v2];var SCe=new Yi,xCe=new bn;var DCe=new bn;var HCe=new bn;var w2;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(e);typeof n.Reflect>"u"?n.Reflect=e:r=o(n.Reflect,r),t(r);function o(i,s){return function(a,c){typeof i[a]!="function"&&Object.defineProperty(i,a,{configurable:!0,writable:!0,value:c}),s&&s(a,c)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!s&&!a,u={create:s?function(){return xy(Object.create(null))}:a?function(){return xy({__proto__:null})}:function(){return xy({})},has:c?function(E,T){return n.call(E,T)}:function(E,T){return T in E},get:c?function(E,T){return n.call(E,T)?E[T]:void 0}:function(E,T){return E[T]}},l=Object.getPrototypeOf(Function),f=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",d=!f&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Sq(),p=!f&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:xq(),h=!f&&typeof WeakMap=="function"?WeakMap:Iq(),m=new h;function y(E,T,k,$){if(L(k)){if(!ht(E))throw new TypeError;if(!hc(T))throw new TypeError;return J(E,T)}else{if(!ht(E))throw new TypeError;if(!oe(T))throw new TypeError;if(!oe($)&&!L($)&&!V($))throw new TypeError;return V($)&&($=void 0),k=be(k),de(E,T,k,$)}}t("decorate",y);function v(E,T){function k($,ne){if(!oe($))throw new TypeError;if(!L(ne)&&!Ml(ne))throw new TypeError;B(E,T,$,ne)}return k}t("metadata",v);function w(E,T,k,$){if(!oe(k))throw new TypeError;return L($)||($=be($)),B(E,T,k,$)}t("defineMetadata",w);function A(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),O(E,T,k)}t("hasMetadata",A);function P(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),M(E,T,k)}t("hasOwnMetadata",P);function j(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),I(E,T,k)}t("getMetadata",j);function Q(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),R(E,T,k)}t("getOwnMetadata",Q);function ue(E,T){if(!oe(E))throw new TypeError;return L(T)||(T=be(T)),U(E,T)}t("getMetadataKeys",ue);function we(E,T){if(!oe(E))throw new TypeError;return L(T)||(T=be(T)),C(E,T)}t("getOwnMetadataKeys",we);function N(E,T,k){if(!oe(T))throw new TypeError;L(k)||(k=be(k));var $=G(T,k,!1);if(L($)||!$.delete(E))return!1;if($.size>0)return!0;var ne=m.get(T);return ne.delete(k),ne.size>0||m.delete(T),!0}t("deleteMetadata",N);function J(E,T){for(var k=E.length-1;k>=0;--k){var $=E[k],ne=$(T);if(!L(ne)&&!V(ne)){if(!hc(ne))throw new TypeError;T=ne}}return T}function de(E,T,k,$){for(var ne=E.length-1;ne>=0;--ne){var Et=E[ne],ve=Et(T,k,$);if(!L(ve)&&!V(ve)){if(!oe(ve))throw new TypeError;$=ve}}return $}function G(E,T,k){var $=m.get(E);if(L($)){if(!k)return;$=new d,m.set(E,$)}var ne=$.get(T);if(L(ne)){if(!k)return;ne=new d,$.set(T,ne)}return ne}function O(E,T,k){var $=M(E,T,k);if($)return!0;var ne=Sy(T);return V(ne)?!1:O(E,ne,k)}function M(E,T,k){var $=G(T,k,!1);return L($)?!1:Ve($.has(E))}function I(E,T,k){var $=M(E,T,k);if($)return R(E,T,k);var ne=Sy(T);if(!V(ne))return I(E,ne,k)}function R(E,T,k){var $=G(T,k,!1);if(!L($))return $.get(E)}function B(E,T,k,$){var ne=G(k,$,!0);ne.set(E,T)}function U(E,T){var k=C(E,T),$=Sy(E);if($===null)return k;var ne=U($,T);if(ne.length<=0)return k;if(k.length<=0)return ne;for(var Et=new p,ve=[],Ee=0,ie=k;Ee<ie.length;Ee++){var Pe=ie[Ee],Ce=Et.has(Pe);Ce||(Et.add(Pe),ve.push(Pe))}for(var Xr=0,LI=ne;Xr<LI.length;Xr++){var Pe=LI[Xr],Ce=Et.has(Pe);Ce||(Et.add(Pe),ve.push(Pe))}return ve}function C(E,T){var k=[],$=G(E,T,!1);if(L($))return k;for(var ne=$.keys(),Et=bq(ne),ve=0;;){var Ee=wq(Et);if(!Ee)return k.length=ve,k;var ie=_q(Ee);try{k[ve]=ie}catch(Pe){try{Eq(Et)}finally{throw Pe}}ve++}}function q(E){if(E===null)return 1;switch(typeof E){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return E===null?1:6;default:return 6}}function L(E){return E===void 0}function V(E){return E===null}function Re(E){return typeof E=="symbol"}function oe(E){return typeof E=="object"?E!==null:typeof E=="function"}function ye(E,T){switch(q(E)){case 0:return E;case 1:return E;case 2:return E;case 3:return E;case 4:return E;case 5:return E}var k=T===3?"string":T===5?"number":"default",$=NI(E,o);if($!==void 0){var ne=$.call(E,k);if(oe(ne))throw new TypeError;return ne}return Ne(E,k==="default"?"number":k)}function Ne(E,T){if(T==="string"){var k=E.toString;if(Cn(k)){var $=k.call(E);if(!oe($))return $}var ne=E.valueOf;if(Cn(ne)){var $=ne.call(E);if(!oe($))return $}}else{var ne=E.valueOf;if(Cn(ne)){var $=ne.call(E);if(!oe($))return $}var Et=E.toString;if(Cn(Et)){var $=Et.call(E);if(!oe($))return $}}throw new TypeError}function Ve(E){return!!E}function pt(E){return""+E}function be(E){var T=ye(E,3);return Re(T)?T:pt(T)}function ht(E){return Array.isArray?Array.isArray(E):E instanceof Object?E instanceof Array:Object.prototype.toString.call(E)==="[object Array]"}function Cn(E){return typeof E=="function"}function hc(E){return typeof E=="function"}function Ml(E){switch(q(E)){case 3:return!0;case 4:return!0;default:return!1}}function NI(E,T){var k=E[T];if(k!=null){if(!Cn(k))throw new TypeError;return k}}function bq(E){var T=NI(E,i);if(!Cn(T))throw new TypeError;var k=T.call(E);if(!oe(k))throw new TypeError;return k}function _q(E){return E.value}function wq(E){var T=E.next();return T.done?!1:T}function Eq(E){var T=E.return;T&&T.call(E)}function Sy(E){var T=Object.getPrototypeOf(E);if(typeof E!="function"||E===l||T!==l)return T;var k=E.prototype,$=k&&Object.getPrototypeOf(k);if($==null||$===Object.prototype)return T;var ne=$.constructor;return typeof ne!="function"||ne===E?T:ne}function Sq(){var E={},T=[],k=(function(){function ve(Ee,ie,Pe){this._index=0,this._keys=Ee,this._values=ie,this._selector=Pe}return ve.prototype["@@iterator"]=function(){return this},ve.prototype[i]=function(){return this},ve.prototype.next=function(){var Ee=this._index;if(Ee>=0&&Ee<this._keys.length){var ie=this._selector(this._keys[Ee],this._values[Ee]);return Ee+1>=this._keys.length?(this._index=-1,this._keys=T,this._values=T):this._index++,{value:ie,done:!1}}return{value:void 0,done:!0}},ve.prototype.throw=function(Ee){throw this._index>=0&&(this._index=-1,this._keys=T,this._values=T),Ee},ve.prototype.return=function(Ee){return this._index>=0&&(this._index=-1,this._keys=T,this._values=T),{value:Ee,done:!0}},ve})();return(function(){function ve(){this._keys=[],this._values=[],this._cacheKey=E,this._cacheIndex=-2}return Object.defineProperty(ve.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ve.prototype.has=function(Ee){return this._find(Ee,!1)>=0},ve.prototype.get=function(Ee){var ie=this._find(Ee,!1);return ie>=0?this._values[ie]:void 0},ve.prototype.set=function(Ee,ie){var Pe=this._find(Ee,!0);return this._values[Pe]=ie,this},ve.prototype.delete=function(Ee){var ie=this._find(Ee,!1);if(ie>=0){for(var Pe=this._keys.length,Ce=ie+1;Ce<Pe;Ce++)this._keys[Ce-1]=this._keys[Ce],this._values[Ce-1]=this._values[Ce];return this._keys.length--,this._values.length--,Ee===this._cacheKey&&(this._cacheKey=E,this._cacheIndex=-2),!0}return!1},ve.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=E,this._cacheIndex=-2},ve.prototype.keys=function(){return new k(this._keys,this._values,$)},ve.prototype.values=function(){return new k(this._keys,this._values,ne)},ve.prototype.entries=function(){return new k(this._keys,this._values,Et)},ve.prototype["@@iterator"]=function(){return this.entries()},ve.prototype[i]=function(){return this.entries()},ve.prototype._find=function(Ee,ie){return this._cacheKey!==Ee&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ee)),this._cacheIndex<0&&ie&&(this._cacheIndex=this._keys.length,this._keys.push(Ee),this._values.push(void 0)),this._cacheIndex},ve})();function $(ve,Ee){return ve}function ne(ve,Ee){return Ee}function Et(ve,Ee){return[ve,Ee]}}function xq(){return(function(){function E(){this._map=new d}return Object.defineProperty(E.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),E.prototype.has=function(T){return this._map.has(T)},E.prototype.add=function(T){return this._map.set(T,T),this},E.prototype.delete=function(T){return this._map.delete(T)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.values()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[i]=function(){return this.keys()},E})()}function Iq(){var E=16,T=u.create(),k=$();return(function(){function ie(){this._key=$()}return ie.prototype.has=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?u.has(Ce,this._key):!1},ie.prototype.get=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?u.get(Ce,this._key):void 0},ie.prototype.set=function(Pe,Ce){var Xr=ne(Pe,!0);return Xr[this._key]=Ce,this},ie.prototype.delete=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?delete Ce[this._key]:!1},ie.prototype.clear=function(){this._key=$()},ie})();function $(){var ie;do ie="@@WeakMap@@"+Ee();while(u.has(T,ie));return T[ie]=!0,ie}function ne(ie,Pe){if(!n.call(ie,k)){if(!Pe)return;Object.defineProperty(ie,k,{value:u.create()})}return ie[k]}function Et(ie,Pe){for(var Ce=0;Ce<Pe;++Ce)ie[Ce]=Math.random()*255|0;return ie}function ve(ie){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ie)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ie)):Et(new Uint8Array(ie),ie):Et(new Array(ie),ie)}function Ee(){var ie=ve(E);ie[6]=ie[6]&79|64,ie[8]=ie[8]&191|128;for(var Pe="",Ce=0;Ce<E;++Ce){var Xr=ie[Ce];(Ce===4||Ce===6||Ce===8)&&(Pe+="-"),Xr<16&&(Pe+="0"),Pe+=Xr.toString(16).toLowerCase()}return Pe}}function xy(E){return E.__=void 0,delete E.__,E}})})(w2||(w2={}));var EDe=new TextEncoder,SDe=new TextDecoder;var pfe="PLUGIN";async function E2(e){let n=await(e.fetch??fetch)(`${e.origin}/api/workers/${encodeURIComponent(e.name)}/versions`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({script:e.script,plugin:!0,bindings:{durableObjects:[{name:pfe,className:e.className}]}})}),r=await n.text();if(!n.ok){let o=(()=>{try{return JSON.parse(r).error?.message??r}catch{return r}})();throw new Error(`${e.name} \u306E deploy \u306B\u5931\u6557\u3057\u307E\u3057\u305F (${n.status}): ${o}`)}return JSON.parse(r)}var S2=new H("SESSION_CONFIG");var Km=class{constructor(){this.providedConfig=z(S2,{optional:!0});this._remoteConfig=No({});this.config=KS(()=>({...this.providedConfig??{},...this._remoteConfig()}))}};Km=Qe([Ie({providedIn:"root"})],Km);var x2="agent",hfe="AgentObject",gfe=3e3,mfe=3e5;function yfe(e,t){return{id:t,pid:e.pid,sessionId:e.sessionId,sessionName:e.sessionName,serverName:e.serverName,cwd:e.cwd,repo:e.git?.repo??null,branch:e.git?.branch??null,worktreeRoot:e.git?.worktreeRoot??null,state:e.state,lastActivityAt:e.lastActivityAt}}function I2(e){let t=null,n=null,r=null,o=0,i=0,s=e.now??Date.now,a=f=>{f!==r&&(r=f,e.warn(f))};async function c(f){await E2({origin:f,name:x2,className:hfe,script:e.bundle(),fetch:e.fetch}),t=f}function u(f,d){return e.fetch(`${f}/api/plugins/${x2}/api/sync`,{method:"POST",headers:{"content-type":"application/json"},body:d})}async function l(f,d){t!==f&&await c(f);let p=await u(f,d);if(p.status===404&&(await c(f),p=await u(f,d)),!p.ok)throw new Error(`agent DO \u3078\u306E sync \u306B\u5931\u6557 (${p.status}): ${await p.text()}`)}return{async publish(f,d){let p=e.workersOrigin();if(!p)return"unavailable";let h=Dl(f.map(v=>({pid:v.pid,sessionName:v.sessionName,worktreeRoot:v.git?.worktreeRoot??null,cwd:v.cwd}))),m=f.map((v,w)=>yfe(v,h[w])),y=`${p}
85
- ${JSON.stringify(m)}`;if(y===n)return"unchanged";if(s()<i)return"unavailable";try{await l(p,JSON.stringify({syncedAt:d,agents:m}))}catch(v){return t=null,o+=1,i=s()+Math.min(gfe*2**(o-1),mfe),a(`agent DO \u306B\u5199\u305B\u306A\u3044 (${p}): ${v instanceof Error?v.message:String(v)}`),"unavailable"}return n=y,r=null,o=0,i=0,"synced"}}}import{existsSync as T2,readFileSync as vfe,realpathSync as bfe}from"node:fs";import{dirname as ax,resolve as A2}from"node:path";var cx="agent.bundle.js";function ux(e){if(!e||!T2(e))return null;let t=Number(vfe(e,"utf-8").trim());return Number.isInteger(t)&&t>0?`http://127.0.0.1:${t}`:null}function M2(e,t){let n=[];if(e){let o=ax(e);try{o=ax(bfe(e))}catch{o=ax(e)}n.push(A2(o,cx))}n.push(A2(t,"dist/packages/@10p.io/agent",cx));let r=n.find(o=>T2(o));if(!r)throw new Error(`agent DO \u306E bundle \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093 (${cx})\u3002\u63A2\u7D22: ${n.join(", ")}`);return r}function O2(e){let t=!1,n=async()=>{if(!t){t=!0;try{let o=await e.registry.list();await e.onAgents?.(o).catch(i=>e.log(`agent nostr sync failed: ${String(i)}`)),await e.publisher.publish(o,e.now().toISOString())}catch(o){e.log(`agent DO sync failed: ${o instanceof Error?o.message:String(o)}`)}finally{t=!1}}};n();let r=setInterval(()=>{n()},e.intervalMs);return r.unref(),{stop:()=>clearInterval(r)}}var Go=e=>typeof e=="string"?e:null;function _fe(e){return{id:String(e.id),state:"stopped",sessionName:Go(e.session_name),serverName:Go(e.server_name),cwd:Go(e.cwd),repo:Go(e.repo),branch:Go(e.branch),worktreeRoot:Go(e.worktree_root),lastActivityAt:Go(e.last_activity_at),command:Go(e.command)}}function P2(e){let t=(n,r)=>`${n}/api/plugins/agent/api${r}`;return{async stopped(){let n=e.workersOrigin();if(!n)return[];try{let r=await e.fetch(t(n,"/state"));return r.ok?((await r.json()).agents??[]).filter(i=>i.state==="stopped").map(_fe):[]}catch{return[]}},async remove(n){let r=e.workersOrigin();return r?(await e.fetch(t(r,`/agents/${encodeURIComponent(n)}`),{method:"DELETE"})).ok:!1},async define(n,r){let o=e.workersOrigin();return o?(await e.fetch(t(o,`/agents/${encodeURIComponent(n)}`),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(r)})).ok:!1}}}var wfe="agent",Efe="dist/packages/@10p.io/agent";function C2(e,t){return d1(e,t,wfe,Efe)}import{readFileSync as xfe}from"node:fs";import{dirname as Ife}from"node:path";import{join as Sfe}from"path";function D2(e,t){return Sfe(e,`${t}.port`)}var Afe=10,Tfe=5e3,Mfe=2e3;function k2(e){return e?D2(Ife(e),"ingress"):void 0}function Ofe(e){try{let t=Number(xfe(e,"utf-8").trim());return Number.isInteger(t)&&t>0?t:null}catch{return null}}function R2(e){let t=e.ingressPortFile;if(!t)return{stop:()=>{}};let n=e.fetch??fetch,r=new Map,o=async(a,c)=>{let{name:u,...l}=c,f=await n(`http://127.0.0.1:${a}/apps/${encodeURIComponent(u)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({...l,via:Afe}),signal:AbortSignal.timeout(Mfe)}),d=f.ok?"":`${f.status} ${(await f.text()).slice(0,200)}`;d&&r.get(u)!==d&&e.warn?.(`control app ${u} \u3092 ingress \u306B\u8F09\u305B\u3089\u308C\u306A\u3044: ${d}`),r.set(u,d)},i=()=>{let a=Ofe(t);if(a!==null)for(let c of e.apps)o(a,c).catch(()=>{})};i();let s=setInterval(i,e.intervalMs??Tfe);return s.unref?.(),{stop:()=>clearInterval(s)}}import{existsSync as wve,readFileSync as Eve}from"node:fs";function hl(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Mn(e,t=""){if(!Number.isSafeInteger(e)||e<0){let n=t&&`"${t}" `;throw new Error(`${n}expected integer >= 0, got ${e}`)}}function Me(e,t,n=""){let r=hl(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let s=n&&`"${n}" `,a=i?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+a+", got "+c)}return e}function Zi(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");Mn(e.outputLen),Mn(e.blockLen)}function rc(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function L2(e,t){Me(e,void 0,"digestInto() output");let n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)}function Gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Wm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $n(e,t){return e<<32-t|e>>>t}var j2=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Pfe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Oe(e){if(Me(e),j2)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Pfe[e[n]];return t}var Vr={_0:48,_9:57,A:65,F:70,a:97,f:102};function N2(e){if(e>=Vr._0&&e<=Vr._9)return e-Vr._0;if(e>=Vr.A&&e<=Vr.F)return e-(Vr.A-10);if(e>=Vr.a&&e<=Vr.f)return e-(Vr.a-10)}function Le(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(j2)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let s=N2(e.charCodeAt(i)),a=N2(e.charCodeAt(i+1));if(s===void 0||a===void 0){let c=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}r[o]=s*16+a}return r}function ft(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];Me(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function F2(e,t={}){let n=(o,i)=>e(i).update(o).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=o=>e(o),Object.assign(n,t),Object.freeze(n)}function Kn(e=32){let t=typeof globalThis=="object"?globalThis.crypto:null;if(typeof t?.getRandomValues!="function")throw new Error("crypto.getRandomValues must be defined");return t.getRandomValues(new Uint8Array(e))}var q2=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function B2(e,t,n){return e&t^~e&n}function U2(e,t,n){return e&t^e&n^t&n}var Vm=class{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,n,r,o){this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Wm(this.buffer)}update(t){rc(this),Me(t);let{view:n,buffer:r,blockLen:o}=this,i=t.length;for(let s=0;s<i;){let a=Math.min(o-this.pos,i-s);if(a===o){let c=Wm(t);for(;o<=i-s;s+=o)this.process(c,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){rc(this),L2(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:s}=this;n[s++]=128,Gr(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(r,0),s=0);for(let f=s;f<o;f++)n[f]=0;r.setBigUint64(o-8,BigInt(this.length*8),i),this.process(r,0);let a=Wm(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<u;f++)a.setUint32(4*f,l[f],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=i,t.length=o,t.pos=a,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}},zr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var Cfe=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),zo=new Uint32Array(64),lx=class extends Vm{constructor(t){super(64,t,8,!1)}get(){let{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(t,n){for(let f=0;f<16;f++,n+=4)zo[f]=t.getUint32(n,!1);for(let f=16;f<64;f++){let d=zo[f-15],p=zo[f-2],h=$n(d,7)^$n(d,18)^d>>>3,m=$n(p,17)^$n(p,19)^p>>>10;zo[f]=m+zo[f-7]+h+zo[f-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:u,H:l}=this;for(let f=0;f<64;f++){let d=$n(a,6)^$n(a,11)^$n(a,25),p=l+d+B2(a,c,u)+Cfe[f]+zo[f]|0,m=($n(r,2)^$n(r,13)^$n(r,22))+U2(r,o,i)|0;l=u,u=c,c=a,a=s+p|0,s=i,i=o,o=r,r=p+m|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(r,o,i,s,a,c,u,l)}roundClean(){Gr(zo)}destroy(){this.set(0,0,0,0,0,0,0,0),Gr(this.buffer)}},fx=class extends lx{A=zr[0]|0;B=zr[1]|0;C=zr[2]|0;D=zr[3]|0;E=zr[4]|0;F=zr[5]|0;G=zr[6]|0;H=zr[7]|0;constructor(){super(32)}};var Ut=F2(()=>new fx,q2(1));var px=BigInt(0),dx=BigInt(1);function gl(e,t=""){if(typeof e!="boolean"){let n=t&&`"${t}" `;throw new Error(n+"expected boolean, got type="+typeof e)}return e}function H2(e){if(typeof e=="bigint"){if(!Gm(e))throw new Error("positive bigint expected, got "+e)}else Mn(e);return e}function ml(e){let t=H2(e).toString(16);return t.length&1?"0"+t:t}function $2(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?px:BigInt("0x"+e)}function Yo(e){return $2(Oe(e))}function hx(e){return $2(Oe(Dfe(Me(e)).reverse()))}function zm(e,t){Mn(t),e=H2(e);let n=Le(e.toString(16).padStart(t*2,"0"));if(n.length!==t)throw new Error("number too large");return n}function gx(e,t){return zm(e,t).reverse()}function Dfe(e){return Uint8Array.from(e)}function K2(e){return Uint8Array.from(e,(t,n)=>{let r=t.charCodeAt(0);if(t.length!==1||r>127)throw new Error(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}var Gm=e=>typeof e=="bigint"&&px<=e;function kfe(e,t,n){return Gm(e)&&Gm(t)&&Gm(n)&&t<=e&&e<n}function W2(e,t,n,r){if(!kfe(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function mx(e){let t;for(t=0;e>px;e>>=dx,t+=1);return t}var yl=e=>(dx<<BigInt(e))-dx;function V2(e,t,n){if(Mn(e,"hashLen"),Mn(t,"qByteLen"),typeof n!="function")throw new Error("hmacFn must be a function");let r=y=>new Uint8Array(y),o=Uint8Array.of(),i=Uint8Array.of(0),s=Uint8Array.of(1),a=1e3,c=r(e),u=r(e),l=0,f=()=>{c.fill(1),u.fill(0),l=0},d=(...y)=>n(u,ft(c,...y)),p=(y=o)=>{u=d(i,y),c=d(),y.length!==0&&(u=d(s,y),c=d())},h=()=>{if(l++>=a)throw new Error("drbg: tried max amount of iterations");let y=0,v=[];for(;y<t;){c=d();let w=c.slice();v.push(w),y+=c.length}return ft(...v)};return(y,v)=>{f(),p(y);let w;for(;!(w=v(h()));)p();return f(),w}}function vl(e,t={},n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,s,a){let c=e[i];if(a&&c===void 0)return;let u=typeof c;if(u!==s||c===null)throw new Error(`param "${i}" is invalid: expected ${s}, got ${u}`)}let o=(i,s)=>Object.entries(i).forEach(([a,c])=>r(a,c,s));o(t,!1),o(n,!0)}function yx(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var Zt=BigInt(0),Ht=BigInt(1),Qi=BigInt(2),Y2=BigInt(3),Z2=BigInt(4),Q2=BigInt(5),Rfe=BigInt(7),J2=BigInt(8),Nfe=BigInt(9),X2=BigInt(16);function Wn(e,t){let n=e%t;return n>=Zt?n:t+n}function wn(e,t,n){let r=e;for(;t-- >Zt;)r*=r,r%=n;return r}function G2(e,t){if(e===Zt)throw new Error("invert: expected non-zero number");if(t<=Zt)throw new Error("invert: expected positive modulus, got "+t);let n=Wn(e,t),r=t,o=Zt,i=Ht,s=Ht,a=Zt;for(;n!==Zt;){let u=r/n,l=r%n,f=o-s*u,d=i-a*u;r=n,n=l,o=s,i=a,s=f,a=d}if(r!==Ht)throw new Error("invert: does not exist");return Wn(o,t)}function bx(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function ej(e,t){let n=(e.ORDER+Ht)/Z2,r=e.pow(t,n);return bx(e,r,t),r}function Lfe(e,t){let n=(e.ORDER-Q2)/J2,r=e.mul(t,Qi),o=e.pow(r,n),i=e.mul(t,o),s=e.mul(e.mul(i,Qi),o),a=e.mul(i,e.sub(s,e.ONE));return bx(e,a,t),a}function jfe(e){let t=oc(e),n=tj(e),r=n(t,t.neg(t.ONE)),o=n(t,r),i=n(t,t.neg(r)),s=(e+Rfe)/X2;return(a,c)=>{let u=a.pow(c,s),l=a.mul(u,r),f=a.mul(u,o),d=a.mul(u,i),p=a.eql(a.sqr(l),c),h=a.eql(a.sqr(f),c);u=a.cmov(u,l,p),l=a.cmov(d,f,h);let m=a.eql(a.sqr(l),c),y=a.cmov(u,l,m);return bx(a,y,c),y}}function tj(e){if(e<Y2)throw new Error("sqrt is not defined for small field");let t=e-Ht,n=0;for(;t%Qi===Zt;)t/=Qi,n++;let r=Qi,o=oc(e);for(;z2(o,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return ej;let i=o.pow(r,t),s=(t+Ht)/Qi;return function(c,u){if(c.is0(u))return u;if(z2(c,u)!==1)throw new Error("Cannot find square root");let l=n,f=c.mul(c.ONE,i),d=c.pow(u,t),p=c.pow(u,s);for(;!c.eql(d,c.ONE);){if(c.is0(d))return c.ZERO;let h=1,m=c.sqr(d);for(;!c.eql(m,c.ONE);)if(h++,m=c.sqr(m),h===l)throw new Error("Cannot find square root");let y=Ht<<BigInt(l-h-1),v=c.pow(f,y);l=h,f=c.sqr(v),d=c.mul(d,f),p=c.mul(p,v)}return p}}function Ffe(e){return e%Z2===Y2?ej:e%J2===Q2?Lfe:e%X2===Nfe?jfe(e):tj(e)}var qfe=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function _x(e){let t={ORDER:"bigint",BYTES:"number",BITS:"number"},n=qfe.reduce((r,o)=>(r[o]="function",r),t);return vl(e,n),e}function Bfe(e,t,n){if(n<Zt)throw new Error("invalid exponent, negatives unsupported");if(n===Zt)return e.ONE;if(n===Ht)return t;let r=e.ONE,o=t;for(;n>Zt;)n&Ht&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Ht;return r}function Ym(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((s,a,c)=>e.is0(a)?s:(r[c]=s,e.mul(s,a)),e.ONE),i=e.inv(o);return t.reduceRight((s,a,c)=>e.is0(a)?s:(r[c]=e.mul(s,r[c]),e.mul(s,a)),i),r}function z2(e,t){let n=(e.ORDER-Ht)/Qi,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),s=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!s)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function Ufe(e,t){t!==void 0&&Mn(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}var vx=class{ORDER;BITS;BYTES;isLE;ZERO=Zt;ONE=Ht;_lengths;_sqrt;_mod;constructor(t,n={}){if(t<=Zt)throw new Error("invalid field: expected ORDER > 0, got "+t);let r;this.isLE=!1,n!=null&&typeof n=="object"&&(typeof n.BITS=="number"&&(r=n.BITS),typeof n.sqrt=="function"&&(this.sqrt=n.sqrt),typeof n.isLE=="boolean"&&(this.isLE=n.isLE),n.allowedLengths&&(this._lengths=n.allowedLengths?.slice()),typeof n.modFromBytes=="boolean"&&(this._mod=n.modFromBytes));let{nBitLength:o,nByteLength:i}=Ufe(t,r);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=t,this.BITS=o,this.BYTES=i,this._sqrt=void 0,Object.preventExtensions(this)}create(t){return Wn(t,this.ORDER)}isValid(t){if(typeof t!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof t);return Zt<=t&&t<this.ORDER}is0(t){return t===Zt}isValidNot0(t){return!this.is0(t)&&this.isValid(t)}isOdd(t){return(t&Ht)===Ht}neg(t){return Wn(-t,this.ORDER)}eql(t,n){return t===n}sqr(t){return Wn(t*t,this.ORDER)}add(t,n){return Wn(t+n,this.ORDER)}sub(t,n){return Wn(t-n,this.ORDER)}mul(t,n){return Wn(t*n,this.ORDER)}pow(t,n){return Bfe(this,t,n)}div(t,n){return Wn(t*G2(n,this.ORDER),this.ORDER)}sqrN(t){return t*t}addN(t,n){return t+n}subN(t,n){return t-n}mulN(t,n){return t*n}inv(t){return G2(t,this.ORDER)}sqrt(t){return this._sqrt||(this._sqrt=Ffe(this.ORDER)),this._sqrt(this,t)}toBytes(t){return this.isLE?gx(t,this.BYTES):zm(t,this.BYTES)}fromBytes(t,n=!1){Me(t);let{_lengths:r,BYTES:o,isLE:i,ORDER:s,_mod:a}=this;if(r){if(!r.includes(t.length)||t.length>o)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+t.length);let u=new Uint8Array(o);u.set(t,i?0:u.length-t.length),t=u}if(t.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+t.length);let c=i?hx(t):Yo(t);if(a&&(c=Wn(c,s)),!n&&!this.isValid(c))throw new Error("invalid field element: outside of range 0..ORDER");return c}invertBatch(t){return Ym(this,t)}cmov(t,n,r){return r?n:t}};function oc(e,t={}){return new vx(e,t)}function nj(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function wx(e){let t=nj(e);return t+Math.ceil(t/2)}function Zm(e,t,n=!1){Me(e);let r=e.length,o=nj(t),i=wx(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);let s=n?hx(e):Yo(e),a=Wn(s,t-Ht)+Ht;return n?gx(a,o):zm(a,o)}var ic=BigInt(0),Ji=BigInt(1);function bl(e,t){let n=t.negate();return e?n:t}function Ix(e,t){let n=Ym(e.Fp,t.map(r=>r.Z));return t.map((r,o)=>e.fromAffine(r.toAffine(n[o])))}function sj(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ex(e,t){sj(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=yl(e),s=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:s}}function rj(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:s}=n,a=Number(e&o),c=e>>s;a>r&&(a-=i,c+=Ji);let u=t*r,l=u+Math.abs(a)-1,f=a===0,d=a<0,p=t%2!==0;return{nextN:c,offset:l,isZero:f,isNeg:d,isNegF:p,offsetF:u}}var Sx=new WeakMap,aj=new WeakMap;function xx(e){return aj.get(e)||1}function oj(e){if(e!==ic)throw new Error("invalid wNAF")}var Qm=class{BASE;ZERO;Fn;bits;constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let o=t;for(;n>ic;)n&Ji&&(r=r.add(o)),o=o.double(),n>>=Ji;return r}precomputeWindow(t,n){let{windows:r,windowSize:o}=Ex(n,this.bits),i=[],s=t,a=s;for(let c=0;c<r;c++){a=s,i.push(a);for(let u=1;u<o;u++)a=a.add(s),i.push(a);s=a.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let o=this.ZERO,i=this.BASE,s=Ex(t,this.bits);for(let a=0;a<s.windows;a++){let{nextN:c,offset:u,isZero:l,isNeg:f,isNegF:d,offsetF:p}=rj(r,a,s);r=c,l?i=i.add(bl(d,n[p])):o=o.add(bl(f,n[u]))}return oj(r),{p:o,f:i}}wNAFUnsafe(t,n,r,o=this.ZERO){let i=Ex(t,this.bits);for(let s=0;s<i.windows&&r!==ic;s++){let{nextN:a,offset:c,isZero:u,isNeg:l}=rj(r,s,i);if(r=a,!u){let f=n[c];o=o.add(l?f.negate():f)}}return oj(r),o}getPrecomputes(t,n,r){let o=Sx.get(n);return o||(o=this.precomputeWindow(n,t),t!==1&&(typeof r=="function"&&(o=r(o)),Sx.set(n,o))),o}cached(t,n,r){let o=xx(t);return this.wNAF(o,this.getPrecomputes(o,t,r),n)}unsafe(t,n,r,o){let i=xx(t);return i===1?this._unsafeLadder(t,n,o):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,o)}createCache(t,n){sj(n,this.bits),aj.set(t,n),Sx.delete(t)}hasCache(t){return xx(t)!==1}};function cj(e,t,n,r){let o=t,i=e.ZERO,s=e.ZERO;for(;n>ic||r>ic;)n&Ji&&(i=i.add(o)),r&Ji&&(s=s.add(o)),o=o.double(),n>>=Ji,r>>=Ji;return{p1:i,p2:s}}function ij(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return _x(t),t}else return oc(e,{isLE:n})}function uj(e,t,n={},r){if(r===void 0&&(r=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(let c of["p","n","h"]){let u=t[c];if(!(typeof u=="bigint"&&u>ic))throw new Error(`CURVE.${c} must be positive bigint`)}let o=ij(t.p,n.Fp,r),i=ij(t.n,n.Fn,r),a=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(let c of a)if(!o.isValid(t[c]))throw new Error(`CURVE.${c} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:i}}function Jm(e,t){return function(r){let o=e(r);return{secretKey:o,publicKey:t(o)}}}var Xm=class{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,n){if(Zi(t),Me(n,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?t.create().update(n).digest():n);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),Gr(o)}update(t){return rc(this),this.iHash.update(t),this}digestInto(t){rc(this),Me(t,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});let{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:s,outputLen:a}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=s,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},Zo=(e,t,n)=>new Xm(e,t).update(n).digest();Zo.create=(e,t)=>new Xm(e,t);var lj=(e,t)=>(e+(e>=0?t:-t)/fj)/t;function Hfe(e,t,n){let[[r,o],[i,s]]=t,a=lj(s*e,n),c=lj(-o*e,n),u=e-a*r-c*i,l=-a*o-c*s,f=u<Yr,d=l<Yr;f&&(u=-u),d&&(l=-l);let p=yl(Math.ceil(mx(n)/2))+sc;if(u<Yr||u>=p||l<Yr||l>=p)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:u,k2neg:d,k2:l}}function Tx(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Ax(e,t){let n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return gl(n.lowS,"lowS"),gl(n.prehash,"prehash"),n.format!==void 0&&Tx(n.format),n}var Mx=class extends Error{constructor(t=""){super(t)}},Qo={Err:Mx,_tlv:{encode:(e,t)=>{let{Err:n}=Qo;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");let r=t.length/2,o=ml(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let i=r>127?ml(o.length/2|128):"";return ml(e)+i+o+t},decode(e,t){let{Err:n}=Qo,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let o=t[r++],i=!!(o&128),s=0;if(!i)s=o;else{let c=o&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");let u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: length bytes not complete");if(u[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(let l of u)s=s<<8|l;if(r+=c,s<128)throw new n("tlv.decode(long): not minimal encoding")}let a=t.subarray(r,r+s);if(a.length!==s)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+s)}}},_int:{encode(e){let{Err:t}=Qo;if(e<Yr)throw new t("integer: negative integers are not allowed");let n=ml(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=Qo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Yo(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=Qo,o=Me(e,void 0,"signature"),{v:i,l:s}=r.decode(48,o);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:a,l:c}=r.decode(2,i),{v:u,l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=Qo,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}},Yr=BigInt(0),sc=BigInt(1),fj=BigInt(2),ey=BigInt(3),$fe=BigInt(4);function dj(e,t={}){let n=uj("weierstrass",e,t),{Fp:r,Fn:o}=n,i=n.CURVE,{h:s,n:a}=i;vl(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});let{endo:c}=t;if(c&&(!r.is0(i.a)||typeof c.beta!="bigint"||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let u=hj(r,o);function l(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function f(G,O,M){let{x:I,y:R}=O.toAffine(),B=r.toBytes(I);if(gl(M,"isCompressed"),M){l();let U=!r.isOdd(R);return ft(pj(U),B)}else return ft(Uint8Array.of(4),B,r.toBytes(R))}function d(G){Me(G,void 0,"Point");let{publicKey:O,publicKeyUncompressed:M}=u,I=G.length,R=G[0],B=G.subarray(1);if(I===O&&(R===2||R===3)){let U=r.fromBytes(B);if(!r.isValid(U))throw new Error("bad point: is not on curve, wrong x");let C=m(U),q;try{q=r.sqrt(C)}catch(Re){let oe=Re instanceof Error?": "+Re.message:"";throw new Error("bad point: is not on curve, sqrt error"+oe)}l();let L=r.isOdd(q);return(R&1)===1!==L&&(q=r.neg(q)),{x:U,y:q}}else if(I===M&&R===4){let U=r.BYTES,C=r.fromBytes(B.subarray(0,U)),q=r.fromBytes(B.subarray(U,U*2));if(!y(C,q))throw new Error("bad point: is not on curve");return{x:C,y:q}}else throw new Error(`bad point: got length ${I}, expected compressed=${O} or uncompressed=${M}`)}let p=t.toBytes||f,h=t.fromBytes||d;function m(G){let O=r.sqr(G),M=r.mul(O,G);return r.add(r.add(M,r.mul(G,i.a)),i.b)}function y(G,O){let M=r.sqr(O),I=m(G);return r.eql(M,I)}if(!y(i.Gx,i.Gy))throw new Error("bad curve params: generator point");let v=r.mul(r.pow(i.a,ey),$fe),w=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(v,w)))throw new Error("bad curve params: a or b");function A(G,O,M=!1){if(!r.isValid(O)||M&&r.is0(O))throw new Error(`bad point coordinate ${G}`);return O}function P(G){if(!(G instanceof N))throw new Error("Weierstrass Point expected")}function j(G){if(!c||!c.basises)throw new Error("no endo");return Hfe(G,c.basises,o.ORDER)}let Q=yx((G,O)=>{let{X:M,Y:I,Z:R}=G;if(r.eql(R,r.ONE))return{x:M,y:I};let B=G.is0();O==null&&(O=B?r.ONE:r.inv(R));let U=r.mul(M,O),C=r.mul(I,O),q=r.mul(R,O);if(B)return{x:r.ZERO,y:r.ZERO};if(!r.eql(q,r.ONE))throw new Error("invZ was invalid");return{x:U,y:C}}),ue=yx(G=>{if(G.is0()){if(t.allowInfinityPoint&&!r.is0(G.Y))return;throw new Error("bad point: ZERO")}let{x:O,y:M}=G.toAffine();if(!r.isValid(O)||!r.isValid(M))throw new Error("bad point: x or y not field elements");if(!y(O,M))throw new Error("bad point: equation left != right");if(!G.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function we(G,O,M,I,R){return M=new N(r.mul(M.X,G),M.Y,M.Z),O=bl(I,O),M=bl(R,M),O.add(M)}class N{static BASE=new N(i.Gx,i.Gy,r.ONE);static ZERO=new N(r.ZERO,r.ONE,r.ZERO);static Fp=r;static Fn=o;X;Y;Z;constructor(O,M,I){this.X=A("x",O),this.Y=A("y",M,!0),this.Z=A("z",I),Object.freeze(this)}static CURVE(){return i}static fromAffine(O){let{x:M,y:I}=O||{};if(!O||!r.isValid(M)||!r.isValid(I))throw new Error("invalid affine point");if(O instanceof N)throw new Error("projective point not allowed");return r.is0(M)&&r.is0(I)?N.ZERO:new N(M,I,r.ONE)}static fromBytes(O){let M=N.fromAffine(h(Me(O,void 0,"point")));return M.assertValidity(),M}static fromHex(O){return N.fromBytes(Le(O))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(O=8,M=!0){return de.createCache(this,O),M||this.multiply(ey),this}assertValidity(){ue(this)}hasEvenY(){let{y:O}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(O)}equals(O){P(O);let{X:M,Y:I,Z:R}=this,{X:B,Y:U,Z:C}=O,q=r.eql(r.mul(M,C),r.mul(B,R)),L=r.eql(r.mul(I,C),r.mul(U,R));return q&&L}negate(){return new N(this.X,r.neg(this.Y),this.Z)}double(){let{a:O,b:M}=i,I=r.mul(M,ey),{X:R,Y:B,Z:U}=this,C=r.ZERO,q=r.ZERO,L=r.ZERO,V=r.mul(R,R),Re=r.mul(B,B),oe=r.mul(U,U),ye=r.mul(R,B);return ye=r.add(ye,ye),L=r.mul(R,U),L=r.add(L,L),C=r.mul(O,L),q=r.mul(I,oe),q=r.add(C,q),C=r.sub(Re,q),q=r.add(Re,q),q=r.mul(C,q),C=r.mul(ye,C),L=r.mul(I,L),oe=r.mul(O,oe),ye=r.sub(V,oe),ye=r.mul(O,ye),ye=r.add(ye,L),L=r.add(V,V),V=r.add(L,V),V=r.add(V,oe),V=r.mul(V,ye),q=r.add(q,V),oe=r.mul(B,U),oe=r.add(oe,oe),V=r.mul(oe,ye),C=r.sub(C,V),L=r.mul(oe,Re),L=r.add(L,L),L=r.add(L,L),new N(C,q,L)}add(O){P(O);let{X:M,Y:I,Z:R}=this,{X:B,Y:U,Z:C}=O,q=r.ZERO,L=r.ZERO,V=r.ZERO,Re=i.a,oe=r.mul(i.b,ey),ye=r.mul(M,B),Ne=r.mul(I,U),Ve=r.mul(R,C),pt=r.add(M,I),be=r.add(B,U);pt=r.mul(pt,be),be=r.add(ye,Ne),pt=r.sub(pt,be),be=r.add(M,R);let ht=r.add(B,C);return be=r.mul(be,ht),ht=r.add(ye,Ve),be=r.sub(be,ht),ht=r.add(I,R),q=r.add(U,C),ht=r.mul(ht,q),q=r.add(Ne,Ve),ht=r.sub(ht,q),V=r.mul(Re,be),q=r.mul(oe,Ve),V=r.add(q,V),q=r.sub(Ne,V),V=r.add(Ne,V),L=r.mul(q,V),Ne=r.add(ye,ye),Ne=r.add(Ne,ye),Ve=r.mul(Re,Ve),be=r.mul(oe,be),Ne=r.add(Ne,Ve),Ve=r.sub(ye,Ve),Ve=r.mul(Re,Ve),be=r.add(be,Ve),ye=r.mul(Ne,be),L=r.add(L,ye),ye=r.mul(ht,be),q=r.mul(pt,q),q=r.sub(q,ye),ye=r.mul(pt,Ne),V=r.mul(ht,V),V=r.add(V,ye),new N(q,L,V)}subtract(O){return this.add(O.negate())}is0(){return this.equals(N.ZERO)}multiply(O){let{endo:M}=t;if(!o.isValidNot0(O))throw new Error("invalid scalar: out of range");let I,R,B=U=>de.cached(this,U,C=>Ix(N,C));if(M){let{k1neg:U,k1:C,k2neg:q,k2:L}=j(O),{p:V,f:Re}=B(C),{p:oe,f:ye}=B(L);R=Re.add(ye),I=we(M.beta,V,oe,U,q)}else{let{p:U,f:C}=B(O);I=U,R=C}return Ix(N,[I,R])[0]}multiplyUnsafe(O){let{endo:M}=t,I=this;if(!o.isValid(O))throw new Error("invalid scalar: out of range");if(O===Yr||I.is0())return N.ZERO;if(O===sc)return I;if(de.hasCache(this))return this.multiply(O);if(M){let{k1neg:R,k1:B,k2neg:U,k2:C}=j(O),{p1:q,p2:L}=cj(N,I,B,C);return we(M.beta,q,L,R,U)}else return de.unsafe(I,O)}toAffine(O){return Q(this,O)}isTorsionFree(){let{isTorsionFree:O}=t;return s===sc?!0:O?O(N,this):de.unsafe(this,a).is0()}clearCofactor(){let{clearCofactor:O}=t;return s===sc?this:O?O(N,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(O=!0){return gl(O,"isCompressed"),this.assertValidity(),p(N,this,O)}toHex(O=!0){return Oe(this.toBytes(O))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}let J=o.BITS,de=new Qm(N,t.endo?Math.ceil(J/2):J);return N.BASE.precompute(8),N}function pj(e){return Uint8Array.of(e?2:3)}function hj(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Kfe(e,t={}){let{Fn:n}=e,r=t.randomBytes||Kn,o=Object.assign(hj(e.Fp,n),{seed:wx(n.ORDER)});function i(p){try{let h=n.fromBytes(p);return n.isValidNot0(h)}catch{return!1}}function s(p,h){let{publicKey:m,publicKeyUncompressed:y}=o;try{let v=p.length;return h===!0&&v!==m||h===!1&&v!==y?!1:!!e.fromBytes(p)}catch{return!1}}function a(p=r(o.seed)){return Zm(Me(p,o.seed,"seed"),n.ORDER)}function c(p,h=!0){return e.BASE.multiply(n.fromBytes(p)).toBytes(h)}function u(p){let{secretKey:h,publicKey:m,publicKeyUncompressed:y}=o;if(!hl(p)||"_lengths"in n&&n._lengths||h===m)return;let v=Me(p,void 0,"key").length;return v===m||v===y}function l(p,h,m=!0){if(u(p)===!0)throw new Error("first arg must be private key");if(u(h)===!1)throw new Error("second arg must be public key");let y=n.fromBytes(p);return e.fromBytes(h).multiply(y).toBytes(m)}let f={isValidSecretKey:i,isValidPublicKey:s,randomSecretKey:a},d=Jm(a,c);return Object.freeze({getPublicKey:c,getSharedSecret:l,keygen:d,Point:e,utils:f,lengths:o})}function gj(e,t,n={}){Zi(t),vl(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"}),n=Object.assign({},n);let r=n.randomBytes||Kn,o=n.hmac||((M,I)=>Zo(t,M,I)),{Fp:i,Fn:s}=e,{ORDER:a,BITS:c}=s,{keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:p}=Kfe(e,n),h={prehash:!0,lowS:typeof n.lowS=="boolean"?n.lowS:!0,format:"compact",extraEntropy:!1},m=a*fj<i.ORDER;function y(M){let I=a>>sc;return M>I}function v(M,I){if(!s.isValidNot0(I))throw new Error(`invalid signature ${M}: out of range 1..Point.Fn.ORDER`);return I}function w(){if(m)throw new Error('"recovered" sig type is not supported for cofactor >2 curves')}function A(M,I){Tx(I);let R=p.signature,B=I==="compact"?R:I==="recovered"?R+1:void 0;return Me(M,B)}class P{r;s;recovery;constructor(I,R,B){if(this.r=v("r",I),this.s=v("s",R),B!=null){if(w(),![0,1,2,3].includes(B))throw new Error("invalid recovery id");this.recovery=B}Object.freeze(this)}static fromBytes(I,R=h.format){A(I,R);let B;if(R==="der"){let{r:L,s:V}=Qo.toSig(Me(I));return new P(L,V)}R==="recovered"&&(B=I[0],R="compact",I=I.subarray(1));let U=p.signature/2,C=I.subarray(0,U),q=I.subarray(U,U*2);return new P(s.fromBytes(C),s.fromBytes(q),B)}static fromHex(I,R){return this.fromBytes(Le(I),R)}assertRecovery(){let{recovery:I}=this;if(I==null)throw new Error("invalid recovery id: must be present");return I}addRecoveryBit(I){return new P(this.r,this.s,I)}recoverPublicKey(I){let{r:R,s:B}=this,U=this.assertRecovery(),C=U===2||U===3?R+a:R;if(!i.isValid(C))throw new Error("invalid recovery id: sig.r+curve.n != R.x");let q=i.toBytes(C),L=e.fromBytes(ft(pj((U&1)===0),q)),V=s.inv(C),Re=Q(Me(I,void 0,"msgHash")),oe=s.create(-Re*V),ye=s.create(B*V),Ne=e.BASE.multiplyUnsafe(oe).add(L.multiplyUnsafe(ye));if(Ne.is0())throw new Error("invalid recovery: point at infinify");return Ne.assertValidity(),Ne}hasHighS(){return y(this.s)}toBytes(I=h.format){if(Tx(I),I==="der")return Le(Qo.hexFromSig(this));let{r:R,s:B}=this,U=s.toBytes(R),C=s.toBytes(B);return I==="recovered"?(w(),ft(Uint8Array.of(this.assertRecovery()),U,C)):ft(U,C)}toHex(I){return Oe(this.toBytes(I))}}let j=n.bits2int||function(I){if(I.length>8192)throw new Error("input is too large");let R=Yo(I),B=I.length*8-c;return B>0?R>>BigInt(B):R},Q=n.bits2int_modN||function(I){return s.create(j(I))},ue=yl(c);function we(M){return W2("num < 2^"+c,M,Yr,ue),s.toBytes(M)}function N(M,I){return Me(M,void 0,"message"),I?Me(t(M),void 0,"prehashed message"):M}function J(M,I,R){let{lowS:B,prehash:U,extraEntropy:C}=Ax(R,h);M=N(M,U);let q=Q(M),L=s.fromBytes(I);if(!s.isValidNot0(L))throw new Error("invalid private key");let V=[we(L),we(q)];if(C!=null&&C!==!1){let Ne=C===!0?r(p.secretKey):C;V.push(Me(Ne,void 0,"extraEntropy"))}let Re=ft(...V),oe=q;function ye(Ne){let Ve=j(Ne);if(!s.isValidNot0(Ve))return;let pt=s.inv(Ve),be=e.BASE.multiply(Ve).toAffine(),ht=s.create(be.x);if(ht===Yr)return;let Cn=s.create(pt*s.create(oe+ht*L));if(Cn===Yr)return;let hc=(be.x===ht?0:2)|Number(be.y&sc),Ml=Cn;return B&&y(Cn)&&(Ml=s.neg(Cn),hc^=1),new P(ht,Ml,m?void 0:hc)}return{seed:Re,k2sig:ye}}function de(M,I,R={}){let{seed:B,k2sig:U}=J(M,I,R);return V2(t.outputLen,s.BYTES,o)(B,U).toBytes(R.format)}function G(M,I,R,B={}){let{lowS:U,prehash:C,format:q}=Ax(B,h);if(R=Me(R,void 0,"publicKey"),I=N(I,C),!hl(M)){let L=M instanceof P?", use sig.toBytes()":"";throw new Error("verify expects Uint8Array signature"+L)}A(M,q);try{let L=P.fromBytes(M,q),V=e.fromBytes(R);if(U&&L.hasHighS())return!1;let{r:Re,s:oe}=L,ye=Q(I),Ne=s.inv(oe),Ve=s.create(ye*Ne),pt=s.create(Re*Ne),be=e.BASE.multiplyUnsafe(Ve).add(V.multiplyUnsafe(pt));return be.is0()?!1:s.create(be.x)===Re}catch{return!1}}function O(M,I,R={}){let{prehash:B}=Ax(R,h);return I=N(I,B),P.fromBytes(M,"recovered").recoverPublicKey(I).toBytes()}return Object.freeze({keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:p,Point:e,sign:de,verify:G,recoverPublicKey:O,Signature:P,hash:t})}var ry={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Wfe={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Vfe=BigInt(0),Ox=BigInt(2);function Gfe(e){let t=ry.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,f=wn(l,n,t)*l%t,d=wn(f,n,t)*l%t,p=wn(d,Ox,t)*u%t,h=wn(p,o,t)*p%t,m=wn(h,i,t)*h%t,y=wn(m,a,t)*m%t,v=wn(y,c,t)*y%t,w=wn(v,a,t)*m%t,A=wn(w,n,t)*l%t,P=wn(A,s,t)*h%t,j=wn(P,r,t)*u%t,Q=wn(j,Ox,t);if(!ty.eql(ty.sqr(Q),e))throw new Error("Cannot find square root");return Q}var ty=oc(ry.p,{sqrt:Gfe}),Xi=dj(ry,{Fp:ty,endo:Wfe}),wl=gj(Xi,Ut),mj={};function ny(e,...t){let n=mj[e];if(n===void 0){let r=Ut(K2(e));n=ft(r,r),mj[e]=n}return Ut(ft(n,...t))}var Cx=e=>e.toBytes(!0).slice(1),Dx=e=>e%Ox===Vfe;function Px(e){let{Fn:t,BASE:n}=Xi,r=t.fromBytes(e),o=n.multiply(r);return{scalar:Dx(o.y)?r:t.neg(r),bytes:Cx(o)}}function vj(e){let t=ty;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x \u2265 p");let n=t.create(e*e),r=t.create(n*e+BigInt(7)),o=t.sqrt(r);Dx(o)||(o=t.neg(o));let i=Xi.fromAffine({x:e,y:o});return i.assertValidity(),i}var _l=Yo;function bj(...e){return Xi.Fn.create(_l(ny("BIP0340/challenge",...e)))}function yj(e){return Px(e).bytes}function zfe(e,t,n=Kn(32)){let{Fn:r}=Xi,o=Me(e,void 0,"message"),{bytes:i,scalar:s}=Px(t),a=Me(n,32,"auxRand"),c=r.toBytes(s^_l(ny("BIP0340/aux",a))),u=ny("BIP0340/nonce",c,i,o),{bytes:l,scalar:f}=Px(u),d=bj(l,i,o),p=new Uint8Array(64);if(p.set(l,0),p.set(r.toBytes(r.create(f+d*s)),32),!_j(p,o,i))throw new Error("sign: Invalid signature produced");return p}function _j(e,t,n){let{Fp:r,Fn:o,BASE:i}=Xi,s=Me(e,64,"signature"),a=Me(t,void 0,"message"),c=Me(n,32,"publicKey");try{let u=vj(_l(c)),l=_l(s.subarray(0,32));if(!r.isValidNot0(l))return!1;let f=_l(s.subarray(32,64));if(!o.isValidNot0(f))return!1;let d=bj(o.toBytes(l),Cx(u),a),p=i.multiplyUnsafe(f).add(u.multiplyUnsafe(o.neg(d))),{x:h,y:m}=p.toAffine();return!(p.is0()||!Dx(m)||h!==l)}catch{return!1}}var ac=(()=>{let n=(r=Kn(48))=>Zm(r,ry.n);return{keygen:Jm(n,yj),getPublicKey:yj,sign:zfe,verify:_j,Point:Xi,utils:{randomSecretKey:n,taggedHash:ny,lift_x:vj,pointToBytes:Cx},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();function Lx(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Yfe(e){if(!Lx(e))throw new Error("Uint8Array expected")}function xj(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(n=>typeof n=="string"):t.every(n=>Number.isSafeInteger(n)):!1}function Zfe(e){if(typeof e!="function")throw new Error("function expected");return!0}function es(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function jx(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function kx(e){if(!Array.isArray(e))throw new Error("array expected")}function iy(e,t){if(!xj(!0,t))throw new Error(`${e}: array of strings expected`)}function Ij(e,t){if(!xj(!1,t))throw new Error(`${e}: array of numbers expected`)}function Aj(...e){let t=i=>i,n=(i,s)=>a=>i(s(a)),r=e.map(i=>i.encode).reduceRight(n,t),o=e.map(i=>i.decode).reduce(n,t);return{encode:r,decode:o}}function Tj(e){let t=typeof e=="string"?e.split(""):e,n=t.length;iy("alphabet",t);let r=new Map(t.map((o,i)=>[o,i]));return{encode:o=>(kx(o),o.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${e}`);return t[i]})),decode:o=>(kx(o),o.map(i=>{es("alphabet.decode",i);let s=r.get(i);if(s===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${e}`);return s}))}}function Mj(e=""){return es("join",e),{encode:t=>(iy("join.decode",t),t.join(e)),decode:t=>(es("join.decode",t),t.split(e))}}function Qfe(e,t="="){return jx(e),es("padding",t),{encode(n){for(iy("padding.encode",n);n.length*e%8;)n.push(t);return n},decode(n){iy("padding.decode",n);let r=n.length;if(r*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if((r-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,r)}}}var Oj=(e,t)=>t===0?e:Oj(t,e%t),sy=(e,t)=>e+(t-Oj(e,t)),oy=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function Rx(e,t,n,r){if(kx(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(sy(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${sy(t,n)}`);let o=0,i=0,s=oy[t],a=oy[n]-1,c=[];for(let u of e){if(jx(u),u>=s)throw new Error(`convertRadix2: invalid data word=${u} from=${t}`);if(o=o<<t|u,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)c.push((o>>i-n&a)>>>0);let l=oy[i];if(l===void 0)throw new Error("invalid carry");o&=l-1}if(o=o<<n-i&a,!r&&i>=t)throw new Error("Excess padding");if(!r&&o>0)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&c.push(o>>>0),c}function Pj(e,t=!1){if(jx(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(sy(8,e)>32||sy(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!Lx(n))throw new Error("radix2.encode input should be Uint8Array");return Rx(Array.from(n),8,e,!t)},decode:n=>(Ij("radix2.decode",n),Uint8Array.from(Rx(n,e,8,t)))}}function wj(e){return Zfe(e),function(...t){try{return e.apply(null,t)}catch{}}}var Jfe=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",Xfe=(e,t)=>{es("base64",e);let n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?"base64url":"base64";if(e.length>0&&!n.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:"strict"})},Vn=Jfe?{encode(e){return Yfe(e),e.toBase64()},decode(e){return Xfe(e,!1)}}:Aj(Pj(6),Tj("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Qfe(6),Mj(""));var Nx=Aj(Tj("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),Mj("")),Ej=[996825010,642813549,513874426,1027748829,705979059];function El(e){let t=e>>25,n=(e&33554431)<<5;for(let r=0;r<Ej.length;r++)(t>>r&1)===1&&(n^=Ej[r]);return n}function Sj(e,t,n=1){let r=e.length,o=1;for(let i=0;i<r;i++){let s=e.charCodeAt(i);if(s<33||s>126)throw new Error(`Invalid prefix (${e})`);o=El(o)^s>>5}o=El(o);for(let i=0;i<r;i++)o=El(o)^e.charCodeAt(i)&31;for(let i of t)o=El(o)^i;for(let i=0;i<6;i++)o=El(o);return o^=n,Nx.encode(Rx([o%oy[30]],30,5,!1))}function ede(e){let t=e==="bech32"?1:734539939,n=Pj(5),r=n.decode,o=n.encode,i=wj(r);function s(f,d,p=90){es("bech32.encode prefix",f),Lx(d)&&(d=Array.from(d)),Ij("bech32.encode",d);let h=f.length;if(h===0)throw new TypeError(`Invalid prefix length ${h}`);let m=h+7+d.length;if(p!==!1&&m>p)throw new TypeError(`Length ${m} exceeds limit ${p}`);let y=f.toLowerCase(),v=Sj(y,d,t);return`${y}1${Nx.encode(d)}${v}`}function a(f,d=90){es("bech32.decode input",f);let p=f.length;if(p<8||d!==!1&&p>d)throw new TypeError(`invalid string length: ${p} (${f}). Expected (8..${d})`);let h=f.toLowerCase();if(f!==h&&f!==f.toUpperCase())throw new Error("String must be lowercase or uppercase");let m=h.lastIndexOf("1");if(m===0||m===-1)throw new Error('Letter "1" must be present between prefix and data only');let y=h.slice(0,m),v=h.slice(m+1);if(v.length<6)throw new Error("Data must be at least 6 characters long");let w=Nx.decode(v).slice(0,-6),A=Sj(y,w,t);if(!v.endsWith(A))throw new Error(`Invalid checksum in ${f}: expected "${A}"`);return{prefix:y,words:w}}let c=wj(a);function u(f){let{prefix:d,words:p}=a(f,!1);return{prefix:d,words:p,bytes:r(p)}}function l(f,d){return s(f,o(d))}return{encode:s,decode:a,encodeFromBytes:l,decodeToBytes:u,decodeUnsafe:c,fromWords:r,fromWordsUnsafe:i,toWords:o}}var Jo=ede("bech32");function tde(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ay(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function Sl(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ze(e,t,n=""){let r=tde(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let s=n&&`"${n}" `,a=i?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+a+", got "+c)}return e}function Fx(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Cj(e,t){Ze(e,void 0,"output");let n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function yt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Rt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Dj(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}var nde=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function kj(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}function qx(e,t){if(kj(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")}function Rj(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function xl(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}var Il=(e,t)=>{function n(r,...o){if(Ze(r,void 0,"key"),!nde)throw new Error("Non little-endian hardware is not yet supported");if(e.nonceLength!==void 0){let l=o[0];Ze(l,e.varSizeNonce?void 0:e.nonceLength,"nonce")}let i=e.tagLength;i&&o[1]!==void 0&&Ze(o[1],void 0,"AAD");let s=t(r,...o),a=(l,f)=>{if(f!==void 0){if(l!==2)throw new Error("cipher output not supported");Ze(f,void 0,"output")}},c=!1;return{encrypt(l,f){if(c)throw new Error("cannot encrypt() twice with same key + nonce");return c=!0,Ze(l),a(s.encrypt.length,f),s.encrypt(l,f)},decrypt(l,f){if(Ze(l),i&&l.length<i)throw new Error('"ciphertext" expected length bigger than tagLength='+i);return a(s.decrypt.length,f),s.decrypt(l,f)}}}return Object.assign(n,e),n};function cc(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(t.length!==e)throw new Error('"output" expected Uint8Array of length '+e+", got: "+t.length);if(n&&!ts(t))throw new Error("invalid output, must be aligned");return t}function Bx(e,t,n){ay(n);let r=new Uint8Array(16),o=Dj(r);return o.setBigUint64(0,BigInt(t),n),o.setBigUint64(8,BigInt(e),n),r}function ts(e){return e.byteOffset%4===0}function On(e){return Uint8Array.from(e)}var wt=16;var ode=283;function Lj(e){if(![16,24,32].includes(e.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+e.length)}function Wx(e){return e<<1^ode&-(e>>7)}function uc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(t&1),e=Wx(e);return n}var $x=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=Wx(r))e[n]=r;let t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=(r^r>>4^r>>5^r>>6^r>>7^99)&255}return Rt(e),t})(),ide=$x.map((e,t)=>$x.indexOf(t)),sde=e=>e<<24|e>>>8,Ux=e=>e<<8|e>>>24;function jj(e,t){if(e.length!==256)throw new Error("Wrong sbox length");let n=new Uint32Array(256).map((u,l)=>t(e[l])),r=n.map(Ux),o=r.map(Ux),i=o.map(Ux),s=new Uint32Array(256*256),a=new Uint32Array(256*256),c=new Uint16Array(256*256);for(let u=0;u<256;u++)for(let l=0;l<256;l++){let f=u*256+l;s[f]=n[u]^r[l],a[f]=o[u]^i[l],c[f]=e[u]<<8|e[l]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}var Vx=jj($x,e=>uc(e,3)<<24|e<<16|e<<8|uc(e,2)),Fj=jj(ide,e=>uc(e,11)<<24|uc(e,13)<<16|uc(e,9)<<8|uc(e,14)),ade=(()=>{let e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=Wx(n))e[t]=n;return e})();function Gx(e){Ze(e);let t=e.length;Lj(e);let{sbox2:n}=Vx,r=[];ts(e)||r.push(e=On(e));let o=yt(e),i=o.length,s=c=>br(n,c,c,c,c),a=new Uint32Array(t+28);a.set(o);for(let c=i;c<a.length;c++){let u=a[c-1];c%i===0?u=s(sde(u))^ade[c/i-1]:i>6&&c%i===4&&(u=s(u)),a[c]=a[c-i]^u}return Rt(...r),a}function cde(e){let t=Gx(e),n=t.slice(),r=t.length,{sbox2:o}=Vx,{T0:i,T1:s,T2:a,T3:c}=Fj;for(let u=0;u<r;u+=4)for(let l=0;l<4;l++)n[u+l]=t[r-u-4+l];Rt(t);for(let u=4;u<r-4;u++){let l=n[u],f=br(o,l,l,l,l);n[u]=i[f&255]^s[f>>>8&255]^a[f>>>16&255]^c[f>>>24]}return n}function Xo(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function br(e,t,n,r,o){return e[t&255|n&65280]|e[r>>>16&255|o>>>16&65280]<<16}function Kx(e,t,n,r,o){let{sbox2:i,T01:s,T23:a}=Vx,c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];let u=e.length/4-2;for(let h=0;h<u;h++){let m=e[c++]^Xo(s,a,t,n,r,o),y=e[c++]^Xo(s,a,n,r,o,t),v=e[c++]^Xo(s,a,r,o,t,n),w=e[c++]^Xo(s,a,o,t,n,r);t=m,n=y,r=v,o=w}let l=e[c++]^br(i,t,n,r,o),f=e[c++]^br(i,n,r,o,t),d=e[c++]^br(i,r,o,t,n),p=e[c++]^br(i,o,t,n,r);return{s0:l,s1:f,s2:d,s3:p}}function ude(e,t,n,r,o){let{sbox2:i,T01:s,T23:a}=Fj,c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];let u=e.length/4-2;for(let h=0;h<u;h++){let m=e[c++]^Xo(s,a,t,o,r,n),y=e[c++]^Xo(s,a,n,t,o,r),v=e[c++]^Xo(s,a,r,n,t,o),w=e[c++]^Xo(s,a,o,r,n,t);t=m,n=y,r=v,o=w}let l=e[c++]^br(i,t,o,r,n),f=e[c++]^br(i,n,t,o,r),d=e[c++]^br(i,r,n,t,o),p=e[c++]^br(i,o,r,n,t);return{s0:l,s1:f,s2:d,s3:p}}function lde(e){if(Ze(e),e.length%wt!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size "+wt)}function fde(e,t,n){Ze(e);let r=e.length,o=r%wt;if(!t&&o!==0)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");ts(e)||(e=On(e));let i=yt(e);if(t){let a=wt-o;a||(a=wt),r=r+a}n=cc(r,n),qx(e,n);let s=yt(n);return{b:i,o:s,out:n}}function dde(e,t){if(!t)return e;let n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");let r=e[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");let o=e.subarray(0,-r);for(let i=0;i<r;i++)if(e[n-i-1]!==r)throw new Error("aes/pcks5: wrong padding");return o}function pde(e){let t=new Uint8Array(16),n=yt(t);t.set(e);let r=wt-e.length;for(let o=wt-r;o<wt;o++)t[o]=r;return n}var zx=Il({blockSize:16,nonceLength:16},function(t,n,r={}){let o=!r.disablePadding;return{encrypt(i,s){let a=Gx(t),{b:c,o:u,out:l}=fde(i,o,s),f=n,d=[a];ts(f)||d.push(f=On(f));let p=yt(f),h=p[0],m=p[1],y=p[2],v=p[3],w=0;for(;w+4<=c.length;)h^=c[w+0],m^=c[w+1],y^=c[w+2],v^=c[w+3],{s0:h,s1:m,s2:y,s3:v}=Kx(a,h,m,y,v),u[w++]=h,u[w++]=m,u[w++]=y,u[w++]=v;if(o){let A=pde(i.subarray(w*4));h^=A[0],m^=A[1],y^=A[2],v^=A[3],{s0:h,s1:m,s2:y,s3:v}=Kx(a,h,m,y,v),u[w++]=h,u[w++]=m,u[w++]=y,u[w++]=v}return Rt(...d),l},decrypt(i,s){lde(i);let a=cde(t),c=n,u=[a];ts(c)||u.push(c=On(c));let l=yt(c);s=cc(i.length,s),ts(i)||u.push(i=On(i)),qx(i,s);let f=yt(i),d=yt(s),p=l[0],h=l[1],m=l[2],y=l[3];for(let v=0;v+4<=f.length;){let w=p,A=h,P=m,j=y;p=f[v+0],h=f[v+1],m=f[v+2],y=f[v+3];let{s0:Q,s1:ue,s2:we,s3:N}=ude(a,p,h,m,y);d[v++]=Q^w,d[v++]=ue^A,d[v++]=we^P,d[v++]=N^j}return Rt(...u),dde(s,o)}}});function hde(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint32Array"}function Hx(e,t){if(Ze(t,16,"block"),!hde(e))throw new Error("_encryptBlock accepts result of expandKeyLE");let n=yt(t),{s0:r,s1:o,s2:i,s3:s}=Kx(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=s,t}function Nj(e){let t=0;for(let n=wt-1;n>=0;n--){let r=(e[n]&128)>>>7;e[n]=e[n]<<1|t,t=r}return t&&(e[wt-1]^=135),e}function cy(e,t){if(e.length!==t.length)throw new Error("xorBlock: blocks must have same length");for(let n=0;n<e.length;n++)e[n]=e[n]^t[n];return e}var uy=class{buffer;destroyed;k1;k2;xk;constructor(t){Ze(t),Lj(t),this.xk=Gx(t),this.buffer=new Uint8Array(0),this.destroyed=!1;let n=new Uint8Array(wt);Hx(this.xk,n),this.k1=Nj(n),this.k2=Nj(new Uint8Array(this.k1))}update(t){let{destroyed:n,buffer:r}=this;if(n)throw new Error("CMAC instance was destroyed");Ze(t);let o=new Uint8Array(r.length+t.length);return o.set(r),o.set(t,r.length),this.buffer=o,this}digest(){if(this.destroyed)throw new Error("CMAC instance was destroyed");let{buffer:t}=this,n=t.length,r=Math.ceil(n/wt),o;r===0?(r=1,o=!1):o=n%wt===0;let i=(r-1)*wt,s=t.subarray(i),a;if(o)a=cy(new Uint8Array(s),this.k1);else{let u=new Uint8Array(wt);u.set(s),u[s.length]=128,a=cy(u,this.k2)}let c=new Uint8Array(wt);for(let u=0;u<r-1;u++){let l=t.subarray(u*wt,(u+1)*wt);cy(c,l),Hx(this.xk,c)}return cy(c,a),Hx(this.xk,c),Rt(a),c}destroy(){let{buffer:t,destroyed:n,xk:r,k1:o,k2:i}=this;n||(this.destroyed=!0,Rt(t,r,o,i))}},gde=(e,t)=>new uy(e).update(t).digest();gde.create=e=>new uy(e);var Bj=e=>Uint8Array.from(e.split(""),t=>t.charCodeAt(0)),mde=Bj("expand 16-byte k"),yde=Bj("expand 32-byte k"),vde=yt(mde),bde=yt(yde);function Y(e,t){return e<<t|e>>>32-t}function Yx(e){return e.byteOffset%4===0}var ly=64,_de=16,Uj=2**32-1,qj=Uint32Array.of();function wde(e,t,n,r,o,i,s,a){let c=o.length,u=new Uint8Array(ly),l=yt(u),f=Yx(o)&&Yx(i),d=f?yt(o):qj,p=f?yt(i):qj;for(let h=0;h<c;s++){if(e(t,n,r,l,s,a),s>=Uj)throw new Error("arx: counter overflow");let m=Math.min(ly,c-h);if(f&&m===ly){let y=h/4;if(h%4!==0)throw new Error("arx: invalid block position");for(let v=0,w;v<_de;v++)w=y+v,p[w]=d[w]^l[v];h+=ly;continue}for(let y=0,v;y<m;y++)v=h+y,i[v]=o[v]^u[y];h+=m}}function Zx(e,t){let{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:s}=Rj({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return Sl(o),Sl(s),ay(i),ay(n),(a,c,u,l,f=0)=>{Ze(a,void 0,"key"),Ze(c,void 0,"nonce"),Ze(u,void 0,"data");let d=u.length;if(l===void 0&&(l=new Uint8Array(d)),Ze(l,void 0,"output"),Sl(f),f<0||f>=Uj)throw new Error("arx: counter overflow");if(l.length<d)throw new Error(`arx: output (${l.length}) is shorter than data (${d})`);let p=[],h=a.length,m,y;if(h===32)p.push(m=On(a)),y=bde;else if(h===16&&n)m=new Uint8Array(32),m.set(a),m.set(a,16),y=vde,p.push(m);else throw Ze(a,32,"arx key"),new Error("invalid key size");Yx(c)||p.push(c=On(c));let v=yt(m);if(r){if(c.length!==24)throw new Error("arx: extended nonce must be 24 bytes");r(y,v,yt(c.subarray(0,16)),v),c=c.subarray(16)}let w=16-o;if(w!==c.length)throw new Error(`arx: nonce must be ${w} or 16 bytes`);if(w!==12){let P=new Uint8Array(12);P.set(c,i?0:12-c.length),c=P,p.push(c)}let A=yt(c);return wde(e,y,v,A,u,l,f,s),Rt(...p),l}}function Nt(e,t){return e[t++]&255|(e[t++]&255)<<8}var Qx=class{blockLen=16;outputLen=16;buffer=new Uint8Array(16);r=new Uint16Array(10);h=new Uint16Array(10);pad=new Uint16Array(8);pos=0;finished=!1;constructor(t){t=On(Ze(t,32,"key"));let n=Nt(t,0),r=Nt(t,2),o=Nt(t,4),i=Nt(t,6),s=Nt(t,8),a=Nt(t,10),c=Nt(t,12),u=Nt(t,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|i<<9)&8191,this.r[4]=(i>>>4|s<<12)&255,this.r[5]=s>>>1&8190,this.r[6]=(s>>>14|a<<2)&8191,this.r[7]=(a>>>11|c<<5)&8065,this.r[8]=(c>>>8|u<<8)&8191,this.r[9]=u>>>5&127;for(let l=0;l<8;l++)this.pad[l]=Nt(t,16+2*l)}process(t,n,r=!1){let o=r?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],u=s[2],l=s[3],f=s[4],d=s[5],p=s[6],h=s[7],m=s[8],y=s[9],v=Nt(t,n+0),w=Nt(t,n+2),A=Nt(t,n+4),P=Nt(t,n+6),j=Nt(t,n+8),Q=Nt(t,n+10),ue=Nt(t,n+12),we=Nt(t,n+14),N=i[0]+(v&8191),J=i[1]+((v>>>13|w<<3)&8191),de=i[2]+((w>>>10|A<<6)&8191),G=i[3]+((A>>>7|P<<9)&8191),O=i[4]+((P>>>4|j<<12)&8191),M=i[5]+(j>>>1&8191),I=i[6]+((j>>>14|Q<<2)&8191),R=i[7]+((Q>>>11|ue<<5)&8191),B=i[8]+((ue>>>8|we<<8)&8191),U=i[9]+(we>>>5|o),C=0,q=C+N*a+J*(5*y)+de*(5*m)+G*(5*h)+O*(5*p);C=q>>>13,q&=8191,q+=M*(5*d)+I*(5*f)+R*(5*l)+B*(5*u)+U*(5*c),C+=q>>>13,q&=8191;let L=C+N*c+J*a+de*(5*y)+G*(5*m)+O*(5*h);C=L>>>13,L&=8191,L+=M*(5*p)+I*(5*d)+R*(5*f)+B*(5*l)+U*(5*u),C+=L>>>13,L&=8191;let V=C+N*u+J*c+de*a+G*(5*y)+O*(5*m);C=V>>>13,V&=8191,V+=M*(5*h)+I*(5*p)+R*(5*d)+B*(5*f)+U*(5*l),C+=V>>>13,V&=8191;let Re=C+N*l+J*u+de*c+G*a+O*(5*y);C=Re>>>13,Re&=8191,Re+=M*(5*m)+I*(5*h)+R*(5*p)+B*(5*d)+U*(5*f),C+=Re>>>13,Re&=8191;let oe=C+N*f+J*l+de*u+G*c+O*a;C=oe>>>13,oe&=8191,oe+=M*(5*y)+I*(5*m)+R*(5*h)+B*(5*p)+U*(5*d),C+=oe>>>13,oe&=8191;let ye=C+N*d+J*f+de*l+G*u+O*c;C=ye>>>13,ye&=8191,ye+=M*a+I*(5*y)+R*(5*m)+B*(5*h)+U*(5*p),C+=ye>>>13,ye&=8191;let Ne=C+N*p+J*d+de*f+G*l+O*u;C=Ne>>>13,Ne&=8191,Ne+=M*c+I*a+R*(5*y)+B*(5*m)+U*(5*h),C+=Ne>>>13,Ne&=8191;let Ve=C+N*h+J*p+de*d+G*f+O*l;C=Ve>>>13,Ve&=8191,Ve+=M*u+I*c+R*a+B*(5*y)+U*(5*m),C+=Ve>>>13,Ve&=8191;let pt=C+N*m+J*h+de*p+G*d+O*f;C=pt>>>13,pt&=8191,pt+=M*l+I*u+R*c+B*a+U*(5*y),C+=pt>>>13,pt&=8191;let be=C+N*y+J*m+de*h+G*p+O*d;C=be>>>13,be&=8191,be+=M*f+I*l+R*u+B*c+U*a,C+=be>>>13,be&=8191,C=(C<<2)+C|0,C=C+q|0,q=C&8191,C=C>>>13,L+=C,i[0]=q,i[1]=L,i[2]=V,i[3]=Re,i[4]=oe,i[5]=ye,i[6]=Ne,i[7]=Ve,i[8]=pt,i[9]=be}finalize(){let{h:t,pad:n}=this,r=new Uint16Array(10),o=t[1]>>>13;t[1]&=8191;for(let a=2;a<10;a++)t[a]+=o,o=t[a]>>>13,t[a]&=8191;t[0]+=o*5,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let a=1;a<10;a++)r[a]=t[a]+o,o=r[a]>>>13,r[a]&=8191;r[9]-=8192;let i=(o^1)-1;for(let a=0;a<10;a++)r[a]&=i;i=~i;for(let a=0;a<10;a++)t[a]=t[a]&i|r[a];t[0]=(t[0]|t[1]<<13)&65535,t[1]=(t[1]>>>3|t[2]<<10)&65535,t[2]=(t[2]>>>6|t[3]<<7)&65535,t[3]=(t[3]>>>9|t[4]<<4)&65535,t[4]=(t[4]>>>12|t[5]<<1|t[6]<<14)&65535,t[5]=(t[6]>>>2|t[7]<<11)&65535,t[6]=(t[7]>>>5|t[8]<<8)&65535,t[7]=(t[8]>>>8|t[9]<<5)&65535;let s=t[0]+n[0];t[0]=s&65535;for(let a=1;a<8;a++)s=(t[a]+n[a]|0)+(s>>>16)|0,t[a]=s&65535;Rt(r)}update(t){Fx(this),Ze(t),t=On(t);let{buffer:n,blockLen:r}=this,o=t.length;for(let i=0;i<o;){let s=Math.min(r-this.pos,o-i);if(s===r){for(;r<=o-i;i+=r)this.process(t,i);continue}n.set(t.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===r&&(this.process(n,0,!1),this.pos=0)}return this}destroy(){Rt(this.h,this.r,this.buffer,this.pad)}digestInto(t){Fx(this),Cj(t,this),this.finished=!0;let{buffer:n,h:r}=this,{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let i=0;for(let s=0;s<8;s++)t[i++]=r[s]>>>0,t[i++]=r[s]>>>8;return t}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}};function Ede(e){let t=(r,o)=>e(o).update(r).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}var Hj=Ede(e=>new Qx(e));function Wj(e,t,n,r,o,i=20){let s=e[0],a=e[1],c=e[2],u=e[3],l=t[0],f=t[1],d=t[2],p=t[3],h=t[4],m=t[5],y=t[6],v=t[7],w=o,A=n[0],P=n[1],j=n[2],Q=s,ue=a,we=c,N=u,J=l,de=f,G=d,O=p,M=h,I=m,R=y,B=v,U=w,C=A,q=P,L=j;for(let Re=0;Re<i;Re+=2)Q=Q+J|0,U=Y(U^Q,16),M=M+U|0,J=Y(J^M,12),Q=Q+J|0,U=Y(U^Q,8),M=M+U|0,J=Y(J^M,7),ue=ue+de|0,C=Y(C^ue,16),I=I+C|0,de=Y(de^I,12),ue=ue+de|0,C=Y(C^ue,8),I=I+C|0,de=Y(de^I,7),we=we+G|0,q=Y(q^we,16),R=R+q|0,G=Y(G^R,12),we=we+G|0,q=Y(q^we,8),R=R+q|0,G=Y(G^R,7),N=N+O|0,L=Y(L^N,16),B=B+L|0,O=Y(O^B,12),N=N+O|0,L=Y(L^N,8),B=B+L|0,O=Y(O^B,7),Q=Q+de|0,L=Y(L^Q,16),R=R+L|0,de=Y(de^R,12),Q=Q+de|0,L=Y(L^Q,8),R=R+L|0,de=Y(de^R,7),ue=ue+G|0,U=Y(U^ue,16),B=B+U|0,G=Y(G^B,12),ue=ue+G|0,U=Y(U^ue,8),B=B+U|0,G=Y(G^B,7),we=we+O|0,C=Y(C^we,16),M=M+C|0,O=Y(O^M,12),we=we+O|0,C=Y(C^we,8),M=M+C|0,O=Y(O^M,7),N=N+J|0,q=Y(q^N,16),I=I+q|0,J=Y(J^I,12),N=N+J|0,q=Y(q^N,8),I=I+q|0,J=Y(J^I,7);let V=0;r[V++]=s+Q|0,r[V++]=a+ue|0,r[V++]=c+we|0,r[V++]=u+N|0,r[V++]=l+J|0,r[V++]=f+de|0,r[V++]=d+G|0,r[V++]=p+O|0,r[V++]=h+M|0,r[V++]=m+I|0,r[V++]=y+R|0,r[V++]=v+B|0,r[V++]=w+U|0,r[V++]=A+C|0,r[V++]=P+q|0,r[V++]=j+L|0}function Sde(e,t,n,r){let o=e[0],i=e[1],s=e[2],a=e[3],c=t[0],u=t[1],l=t[2],f=t[3],d=t[4],p=t[5],h=t[6],m=t[7],y=n[0],v=n[1],w=n[2],A=n[3];for(let j=0;j<20;j+=2)o=o+c|0,y=Y(y^o,16),d=d+y|0,c=Y(c^d,12),o=o+c|0,y=Y(y^o,8),d=d+y|0,c=Y(c^d,7),i=i+u|0,v=Y(v^i,16),p=p+v|0,u=Y(u^p,12),i=i+u|0,v=Y(v^i,8),p=p+v|0,u=Y(u^p,7),s=s+l|0,w=Y(w^s,16),h=h+w|0,l=Y(l^h,12),s=s+l|0,w=Y(w^s,8),h=h+w|0,l=Y(l^h,7),a=a+f|0,A=Y(A^a,16),m=m+A|0,f=Y(f^m,12),a=a+f|0,A=Y(A^a,8),m=m+A|0,f=Y(f^m,7),o=o+u|0,A=Y(A^o,16),h=h+A|0,u=Y(u^h,12),o=o+u|0,A=Y(A^o,8),h=h+A|0,u=Y(u^h,7),i=i+l|0,y=Y(y^i,16),m=m+y|0,l=Y(l^m,12),i=i+l|0,y=Y(y^i,8),m=m+y|0,l=Y(l^m,7),s=s+f|0,v=Y(v^s,16),d=d+v|0,f=Y(f^d,12),s=s+f|0,v=Y(v^s,8),d=d+v|0,f=Y(f^d,7),a=a+c|0,w=Y(w^a,16),p=p+w|0,c=Y(c^p,12),a=a+c|0,w=Y(w^a,8),p=p+w|0,c=Y(c^p,7);let P=0;r[P++]=o,r[P++]=i,r[P++]=s,r[P++]=a,r[P++]=y,r[P++]=v,r[P++]=w,r[P++]=A}var fy=Zx(Wj,{counterRight:!1,counterLength:4,allowShortKeys:!1}),xde=Zx(Wj,{counterRight:!1,counterLength:8,extendNonceFn:Sde,allowShortKeys:!1});var Ide=new Uint8Array(16),$j=(e,t)=>{e.update(t);let n=t.length%16;n&&e.update(Ide.subarray(n))},Ade=new Uint8Array(32);function Kj(e,t,n,r,o){o!==void 0&&Ze(o,void 0,"AAD");let i=e(t,n,Ade),s=Bx(r.length,o?o.length:0,!0),a=Hj.create(i);o&&$j(a,o),$j(a,r),a.update(s);let c=a.digest();return Rt(i,s),c}var Vj=e=>(t,n,r)=>({encrypt(i,s){let a=i.length;s=cc(a+16,s,!1),s.set(i);let c=s.subarray(0,-16);e(t,n,c,c,1);let u=Kj(e,t,n,c,r);return s.set(u,a),Rt(u),s},decrypt(i,s){s=cc(i.length-16,s,!1);let a=i.subarray(0,-16),c=i.subarray(-16),u=Kj(e,t,n,a,r);if(!xl(c,u))throw new Error("invalid tag");return s.set(i.subarray(0,-16)),e(t,n,s,s,1),Rt(u),s}}),ANe=Il({blockSize:64,nonceLength:12,tagLength:16},Vj(fy)),TNe=Il({blockSize:64,nonceLength:24,tagLength:16},Vj(xde));function zj(e,t,n){return Zi(e),n===void 0&&(n=new Uint8Array(e.outputLen)),Zo(e,n,t)}var Jx=Uint8Array.of(0),Gj=Uint8Array.of();function Yj(e,t,n,r=32){Zi(e),Mn(r,"length");let o=e.outputLen;if(r>255*o)throw new Error("Length must be <= 255*HashLen");let i=Math.ceil(r/o);n===void 0?n=Gj:Me(n,void 0,"info");let s=new Uint8Array(i*o),a=Zo.create(e,t),c=a._cloneInto(),u=new Uint8Array(a.outputLen);for(let l=0;l<i;l++)Jx[0]=l+1,c.update(l===0?Gj:u).update(n).update(Jx).digestInto(u),s.set(u,o*l),a._cloneInto(c);return a.destroy(),c.destroy(),Gr(u,Jx),s.slice(0,r)}var Tde=Object.defineProperty,Ge=(e,t)=>{for(var n in t)Tde(e,n,{get:t[n],enumerable:!0})},Mde={};Ge(Mde,{binarySearch:()=>oI,bytesToHex:()=>Oe,hexToBytes:()=>Le,insertEventIntoAscendingList:()=>Cde,insertEventIntoDescendingList:()=>Pde,isHex32:()=>fn,mergeReverseSortedLists:()=>Dde,normalizeURL:()=>Ode,utf8Decoder:()=>Jr,utf8Encoder:()=>Pn});var Jr=new TextDecoder("utf-8"),Pn=new TextEncoder;function Ode(e){try{e.indexOf("://")===-1&&(e="wss://"+e);let t=new URL(e);return t.protocol==="http:"?t.protocol="ws:":t.protocol==="https:"&&(t.protocol="wss:"),t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),(t.port==="80"&&t.protocol==="ws:"||t.port==="443"&&t.protocol==="wss:")&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}catch{throw new Error(`Invalid URL: ${e}`)}}function Pde(e,t){let[n,r]=oI(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:o.created_at-t.created_at);return r||e.splice(n,0,t),e}function Cde(e,t){let[n,r]=oI(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:t.created_at-o.created_at);return r||e.splice(n,0,t),e}function oI(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),i=t(e[o]);if(i===0)return[o,!0];i<0?r=o-1:n=o+1}return[n,!1]}function Dde(e,t){let n=new Array(e.length+t.length);n.length=0;let r=0,o=0,i=[];for(;r<e.length&&o<t.length;){let s;if(e[r]?.created_at>t[o]?.created_at?(s=e[r],r++):(s=t[o],o++),n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}for(;r<e.length;){let s=e[r];if(r++,n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}for(;o<t.length;){let s=t[o];if(o++,n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}return n}function fn(e){for(let t=0;t<64;t++){let n=e.charCodeAt(t);if(isNaN(n)||n<48||n>102||n>57&&n<97)return!1}return!0}var lc=Symbol("verified"),kde=e=>e instanceof Object;function iI(e){if(!kde(e)||typeof e.kind!="number"||typeof e.content!="string"||typeof e.created_at!="number"||typeof e.pubkey!="string"||!fn(e.pubkey)||!Array.isArray(e.tags))return!1;for(let t=0;t<e.tags.length;t++){let n=e.tags[t];if(!Array.isArray(n))return!1;for(let r=0;r<n.length;r++)if(typeof n[r]!="string")return!1}return!0}var Rde=class{generateSecretKey(){return ac.utils.randomSecretKey()}getPublicKey(e){return Oe(ac.getPublicKey(e))}finalizeEvent(e,t){let n=e;return n.pubkey=Oe(ac.getPublicKey(t)),n.id=py(n),n.sig=Oe(ac.sign(Le(py(n)),t)),n[lc]=!0,n}verifyEvent(e){if(typeof e[lc]=="boolean")return e[lc];try{let t=py(e);if(t!==e.id)return e[lc]=!1,!1;let n=ac.verify(Le(e.sig),Le(t),Le(e.pubkey));return e[lc]=n,n}catch{return e[lc]=!1,!1}}};function Nde(e){if(!iI(e))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}function py(e){let t=Ut(Pn.encode(Nde(e)));return Oe(t)}var my=new Rde,Lde=my.generateSecretKey,dc=my.getPublicKey,En=my.finalizeEvent,Al=my.verifyEvent,jde={};Ge(jde,{AIEmbeddings:()=>Cpe,AppCurationSet:()=>dge,Application:()=>lge,AuthoredPodcasts:()=>Che,BadgeAward:()=>Wde,BadgeDefinition:()=>Jhe,Bid:()=>spe,BidConfirmation:()=>ape,BlobsAuth:()=>$he,BlockedRelaysList:()=>phe,BlossomServerList:()=>Ahe,BookmarkList:()=>lhe,Bookmarksets:()=>Ghe,Calendar:()=>Oge,CalendarEventRSVP:()=>Pge,CashuMintAnnouncement:()=>Uge,CashuWalletEvent:()=>qhe,CashuWalletHistory:()=>$pe,CashuWalletTokens:()=>Hpe,ChannelCreation:()=>sF,ChannelHideMessage:()=>uF,ChannelMessage:()=>cF,ChannelMetadata:()=>aF,ChannelMuteUser:()=>lF,ChatMessage:()=>Vde,Chess:()=>rpe,ClassifiedListing:()=>vge,ClientAuth:()=>dF,CodeSnippet:()=>mpe,CoinjoinPool:()=>Rpe,Comment:()=>fpe,CommunitiesList:()=>fhe,CommunityDefinition:()=>jge,CommunityPostApproval:()=>jpe,ConferenceEvent:()=>gge,Contacts:()=>Hde,CreateOrUpdateProduct:()=>tge,CreateOrUpdateStall:()=>ege,CuratedVideoSets:()=>Yhe,Curationsets:()=>zhe,Date:()=>Tge,DecoupledEncryptionKeyDistribution:()=>Lpe,DecoupledKeyAnnouncement:()=>She,DecoupledKeyClientAnnouncement:()=>Npe,DirectMessageRelaysList:()=>xhe,DraftClassifiedListing:()=>bge,DraftEvent:()=>xge,DraftLong:()=>ige,Emojisets:()=>sge,EncryptedDirectMessage:()=>$de,EventDeletion:()=>Kde,FavoriteFollowSets:()=>whe,FavoritePodcasts:()=>Ihe,FavoriteRelays:()=>mhe,FedimintAnnouncement:()=>Hge,Feed:()=>Age,FileMessage:()=>Zde,FileMetadata:()=>upe,FileServerPreference:()=>The,Followsets:()=>Khe,ForumThread:()=>zde,GenericRepost:()=>lI,Genericlists:()=>Whe,GeocacheListing:()=>qge,GeocacheLog:()=>Kpe,GeocacheLogEntry:()=>Bge,GeocacheProofOfFind:()=>Wpe,GiftWrap:()=>fF,GitPullRequest:()=>vpe,GitPullRequestUpdate:()=>bpe,GoodWikiAuthorList:()=>Mhe,GoodWikiRelayList:()=>Ohe,GroupMetadata:()=>Kge,HTTPAuth:()=>fI,Handlerinformation:()=>kge,Handlerrecommendation:()=>Dge,Highlights:()=>she,InteractiveRoom:()=>hge,InterestsList:()=>vhe,Interestsets:()=>Xhe,Issue:()=>_pe,JobFeedback:()=>Bpe,JobRequest:()=>Fpe,JobResult:()=>qpe,Label:()=>Ope,LegacyNsiteFile:()=>Nge,LightningPubRPC:()=>Bhe,LinkSet:()=>Ige,LiveChatMessage:()=>gpe,LiveEvent:()=>pge,LongFormArticle:()=>oge,MarketplaceUI:()=>nge,MediaFollows:()=>_he,MediaStarterPacks:()=>Zge,MergeRequests:()=>ope,Metadata:()=>Bde,ModularArticleContent:()=>cge,ModularArticleHeader:()=>age,MuteSets:()=>Zhe,Mutelist:()=>ahe,NWCWalletInfo:()=>jhe,NWCWalletRequest:()=>pF,NWCWalletResponse:()=>Uhe,NormalVideo:()=>Xde,NostrConnect:()=>Hhe,NsiteNamed:()=>Fge,NsiteRoot:()=>Fhe,NutZap:()=>nhe,NutZapInfo:()=>bhe,OpenTimestamps:()=>cpe,Patch:()=>ype,PeerToPeerOrderEvents:()=>$ge,Photo:()=>Jde,Pinlist:()=>che,PodcastEpisode:()=>npe,PodcastMetadata:()=>Phe,Poll:()=>lpe,PollResponse:()=>ipe,PrivateDirectMessage:()=>iF,PrivateEventRelayList:()=>yhe,ProblemTracker:()=>Ape,ProductSoldAsAuction:()=>rge,ProfileBadges:()=>Qhe,ProxyAnnouncement:()=>Nhe,PublicChatsList:()=>dhe,PublicMessage:()=>tpe,Reaction:()=>uI,ReactionToWebsite:()=>Qde,RecommendRelay:()=>Ude,Redirects:()=>Sge,RelayDiscovery:()=>fge,RelayList:()=>uhe,RelayMonitorAnnouncement:()=>Dhe,RelayReview:()=>Cge,RelayReviews:()=>Ppe,Relaysets:()=>Vhe,ReleaseArtifactSets:()=>uge,Reply:()=>wpe,Report:()=>Tpe,Reporting:()=>Mpe,RepositoryAnnouncement:()=>_ge,RepositoryState:()=>wge,Repost:()=>cI,ReservedCashuWalletTokens:()=>Upe,RoomPresence:()=>khe,Scroll:()=>ppe,Seal:()=>oF,SearchRelaysList:()=>hhe,ShortTextNote:()=>rF,ShortVideo:()=>epe,SimpleGroupAdmins:()=>Wge,SimpleGroupCreateGroup:()=>Zpe,SimpleGroupCreateInvite:()=>Jpe,SimpleGroupDeleteEvent:()=>Ype,SimpleGroupDeleteGroup:()=>Qpe,SimpleGroupEditMetadata:()=>zpe,SimpleGroupJoinRequest:()=>Xpe,SimpleGroupLeaveRequest:()=>ehe,SimpleGroupList:()=>ghe,SimpleGroupLiveKitParticipants:()=>zge,SimpleGroupMembers:()=>Vge,SimpleGroupPutUser:()=>Vpe,SimpleGroupRemoveUser:()=>Gpe,SimpleGroupReply:()=>Yde,SimpleGroupRoles:()=>Gge,SimpleGroupThreadedReply:()=>Gde,SlideSet:()=>yge,SoftwareApplication:()=>Rge,StarterPacks:()=>Yge,StatusApplied:()=>Spe,StatusClosed:()=>xpe,StatusDraft:()=>Ipe,StatusOpen:()=>Epe,TidalLogin:()=>rhe,Time:()=>Mge,Torrent:()=>Dpe,TorrentComment:()=>kpe,TransportMethodAnnouncement:()=>Lhe,UserEmojiList:()=>Ehe,UserGraspList:()=>Rhe,UserStatuses:()=>mge,VideoViewEvent:()=>Lge,Voice:()=>dpe,VoiceComment:()=>hpe,WebBookmarks:()=>Qge,WikiArticle:()=>Ege,Zap:()=>ihe,ZapGoal:()=>the,ZapRequest:()=>ohe,classifyKind:()=>Fde,isAddressableKind:()=>aI,isEphemeralKind:()=>nF,isKind:()=>qde,isRegularKind:()=>tF,isReplaceableKind:()=>sI});function tF(e){return e<1e4&&e!==0&&e!==3}function sI(e){return e===0||e===3||1e4<=e&&e<2e4}function nF(e){return 2e4<=e&&e<3e4}function aI(e){return 3e4<=e&&e<4e4}function Fde(e){return tF(e)?"regular":sI(e)?"replaceable":nF(e)?"ephemeral":aI(e)?"parameterized":"unknown"}function qde(e,t){let n=t instanceof Array?t:[t];return iI(e)&&n.includes(e.kind)||!1}var Bde=0,rF=1,Ude=2,Hde=3,$de=4,Kde=5,cI=6,uI=7,Wde=8,Vde=9,Gde=10,zde=11,Yde=12,oF=13,iF=14,Zde=15,lI=16,Qde=17,Jde=20,Xde=21,epe=22,tpe=24,sF=40,aF=41,cF=42,uF=43,lF=44,npe=54,rpe=64,ope=818,ipe=1018,spe=1021,ape=1022,cpe=1040,fF=1059,upe=1063,lpe=1068,fpe=1111,dpe=1222,ppe=1227,hpe=1244,gpe=1311,mpe=1337,ype=1617,vpe=1618,bpe=1619,_pe=1621,wpe=1622,Epe=1630,Spe=1631,xpe=1632,Ipe=1633,Ape=1971,Tpe=1984,Mpe=1984,Ope=1985,Ppe=1986,Cpe=1987,Dpe=2003,kpe=2004,Rpe=2022,Npe=4454,Lpe=4455,jpe=4550,Fpe=5999,qpe=6999,Bpe=7e3,Upe=7374,Hpe=7375,$pe=7376,Kpe=7516,Wpe=7517,Vpe=9e3,Gpe=9001,zpe=9002,Ype=9005,Zpe=9007,Qpe=9008,Jpe=9009,Xpe=9021,ehe=9022,the=9041,nhe=9321,rhe=9467,ohe=9734,ihe=9735,she=9802,ahe=1e4,che=10001,uhe=10002,lhe=10003,fhe=10004,dhe=10005,phe=10006,hhe=10007,ghe=10009,mhe=10012,yhe=10013,vhe=10015,bhe=10019,_he=10020,whe=10021,Ehe=10030,She=10044,xhe=10050,Ihe=10054,Ahe=10063,The=10096,Mhe=10101,Ohe=10102,Phe=10154,Che=10164,Dhe=10166,khe=10312,Rhe=10317,Nhe=10377,Lhe=11111,jhe=13194,Fhe=15128,qhe=17375,Bhe=21e3,dF=22242,pF=23194,Uhe=23195,Hhe=24133,$he=24242,fI=27235,Khe=3e4,Whe=30001,Vhe=30002,Ghe=30003,zhe=30004,Yhe=30005,Zhe=30007,Qhe=30008,Jhe=30009,Xhe=30015,ege=30017,tge=30018,nge=30019,rge=30020,oge=30023,ige=30024,sge=30030,age=30040,cge=30041,uge=30063,lge=30078,fge=30166,dge=30267,pge=30311,hge=30312,gge=30313,mge=30315,yge=30388,vge=30402,bge=30403,_ge=30617,wge=30618,Ege=30818,Sge=30819,xge=31234,Ige=31388,Age=31890,Tge=31922,Mge=31923,Oge=31924,Pge=31925,Cge=31987,Dge=31989,kge=31990,Rge=32267,Nge=34128,Lge=34237,jge=34550,Fge=35128,qge=37515,Bge=37516,Uge=38172,Hge=38173,$ge=38383,Kge=39e3,Wge=39001,Vge=39002,Gge=39003,zge=39004,Yge=39089,Zge=39092,Qge=39701;var Jge={};Ge(Jge,{getHex64:()=>dI,getInt:()=>hF,getSubscriptionId:()=>Xge,matchEventId:()=>eme,matchEventKind:()=>nme,matchEventPubkey:()=>tme});function dI(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function hF(e,t){let n=t.length,r=e.indexOf(`"${t}":`)+n+3,o=e.slice(r),i=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,i),10)}function Xge(e){let t=e.slice(0,22).indexOf('"EVENT"');if(t===-1)return null;let n=e.slice(t+7+1).indexOf('"');if(n===-1)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');if(o===-1)return null;let i=r+1+o;return e.slice(r+1,i)}function eme(e,t){return t===dI(e,"id")}function tme(e,t){return t===dI(e,"pubkey")}function nme(e,t){return t===hF(e,"kind")}var rme={};Ge(rme,{makeAuthEvent:()=>ome});function ome(e,t){return{kind:dF,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}var ime;try{ime=WebSocket}catch{}var sme=256,LNe=sme*2,jNe=new TextEncoder;var ame;try{ame=WebSocket}catch{}var cme={};Ge(cme,{BECH32_REGEX:()=>gF,Bech32MaxSize:()=>pI,NostrTypeGuard:()=>ume,decode:()=>yy,decodeNostrURI:()=>fme,encodeBytes:()=>by,naddrEncode:()=>yme,neventEncode:()=>mme,noteEncode:()=>hme,nprofileEncode:()=>gme,npubEncode:()=>pme,nsecEncode:()=>dme});var ume={isNProfile:e=>/^nprofile1[a-z\d]+$/.test(e||""),isNEvent:e=>/^nevent1[a-z\d]+$/.test(e||""),isNAddr:e=>/^naddr1[a-z\d]+$/.test(e||""),isNSec:e=>/^nsec1[a-z\d]{58}$/.test(e||""),isNPub:e=>/^npub1[a-z\d]{58}$/.test(e||""),isNote:e=>/^note1[a-z\d]+$/.test(e||""),isNcryptsec:e=>/^ncryptsec1[a-z\d]+$/.test(e||"")},pI=5e3,gF=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function lme(e){let t=new Uint8Array(4);return t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=e&255,t}function fme(e){try{return e.startsWith("nostr:")&&(e=e.substring(6)),yy(e)}catch{return{type:"invalid",data:null}}}function yy(e){let{prefix:t,words:n}=Jo.decode(e,pI),r=new Uint8Array(Jo.fromWords(n));switch(t){case"nprofile":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:Oe(o[0][0]),relays:o[1]?o[1].map(i=>Jr.decode(i)):[]}}}case"nevent":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:Oe(o[0][0]),relays:o[1]?o[1].map(i=>Jr.decode(i)):[],author:o[2]?.[0]?Oe(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(Oe(o[3][0]),16):void 0}}}case"naddr":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Jr.decode(o[0][0]),pubkey:Oe(o[2][0]),kind:parseInt(Oe(o[3][0]),16),relays:o[1]?o[1].map(i=>Jr.decode(i)):[]}}}case"nsec":return{type:t,data:r};case"npub":case"note":return{type:t,data:Oe(r)};default:throw new Error(`unknown prefix ${t}`)}}function Xx(e){let t={},n=e;for(;n.length>0;){if(n.length<2)throw new Error("not enough data to read TLV");let r=n[0],o=n[1],i=n.slice(2,2+o);if(n=n.slice(2+o),i.length<o)throw new Error(`not enough data to read on TLV ${r}`);t[r]=t[r]||[],t[r].push(i)}return t}function dme(e){return by("nsec",e)}function pme(e){return by("npub",Le(e))}function hme(e){return by("note",Le(e))}function vy(e,t){let n=Jo.toWords(t);return Jo.encode(e,n,pI)}function by(e,t){return vy(e,t)}function gme(e){let t=hI({0:[Le(e.pubkey)],1:(e.relays||[]).map(n=>Pn.encode(n))});return vy("nprofile",t)}function mme(e){let t;e.kind!==void 0&&(t=lme(e.kind));let n=hI({0:[Le(e.id)],1:(e.relays||[]).map(r=>Pn.encode(r)),2:e.author?[Le(e.author)]:[],3:t?[new Uint8Array(t)]:[]});return vy("nevent",n)}function yme(e){let t=new ArrayBuffer(4);new DataView(t).setUint32(0,e.kind,!1);let n=hI({0:[Pn.encode(e.identifier)],1:(e.relays||[]).map(r=>Pn.encode(r)),2:[Le(e.pubkey)],3:[new Uint8Array(t)]});return vy("naddr",n)}function hI(e){let t=[];return Object.entries(e).reverse().forEach(([n,r])=>{r.forEach(o=>{let i=new Uint8Array(o.length+2);i.set([parseInt(n)],0),i.set([o.length],1),i.set(o,2),t.push(i)})}),ft(...t)}var vme={};Ge(vme,{decrypt:()=>bme,encrypt:()=>mF});function mF(e,t,n){let r=e instanceof Uint8Array?e:Le(e),o=wl.getSharedSecret(r,Le("02"+t)),i=yF(o),s=Uint8Array.from(Kn(16)),a=Pn.encode(n),c=zx(i,s).encrypt(a),u=Vn.encode(new Uint8Array(c)),l=Vn.encode(new Uint8Array(s.buffer));return`${u}?iv=${l}`}function bme(e,t,n){let r=e instanceof Uint8Array?e:Le(e),[o,i]=n.split("?iv="),s=wl.getSharedSecret(r,Le("02"+t)),a=yF(s),c=Vn.decode(i),u=Vn.decode(o),l=zx(a,c).decrypt(u);return Jr.decode(l)}function yF(e){return e.slice(1,33)}var _me={};Ge(_me,{NIP05_REGEX:()=>gI,isNip05:()=>wme,isValid:()=>xme,queryProfile:()=>vF,searchDomain:()=>Sme,useFetchImplementation:()=>Eme});var gI=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,wme=e=>gI.test(e||""),_y;try{_y=fetch}catch{}function Eme(e){_y=e}async function Sme(e,t=""){try{let n=`https://${e}/.well-known/nostr.json?name=${t}`,r=await _y(n,{redirect:"manual"});if(r.status!==200)throw Error("Wrong response code");return(await r.json()).names}catch{return{}}}async function vF(e){let t=e.match(gI);if(!t)return null;let[,n="_",r]=t;try{let o=`https://${r}/.well-known/nostr.json?name=${n}`,i=await _y(o,{redirect:"manual"});if(i.status!==200)throw Error("Wrong response code");let s=await i.json(),a=s.names[n];return a?{pubkey:a,relays:s.relays?.[a]}:null}catch{return null}}async function xme(e,t){let n=await vF(t);return n?n.pubkey===e:!1}var Ime={};Ge(Ime,{parse:()=>Ame});function Ame(e){let t={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]},n,r;for(let o=e.tags.length-1;o>=0;o--){let i=e.tags[o];if(i[0]==="e"&&i[1]&&fn(i[1])){let[s,a,c,u,l]=i,f={id:a,relays:c?[c]:[],author:l&&fn(l)?l:void 0};if(u==="root"){t.root=f;continue}if(u==="reply"){t.reply=f;continue}if(u==="mention"){t.mentions.push(f);continue}n?r=f:n=f,t.mentions.push(f);continue}if(i[0]==="q"&&i[1]&&fn(i[1])){let[s,a,c]=i;t.quotes.push({id:a,relays:c?[c]:[]})}if(i[0]==="p"&&i[1]&&fn(i[1])){t.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});continue}}return t.root||(t.root=r||n||t.reply),t.reply||(t.reply=n||t.root),[t.reply,t.root].forEach(o=>{if(!o)return;let i=t.mentions.indexOf(o);if(i!==-1&&t.mentions.splice(i,1),o.author){let s=t.profiles.find(a=>a.pubkey===o.author);s&&s.relays&&(o.relays||(o.relays=[]),s.relays.forEach(a=>{o.relays?.indexOf(a)===-1&&o.relays.push(a)}),s.relays=o.relays)}}),t.mentions.forEach(o=>{if(o.author){let i=t.profiles.find(s=>s.pubkey===o.author);i&&i.relays&&(o.relays||(o.relays=[]),i.relays.forEach(s=>{o.relays.indexOf(s)===-1&&o.relays.push(s)}),i.relays=o.relays)}}),t}var Tme={};Ge(Tme,{fetchRelayInformation:()=>Ome,useFetchImplementation:()=>Mme});var bF;try{bF=fetch}catch{}function Mme(e){bF=e}async function Ome(e){return await(await fetch(e.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()}var Pme={};Ge(Pme,{getPow:()=>Cme,minePow:()=>kme});function Cme(e){let t=0;for(let n=0;n<64;n+=8){let r=parseInt(e.substring(n,n+8),16);if(r===0)t+=32;else{t+=Math.clz32(r);break}}return t}function Dme(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r===0)t+=8;else{t+=Math.clz32(r)-24;break}}return t}function kme(e,t){let n=0,r=e,o=["nonce",n.toString(),t.toString()];for(r.tags.push(o);;){let i=Math.floor(new Date().getTime()/1e3);i!==r.created_at&&(n=0,r.created_at=i),o[1]=(++n).toString();let s=Ut(Pn.encode(JSON.stringify([0,r.pubkey,r.created_at,r.kind,r.tags,r.content])));if(Dme(s)>=t){r.id=Oe(s);break}}return r}var Rme={};Ge(Rme,{unwrapEvent:()=>Wme,unwrapManyEvents:()=>Vme,wrapEvent:()=>DF,wrapManyEvents:()=>Kme});var Nme={};Ge(Nme,{createRumor:()=>MF,createSeal:()=>OF,createWrap:()=>PF,unwrapEvent:()=>SI,unwrapManyEvents:()=>CF,wrapEvent:()=>gy,wrapManyEvents:()=>Hme});var Lme={};Ge(Lme,{decrypt:()=>EI,encrypt:()=>wI,getConversationKey:()=>bI,v2:()=>Bme});var mI=1,yI=4294967295,vI=65536;function bI(e,t){let n=wl.getSharedSecret(e,Le("02"+t)).subarray(1,33);return zj(Ut,n,Pn.encode("nip44-v2"))}function _F(e,t){let n=Yj(Ut,e,t,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}}function _I(e){if(!Number.isSafeInteger(e)||e<1)throw new Error("expected positive integer");if(e<=32)return 32;let t=2**(Math.floor(Math.log2(e-1))+1),n=t<=256?32:t/8;return n*(Math.floor((e-1)/n)+1)}function jme(e){if(!Number.isSafeInteger(e)||e<mI||e>65535)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!1),t}function Fme(e){if(!Number.isSafeInteger(e)||e<vI||e>yI)throw new Error("invalid plaintext size: must be between 65536 and 4294967295 bytes");let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!1),t}function wF(e){let t=Pn.encode(e),n=t.length;if(n<mI||n>yI)throw new Error("invalid plaintext size: must be between 1 and 4294967295 bytes");let r=n>=vI?ft(new Uint8Array([0,0]),Fme(n)):jme(n),o=new Uint8Array(_I(n)-n);return ft(r,t,o)}function EF(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0),r,o;if(n===0){if(r=t.getUint32(2),r<vI)throw new Error("invalid padding");o=6}else r=n,o=2;let i=e.subarray(o,o+r);if(r<mI||r>yI||i.length!==r||e.length!==o+_I(r))throw new Error("invalid padding");return Jr.decode(i)}function SF(e,t,n){if(n.length!==32)throw new Error("AAD associated data must be 32 bytes");let r=ft(n,t);return Zo(Ut,e,r)}function qme(e){if(typeof e!="string")throw new Error("payload must be a valid string");let t=e.length;if(t<132)throw new Error("invalid payload length: "+t);if(e[0]==="#")throw new Error("unknown encryption version");let n;try{n=Vn.decode(e)}catch(i){throw new Error("invalid base64: "+i.message)}let r=n.length;if(r<99)throw new Error("invalid data length: "+r);let o=n[0];if(o!==2)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}function wI(e,t,n=Kn(32)){let{chacha_key:r,chacha_nonce:o,hmac_key:i}=_F(t,n),s=wF(e),a=fy(r,o,s),c=SF(i,a,n);return Vn.encode(ft(new Uint8Array([2]),n,a,c))}function EI(e,t){let{nonce:n,ciphertext:r,mac:o}=qme(e),{chacha_key:i,chacha_nonce:s,hmac_key:a}=_F(t,n),c=SF(a,r,n);if(!xl(c,o))throw new Error("invalid MAC");let u=fy(i,s,r);return EF(u)}var Bme={utils:{getConversationKey:bI,calcPaddedLen:_I,pad:wF,unpad:EF},encrypt:wI,decrypt:EI},Ume=2880*60,xF=()=>Math.round(Date.now()/1e3),IF=()=>Math.round(xF()-Math.random()*Ume),AF=(e,t)=>bI(e,t),TF=(e,t,n)=>wI(JSON.stringify(e),AF(t,n)),Zj=(e,t)=>JSON.parse(EI(e.content,AF(t,e.pubkey)));function MF(e,t){let n={created_at:xF(),content:"",tags:[],...e,pubkey:dc(t)};return n.id=py(n),n}function OF(e,t,n){return En({kind:oF,content:TF(e,t,n),created_at:IF(),tags:[]},t)}function PF(e,t){let n=Lde();return En({kind:fF,content:TF(e,n,t),created_at:IF(),tags:[["p",t]]},n)}function gy(e,t,n){let r=MF(e,t),o=OF(r,t,n);return PF(o,n)}function Hme(e,t,n){if(!n||n.length===0)throw new Error("At least one recipient is required.");let r=dc(t),o=[gy(e,t,r)];return n.forEach(i=>{o.push(gy(e,t,i))}),o}function SI(e,t){let n=Zj(e,t);return Zj(n,t)}function CF(e,t){let n=[];return e.forEach(r=>{n.push(SI(r,t))}),n.sort((r,o)=>r.created_at-o.created_at),n}function $me(e,t,n,r){let o={created_at:Math.ceil(Date.now()/1e3),kind:iF,tags:[],content:t};return(Array.isArray(e)?e:[e]).forEach(({publicKey:s,relayUrl:a})=>{o.tags.push(a?["p",s,a]:["p",s])}),r&&o.tags.push(["e",r.eventId,r.relayUrl||"","reply"]),n&&o.tags.push(["subject",n]),o}function DF(e,t,n,r,o){let i=$me(t,n,r,o);return gy(i,e,t.publicKey)}function Kme(e,t,n,r,o){if(!t||t.length===0)throw new Error("At least one recipient is required.");return[{publicKey:dc(e)},...t].map(s=>DF(e,s,n,r,o))}var Wme=SI,Vme=CF,Gme={};Ge(Gme,{finishRepostEvent:()=>zme,getRepostedEvent:()=>Yme,getRepostedEventPointer:()=>kF});function zme(e,t,n,r){let o,i=[...e.tags??[],["e",t.id,n],["p",t.pubkey]];return t.kind===rF?o=cI:(o=lI,i.push(["k",String(t.kind)])),En({kind:o,tags:i,content:e.content===""||t.tags?.find(s=>s[0]==="-")?"":JSON.stringify(t),created_at:e.created_at},r)}function kF(e){if(![cI,lI].includes(e.kind))return;let t,n;for(let r=e.tags.length-1;r>=0&&(t===void 0||n===void 0);r--){let o=e.tags[r];o.length>=2&&(o[0]==="e"&&t===void 0?t=o:o[0]==="p"&&n===void 0&&(n=o))}if(t!==void 0)return{id:t[1],relays:[t[2],n?.[2]].filter(r=>typeof r=="string"),author:n?.[1]}}function Yme(e,{skipVerification:t}={}){let n=kF(e);if(n===void 0||e.content==="")return;let r;try{r=JSON.parse(e.content)}catch{return}if(r.id===n.id&&!(!t&&!Al(r)))return r}var Zme={};Ge(Zme,{NOSTR_URI_REGEX:()=>xI,parse:()=>Jme,test:()=>Qme});var xI=new RegExp(`nostr:(${gF.source})`);function Qme(e){return typeof e=="string"&&new RegExp(`^${xI.source}$`).test(e)}function Jme(e){let t=e.match(new RegExp(`^${xI.source}$`));if(!t)throw new Error(`Invalid Nostr URI: ${e}`);return{uri:t[0],value:t[1],decoded:yy(t[1])}}var Xme={};Ge(Xme,{parse:()=>tye});function Qj(e){if(e)return/^\d+$/.test(e)?parseInt(e,10):e}function RF(e,t){let n=e.indexOf(":"),r=e.indexOf(":",n+1);if(n===-1||r===-1)return;let o=parseInt(e.slice(0,n),10);if(Number.isNaN(o))return;let i=e.slice(n+1,r);if(fn(i))return{kind:o,pubkey:i,identifier:e.slice(r+1),relays:t?[t]:[]}}function Jj(e){switch(e[0]){case"E":case"e":return!e[1]||!fn(e[1])?void 0:{id:e[1],relays:e[2]?[e[2]]:[],author:e[3]&&fn(e[3])?e[3]:void 0};case"A":case"a":return e[1]?RF(e[1],e[2]):void 0;case"I":case"i":return e[1]?{value:e[1],hint:e[2]}:void 0}}function eye(e){if(e[1]){if(e[1].includes(":"))return RF(e[1],e[2]);if(fn(e[1]))return{id:e[1],relays:e[2]?[e[2]]:[],author:e[3]&&fn(e[3])?e[3]:void 0}}}function Xj(e){return e.findLast(t=>t.tagName==="A"||t.tagName==="a")?.pointer||e.findLast(t=>t.tagName==="I"||t.tagName==="i")?.pointer||e.findLast(t=>t.tagName==="E"||t.tagName==="e")?.pointer}function eI(e,t){if(!e||!("id"in e)||!e.author)return;let n=t.find(r=>r.pubkey===e.author);!n||!n.relays||(e.relays||(e.relays=[]),n.relays.forEach(r=>{e.relays.indexOf(r)===-1&&e.relays.push(r)}),n.relays=e.relays)}function tye(e){let t={root:void 0,rootKind:void 0,reply:void 0,replyKind:void 0,mentions:[],quotes:[],profiles:[]},n=[],r=[];for(let o of e.tags){if((o[0]==="E"||o[0]==="A"||o[0]==="I")&&o[1]){let i=Jj(o);i&&n.push({tagName:o[0],pointer:i});continue}if((o[0]==="e"||o[0]==="a"||o[0]==="i")&&o[1]){let i=Jj(o);i&&r.push({tagName:o[0],pointer:i});continue}if(o[0]==="K"){t.rootKind=Qj(o[1]);continue}if(o[0]==="k"){t.replyKind=Qj(o[1]);continue}if(o[0]==="q"){let i=eye(o);i&&t.quotes.push(i);continue}(o[0]==="P"||o[0]==="p")&&o[1]&&fn(o[1])&&t.profiles.push({pubkey:o[1],relays:o[2]?[o[2]]:[]})}return t.root=Xj(n),t.reply=Xj(r),eI(t.root,t.profiles),eI(t.reply,t.profiles),t.quotes.forEach(o=>eI(o,t.profiles)),t}var nye={};Ge(nye,{finishReactionEvent:()=>rye,getReactedEventPointer:()=>oye});function rye(e,t,n){let r=t.tags.filter(o=>o.length>=2&&(o[0]==="e"||o[0]==="p"));return En({...e,kind:uI,tags:[...e.tags??[],...r,["e",t.id],["p",t.pubkey]],content:e.content??"+"},n)}function oye(e){if(e.kind!==uI)return;let t,n;for(let r=e.tags.length-1;r>=0&&(t===void 0||n===void 0);r--){let o=e.tags[r];o.length>=2&&(o[0]==="e"&&t===void 0?t=o:o[0]==="p"&&n===void 0&&(n=o))}if(!(t===void 0||n===void 0))return{id:t[1],relays:[t[2],n[2]].filter(r=>r!==void 0),author:n[1]}}var iye={};Ge(iye,{parse:()=>aye});var tI=/\W/m,eF=/[^\w\/] |[^\w\/]$|$|,| /m,sye=42;function*aye(e){let t=[];if(typeof e!="string"){for(let i=0;i<e.tags.length;i++){let s=e.tags[i];s[0]==="emoji"&&s.length>=3&&t.push({type:"emoji",shortcode:s[1],url:s[2]})}e=e.content}let n=e.length,r=0,o=0;e:for(;o<n;){let i=e.indexOf(":",o),s=e.indexOf("#",o);if(i===-1&&s===-1)break e;if(i===-1||s>=0&&s<i){if(s===0||e[s-1].match(tI)){let a=e.slice(s+1,s+sye).match(tI),c=a?s+1+a.index:n;yield{type:"text",text:e.slice(r,s)},yield{type:"hashtag",value:e.slice(s+1,c)},o=c,r=o;continue e}o=s+1;continue e}if(e.slice(i-5,i)==="nostr"){let a=e.slice(i+60).match(tI),c=a?i+60+a.index:n;try{let u,{data:l,type:f}=yy(e.slice(i+1,c));switch(f){case"npub":u={pubkey:l};break;case"note":u={id:l};break;case"nsec":o=c+1;continue;default:u=l}r!==i-5&&(yield{type:"text",text:e.slice(r,i-5)}),yield{type:"reference",pointer:u},o=c,r=o;continue e}catch{o=i+1;continue e}}else if(e.slice(i-5,i)==="https"||e.slice(i-4,i)==="http"){let a=e.slice(i+4).match(eF),c=a?i+4+a.index:n,u=e[i-1]==="s"?5:4;try{let l=new URL(e.slice(i-u,c));if(l.hostname.indexOf(".")===-1)throw new Error("invalid url");if(r!==i-u&&(yield{type:"text",text:e.slice(r,i-u)}),/\.(png|jpe?g|gif|webp|heic|svg)$/i.test(l.pathname)){yield{type:"image",url:l.toString()},o=c,r=o;continue e}if(/\.(mp4|avi|webm|mkv|mov)$/i.test(l.pathname)){yield{type:"video",url:l.toString()},o=c,r=o;continue e}if(/\.(mp3|aac|ogg|opus|wav|flac)$/i.test(l.pathname)){yield{type:"audio",url:l.toString()},o=c,r=o;continue e}yield{type:"url",url:l.toString()},o=c,r=o;continue e}catch{o=c+1;continue e}}else if(e.slice(i-3,i)==="wss"||e.slice(i-2,i)==="ws"){let a=e.slice(i+4).match(eF),c=a?i+4+a.index:n,u=e[i-1]==="s"?3:2;try{let l=new URL(e.slice(i-u,c));if(l.hostname.indexOf(".")===-1)throw new Error("invalid ws url");r!==i-u&&(yield{type:"text",text:e.slice(r,i-u)}),yield{type:"relay",url:l.toString()},o=c,r=o;continue e}catch{o=c+1;continue e}}else{for(let a=0;a<t.length;a++){let c=t[a];if(e[i+c.shortcode.length+1]===":"&&e.slice(i+1,i+c.shortcode.length+1)===c.shortcode){r!==i&&(yield{type:"text",text:e.slice(r,i)}),yield c,o=i+c.shortcode.length+2,r=o;continue e}}o=i+1;continue e}}r!==n&&(yield{type:"text",text:e.slice(r)})}var cye={};Ge(cye,{channelCreateEvent:()=>uye,channelHideMessageEvent:()=>dye,channelMessageEvent:()=>fye,channelMetadataEvent:()=>lye,channelMuteUserEvent:()=>pye});var uye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:sF,tags:[...e.tags??[]],content:n,created_at:e.created_at},t)},lye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:aF,tags:[["e",e.channel_create_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},fye=(e,t)=>{let n=[["e",e.channel_create_event_id,e.relay_url,"root"]];return e.reply_to_channel_message_event_id&&n.push(["e",e.reply_to_channel_message_event_id,e.relay_url,"reply"]),En({kind:cF,tags:[...n,...e.tags??[]],content:e.content,created_at:e.created_at},t)},dye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:uF,tags:[["e",e.channel_message_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},pye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:lF,tags:[["p",e.pubkey_to_mute],...e.tags??[]],content:n,created_at:e.created_at},t)},hye={};Ge(hye,{EMOJI_SHORTCODE_REGEX:()=>NF,matchAll:()=>gye,regex:()=>II,replaceAll:()=>mye});var NF=/:(\w+):/,II=()=>new RegExp(`\\B${NF.source}\\B`,"g");function*gye(e){let t=e.matchAll(II());for(let n of t)try{let[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function mye(e,t){return e.replaceAll(II(),(n,r)=>t({shortcode:n,name:r}))}var yye={};Ge(yye,{useFetchImplementation:()=>vye,validateGithub:()=>bye});var AI;try{AI=fetch}catch{}function vye(e){AI=e}async function bye(e,t,n){try{return await(await AI(`https://gist.github.com/${t}/${n}/raw`)).text()===`Verifying that I control the following Nostr public key: ${e}`}catch{return!1}}var _ye={};Ge(_ye,{makeNwcRequestEvent:()=>Eye,parseConnectionString:()=>wye});function wye(e){let{host:t,pathname:n,searchParams:r}=new URL(e),o=n||t,i=r.getAll("relay"),s=r.get("secret");if(!o||i.length===0||!s)throw new Error("invalid connection string");return{pubkey:o,relay:i[0],relays:i,secret:s}}async function Eye(e,t,n){let o=mF(t,e,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),i={kind:pF,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e]]};return En(i,t)}var Sye={};Ge(Sye,{normalizeIdentifier:()=>xye});function xye(e){return e=e.trim().toLowerCase(),e=e.normalize("NFKC"),Array.from(e).map(t=>/\p{Letter}/u.test(t)||/\p{Number}/u.test(t)?t:"-").join("")}var Iye={};Ge(Iye,{getSatoshisAmountFromBolt11:()=>Cye,getZapEndpoint:()=>Tye,makeZapReceipt:()=>Pye,makeZapRequest:()=>Mye,useFetchImplementation:()=>Aye,validateZapRequest:()=>Oye});var TI;try{TI=fetch}catch{}function Aye(e){TI=e}async function Tye(e){try{let t="",{lud06:n,lud16:r}=JSON.parse(e.content);if(r){let[s,a]=r.split("@");t=new URL(`/.well-known/lnurlp/${s}`,`https://${a}`).toString()}else if(n){let{words:s}=Jo.decode(n,1e3),a=Jo.fromWords(s);t=Jr.decode(a)}else return null;let i=await(await TI(t)).json();if(i.allowsNostr&&i.nostrPubkey)return i.callback}catch{}return null}function Mye(e){let t={kind:9734,created_at:Math.round(Date.now()/1e3),content:e.comment||"",tags:[["p","pubkey"in e?e.pubkey:e.event.pubkey],["amount",e.amount.toString()],["relays",...e.relays]]};if("event"in e){if(t.tags.push(["e",e.event.id]),sI(e.event.kind)){let n=["a",`${e.event.kind}:${e.event.pubkey}:`];t.tags.push(n)}else if(aI(e.event.kind)){let n=e.event.tags.find(([o,i])=>o==="d"&&i);if(!n)throw new Error("d tag not found or is empty");let r=["a",`${e.event.kind}:${e.event.pubkey}:${n[1]}`];t.tags.push(r)}t.tags.push(["k",e.event.kind.toString()])}return t}function Oye(e){let t;try{t=JSON.parse(e)}catch{return"Invalid zap request JSON."}if(!iI(t))return"Zap request is not a valid Nostr event.";if(!Al(t))return"Invalid signature on zap request.";let n=t.tags.find(([i,s])=>i==="p"&&s);if(!n)return"Zap request doesn't have a 'p' tag.";if(!fn(n[1]))return"Zap request 'p' tag is not valid hex.";let r=t.tags.find(([i,s])=>i==="e"&&s);return r&&!fn(r[1])?"Zap request 'e' tag is not valid hex.":t.tags.find(([i,s])=>i==="relays"&&s)?null:"Zap request doesn't have a 'relays' tag."}function Pye({zapRequest:e,preimage:t,bolt11:n,paidAt:r}){let o=JSON.parse(e),i=o.tags.filter(([a])=>a==="e"||a==="p"||a==="a"),s={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...i,["P",o.pubkey],["bolt11",n],["description",e]]};return t&&s.tags.push(["preimage",t]),s}function Cye(e){if(e.length<50)return 0;e=e.substring(0,50);let t=e.lastIndexOf("1");if(t===-1)return 0;let n=e.substring(0,t);if(!n.startsWith("lnbc"))return 0;let r=n.substring(4);if(r.length<1)return 0;let o=r[r.length-1],i=o.charCodeAt(0)-48,s=i>=0&&i<=9,a=r.length-1;if(s&&a++,a<1)return 0;let c=parseInt(r.substring(0,a));switch(o){case"m":return c*1e5;case"u":return c*100;case"n":return c/10;case"p":return c/1e4;default:return c*1e8}}var Dye={};Ge(Dye,{Negentropy:()=>jF,NegentropyStorageVector:()=>Nye,NegentropySync:()=>Lye});var nI=97,fc=32,LF=16,ns={Skip:0,Fingerprint:1,IdList:2},Qr=class{_raw;length;constructor(e){typeof e=="number"?(this._raw=new Uint8Array(e),this.length=0):e instanceof Uint8Array?(this._raw=new Uint8Array(e),this.length=e.length):(this._raw=new Uint8Array(512),this.length=0)}unwrap(){return this._raw.subarray(0,this.length)}get capacity(){return this._raw.byteLength}extend(e){if(e instanceof Qr&&(e=e.unwrap()),typeof e.length!="number")throw Error("bad length");let t=e.length+this.length;if(this.capacity<t){let n=this._raw,r=Math.max(this.capacity*2,t);this._raw=new Uint8Array(r),this._raw.set(n)}this._raw.set(e,this.length),this.length+=e.length}shift(){let e=this._raw[0];return this._raw=this._raw.subarray(1),this.length--,e}shiftN(e=1){let t=this._raw.subarray(0,e);return this._raw=this._raw.subarray(e),this.length-=e,t}};function dy(e){let t=0;for(;;){if(e.length===0)throw Error("parse ends prematurely");let n=e.shift();if(t=t<<7|n&127,(n&128)===0)break}return t}function Zr(e){if(e===0)return new Qr(new Uint8Array([0]));let t=[];for(;e!==0;)t.push(e&127),e>>>=7;t.reverse();for(let n=0;n<t.length-1;n++)t[n]|=128;return new Qr(new Uint8Array(t))}function kye(e){return hy(e,1)[0]}function hy(e,t){if(e.length<t)throw Error("parse ends prematurely");return e.shiftN(t)}var Rye=class{buf;constructor(){this.setToZero()}setToZero(){this.buf=new Uint8Array(fc)}add(e){let t=0,n=0,r=new DataView(this.buf.buffer),o=new DataView(e.buffer);for(let i=0;i<8;i++){let s=i*4,a=r.getUint32(s,!0),c=o.getUint32(s,!0),u=a;u+=t,u+=c,u>4294967295&&(n=1),r.setUint32(s,u&4294967295,!0),t=n,n=0}}negate(){let e=new DataView(this.buf.buffer);for(let n=0;n<8;n++){let r=n*4;e.setUint32(r,~e.getUint32(r,!0))}let t=new Uint8Array(fc);t[0]=1,this.add(t)}getFingerprint(e){let t=new Qr;return t.extend(this.buf),t.extend(Zr(e)),Ut(t.unwrap()).subarray(0,LF)}},Nye=class{items;sealed;constructor(){this.items=[],this.sealed=!1}insert(e,t){if(this.sealed)throw Error("already sealed");let n=Le(t);if(n.byteLength!==fc)throw Error("bad id size for added item");this.items.push({timestamp:e,id:n})}seal(){if(this.sealed)throw Error("already sealed");this.sealed=!0,this.items.sort(rI);for(let e=1;e<this.items.length;e++)if(rI(this.items[e-1],this.items[e])===0)throw Error("duplicate item inserted")}unseal(){this.sealed=!1}size(){return this._checkSealed(),this.items.length}getItem(e){if(this._checkSealed(),e>=this.items.length)throw Error("out of range");return this.items[e]}iterate(e,t,n){this._checkSealed(),this._checkBounds(e,t);for(let r=e;r<t&&n(this.items[r],r);++r);}findLowerBound(e,t,n){return this._checkSealed(),this._checkBounds(e,t),this._binarySearch(this.items,e,t,r=>rI(r,n)<0)}fingerprint(e,t){let n=new Rye;return n.setToZero(),this.iterate(e,t,r=>(n.add(r.id),!0)),n.getFingerprint(t-e)}_checkSealed(){if(!this.sealed)throw Error("not sealed")}_checkBounds(e,t){if(e>t||t>this.items.length)throw Error("bad range")}_binarySearch(e,t,n,r){let o=n-t;for(;o>0;){let i=t,s=Math.floor(o/2);i+=s,r(e[i])?(t=++i,o-=s+1):o=s}return t}},jF=class{storage;frameSizeLimit;lastTimestampIn;lastTimestampOut;constructor(e,t=6e4){if(t<4096)throw Error("frameSizeLimit too small");this.storage=e,this.frameSizeLimit=t,this.lastTimestampIn=0,this.lastTimestampOut=0}_bound(e,t){return{timestamp:e,id:t||new Uint8Array(0)}}initiate(){let e=new Qr;return e.extend(new Uint8Array([nI])),this.splitRange(0,this.storage.size(),this._bound(Number.MAX_VALUE),e),Oe(e.unwrap())}reconcile(e,t,n){let r=new Qr(Le(e));this.lastTimestampIn=this.lastTimestampOut=0;let o=new Qr;o.extend(new Uint8Array([nI]));let i=kye(r);if(i<96||i>111)throw Error("invalid negentropy protocol version byte");if(i!==nI)throw Error("unsupported negentropy protocol version requested: "+(i-96));let s=this.storage.size(),a=this._bound(0),c=0,u=!1;for(;r.length!==0;){let l=new Qr,f=()=>{u&&(u=!1,l.extend(this.encodeBound(a)),l.extend(Zr(ns.Skip)))},d=this.decodeBound(r),p=dy(r),h=c,m=this.storage.findLowerBound(c,s,d);if(p===ns.Skip)u=!0;else if(p===ns.Fingerprint){let y=hy(r,LF),v=this.storage.fingerprint(h,m);FF(y,v)!==0?(f(),this.splitRange(h,m,d,l)):u=!0}else if(p===ns.IdList){let y=dy(r),v={};for(let w=0;w<y;w++){let A=hy(r,fc);v[Oe(A)]=A}if(u=!0,this.storage.iterate(h,m,w=>{let A=w.id,P=Oe(A);return v[P]?delete v[Oe(A)]:t?.(P),!0}),n)for(let w of Object.values(v))n(Oe(w))}else throw Error("unexpected mode");if(this.exceededFrameSizeLimit(o.length+l.length)){let y=this.storage.fingerprint(m,s);o.extend(this.encodeBound(this._bound(Number.MAX_VALUE))),o.extend(Zr(ns.Fingerprint)),o.extend(y);break}else o.extend(l);c=m,a=d}return o.length===1?null:Oe(o.unwrap())}splitRange(e,t,n,r){let o=t-e,i=16;if(o<i*2)r.extend(this.encodeBound(n)),r.extend(Zr(ns.IdList)),r.extend(Zr(o)),this.storage.iterate(e,t,s=>(r.extend(s.id),!0));else{let s=Math.floor(o/i),a=o%i,c=e;for(let u=0;u<i;u++){let l=s+(u<a?1:0),f=this.storage.fingerprint(c,c+l);c+=l;let d;if(c===t)d=n;else{let p,h;this.storage.iterate(c-1,c+1,(m,y)=>(y===c-1?p=m:h=m,!0)),d=this.getMinimalBound(p,h)}r.extend(this.encodeBound(d)),r.extend(Zr(ns.Fingerprint)),r.extend(f)}}}exceededFrameSizeLimit(e){return e>this.frameSizeLimit-200}decodeTimestampIn(e){let t=dy(e);return t=t===0?Number.MAX_VALUE:t-1,this.lastTimestampIn===Number.MAX_VALUE||t===Number.MAX_VALUE?(this.lastTimestampIn=Number.MAX_VALUE,Number.MAX_VALUE):(t+=this.lastTimestampIn,this.lastTimestampIn=t,t)}decodeBound(e){let t=this.decodeTimestampIn(e),n=dy(e);if(n>fc)throw Error("bound key too long");let r=hy(e,n);return{timestamp:t,id:r}}encodeTimestampOut(e){if(e===Number.MAX_VALUE)return this.lastTimestampOut=Number.MAX_VALUE,Zr(0);let t=e;return e-=this.lastTimestampOut,this.lastTimestampOut=t,Zr(e+1)}encodeBound(e){let t=new Qr;return t.extend(this.encodeTimestampOut(e.timestamp)),t.extend(Zr(e.id.length)),t.extend(e.id),t}getMinimalBound(e,t){if(t.timestamp!==e.timestamp)return this._bound(t.timestamp);{let n=0,r=t.id,o=e.id;for(let i=0;i<fc&&r[i]===o[i];i++)n++;return this._bound(t.timestamp,t.id.subarray(0,n+1))}}};function FF(e,t){for(let n=0;n<e.byteLength;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.byteLength>t.byteLength?1:e.byteLength<t.byteLength?-1:0}function rI(e,t){return e.timestamp===t.timestamp?FF(e.id,t.id):e.timestamp-t.timestamp}var Lye=class{relay;storage;neg;filter;subscription;onhave;onneed;constructor(e,t,n,r={}){this.relay=e,this.storage=t,this.neg=new jF(t),this.onhave=r.onhave,this.onneed=r.onneed,this.filter=n,this.subscription=this.relay.prepareSubscription([{}],{label:r.label||"negentropy"}),this.subscription.oncustom=o=>{switch(o[0]){case"NEG-MSG":{o.length<3&&console.warn(`got invalid NEG-MSG from ${this.relay.url}: ${o}`);try{let i=this.neg.reconcile(o[2],this.onhave,this.onneed);i?this.relay.send(`["NEG-MSG", "${this.subscription.id}", "${i}"]`):(this.close(),r.onclose?.())}catch(i){console.error("negentropy reconcile error:",i),r?.onclose?.(`reconcile error: ${i}`)}break}case"NEG-CLOSE":{let i=o[2];console.warn("negentropy error:",i),r.onclose?.(i);break}case"NEG-ERR":r.onclose?.()}}}async start(){let e=this.neg.initiate();this.relay.send(`["NEG-OPEN","${this.subscription.id}",${JSON.stringify(this.filter)},"${e}"]`)}close(){this.relay.send(`["NEG-CLOSE","${this.subscription.id}"]`),this.subscription.close()}},jye={};Ge(jye,{getToken:()=>Fye,hashPayload:()=>MI,unpackEventFromToken:()=>BF,validateEvent:()=>VF,validateEventKind:()=>HF,validateEventMethodTag:()=>KF,validateEventPayloadTag:()=>WF,validateEventTimestamp:()=>UF,validateEventUrlTag:()=>$F,validateToken:()=>qye});var qF="Nostr ";async function Fye(e,t,n,r=!1,o){let i={kind:fI,tags:[["u",e],["method",t]],created_at:Math.round(new Date().getTime()/1e3),content:""};o&&i.tags.push(["payload",MI(o)]);let s=await n(i);return(r?qF:"")+Vn.encode(Pn.encode(JSON.stringify(s)))}async function qye(e,t,n){let r=await BF(e).catch(i=>{throw i});return await VF(r,t,n).catch(i=>{throw i})}async function BF(e){if(!e)throw new Error("Missing token");e=e.replace(qF,"");let t=Jr.decode(Vn.decode(e));if(!t||t.length===0||!t.startsWith("{"))throw new Error("Invalid token");return JSON.parse(t)}function UF(e){return e.created_at?Math.round(new Date().getTime()/1e3)-e.created_at<60:!1}function HF(e){return e.kind===fI}function $F(e,t){let n=e.tags.find(r=>r[0]==="u");return n?n.length>0&&n[1]===t:!1}function KF(e,t){let n=e.tags.find(r=>r[0]==="method");return n?n.length>0&&n[1].toLowerCase()===t.toLowerCase():!1}function MI(e){let t=Ut(Pn.encode(JSON.stringify(e)));return Oe(t)}function WF(e,t){let n=e.tags.find(o=>o[0]==="payload");if(!n)return!1;let r=MI(t);return n.length>0&&n[1]===r}async function VF(e,t,n,r){if(!Al(e))throw new Error("Invalid nostr event, signature invalid");if(!HF(e))throw new Error("Invalid nostr event, kind invalid");if(!UF(e))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!$F(e,t))throw new Error("Invalid nostr event, url tag invalid");if(!KF(e,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&typeof r=="object"&&Object.keys(r).length>0&&!WF(e,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0}var GF={stalePacketMs:1e3,receiptStaleMs:3e3,pathRttBadMs:1500,pathDeliveryBad:.8,pathBanMs:3e4,pathMinSamples:5,rateBanMs:3e4,rateBanMaxMs:3e5,blockedBanMs:6e5,connectBackoffMs:2e3,connectBackoffMaxMs:3e5,publishTimeoutMs:4e3,bucketRate:8,bucketBurst:8,bucketMinRate:1,bucketMaxRate:20,bucketIncreaseEveryMs:1e4,maxEventPlaintext:49152,dupRelays:2,statsEveryMs:3e4,eventMaxAgeMs:3e4};var Tl=class{constructor(t,n){this.t=t;this.current=t.bucketRate,this.tokens=t.bucketBurst,this.refilledAt=n,this.changedAt=n}get rate(){return this.current}waitMs(t){return this.advance(t),this.tokens>=1?0:Math.ceil((1-this.tokens)/this.current*1e3)}take(t){return this.waitMs(t)>0?!1:(this.tokens-=1,!0)}penalize(t){this.advance(t),this.current=Math.max(this.t.bucketMinRate,this.current/2),this.tokens=Math.min(this.tokens,0),this.changedAt=t}advance(t){for(;t-this.changedAt>=this.t.bucketIncreaseEveryMs&&this.current<this.t.bucketMaxRate;)this.refill(this.changedAt+this.t.bucketIncreaseEveryMs),this.current=Math.min(this.t.bucketMaxRate,this.current+1),this.changedAt+=this.t.bucketIncreaseEveryMs;this.current>=this.t.bucketMaxRate&&(this.changedAt=Math.max(this.changedAt,t-this.t.bucketIncreaseEveryMs)),this.refill(t)}refill(t){t<=this.refilledAt||(this.tokens=Math.min(this.t.bucketBurst,this.tokens+(t-this.refilledAt)/1e3*this.current),this.refilledAt=t)}};var Bye=/^(blocked|restricted|pow|auth-required|invalid):/i,Uye=/rate|too many|slow down/i,Hye=.3;function $ye(e){return/^duplicate:/i.test(e)?"duplicate":Bye.test(e)?"blocked":"rate"}var Kye=e=>Uye.test(e),wy=class{constructor(t,n,r){this.url=t;this.t=n;this.counters={published:0,ok:0,rejected:0,notices:0,timeouts:0,received:0};this.connected=!1;this.connectFailures=0;this.bannedUntil=0;this.rateStrikes=0;this.bucket=new Tl(n,r)}onConnected(){this.connected=!0,this.connectFailures=0}useBucket(t,n){this.bucket=new Tl(t,n)}onDisconnected(){this.connected=!1}onConnectFailed(){this.connected=!1;let t=Math.min(this.t.connectBackoffMaxMs,this.t.connectBackoffMs*2**this.connectFailures);return this.connectFailures+=1,t}onPublish(){this.counters.published+=1}onOk(t){this.counters.ok+=1,this.rateStrikes=0,this.okRttMs=this.okRttMs===void 0?t:this.okRttMs+Hye*(t-this.okRttMs)}onRejected(t,n){let r=$ye(t);if(r==="duplicate")return this.onOk(this.okRttMs??0);this.counters.rejected+=1,r==="blocked"?this.ban(n,this.t.blockedBanMs,t):this.rateBan(n,t)}onNotice(t,n){Kye(t)&&(this.counters.notices+=1,this.rateBan(n,t))}onTimeout(t){this.counters.timeouts+=1,this.rateBan(t,"publish timed out")}onUnresponsive(){this.counters.timeouts+=1}onReceived(){this.counters.received+=1}usable(t){return this.connected&&t>=this.bannedUntil}snapshot(t){this.bucket.waitMs(t);let n=t<this.bannedUntil,r=n?"banned":this.connected?"connected":this.connectFailures>0?"backoff":"connecting",o={url:this.url,state:r,rate:this.bucket.rate,okRttMs:this.okRttMs,counters:{...this.counters}};return n&&this.banReason&&(o.banReason=this.banReason),o}rateBan(t,n){this.bucket.penalize(t),this.ban(t,Math.min(this.t.rateBanMaxMs,this.t.rateBanMs*2**this.rateStrikes),n),this.rateStrikes+=1}ban(t,n,r){this.bannedUntil=Math.max(this.bannedUntil,t+n),this.banReason=r}};var yLe=new TextDecoder("utf-8"),vLe=new TextEncoder;function Wye(e){try{e.indexOf("://")===-1&&(e="wss://"+e);let t=new URL(e);return t.protocol==="http:"?t.protocol="ws:":t.protocol==="https:"&&(t.protocol="wss:"),t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),(t.port==="80"&&t.protocol==="ws:"||t.port==="443"&&t.protocol==="wss:")&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}catch{throw new Error(`Invalid URL: ${e}`)}}var Vye=22242;function Gye(e,t){if(e.ids&&e.ids.indexOf(t.id)===-1||e.kinds&&e.kinds.indexOf(t.kind)===-1||e.authors&&e.authors.indexOf(t.pubkey)===-1)return!1;for(let n in e)if(n[0]==="#"){let r=n.slice(1),o=e[`#${r}`];if(o&&!t.tags.find(([i,s])=>i===n.slice(1)&&o.indexOf(s)!==-1))return!1}return!(e.since&&t.created_at<e.since||e.until&&t.created_at>e.until)}function zye(e,t){for(let n=0;n<e.length;n++)if(Gye(e[n],t))return!0;return!1}function Yye(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function Zye(e){let t=e.slice(0,22).indexOf('"EVENT"');if(t===-1)return null;let n=e.slice(t+7+1).indexOf('"');if(n===-1)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');if(o===-1)return null;let i=r+1+o;return e.slice(r+1,i)}function Qye(e,t){return{kind:Vye,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}var OI=class extends Error{constructor(e,t){super(`Tried to send message '${e} on a closed connection to ${t}.`),this.name="SendingOnClosedConnection"}},PI=class{url;_connected=!1;onclose=null;onnotice=e=>console.debug(`NOTICE from ${this.url}: ${e}`);onauth;baseEoseTimeout=4400;publishTimeout=4400;pingFrequency=29e3;pingTimeout=2e4;resubscribeBackoff=[1e4,1e4,1e4,2e4,2e4,3e4,6e4];openSubs=new Map;enablePing;enableReconnect;idleTimeout=0;idleSince=Date.now();ongoingOperations=0;reconnectTimeoutHandle;pingIntervalHandle;reconnectAttempts=0;skipReconnection=!1;idleTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;challenge;authPromise;serial=0;verifyEvent;_WebSocket;constructor(e,t){this.url=Wye(e),this.verifyEvent=t.verifyEvent,this._WebSocket=t.websocketImplementation||WebSocket,this.enablePing=t.enablePing,this.enableReconnect=t.enableReconnect||!1,t.idleTimeout&&(this.idleTimeout=t.idleTimeout)}static async connect(e,t){let n=new PI(e,t);return await n.connect(t),n}closeAllSubscriptions(e){for(let[t,n]of this.openSubs)n.close(e);this.openSubs.clear();for(let[t,n]of this.openEventPublishes)n.reject(new Error(e));this.openEventPublishes.clear();for(let[t,n]of this.openCountRequests)n.reject(new Error(e));this.openCountRequests.clear()}get connected(){return this._connected}clearIdleTimeout(){this.idleTimeoutHandle&&(clearTimeout(this.idleTimeoutHandle),this.idleTimeoutHandle=void 0)}scheduleIdleClose(){this.clearIdleTimeout(),this.idleTimeout>0&&(this.idleTimeoutHandle=setTimeout(()=>{this.ongoingOperations===0&&this.idleSince&&this.close()},this.idleTimeout))}async reconnect(){let e=this.resubscribeBackoff[Math.min(this.reconnectAttempts,this.resubscribeBackoff.length-1)];this.reconnectAttempts++,this.reconnectTimeoutHandle=setTimeout(async()=>{try{await this.connect()}catch{}},e)}handleHardClose(e){this.ws&&(this.ws.onopen=null,this.ws.onerror=null,this.ws.onclose=null),this.pingIntervalHandle&&(clearInterval(this.pingIntervalHandle),this.pingIntervalHandle=void 0),this._connected=!1,this.connectionPromise=void 0,this.idleSince=void 0,this.clearIdleTimeout(),this.enableReconnect&&!this.skipReconnection?this.reconnect():(this.onclose?.(),this.closeAllSubscriptions(e))}async connect(e){let t;return this.connectionPromise?this.connectionPromise:(this.challenge=void 0,this.authPromise=void 0,this.skipReconnection=!1,this.connectionPromise=new Promise((n,r)=>{e?.timeout&&(t=setTimeout(()=>{r("connection timed out"),this.connectionPromise=void 0,this.reconnectAttempts===0&&(this.skipReconnection=!0),this.handleHardClose("relay connection timed out")},e.timeout)),e?.abort&&(e.abort.onabort=r);try{this.ws=new this._WebSocket(this.url)}catch(o){clearTimeout(t),r(o);return}this.ws.onopen=()=>{this.reconnectTimeoutHandle&&(clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0),clearTimeout(t),this._connected=!0;let o=this.reconnectAttempts>0;this.reconnectAttempts=0;for(let i of this.openSubs.values()){if(i.eosed=!1,o)for(let s=0;s<i.filters.length;s++)i.lastEmitted&&(i.filters[s].since=i.lastEmitted+1);i.fire()}this.enablePing&&(this.pingIntervalHandle=setInterval(()=>this.pingpong(),this.pingFrequency)),n()},this.ws.onerror=()=>{clearTimeout(t),r("connection failed"),this.connectionPromise=void 0,this.reconnectAttempts===0&&(this.skipReconnection=!0),this.handleHardClose("relay connection failed")},this.ws.onclose=o=>{clearTimeout(t),r(o.message||"websocket closed"),this.handleHardClose("relay connection closed")},this.ws.onmessage=this._onmessage.bind(this)}),this.connectionPromise)}waitForPingPong(){return new Promise(e=>{this.ws.once("pong",()=>e(!0)),this.ws.ping()})}waitForDummyReq(){return new Promise((e,t)=>{if(!this.connectionPromise)return t(new Error(`no connection to ${this.url}, can't ping`));try{let n=this.subscribe([{ids:["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"],limit:0}],{label:"<forced-ping>",oneose:()=>{e(!0),n.close()},onclose(){e(!0)},eoseTimeout:this.pingTimeout+1e3})}catch(n){t(n)}})}async pingpong(){this.ws?.readyState===1&&(await Promise.any([this.ws&&this.ws.ping&&this.ws.once?this.waitForPingPong():this.waitForDummyReq(),new Promise(t=>setTimeout(()=>t(!1),this.pingTimeout))])||this.ws?.readyState===this._WebSocket.OPEN&&this.ws?.close())}async send(e){if(!this.connectionPromise)throw new OI(e,this.url);this.connectionPromise.then(()=>{this.ws?.send(e)})}async auth(e){let t=this.challenge;if(!t)throw new Error("can't perform auth, no challenge was received");return this.authPromise?this.authPromise:(this.authPromise=new Promise(async(n,r)=>{try{let o=await e(Qye(this.url,t)),i=setTimeout(()=>{let s=this.openEventPublishes.get(o.id);s&&(s.reject(new Error("auth timed out")),this.openEventPublishes.delete(o.id))},this.publishTimeout);this.openEventPublishes.set(o.id,{resolve:n,reject:r,timeout:i}),this.send('["AUTH",'+JSON.stringify(o)+"]")}catch(o){console.warn("subscribe auth function failed:",o)}}),this.authPromise)}async publish(e){this.idleSince=void 0,this.clearIdleTimeout(),this.ongoingOperations++;let t=new Promise((n,r)=>{let o=setTimeout(()=>{let i=this.openEventPublishes.get(e.id);i&&(i.reject(new Error("publish timed out")),this.openEventPublishes.delete(e.id))},this.publishTimeout);this.openEventPublishes.set(e.id,{resolve:n,reject:r,timeout:o})});try{await this.send('["EVENT",'+JSON.stringify(e)+"]")}catch(n){let r=this.openEventPublishes.get(e.id);r&&(r.reject(n),this.openEventPublishes.delete(e.id))}return this.ongoingOperations--,this.ongoingOperations===0&&(this.idleSince=Date.now(),this.scheduleIdleClose()),t}async count(e,t){return(await this.countWithHLL(e,t)).count}async countWithHLL(e,t){this.serial++;let n=t?.id||"count:"+this.serial,r=new Promise((o,i)=>{this.openCountRequests.set(n,{resolve:o,reject:i})});try{await this.send('["COUNT","'+n+'",'+JSON.stringify(e).substring(1))}catch(o){let i=this.openCountRequests.get(n);i&&(i.reject(o),this.openCountRequests.delete(n))}return r}subscribe(e,t){t.label!=="<forced-ping>"&&(this.idleSince=void 0,this.clearIdleTimeout(),this.ongoingOperations++);let n=this.prepareSubscription(e,t);return n.fire(),t.abort&&(t.abort.onabort=()=>n.close(String(t.abort.reason||"<aborted>"))),n}prepareSubscription(e,t){this.serial++;let n=t.id||(t.label?t.label+":":"sub:")+this.serial,r=new Jye(this,n,e,t);return this.openSubs.set(n,r),r}close(){this.skipReconnection=!0,this.reconnectTimeoutHandle&&(clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0),this.pingIntervalHandle&&(clearInterval(this.pingIntervalHandle),this.pingIntervalHandle=void 0),this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.connectionPromise=void 0,this.idleSince=void 0,this.clearIdleTimeout(),this.onclose?.(),this.ws&&(this.ws.onopen=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.readyState!==this._WebSocket.CLOSING&&this.ws.readyState!==this._WebSocket.CLOSED&&this.ws.close())}_onmessage(e){let t=e.data;if(!t)return;let n=Zye(t);if(n){let r=this.openSubs.get(n);if(!r)return;let o=Yye(t,"id"),i=r.alreadyHaveEvent?.(o);if(r.receivedEvent?.(this,o),i)return}try{let r=JSON.parse(t);switch(r[0]){case"EVENT":{let o=this.openSubs.get(r[1]),i=r[2];zye(o.filters,i)&&this.verifyEvent(i,this.url)?o.onevent(i):o.oninvalidevent?.(i),(!o.lastEmitted||o.lastEmitted<i.created_at)&&(o.lastEmitted=i.created_at);return}case"COUNT":{let o=r[1],i=r[2],s=this.openCountRequests.get(o);s&&(s.resolve(i),this.openCountRequests.delete(o));return}case"EOSE":{let o=this.openSubs.get(r[1]);if(!o)return;o.receivedEose();return}case"OK":{let o=r[1],i=r[2],s=r[3],a=this.openEventPublishes.get(o);a&&(clearTimeout(a.timeout),i?a.resolve(s):a.reject(new Error(s)),this.openEventPublishes.delete(o));return}case"CLOSED":{let o=r[1],i=this.openSubs.get(o);if(!i){let s=this.openCountRequests.get(o);s&&(s.reject(new Error(r[2])),this.openCountRequests.delete(o));return}i.closed=!0,i.close(r[2]);return}case"NOTICE":{this.onnotice(r[1]);return}case"AUTH":{this.challenge=r[1],this.onauth&&this.auth(this.onauth).catch(o=>{if(!(o instanceof OI))throw o});return}default:{this.openSubs.get(r[1])?.oncustom?.(r);return}}}catch(r){try{let[o,i,s]=JSON.parse(t);console.warn(`[nostr] relay ${this.url} error processing message:`,r,s)}catch{console.warn(`[nostr] relay ${this.url} error processing message:`,r)}return}}},Jye=class{relay;id;lastEmitted;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oninvalidevent;oneose;onclose;oncustom;eoseTimeout;eoseTimeoutHandle;constructor(e,t,n,r){if(n.length===0)throw new Error("subscription can't be created with zero filters");this.relay=e,this.filters=n,this.id=t,this.alreadyHaveEvent=r.alreadyHaveEvent,this.receivedEvent=r.receivedEvent,this.eoseTimeout=r.eoseTimeout||e.baseEoseTimeout,this.oneose=r.oneose,this.onclose=r.onclose,this.oninvalidevent=r.oninvalidevent,this.onevent=r.onevent||(o=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,o)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(e="closed by caller"){if(!this.closed&&this.relay.connected){try{this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]")}catch(t){if(!(t instanceof OI))throw t}this.closed=!0}this.relay.openSubs.delete(this.id),this.relay.ongoingOperations--,this.relay.ongoingOperations===0&&(this.relay.idleSince=Date.now(),this.relay.scheduleIdleClose()),this.onclose?.(e)}};var Xye=5e3;function zF(e,t,n=new wy(e,t,Date.now())){let r=d=>Date.now()-d.created_at*1e3<=t.eventMaxAgeMs,o=null,i=null,s=null,a,c=!1,u=()=>{if(!o?.connected||!s)return;let{filters:d,onEvent:p}=s,h=i;i=o.subscribe(d,{onevent:m=>{n.onReceived(),p(m)},eoseTimeout:6e4}),h?.close()},l=d=>{c||(clearTimeout(a),a=setTimeout(f,d))},f=()=>{if(c)return;let d=new PI(e,{verifyEvent:r});d.publishTimeout=t.publishTimeoutMs,d.onnotice=p=>n.onNotice(p,Date.now()),d.onclose=()=>{o===d&&(o=null,i=null,n.onDisconnected(),l(n.onConnectFailed()))},o=d,d.connect({timeout:Xye}).then(()=>{if(c||o!==d)return d.close();n.onConnected(),u()},()=>{o===d&&(o=null,l(n.onConnectFailed()))})};return f(),{url:e,health:n,connected:()=>!!o?.connected,publish(d){let p=o;if(!p?.connected)return;n.onPublish();let h=Date.now();p.publish(d).then(()=>n.onOk(Date.now()-h),m=>{let y=m instanceof Error?m.message:String(m);y==="publish timed out"?n.onTimeout(Date.now()):p.connected&&n.onRejected(y,Date.now())})},subscribe(d,p){s=d?{filters:d,onEvent:p}:null,s?u():(i?.close(),i=null)},close(){c=!0,clearTimeout(a),i?.close(),o?.close(),o=null}}}import{chmodSync as rve,existsSync as ove,mkdirSync as ive,readFileSync as sve,writeFileSync as ave}from"node:fs";import{join as cve}from"node:path";var eve="planx nostr secp256k1 v1",YF=Uint8Array.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141".match(/../g)??[],e=>parseInt(e,16)),tve=new TextEncoder;function nve(e){if(e.every(t=>t===0))return!1;for(let t=0;t<e.length;t++)if(e[t]!==YF[t])return e[t]<YF[t];return!1}async function ZF(e,t=eve){for(let n=0;;n++){let r=tve.encode(n===0?t:`${t}:${n}`),o=new Uint8Array(await crypto.subtle.deriveBits({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(0),info:r},e,256));if(nve(o))return o;o.fill(0)}}var uve="nostr.seed",lve="planx agent nostr v1",fve=/^[0-9a-f]{64}$/;function QF(e){let t=cve(e,uve),n=ove(t)?sve(t,"utf8").trim():"";if(fve.test(n))return Uint8Array.from(Buffer.from(n,"hex"));let r=crypto.getRandomValues(new Uint8Array(32));return ive(e,{recursive:!0}),ave(t,`${Buffer.from(r).toString("hex")}
86
- `,{mode:384}),rve(t,384),r}async function JF(e,t){let n=await crypto.subtle.importKey("raw",Uint8Array.from(e),"HKDF",!1,["deriveBits"]);return ZF(n,`${lve}:${t}`)}function pc(e){return e.sessionId??`pid:${e.pid}`}var dve="https://planx.machina.at/next/assets/sisters",pve=["blue-alice","green-bob","purple-carol","white-dave","black-eve","silver-frank","silver-kate","red-john","orange-mike"],hve=new Set(pve);function XF(e){return`${dve}/${e&&hve.has(e)?e:"machina"}.webp`}var tq=["t","planx-agent"],gve=30315,mve="general",CI=e=>Math.floor(e/1e3),eq=e=>e.replace(/[^A-Za-z0-9_.-]+/g,"-"),yve="\u{1F914} \u8003\u3048\u4E2D",vve="\u{1F4DD} ";function DI(e,t){return`${eq(e.sessionName??`claude-${e.pid}`)}.${eq(t)}`}function nq(e,t,n){let r={profiles:[],notes:[],statuses:[],next:new Map};for(let o of t){let i=pc(o),s=DI(o,n),a=XF(o.sessionName),c=e?.get(i),u=o.activity??c?.activity??null;r.next.set(i,{key:i,handle:s,picture:a,activity:u}),u!==null&&u!==c?.activity&&r.statuses.push({key:i,content:u}),(!c||c.handle!==s)&&r.profiles.push({key:i,handle:s,picture:a}),c&&u!==null&&u!==c.activity&&u!==yve&&r.notes.push({key:i,content:u,thread:u.startsWith(vve)?"new":"continue"})}for(let o of e?.keys()??[])r.next.has(o)||r.statuses.push({key:o,content:""});return r}function rq(e,t=Date.now()){return{kind:0,created_at:CI(t),tags:[],content:JSON.stringify({name:e.handle,picture:e.picture})}}function oq(e,t=Date.now()){return{kind:gve,created_at:CI(t),tags:[["d",mve],[...tq]],content:e.content}}function bve(e){if(!e)return[];let t=["e",e.root,"","root"];return e.parent===e.root?[t]:[t,["e",e.parent,"","reply"]]}function iq(e,t=Date.now(),n=null){return{kind:1,created_at:CI(t),tags:[[...tq],...bve(n)],content:e.content}}var Ey="planx-from",kI="planx-label",_ve="timeline";function sq(e,t,n){if(e.kind!==1||n.has(e.id))return[];n.add(e.id);let r=new Set(e.tags.filter(([o])=>o==="p").map(([,o])=>o));return t.filter(o=>o.pubkey!==e.pubkey&&r.has(o.pubkey))}function aq(e){let t=i=>e.tags.find(([s])=>s===i),n=t(Ey),r=t(kI)?.[1]||_ve,o=n?.[1]&&n[2]?{serverId:n[1],agentId:n[2],eventId:e.id}:{nostr:{pubkey:e.pubkey,eventId:e.id}};return{text:e.content,label:r,replyTo:o}}function Sve(e){if(!e||!wve(e))return 0;let t=Number(Eve(e,"utf8").trim());return Number.isInteger(t)&&t>0?t:0}function xve(e){return[...e.values()].filter(t=>t.activity!==null).map(t=>({key:t.key,content:t.activity}))}function cq(e){let t=e.now??Date.now,n=Math.floor(t()/1e3),r=QF(e.seedDir),o=new Map,i=new Set,s=new Map,a=new Map,c=null,u=0,l=!1,f=null,d=[],p="",h=P=>{let j=o.get(P)??JF(r,P);return o.set(P,j),j},m=P=>{let j=Math.max(Math.floor(t()/1e3),(s.get(P)??0)+1);return s.set(P,j),j*1e3},y=async(P,j)=>{let Q=En(j,await h(P));return c?.publish(Q),Q},v=async P=>{let j=P.thread==="continue"?a.get(P.key)??null:null,Q=await y(P.key,iq(P,t(),j));a.set(P.key,{root:j?.root??Q.id,parent:Q.id})},w=P=>{for(let j of sq(P,d,i)){let Q=Pl({target:j.socketPath,...aq(P)});e.deliver(j.socketPath,Q).catch(ue=>e.log(`nostr mention delivery failed: ${String(ue)}`))}},A=()=>{let P=Sve(e.nosturnPortFile);return P!==u&&(c?.close(),u=P,c=P?zF(`ws://127.0.0.1:${P}/`,GF):null,l=!1,p=""),c};return{async update(P){let j=A();if(!j?.connected()){l=!1;return}let Q=!l;l=!0;let ue=nq(f,P,e.serverName);f=ue.next;let we=Q?[...ue.next.values()]:ue.profiles;for(let J of we)await y(J.key,rq(J,t()));for(let J of a.keys())ue.next.has(J)||a.delete(J);for(let J of ue.notes)await v(J);for(let J of Q?xve(ue.next):ue.statuses)await y(J.key,oq(J,m(J.key)));d=await Promise.all(P.map(async J=>({pubkey:dc(await h(pc(J))),socketPath:J.socketPath})));let N=d.map(J=>J.pubkey).sort();N.join(",")!==p&&(p=N.join(","),j.subscribe(N.length>0?[{kinds:[1],"#p":N,since:n}]:null,w))},pubkeyOf:async P=>dc(await h(pc(P))),handleOf:P=>DI(P,e.serverName),sign:async(P,j)=>En(j,await h(pc(P))),publish(P){let j=A();return j?.connected()?(j.publish(P),!0):!1},close(){c?.close(),c=null}}}import{existsSync as Ive,readFileSync as Ave}from"node:fs";var Tve=128*1024,Gn=e=>typeof e=="string"?e:"";async function uq(e){let t=[],n=0;for await(let r of e){if(n+=r.length,n>Tve)return null;t.push(r)}try{return JSON.parse(Buffer.concat(t).toString("utf8"))}catch{return null}}function Sn(e,t,n){return e.writeHead(t,{"content-type":"application/json"}),e.end(JSON.stringify(n)),!0}function lq(e){let t=()=>{let c=e.transportPortFile,u=c&&Ive(c)?Number(Ave(c,"utf8").trim()):0;return Number.isInteger(u)&&u>0?`http://127.0.0.1:${u}`:null},n=async(c,u,l)=>{let f=t();return f?e.fetch(`${f}/servers/${encodeURIComponent(c)}/agent${u}`,l).catch(()=>null):null},r=async(c,u)=>{if(c===e.serverId){let d=await e.registry.find(u);return d?{pubkey:await e.nostr.pubkeyOf(d),handle:e.nostr.handleOf(d)}:null}let l=await n(c,`/agents/${encodeURIComponent(u)}`),f=l?.ok?await l.json():null;return typeof f?.nostrPubkey=="string"?{pubkey:f.nostrPubkey,handle:Gn(f.nostrHandle)}:null},o=(c,u)=>!c||u.startsWith(`@${c}`)?u:`@${c} ${u}`,i=async(c,u)=>{let[l,f,d,p]=[Gn(c?.to?.nostrPubkey),Gn(c?.replyToEvent),Gn(c?.from?.agentId),Gn(c?.text)];if(!/^[0-9a-f]{64}$/.test(l)||!d||!p)return Sn(u,400,{error:"to.nostrPubkey (hex), from.agentId, text are required"});let h=await e.registry.find(d);if(!h)return Sn(u,404,{error:"sender agent not found"});let m=[["p",l],...f?[["e",f,"","root",l]]:[],[Ey,e.serverId,d]],y=await e.nostr.sign(h,{kind:1,created_at:Math.floor(Date.now()/1e3),tags:m,content:p});return e.nostr.publish(y)?Sn(u,202,{msgId:y.id}):Sn(u,503,{error:"relay is not connected"})},s=async(c,u)=>{let l=await uq(c);if(l?.to?.nostrPubkey!==void 0)return i(l,u);let[f,d,p,h]=[Gn(l?.to?.serverId),Gn(l?.to?.agentId),Gn(l?.from?.agentId),Gn(l?.text)];if(!f||!d||!p||!h)return Sn(u,400,{error:"to.serverId, to.agentId, from.agentId, text are required"});let m=await e.registry.find(p);if(!m)return Sn(u,404,{error:"sender agent not found"});let y=await r(f,d);if(!y)return Sn(u,404,{error:"target agent not found"});let v=Gn(l?.replyToEvent),w=[["p",y.pubkey],...v?[["e",v,"","root",y.pubkey]]:[],[Ey,e.serverId,p],[kI,Gn(l?.label)||p]],A=await e.nostr.sign(m,{kind:1,created_at:Math.floor(Date.now()/1e3),tags:w,content:o(y.handle,h)});if(!e.nostr.publish(A))return Sn(u,503,{error:"relay is not connected"});if(f!==e.serverId){let P={method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({event:A})},j=await n(f,"/nostr/events",P);if(!j?.ok)return Sn(u,502,{error:`target relay rejected (${j?.status??"unreachable"})`,msgId:A.id})}return Sn(u,202,{msgId:A.id})},a=async(c,u)=>{let l=(await uq(c))?.event;return!l||!Al(l)?Sn(u,400,{error:"signed event is required"}):e.nostr.publish(l)?Sn(u,202,{msgId:l.id}):Sn(u,503,{error:"relay is not connected"})};return{async handle(c,u,l){return c.method==="POST"&&l==="/nostr/send"?s(c,u):c.method==="POST"&&l==="/nostr/events"?a(c,u):!1},decorate:async c=>({...c,nostrPubkey:await e.nostr.pubkeyOf(c),nostrHandle:e.nostr.handleOf(c)})}}import{readFileSync as Mve,statSync as fq}from"node:fs";import{isAbsolute as Ove,join as dq,resolve as Pve}from"node:path";var Cve=6e4;function Dve(e){try{let t=dq(e,".git"),n=fq(t).isDirectory()?t:kve(t,e);return n?fq(dq(n,"HEAD")).mtimeMs:null}catch{return null}}function kve(e,t){let n=/^gitdir:\s*(.+)$/m.exec(Mve(e,"utf8"));if(!n)return null;let r=n[1].trim();return Ove(r)?r:Pve(t,r)}function pq(e,t=Dve,n=Date.now){let r=new Map,o=i=>i.git&&i.stamp!==null?t(i.git.worktreeRoot)===i.stamp:n()-i.at<Cve;return async i=>{let s=r.get(i);if(s&&o(s))return s.git;let a=await e(i);return r.set(i,{git:a,stamp:a?t(a.worktreeRoot):null,at:n()}),a}}import{readFile as Rve,stat as Nve}from"node:fs/promises";function hq(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}async function gq(e){try{return await Rve(e,"utf8")}catch{let t=globalThis.syncFetch;if(typeof t!="function")return null;let n=t(e);return n&&n.ok?n.text():null}}async function mq(e){try{return(await Nve(e)).mtimeMs}catch{return null}}var Kve=5e3,Wve=3e5,yq=$ve(Lve);function zn(e){process.stderr.write(`[agent] ${e}
87
- `)}async function Vve(e){let t=await RI(e);return Promise.all(t.map(async n=>({name:n,mtimeMs:(await Bve(vq(e,n))).mtimeMs})))}async function Gve(e,t){let n=await Fve(e,"r");try{let{size:r}=await n.stat();if(r<=t)return{size:r,bytes:Buffer.alloc(0)};let o=Buffer.alloc(r-t),{bytesRead:i}=await n.read(o,0,o.length,t);return{size:r,bytes:o.subarray(0,i)}}finally{await n.close()}}async function zve(){let e=FI(),t=e.home??Hve(),n=t1({home:t,listDir:Vve,readRange:Gve,warn:zn}),r=YI({now:Date.now,log:zn,everyMs:Wve}),o=VI(r.wrap("exec",async(h,m)=>(await yq(h,m,{maxBuffer:8*1024*1024})).stdout)),i=r.wrap("readProc",gq),s=async(h,m)=>(await yq("git",m,{cwd:h})).stdout,a=r1({socketDir:qI,readdir:h=>RI(h),isAlive:r.wrap("isAlive",hq),readEnv:r.wrap("readEnv",h=>WI(h,o,i)),startTimeMs:GI(i,o),stat:mq,unlink:r.wrap("reaped",h=>Uve(h)),now:Date.now,transcripts:n,sessions:{dir:HI(t),readdir:h=>RI(h),readFile:h=>qve(h,"utf8")},resolveGit:pq(h=>w1(h,s)),warn:zn}),c=e.configDir?cq({seedDir:vq(e.configDir,"agent"),nosturnPortFile:e.nosturnPortFile,serverName:e.serverName??"planx",deliver:Oy,log:zn}):null,u=C2(import.meta.url,process.cwd()),l=await _1({portFile:e.portFile,pidFile:e.pidFile,registry:a,nostr:c&&e.serverId?lq({nostr:c,registry:a,serverId:e.serverId,transportPortFile:e.transportPortFile,fetch}):void 0,deliver:Oy,listWorktrees:h=>E1(h,s),roster:P2({workersOrigin:()=>ux(e.workersPortFile),fetch}),log:zn,admin:{assetsDir:()=>u},version:globalThis.__PLANX_SERVICE_VERSION__??null,write:h=>process.stdout.write(h)});zn(`listening 127.0.0.1:${l.port}`),R2({ingressPortFile:k2(e.portFile),apps:[{name:"agent",title:"Agent",port:l.port}],warn:zn});let f={...a,async list(){let h=Date.now();try{return await a.list()}finally{r.tick(Date.now()-h)}}},d=O2({registry:f,publisher:I2({workersOrigin:()=>ux(e.workersPortFile),bundle:()=>jve(M2(process.argv[1],process.cwd()),"utf-8"),fetch,warn:zn}),onAgents:c?h=>c.update(h):void 0,intervalMs:Kve,now:()=>new Date,log:zn}),p=()=>{d.stop(),c?.close(),l.close().finally(()=>process.exit(0))};process.on("SIGTERM",p),process.on("SIGINT",p),process.stdin.resume(),process.stdin.on("end",()=>process.exit(1)),process.on("uncaughtException",h=>{zn(`uncaught: ${h.stack??String(h)}`),process.exit(1)})}zve().catch(e=>{zn(`boot failed: ${String(e)}`),process.exit(1)});
88
+ `))}var Ku=class e{applicationErrorHandler=z(Lr);appRef=z(Tn);taskService=z(jn);ngZone=z(Ye);zonelessEnabled=z(fu);tracing=z(Ka,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Wu.Subscription;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Kc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(z(H0,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let t=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(t);return}this.switchToMicrotaskScheduler(),this.taskService.remove(t)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let t=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})})}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;(typeof ngDevMode>"u"||ngDevMode)&&(this.useMicrotaskScheduler?xle():(vg=0,ME.length=0));let n=this.useMicrotaskScheduler?IO:j0;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Kc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(t),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Ku,[{type:Ie,args:[{providedIn:"root"}]}],()=>[],null);function SL(){return[{provide:Pr,useExisting:Ku},{provide:Ye,useClass:Wc},{provide:fu,useValue:!0}]}function Ile(){return typeof ngI18nClosureMode<"u"&&ngI18nClosureMode&&typeof goog<"u"&&goog.LOCALE!=="en"?goog.LOCALE:typeof $localize<"u"&&$localize.locale||il}var $S=new H(typeof ngDevMode<"u"&&ngDevMode?"LocaleId":"",{factory:()=>z($S,{optional:!0,skipSelf:!0})||Ile()}),BIe=new H(typeof ngDevMode<"u"&&ngDevMode?"DefaultCurrencyCode":"",{factory:()=>Uae}),UIe=new H(typeof ngDevMode<"u"&&ngDevMode?"Translations":""),HIe=new H(typeof ngDevMode<"u"&&ngDevMode?"TranslationsFormat":""),uC;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"})(uC||(uC={}));var Om=class{destroyed=!1;listeners=null;errorHandler=z(Or,{optional:!0});destroyRef=z(Ln);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,ngDevMode&&"Unexpected subscription to destroyed `OutputRef`. The owning directive/component is destroyed.");return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed){console.warn(bt(953,ngDevMode&&"Unexpected emit for destroyed `OutputRef`. The owning directive/component is destroyed."));return}if(this.listeners===null)return;let n=te(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{te(n)}}};function KS(e,t){let n=wc(e,t?.equal);if(typeof ngDevMode<"u"&&ngDevMode){let r=t?.debugName;n[ze].debugName=r,n.toString=()=>`[Computed${r?" ("+r+")":""}: ${n()}]`}return n}var qL=gc(Nc(),1);var jm=Symbol("InputSignalNode#UNSET"),BL={...Ll,transformFn:void 0,applyValueToInputSignal(e,t){us(e,t)}};function UL(e,t){let n=Object.create(BL);n.value=e,n.transformFn=t?.transform;function r(){if(is(n),n.value===jm){let o=null;if(ngDevMode){let i=t?.debugName??t?.alias;o=`Input${i?` "${i}"`:""} is required but no value is available yet.`}throw new D(-950,o)}return n.value}return r[ze]=n,ngDevMode&&(r.toString=()=>`[Input Signal: ${r()}]`,n.debugName=t?.debugName),r}var xL;(function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"})(xL||(xL={}));var IL;(function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"})(IL||(IL={}));var AL;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom"})(AL||(AL={}));var TL;(function(e){e.Angular="angular",e.ACX="acx",e.Wiz="wiz"})(TL||(TL={}));function ML(e,t){return ngDevMode&&hn(HL),UL(e,t)}function Tle(e){return ngDevMode&&hn(HL),UL(jm,e)}var HL=(ML.required=Tle,ML);function OL(e,t){return ngDevMode&&hn($L),SS(t)}function Mle(e,t){return ngDevMode&&hn($L),xS(t)}var $L=(OL.required=Mle,OL);function PL(e,t){return ngDevMode&&hn(Ple),SS(t)}function Ole(e,t){return ngDevMode&&hn(Cle),xS(t)}var Ple=(PL.required=Ole,PL);function Cle(e,t){return Zk(t)}function KL(e,t){let n=Object.create(BL),r=new Om;n.value=e;function o(){return is(n),CL(n.value),n.value}return o[ze]=n,o.asReadonly=Gh.bind(o),o.set=i=>{n.equal(n.value,i)||(us(n,i),r.emit(i))},o.update=i=>{CL(n.value),o.set(i(n.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,ngDevMode&&(o.toString=()=>`[Model Signal: ${o()}]`,n.debugName=t?.debugName),o}function CL(e){if(e===jm)throw new D(952,ngDevMode&&"Model is required but no value is available yet.")}function DL(e,t){return ngDevMode&&hn(WL),KL(e,t)}function Dle(e){return ngDevMode&&hn(WL),KL(jm,e)}var WL=(DL.required=Dle,DL),VL=!0,ec=class{},u1e=qr("ContentChildren",(e,t={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:VL,...t}),ec),l1e=qr("ContentChild",(e,t={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...t}),ec),f1e=qr("ViewChildren",(e,t={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:VL,...t}),ec),d1e=qr("ViewChild",(e,t)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...t}),ec);function kle(e,t,n){ngDevMode&&iO(n);let r=new Bu(n);if(typeof ngJitMode<"u"&&!ngJitMode)return Promise.resolve(r);let o=e.get(EL,[]).concat(t);if(aL({defaultEncapsulation:kL(o.map(u=>u.defaultEncapsulation)),preserveWhitespaces:kL(o.map(u=>u.preserveWhitespaces))}),tR())return Promise.resolve(r);let i=o.flatMap(u=>u.providers??[]);if(i.length===0)return Promise.resolve(r);let s=yn({usage:0,kind:"NgModule",type:n}),c=en.create({providers:i}).get(s.ResourceLoader);return Xk(u=>Promise.resolve(c.get(u))).then(()=>r)}function kL(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var WS=class e{zone=z(Ye);changeDetectionScheduler=z(Pr);applicationRef=z(Tn);applicationErrorHandler=z(Lr);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(t){this.applicationErrorHandler(t)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(WS,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var Rle=new H(typeof ngDevMode>"u"||ngDevMode?"provideZoneChangeDetection token":"",{factory:()=>!1});var VS=class e{subscription=new qL.Subscription;initialized=!1;zone=z(Ye);pendingTasks=z(jn);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ye.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ye.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(VS,[{type:Ie,args:[{providedIn:"root"}]}],null,null);var Nle=200,RL=1200,Pm=class e{window=null;observer=null;options=z(VC);lcpImageUrl;start(){if(typeof ngServerMode<"u"&&ngServerMode||typeof PerformanceObserver>"u"||this.options?.disableImageSizeWarning&&this.options?.disableImageLazyLoadWarning)return;this.observer=this.initPerformanceObserver();let t=Gu(),n=t.defaultView;if(n){this.window=n;let r=()=>{setTimeout(this.scanImages.bind(this),Nle)},o=()=>{t.readyState==="complete"?r():this.window?.addEventListener("load",r,{once:!0})};typeof Zone<"u"?Zone.root.run(()=>o()):o()}}ngOnDestroy(){this.observer?.disconnect()}initPerformanceObserver(){if(typeof PerformanceObserver>"u")return null;let t=new PerformanceObserver(n=>{let r=n.getEntries();if(r.length===0)return;let i=r[r.length-1].element?.src??"";i.startsWith("data:")||i.startsWith("blob:")||(this.lcpImageUrl=i)});return t.observe({type:"largest-contentful-paint",buffered:!0}),t}scanImages(){let t=Gu().querySelectorAll("img"),n,r=!1;for(let o=0;o<t.length;o++){let i=t[o];i&&(this.options?.disableImageSizeWarning||!i.getAttribute("ng-img")&&this.isOversized(i)&&jle(i.src),!this.options?.disableImageLazyLoadWarning&&this.lcpImageUrl&&i.src===this.lcpImageUrl&&(n=!0,(i.loading!=="lazy"||i.getAttribute("ng-img"))&&(r=!0)))}n&&!r&&this.lcpImageUrl&&!this.options?.disableImageLazyLoadWarning&&Lle(this.lcpImageUrl)}isOversized(t){if(!this.window)return!1;let n=[".svg"],r=(t.src||"").toLowerCase();if(n.some(m=>r.endsWith(m)))return!1;let o=this.window.getComputedStyle(t),i=parseFloat(o.getPropertyValue("width")),s=parseFloat(o.getPropertyValue("height")),a=o.getPropertyValue("box-sizing");if(o.getPropertyValue("object-fit")==="cover")return!1;if(a==="border-box"){let m=o.getPropertyValue("padding-top"),y=o.getPropertyValue("padding-right"),v=o.getPropertyValue("padding-bottom"),w=o.getPropertyValue("padding-left");i-=parseFloat(y)+parseFloat(w),s-=parseFloat(m)+parseFloat(v)}let u=t.naturalWidth,l=t.naturalHeight,f=this.window.devicePixelRatio*i,d=this.window.devicePixelRatio*s,p=u-f>=RL,h=l-d>=RL;return p||h}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"root"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(Pm,[{type:Ie,args:[{providedIn:"root"}]}],null,null);function Lle(e){console.warn(bt(-913,`An image with src ${e} is the Largest Contentful Paint (LCP) element but was given a "loading" value of "lazy", which can negatively impact application loading performance. This warning can be addressed by changing the loading value of the LCP image to "eager", or by using the NgOptimizedImage directive's prioritization utilities. For more information about addressing or disabling this warning, see ${gh}/NG0913`))}function jle(e){console.warn(bt(-913,`An image with src ${e} has intrinsic file dimensions much larger than its rendered size. This can negatively impact application loading performance. For more information about addressing or disabling this warning, see ${gh}/NG0913`))}var Cm=new H(typeof ngDevMode<"u"&&ngDevMode?"PlatformDestroyListeners":""),Fle=new H(typeof ngDevMode<"u"&&ngDevMode?"ENABLE_ROOT_COMPONENT_BOOTSTRAP":"");function cl(e){return!e.moduleRef}function qle(e){let t=cl(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ye);return n.run(()=>{cl(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Lr);(typeof ngDevMode>"u"||ngDevMode)&&t.get(U0)&&t.get(Rle)&&console.warn(bt(408,"Both provideZoneChangeDetection and provideZonelessChangeDetection are provided. This is likely a mistake. Update the application providers to use only one of the two."));let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),cl(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Cm);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Cm);s.add(i),e.moduleRef.onDestroy(()=>{Eu(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Ule(r,n,()=>{let i=t.get(jn),s=i.add(),a=t.get(Fa);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get($S,il);if(JR(c||il),!t.get(Fle,!0))return cl(e)?t.get(Tn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if((typeof ngDevMode>"u"||ngDevMode)&&t.get(Pm).start(),cl(e)){let l=t.get(Tn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return GL?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var GL;function NL(){GL=Ble}function Ble(e,t){let n=e.injector.get(Tn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,ngDevMode&&`The module ${ke(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.push(e)}function Ule(e,t,n){try{let r=n();return CS(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var ul=class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(t){this._injector=t}bootstrapModuleFactory(t,n){let r=[SL(),...n?.applicationProviders??[],TO,...ngDevMode?[KC]:[]],o=rR(t.moduleType,this.injector,r);return NL(),qle({moduleRef:o,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(t,n=[]){let r=DS({},n);return NL(),kle(this.injector,r,t).then(o=>this.bootstrapModuleFactory(o,r))}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,ngDevMode&&"The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let t=this._injector.get(Cm,null);t&&(t.forEach(n=>n()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||e)(Tt(en))};static \u0275prov=Fe({token:e,factory:e.\u0275fac,providedIn:"platform"})};(typeof ngDevMode>"u"||ngDevMode)&&vn(ul,[{type:Ie,args:[{providedIn:"platform"}]}],()=>[{type:en}],null);var XS=null;function Hle(e){if(ex())throw new D(400,ngDevMode&&"There can be only one platform. Destroy the previous one to create a new one.");PR(),CR(),XS=typeof ngServerMode>"u"||!ngServerMode?e:null;let t=e.get(ul);return Vle(e),t}function $le(e,t,n=[]){let r=`Platform: ${t}`,o=new H(r);return(i=[])=>{let s=ex();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??Hle(Kle(a,r))}return typeof ngServerMode<"u"&&ngServerMode?s:Wle(o)}}function Kle(e=[],t){return en.create({name:t,providers:[{provide:J_,useValue:"platform"},{provide:Cm,useValue:new Set([()=>XS=null])},...e]})}function Wle(e){let t=ex();if(!t)throw new D(-401,ngDevMode&&"No platform exists!");if((typeof ngDevMode>"u"||ngDevMode)&&!t.injector.get(e,null))throw new D(400,"A platform with a different configuration has been created. Please destroy it first.");return t}function ex(){return typeof ngServerMode<"u"&&ngServerMode?null:XS?.get(ul)??null}function Vle(e){let t=e.get(WC,null);Ch(e,()=>{t?.forEach(n=>n())})}var Gle=1e4;var p1e=Gle-1e3;var Dm=class{supports(t){return Fu(t)}create(t){return new GS(t)}},zle=(e,t)=>t,GS=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||zle}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<LL(r,o,i)?n:r,a=LL(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let d=0;d<u;d++){let p=d<i.length?i[d]:i[d]=0,h=p+d;l<=h&&h<u&&(i[d]=p+1)}let f=s.previousIndex;i[f]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Fu(t))throw new D(900,ngDevMode&&`Error trying to diff '${ke(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,jk(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new zS(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new km),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new km),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},zS=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},YS=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},km=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new YS,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function LL(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Rm=class{supports(t){return t instanceof Map||wm(t)}create(){return new ZS}},ZS=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||wm(t)))throw new D(900,ngDevMode&&`Error trying to diff '${ke(t)}'. Only maps and objects are allowed`);return this.check(t)?this:null}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new QS(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},QS=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function jL(){return new Nm([new Dm])}var Nm=class e{factories;static \u0275prov=Fe({token:e,providedIn:"root",factory:jL});constructor(t){this.factories=t}static create(t,n){if(n!=null){let r=n.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let n=z(e,{optional:!0,skipSelf:!0});return e.create(t,n||jL())}}}find(t){let n=this.factories.find(r=>r.supports(t));if(n!=null)return n;throw new D(901,ngDevMode&&`Cannot find a differ supporting object '${t}' of type '${Yle(t)}'`)}};function Yle(e){return e.name||typeof e}function FL(){return new Lm([new Rm])}var Lm=class e{static \u0275prov=Fe({token:e,providedIn:"root",factory:FL});factories;constructor(t){this.factories=t}static create(t,n){if(n){let r=n.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let n=z(e,{optional:!0,skipSelf:!0});return e.create(t,n||FL())}}}find(t){let n=this.factories.find(r=>r.supports(t));if(n)return n;throw new D(901,ngDevMode&&`Cannot find a differ supporting object '${t}'`)}},Zle=[new Rm],Qle=[new Dm],h1e=new Nm(Qle),g1e=new Lm(Zle),m1e=$le(null,"core",[]),JS=class e{constructor(t){}static \u0275fac=function(n){return new(n||e)(Tt(Tn))};static \u0275mod=IS({type:e});static \u0275inj=Zc({})};(typeof ngDevMode>"u"||ngDevMode)&&vn(JS,[{type:wL}],()=>[{type:Tn}],null);var y1e=new H(typeof ngDevMode>"u"||ngDevMode?"REQUEST":"",{providedIn:"platform",factory:()=>null}),v1e=new H(typeof ngDevMode>"u"||ngDevMode?"RESPONSE_INIT":"",{providedIn:"platform",factory:()=>null}),b1e=new H(typeof ngDevMode>"u"||ngDevMode?"REQUEST_CONTEXT":"",{providedIn:"platform",factory:()=>null});function ll(e,t){let n=e[t];if(!n)throw new Error(`algorithm-suite: unsupported key algorithm ${t}`);return n}function Fm(e,t,n,r){let o=ll(e,t)[n];if(!o)throw new Error(`algorithm-suite: ${t} cannot be used for ${r}`);return o}function zL(e,t){return Fm(e,t,"sign","signing")}function YL(e,t){return Fm(e,t,"signImport","signing")}function ZL(e,t){return Fm(e,t,"kx","key exchange")}function QL(e,t){return Fm(e,t,"kxImport","key exchange")}function JL(e,t){return ll(e,t).generate}function XL(e,t){return ll(e,t).acceptsDerSignature===!0}function tx(e,t){return ll(e,t).oid}function e2(e,t){let n=ll(e,t).pkcs8Prefix;if(!n)throw new Error(`algorithm-suite: ${t} has no raw pkcs8 prefix`);return n}var efe=48;function tfe(e){let t;try{t=atob(e)}catch{throw new Error("detectKeyAlgorithm: unknown or unsupported key algorithm (not base64 DER)")}let n=Math.min(t.length,efe),r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}function nfe(e,t){e:for(let n=0;n+t.length<=e.length;n++){for(let r=0;r<t.length;r++)if(e[n+r]!==t[r])continue e;return!0}return!1}function t2(e,t,n){let r=tfe(n);for(let o of t)if(nfe(r,tx(e,o)))return o;throw new Error("detectKeyAlgorithm: unknown or unsupported key algorithm")}var $r={Ed25519:{oid:[6,3,43,101,112],pkcs8Prefix:[48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32],generate:{name:"Ed25519"},sign:{name:"Ed25519"},signImport:{name:"Ed25519"}},X25519:{oid:[6,3,43,101,110],pkcs8Prefix:[48,46,2,1,0,48,5,6,3,43,101,110,4,34,4,32],spkiPrefix:[48,42,48,5,6,3,43,101,110,3,33,0],generate:{name:"X25519"},kx:{name:"X25519"},kxImport:{name:"X25519"}},"P-256":{oid:[6,7,42,134,72,206,61,2,1],generate:{name:"ECDSA",namedCurve:"P-256"},sign:{name:"ECDSA",hash:"SHA-256"},signImport:{name:"ECDSA",namedCurve:"P-256"},kx:{name:"ECDH"},kxImport:{name:"ECDH",namedCurve:"P-256"},acceptsDerSignature:!0}},n2=Object.keys($r);function nx(e){return zL($r,e)}function tc(e){return YL($r,e)}function r2(e){return ZL($r,e)}function Vi(e){return QL($r,e)}function o2(e){return JL($r,e)}function i2(e){return XL($r,e)}function s2(e){return e2($r,e)}var rfe={accept:["Ed25519","X25519","P-256"]};var O1e=new H("CRYPTO_POLICY",{providedIn:"root",factory:()=>rfe});function Kr(e){return t2($r,n2,e)}function fl(e){if(typeof e=="string")return Kr(e);if(rs(e))return e.algorithm;let{name:t,namedCurve:n}=e.algorithm,r=t==="ECDSA"||t==="ECDH"?n:t;if(!n2.includes(r))throw new Error(`keyAlgorithmOf: unsupported CryptoKey algorithm ${t}`);return r}function c2(e){return e.length!==64&&e.length>8&&e[0]===48}function u2(e){let t=2;if(e[t]!==2)throw new Error("Invalid DER: expected INTEGER for r");t++;let n=e[t++],r=t;e[r]===0&&n>32&&r++;let o=e.slice(r,t+n);if(t+=n,e[t]!==2)throw new Error("Invalid DER: expected INTEGER for s");t++;let i=e[t++],s=t;e[s]===0&&i>32&&s++;let a=e.slice(s,t+i),c=new Uint8Array(64);return c.set(a2(o),0),c.set(a2(a),32),c}function a2(e){if(e.length===32)return e;if(e.length>32)return e.slice(e.length-32);let t=new Uint8Array(32);return t.set(e,32-e.length),t}var ofe=e=>{let t=atob(e),n=new Uint8Array(new ArrayBuffer(t.length));for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},ife=e=>{let t=new Uint8Array(e),n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)};async function qm(e,t=Kr(e)){let n=tc(t),r=await crypto.subtle.importKey("pkcs8",ofe(e),n,!0,["sign"]),{kty:o,crv:i,x:s,y:a}=await crypto.subtle.exportKey("jwk",r);if(!s)throw new Error(`signPublicKeyFromSecretKey: ${t} secretKey \u304B\u3089\u516C\u958B\u9375\u3092\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093`);let c=await crypto.subtle.importKey("jwk",{kty:o,crv:i,x:s,y:a},n,!0,["verify"]);return ife(await crypto.subtle.exportKey("spki",c))}var sfe=32,l2=32,Bm=Uint8Array.from(s2("X25519"));async function f2(e){let t=e.slice(e.length-sfe),n=new Uint8Array(await crypto.subtle.digest("SHA-512",t));t.fill(0);let r=new Uint8Array(new ArrayBuffer(Bm.length+l2));r.set(Bm),r.set(n.subarray(0,l2),Bm.length),n.fill(0);let o=Bm.length;return r[o]&=248,r[o+31]&=127,r[o+31]|=64,r}var Vo=class{async generateIdentityKeySet(){let t=await this.generateSignKeyPair();return this.deriveIdentityKeySet(t.privateKey)}async deriveIdentityKeySet(t){let n=this.base64ToBytes(t),r=await qm(t,"Ed25519"),o=await f2(n),i=await crypto.subtle.importKey("pkcs8",o,Vi("X25519"),!0,["deriveBits"]),s=await crypto.subtle.exportKey("jwk",i);if(!s.x)throw new Error("deriveIdentityKeySet: X25519 \u516C\u958B\u9375\u3092\u5FA9\u5143\u3067\u304D\u307E\u305B\u3093");let a=await crypto.subtle.importKey("jwk",{kty:"OKP",crv:"X25519",x:s.x},Vi("X25519"),!0,[]);return{sign:{publicKey:r,privateKey:t,algorithm:"Ed25519"},kx:{publicKey:this.bufferToBase64(await crypto.subtle.exportKey("spki",a)),privateKey:this.bufferToBase64(o.buffer),algorithm:"X25519"},createdAt:new Date}}base64ToBytes(t){let n=atob(t),r=new Uint8Array(new ArrayBuffer(n.length));for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}async generateSignKeyPair(){return{...await this.generateRaw("Ed25519",["sign","verify"]),algorithm:"Ed25519"}}async generateRaw(t,n){let r=await crypto.subtle.generateKey(o2(t),!0,n);return{publicKey:this.bufferToBase64(await crypto.subtle.exportKey("spki",r.publicKey)),privateKey:this.bufferToBase64(await crypto.subtle.exportKey("pkcs8",r.privateKey)),createdAt:new Date}}async getPeerId(t){return vc(t.publicKey)}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};Vo=Qe([Ie()],Vo);function Gi(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return"["+e.map(r=>Gi(r)).join(",")+"]";let t=e;return"{"+Object.keys(t).sort().filter(r=>t[r]!==void 0).map(r=>JSON.stringify(r)+":"+Gi(t[r])).join(",")+"}"}var zi=class{async deriveSharedKey(t,n){let r=rs(t)?(await t.client.deriveBits(t.ref,this.base64ToBytes(n),256)).slice().buffer:await this.deriveLocalBits(t,n),o=await crypto.subtle.digest("SHA-256",r);return crypto.subtle.importKey("raw",o,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}async deriveLocalBits(t,n){let r=fl(t),o=typeof t=="string"?await crypto.subtle.importKey("pkcs8",this.base64ToBytes(t),Vi(r),!1,["deriveBits"]):t,i=await crypto.subtle.importKey("spki",this.base64ToBytes(n),Vi(Kr(n)),!1,[]);return crypto.subtle.deriveBits({...r2(r),public:i},o,256)}async encryptBytes(t,n){let r=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,t);return{encrypted:this.bufferToBase64(o),iv:this.bufferToBase64(r.buffer)}}async decryptBytes(t,n,r){let o=await crypto.subtle.decrypt({name:"AES-GCM",iv:this.base64ToBytes(n)},r,this.base64ToBytes(t));return new Uint8Array(o)}async encrypt(t,n){return this.encryptBytes(new TextEncoder().encode(t),n)}async decrypt(t,n,r){return new TextDecoder().decode(await this.decryptBytes(t,n,r))}base64ToBuffer(t){return this.base64ToBytes(t).buffer}base64ToBytes(t){let n=atob(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};zi=Qe([Ie()],zi);var bn=class{async sha256(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return Array.from(new Uint8Array(r)).map(i=>i.toString(16).padStart(2,"0")).join("")}async toUuid(t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r).slice(0,16);o[0]=32,o[1]=1,o[2]=0,o[3]=42,o[6]=o[6]&15|128,o[8]=o[8]&63|128;let i=Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join("");return[i.slice(0,8),i.slice(8,12),i.slice(12,16),i.slice(16,20),i.slice(20,32)].join("-")}};bn=Qe([Ie({providedIn:"root"})],bn);var Yi=class{async sign(t,n){let r=Gi(t),o=await this.createSignature(r,n);return{payload:t,signature:o}}async verify(t,n){try{let r=Gi(t.payload);return await this.verifySignature(r,t.signature,n)?{valid:!0,verifiedBy:n}:{valid:!1,error:"Signature verification failed"}}catch(r){return{valid:!1,error:`Verification error: ${r}`}}}validateTimestamp(t,n=TA){let o=(n.now?n.now():Date.now())-t;return o>=0&&o<=n.maxAgeMs}async createSignature(t,n){if(rs(n))return this.bufferToBase64((await n.client.sign(n.ref,new TextEncoder().encode(t))).slice().buffer);let r=fl(n),o=typeof n=="string"?await crypto.subtle.importKey("pkcs8",this.base64ToBytes(n),tc(r),!1,["sign"]):n,i=await crypto.subtle.sign(nx(r),o,new TextEncoder().encode(t));return this.bufferToBase64(i)}async verifySignature(t,n,r){let o=Kr(r),i=await crypto.subtle.importKey("spki",this.base64ToBytes(r),tc(o),!1,["verify"]),s=this.base64ToBytes(n),a=i2(o)&&c2(s)?u2(s):s;return crypto.subtle.verify(nx(o),i,a,new TextEncoder().encode(t))}base64ToBuffer(t){return this.base64ToBytes(t).buffer}base64ToBytes(t){let n=atob(t),r=new Uint8Array(n.length);for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return r}bufferToBase64(t){let n=new Uint8Array(t),r="";for(let o=0;o<n.length;o++)r+=String.fromCharCode(n[o]);return btoa(r)}};Yi=Qe([Ie()],Yi);var Wr=class{async loadKeySet(t){let n=await this.loadSecretKey(t);return n?new Vo().deriveIdentityKeySet(n):null}async createKeySet(t){let n=await new Vo().generateIdentityKeySet();return await this.saveSecretKey(n.sign.privateKey,t),n}};Wr=Qe([Ie()],Wr);var Um=class extends Wr{constructor(){super(...arguments);this.secretKeys=new Map}async saveSecretKey(n,r){this.secretKeys.set(r??"",n)}async loadSecretKey(n){return this.secretKeys.get(n??"")??null}async deleteSecretKey(n){this.secretKeys.delete(n??"")}async exists(n){return this.secretKeys.has(n??"")}};Um=Qe([Ie()],Um);var Hm=class{constructor(){this.storage=z(Wr);this.identityKeySet=null;this.keyPair=null;this.peerId=null;this._initialized=No(!1);this.scope=null;this.pendingKeySet=null}getScope(){return this.scope}async useScope(t){this.scope===t&&this._initialized()||(this.scope=t,this.identityKeySet=null,this.keyPair=null,this.peerId=null,this._initialized.set(!1),await this.initialize())}async initialize(){if(this._initialized())return;let t=await this.ensureIdentityKeySet();this.keyPair={publicKey:t.sign.publicKey,privateKey:t.sign.privateKey,algorithm:t.sign.algorithm,createdAt:t.createdAt},this.peerId=await vc(t.sign.publicKey),this._initialized.set(!0)}async ensureIdentityKeySet(){if(this.identityKeySet)return this.identityKeySet;let t=this.scope,n=this.pendingKeySet;if(n&&n.scope===t)return n.promise;let r=this.loadOrCreateIdentityKeySet(t).finally(()=>{this.pendingKeySet?.promise===r&&(this.pendingKeySet=null)});return this.pendingKeySet={scope:t,promise:r},r}async loadOrCreateIdentityKeySet(t){let n=await this.storage.loadKeySet(t??void 0)??await this.storage.createKeySet(t??void 0);return this.scope===t&&(this.identityKeySet=n),n}getIdentityKeySet(){return this.identityKeySet}getKeyPair(){if(!this.keyPair)throw new Error("KeyManager not initialized");return this.keyPair}getPeerId(){if(!this.peerId)throw new Error("KeyManager not initialized");return this.peerId}isInitialized(){return this._initialized()}async waitForInitialization(t=1e4){if(this._initialized())return;let n=Date.now(),r=50;return new Promise((o,i)=>{let s=()=>{if(this._initialized()){o();return}if(Date.now()-n>t){i(new Error("KeyManager initialization timeout"));return}setTimeout(s,r)};s()})}async reset(){await this.storage.deleteSecretKey(this.scope??void 0),this.identityKeySet=null,this.keyPair=null,this.peerId=null,this._initialized.set(!1),await this.initialize()}async rotateKeyPair(){if(!this.keyPair)throw new Error("KeyManager not initialized");let t=await this.storage.createKeySet(this.scope??void 0);return this.identityKeySet=t,this.keyPair={publicKey:t.sign.publicKey,privateKey:t.sign.privateKey,algorithm:t.sign.algorithm,createdAt:t.createdAt},this.peerId=await vc(t.sign.publicKey),this.keyPair}};Hm=Qe([Ie({providedIn:"root"})],Hm);var tMe=BigInt(0),afe=BigInt(1),nMe=BigInt(2),rMe=BigInt(8),oMe=BigInt(255),cfe=afe<<BigInt(255),iMe=cfe-BigInt(19);var hMe=new zi,gMe=new TextEncoder;var FMe=new H("SIGNALING_CHANNELS");var qMe=new H("PRESENCE_VERIFIER");var zMe=new H("SIGNALING_MESSAGE_SENDER");var p2=new H("Logger"),$m=class{debug(t,n){this.log(0,t,n)}info(t,n){this.log(1,t,n)}warn(t,n){this.log(2,t,n)}error(t,n,r){this.log(3,t,r,n)}fatal(t,n,r){this.log(4,t,r,n)}};$m=Qe([Ie()],$m);var rx=new H("LogFilter");var DOe=new H("LoggingService"),dl=class{constructor(){this.loggers=z(p2,{optional:!0})??[];this.filter=z(rx,{optional:!0})}getLogger(t,n){let r=(...i)=>i.map(s=>{if(typeof s=="string")return s;if(s===void 0)return"undefined";if(s===null)return"null";let a=JSON.stringify(s);return a!==void 0?a:String(s)}).join(" "),o={component:t};return n?.package!=null&&(o.package=n.package),{log:(...i)=>this.log(1,r(...i),o),debug:(...i)=>this.log(0,r(...i),o),info:(...i)=>this.log(1,r(...i),o),warn:(...i)=>this.log(2,r(...i),o),error:(...i)=>this.log(3,r(...i),o),child:i=>this.getLogger(`${t}.${i}`,n)}}log(t,n,r,o){this.filter&&!this.filter(t,r)||this.loggers.forEach(i=>i.log(t,n,r,o))}close(){this.loggers.forEach(t=>t.close())}debug(t,n){this.log(0,t,n)}info(t,n){this.log(1,t,n)}warn(t,n){this.log(2,t,n)}error(t,n,r){this.log(3,t,r,n)}fatal(t,n,r){this.log(4,t,r,n)}setLogLevel(t){}setComponent(t){}};dl=Qe([Ie({providedIn:"root"})],dl);var lfe=null;var pl=()=>{},h2={log:pl,debug:pl,info:pl,warn:pl,error:pl,child:()=>h2};function ox(e,t){return lfe?.getLogger(e,t)??h2}var Km=class{constructor(){this.logger=ox("SignalingIdService");this.hashAdapter=z(bn)}async generateId(t){return await this.hashAdapter.toUuid(t)}async findPublicKeyByHash(t,n){for(let r of n)if(await this.generateId(r)===t)return r;return null}isHashedId(t){return/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/.test(t)}};Km=Qe([Ie({providedIn:"root"})],Km);var _n={prod:{hasuraUrl:"https://graphql-prod.machina.at/v1/graphql",apiNextUrl:"https://api.machina.at",webServerUrl:"https://webkernel.machina.at",invoiceAppUrl:"https://presenter.machina.at/stable",appUrl:"https://machina.at"},stg:{hasuraUrl:"https://graphql-stg.machina.at/v1/graphql",apiNextUrl:"https://api.stg.machina.at",webServerUrl:"https://webkernel.machina.at",invoiceAppUrl:"https://presenter.machina.at/stable",appUrl:"https://machina.at/develop"}};var nc={PLANX_GRAPHQL_URL:_n.prod.hasuraUrl,PLANX_CLOUD_API_URL:_n.prod.apiNextUrl,PLANX_NOSTR_RELAYS:["wss://nosturn.machina.at","wss://nos.lol","wss://relay.snort.social","wss://relay.primal.net","wss://relay.mostr.pub","wss://yabu.me","wss://nostr.mom","wss://nostr.data.haus","wss://nostr-pub.wellorder.net","wss://nostr.mikoshi.de","wss://nostream.ocha.one"].join(",")};var nPe=nc.PLANX_NOSTR_RELAYS.split(",").map(e=>e.trim()).filter(e=>e.length>0);var g2="{version}",ffe=7447,dfe=`ws://127.0.0.1:${ffe}`,m2="http://localhost:5401/v1/graphql",y2="http://localhost:5406/api-next",v2="http://localhost:4301",b2={prod:{"hasura-endpoint":_n.prod.hasuraUrl,"api-next-url":`${_n.prod.apiNextUrl}/${g2}`,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":_n.prod.webServerUrl,"invoice-app-url":_n.prod.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},stg:{"hasura-endpoint":_n.stg.hasuraUrl,"api-next-url":`${_n.stg.apiNextUrl}/${g2}`,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":_n.stg.webServerUrl,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},local:{"hasura-endpoint":m2,"api-next-url":y2,"nostr-relays":nc.PLANX_NOSTR_RELAYS,"web-server-url":v2,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"","ice-servers":""},"local-emulator":{"hasura-endpoint":m2,"api-next-url":y2,"nostr-relays":dfe,"web-server-url":v2,"invoice-app-url":_n.stg.invoiceAppUrl,"firebase-auth-emulator":"localhost:9099","ice-servers":""}};var _2=gc(Nc(),1);var hl=class{constructor(){this._config={roles:["client"],origin:"cli-server",allowPeersPublicKeys:[],peerSessionOptions:{}};this._changes$=new _2.ReplaySubject(1);this.changes$=this._changes$.asObservable()}async peerId(){return this.current.identity?.peerId??""}async publicKey(){return this.current.identity?.publicKey??null}async shortServerId(){let t=this.current.identity?.peerId??"";return t?t.replace(/-/g,"").substring(8,16):""}async getWebRTCConfig(){return this.current}async setWebRTCConfig(t){this.write(t)}async updateWebRTCConfig(t){this.write(t(this.current))}async isConfigured(){return!!this.current.identity}async configure(t){this.write({...this.current,identity:t})}async initializeKeys(){}async waitForKeyInitialization(){}get current(){return this._config}getCurrentConfig(){return this._config}write(t){this._config=t,!this._changes$.observed&&typeof window<"u"&&console.warn("[PeerConfigStore] write with no subscriber \u2014 provideWebRTCConfigBridge may be missing in this entrypoint (PR #3922 trap)"),this._changes$.next(t)}};hl=Qe([Ie({providedIn:"root"})],hl);var ix=["session","transport","presentation","log","filesystem","config","storage","intelligence","computer","browser","explorer","egress","agent","github","nosturn","ingress","pages","workers"],w2=["session","transport","presentation","log","filesystem","config"],qPe=[...w2,"storage","intelligence","computer","browser","explorer","egress","agent","github","nosturn","ingress","pages","workers"],BPe=ix.filter(e=>!w2.includes(e));var E2="/apps";var $Pe=new Set([...ix,"proxy","ingress","servers","peer","apps","s3"]);var S2="/ingress",XPe=[`${S2}/tcp`,`${S2}/udp`,E2];var NCe=new Yi,LCe=new bn;var KCe=new bn;var eDe=new bn;var I2;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(e);typeof n.Reflect>"u"?n.Reflect=e:r=o(n.Reflect,r),t(r);function o(i,s){return function(a,c){typeof i[a]!="function"&&Object.defineProperty(i,a,{configurable:!0,writable:!0,value:c}),s&&s(a,c)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",s=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!s&&!a,u={create:s?function(){return Iy(Object.create(null))}:a?function(){return Iy({__proto__:null})}:function(){return Iy({})},has:c?function(E,T){return n.call(E,T)}:function(E,T){return T in E},get:c?function(E,T){return n.call(E,T)?E[T]:void 0}:function(E,T){return E[T]}},l=Object.getPrototypeOf(Function),f=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",d=!f&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Tq(),p=!f&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Mq(),h=!f&&typeof WeakMap=="function"?WeakMap:Oq(),m=new h;function y(E,T,k,$){if(L(k)){if(!ht(E))throw new TypeError;if(!hc(T))throw new TypeError;return J(E,T)}else{if(!ht(E))throw new TypeError;if(!oe(T))throw new TypeError;if(!oe($)&&!L($)&&!V($))throw new TypeError;return V($)&&($=void 0),k=be(k),de(E,T,k,$)}}t("decorate",y);function v(E,T){function k($,ne){if(!oe($))throw new TypeError;if(!L(ne)&&!Ol(ne))throw new TypeError;B(E,T,$,ne)}return k}t("metadata",v);function w(E,T,k,$){if(!oe(k))throw new TypeError;return L($)||($=be($)),B(E,T,k,$)}t("defineMetadata",w);function A(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),O(E,T,k)}t("hasMetadata",A);function P(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),M(E,T,k)}t("hasOwnMetadata",P);function j(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),I(E,T,k)}t("getMetadata",j);function Q(E,T,k){if(!oe(T))throw new TypeError;return L(k)||(k=be(k)),R(E,T,k)}t("getOwnMetadata",Q);function ue(E,T){if(!oe(E))throw new TypeError;return L(T)||(T=be(T)),U(E,T)}t("getMetadataKeys",ue);function we(E,T){if(!oe(E))throw new TypeError;return L(T)||(T=be(T)),C(E,T)}t("getOwnMetadataKeys",we);function N(E,T,k){if(!oe(T))throw new TypeError;L(k)||(k=be(k));var $=G(T,k,!1);if(L($)||!$.delete(E))return!1;if($.size>0)return!0;var ne=m.get(T);return ne.delete(k),ne.size>0||m.delete(T),!0}t("deleteMetadata",N);function J(E,T){for(var k=E.length-1;k>=0;--k){var $=E[k],ne=$(T);if(!L(ne)&&!V(ne)){if(!hc(ne))throw new TypeError;T=ne}}return T}function de(E,T,k,$){for(var ne=E.length-1;ne>=0;--ne){var Et=E[ne],ve=Et(T,k,$);if(!L(ve)&&!V(ve)){if(!oe(ve))throw new TypeError;$=ve}}return $}function G(E,T,k){var $=m.get(E);if(L($)){if(!k)return;$=new d,m.set(E,$)}var ne=$.get(T);if(L(ne)){if(!k)return;ne=new d,$.set(T,ne)}return ne}function O(E,T,k){var $=M(E,T,k);if($)return!0;var ne=xy(T);return V(ne)?!1:O(E,ne,k)}function M(E,T,k){var $=G(T,k,!1);return L($)?!1:Ve($.has(E))}function I(E,T,k){var $=M(E,T,k);if($)return R(E,T,k);var ne=xy(T);if(!V(ne))return I(E,ne,k)}function R(E,T,k){var $=G(T,k,!1);if(!L($))return $.get(E)}function B(E,T,k,$){var ne=G(k,$,!0);ne.set(E,T)}function U(E,T){var k=C(E,T),$=xy(E);if($===null)return k;var ne=U($,T);if(ne.length<=0)return k;if(k.length<=0)return ne;for(var Et=new p,ve=[],Ee=0,ie=k;Ee<ie.length;Ee++){var Pe=ie[Ee],Ce=Et.has(Pe);Ce||(Et.add(Pe),ve.push(Pe))}for(var Xr=0,LI=ne;Xr<LI.length;Xr++){var Pe=LI[Xr],Ce=Et.has(Pe);Ce||(Et.add(Pe),ve.push(Pe))}return ve}function C(E,T){var k=[],$=G(E,T,!1);if(L($))return k;for(var ne=$.keys(),Et=Sq(ne),ve=0;;){var Ee=Iq(Et);if(!Ee)return k.length=ve,k;var ie=xq(Ee);try{k[ve]=ie}catch(Pe){try{Aq(Et)}finally{throw Pe}}ve++}}function q(E){if(E===null)return 1;switch(typeof E){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return E===null?1:6;default:return 6}}function L(E){return E===void 0}function V(E){return E===null}function Re(E){return typeof E=="symbol"}function oe(E){return typeof E=="object"?E!==null:typeof E=="function"}function ye(E,T){switch(q(E)){case 0:return E;case 1:return E;case 2:return E;case 3:return E;case 4:return E;case 5:return E}var k=T===3?"string":T===5?"number":"default",$=NI(E,o);if($!==void 0){var ne=$.call(E,k);if(oe(ne))throw new TypeError;return ne}return Ne(E,k==="default"?"number":k)}function Ne(E,T){if(T==="string"){var k=E.toString;if(Cn(k)){var $=k.call(E);if(!oe($))return $}var ne=E.valueOf;if(Cn(ne)){var $=ne.call(E);if(!oe($))return $}}else{var ne=E.valueOf;if(Cn(ne)){var $=ne.call(E);if(!oe($))return $}var Et=E.toString;if(Cn(Et)){var $=Et.call(E);if(!oe($))return $}}throw new TypeError}function Ve(E){return!!E}function pt(E){return""+E}function be(E){var T=ye(E,3);return Re(T)?T:pt(T)}function ht(E){return Array.isArray?Array.isArray(E):E instanceof Object?E instanceof Array:Object.prototype.toString.call(E)==="[object Array]"}function Cn(E){return typeof E=="function"}function hc(E){return typeof E=="function"}function Ol(E){switch(q(E)){case 3:return!0;case 4:return!0;default:return!1}}function NI(E,T){var k=E[T];if(k!=null){if(!Cn(k))throw new TypeError;return k}}function Sq(E){var T=NI(E,i);if(!Cn(T))throw new TypeError;var k=T.call(E);if(!oe(k))throw new TypeError;return k}function xq(E){return E.value}function Iq(E){var T=E.next();return T.done?!1:T}function Aq(E){var T=E.return;T&&T.call(E)}function xy(E){var T=Object.getPrototypeOf(E);if(typeof E!="function"||E===l||T!==l)return T;var k=E.prototype,$=k&&Object.getPrototypeOf(k);if($==null||$===Object.prototype)return T;var ne=$.constructor;return typeof ne!="function"||ne===E?T:ne}function Tq(){var E={},T=[],k=(function(){function ve(Ee,ie,Pe){this._index=0,this._keys=Ee,this._values=ie,this._selector=Pe}return ve.prototype["@@iterator"]=function(){return this},ve.prototype[i]=function(){return this},ve.prototype.next=function(){var Ee=this._index;if(Ee>=0&&Ee<this._keys.length){var ie=this._selector(this._keys[Ee],this._values[Ee]);return Ee+1>=this._keys.length?(this._index=-1,this._keys=T,this._values=T):this._index++,{value:ie,done:!1}}return{value:void 0,done:!0}},ve.prototype.throw=function(Ee){throw this._index>=0&&(this._index=-1,this._keys=T,this._values=T),Ee},ve.prototype.return=function(Ee){return this._index>=0&&(this._index=-1,this._keys=T,this._values=T),{value:Ee,done:!0}},ve})();return(function(){function ve(){this._keys=[],this._values=[],this._cacheKey=E,this._cacheIndex=-2}return Object.defineProperty(ve.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ve.prototype.has=function(Ee){return this._find(Ee,!1)>=0},ve.prototype.get=function(Ee){var ie=this._find(Ee,!1);return ie>=0?this._values[ie]:void 0},ve.prototype.set=function(Ee,ie){var Pe=this._find(Ee,!0);return this._values[Pe]=ie,this},ve.prototype.delete=function(Ee){var ie=this._find(Ee,!1);if(ie>=0){for(var Pe=this._keys.length,Ce=ie+1;Ce<Pe;Ce++)this._keys[Ce-1]=this._keys[Ce],this._values[Ce-1]=this._values[Ce];return this._keys.length--,this._values.length--,Ee===this._cacheKey&&(this._cacheKey=E,this._cacheIndex=-2),!0}return!1},ve.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=E,this._cacheIndex=-2},ve.prototype.keys=function(){return new k(this._keys,this._values,$)},ve.prototype.values=function(){return new k(this._keys,this._values,ne)},ve.prototype.entries=function(){return new k(this._keys,this._values,Et)},ve.prototype["@@iterator"]=function(){return this.entries()},ve.prototype[i]=function(){return this.entries()},ve.prototype._find=function(Ee,ie){return this._cacheKey!==Ee&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ee)),this._cacheIndex<0&&ie&&(this._cacheIndex=this._keys.length,this._keys.push(Ee),this._values.push(void 0)),this._cacheIndex},ve})();function $(ve,Ee){return ve}function ne(ve,Ee){return Ee}function Et(ve,Ee){return[ve,Ee]}}function Mq(){return(function(){function E(){this._map=new d}return Object.defineProperty(E.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),E.prototype.has=function(T){return this._map.has(T)},E.prototype.add=function(T){return this._map.set(T,T),this},E.prototype.delete=function(T){return this._map.delete(T)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.values()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[i]=function(){return this.keys()},E})()}function Oq(){var E=16,T=u.create(),k=$();return(function(){function ie(){this._key=$()}return ie.prototype.has=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?u.has(Ce,this._key):!1},ie.prototype.get=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?u.get(Ce,this._key):void 0},ie.prototype.set=function(Pe,Ce){var Xr=ne(Pe,!0);return Xr[this._key]=Ce,this},ie.prototype.delete=function(Pe){var Ce=ne(Pe,!1);return Ce!==void 0?delete Ce[this._key]:!1},ie.prototype.clear=function(){this._key=$()},ie})();function $(){var ie;do ie="@@WeakMap@@"+Ee();while(u.has(T,ie));return T[ie]=!0,ie}function ne(ie,Pe){if(!n.call(ie,k)){if(!Pe)return;Object.defineProperty(ie,k,{value:u.create()})}return ie[k]}function Et(ie,Pe){for(var Ce=0;Ce<Pe;++Ce)ie[Ce]=Math.random()*255|0;return ie}function ve(ie){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ie)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ie)):Et(new Uint8Array(ie),ie):Et(new Array(ie),ie)}function Ee(){var ie=ve(E);ie[6]=ie[6]&79|64,ie[8]=ie[8]&191|128;for(var Pe="",Ce=0;Ce<E;++Ce){var Xr=ie[Ce];(Ce===4||Ce===6||Ce===8)&&(Pe+="-"),Xr<16&&(Pe+="0"),Pe+=Xr.toString(16).toLowerCase()}return Pe}}function Iy(E){return E.__=void 0,delete E.__,E}})})(I2||(I2={}));var RDe=new TextEncoder,NDe=new TextDecoder;var bfe="PLUGIN";async function A2(e){let n=await(e.fetch??fetch)(`${e.origin}/api/workers/${encodeURIComponent(e.name)}/versions`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({script:e.script,plugin:!0,bindings:{durableObjects:[{name:bfe,className:e.className}]}})}),r=await n.text();if(!n.ok){let o=(()=>{try{return JSON.parse(r).error?.message??r}catch{return r}})();throw new Error(`${e.name} \u306E deploy \u306B\u5931\u6557\u3057\u307E\u3057\u305F (${n.status}): ${o}`)}return JSON.parse(r)}var T2=new H("SESSION_CONFIG");var Wm=class{constructor(){this.providedConfig=z(T2,{optional:!0});this._remoteConfig=No({});this.config=KS(()=>({...this.providedConfig??{},...this._remoteConfig()}))}};Wm=Qe([Ie({providedIn:"root"})],Wm);var M2="agent",_fe="AgentObject",wfe=3e3,Efe=3e5;function Sfe(e,t){return{id:t,pid:e.pid,sessionId:e.sessionId,sessionName:e.sessionName,serverName:e.serverName,cwd:e.cwd,repo:e.git?.repo??null,branch:e.git?.branch??null,worktreeRoot:e.git?.worktreeRoot??null,state:e.state,lastActivityAt:e.lastActivityAt}}function O2(e){let t=null,n=null,r=null,o=0,i=0,s=e.now??Date.now,a=f=>{f!==r&&(r=f,e.warn(f))};async function c(f){await A2({origin:f,name:M2,className:_fe,script:e.bundle(),fetch:e.fetch}),t=f}function u(f,d){return e.fetch(`${f}/api/plugins/${M2}/api/sync`,{method:"POST",headers:{"content-type":"application/json"},body:d})}async function l(f,d){t!==f&&await c(f);let p=await u(f,d);if(p.status===404&&(await c(f),p=await u(f,d)),!p.ok)throw new Error(`agent DO \u3078\u306E sync \u306B\u5931\u6557 (${p.status}): ${await p.text()}`)}return{async publish(f,d){let p=e.workersOrigin();if(!p)return"unavailable";let h=kl(f.map(v=>({pid:v.pid,sessionName:v.sessionName,worktreeRoot:v.git?.worktreeRoot??null,cwd:v.cwd}))),m=f.map((v,w)=>Sfe(v,h[w])),y=`${p}
89
+ ${JSON.stringify(m)}`;if(y===n)return"unchanged";if(s()<i)return"unavailable";try{await l(p,JSON.stringify({syncedAt:d,agents:m}))}catch(v){return t=null,o+=1,i=s()+Math.min(wfe*2**(o-1),Efe),a(`agent DO \u306B\u5199\u305B\u306A\u3044 (${p}): ${v instanceof Error?v.message:String(v)}`),"unavailable"}return n=y,r=null,o=0,i=0,"synced"}}}import{existsSync as C2,readFileSync as xfe,realpathSync as Ife}from"node:fs";import{dirname as ax,resolve as P2}from"node:path";var cx="agent.bundle.js";function ux(e){if(!e||!C2(e))return null;let t=Number(xfe(e,"utf-8").trim());return Number.isInteger(t)&&t>0?`http://127.0.0.1:${t}`:null}function D2(e,t){let n=[];if(e){let o=ax(e);try{o=ax(Ife(e))}catch{o=ax(e)}n.push(P2(o,cx))}n.push(P2(t,"dist/packages/@10p.io/agent",cx));let r=n.find(o=>C2(o));if(!r)throw new Error(`agent DO \u306E bundle \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093 (${cx})\u3002\u63A2\u7D22: ${n.join(", ")}`);return r}function k2(e){let t=!1,n=async()=>{if(!t){t=!0;try{let o=await e.registry.list();await e.onAgents?.(o).catch(i=>e.log(`agent nostr sync failed: ${String(i)}`)),await e.publisher.publish(o,e.now().toISOString())}catch(o){e.log(`agent DO sync failed: ${o instanceof Error?o.message:String(o)}`)}finally{t=!1}}};n();let r=setInterval(()=>{n()},e.intervalMs);return r.unref(),{stop:()=>clearInterval(r)}}var Go=e=>typeof e=="string"?e:null;function Afe(e){return{id:String(e.id),state:"stopped",sessionName:Go(e.session_name),serverName:Go(e.server_name),cwd:Go(e.cwd),repo:Go(e.repo),branch:Go(e.branch),worktreeRoot:Go(e.worktree_root),lastActivityAt:Go(e.last_activity_at),command:Go(e.command)}}function R2(e){let t=(n,r)=>`${n}/api/plugins/agent/api${r}`;return{async stopped(){let n=e.workersOrigin();if(!n)return[];try{let r=await e.fetch(t(n,"/state"));return r.ok?((await r.json()).agents??[]).filter(i=>i.state==="stopped").map(Afe):[]}catch{return[]}},async remove(n){let r=e.workersOrigin();return r?(await e.fetch(t(r,`/agents/${encodeURIComponent(n)}`),{method:"DELETE"})).ok:!1},async define(n,r){let o=e.workersOrigin();return o?(await e.fetch(t(o,`/agents/${encodeURIComponent(n)}`),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(r)})).ok:!1}}}var Tfe="agent",Mfe="dist/packages/@10p.io/agent";function N2(e,t){return pA(e,t,Tfe,Mfe)}import{readFileSync as Pfe}from"node:fs";import{dirname as Cfe}from"node:path";import{join as Ofe}from"path";function L2(e,t){return Ofe(e,`${t}.port`)}var Dfe=10,kfe=5e3,Rfe=2e3;function j2(e){return e?L2(Cfe(e),"ingress"):void 0}function Nfe(e){try{let t=Number(Pfe(e,"utf-8").trim());return Number.isInteger(t)&&t>0?t:null}catch{return null}}function F2(e){let t=e.ingressPortFile;if(!t)return{stop:()=>{}};let n=e.fetch??fetch,r=new Map,o=async(a,c)=>{let{name:u,...l}=c,f=await n(`http://127.0.0.1:${a}/apps/${encodeURIComponent(u)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({...l,via:Dfe}),signal:AbortSignal.timeout(Rfe)}),d=f.ok?"":`${f.status} ${(await f.text()).slice(0,200)}`;d&&r.get(u)!==d&&e.warn?.(`control app ${u} \u3092 ingress \u306B\u8F09\u305B\u3089\u308C\u306A\u3044: ${d}`),r.set(u,d)},i=()=>{let a=Nfe(t);if(a!==null)for(let c of e.apps)o(a,c).catch(()=>{})};i();let s=setInterval(i,e.intervalMs??kfe);return s.unref?.(),{stop:()=>clearInterval(s)}}import{existsSync as Tve,readFileSync as Mve}from"node:fs";function gl(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Mn(e,t=""){if(!Number.isSafeInteger(e)||e<0){let n=t&&`"${t}" `;throw new Error(`${n}expected integer >= 0, got ${e}`)}}function Me(e,t,n=""){let r=gl(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let s=n&&`"${n}" `,a=i?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+a+", got "+c)}return e}function Zi(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash must wrapped by utils.createHasher");Mn(e.outputLen),Mn(e.blockLen)}function rc(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function B2(e,t){Me(e,void 0,"digestInto() output");let n=t.outputLen;if(e.length<n)throw new Error('"digestInto() output" expected to be of length >='+n)}function Gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Vm(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $n(e,t){return e<<32-t|e>>>t}var U2=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",Lfe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Oe(e){if(Me(e),U2)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Lfe[e[n]];return t}var Vr={_0:48,_9:57,A:65,F:70,a:97,f:102};function q2(e){if(e>=Vr._0&&e<=Vr._9)return e-Vr._0;if(e>=Vr.A&&e<=Vr.F)return e-(Vr.A-10);if(e>=Vr.a&&e<=Vr.f)return e-(Vr.a-10)}function Le(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(U2)return Uint8Array.fromHex(e);let t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o<n;o++,i+=2){let s=q2(e.charCodeAt(i)),a=q2(e.charCodeAt(i+1));if(s===void 0||a===void 0){let c=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}r[o]=s*16+a}return r}function ft(...e){let t=0;for(let r=0;r<e.length;r++){let o=e[r];Me(o),t+=o.length}let n=new Uint8Array(t);for(let r=0,o=0;r<e.length;r++){let i=e[r];n.set(i,o),o+=i.length}return n}function H2(e,t={}){let n=(o,i)=>e(i).update(o).digest(),r=e(void 0);return n.outputLen=r.outputLen,n.blockLen=r.blockLen,n.create=o=>e(o),Object.assign(n,t),Object.freeze(n)}function Kn(e=32){let t=typeof globalThis=="object"?globalThis.crypto:null;if(typeof t?.getRandomValues!="function")throw new Error("crypto.getRandomValues must be defined");return t.getRandomValues(new Uint8Array(e))}var $2=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});function K2(e,t,n){return e&t^~e&n}function W2(e,t,n){return e&t^e&n^t&n}var Gm=class{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,n,r,o){this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Vm(this.buffer)}update(t){rc(this),Me(t);let{view:n,buffer:r,blockLen:o}=this,i=t.length;for(let s=0;s<i;){let a=Math.min(o-this.pos,i-s);if(a===o){let c=Vm(t);for(;o<=i-s;s+=o)this.process(c,s);continue}r.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){rc(this),B2(t,this),this.finished=!0;let{buffer:n,view:r,blockLen:o,isLE:i}=this,{pos:s}=this;n[s++]=128,Gr(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(r,0),s=0);for(let f=s;f<o;f++)n[f]=0;r.setBigUint64(o-8,BigInt(this.length*8),i),this.process(r,0);let a=Vm(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let u=c/4,l=this.get();if(u>l.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<u;f++)a.setUint32(4*f,l[f],i)}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:n,buffer:r,length:o,finished:i,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=i,t.length=o,t.pos=a,o%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}},zr=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);var jfe=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),zo=new Uint32Array(64),lx=class extends Gm{constructor(t){super(64,t,8,!1)}get(){let{A:t,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[t,n,r,o,i,s,a,c]}set(t,n,r,o,i,s,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(t,n){for(let f=0;f<16;f++,n+=4)zo[f]=t.getUint32(n,!1);for(let f=16;f<64;f++){let d=zo[f-15],p=zo[f-2],h=$n(d,7)^$n(d,18)^d>>>3,m=$n(p,17)^$n(p,19)^p>>>10;zo[f]=m+zo[f-7]+h+zo[f-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:u,H:l}=this;for(let f=0;f<64;f++){let d=$n(a,6)^$n(a,11)^$n(a,25),p=l+d+K2(a,c,u)+jfe[f]+zo[f]|0,m=($n(r,2)^$n(r,13)^$n(r,22))+W2(r,o,i)|0;l=u,u=c,c=a,a=s+p|0,s=i,i=o,o=r,r=p+m|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,l=l+this.H|0,this.set(r,o,i,s,a,c,u,l)}roundClean(){Gr(zo)}destroy(){this.set(0,0,0,0,0,0,0,0),Gr(this.buffer)}},fx=class extends lx{A=zr[0]|0;B=zr[1]|0;C=zr[2]|0;D=zr[3]|0;E=zr[4]|0;F=zr[5]|0;G=zr[6]|0;H=zr[7]|0;constructor(){super(32)}};var Ut=H2(()=>new fx,$2(1));var px=BigInt(0),dx=BigInt(1);function ml(e,t=""){if(typeof e!="boolean"){let n=t&&`"${t}" `;throw new Error(n+"expected boolean, got type="+typeof e)}return e}function V2(e){if(typeof e=="bigint"){if(!zm(e))throw new Error("positive bigint expected, got "+e)}else Mn(e);return e}function yl(e){let t=V2(e).toString(16);return t.length&1?"0"+t:t}function G2(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?px:BigInt("0x"+e)}function Yo(e){return G2(Oe(e))}function hx(e){return G2(Oe(Ffe(Me(e)).reverse()))}function Ym(e,t){Mn(t),e=V2(e);let n=Le(e.toString(16).padStart(t*2,"0"));if(n.length!==t)throw new Error("number too large");return n}function gx(e,t){return Ym(e,t).reverse()}function Ffe(e){return Uint8Array.from(e)}function z2(e){return Uint8Array.from(e,(t,n)=>{let r=t.charCodeAt(0);if(t.length!==1||r>127)throw new Error(`string contains non-ASCII character "${e[n]}" with code ${r} at position ${n}`);return r})}var zm=e=>typeof e=="bigint"&&px<=e;function qfe(e,t,n){return zm(e)&&zm(t)&&zm(n)&&t<=e&&e<n}function Y2(e,t,n,r){if(!qfe(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function mx(e){let t;for(t=0;e>px;e>>=dx,t+=1);return t}var vl=e=>(dx<<BigInt(e))-dx;function Z2(e,t,n){if(Mn(e,"hashLen"),Mn(t,"qByteLen"),typeof n!="function")throw new Error("hmacFn must be a function");let r=y=>new Uint8Array(y),o=Uint8Array.of(),i=Uint8Array.of(0),s=Uint8Array.of(1),a=1e3,c=r(e),u=r(e),l=0,f=()=>{c.fill(1),u.fill(0),l=0},d=(...y)=>n(u,ft(c,...y)),p=(y=o)=>{u=d(i,y),c=d(),y.length!==0&&(u=d(s,y),c=d())},h=()=>{if(l++>=a)throw new Error("drbg: tried max amount of iterations");let y=0,v=[];for(;y<t;){c=d();let w=c.slice();v.push(w),y+=c.length}return ft(...v)};return(y,v)=>{f(),p(y);let w;for(;!(w=v(h()));)p();return f(),w}}function bl(e,t={},n={}){if(!e||typeof e!="object")throw new Error("expected valid options object");function r(i,s,a){let c=e[i];if(a&&c===void 0)return;let u=typeof c;if(u!==s||c===null)throw new Error(`param "${i}" is invalid: expected ${s}, got ${u}`)}let o=(i,s)=>Object.entries(i).forEach(([a,c])=>r(a,c,s));o(t,!1),o(n,!0)}function yx(e){let t=new WeakMap;return(n,...r)=>{let o=t.get(n);if(o!==void 0)return o;let i=e(n,...r);return t.set(n,i),i}}var Zt=BigInt(0),Ht=BigInt(1),Qi=BigInt(2),X2=BigInt(3),ej=BigInt(4),tj=BigInt(5),Bfe=BigInt(7),nj=BigInt(8),Ufe=BigInt(9),rj=BigInt(16);function Wn(e,t){let n=e%t;return n>=Zt?n:t+n}function wn(e,t,n){let r=e;for(;t-- >Zt;)r*=r,r%=n;return r}function Q2(e,t){if(e===Zt)throw new Error("invert: expected non-zero number");if(t<=Zt)throw new Error("invert: expected positive modulus, got "+t);let n=Wn(e,t),r=t,o=Zt,i=Ht,s=Ht,a=Zt;for(;n!==Zt;){let u=r/n,l=r%n,f=o-s*u,d=i-a*u;r=n,n=l,o=s,i=a,s=f,a=d}if(r!==Ht)throw new Error("invert: does not exist");return Wn(o,t)}function bx(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function oj(e,t){let n=(e.ORDER+Ht)/ej,r=e.pow(t,n);return bx(e,r,t),r}function Hfe(e,t){let n=(e.ORDER-tj)/nj,r=e.mul(t,Qi),o=e.pow(r,n),i=e.mul(t,o),s=e.mul(e.mul(i,Qi),o),a=e.mul(i,e.sub(s,e.ONE));return bx(e,a,t),a}function $fe(e){let t=oc(e),n=ij(e),r=n(t,t.neg(t.ONE)),o=n(t,r),i=n(t,t.neg(r)),s=(e+Bfe)/rj;return(a,c)=>{let u=a.pow(c,s),l=a.mul(u,r),f=a.mul(u,o),d=a.mul(u,i),p=a.eql(a.sqr(l),c),h=a.eql(a.sqr(f),c);u=a.cmov(u,l,p),l=a.cmov(d,f,h);let m=a.eql(a.sqr(l),c),y=a.cmov(u,l,m);return bx(a,y,c),y}}function ij(e){if(e<X2)throw new Error("sqrt is not defined for small field");let t=e-Ht,n=0;for(;t%Qi===Zt;)t/=Qi,n++;let r=Qi,o=oc(e);for(;J2(o,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return oj;let i=o.pow(r,t),s=(t+Ht)/Qi;return function(c,u){if(c.is0(u))return u;if(J2(c,u)!==1)throw new Error("Cannot find square root");let l=n,f=c.mul(c.ONE,i),d=c.pow(u,t),p=c.pow(u,s);for(;!c.eql(d,c.ONE);){if(c.is0(d))return c.ZERO;let h=1,m=c.sqr(d);for(;!c.eql(m,c.ONE);)if(h++,m=c.sqr(m),h===l)throw new Error("Cannot find square root");let y=Ht<<BigInt(l-h-1),v=c.pow(f,y);l=h,f=c.sqr(v),d=c.mul(d,f),p=c.mul(p,v)}return p}}function Kfe(e){return e%ej===X2?oj:e%nj===tj?Hfe:e%rj===Ufe?$fe(e):ij(e)}var Wfe=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function _x(e){let t={ORDER:"bigint",BYTES:"number",BITS:"number"},n=Wfe.reduce((r,o)=>(r[o]="function",r),t);return bl(e,n),e}function Vfe(e,t,n){if(n<Zt)throw new Error("invalid exponent, negatives unsupported");if(n===Zt)return e.ONE;if(n===Ht)return t;let r=e.ONE,o=t;for(;n>Zt;)n&Ht&&(r=e.mul(r,o)),o=e.sqr(o),n>>=Ht;return r}function Zm(e,t,n=!1){let r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((s,a,c)=>e.is0(a)?s:(r[c]=s,e.mul(s,a)),e.ONE),i=e.inv(o);return t.reduceRight((s,a,c)=>e.is0(a)?s:(r[c]=e.mul(s,r[c]),e.mul(s,a)),i),r}function J2(e,t){let n=(e.ORDER-Ht)/Qi,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),s=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!s)throw new Error("invalid Legendre symbol result");return o?1:i?0:-1}function Gfe(e,t){t!==void 0&&Mn(t);let n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}var vx=class{ORDER;BITS;BYTES;isLE;ZERO=Zt;ONE=Ht;_lengths;_sqrt;_mod;constructor(t,n={}){if(t<=Zt)throw new Error("invalid field: expected ORDER > 0, got "+t);let r;this.isLE=!1,n!=null&&typeof n=="object"&&(typeof n.BITS=="number"&&(r=n.BITS),typeof n.sqrt=="function"&&(this.sqrt=n.sqrt),typeof n.isLE=="boolean"&&(this.isLE=n.isLE),n.allowedLengths&&(this._lengths=n.allowedLengths?.slice()),typeof n.modFromBytes=="boolean"&&(this._mod=n.modFromBytes));let{nBitLength:o,nByteLength:i}=Gfe(t,r);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");this.ORDER=t,this.BITS=o,this.BYTES=i,this._sqrt=void 0,Object.preventExtensions(this)}create(t){return Wn(t,this.ORDER)}isValid(t){if(typeof t!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof t);return Zt<=t&&t<this.ORDER}is0(t){return t===Zt}isValidNot0(t){return!this.is0(t)&&this.isValid(t)}isOdd(t){return(t&Ht)===Ht}neg(t){return Wn(-t,this.ORDER)}eql(t,n){return t===n}sqr(t){return Wn(t*t,this.ORDER)}add(t,n){return Wn(t+n,this.ORDER)}sub(t,n){return Wn(t-n,this.ORDER)}mul(t,n){return Wn(t*n,this.ORDER)}pow(t,n){return Vfe(this,t,n)}div(t,n){return Wn(t*Q2(n,this.ORDER),this.ORDER)}sqrN(t){return t*t}addN(t,n){return t+n}subN(t,n){return t-n}mulN(t,n){return t*n}inv(t){return Q2(t,this.ORDER)}sqrt(t){return this._sqrt||(this._sqrt=Kfe(this.ORDER)),this._sqrt(this,t)}toBytes(t){return this.isLE?gx(t,this.BYTES):Ym(t,this.BYTES)}fromBytes(t,n=!1){Me(t);let{_lengths:r,BYTES:o,isLE:i,ORDER:s,_mod:a}=this;if(r){if(!r.includes(t.length)||t.length>o)throw new Error("Field.fromBytes: expected "+r+" bytes, got "+t.length);let u=new Uint8Array(o);u.set(t,i?0:u.length-t.length),t=u}if(t.length!==o)throw new Error("Field.fromBytes: expected "+o+" bytes, got "+t.length);let c=i?hx(t):Yo(t);if(a&&(c=Wn(c,s)),!n&&!this.isValid(c))throw new Error("invalid field element: outside of range 0..ORDER");return c}invertBatch(t){return Zm(this,t)}cmov(t,n,r){return r?n:t}};function oc(e,t={}){return new vx(e,t)}function sj(e){if(typeof e!="bigint")throw new Error("field order must be bigint");let t=e.toString(2).length;return Math.ceil(t/8)}function wx(e){let t=sj(e);return t+Math.ceil(t/2)}function Qm(e,t,n=!1){Me(e);let r=e.length,o=sj(t),i=wx(t);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);let s=n?hx(e):Yo(e),a=Wn(s,t-Ht)+Ht;return n?gx(a,o):Ym(a,o)}var ic=BigInt(0),Ji=BigInt(1);function _l(e,t){let n=t.negate();return e?n:t}function Ix(e,t){let n=Zm(e.Fp,t.map(r=>r.Z));return t.map((r,o)=>e.fromAffine(r.toAffine(n[o])))}function lj(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ex(e,t){lj(e,t);let n=Math.ceil(t/e)+1,r=2**(e-1),o=2**e,i=vl(e),s=BigInt(e);return{windows:n,windowSize:r,mask:i,maxNumber:o,shiftBy:s}}function aj(e,t,n){let{windowSize:r,mask:o,maxNumber:i,shiftBy:s}=n,a=Number(e&o),c=e>>s;a>r&&(a-=i,c+=Ji);let u=t*r,l=u+Math.abs(a)-1,f=a===0,d=a<0,p=t%2!==0;return{nextN:c,offset:l,isZero:f,isNeg:d,isNegF:p,offsetF:u}}var Sx=new WeakMap,fj=new WeakMap;function xx(e){return fj.get(e)||1}function cj(e){if(e!==ic)throw new Error("invalid wNAF")}var Jm=class{BASE;ZERO;Fn;bits;constructor(t,n){this.BASE=t.BASE,this.ZERO=t.ZERO,this.Fn=t.Fn,this.bits=n}_unsafeLadder(t,n,r=this.ZERO){let o=t;for(;n>ic;)n&Ji&&(r=r.add(o)),o=o.double(),n>>=Ji;return r}precomputeWindow(t,n){let{windows:r,windowSize:o}=Ex(n,this.bits),i=[],s=t,a=s;for(let c=0;c<r;c++){a=s,i.push(a);for(let u=1;u<o;u++)a=a.add(s),i.push(a);s=a.double()}return i}wNAF(t,n,r){if(!this.Fn.isValid(r))throw new Error("invalid scalar");let o=this.ZERO,i=this.BASE,s=Ex(t,this.bits);for(let a=0;a<s.windows;a++){let{nextN:c,offset:u,isZero:l,isNeg:f,isNegF:d,offsetF:p}=aj(r,a,s);r=c,l?i=i.add(_l(d,n[p])):o=o.add(_l(f,n[u]))}return cj(r),{p:o,f:i}}wNAFUnsafe(t,n,r,o=this.ZERO){let i=Ex(t,this.bits);for(let s=0;s<i.windows&&r!==ic;s++){let{nextN:a,offset:c,isZero:u,isNeg:l}=aj(r,s,i);if(r=a,!u){let f=n[c];o=o.add(l?f.negate():f)}}return cj(r),o}getPrecomputes(t,n,r){let o=Sx.get(n);return o||(o=this.precomputeWindow(n,t),t!==1&&(typeof r=="function"&&(o=r(o)),Sx.set(n,o))),o}cached(t,n,r){let o=xx(t);return this.wNAF(o,this.getPrecomputes(o,t,r),n)}unsafe(t,n,r,o){let i=xx(t);return i===1?this._unsafeLadder(t,n,o):this.wNAFUnsafe(i,this.getPrecomputes(i,t,r),n,o)}createCache(t,n){lj(n,this.bits),fj.set(t,n),Sx.delete(t)}hasCache(t){return xx(t)!==1}};function dj(e,t,n,r){let o=t,i=e.ZERO,s=e.ZERO;for(;n>ic||r>ic;)n&Ji&&(i=i.add(o)),r&Ji&&(s=s.add(o)),o=o.double(),n>>=Ji,r>>=Ji;return{p1:i,p2:s}}function uj(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return _x(t),t}else return oc(e,{isLE:n})}function pj(e,t,n={},r){if(r===void 0&&(r=e==="edwards"),!t||typeof t!="object")throw new Error(`expected valid ${e} CURVE object`);for(let c of["p","n","h"]){let u=t[c];if(!(typeof u=="bigint"&&u>ic))throw new Error(`CURVE.${c} must be positive bigint`)}let o=uj(t.p,n.Fp,r),i=uj(t.n,n.Fn,r),a=["Gx","Gy","a",e==="weierstrass"?"b":"d"];for(let c of a)if(!o.isValid(t[c]))throw new Error(`CURVE.${c} must be valid field element of CURVE.Fp`);return t=Object.freeze(Object.assign({},t)),{CURVE:t,Fp:o,Fn:i}}function Xm(e,t){return function(r){let o=e(r);return{secretKey:o,publicKey:t(o)}}}var ey=class{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(t,n){if(Zi(t),Me(n,void 0,"key"),this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let r=this.blockLen,o=new Uint8Array(r);o.set(n.length>r?t.create().update(n).digest():n);for(let i=0;i<o.length;i++)o[i]^=54;this.iHash.update(o),this.oHash=t.create();for(let i=0;i<o.length;i++)o[i]^=106;this.oHash.update(o),Gr(o)}update(t){return rc(this),this.iHash.update(t),this}digestInto(t){rc(this),Me(t,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});let{oHash:n,iHash:r,finished:o,destroyed:i,blockLen:s,outputLen:a}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=s,t.outputLen=a,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}},Zo=(e,t,n)=>new ey(e,t).update(n).digest();Zo.create=(e,t)=>new ey(e,t);var hj=(e,t)=>(e+(e>=0?t:-t)/gj)/t;function zfe(e,t,n){let[[r,o],[i,s]]=t,a=hj(s*e,n),c=hj(-o*e,n),u=e-a*r-c*i,l=-a*o-c*s,f=u<Yr,d=l<Yr;f&&(u=-u),d&&(l=-l);let p=vl(Math.ceil(mx(n)/2))+sc;if(u<Yr||u>=p||l<Yr||l>=p)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:u,k2neg:d,k2:l}}function Tx(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function Ax(e,t){let n={};for(let r of Object.keys(t))n[r]=e[r]===void 0?t[r]:e[r];return ml(n.lowS,"lowS"),ml(n.prehash,"prehash"),n.format!==void 0&&Tx(n.format),n}var Mx=class extends Error{constructor(t=""){super(t)}},Qo={Err:Mx,_tlv:{encode:(e,t)=>{let{Err:n}=Qo;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");let r=t.length/2,o=yl(r);if(o.length/2&128)throw new n("tlv.encode: long form length too big");let i=r>127?yl(o.length/2|128):"";return yl(e)+i+o+t},decode(e,t){let{Err:n}=Qo,r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");let o=t[r++],i=!!(o&128),s=0;if(!i)s=o;else{let c=o&127;if(!c)throw new n("tlv.decode(long): indefinite length not supported");if(c>4)throw new n("tlv.decode(long): byte length is too big");let u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: length bytes not complete");if(u[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(let l of u)s=s<<8|l;if(r+=c,s<128)throw new n("tlv.decode(long): not minimal encoding")}let a=t.subarray(r,r+s);if(a.length!==s)throw new n("tlv.decode: wrong value length");return{v:a,l:t.subarray(r+s)}}},_int:{encode(e){let{Err:t}=Qo;if(e<Yr)throw new t("integer: negative integers are not allowed");let n=yl(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){let{Err:t}=Qo;if(e[0]&128)throw new t("invalid signature integer: negative");if(e[0]===0&&!(e[1]&128))throw new t("invalid signature integer: unnecessary leading zero");return Yo(e)}},toSig(e){let{Err:t,_int:n,_tlv:r}=Qo,o=Me(e,void 0,"signature"),{v:i,l:s}=r.decode(48,o);if(s.length)throw new t("invalid signature: left bytes after parsing");let{v:a,l:c}=r.decode(2,i),{v:u,l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){let{_tlv:t,_int:n}=Qo,r=t.encode(2,n.encode(e.r)),o=t.encode(2,n.encode(e.s)),i=r+o;return t.encode(48,i)}},Yr=BigInt(0),sc=BigInt(1),gj=BigInt(2),ty=BigInt(3),Yfe=BigInt(4);function mj(e,t={}){let n=pj("weierstrass",e,t),{Fp:r,Fn:o}=n,i=n.CURVE,{h:s,n:a}=i;bl(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object"});let{endo:c}=t;if(c&&(!r.is0(i.a)||typeof c.beta!="bigint"||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');let u=vj(r,o);function l(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}function f(G,O,M){let{x:I,y:R}=O.toAffine(),B=r.toBytes(I);if(ml(M,"isCompressed"),M){l();let U=!r.isOdd(R);return ft(yj(U),B)}else return ft(Uint8Array.of(4),B,r.toBytes(R))}function d(G){Me(G,void 0,"Point");let{publicKey:O,publicKeyUncompressed:M}=u,I=G.length,R=G[0],B=G.subarray(1);if(I===O&&(R===2||R===3)){let U=r.fromBytes(B);if(!r.isValid(U))throw new Error("bad point: is not on curve, wrong x");let C=m(U),q;try{q=r.sqrt(C)}catch(Re){let oe=Re instanceof Error?": "+Re.message:"";throw new Error("bad point: is not on curve, sqrt error"+oe)}l();let L=r.isOdd(q);return(R&1)===1!==L&&(q=r.neg(q)),{x:U,y:q}}else if(I===M&&R===4){let U=r.BYTES,C=r.fromBytes(B.subarray(0,U)),q=r.fromBytes(B.subarray(U,U*2));if(!y(C,q))throw new Error("bad point: is not on curve");return{x:C,y:q}}else throw new Error(`bad point: got length ${I}, expected compressed=${O} or uncompressed=${M}`)}let p=t.toBytes||f,h=t.fromBytes||d;function m(G){let O=r.sqr(G),M=r.mul(O,G);return r.add(r.add(M,r.mul(G,i.a)),i.b)}function y(G,O){let M=r.sqr(O),I=m(G);return r.eql(M,I)}if(!y(i.Gx,i.Gy))throw new Error("bad curve params: generator point");let v=r.mul(r.pow(i.a,ty),Yfe),w=r.mul(r.sqr(i.b),BigInt(27));if(r.is0(r.add(v,w)))throw new Error("bad curve params: a or b");function A(G,O,M=!1){if(!r.isValid(O)||M&&r.is0(O))throw new Error(`bad point coordinate ${G}`);return O}function P(G){if(!(G instanceof N))throw new Error("Weierstrass Point expected")}function j(G){if(!c||!c.basises)throw new Error("no endo");return zfe(G,c.basises,o.ORDER)}let Q=yx((G,O)=>{let{X:M,Y:I,Z:R}=G;if(r.eql(R,r.ONE))return{x:M,y:I};let B=G.is0();O==null&&(O=B?r.ONE:r.inv(R));let U=r.mul(M,O),C=r.mul(I,O),q=r.mul(R,O);if(B)return{x:r.ZERO,y:r.ZERO};if(!r.eql(q,r.ONE))throw new Error("invZ was invalid");return{x:U,y:C}}),ue=yx(G=>{if(G.is0()){if(t.allowInfinityPoint&&!r.is0(G.Y))return;throw new Error("bad point: ZERO")}let{x:O,y:M}=G.toAffine();if(!r.isValid(O)||!r.isValid(M))throw new Error("bad point: x or y not field elements");if(!y(O,M))throw new Error("bad point: equation left != right");if(!G.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function we(G,O,M,I,R){return M=new N(r.mul(M.X,G),M.Y,M.Z),O=_l(I,O),M=_l(R,M),O.add(M)}class N{static BASE=new N(i.Gx,i.Gy,r.ONE);static ZERO=new N(r.ZERO,r.ONE,r.ZERO);static Fp=r;static Fn=o;X;Y;Z;constructor(O,M,I){this.X=A("x",O),this.Y=A("y",M,!0),this.Z=A("z",I),Object.freeze(this)}static CURVE(){return i}static fromAffine(O){let{x:M,y:I}=O||{};if(!O||!r.isValid(M)||!r.isValid(I))throw new Error("invalid affine point");if(O instanceof N)throw new Error("projective point not allowed");return r.is0(M)&&r.is0(I)?N.ZERO:new N(M,I,r.ONE)}static fromBytes(O){let M=N.fromAffine(h(Me(O,void 0,"point")));return M.assertValidity(),M}static fromHex(O){return N.fromBytes(Le(O))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(O=8,M=!0){return de.createCache(this,O),M||this.multiply(ty),this}assertValidity(){ue(this)}hasEvenY(){let{y:O}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(O)}equals(O){P(O);let{X:M,Y:I,Z:R}=this,{X:B,Y:U,Z:C}=O,q=r.eql(r.mul(M,C),r.mul(B,R)),L=r.eql(r.mul(I,C),r.mul(U,R));return q&&L}negate(){return new N(this.X,r.neg(this.Y),this.Z)}double(){let{a:O,b:M}=i,I=r.mul(M,ty),{X:R,Y:B,Z:U}=this,C=r.ZERO,q=r.ZERO,L=r.ZERO,V=r.mul(R,R),Re=r.mul(B,B),oe=r.mul(U,U),ye=r.mul(R,B);return ye=r.add(ye,ye),L=r.mul(R,U),L=r.add(L,L),C=r.mul(O,L),q=r.mul(I,oe),q=r.add(C,q),C=r.sub(Re,q),q=r.add(Re,q),q=r.mul(C,q),C=r.mul(ye,C),L=r.mul(I,L),oe=r.mul(O,oe),ye=r.sub(V,oe),ye=r.mul(O,ye),ye=r.add(ye,L),L=r.add(V,V),V=r.add(L,V),V=r.add(V,oe),V=r.mul(V,ye),q=r.add(q,V),oe=r.mul(B,U),oe=r.add(oe,oe),V=r.mul(oe,ye),C=r.sub(C,V),L=r.mul(oe,Re),L=r.add(L,L),L=r.add(L,L),new N(C,q,L)}add(O){P(O);let{X:M,Y:I,Z:R}=this,{X:B,Y:U,Z:C}=O,q=r.ZERO,L=r.ZERO,V=r.ZERO,Re=i.a,oe=r.mul(i.b,ty),ye=r.mul(M,B),Ne=r.mul(I,U),Ve=r.mul(R,C),pt=r.add(M,I),be=r.add(B,U);pt=r.mul(pt,be),be=r.add(ye,Ne),pt=r.sub(pt,be),be=r.add(M,R);let ht=r.add(B,C);return be=r.mul(be,ht),ht=r.add(ye,Ve),be=r.sub(be,ht),ht=r.add(I,R),q=r.add(U,C),ht=r.mul(ht,q),q=r.add(Ne,Ve),ht=r.sub(ht,q),V=r.mul(Re,be),q=r.mul(oe,Ve),V=r.add(q,V),q=r.sub(Ne,V),V=r.add(Ne,V),L=r.mul(q,V),Ne=r.add(ye,ye),Ne=r.add(Ne,ye),Ve=r.mul(Re,Ve),be=r.mul(oe,be),Ne=r.add(Ne,Ve),Ve=r.sub(ye,Ve),Ve=r.mul(Re,Ve),be=r.add(be,Ve),ye=r.mul(Ne,be),L=r.add(L,ye),ye=r.mul(ht,be),q=r.mul(pt,q),q=r.sub(q,ye),ye=r.mul(pt,Ne),V=r.mul(ht,V),V=r.add(V,ye),new N(q,L,V)}subtract(O){return this.add(O.negate())}is0(){return this.equals(N.ZERO)}multiply(O){let{endo:M}=t;if(!o.isValidNot0(O))throw new Error("invalid scalar: out of range");let I,R,B=U=>de.cached(this,U,C=>Ix(N,C));if(M){let{k1neg:U,k1:C,k2neg:q,k2:L}=j(O),{p:V,f:Re}=B(C),{p:oe,f:ye}=B(L);R=Re.add(ye),I=we(M.beta,V,oe,U,q)}else{let{p:U,f:C}=B(O);I=U,R=C}return Ix(N,[I,R])[0]}multiplyUnsafe(O){let{endo:M}=t,I=this;if(!o.isValid(O))throw new Error("invalid scalar: out of range");if(O===Yr||I.is0())return N.ZERO;if(O===sc)return I;if(de.hasCache(this))return this.multiply(O);if(M){let{k1neg:R,k1:B,k2neg:U,k2:C}=j(O),{p1:q,p2:L}=dj(N,I,B,C);return we(M.beta,q,L,R,U)}else return de.unsafe(I,O)}toAffine(O){return Q(this,O)}isTorsionFree(){let{isTorsionFree:O}=t;return s===sc?!0:O?O(N,this):de.unsafe(this,a).is0()}clearCofactor(){let{clearCofactor:O}=t;return s===sc?this:O?O(N,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(O=!0){return ml(O,"isCompressed"),this.assertValidity(),p(N,this,O)}toHex(O=!0){return Oe(this.toBytes(O))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}let J=o.BITS,de=new Jm(N,t.endo?Math.ceil(J/2):J);return N.BASE.precompute(8),N}function yj(e){return Uint8Array.of(e?2:3)}function vj(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function Zfe(e,t={}){let{Fn:n}=e,r=t.randomBytes||Kn,o=Object.assign(vj(e.Fp,n),{seed:wx(n.ORDER)});function i(p){try{let h=n.fromBytes(p);return n.isValidNot0(h)}catch{return!1}}function s(p,h){let{publicKey:m,publicKeyUncompressed:y}=o;try{let v=p.length;return h===!0&&v!==m||h===!1&&v!==y?!1:!!e.fromBytes(p)}catch{return!1}}function a(p=r(o.seed)){return Qm(Me(p,o.seed,"seed"),n.ORDER)}function c(p,h=!0){return e.BASE.multiply(n.fromBytes(p)).toBytes(h)}function u(p){let{secretKey:h,publicKey:m,publicKeyUncompressed:y}=o;if(!gl(p)||"_lengths"in n&&n._lengths||h===m)return;let v=Me(p,void 0,"key").length;return v===m||v===y}function l(p,h,m=!0){if(u(p)===!0)throw new Error("first arg must be private key");if(u(h)===!1)throw new Error("second arg must be public key");let y=n.fromBytes(p);return e.fromBytes(h).multiply(y).toBytes(m)}let f={isValidSecretKey:i,isValidPublicKey:s,randomSecretKey:a},d=Xm(a,c);return Object.freeze({getPublicKey:c,getSharedSecret:l,keygen:d,Point:e,utils:f,lengths:o})}function bj(e,t,n={}){Zi(t),bl(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"}),n=Object.assign({},n);let r=n.randomBytes||Kn,o=n.hmac||((M,I)=>Zo(t,M,I)),{Fp:i,Fn:s}=e,{ORDER:a,BITS:c}=s,{keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:p}=Zfe(e,n),h={prehash:!0,lowS:typeof n.lowS=="boolean"?n.lowS:!0,format:"compact",extraEntropy:!1},m=a*gj<i.ORDER;function y(M){let I=a>>sc;return M>I}function v(M,I){if(!s.isValidNot0(I))throw new Error(`invalid signature ${M}: out of range 1..Point.Fn.ORDER`);return I}function w(){if(m)throw new Error('"recovered" sig type is not supported for cofactor >2 curves')}function A(M,I){Tx(I);let R=p.signature,B=I==="compact"?R:I==="recovered"?R+1:void 0;return Me(M,B)}class P{r;s;recovery;constructor(I,R,B){if(this.r=v("r",I),this.s=v("s",R),B!=null){if(w(),![0,1,2,3].includes(B))throw new Error("invalid recovery id");this.recovery=B}Object.freeze(this)}static fromBytes(I,R=h.format){A(I,R);let B;if(R==="der"){let{r:L,s:V}=Qo.toSig(Me(I));return new P(L,V)}R==="recovered"&&(B=I[0],R="compact",I=I.subarray(1));let U=p.signature/2,C=I.subarray(0,U),q=I.subarray(U,U*2);return new P(s.fromBytes(C),s.fromBytes(q),B)}static fromHex(I,R){return this.fromBytes(Le(I),R)}assertRecovery(){let{recovery:I}=this;if(I==null)throw new Error("invalid recovery id: must be present");return I}addRecoveryBit(I){return new P(this.r,this.s,I)}recoverPublicKey(I){let{r:R,s:B}=this,U=this.assertRecovery(),C=U===2||U===3?R+a:R;if(!i.isValid(C))throw new Error("invalid recovery id: sig.r+curve.n != R.x");let q=i.toBytes(C),L=e.fromBytes(ft(yj((U&1)===0),q)),V=s.inv(C),Re=Q(Me(I,void 0,"msgHash")),oe=s.create(-Re*V),ye=s.create(B*V),Ne=e.BASE.multiplyUnsafe(oe).add(L.multiplyUnsafe(ye));if(Ne.is0())throw new Error("invalid recovery: point at infinify");return Ne.assertValidity(),Ne}hasHighS(){return y(this.s)}toBytes(I=h.format){if(Tx(I),I==="der")return Le(Qo.hexFromSig(this));let{r:R,s:B}=this,U=s.toBytes(R),C=s.toBytes(B);return I==="recovered"?(w(),ft(Uint8Array.of(this.assertRecovery()),U,C)):ft(U,C)}toHex(I){return Oe(this.toBytes(I))}}let j=n.bits2int||function(I){if(I.length>8192)throw new Error("input is too large");let R=Yo(I),B=I.length*8-c;return B>0?R>>BigInt(B):R},Q=n.bits2int_modN||function(I){return s.create(j(I))},ue=vl(c);function we(M){return Y2("num < 2^"+c,M,Yr,ue),s.toBytes(M)}function N(M,I){return Me(M,void 0,"message"),I?Me(t(M),void 0,"prehashed message"):M}function J(M,I,R){let{lowS:B,prehash:U,extraEntropy:C}=Ax(R,h);M=N(M,U);let q=Q(M),L=s.fromBytes(I);if(!s.isValidNot0(L))throw new Error("invalid private key");let V=[we(L),we(q)];if(C!=null&&C!==!1){let Ne=C===!0?r(p.secretKey):C;V.push(Me(Ne,void 0,"extraEntropy"))}let Re=ft(...V),oe=q;function ye(Ne){let Ve=j(Ne);if(!s.isValidNot0(Ve))return;let pt=s.inv(Ve),be=e.BASE.multiply(Ve).toAffine(),ht=s.create(be.x);if(ht===Yr)return;let Cn=s.create(pt*s.create(oe+ht*L));if(Cn===Yr)return;let hc=(be.x===ht?0:2)|Number(be.y&sc),Ol=Cn;return B&&y(Cn)&&(Ol=s.neg(Cn),hc^=1),new P(ht,Ol,m?void 0:hc)}return{seed:Re,k2sig:ye}}function de(M,I,R={}){let{seed:B,k2sig:U}=J(M,I,R);return Z2(t.outputLen,s.BYTES,o)(B,U).toBytes(R.format)}function G(M,I,R,B={}){let{lowS:U,prehash:C,format:q}=Ax(B,h);if(R=Me(R,void 0,"publicKey"),I=N(I,C),!gl(M)){let L=M instanceof P?", use sig.toBytes()":"";throw new Error("verify expects Uint8Array signature"+L)}A(M,q);try{let L=P.fromBytes(M,q),V=e.fromBytes(R);if(U&&L.hasHighS())return!1;let{r:Re,s:oe}=L,ye=Q(I),Ne=s.inv(oe),Ve=s.create(ye*Ne),pt=s.create(Re*Ne),be=e.BASE.multiplyUnsafe(Ve).add(V.multiplyUnsafe(pt));return be.is0()?!1:s.create(be.x)===Re}catch{return!1}}function O(M,I,R={}){let{prehash:B}=Ax(R,h);return I=N(I,B),P.fromBytes(M,"recovered").recoverPublicKey(I).toBytes()}return Object.freeze({keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:p,Point:e,sign:de,verify:G,recoverPublicKey:O,Signature:P,hash:t})}var oy={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},Qfe={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Jfe=BigInt(0),Ox=BigInt(2);function Xfe(e){let t=oy.p,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,f=wn(l,n,t)*l%t,d=wn(f,n,t)*l%t,p=wn(d,Ox,t)*u%t,h=wn(p,o,t)*p%t,m=wn(h,i,t)*h%t,y=wn(m,a,t)*m%t,v=wn(y,c,t)*y%t,w=wn(v,a,t)*m%t,A=wn(w,n,t)*l%t,P=wn(A,s,t)*h%t,j=wn(P,r,t)*u%t,Q=wn(j,Ox,t);if(!ny.eql(ny.sqr(Q),e))throw new Error("Cannot find square root");return Q}var ny=oc(oy.p,{sqrt:Xfe}),Xi=mj(oy,{Fp:ny,endo:Qfe}),El=bj(Xi,Ut),_j={};function ry(e,...t){let n=_j[e];if(n===void 0){let r=Ut(z2(e));n=ft(r,r),_j[e]=n}return Ut(ft(n,...t))}var Cx=e=>e.toBytes(!0).slice(1),Dx=e=>e%Ox===Jfe;function Px(e){let{Fn:t,BASE:n}=Xi,r=t.fromBytes(e),o=n.multiply(r);return{scalar:Dx(o.y)?r:t.neg(r),bytes:Cx(o)}}function Ej(e){let t=ny;if(!t.isValidNot0(e))throw new Error("invalid x: Fail if x \u2265 p");let n=t.create(e*e),r=t.create(n*e+BigInt(7)),o=t.sqrt(r);Dx(o)||(o=t.neg(o));let i=Xi.fromAffine({x:e,y:o});return i.assertValidity(),i}var wl=Yo;function Sj(...e){return Xi.Fn.create(wl(ry("BIP0340/challenge",...e)))}function wj(e){return Px(e).bytes}function ede(e,t,n=Kn(32)){let{Fn:r}=Xi,o=Me(e,void 0,"message"),{bytes:i,scalar:s}=Px(t),a=Me(n,32,"auxRand"),c=r.toBytes(s^wl(ry("BIP0340/aux",a))),u=ry("BIP0340/nonce",c,i,o),{bytes:l,scalar:f}=Px(u),d=Sj(l,i,o),p=new Uint8Array(64);if(p.set(l,0),p.set(r.toBytes(r.create(f+d*s)),32),!xj(p,o,i))throw new Error("sign: Invalid signature produced");return p}function xj(e,t,n){let{Fp:r,Fn:o,BASE:i}=Xi,s=Me(e,64,"signature"),a=Me(t,void 0,"message"),c=Me(n,32,"publicKey");try{let u=Ej(wl(c)),l=wl(s.subarray(0,32));if(!r.isValidNot0(l))return!1;let f=wl(s.subarray(32,64));if(!o.isValidNot0(f))return!1;let d=Sj(o.toBytes(l),Cx(u),a),p=i.multiplyUnsafe(f).add(u.multiplyUnsafe(o.neg(d))),{x:h,y:m}=p.toAffine();return!(p.is0()||!Dx(m)||h!==l)}catch{return!1}}var ac=(()=>{let n=(r=Kn(48))=>Qm(r,oy.n);return{keygen:Xm(n,wj),getPublicKey:wj,sign:ede,verify:xj,Point:Xi,utils:{randomSecretKey:n,taggedHash:ry,lift_x:Ej,pointToBytes:Cx},lengths:{secretKey:32,publicKey:32,publicKeyHasPrefix:!1,signature:64,seed:48}}})();function Lx(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function tde(e){if(!Lx(e))throw new Error("Uint8Array expected")}function Mj(e,t){return Array.isArray(t)?t.length===0?!0:e?t.every(n=>typeof n=="string"):t.every(n=>Number.isSafeInteger(n)):!1}function nde(e){if(typeof e!="function")throw new Error("function expected");return!0}function es(e,t){if(typeof t!="string")throw new Error(`${e}: string expected`);return!0}function jx(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function kx(e){if(!Array.isArray(e))throw new Error("array expected")}function sy(e,t){if(!Mj(!0,t))throw new Error(`${e}: array of strings expected`)}function Oj(e,t){if(!Mj(!1,t))throw new Error(`${e}: array of numbers expected`)}function Pj(...e){let t=i=>i,n=(i,s)=>a=>i(s(a)),r=e.map(i=>i.encode).reduceRight(n,t),o=e.map(i=>i.decode).reduce(n,t);return{encode:r,decode:o}}function Cj(e){let t=typeof e=="string"?e.split(""):e,n=t.length;sy("alphabet",t);let r=new Map(t.map((o,i)=>[o,i]));return{encode:o=>(kx(o),o.map(i=>{if(!Number.isSafeInteger(i)||i<0||i>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${i}". Allowed: ${e}`);return t[i]})),decode:o=>(kx(o),o.map(i=>{es("alphabet.decode",i);let s=r.get(i);if(s===void 0)throw new Error(`Unknown letter: "${i}". Allowed: ${e}`);return s}))}}function Dj(e=""){return es("join",e),{encode:t=>(sy("join.decode",t),t.join(e)),decode:t=>(es("join.decode",t),t.split(e))}}function rde(e,t="="){return jx(e),es("padding",t),{encode(n){for(sy("padding.encode",n);n.length*e%8;)n.push(t);return n},decode(n){sy("padding.decode",n);let r=n.length;if(r*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if((r-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,r)}}}var kj=(e,t)=>t===0?e:kj(t,e%t),ay=(e,t)=>e+(t-kj(e,t)),iy=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function Rx(e,t,n,r){if(kx(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(ay(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${ay(t,n)}`);let o=0,i=0,s=iy[t],a=iy[n]-1,c=[];for(let u of e){if(jx(u),u>=s)throw new Error(`convertRadix2: invalid data word=${u} from=${t}`);if(o=o<<t|u,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)c.push((o>>i-n&a)>>>0);let l=iy[i];if(l===void 0)throw new Error("invalid carry");o&=l-1}if(o=o<<n-i&a,!r&&i>=t)throw new Error("Excess padding");if(!r&&o>0)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&c.push(o>>>0),c}function Rj(e,t=!1){if(jx(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(ay(8,e)>32||ay(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!Lx(n))throw new Error("radix2.encode input should be Uint8Array");return Rx(Array.from(n),8,e,!t)},decode:n=>(Oj("radix2.decode",n),Uint8Array.from(Rx(n,e,8,t)))}}function Ij(e){return nde(e),function(...t){try{return e.apply(null,t)}catch{}}}var ode=typeof Uint8Array.from([]).toBase64=="function"&&typeof Uint8Array.fromBase64=="function",ide=(e,t)=>{es("base64",e);let n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?"base64url":"base64";if(e.length>0&&!n.test(e))throw new Error("invalid base64");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:"strict"})},Vn=ode?{encode(e){return tde(e),e.toBase64()},decode(e){return ide(e,!1)}}:Pj(Rj(6),Cj("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),rde(6),Dj(""));var Nx=Pj(Cj("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),Dj("")),Aj=[996825010,642813549,513874426,1027748829,705979059];function Sl(e){let t=e>>25,n=(e&33554431)<<5;for(let r=0;r<Aj.length;r++)(t>>r&1)===1&&(n^=Aj[r]);return n}function Tj(e,t,n=1){let r=e.length,o=1;for(let i=0;i<r;i++){let s=e.charCodeAt(i);if(s<33||s>126)throw new Error(`Invalid prefix (${e})`);o=Sl(o)^s>>5}o=Sl(o);for(let i=0;i<r;i++)o=Sl(o)^e.charCodeAt(i)&31;for(let i of t)o=Sl(o)^i;for(let i=0;i<6;i++)o=Sl(o);return o^=n,Nx.encode(Rx([o%iy[30]],30,5,!1))}function sde(e){let t=e==="bech32"?1:734539939,n=Rj(5),r=n.decode,o=n.encode,i=Ij(r);function s(f,d,p=90){es("bech32.encode prefix",f),Lx(d)&&(d=Array.from(d)),Oj("bech32.encode",d);let h=f.length;if(h===0)throw new TypeError(`Invalid prefix length ${h}`);let m=h+7+d.length;if(p!==!1&&m>p)throw new TypeError(`Length ${m} exceeds limit ${p}`);let y=f.toLowerCase(),v=Tj(y,d,t);return`${y}1${Nx.encode(d)}${v}`}function a(f,d=90){es("bech32.decode input",f);let p=f.length;if(p<8||d!==!1&&p>d)throw new TypeError(`invalid string length: ${p} (${f}). Expected (8..${d})`);let h=f.toLowerCase();if(f!==h&&f!==f.toUpperCase())throw new Error("String must be lowercase or uppercase");let m=h.lastIndexOf("1");if(m===0||m===-1)throw new Error('Letter "1" must be present between prefix and data only');let y=h.slice(0,m),v=h.slice(m+1);if(v.length<6)throw new Error("Data must be at least 6 characters long");let w=Nx.decode(v).slice(0,-6),A=Tj(y,w,t);if(!v.endsWith(A))throw new Error(`Invalid checksum in ${f}: expected "${A}"`);return{prefix:y,words:w}}let c=Ij(a);function u(f){let{prefix:d,words:p}=a(f,!1);return{prefix:d,words:p,bytes:r(p)}}function l(f,d){return s(f,o(d))}return{encode:s,decode:a,encodeFromBytes:l,decodeToBytes:u,decodeUnsafe:c,fromWords:r,fromWordsUnsafe:i,toWords:o}}var Jo=sde("bech32");function ade(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function cy(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}function xl(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Ze(e,t,n=""){let r=ade(e),o=e?.length,i=t!==void 0;if(!r||i&&o!==t){let s=n&&`"${n}" `,a=i?` of length ${t}`:"",c=r?`length=${o}`:`type=${typeof e}`;throw new Error(s+"expected Uint8Array"+a+", got "+c)}return e}function Fx(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Nj(e,t){Ze(e,void 0,"output");let n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function yt(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function Rt(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Lj(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}var cde=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function jj(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}function qx(e,t){if(jj(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")}function Fj(e,t){if(t==null||typeof t!="object")throw new Error("options must be defined");return Object.assign(e,t)}function Il(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}var Al=(e,t)=>{function n(r,...o){if(Ze(r,void 0,"key"),!cde)throw new Error("Non little-endian hardware is not yet supported");if(e.nonceLength!==void 0){let l=o[0];Ze(l,e.varSizeNonce?void 0:e.nonceLength,"nonce")}let i=e.tagLength;i&&o[1]!==void 0&&Ze(o[1],void 0,"AAD");let s=t(r,...o),a=(l,f)=>{if(f!==void 0){if(l!==2)throw new Error("cipher output not supported");Ze(f,void 0,"output")}},c=!1;return{encrypt(l,f){if(c)throw new Error("cannot encrypt() twice with same key + nonce");return c=!0,Ze(l),a(s.encrypt.length,f),s.encrypt(l,f)},decrypt(l,f){if(Ze(l),i&&l.length<i)throw new Error('"ciphertext" expected length bigger than tagLength='+i);return a(s.decrypt.length,f),s.decrypt(l,f)}}}return Object.assign(n,e),n};function cc(e,t,n=!0){if(t===void 0)return new Uint8Array(e);if(t.length!==e)throw new Error('"output" expected Uint8Array of length '+e+", got: "+t.length);if(n&&!ts(t))throw new Error("invalid output, must be aligned");return t}function Bx(e,t,n){cy(n);let r=new Uint8Array(16),o=Lj(r);return o.setBigUint64(0,BigInt(t),n),o.setBigUint64(8,BigInt(e),n),r}function ts(e){return e.byteOffset%4===0}function On(e){return Uint8Array.from(e)}var wt=16;var lde=283;function Bj(e){if(![16,24,32].includes(e.length))throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length='+e.length)}function Wx(e){return e<<1^lde&-(e>>7)}function uc(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(t&1),e=Wx(e);return n}var $x=(()=>{let e=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=Wx(r))e[n]=r;let t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=(r^r>>4^r>>5^r>>6^r>>7^99)&255}return Rt(e),t})(),fde=$x.map((e,t)=>$x.indexOf(t)),dde=e=>e<<24|e>>>8,Ux=e=>e<<8|e>>>24;function Uj(e,t){if(e.length!==256)throw new Error("Wrong sbox length");let n=new Uint32Array(256).map((u,l)=>t(e[l])),r=n.map(Ux),o=r.map(Ux),i=o.map(Ux),s=new Uint32Array(256*256),a=new Uint32Array(256*256),c=new Uint16Array(256*256);for(let u=0;u<256;u++)for(let l=0;l<256;l++){let f=u*256+l;s[f]=n[u]^r[l],a[f]=o[u]^i[l],c[f]=e[u]<<8|e[l]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:o,T3:i,T01:s,T23:a}}var Vx=Uj($x,e=>uc(e,3)<<24|e<<16|e<<8|uc(e,2)),Hj=Uj(fde,e=>uc(e,11)<<24|uc(e,13)<<16|uc(e,9)<<8|uc(e,14)),pde=(()=>{let e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=Wx(n))e[t]=n;return e})();function Gx(e){Ze(e);let t=e.length;Bj(e);let{sbox2:n}=Vx,r=[];ts(e)||r.push(e=On(e));let o=yt(e),i=o.length,s=c=>br(n,c,c,c,c),a=new Uint32Array(t+28);a.set(o);for(let c=i;c<a.length;c++){let u=a[c-1];c%i===0?u=s(dde(u))^pde[c/i-1]:i>6&&c%i===4&&(u=s(u)),a[c]=a[c-i]^u}return Rt(...r),a}function hde(e){let t=Gx(e),n=t.slice(),r=t.length,{sbox2:o}=Vx,{T0:i,T1:s,T2:a,T3:c}=Hj;for(let u=0;u<r;u+=4)for(let l=0;l<4;l++)n[u+l]=t[r-u-4+l];Rt(t);for(let u=4;u<r-4;u++){let l=n[u],f=br(o,l,l,l,l);n[u]=i[f&255]^s[f>>>8&255]^a[f>>>16&255]^c[f>>>24]}return n}function Xo(e,t,n,r,o,i){return e[n<<8&65280|r>>>8&255]^t[o>>>8&65280|i>>>24&255]}function br(e,t,n,r,o){return e[t&255|n&65280]|e[r>>>16&255|o>>>16&65280]<<16}function Kx(e,t,n,r,o){let{sbox2:i,T01:s,T23:a}=Vx,c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];let u=e.length/4-2;for(let h=0;h<u;h++){let m=e[c++]^Xo(s,a,t,n,r,o),y=e[c++]^Xo(s,a,n,r,o,t),v=e[c++]^Xo(s,a,r,o,t,n),w=e[c++]^Xo(s,a,o,t,n,r);t=m,n=y,r=v,o=w}let l=e[c++]^br(i,t,n,r,o),f=e[c++]^br(i,n,r,o,t),d=e[c++]^br(i,r,o,t,n),p=e[c++]^br(i,o,t,n,r);return{s0:l,s1:f,s2:d,s3:p}}function gde(e,t,n,r,o){let{sbox2:i,T01:s,T23:a}=Hj,c=0;t^=e[c++],n^=e[c++],r^=e[c++],o^=e[c++];let u=e.length/4-2;for(let h=0;h<u;h++){let m=e[c++]^Xo(s,a,t,o,r,n),y=e[c++]^Xo(s,a,n,t,o,r),v=e[c++]^Xo(s,a,r,n,t,o),w=e[c++]^Xo(s,a,o,r,n,t);t=m,n=y,r=v,o=w}let l=e[c++]^br(i,t,o,r,n),f=e[c++]^br(i,n,t,o,r),d=e[c++]^br(i,r,n,t,o),p=e[c++]^br(i,o,r,n,t);return{s0:l,s1:f,s2:d,s3:p}}function mde(e){if(Ze(e),e.length%wt!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size "+wt)}function yde(e,t,n){Ze(e);let r=e.length,o=r%wt;if(!t&&o!==0)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");ts(e)||(e=On(e));let i=yt(e);if(t){let a=wt-o;a||(a=wt),r=r+a}n=cc(r,n),qx(e,n);let s=yt(n);return{b:i,o:s,out:n}}function vde(e,t){if(!t)return e;let n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");let r=e[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");let o=e.subarray(0,-r);for(let i=0;i<r;i++)if(e[n-i-1]!==r)throw new Error("aes/pcks5: wrong padding");return o}function bde(e){let t=new Uint8Array(16),n=yt(t);t.set(e);let r=wt-e.length;for(let o=wt-r;o<wt;o++)t[o]=r;return n}var zx=Al({blockSize:16,nonceLength:16},function(t,n,r={}){let o=!r.disablePadding;return{encrypt(i,s){let a=Gx(t),{b:c,o:u,out:l}=yde(i,o,s),f=n,d=[a];ts(f)||d.push(f=On(f));let p=yt(f),h=p[0],m=p[1],y=p[2],v=p[3],w=0;for(;w+4<=c.length;)h^=c[w+0],m^=c[w+1],y^=c[w+2],v^=c[w+3],{s0:h,s1:m,s2:y,s3:v}=Kx(a,h,m,y,v),u[w++]=h,u[w++]=m,u[w++]=y,u[w++]=v;if(o){let A=bde(i.subarray(w*4));h^=A[0],m^=A[1],y^=A[2],v^=A[3],{s0:h,s1:m,s2:y,s3:v}=Kx(a,h,m,y,v),u[w++]=h,u[w++]=m,u[w++]=y,u[w++]=v}return Rt(...d),l},decrypt(i,s){mde(i);let a=hde(t),c=n,u=[a];ts(c)||u.push(c=On(c));let l=yt(c);s=cc(i.length,s),ts(i)||u.push(i=On(i)),qx(i,s);let f=yt(i),d=yt(s),p=l[0],h=l[1],m=l[2],y=l[3];for(let v=0;v+4<=f.length;){let w=p,A=h,P=m,j=y;p=f[v+0],h=f[v+1],m=f[v+2],y=f[v+3];let{s0:Q,s1:ue,s2:we,s3:N}=gde(a,p,h,m,y);d[v++]=Q^w,d[v++]=ue^A,d[v++]=we^P,d[v++]=N^j}return Rt(...u),vde(s,o)}}});function _de(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint32Array"}function Hx(e,t){if(Ze(t,16,"block"),!_de(e))throw new Error("_encryptBlock accepts result of expandKeyLE");let n=yt(t),{s0:r,s1:o,s2:i,s3:s}=Kx(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=i,n[3]=s,t}function qj(e){let t=0;for(let n=wt-1;n>=0;n--){let r=(e[n]&128)>>>7;e[n]=e[n]<<1|t,t=r}return t&&(e[wt-1]^=135),e}function uy(e,t){if(e.length!==t.length)throw new Error("xorBlock: blocks must have same length");for(let n=0;n<e.length;n++)e[n]=e[n]^t[n];return e}var ly=class{buffer;destroyed;k1;k2;xk;constructor(t){Ze(t),Bj(t),this.xk=Gx(t),this.buffer=new Uint8Array(0),this.destroyed=!1;let n=new Uint8Array(wt);Hx(this.xk,n),this.k1=qj(n),this.k2=qj(new Uint8Array(this.k1))}update(t){let{destroyed:n,buffer:r}=this;if(n)throw new Error("CMAC instance was destroyed");Ze(t);let o=new Uint8Array(r.length+t.length);return o.set(r),o.set(t,r.length),this.buffer=o,this}digest(){if(this.destroyed)throw new Error("CMAC instance was destroyed");let{buffer:t}=this,n=t.length,r=Math.ceil(n/wt),o;r===0?(r=1,o=!1):o=n%wt===0;let i=(r-1)*wt,s=t.subarray(i),a;if(o)a=uy(new Uint8Array(s),this.k1);else{let u=new Uint8Array(wt);u.set(s),u[s.length]=128,a=uy(u,this.k2)}let c=new Uint8Array(wt);for(let u=0;u<r-1;u++){let l=t.subarray(u*wt,(u+1)*wt);uy(c,l),Hx(this.xk,c)}return uy(c,a),Hx(this.xk,c),Rt(a),c}destroy(){let{buffer:t,destroyed:n,xk:r,k1:o,k2:i}=this;n||(this.destroyed=!0,Rt(t,r,o,i))}},wde=(e,t)=>new ly(e).update(t).digest();wde.create=e=>new ly(e);var Kj=e=>Uint8Array.from(e.split(""),t=>t.charCodeAt(0)),Ede=Kj("expand 16-byte k"),Sde=Kj("expand 32-byte k"),xde=yt(Ede),Ide=yt(Sde);function Y(e,t){return e<<t|e>>>32-t}function Yx(e){return e.byteOffset%4===0}var fy=64,Ade=16,Wj=2**32-1,$j=Uint32Array.of();function Tde(e,t,n,r,o,i,s,a){let c=o.length,u=new Uint8Array(fy),l=yt(u),f=Yx(o)&&Yx(i),d=f?yt(o):$j,p=f?yt(i):$j;for(let h=0;h<c;s++){if(e(t,n,r,l,s,a),s>=Wj)throw new Error("arx: counter overflow");let m=Math.min(fy,c-h);if(f&&m===fy){let y=h/4;if(h%4!==0)throw new Error("arx: invalid block position");for(let v=0,w;v<Ade;v++)w=y+v,p[w]=d[w]^l[v];h+=fy;continue}for(let y=0,v;y<m;y++)v=h+y,i[v]=o[v]^u[y];h+=m}}function Zx(e,t){let{allowShortKeys:n,extendNonceFn:r,counterLength:o,counterRight:i,rounds:s}=Fj({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if(typeof e!="function")throw new Error("core must be a function");return xl(o),xl(s),cy(i),cy(n),(a,c,u,l,f=0)=>{Ze(a,void 0,"key"),Ze(c,void 0,"nonce"),Ze(u,void 0,"data");let d=u.length;if(l===void 0&&(l=new Uint8Array(d)),Ze(l,void 0,"output"),xl(f),f<0||f>=Wj)throw new Error("arx: counter overflow");if(l.length<d)throw new Error(`arx: output (${l.length}) is shorter than data (${d})`);let p=[],h=a.length,m,y;if(h===32)p.push(m=On(a)),y=Ide;else if(h===16&&n)m=new Uint8Array(32),m.set(a),m.set(a,16),y=xde,p.push(m);else throw Ze(a,32,"arx key"),new Error("invalid key size");Yx(c)||p.push(c=On(c));let v=yt(m);if(r){if(c.length!==24)throw new Error("arx: extended nonce must be 24 bytes");r(y,v,yt(c.subarray(0,16)),v),c=c.subarray(16)}let w=16-o;if(w!==c.length)throw new Error(`arx: nonce must be ${w} or 16 bytes`);if(w!==12){let P=new Uint8Array(12);P.set(c,i?0:12-c.length),c=P,p.push(c)}let A=yt(c);return Tde(e,y,v,A,u,l,f,s),Rt(...p),l}}function Nt(e,t){return e[t++]&255|(e[t++]&255)<<8}var Qx=class{blockLen=16;outputLen=16;buffer=new Uint8Array(16);r=new Uint16Array(10);h=new Uint16Array(10);pad=new Uint16Array(8);pos=0;finished=!1;constructor(t){t=On(Ze(t,32,"key"));let n=Nt(t,0),r=Nt(t,2),o=Nt(t,4),i=Nt(t,6),s=Nt(t,8),a=Nt(t,10),c=Nt(t,12),u=Nt(t,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|i<<9)&8191,this.r[4]=(i>>>4|s<<12)&255,this.r[5]=s>>>1&8190,this.r[6]=(s>>>14|a<<2)&8191,this.r[7]=(a>>>11|c<<5)&8065,this.r[8]=(c>>>8|u<<8)&8191,this.r[9]=u>>>5&127;for(let l=0;l<8;l++)this.pad[l]=Nt(t,16+2*l)}process(t,n,r=!1){let o=r?0:2048,{h:i,r:s}=this,a=s[0],c=s[1],u=s[2],l=s[3],f=s[4],d=s[5],p=s[6],h=s[7],m=s[8],y=s[9],v=Nt(t,n+0),w=Nt(t,n+2),A=Nt(t,n+4),P=Nt(t,n+6),j=Nt(t,n+8),Q=Nt(t,n+10),ue=Nt(t,n+12),we=Nt(t,n+14),N=i[0]+(v&8191),J=i[1]+((v>>>13|w<<3)&8191),de=i[2]+((w>>>10|A<<6)&8191),G=i[3]+((A>>>7|P<<9)&8191),O=i[4]+((P>>>4|j<<12)&8191),M=i[5]+(j>>>1&8191),I=i[6]+((j>>>14|Q<<2)&8191),R=i[7]+((Q>>>11|ue<<5)&8191),B=i[8]+((ue>>>8|we<<8)&8191),U=i[9]+(we>>>5|o),C=0,q=C+N*a+J*(5*y)+de*(5*m)+G*(5*h)+O*(5*p);C=q>>>13,q&=8191,q+=M*(5*d)+I*(5*f)+R*(5*l)+B*(5*u)+U*(5*c),C+=q>>>13,q&=8191;let L=C+N*c+J*a+de*(5*y)+G*(5*m)+O*(5*h);C=L>>>13,L&=8191,L+=M*(5*p)+I*(5*d)+R*(5*f)+B*(5*l)+U*(5*u),C+=L>>>13,L&=8191;let V=C+N*u+J*c+de*a+G*(5*y)+O*(5*m);C=V>>>13,V&=8191,V+=M*(5*h)+I*(5*p)+R*(5*d)+B*(5*f)+U*(5*l),C+=V>>>13,V&=8191;let Re=C+N*l+J*u+de*c+G*a+O*(5*y);C=Re>>>13,Re&=8191,Re+=M*(5*m)+I*(5*h)+R*(5*p)+B*(5*d)+U*(5*f),C+=Re>>>13,Re&=8191;let oe=C+N*f+J*l+de*u+G*c+O*a;C=oe>>>13,oe&=8191,oe+=M*(5*y)+I*(5*m)+R*(5*h)+B*(5*p)+U*(5*d),C+=oe>>>13,oe&=8191;let ye=C+N*d+J*f+de*l+G*u+O*c;C=ye>>>13,ye&=8191,ye+=M*a+I*(5*y)+R*(5*m)+B*(5*h)+U*(5*p),C+=ye>>>13,ye&=8191;let Ne=C+N*p+J*d+de*f+G*l+O*u;C=Ne>>>13,Ne&=8191,Ne+=M*c+I*a+R*(5*y)+B*(5*m)+U*(5*h),C+=Ne>>>13,Ne&=8191;let Ve=C+N*h+J*p+de*d+G*f+O*l;C=Ve>>>13,Ve&=8191,Ve+=M*u+I*c+R*a+B*(5*y)+U*(5*m),C+=Ve>>>13,Ve&=8191;let pt=C+N*m+J*h+de*p+G*d+O*f;C=pt>>>13,pt&=8191,pt+=M*l+I*u+R*c+B*a+U*(5*y),C+=pt>>>13,pt&=8191;let be=C+N*y+J*m+de*h+G*p+O*d;C=be>>>13,be&=8191,be+=M*f+I*l+R*u+B*c+U*a,C+=be>>>13,be&=8191,C=(C<<2)+C|0,C=C+q|0,q=C&8191,C=C>>>13,L+=C,i[0]=q,i[1]=L,i[2]=V,i[3]=Re,i[4]=oe,i[5]=ye,i[6]=Ne,i[7]=Ve,i[8]=pt,i[9]=be}finalize(){let{h:t,pad:n}=this,r=new Uint16Array(10),o=t[1]>>>13;t[1]&=8191;for(let a=2;a<10;a++)t[a]+=o,o=t[a]>>>13,t[a]&=8191;t[0]+=o*5,o=t[0]>>>13,t[0]&=8191,t[1]+=o,o=t[1]>>>13,t[1]&=8191,t[2]+=o,r[0]=t[0]+5,o=r[0]>>>13,r[0]&=8191;for(let a=1;a<10;a++)r[a]=t[a]+o,o=r[a]>>>13,r[a]&=8191;r[9]-=8192;let i=(o^1)-1;for(let a=0;a<10;a++)r[a]&=i;i=~i;for(let a=0;a<10;a++)t[a]=t[a]&i|r[a];t[0]=(t[0]|t[1]<<13)&65535,t[1]=(t[1]>>>3|t[2]<<10)&65535,t[2]=(t[2]>>>6|t[3]<<7)&65535,t[3]=(t[3]>>>9|t[4]<<4)&65535,t[4]=(t[4]>>>12|t[5]<<1|t[6]<<14)&65535,t[5]=(t[6]>>>2|t[7]<<11)&65535,t[6]=(t[7]>>>5|t[8]<<8)&65535,t[7]=(t[8]>>>8|t[9]<<5)&65535;let s=t[0]+n[0];t[0]=s&65535;for(let a=1;a<8;a++)s=(t[a]+n[a]|0)+(s>>>16)|0,t[a]=s&65535;Rt(r)}update(t){Fx(this),Ze(t),t=On(t);let{buffer:n,blockLen:r}=this,o=t.length;for(let i=0;i<o;){let s=Math.min(r-this.pos,o-i);if(s===r){for(;r<=o-i;i+=r)this.process(t,i);continue}n.set(t.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===r&&(this.process(n,0,!1),this.pos=0)}return this}destroy(){Rt(this.h,this.r,this.buffer,this.pad)}digestInto(t){Fx(this),Nj(t,this),this.finished=!0;let{buffer:n,h:r}=this,{pos:o}=this;if(o){for(n[o++]=1;o<16;o++)n[o]=0;this.process(n,0,!0)}this.finalize();let i=0;for(let s=0;s<8;s++)t[i++]=r[s]>>>0,t[i++]=r[s]>>>8;return t}digest(){let{buffer:t,outputLen:n}=this;this.digestInto(t);let r=t.slice(0,n);return this.destroy(),r}};function Mde(e){let t=(r,o)=>e(o).update(r).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}var Vj=Mde(e=>new Qx(e));function Yj(e,t,n,r,o,i=20){let s=e[0],a=e[1],c=e[2],u=e[3],l=t[0],f=t[1],d=t[2],p=t[3],h=t[4],m=t[5],y=t[6],v=t[7],w=o,A=n[0],P=n[1],j=n[2],Q=s,ue=a,we=c,N=u,J=l,de=f,G=d,O=p,M=h,I=m,R=y,B=v,U=w,C=A,q=P,L=j;for(let Re=0;Re<i;Re+=2)Q=Q+J|0,U=Y(U^Q,16),M=M+U|0,J=Y(J^M,12),Q=Q+J|0,U=Y(U^Q,8),M=M+U|0,J=Y(J^M,7),ue=ue+de|0,C=Y(C^ue,16),I=I+C|0,de=Y(de^I,12),ue=ue+de|0,C=Y(C^ue,8),I=I+C|0,de=Y(de^I,7),we=we+G|0,q=Y(q^we,16),R=R+q|0,G=Y(G^R,12),we=we+G|0,q=Y(q^we,8),R=R+q|0,G=Y(G^R,7),N=N+O|0,L=Y(L^N,16),B=B+L|0,O=Y(O^B,12),N=N+O|0,L=Y(L^N,8),B=B+L|0,O=Y(O^B,7),Q=Q+de|0,L=Y(L^Q,16),R=R+L|0,de=Y(de^R,12),Q=Q+de|0,L=Y(L^Q,8),R=R+L|0,de=Y(de^R,7),ue=ue+G|0,U=Y(U^ue,16),B=B+U|0,G=Y(G^B,12),ue=ue+G|0,U=Y(U^ue,8),B=B+U|0,G=Y(G^B,7),we=we+O|0,C=Y(C^we,16),M=M+C|0,O=Y(O^M,12),we=we+O|0,C=Y(C^we,8),M=M+C|0,O=Y(O^M,7),N=N+J|0,q=Y(q^N,16),I=I+q|0,J=Y(J^I,12),N=N+J|0,q=Y(q^N,8),I=I+q|0,J=Y(J^I,7);let V=0;r[V++]=s+Q|0,r[V++]=a+ue|0,r[V++]=c+we|0,r[V++]=u+N|0,r[V++]=l+J|0,r[V++]=f+de|0,r[V++]=d+G|0,r[V++]=p+O|0,r[V++]=h+M|0,r[V++]=m+I|0,r[V++]=y+R|0,r[V++]=v+B|0,r[V++]=w+U|0,r[V++]=A+C|0,r[V++]=P+q|0,r[V++]=j+L|0}function Ode(e,t,n,r){let o=e[0],i=e[1],s=e[2],a=e[3],c=t[0],u=t[1],l=t[2],f=t[3],d=t[4],p=t[5],h=t[6],m=t[7],y=n[0],v=n[1],w=n[2],A=n[3];for(let j=0;j<20;j+=2)o=o+c|0,y=Y(y^o,16),d=d+y|0,c=Y(c^d,12),o=o+c|0,y=Y(y^o,8),d=d+y|0,c=Y(c^d,7),i=i+u|0,v=Y(v^i,16),p=p+v|0,u=Y(u^p,12),i=i+u|0,v=Y(v^i,8),p=p+v|0,u=Y(u^p,7),s=s+l|0,w=Y(w^s,16),h=h+w|0,l=Y(l^h,12),s=s+l|0,w=Y(w^s,8),h=h+w|0,l=Y(l^h,7),a=a+f|0,A=Y(A^a,16),m=m+A|0,f=Y(f^m,12),a=a+f|0,A=Y(A^a,8),m=m+A|0,f=Y(f^m,7),o=o+u|0,A=Y(A^o,16),h=h+A|0,u=Y(u^h,12),o=o+u|0,A=Y(A^o,8),h=h+A|0,u=Y(u^h,7),i=i+l|0,y=Y(y^i,16),m=m+y|0,l=Y(l^m,12),i=i+l|0,y=Y(y^i,8),m=m+y|0,l=Y(l^m,7),s=s+f|0,v=Y(v^s,16),d=d+v|0,f=Y(f^d,12),s=s+f|0,v=Y(v^s,8),d=d+v|0,f=Y(f^d,7),a=a+c|0,w=Y(w^a,16),p=p+w|0,c=Y(c^p,12),a=a+c|0,w=Y(w^a,8),p=p+w|0,c=Y(c^p,7);let P=0;r[P++]=o,r[P++]=i,r[P++]=s,r[P++]=a,r[P++]=y,r[P++]=v,r[P++]=w,r[P++]=A}var dy=Zx(Yj,{counterRight:!1,counterLength:4,allowShortKeys:!1}),Pde=Zx(Yj,{counterRight:!1,counterLength:8,extendNonceFn:Ode,allowShortKeys:!1});var Cde=new Uint8Array(16),Gj=(e,t)=>{e.update(t);let n=t.length%16;n&&e.update(Cde.subarray(n))},Dde=new Uint8Array(32);function zj(e,t,n,r,o){o!==void 0&&Ze(o,void 0,"AAD");let i=e(t,n,Dde),s=Bx(r.length,o?o.length:0,!0),a=Vj.create(i);o&&Gj(a,o),Gj(a,r),a.update(s);let c=a.digest();return Rt(i,s),c}var Zj=e=>(t,n,r)=>({encrypt(i,s){let a=i.length;s=cc(a+16,s,!1),s.set(i);let c=s.subarray(0,-16);e(t,n,c,c,1);let u=zj(e,t,n,c,r);return s.set(u,a),Rt(u),s},decrypt(i,s){s=cc(i.length-16,s,!1);let a=i.subarray(0,-16),c=i.subarray(-16),u=zj(e,t,n,a,r);if(!Il(c,u))throw new Error("invalid tag");return s.set(i.subarray(0,-16)),e(t,n,s,s,1),Rt(u),s}}),qNe=Al({blockSize:64,nonceLength:12,tagLength:16},Zj(dy)),BNe=Al({blockSize:64,nonceLength:24,tagLength:16},Zj(Pde));function Jj(e,t,n){return Zi(e),n===void 0&&(n=new Uint8Array(e.outputLen)),Zo(e,n,t)}var Jx=Uint8Array.of(0),Qj=Uint8Array.of();function Xj(e,t,n,r=32){Zi(e),Mn(r,"length");let o=e.outputLen;if(r>255*o)throw new Error("Length must be <= 255*HashLen");let i=Math.ceil(r/o);n===void 0?n=Qj:Me(n,void 0,"info");let s=new Uint8Array(i*o),a=Zo.create(e,t),c=a._cloneInto(),u=new Uint8Array(a.outputLen);for(let l=0;l<i;l++)Jx[0]=l+1,c.update(l===0?Qj:u).update(n).update(Jx).digestInto(u),s.set(u,o*l),a._cloneInto(c);return a.destroy(),c.destroy(),Gr(u,Jx),s.slice(0,r)}var kde=Object.defineProperty,Ge=(e,t)=>{for(var n in t)kde(e,n,{get:t[n],enumerable:!0})},Rde={};Ge(Rde,{binarySearch:()=>oI,bytesToHex:()=>Oe,hexToBytes:()=>Le,insertEventIntoAscendingList:()=>jde,insertEventIntoDescendingList:()=>Lde,isHex32:()=>fn,mergeReverseSortedLists:()=>Fde,normalizeURL:()=>Nde,utf8Decoder:()=>Jr,utf8Encoder:()=>Pn});var Jr=new TextDecoder("utf-8"),Pn=new TextEncoder;function Nde(e){try{e.indexOf("://")===-1&&(e="wss://"+e);let t=new URL(e);return t.protocol==="http:"?t.protocol="ws:":t.protocol==="https:"&&(t.protocol="wss:"),t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),(t.port==="80"&&t.protocol==="ws:"||t.port==="443"&&t.protocol==="wss:")&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}catch{throw new Error(`Invalid URL: ${e}`)}}function Lde(e,t){let[n,r]=oI(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:o.created_at-t.created_at);return r||e.splice(n,0,t),e}function jde(e,t){let[n,r]=oI(e,o=>t.id===o.id?0:t.created_at===o.created_at?-1:t.created_at-o.created_at);return r||e.splice(n,0,t),e}function oI(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),i=t(e[o]);if(i===0)return[o,!0];i<0?r=o-1:n=o+1}return[n,!1]}function Fde(e,t){let n=new Array(e.length+t.length);n.length=0;let r=0,o=0,i=[];for(;r<e.length&&o<t.length;){let s;if(e[r]?.created_at>t[o]?.created_at?(s=e[r],r++):(s=t[o],o++),n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}for(;r<e.length;){let s=e[r];if(r++,n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}for(;o<t.length;){let s=t[o];if(o++,n.length>0&&n[n.length-1].created_at===s.created_at){if(i.includes(s.id))continue}else i.length=0;n.push(s),i.push(s.id)}return n}function fn(e){for(let t=0;t<64;t++){let n=e.charCodeAt(t);if(isNaN(n)||n<48||n>102||n>57&&n<97)return!1}return!0}var lc=Symbol("verified"),qde=e=>e instanceof Object;function iI(e){if(!qde(e)||typeof e.kind!="number"||typeof e.content!="string"||typeof e.created_at!="number"||typeof e.pubkey!="string"||!fn(e.pubkey)||!Array.isArray(e.tags))return!1;for(let t=0;t<e.tags.length;t++){let n=e.tags[t];if(!Array.isArray(n))return!1;for(let r=0;r<n.length;r++)if(typeof n[r]!="string")return!1}return!0}var Bde=class{generateSecretKey(){return ac.utils.randomSecretKey()}getPublicKey(e){return Oe(ac.getPublicKey(e))}finalizeEvent(e,t){let n=e;return n.pubkey=Oe(ac.getPublicKey(t)),n.id=hy(n),n.sig=Oe(ac.sign(Le(hy(n)),t)),n[lc]=!0,n}verifyEvent(e){if(typeof e[lc]=="boolean")return e[lc];try{let t=hy(e);if(t!==e.id)return e[lc]=!1,!1;let n=ac.verify(Le(e.sig),Le(t),Le(e.pubkey));return e[lc]=n,n}catch{return e[lc]=!1,!1}}};function Ude(e){if(!iI(e))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content])}function hy(e){let t=Ut(Pn.encode(Ude(e)));return Oe(t)}var yy=new Bde,Hde=yy.generateSecretKey,dc=yy.getPublicKey,En=yy.finalizeEvent,Tl=yy.verifyEvent,$de={};Ge($de,{AIEmbeddings:()=>jpe,AppCurationSet:()=>vge,Application:()=>mge,AuthoredPodcasts:()=>jhe,BadgeAward:()=>Qde,BadgeDefinition:()=>oge,Bid:()=>dpe,BidConfirmation:()=>ppe,BlobsAuth:()=>Yhe,BlockedRelaysList:()=>bhe,BlossomServerList:()=>Dhe,BookmarkList:()=>mhe,Bookmarksets:()=>Xhe,Calendar:()=>Nge,CalendarEventRSVP:()=>Lge,CashuMintAnnouncement:()=>Gge,CashuWalletEvent:()=>Whe,CashuWalletHistory:()=>Ype,CashuWalletTokens:()=>zpe,ChannelCreation:()=>lF,ChannelHideMessage:()=>pF,ChannelMessage:()=>dF,ChannelMetadata:()=>fF,ChannelMuteUser:()=>hF,ChatMessage:()=>Jde,Chess:()=>upe,ClassifiedListing:()=>xge,ClientAuth:()=>mF,CodeSnippet:()=>Epe,CoinjoinPool:()=>Bpe,Comment:()=>ype,CommunitiesList:()=>yhe,CommunityDefinition:()=>$ge,CommunityPostApproval:()=>$pe,ConferenceEvent:()=>wge,Contacts:()=>zde,CreateOrUpdateProduct:()=>age,CreateOrUpdateStall:()=>sge,CuratedVideoSets:()=>tge,Curationsets:()=>ege,Date:()=>kge,DecoupledEncryptionKeyDistribution:()=>Hpe,DecoupledKeyAnnouncement:()=>Ohe,DecoupledKeyClientAnnouncement:()=>Upe,DirectMessageRelaysList:()=>Phe,DraftClassifiedListing:()=>Ige,DraftEvent:()=>Pge,DraftLong:()=>fge,Emojisets:()=>dge,EncryptedDirectMessage:()=>Yde,EventDeletion:()=>Zde,FavoriteFollowSets:()=>The,FavoritePodcasts:()=>Che,FavoriteRelays:()=>Ehe,FedimintAnnouncement:()=>zge,Feed:()=>Dge,FileMessage:()=>npe,FileMetadata:()=>gpe,FileServerPreference:()=>khe,Followsets:()=>Zhe,ForumThread:()=>epe,GenericRepost:()=>lI,Genericlists:()=>Qhe,GeocacheListing:()=>Wge,GeocacheLog:()=>Zpe,GeocacheLogEntry:()=>Vge,GeocacheProofOfFind:()=>Qpe,GiftWrap:()=>gF,GitPullRequest:()=>xpe,GitPullRequestUpdate:()=>Ipe,GoodWikiAuthorList:()=>Rhe,GoodWikiRelayList:()=>Nhe,GroupMetadata:()=>Zge,HTTPAuth:()=>fI,Handlerinformation:()=>qge,Handlerrecommendation:()=>Fge,Highlights:()=>dhe,InteractiveRoom:()=>_ge,InterestsList:()=>xhe,Interestsets:()=>ige,Issue:()=>Ape,JobFeedback:()=>Vpe,JobRequest:()=>Kpe,JobResult:()=>Wpe,Label:()=>Npe,LegacyNsiteFile:()=>Uge,LightningPubRPC:()=>Vhe,LinkSet:()=>Cge,LiveChatMessage:()=>wpe,LiveEvent:()=>bge,LongFormArticle:()=>lge,MarketplaceUI:()=>cge,MediaFollows:()=>Ahe,MediaStarterPacks:()=>nme,MergeRequests:()=>lpe,Metadata:()=>Vde,ModularArticleContent:()=>hge,ModularArticleHeader:()=>pge,MuteSets:()=>nge,Mutelist:()=>phe,NWCWalletInfo:()=>$he,NWCWalletRequest:()=>yF,NWCWalletResponse:()=>Ghe,NormalVideo:()=>ipe,NostrConnect:()=>zhe,NsiteNamed:()=>Kge,NsiteRoot:()=>Khe,NutZap:()=>che,NutZapInfo:()=>Ihe,OpenTimestamps:()=>hpe,Patch:()=>Spe,PeerToPeerOrderEvents:()=>Yge,Photo:()=>ope,Pinlist:()=>hhe,PodcastEpisode:()=>cpe,PodcastMetadata:()=>Lhe,Poll:()=>mpe,PollResponse:()=>fpe,PrivateDirectMessage:()=>uF,PrivateEventRelayList:()=>She,ProblemTracker:()=>Dpe,ProductSoldAsAuction:()=>uge,ProfileBadges:()=>rge,ProxyAnnouncement:()=>Uhe,PublicChatsList:()=>vhe,PublicMessage:()=>ape,Reaction:()=>uI,ReactionToWebsite:()=>rpe,RecommendRelay:()=>Gde,Redirects:()=>Oge,RelayDiscovery:()=>yge,RelayList:()=>ghe,RelayMonitorAnnouncement:()=>Fhe,RelayReview:()=>jge,RelayReviews:()=>Lpe,Relaysets:()=>Jhe,ReleaseArtifactSets:()=>gge,Reply:()=>Tpe,Report:()=>kpe,Reporting:()=>Rpe,RepositoryAnnouncement:()=>Age,RepositoryState:()=>Tge,Repost:()=>cI,ReservedCashuWalletTokens:()=>Gpe,RoomPresence:()=>qhe,Scroll:()=>bpe,Seal:()=>cF,SearchRelaysList:()=>_he,ShortTextNote:()=>aF,ShortVideo:()=>spe,SimpleGroupAdmins:()=>Qge,SimpleGroupCreateGroup:()=>nhe,SimpleGroupCreateInvite:()=>ohe,SimpleGroupDeleteEvent:()=>the,SimpleGroupDeleteGroup:()=>rhe,SimpleGroupEditMetadata:()=>ehe,SimpleGroupJoinRequest:()=>ihe,SimpleGroupLeaveRequest:()=>she,SimpleGroupList:()=>whe,SimpleGroupLiveKitParticipants:()=>eme,SimpleGroupMembers:()=>Jge,SimpleGroupPutUser:()=>Jpe,SimpleGroupRemoveUser:()=>Xpe,SimpleGroupReply:()=>tpe,SimpleGroupRoles:()=>Xge,SimpleGroupThreadedReply:()=>Xde,SlideSet:()=>Sge,SoftwareApplication:()=>Bge,StarterPacks:()=>tme,StatusApplied:()=>Ope,StatusClosed:()=>Ppe,StatusDraft:()=>Cpe,StatusOpen:()=>Mpe,TidalLogin:()=>uhe,Time:()=>Rge,Torrent:()=>Fpe,TorrentComment:()=>qpe,TransportMethodAnnouncement:()=>Hhe,UserEmojiList:()=>Mhe,UserGraspList:()=>Bhe,UserStatuses:()=>Ege,VideoViewEvent:()=>Hge,Voice:()=>vpe,VoiceComment:()=>_pe,WebBookmarks:()=>rme,WikiArticle:()=>Mge,Zap:()=>fhe,ZapGoal:()=>ahe,ZapRequest:()=>lhe,classifyKind:()=>Kde,isAddressableKind:()=>aI,isEphemeralKind:()=>sF,isKind:()=>Wde,isRegularKind:()=>iF,isReplaceableKind:()=>sI});function iF(e){return e<1e4&&e!==0&&e!==3}function sI(e){return e===0||e===3||1e4<=e&&e<2e4}function sF(e){return 2e4<=e&&e<3e4}function aI(e){return 3e4<=e&&e<4e4}function Kde(e){return iF(e)?"regular":sI(e)?"replaceable":sF(e)?"ephemeral":aI(e)?"parameterized":"unknown"}function Wde(e,t){let n=t instanceof Array?t:[t];return iI(e)&&n.includes(e.kind)||!1}var Vde=0,aF=1,Gde=2,zde=3,Yde=4,Zde=5,cI=6,uI=7,Qde=8,Jde=9,Xde=10,epe=11,tpe=12,cF=13,uF=14,npe=15,lI=16,rpe=17,ope=20,ipe=21,spe=22,ape=24,lF=40,fF=41,dF=42,pF=43,hF=44,cpe=54,upe=64,lpe=818,fpe=1018,dpe=1021,ppe=1022,hpe=1040,gF=1059,gpe=1063,mpe=1068,ype=1111,vpe=1222,bpe=1227,_pe=1244,wpe=1311,Epe=1337,Spe=1617,xpe=1618,Ipe=1619,Ape=1621,Tpe=1622,Mpe=1630,Ope=1631,Ppe=1632,Cpe=1633,Dpe=1971,kpe=1984,Rpe=1984,Npe=1985,Lpe=1986,jpe=1987,Fpe=2003,qpe=2004,Bpe=2022,Upe=4454,Hpe=4455,$pe=4550,Kpe=5999,Wpe=6999,Vpe=7e3,Gpe=7374,zpe=7375,Ype=7376,Zpe=7516,Qpe=7517,Jpe=9e3,Xpe=9001,ehe=9002,the=9005,nhe=9007,rhe=9008,ohe=9009,ihe=9021,she=9022,ahe=9041,che=9321,uhe=9467,lhe=9734,fhe=9735,dhe=9802,phe=1e4,hhe=10001,ghe=10002,mhe=10003,yhe=10004,vhe=10005,bhe=10006,_he=10007,whe=10009,Ehe=10012,She=10013,xhe=10015,Ihe=10019,Ahe=10020,The=10021,Mhe=10030,Ohe=10044,Phe=10050,Che=10054,Dhe=10063,khe=10096,Rhe=10101,Nhe=10102,Lhe=10154,jhe=10164,Fhe=10166,qhe=10312,Bhe=10317,Uhe=10377,Hhe=11111,$he=13194,Khe=15128,Whe=17375,Vhe=21e3,mF=22242,yF=23194,Ghe=23195,zhe=24133,Yhe=24242,fI=27235,Zhe=3e4,Qhe=30001,Jhe=30002,Xhe=30003,ege=30004,tge=30005,nge=30007,rge=30008,oge=30009,ige=30015,sge=30017,age=30018,cge=30019,uge=30020,lge=30023,fge=30024,dge=30030,pge=30040,hge=30041,gge=30063,mge=30078,yge=30166,vge=30267,bge=30311,_ge=30312,wge=30313,Ege=30315,Sge=30388,xge=30402,Ige=30403,Age=30617,Tge=30618,Mge=30818,Oge=30819,Pge=31234,Cge=31388,Dge=31890,kge=31922,Rge=31923,Nge=31924,Lge=31925,jge=31987,Fge=31989,qge=31990,Bge=32267,Uge=34128,Hge=34237,$ge=34550,Kge=35128,Wge=37515,Vge=37516,Gge=38172,zge=38173,Yge=38383,Zge=39e3,Qge=39001,Jge=39002,Xge=39003,eme=39004,tme=39089,nme=39092,rme=39701;var ome={};Ge(ome,{getHex64:()=>dI,getInt:()=>vF,getSubscriptionId:()=>ime,matchEventId:()=>sme,matchEventKind:()=>cme,matchEventPubkey:()=>ame});function dI(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function vF(e,t){let n=t.length,r=e.indexOf(`"${t}":`)+n+3,o=e.slice(r),i=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,i),10)}function ime(e){let t=e.slice(0,22).indexOf('"EVENT"');if(t===-1)return null;let n=e.slice(t+7+1).indexOf('"');if(n===-1)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');if(o===-1)return null;let i=r+1+o;return e.slice(r+1,i)}function sme(e,t){return t===dI(e,"id")}function ame(e,t){return t===dI(e,"pubkey")}function cme(e,t){return t===vF(e,"kind")}var ume={};Ge(ume,{makeAuthEvent:()=>lme});function lme(e,t){return{kind:mF,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}var fme;try{fme=WebSocket}catch{}var dme=256,YNe=dme*2,ZNe=new TextEncoder;var pme;try{pme=WebSocket}catch{}var hme={};Ge(hme,{BECH32_REGEX:()=>bF,Bech32MaxSize:()=>pI,NostrTypeGuard:()=>gme,decode:()=>vy,decodeNostrURI:()=>yme,encodeBytes:()=>_y,naddrEncode:()=>Sme,neventEncode:()=>Eme,noteEncode:()=>_me,nprofileEncode:()=>wme,npubEncode:()=>bme,nsecEncode:()=>vme});var gme={isNProfile:e=>/^nprofile1[a-z\d]+$/.test(e||""),isNEvent:e=>/^nevent1[a-z\d]+$/.test(e||""),isNAddr:e=>/^naddr1[a-z\d]+$/.test(e||""),isNSec:e=>/^nsec1[a-z\d]{58}$/.test(e||""),isNPub:e=>/^npub1[a-z\d]{58}$/.test(e||""),isNote:e=>/^note1[a-z\d]+$/.test(e||""),isNcryptsec:e=>/^ncryptsec1[a-z\d]+$/.test(e||"")},pI=5e3,bF=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function mme(e){let t=new Uint8Array(4);return t[0]=e>>24&255,t[1]=e>>16&255,t[2]=e>>8&255,t[3]=e&255,t}function yme(e){try{return e.startsWith("nostr:")&&(e=e.substring(6)),vy(e)}catch{return{type:"invalid",data:null}}}function vy(e){let{prefix:t,words:n}=Jo.decode(e,pI),r=new Uint8Array(Jo.fromWords(n));switch(t){case"nprofile":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:Oe(o[0][0]),relays:o[1]?o[1].map(i=>Jr.decode(i)):[]}}}case"nevent":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:Oe(o[0][0]),relays:o[1]?o[1].map(i=>Jr.decode(i)):[],author:o[2]?.[0]?Oe(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(Oe(o[3][0]),16):void 0}}}case"naddr":{let o=Xx(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Jr.decode(o[0][0]),pubkey:Oe(o[2][0]),kind:parseInt(Oe(o[3][0]),16),relays:o[1]?o[1].map(i=>Jr.decode(i)):[]}}}case"nsec":return{type:t,data:r};case"npub":case"note":return{type:t,data:Oe(r)};default:throw new Error(`unknown prefix ${t}`)}}function Xx(e){let t={},n=e;for(;n.length>0;){if(n.length<2)throw new Error("not enough data to read TLV");let r=n[0],o=n[1],i=n.slice(2,2+o);if(n=n.slice(2+o),i.length<o)throw new Error(`not enough data to read on TLV ${r}`);t[r]=t[r]||[],t[r].push(i)}return t}function vme(e){return _y("nsec",e)}function bme(e){return _y("npub",Le(e))}function _me(e){return _y("note",Le(e))}function by(e,t){let n=Jo.toWords(t);return Jo.encode(e,n,pI)}function _y(e,t){return by(e,t)}function wme(e){let t=hI({0:[Le(e.pubkey)],1:(e.relays||[]).map(n=>Pn.encode(n))});return by("nprofile",t)}function Eme(e){let t;e.kind!==void 0&&(t=mme(e.kind));let n=hI({0:[Le(e.id)],1:(e.relays||[]).map(r=>Pn.encode(r)),2:e.author?[Le(e.author)]:[],3:t?[new Uint8Array(t)]:[]});return by("nevent",n)}function Sme(e){let t=new ArrayBuffer(4);new DataView(t).setUint32(0,e.kind,!1);let n=hI({0:[Pn.encode(e.identifier)],1:(e.relays||[]).map(r=>Pn.encode(r)),2:[Le(e.pubkey)],3:[new Uint8Array(t)]});return by("naddr",n)}function hI(e){let t=[];return Object.entries(e).reverse().forEach(([n,r])=>{r.forEach(o=>{let i=new Uint8Array(o.length+2);i.set([parseInt(n)],0),i.set([o.length],1),i.set(o,2),t.push(i)})}),ft(...t)}var xme={};Ge(xme,{decrypt:()=>Ime,encrypt:()=>_F});function _F(e,t,n){let r=e instanceof Uint8Array?e:Le(e),o=El.getSharedSecret(r,Le("02"+t)),i=wF(o),s=Uint8Array.from(Kn(16)),a=Pn.encode(n),c=zx(i,s).encrypt(a),u=Vn.encode(new Uint8Array(c)),l=Vn.encode(new Uint8Array(s.buffer));return`${u}?iv=${l}`}function Ime(e,t,n){let r=e instanceof Uint8Array?e:Le(e),[o,i]=n.split("?iv="),s=El.getSharedSecret(r,Le("02"+t)),a=wF(s),c=Vn.decode(i),u=Vn.decode(o),l=zx(a,c).decrypt(u);return Jr.decode(l)}function wF(e){return e.slice(1,33)}var Ame={};Ge(Ame,{NIP05_REGEX:()=>gI,isNip05:()=>Tme,isValid:()=>Pme,queryProfile:()=>EF,searchDomain:()=>Ome,useFetchImplementation:()=>Mme});var gI=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,Tme=e=>gI.test(e||""),wy;try{wy=fetch}catch{}function Mme(e){wy=e}async function Ome(e,t=""){try{let n=`https://${e}/.well-known/nostr.json?name=${t}`,r=await wy(n,{redirect:"manual"});if(r.status!==200)throw Error("Wrong response code");return(await r.json()).names}catch{return{}}}async function EF(e){let t=e.match(gI);if(!t)return null;let[,n="_",r]=t;try{let o=`https://${r}/.well-known/nostr.json?name=${n}`,i=await wy(o,{redirect:"manual"});if(i.status!==200)throw Error("Wrong response code");let s=await i.json(),a=s.names[n];return a?{pubkey:a,relays:s.relays?.[a]}:null}catch{return null}}async function Pme(e,t){let n=await EF(t);return n?n.pubkey===e:!1}var Cme={};Ge(Cme,{parse:()=>Dme});function Dme(e){let t={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]},n,r;for(let o=e.tags.length-1;o>=0;o--){let i=e.tags[o];if(i[0]==="e"&&i[1]&&fn(i[1])){let[s,a,c,u,l]=i,f={id:a,relays:c?[c]:[],author:l&&fn(l)?l:void 0};if(u==="root"){t.root=f;continue}if(u==="reply"){t.reply=f;continue}if(u==="mention"){t.mentions.push(f);continue}n?r=f:n=f,t.mentions.push(f);continue}if(i[0]==="q"&&i[1]&&fn(i[1])){let[s,a,c]=i;t.quotes.push({id:a,relays:c?[c]:[]})}if(i[0]==="p"&&i[1]&&fn(i[1])){t.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});continue}}return t.root||(t.root=r||n||t.reply),t.reply||(t.reply=n||t.root),[t.reply,t.root].forEach(o=>{if(!o)return;let i=t.mentions.indexOf(o);if(i!==-1&&t.mentions.splice(i,1),o.author){let s=t.profiles.find(a=>a.pubkey===o.author);s&&s.relays&&(o.relays||(o.relays=[]),s.relays.forEach(a=>{o.relays?.indexOf(a)===-1&&o.relays.push(a)}),s.relays=o.relays)}}),t.mentions.forEach(o=>{if(o.author){let i=t.profiles.find(s=>s.pubkey===o.author);i&&i.relays&&(o.relays||(o.relays=[]),i.relays.forEach(s=>{o.relays.indexOf(s)===-1&&o.relays.push(s)}),i.relays=o.relays)}}),t}var kme={};Ge(kme,{fetchRelayInformation:()=>Nme,useFetchImplementation:()=>Rme});var SF;try{SF=fetch}catch{}function Rme(e){SF=e}async function Nme(e){return await(await fetch(e.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()}var Lme={};Ge(Lme,{getPow:()=>jme,minePow:()=>qme});function jme(e){let t=0;for(let n=0;n<64;n+=8){let r=parseInt(e.substring(n,n+8),16);if(r===0)t+=32;else{t+=Math.clz32(r);break}}return t}function Fme(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r===0)t+=8;else{t+=Math.clz32(r)-24;break}}return t}function qme(e,t){let n=0,r=e,o=["nonce",n.toString(),t.toString()];for(r.tags.push(o);;){let i=Math.floor(new Date().getTime()/1e3);i!==r.created_at&&(n=0,r.created_at=i),o[1]=(++n).toString();let s=Ut(Pn.encode(JSON.stringify([0,r.pubkey,r.created_at,r.kind,r.tags,r.content])));if(Fme(s)>=t){r.id=Oe(s);break}}return r}var Bme={};Ge(Bme,{unwrapEvent:()=>Qme,unwrapManyEvents:()=>Jme,wrapEvent:()=>LF,wrapManyEvents:()=>Zme});var Ume={};Ge(Ume,{createRumor:()=>DF,createSeal:()=>kF,createWrap:()=>RF,unwrapEvent:()=>SI,unwrapManyEvents:()=>NF,wrapEvent:()=>my,wrapManyEvents:()=>zme});var Hme={};Ge(Hme,{decrypt:()=>EI,encrypt:()=>wI,getConversationKey:()=>bI,v2:()=>Vme});var mI=1,yI=4294967295,vI=65536;function bI(e,t){let n=El.getSharedSecret(e,Le("02"+t)).subarray(1,33);return Jj(Ut,n,Pn.encode("nip44-v2"))}function xF(e,t){let n=Xj(Ut,e,t,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}}function _I(e){if(!Number.isSafeInteger(e)||e<1)throw new Error("expected positive integer");if(e<=32)return 32;let t=2**(Math.floor(Math.log2(e-1))+1),n=t<=256?32:t/8;return n*(Math.floor((e-1)/n)+1)}function $me(e){if(!Number.isSafeInteger(e)||e<mI||e>65535)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");let t=new Uint8Array(2);return new DataView(t.buffer).setUint16(0,e,!1),t}function Kme(e){if(!Number.isSafeInteger(e)||e<vI||e>yI)throw new Error("invalid plaintext size: must be between 65536 and 4294967295 bytes");let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!1),t}function IF(e){let t=Pn.encode(e),n=t.length;if(n<mI||n>yI)throw new Error("invalid plaintext size: must be between 1 and 4294967295 bytes");let r=n>=vI?ft(new Uint8Array([0,0]),Kme(n)):$me(n),o=new Uint8Array(_I(n)-n);return ft(r,t,o)}function AF(e){let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0),r,o;if(n===0){if(r=t.getUint32(2),r<vI)throw new Error("invalid padding");o=6}else r=n,o=2;let i=e.subarray(o,o+r);if(r<mI||r>yI||i.length!==r||e.length!==o+_I(r))throw new Error("invalid padding");return Jr.decode(i)}function TF(e,t,n){if(n.length!==32)throw new Error("AAD associated data must be 32 bytes");let r=ft(n,t);return Zo(Ut,e,r)}function Wme(e){if(typeof e!="string")throw new Error("payload must be a valid string");let t=e.length;if(t<132)throw new Error("invalid payload length: "+t);if(e[0]==="#")throw new Error("unknown encryption version");let n;try{n=Vn.decode(e)}catch(i){throw new Error("invalid base64: "+i.message)}let r=n.length;if(r<99)throw new Error("invalid data length: "+r);let o=n[0];if(o!==2)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}function wI(e,t,n=Kn(32)){let{chacha_key:r,chacha_nonce:o,hmac_key:i}=xF(t,n),s=IF(e),a=dy(r,o,s),c=TF(i,a,n);return Vn.encode(ft(new Uint8Array([2]),n,a,c))}function EI(e,t){let{nonce:n,ciphertext:r,mac:o}=Wme(e),{chacha_key:i,chacha_nonce:s,hmac_key:a}=xF(t,n),c=TF(a,r,n);if(!Il(c,o))throw new Error("invalid MAC");let u=dy(i,s,r);return AF(u)}var Vme={utils:{getConversationKey:bI,calcPaddedLen:_I,pad:IF,unpad:AF},encrypt:wI,decrypt:EI},Gme=2880*60,MF=()=>Math.round(Date.now()/1e3),OF=()=>Math.round(MF()-Math.random()*Gme),PF=(e,t)=>bI(e,t),CF=(e,t,n)=>wI(JSON.stringify(e),PF(t,n)),eF=(e,t)=>JSON.parse(EI(e.content,PF(t,e.pubkey)));function DF(e,t){let n={created_at:MF(),content:"",tags:[],...e,pubkey:dc(t)};return n.id=hy(n),n}function kF(e,t,n){return En({kind:cF,content:CF(e,t,n),created_at:OF(),tags:[]},t)}function RF(e,t){let n=Hde();return En({kind:gF,content:CF(e,n,t),created_at:OF(),tags:[["p",t]]},n)}function my(e,t,n){let r=DF(e,t),o=kF(r,t,n);return RF(o,n)}function zme(e,t,n){if(!n||n.length===0)throw new Error("At least one recipient is required.");let r=dc(t),o=[my(e,t,r)];return n.forEach(i=>{o.push(my(e,t,i))}),o}function SI(e,t){let n=eF(e,t);return eF(n,t)}function NF(e,t){let n=[];return e.forEach(r=>{n.push(SI(r,t))}),n.sort((r,o)=>r.created_at-o.created_at),n}function Yme(e,t,n,r){let o={created_at:Math.ceil(Date.now()/1e3),kind:uF,tags:[],content:t};return(Array.isArray(e)?e:[e]).forEach(({publicKey:s,relayUrl:a})=>{o.tags.push(a?["p",s,a]:["p",s])}),r&&o.tags.push(["e",r.eventId,r.relayUrl||"","reply"]),n&&o.tags.push(["subject",n]),o}function LF(e,t,n,r,o){let i=Yme(t,n,r,o);return my(i,e,t.publicKey)}function Zme(e,t,n,r,o){if(!t||t.length===0)throw new Error("At least one recipient is required.");return[{publicKey:dc(e)},...t].map(s=>LF(e,s,n,r,o))}var Qme=SI,Jme=NF,Xme={};Ge(Xme,{finishRepostEvent:()=>eye,getRepostedEvent:()=>tye,getRepostedEventPointer:()=>jF});function eye(e,t,n,r){let o,i=[...e.tags??[],["e",t.id,n],["p",t.pubkey]];return t.kind===aF?o=cI:(o=lI,i.push(["k",String(t.kind)])),En({kind:o,tags:i,content:e.content===""||t.tags?.find(s=>s[0]==="-")?"":JSON.stringify(t),created_at:e.created_at},r)}function jF(e){if(![cI,lI].includes(e.kind))return;let t,n;for(let r=e.tags.length-1;r>=0&&(t===void 0||n===void 0);r--){let o=e.tags[r];o.length>=2&&(o[0]==="e"&&t===void 0?t=o:o[0]==="p"&&n===void 0&&(n=o))}if(t!==void 0)return{id:t[1],relays:[t[2],n?.[2]].filter(r=>typeof r=="string"),author:n?.[1]}}function tye(e,{skipVerification:t}={}){let n=jF(e);if(n===void 0||e.content==="")return;let r;try{r=JSON.parse(e.content)}catch{return}if(r.id===n.id&&!(!t&&!Tl(r)))return r}var nye={};Ge(nye,{NOSTR_URI_REGEX:()=>xI,parse:()=>oye,test:()=>rye});var xI=new RegExp(`nostr:(${bF.source})`);function rye(e){return typeof e=="string"&&new RegExp(`^${xI.source}$`).test(e)}function oye(e){let t=e.match(new RegExp(`^${xI.source}$`));if(!t)throw new Error(`Invalid Nostr URI: ${e}`);return{uri:t[0],value:t[1],decoded:vy(t[1])}}var iye={};Ge(iye,{parse:()=>aye});function tF(e){if(e)return/^\d+$/.test(e)?parseInt(e,10):e}function FF(e,t){let n=e.indexOf(":"),r=e.indexOf(":",n+1);if(n===-1||r===-1)return;let o=parseInt(e.slice(0,n),10);if(Number.isNaN(o))return;let i=e.slice(n+1,r);if(fn(i))return{kind:o,pubkey:i,identifier:e.slice(r+1),relays:t?[t]:[]}}function nF(e){switch(e[0]){case"E":case"e":return!e[1]||!fn(e[1])?void 0:{id:e[1],relays:e[2]?[e[2]]:[],author:e[3]&&fn(e[3])?e[3]:void 0};case"A":case"a":return e[1]?FF(e[1],e[2]):void 0;case"I":case"i":return e[1]?{value:e[1],hint:e[2]}:void 0}}function sye(e){if(e[1]){if(e[1].includes(":"))return FF(e[1],e[2]);if(fn(e[1]))return{id:e[1],relays:e[2]?[e[2]]:[],author:e[3]&&fn(e[3])?e[3]:void 0}}}function rF(e){return e.findLast(t=>t.tagName==="A"||t.tagName==="a")?.pointer||e.findLast(t=>t.tagName==="I"||t.tagName==="i")?.pointer||e.findLast(t=>t.tagName==="E"||t.tagName==="e")?.pointer}function eI(e,t){if(!e||!("id"in e)||!e.author)return;let n=t.find(r=>r.pubkey===e.author);!n||!n.relays||(e.relays||(e.relays=[]),n.relays.forEach(r=>{e.relays.indexOf(r)===-1&&e.relays.push(r)}),n.relays=e.relays)}function aye(e){let t={root:void 0,rootKind:void 0,reply:void 0,replyKind:void 0,mentions:[],quotes:[],profiles:[]},n=[],r=[];for(let o of e.tags){if((o[0]==="E"||o[0]==="A"||o[0]==="I")&&o[1]){let i=nF(o);i&&n.push({tagName:o[0],pointer:i});continue}if((o[0]==="e"||o[0]==="a"||o[0]==="i")&&o[1]){let i=nF(o);i&&r.push({tagName:o[0],pointer:i});continue}if(o[0]==="K"){t.rootKind=tF(o[1]);continue}if(o[0]==="k"){t.replyKind=tF(o[1]);continue}if(o[0]==="q"){let i=sye(o);i&&t.quotes.push(i);continue}(o[0]==="P"||o[0]==="p")&&o[1]&&fn(o[1])&&t.profiles.push({pubkey:o[1],relays:o[2]?[o[2]]:[]})}return t.root=rF(n),t.reply=rF(r),eI(t.root,t.profiles),eI(t.reply,t.profiles),t.quotes.forEach(o=>eI(o,t.profiles)),t}var cye={};Ge(cye,{finishReactionEvent:()=>uye,getReactedEventPointer:()=>lye});function uye(e,t,n){let r=t.tags.filter(o=>o.length>=2&&(o[0]==="e"||o[0]==="p"));return En({...e,kind:uI,tags:[...e.tags??[],...r,["e",t.id],["p",t.pubkey]],content:e.content??"+"},n)}function lye(e){if(e.kind!==uI)return;let t,n;for(let r=e.tags.length-1;r>=0&&(t===void 0||n===void 0);r--){let o=e.tags[r];o.length>=2&&(o[0]==="e"&&t===void 0?t=o:o[0]==="p"&&n===void 0&&(n=o))}if(!(t===void 0||n===void 0))return{id:t[1],relays:[t[2],n[2]].filter(r=>r!==void 0),author:n[1]}}var fye={};Ge(fye,{parse:()=>pye});var tI=/\W/m,oF=/[^\w\/] |[^\w\/]$|$|,| /m,dye=42;function*pye(e){let t=[];if(typeof e!="string"){for(let i=0;i<e.tags.length;i++){let s=e.tags[i];s[0]==="emoji"&&s.length>=3&&t.push({type:"emoji",shortcode:s[1],url:s[2]})}e=e.content}let n=e.length,r=0,o=0;e:for(;o<n;){let i=e.indexOf(":",o),s=e.indexOf("#",o);if(i===-1&&s===-1)break e;if(i===-1||s>=0&&s<i){if(s===0||e[s-1].match(tI)){let a=e.slice(s+1,s+dye).match(tI),c=a?s+1+a.index:n;yield{type:"text",text:e.slice(r,s)},yield{type:"hashtag",value:e.slice(s+1,c)},o=c,r=o;continue e}o=s+1;continue e}if(e.slice(i-5,i)==="nostr"){let a=e.slice(i+60).match(tI),c=a?i+60+a.index:n;try{let u,{data:l,type:f}=vy(e.slice(i+1,c));switch(f){case"npub":u={pubkey:l};break;case"note":u={id:l};break;case"nsec":o=c+1;continue;default:u=l}r!==i-5&&(yield{type:"text",text:e.slice(r,i-5)}),yield{type:"reference",pointer:u},o=c,r=o;continue e}catch{o=i+1;continue e}}else if(e.slice(i-5,i)==="https"||e.slice(i-4,i)==="http"){let a=e.slice(i+4).match(oF),c=a?i+4+a.index:n,u=e[i-1]==="s"?5:4;try{let l=new URL(e.slice(i-u,c));if(l.hostname.indexOf(".")===-1)throw new Error("invalid url");if(r!==i-u&&(yield{type:"text",text:e.slice(r,i-u)}),/\.(png|jpe?g|gif|webp|heic|svg)$/i.test(l.pathname)){yield{type:"image",url:l.toString()},o=c,r=o;continue e}if(/\.(mp4|avi|webm|mkv|mov)$/i.test(l.pathname)){yield{type:"video",url:l.toString()},o=c,r=o;continue e}if(/\.(mp3|aac|ogg|opus|wav|flac)$/i.test(l.pathname)){yield{type:"audio",url:l.toString()},o=c,r=o;continue e}yield{type:"url",url:l.toString()},o=c,r=o;continue e}catch{o=c+1;continue e}}else if(e.slice(i-3,i)==="wss"||e.slice(i-2,i)==="ws"){let a=e.slice(i+4).match(oF),c=a?i+4+a.index:n,u=e[i-1]==="s"?3:2;try{let l=new URL(e.slice(i-u,c));if(l.hostname.indexOf(".")===-1)throw new Error("invalid ws url");r!==i-u&&(yield{type:"text",text:e.slice(r,i-u)}),yield{type:"relay",url:l.toString()},o=c,r=o;continue e}catch{o=c+1;continue e}}else{for(let a=0;a<t.length;a++){let c=t[a];if(e[i+c.shortcode.length+1]===":"&&e.slice(i+1,i+c.shortcode.length+1)===c.shortcode){r!==i&&(yield{type:"text",text:e.slice(r,i)}),yield c,o=i+c.shortcode.length+2,r=o;continue e}}o=i+1;continue e}}r!==n&&(yield{type:"text",text:e.slice(r)})}var hye={};Ge(hye,{channelCreateEvent:()=>gye,channelHideMessageEvent:()=>vye,channelMessageEvent:()=>yye,channelMetadataEvent:()=>mye,channelMuteUserEvent:()=>bye});var gye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:lF,tags:[...e.tags??[]],content:n,created_at:e.created_at},t)},mye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:fF,tags:[["e",e.channel_create_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},yye=(e,t)=>{let n=[["e",e.channel_create_event_id,e.relay_url,"root"]];return e.reply_to_channel_message_event_id&&n.push(["e",e.reply_to_channel_message_event_id,e.relay_url,"reply"]),En({kind:dF,tags:[...n,...e.tags??[]],content:e.content,created_at:e.created_at},t)},vye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:pF,tags:[["e",e.channel_message_event_id],...e.tags??[]],content:n,created_at:e.created_at},t)},bye=(e,t)=>{let n;if(typeof e.content=="object")n=JSON.stringify(e.content);else if(typeof e.content=="string")n=e.content;else return;return En({kind:hF,tags:[["p",e.pubkey_to_mute],...e.tags??[]],content:n,created_at:e.created_at},t)},_ye={};Ge(_ye,{EMOJI_SHORTCODE_REGEX:()=>qF,matchAll:()=>wye,regex:()=>II,replaceAll:()=>Eye});var qF=/:(\w+):/,II=()=>new RegExp(`\\B${qF.source}\\B`,"g");function*wye(e){let t=e.matchAll(II());for(let n of t)try{let[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function Eye(e,t){return e.replaceAll(II(),(n,r)=>t({shortcode:n,name:r}))}var Sye={};Ge(Sye,{useFetchImplementation:()=>xye,validateGithub:()=>Iye});var AI;try{AI=fetch}catch{}function xye(e){AI=e}async function Iye(e,t,n){try{return await(await AI(`https://gist.github.com/${t}/${n}/raw`)).text()===`Verifying that I control the following Nostr public key: ${e}`}catch{return!1}}var Aye={};Ge(Aye,{makeNwcRequestEvent:()=>Mye,parseConnectionString:()=>Tye});function Tye(e){let{host:t,pathname:n,searchParams:r}=new URL(e),o=n||t,i=r.getAll("relay"),s=r.get("secret");if(!o||i.length===0||!s)throw new Error("invalid connection string");return{pubkey:o,relay:i[0],relays:i,secret:s}}async function Mye(e,t,n){let o=_F(t,e,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),i={kind:yF,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",e]]};return En(i,t)}var Oye={};Ge(Oye,{normalizeIdentifier:()=>Pye});function Pye(e){return e=e.trim().toLowerCase(),e=e.normalize("NFKC"),Array.from(e).map(t=>/\p{Letter}/u.test(t)||/\p{Number}/u.test(t)?t:"-").join("")}var Cye={};Ge(Cye,{getSatoshisAmountFromBolt11:()=>jye,getZapEndpoint:()=>kye,makeZapReceipt:()=>Lye,makeZapRequest:()=>Rye,useFetchImplementation:()=>Dye,validateZapRequest:()=>Nye});var TI;try{TI=fetch}catch{}function Dye(e){TI=e}async function kye(e){try{let t="",{lud06:n,lud16:r}=JSON.parse(e.content);if(r){let[s,a]=r.split("@");t=new URL(`/.well-known/lnurlp/${s}`,`https://${a}`).toString()}else if(n){let{words:s}=Jo.decode(n,1e3),a=Jo.fromWords(s);t=Jr.decode(a)}else return null;let i=await(await TI(t)).json();if(i.allowsNostr&&i.nostrPubkey)return i.callback}catch{}return null}function Rye(e){let t={kind:9734,created_at:Math.round(Date.now()/1e3),content:e.comment||"",tags:[["p","pubkey"in e?e.pubkey:e.event.pubkey],["amount",e.amount.toString()],["relays",...e.relays]]};if("event"in e){if(t.tags.push(["e",e.event.id]),sI(e.event.kind)){let n=["a",`${e.event.kind}:${e.event.pubkey}:`];t.tags.push(n)}else if(aI(e.event.kind)){let n=e.event.tags.find(([o,i])=>o==="d"&&i);if(!n)throw new Error("d tag not found or is empty");let r=["a",`${e.event.kind}:${e.event.pubkey}:${n[1]}`];t.tags.push(r)}t.tags.push(["k",e.event.kind.toString()])}return t}function Nye(e){let t;try{t=JSON.parse(e)}catch{return"Invalid zap request JSON."}if(!iI(t))return"Zap request is not a valid Nostr event.";if(!Tl(t))return"Invalid signature on zap request.";let n=t.tags.find(([i,s])=>i==="p"&&s);if(!n)return"Zap request doesn't have a 'p' tag.";if(!fn(n[1]))return"Zap request 'p' tag is not valid hex.";let r=t.tags.find(([i,s])=>i==="e"&&s);return r&&!fn(r[1])?"Zap request 'e' tag is not valid hex.":t.tags.find(([i,s])=>i==="relays"&&s)?null:"Zap request doesn't have a 'relays' tag."}function Lye({zapRequest:e,preimage:t,bolt11:n,paidAt:r}){let o=JSON.parse(e),i=o.tags.filter(([a])=>a==="e"||a==="p"||a==="a"),s={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...i,["P",o.pubkey],["bolt11",n],["description",e]]};return t&&s.tags.push(["preimage",t]),s}function jye(e){if(e.length<50)return 0;e=e.substring(0,50);let t=e.lastIndexOf("1");if(t===-1)return 0;let n=e.substring(0,t);if(!n.startsWith("lnbc"))return 0;let r=n.substring(4);if(r.length<1)return 0;let o=r[r.length-1],i=o.charCodeAt(0)-48,s=i>=0&&i<=9,a=r.length-1;if(s&&a++,a<1)return 0;let c=parseInt(r.substring(0,a));switch(o){case"m":return c*1e5;case"u":return c*100;case"n":return c/10;case"p":return c/1e4;default:return c*1e8}}var Fye={};Ge(Fye,{Negentropy:()=>UF,NegentropyStorageVector:()=>Uye,NegentropySync:()=>Hye});var nI=97,fc=32,BF=16,ns={Skip:0,Fingerprint:1,IdList:2},Qr=class{_raw;length;constructor(e){typeof e=="number"?(this._raw=new Uint8Array(e),this.length=0):e instanceof Uint8Array?(this._raw=new Uint8Array(e),this.length=e.length):(this._raw=new Uint8Array(512),this.length=0)}unwrap(){return this._raw.subarray(0,this.length)}get capacity(){return this._raw.byteLength}extend(e){if(e instanceof Qr&&(e=e.unwrap()),typeof e.length!="number")throw Error("bad length");let t=e.length+this.length;if(this.capacity<t){let n=this._raw,r=Math.max(this.capacity*2,t);this._raw=new Uint8Array(r),this._raw.set(n)}this._raw.set(e,this.length),this.length+=e.length}shift(){let e=this._raw[0];return this._raw=this._raw.subarray(1),this.length--,e}shiftN(e=1){let t=this._raw.subarray(0,e);return this._raw=this._raw.subarray(e),this.length-=e,t}};function py(e){let t=0;for(;;){if(e.length===0)throw Error("parse ends prematurely");let n=e.shift();if(t=t<<7|n&127,(n&128)===0)break}return t}function Zr(e){if(e===0)return new Qr(new Uint8Array([0]));let t=[];for(;e!==0;)t.push(e&127),e>>>=7;t.reverse();for(let n=0;n<t.length-1;n++)t[n]|=128;return new Qr(new Uint8Array(t))}function qye(e){return gy(e,1)[0]}function gy(e,t){if(e.length<t)throw Error("parse ends prematurely");return e.shiftN(t)}var Bye=class{buf;constructor(){this.setToZero()}setToZero(){this.buf=new Uint8Array(fc)}add(e){let t=0,n=0,r=new DataView(this.buf.buffer),o=new DataView(e.buffer);for(let i=0;i<8;i++){let s=i*4,a=r.getUint32(s,!0),c=o.getUint32(s,!0),u=a;u+=t,u+=c,u>4294967295&&(n=1),r.setUint32(s,u&4294967295,!0),t=n,n=0}}negate(){let e=new DataView(this.buf.buffer);for(let n=0;n<8;n++){let r=n*4;e.setUint32(r,~e.getUint32(r,!0))}let t=new Uint8Array(fc);t[0]=1,this.add(t)}getFingerprint(e){let t=new Qr;return t.extend(this.buf),t.extend(Zr(e)),Ut(t.unwrap()).subarray(0,BF)}},Uye=class{items;sealed;constructor(){this.items=[],this.sealed=!1}insert(e,t){if(this.sealed)throw Error("already sealed");let n=Le(t);if(n.byteLength!==fc)throw Error("bad id size for added item");this.items.push({timestamp:e,id:n})}seal(){if(this.sealed)throw Error("already sealed");this.sealed=!0,this.items.sort(rI);for(let e=1;e<this.items.length;e++)if(rI(this.items[e-1],this.items[e])===0)throw Error("duplicate item inserted")}unseal(){this.sealed=!1}size(){return this._checkSealed(),this.items.length}getItem(e){if(this._checkSealed(),e>=this.items.length)throw Error("out of range");return this.items[e]}iterate(e,t,n){this._checkSealed(),this._checkBounds(e,t);for(let r=e;r<t&&n(this.items[r],r);++r);}findLowerBound(e,t,n){return this._checkSealed(),this._checkBounds(e,t),this._binarySearch(this.items,e,t,r=>rI(r,n)<0)}fingerprint(e,t){let n=new Bye;return n.setToZero(),this.iterate(e,t,r=>(n.add(r.id),!0)),n.getFingerprint(t-e)}_checkSealed(){if(!this.sealed)throw Error("not sealed")}_checkBounds(e,t){if(e>t||t>this.items.length)throw Error("bad range")}_binarySearch(e,t,n,r){let o=n-t;for(;o>0;){let i=t,s=Math.floor(o/2);i+=s,r(e[i])?(t=++i,o-=s+1):o=s}return t}},UF=class{storage;frameSizeLimit;lastTimestampIn;lastTimestampOut;constructor(e,t=6e4){if(t<4096)throw Error("frameSizeLimit too small");this.storage=e,this.frameSizeLimit=t,this.lastTimestampIn=0,this.lastTimestampOut=0}_bound(e,t){return{timestamp:e,id:t||new Uint8Array(0)}}initiate(){let e=new Qr;return e.extend(new Uint8Array([nI])),this.splitRange(0,this.storage.size(),this._bound(Number.MAX_VALUE),e),Oe(e.unwrap())}reconcile(e,t,n){let r=new Qr(Le(e));this.lastTimestampIn=this.lastTimestampOut=0;let o=new Qr;o.extend(new Uint8Array([nI]));let i=qye(r);if(i<96||i>111)throw Error("invalid negentropy protocol version byte");if(i!==nI)throw Error("unsupported negentropy protocol version requested: "+(i-96));let s=this.storage.size(),a=this._bound(0),c=0,u=!1;for(;r.length!==0;){let l=new Qr,f=()=>{u&&(u=!1,l.extend(this.encodeBound(a)),l.extend(Zr(ns.Skip)))},d=this.decodeBound(r),p=py(r),h=c,m=this.storage.findLowerBound(c,s,d);if(p===ns.Skip)u=!0;else if(p===ns.Fingerprint){let y=gy(r,BF),v=this.storage.fingerprint(h,m);HF(y,v)!==0?(f(),this.splitRange(h,m,d,l)):u=!0}else if(p===ns.IdList){let y=py(r),v={};for(let w=0;w<y;w++){let A=gy(r,fc);v[Oe(A)]=A}if(u=!0,this.storage.iterate(h,m,w=>{let A=w.id,P=Oe(A);return v[P]?delete v[Oe(A)]:t?.(P),!0}),n)for(let w of Object.values(v))n(Oe(w))}else throw Error("unexpected mode");if(this.exceededFrameSizeLimit(o.length+l.length)){let y=this.storage.fingerprint(m,s);o.extend(this.encodeBound(this._bound(Number.MAX_VALUE))),o.extend(Zr(ns.Fingerprint)),o.extend(y);break}else o.extend(l);c=m,a=d}return o.length===1?null:Oe(o.unwrap())}splitRange(e,t,n,r){let o=t-e,i=16;if(o<i*2)r.extend(this.encodeBound(n)),r.extend(Zr(ns.IdList)),r.extend(Zr(o)),this.storage.iterate(e,t,s=>(r.extend(s.id),!0));else{let s=Math.floor(o/i),a=o%i,c=e;for(let u=0;u<i;u++){let l=s+(u<a?1:0),f=this.storage.fingerprint(c,c+l);c+=l;let d;if(c===t)d=n;else{let p,h;this.storage.iterate(c-1,c+1,(m,y)=>(y===c-1?p=m:h=m,!0)),d=this.getMinimalBound(p,h)}r.extend(this.encodeBound(d)),r.extend(Zr(ns.Fingerprint)),r.extend(f)}}}exceededFrameSizeLimit(e){return e>this.frameSizeLimit-200}decodeTimestampIn(e){let t=py(e);return t=t===0?Number.MAX_VALUE:t-1,this.lastTimestampIn===Number.MAX_VALUE||t===Number.MAX_VALUE?(this.lastTimestampIn=Number.MAX_VALUE,Number.MAX_VALUE):(t+=this.lastTimestampIn,this.lastTimestampIn=t,t)}decodeBound(e){let t=this.decodeTimestampIn(e),n=py(e);if(n>fc)throw Error("bound key too long");let r=gy(e,n);return{timestamp:t,id:r}}encodeTimestampOut(e){if(e===Number.MAX_VALUE)return this.lastTimestampOut=Number.MAX_VALUE,Zr(0);let t=e;return e-=this.lastTimestampOut,this.lastTimestampOut=t,Zr(e+1)}encodeBound(e){let t=new Qr;return t.extend(this.encodeTimestampOut(e.timestamp)),t.extend(Zr(e.id.length)),t.extend(e.id),t}getMinimalBound(e,t){if(t.timestamp!==e.timestamp)return this._bound(t.timestamp);{let n=0,r=t.id,o=e.id;for(let i=0;i<fc&&r[i]===o[i];i++)n++;return this._bound(t.timestamp,t.id.subarray(0,n+1))}}};function HF(e,t){for(let n=0;n<e.byteLength;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.byteLength>t.byteLength?1:e.byteLength<t.byteLength?-1:0}function rI(e,t){return e.timestamp===t.timestamp?HF(e.id,t.id):e.timestamp-t.timestamp}var Hye=class{relay;storage;neg;filter;subscription;onhave;onneed;constructor(e,t,n,r={}){this.relay=e,this.storage=t,this.neg=new UF(t),this.onhave=r.onhave,this.onneed=r.onneed,this.filter=n,this.subscription=this.relay.prepareSubscription([{}],{label:r.label||"negentropy"}),this.subscription.oncustom=o=>{switch(o[0]){case"NEG-MSG":{o.length<3&&console.warn(`got invalid NEG-MSG from ${this.relay.url}: ${o}`);try{let i=this.neg.reconcile(o[2],this.onhave,this.onneed);i?this.relay.send(`["NEG-MSG", "${this.subscription.id}", "${i}"]`):(this.close(),r.onclose?.())}catch(i){console.error("negentropy reconcile error:",i),r?.onclose?.(`reconcile error: ${i}`)}break}case"NEG-CLOSE":{let i=o[2];console.warn("negentropy error:",i),r.onclose?.(i);break}case"NEG-ERR":r.onclose?.()}}}async start(){let e=this.neg.initiate();this.relay.send(`["NEG-OPEN","${this.subscription.id}",${JSON.stringify(this.filter)},"${e}"]`)}close(){this.relay.send(`["NEG-CLOSE","${this.subscription.id}"]`),this.subscription.close()}},$ye={};Ge($ye,{getToken:()=>Kye,hashPayload:()=>MI,unpackEventFromToken:()=>KF,validateEvent:()=>ZF,validateEventKind:()=>VF,validateEventMethodTag:()=>zF,validateEventPayloadTag:()=>YF,validateEventTimestamp:()=>WF,validateEventUrlTag:()=>GF,validateToken:()=>Wye});var $F="Nostr ";async function Kye(e,t,n,r=!1,o){let i={kind:fI,tags:[["u",e],["method",t]],created_at:Math.round(new Date().getTime()/1e3),content:""};o&&i.tags.push(["payload",MI(o)]);let s=await n(i);return(r?$F:"")+Vn.encode(Pn.encode(JSON.stringify(s)))}async function Wye(e,t,n){let r=await KF(e).catch(i=>{throw i});return await ZF(r,t,n).catch(i=>{throw i})}async function KF(e){if(!e)throw new Error("Missing token");e=e.replace($F,"");let t=Jr.decode(Vn.decode(e));if(!t||t.length===0||!t.startsWith("{"))throw new Error("Invalid token");return JSON.parse(t)}function WF(e){return e.created_at?Math.round(new Date().getTime()/1e3)-e.created_at<60:!1}function VF(e){return e.kind===fI}function GF(e,t){let n=e.tags.find(r=>r[0]==="u");return n?n.length>0&&n[1]===t:!1}function zF(e,t){let n=e.tags.find(r=>r[0]==="method");return n?n.length>0&&n[1].toLowerCase()===t.toLowerCase():!1}function MI(e){let t=Ut(Pn.encode(JSON.stringify(e)));return Oe(t)}function YF(e,t){let n=e.tags.find(o=>o[0]==="payload");if(!n)return!1;let r=MI(t);return n.length>0&&n[1]===r}async function ZF(e,t,n,r){if(!Tl(e))throw new Error("Invalid nostr event, signature invalid");if(!VF(e))throw new Error("Invalid nostr event, kind invalid");if(!WF(e))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!GF(e,t))throw new Error("Invalid nostr event, url tag invalid");if(!zF(e,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&typeof r=="object"&&Object.keys(r).length>0&&!YF(e,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0}var QF={stalePacketMs:1e3,receiptStaleMs:3e3,pathRttBadMs:1500,pathDeliveryBad:.8,pathBanMs:3e4,pathMinSamples:5,rateBanMs:3e4,rateBanMaxMs:3e5,blockedBanMs:6e5,connectBackoffMs:2e3,connectBackoffMaxMs:3e5,publishTimeoutMs:4e3,bucketRate:8,bucketBurst:8,bucketMinRate:1,bucketMaxRate:20,bucketIncreaseEveryMs:1e4,maxEventPlaintext:49152,dupRelays:2,statsEveryMs:3e4,eventMaxAgeMs:3e4};var Ml=class{constructor(t,n){this.t=t;this.current=t.bucketRate,this.tokens=t.bucketBurst,this.refilledAt=n,this.changedAt=n}get rate(){return this.current}waitMs(t){return this.advance(t),this.tokens>=1?0:Math.ceil((1-this.tokens)/this.current*1e3)}take(t){return this.waitMs(t)>0?!1:(this.tokens-=1,!0)}penalize(t){this.advance(t),this.current=Math.max(this.t.bucketMinRate,this.current/2),this.tokens=Math.min(this.tokens,0),this.changedAt=t}advance(t){for(;t-this.changedAt>=this.t.bucketIncreaseEveryMs&&this.current<this.t.bucketMaxRate;)this.refill(this.changedAt+this.t.bucketIncreaseEveryMs),this.current=Math.min(this.t.bucketMaxRate,this.current+1),this.changedAt+=this.t.bucketIncreaseEveryMs;this.current>=this.t.bucketMaxRate&&(this.changedAt=Math.max(this.changedAt,t-this.t.bucketIncreaseEveryMs)),this.refill(t)}refill(t){t<=this.refilledAt||(this.tokens=Math.min(this.t.bucketBurst,this.tokens+(t-this.refilledAt)/1e3*this.current),this.refilledAt=t)}};var Vye=/^(blocked|restricted|pow|auth-required|invalid):/i,Gye=/rate|too many|slow down/i,zye=.3;function Yye(e){return/^duplicate:/i.test(e)?"duplicate":Vye.test(e)?"blocked":"rate"}var Zye=e=>Gye.test(e),Ey=class{constructor(t,n,r){this.url=t;this.t=n;this.counters={published:0,ok:0,rejected:0,notices:0,timeouts:0,received:0};this.connected=!1;this.connectFailures=0;this.bannedUntil=0;this.rateStrikes=0;this.bucket=new Ml(n,r)}onConnected(){this.connected=!0,this.connectFailures=0}useBucket(t,n){this.bucket=new Ml(t,n)}onDisconnected(){this.connected=!1}onConnectFailed(){this.connected=!1;let t=Math.min(this.t.connectBackoffMaxMs,this.t.connectBackoffMs*2**this.connectFailures);return this.connectFailures+=1,t}onPublish(){this.counters.published+=1}onOk(t){this.counters.ok+=1,this.rateStrikes=0,this.okRttMs=this.okRttMs===void 0?t:this.okRttMs+zye*(t-this.okRttMs)}onRejected(t,n){let r=Yye(t);if(r==="duplicate")return this.onOk(this.okRttMs??0);this.counters.rejected+=1,r==="blocked"?this.ban(n,this.t.blockedBanMs,t):this.rateBan(n,t)}onNotice(t,n){Zye(t)&&(this.counters.notices+=1,this.rateBan(n,t))}onTimeout(t){this.counters.timeouts+=1,this.rateBan(t,"publish timed out")}onUnresponsive(){this.counters.timeouts+=1}onReceived(){this.counters.received+=1}usable(t){return this.connected&&t>=this.bannedUntil}snapshot(t){this.bucket.waitMs(t);let n=t<this.bannedUntil,r=n?"banned":this.connected?"connected":this.connectFailures>0?"backoff":"connecting",o={url:this.url,state:r,rate:this.bucket.rate,okRttMs:this.okRttMs,counters:{...this.counters}};return n&&this.banReason&&(o.banReason=this.banReason),o}rateBan(t,n){this.bucket.penalize(t),this.ban(t,Math.min(this.t.rateBanMaxMs,this.t.rateBanMs*2**this.rateStrikes),n),this.rateStrikes+=1}ban(t,n,r){this.bannedUntil=Math.max(this.bannedUntil,t+n),this.banReason=r}};var PLe=new TextDecoder("utf-8"),CLe=new TextEncoder;function Qye(e){try{e.indexOf("://")===-1&&(e="wss://"+e);let t=new URL(e);return t.protocol==="http:"?t.protocol="ws:":t.protocol==="https:"&&(t.protocol="wss:"),t.pathname=t.pathname.replace(/\/+/g,"/"),t.pathname.endsWith("/")&&(t.pathname=t.pathname.slice(0,-1)),(t.port==="80"&&t.protocol==="ws:"||t.port==="443"&&t.protocol==="wss:")&&(t.port=""),t.searchParams.sort(),t.hash="",t.toString()}catch{throw new Error(`Invalid URL: ${e}`)}}var Jye=22242;function Xye(e,t){if(e.ids&&e.ids.indexOf(t.id)===-1||e.kinds&&e.kinds.indexOf(t.kind)===-1||e.authors&&e.authors.indexOf(t.pubkey)===-1)return!1;for(let n in e)if(n[0]==="#"){let r=n.slice(1),o=e[`#${r}`];if(o&&!t.tags.find(([i,s])=>i===n.slice(1)&&o.indexOf(s)!==-1))return!1}return!(e.since&&t.created_at<e.since||e.until&&t.created_at>e.until)}function eve(e,t){for(let n=0;n<e.length;n++)if(Xye(e[n],t))return!0;return!1}function tve(e,t){let n=t.length+3,r=e.indexOf(`"${t}":`)+n,o=e.slice(r).indexOf('"')+r+1;return e.slice(o,o+64)}function nve(e){let t=e.slice(0,22).indexOf('"EVENT"');if(t===-1)return null;let n=e.slice(t+7+1).indexOf('"');if(n===-1)return null;let r=t+7+1+n,o=e.slice(r+1,80).indexOf('"');if(o===-1)return null;let i=r+1+o;return e.slice(r+1,i)}function rve(e,t){return{kind:Jye,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e],["challenge",t]],content:""}}var OI=class extends Error{constructor(e,t){super(`Tried to send message '${e} on a closed connection to ${t}.`),this.name="SendingOnClosedConnection"}},PI=class{url;_connected=!1;onclose=null;onnotice=e=>console.debug(`NOTICE from ${this.url}: ${e}`);onauth;baseEoseTimeout=4400;publishTimeout=4400;pingFrequency=29e3;pingTimeout=2e4;resubscribeBackoff=[1e4,1e4,1e4,2e4,2e4,3e4,6e4];openSubs=new Map;enablePing;enableReconnect;idleTimeout=0;idleSince=Date.now();ongoingOperations=0;reconnectTimeoutHandle;pingIntervalHandle;reconnectAttempts=0;skipReconnection=!1;idleTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;challenge;authPromise;serial=0;verifyEvent;_WebSocket;constructor(e,t){this.url=Qye(e),this.verifyEvent=t.verifyEvent,this._WebSocket=t.websocketImplementation||WebSocket,this.enablePing=t.enablePing,this.enableReconnect=t.enableReconnect||!1,t.idleTimeout&&(this.idleTimeout=t.idleTimeout)}static async connect(e,t){let n=new PI(e,t);return await n.connect(t),n}closeAllSubscriptions(e){for(let[t,n]of this.openSubs)n.close(e);this.openSubs.clear();for(let[t,n]of this.openEventPublishes)n.reject(new Error(e));this.openEventPublishes.clear();for(let[t,n]of this.openCountRequests)n.reject(new Error(e));this.openCountRequests.clear()}get connected(){return this._connected}clearIdleTimeout(){this.idleTimeoutHandle&&(clearTimeout(this.idleTimeoutHandle),this.idleTimeoutHandle=void 0)}scheduleIdleClose(){this.clearIdleTimeout(),this.idleTimeout>0&&(this.idleTimeoutHandle=setTimeout(()=>{this.ongoingOperations===0&&this.idleSince&&this.close()},this.idleTimeout))}async reconnect(){let e=this.resubscribeBackoff[Math.min(this.reconnectAttempts,this.resubscribeBackoff.length-1)];this.reconnectAttempts++,this.reconnectTimeoutHandle=setTimeout(async()=>{try{await this.connect()}catch{}},e)}handleHardClose(e){this.ws&&(this.ws.onopen=null,this.ws.onerror=null,this.ws.onclose=null),this.pingIntervalHandle&&(clearInterval(this.pingIntervalHandle),this.pingIntervalHandle=void 0),this._connected=!1,this.connectionPromise=void 0,this.idleSince=void 0,this.clearIdleTimeout(),this.enableReconnect&&!this.skipReconnection?this.reconnect():(this.onclose?.(),this.closeAllSubscriptions(e))}async connect(e){let t;return this.connectionPromise?this.connectionPromise:(this.challenge=void 0,this.authPromise=void 0,this.skipReconnection=!1,this.connectionPromise=new Promise((n,r)=>{e?.timeout&&(t=setTimeout(()=>{r("connection timed out"),this.connectionPromise=void 0,this.reconnectAttempts===0&&(this.skipReconnection=!0),this.handleHardClose("relay connection timed out")},e.timeout)),e?.abort&&(e.abort.onabort=r);try{this.ws=new this._WebSocket(this.url)}catch(o){clearTimeout(t),r(o);return}this.ws.onopen=()=>{this.reconnectTimeoutHandle&&(clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0),clearTimeout(t),this._connected=!0;let o=this.reconnectAttempts>0;this.reconnectAttempts=0;for(let i of this.openSubs.values()){if(i.eosed=!1,o)for(let s=0;s<i.filters.length;s++)i.lastEmitted&&(i.filters[s].since=i.lastEmitted+1);i.fire()}this.enablePing&&(this.pingIntervalHandle=setInterval(()=>this.pingpong(),this.pingFrequency)),n()},this.ws.onerror=()=>{clearTimeout(t),r("connection failed"),this.connectionPromise=void 0,this.reconnectAttempts===0&&(this.skipReconnection=!0),this.handleHardClose("relay connection failed")},this.ws.onclose=o=>{clearTimeout(t),r(o.message||"websocket closed"),this.handleHardClose("relay connection closed")},this.ws.onmessage=this._onmessage.bind(this)}),this.connectionPromise)}waitForPingPong(){return new Promise(e=>{this.ws.once("pong",()=>e(!0)),this.ws.ping()})}waitForDummyReq(){return new Promise((e,t)=>{if(!this.connectionPromise)return t(new Error(`no connection to ${this.url}, can't ping`));try{let n=this.subscribe([{ids:["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"],limit:0}],{label:"<forced-ping>",oneose:()=>{e(!0),n.close()},onclose(){e(!0)},eoseTimeout:this.pingTimeout+1e3})}catch(n){t(n)}})}async pingpong(){this.ws?.readyState===1&&(await Promise.any([this.ws&&this.ws.ping&&this.ws.once?this.waitForPingPong():this.waitForDummyReq(),new Promise(t=>setTimeout(()=>t(!1),this.pingTimeout))])||this.ws?.readyState===this._WebSocket.OPEN&&this.ws?.close())}async send(e){if(!this.connectionPromise)throw new OI(e,this.url);this.connectionPromise.then(()=>{this.ws?.send(e)})}async auth(e){let t=this.challenge;if(!t)throw new Error("can't perform auth, no challenge was received");return this.authPromise?this.authPromise:(this.authPromise=new Promise(async(n,r)=>{try{let o=await e(rve(this.url,t)),i=setTimeout(()=>{let s=this.openEventPublishes.get(o.id);s&&(s.reject(new Error("auth timed out")),this.openEventPublishes.delete(o.id))},this.publishTimeout);this.openEventPublishes.set(o.id,{resolve:n,reject:r,timeout:i}),this.send('["AUTH",'+JSON.stringify(o)+"]")}catch(o){console.warn("subscribe auth function failed:",o)}}),this.authPromise)}async publish(e){this.idleSince=void 0,this.clearIdleTimeout(),this.ongoingOperations++;let t=new Promise((n,r)=>{let o=setTimeout(()=>{let i=this.openEventPublishes.get(e.id);i&&(i.reject(new Error("publish timed out")),this.openEventPublishes.delete(e.id))},this.publishTimeout);this.openEventPublishes.set(e.id,{resolve:n,reject:r,timeout:o})});try{await this.send('["EVENT",'+JSON.stringify(e)+"]")}catch(n){let r=this.openEventPublishes.get(e.id);r&&(r.reject(n),this.openEventPublishes.delete(e.id))}return this.ongoingOperations--,this.ongoingOperations===0&&(this.idleSince=Date.now(),this.scheduleIdleClose()),t}async count(e,t){return(await this.countWithHLL(e,t)).count}async countWithHLL(e,t){this.serial++;let n=t?.id||"count:"+this.serial,r=new Promise((o,i)=>{this.openCountRequests.set(n,{resolve:o,reject:i})});try{await this.send('["COUNT","'+n+'",'+JSON.stringify(e).substring(1))}catch(o){let i=this.openCountRequests.get(n);i&&(i.reject(o),this.openCountRequests.delete(n))}return r}subscribe(e,t){t.label!=="<forced-ping>"&&(this.idleSince=void 0,this.clearIdleTimeout(),this.ongoingOperations++);let n=this.prepareSubscription(e,t);return n.fire(),t.abort&&(t.abort.onabort=()=>n.close(String(t.abort.reason||"<aborted>"))),n}prepareSubscription(e,t){this.serial++;let n=t.id||(t.label?t.label+":":"sub:")+this.serial,r=new ove(this,n,e,t);return this.openSubs.set(n,r),r}close(){this.skipReconnection=!0,this.reconnectTimeoutHandle&&(clearTimeout(this.reconnectTimeoutHandle),this.reconnectTimeoutHandle=void 0),this.pingIntervalHandle&&(clearInterval(this.pingIntervalHandle),this.pingIntervalHandle=void 0),this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.connectionPromise=void 0,this.idleSince=void 0,this.clearIdleTimeout(),this.onclose?.(),this.ws&&(this.ws.onopen=null,this.ws.onerror=null,this.ws.onclose=null,this.ws.readyState!==this._WebSocket.CLOSING&&this.ws.readyState!==this._WebSocket.CLOSED&&this.ws.close())}_onmessage(e){let t=e.data;if(!t)return;let n=nve(t);if(n){let r=this.openSubs.get(n);if(!r)return;let o=tve(t,"id"),i=r.alreadyHaveEvent?.(o);if(r.receivedEvent?.(this,o),i)return}try{let r=JSON.parse(t);switch(r[0]){case"EVENT":{let o=this.openSubs.get(r[1]),i=r[2];eve(o.filters,i)&&this.verifyEvent(i,this.url)?o.onevent(i):o.oninvalidevent?.(i),(!o.lastEmitted||o.lastEmitted<i.created_at)&&(o.lastEmitted=i.created_at);return}case"COUNT":{let o=r[1],i=r[2],s=this.openCountRequests.get(o);s&&(s.resolve(i),this.openCountRequests.delete(o));return}case"EOSE":{let o=this.openSubs.get(r[1]);if(!o)return;o.receivedEose();return}case"OK":{let o=r[1],i=r[2],s=r[3],a=this.openEventPublishes.get(o);a&&(clearTimeout(a.timeout),i?a.resolve(s):a.reject(new Error(s)),this.openEventPublishes.delete(o));return}case"CLOSED":{let o=r[1],i=this.openSubs.get(o);if(!i){let s=this.openCountRequests.get(o);s&&(s.reject(new Error(r[2])),this.openCountRequests.delete(o));return}i.closed=!0,i.close(r[2]);return}case"NOTICE":{this.onnotice(r[1]);return}case"AUTH":{this.challenge=r[1],this.onauth&&this.auth(this.onauth).catch(o=>{if(!(o instanceof OI))throw o});return}default:{this.openSubs.get(r[1])?.oncustom?.(r);return}}}catch(r){try{let[o,i,s]=JSON.parse(t);console.warn(`[nostr] relay ${this.url} error processing message:`,r,s)}catch{console.warn(`[nostr] relay ${this.url} error processing message:`,r)}return}}},ove=class{relay;id;lastEmitted;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oninvalidevent;oneose;onclose;oncustom;eoseTimeout;eoseTimeoutHandle;constructor(e,t,n,r){if(n.length===0)throw new Error("subscription can't be created with zero filters");this.relay=e,this.filters=n,this.id=t,this.alreadyHaveEvent=r.alreadyHaveEvent,this.receivedEvent=r.receivedEvent,this.eoseTimeout=r.eoseTimeout||e.baseEoseTimeout,this.oneose=r.oneose,this.onclose=r.onclose,this.oninvalidevent=r.oninvalidevent,this.onevent=r.onevent||(o=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,o)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(e="closed by caller"){if(!this.closed&&this.relay.connected){try{this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]")}catch(t){if(!(t instanceof OI))throw t}this.closed=!0}this.relay.openSubs.delete(this.id),this.relay.ongoingOperations--,this.relay.ongoingOperations===0&&(this.relay.idleSince=Date.now(),this.relay.scheduleIdleClose()),this.onclose?.(e)}};var ive=5e3;function JF(e,t,n=new Ey(e,t,Date.now())){let r=d=>Date.now()-d.created_at*1e3<=t.eventMaxAgeMs,o=null,i=null,s=null,a,c=!1,u=()=>{if(!o?.connected||!s)return;let{filters:d,onEvent:p}=s,h=i;i=o.subscribe(d,{onevent:m=>{n.onReceived(),p(m)},eoseTimeout:6e4}),h?.close()},l=d=>{c||(clearTimeout(a),a=setTimeout(f,d))},f=()=>{if(c)return;let d=new PI(e,{verifyEvent:r});d.publishTimeout=t.publishTimeoutMs,d.onnotice=p=>n.onNotice(p,Date.now()),d.onclose=()=>{o===d&&(o=null,i=null,n.onDisconnected(),l(n.onConnectFailed()))},o=d,d.connect({timeout:ive}).then(()=>{if(c||o!==d)return d.close();n.onConnected(),u()},()=>{o===d&&(o=null,l(n.onConnectFailed()))})};return f(),{url:e,health:n,connected:()=>!!o?.connected,publish(d){let p=o;if(!p?.connected)return;n.onPublish();let h=Date.now();p.publish(d).then(()=>n.onOk(Date.now()-h),m=>{let y=m instanceof Error?m.message:String(m);y==="publish timed out"?n.onTimeout(Date.now()):p.connected&&n.onRejected(y,Date.now())})},subscribe(d,p){s=d?{filters:d,onEvent:p}:null,s?u():(i?.close(),i=null)},close(){c=!0,clearTimeout(a),i?.close(),o?.close(),o=null}}}import{chmodSync as uve,existsSync as lve,mkdirSync as fve,readFileSync as dve,writeFileSync as pve}from"node:fs";import{join as hve}from"node:path";var sve="planx nostr secp256k1 v1",XF=Uint8Array.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141".match(/../g)??[],e=>parseInt(e,16)),ave=new TextEncoder;function cve(e){if(e.every(t=>t===0))return!1;for(let t=0;t<e.length;t++)if(e[t]!==XF[t])return e[t]<XF[t];return!1}async function eq(e,t=sve){for(let n=0;;n++){let r=ave.encode(n===0?t:`${t}:${n}`),o=new Uint8Array(await crypto.subtle.deriveBits({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(0),info:r},e,256));if(cve(o))return o;o.fill(0)}}var gve="nostr.seed",mve="planx agent nostr v1",yve=/^[0-9a-f]{64}$/;function tq(e){let t=hve(e,gve),n=lve(t)?dve(t,"utf8").trim():"";if(yve.test(n))return Uint8Array.from(Buffer.from(n,"hex"));let r=crypto.getRandomValues(new Uint8Array(32));return fve(e,{recursive:!0}),pve(t,`${Buffer.from(r).toString("hex")}
90
+ `,{mode:384}),uve(t,384),r}async function nq(e,t){let n=await crypto.subtle.importKey("raw",Uint8Array.from(e),"HKDF",!1,["deriveBits"]);return eq(n,`${mve}:${t}`)}function pc(e){return e.sessionId??`pid:${e.pid}`}var vve="https://planx.machina.at/next/assets/sisters",bve=["blue-alice","green-bob","purple-carol","white-dave","black-eve","silver-frank","silver-kate","red-john","orange-mike"],_ve=new Set(bve);function rq(e){return`${vve}/${e&&_ve.has(e)?e:"machina"}.webp`}var iq=["t","planx-agent"],wve=30315,Eve="general",CI=e=>Math.floor(e/1e3),oq=e=>e.replace(/[^A-Za-z0-9_.-]+/g,"-"),Sve="\u{1F914} \u8003\u3048\u4E2D",xve="\u{1F4DD} ";function DI(e,t){return`${oq(e.sessionName??`claude-${e.pid}`)}.${oq(t)}`}function sq(e,t,n){let r={profiles:[],notes:[],statuses:[],next:new Map};for(let o of t){let i=pc(o),s=DI(o,n),a=rq(o.sessionName),c=e?.get(i),u=o.activity??c?.activity??null;r.next.set(i,{key:i,handle:s,picture:a,activity:u}),u!==null&&u!==c?.activity&&r.statuses.push({key:i,content:u}),(!c||c.handle!==s)&&r.profiles.push({key:i,handle:s,picture:a}),c&&u!==null&&u!==c.activity&&u!==Sve&&r.notes.push({key:i,content:u,thread:u.startsWith(xve)?"new":"continue"})}for(let o of e?.keys()??[])r.next.has(o)||r.statuses.push({key:o,content:""});return r}function aq(e,t=Date.now()){return{kind:0,created_at:CI(t),tags:[],content:JSON.stringify({name:e.handle,picture:e.picture})}}function cq(e,t=Date.now()){return{kind:wve,created_at:CI(t),tags:[["d",Eve],[...iq]],content:e.content}}function Ive(e){if(!e)return[];let t=["e",e.root,"","root"];return e.parent===e.root?[t]:[t,["e",e.parent,"","reply"]]}function uq(e,t=Date.now(),n=null){return{kind:1,created_at:CI(t),tags:[[...iq],...Ive(n)],content:e.content}}var Sy="planx-from",kI="planx-label",Ave="timeline";function lq(e,t,n){if(e.kind!==1||n.has(e.id))return[];n.add(e.id);let r=new Set(e.tags.filter(([o])=>o==="p").map(([,o])=>o));return t.filter(o=>o.pubkey!==e.pubkey&&r.has(o.pubkey))}function fq(e){let t=i=>e.tags.find(([s])=>s===i),n=t(Sy),r=t(kI)?.[1]||Ave,o=n?.[1]&&n[2]?{serverId:n[1],agentId:n[2],eventId:e.id}:{nostr:{pubkey:e.pubkey,eventId:e.id}};return{text:e.content,label:r,replyTo:o}}function Ove(e){if(!e||!Tve(e))return 0;let t=Number(Mve(e,"utf8").trim());return Number.isInteger(t)&&t>0?t:0}function Pve(e){return[...e.values()].filter(t=>t.activity!==null).map(t=>({key:t.key,content:t.activity}))}function dq(e){let t=e.now??Date.now,n=Math.floor(t()/1e3),r=tq(e.seedDir),o=new Map,i=new Set,s=new Map,a=new Map,c=null,u=0,l=!1,f=null,d=[],p="",h=P=>{let j=o.get(P)??nq(r,P);return o.set(P,j),j},m=P=>{let j=Math.max(Math.floor(t()/1e3),(s.get(P)??0)+1);return s.set(P,j),j*1e3},y=async(P,j)=>{let Q=En(j,await h(P));return c?.publish(Q),Q},v=async P=>{let j=P.thread==="continue"?a.get(P.key)??null:null,Q=await y(P.key,uq(P,t(),j));a.set(P.key,{root:j?.root??Q.id,parent:Q.id})},w=P=>{for(let j of lq(P,d,i)){let Q=Cl({target:j.socketPath,...fq(P)});e.deliver(j.socketPath,Q).catch(ue=>e.log(`nostr mention delivery failed: ${String(ue)}`))}},A=()=>{let P=Ove(e.nosturnPortFile);return P!==u&&(c?.close(),u=P,c=P?JF(`ws://127.0.0.1:${P}/`,QF):null,l=!1,p=""),c};return{async update(P){let j=A();if(!j?.connected()){l=!1;return}let Q=!l;l=!0;let ue=sq(f,P,e.serverName);f=ue.next;let we=Q?[...ue.next.values()]:ue.profiles;for(let J of we)await y(J.key,aq(J,t()));for(let J of a.keys())ue.next.has(J)||a.delete(J);for(let J of ue.notes)await v(J);for(let J of Q?Pve(ue.next):ue.statuses)await y(J.key,cq(J,m(J.key)));d=await Promise.all(P.map(async J=>({pubkey:dc(await h(pc(J))),socketPath:J.socketPath})));let N=d.map(J=>J.pubkey).sort();N.join(",")!==p&&(p=N.join(","),j.subscribe(N.length>0?[{kinds:[1],"#p":N,since:n}]:null,w))},pubkeyOf:async P=>dc(await h(pc(P))),handleOf:P=>DI(P,e.serverName),sign:async(P,j)=>En(j,await h(pc(P))),publish(P){let j=A();return j?.connected()?(j.publish(P),!0):!1},close(){c?.close(),c=null}}}import{existsSync as Cve,readFileSync as Dve}from"node:fs";var kve=128*1024,Gn=e=>typeof e=="string"?e:"";async function pq(e){let t=[],n=0;for await(let r of e){if(n+=r.length,n>kve)return null;t.push(r)}try{return JSON.parse(Buffer.concat(t).toString("utf8"))}catch{return null}}function Sn(e,t,n){return e.writeHead(t,{"content-type":"application/json"}),e.end(JSON.stringify(n)),!0}function hq(e){let t=()=>{let c=e.transportPortFile,u=c&&Cve(c)?Number(Dve(c,"utf8").trim()):0;return Number.isInteger(u)&&u>0?`http://127.0.0.1:${u}`:null},n=async(c,u,l)=>{let f=t();return f?e.fetch(`${f}/servers/${encodeURIComponent(c)}/agent${u}`,l).catch(()=>null):null},r=async(c,u)=>{if(c===e.serverId){let d=await e.registry.find(u);return d?{pubkey:await e.nostr.pubkeyOf(d),handle:e.nostr.handleOf(d)}:null}let l=await n(c,`/agents/${encodeURIComponent(u)}`),f=l?.ok?await l.json():null;return typeof f?.nostrPubkey=="string"?{pubkey:f.nostrPubkey,handle:Gn(f.nostrHandle)}:null},o=(c,u)=>!c||u.startsWith(`@${c}`)?u:`@${c} ${u}`,i=async(c,u)=>{let[l,f,d,p]=[Gn(c?.to?.nostrPubkey),Gn(c?.replyToEvent),Gn(c?.from?.agentId),Gn(c?.text)];if(!/^[0-9a-f]{64}$/.test(l)||!d||!p)return Sn(u,400,{error:"to.nostrPubkey (hex), from.agentId, text are required"});let h=await e.registry.find(d);if(!h)return Sn(u,404,{error:"sender agent not found"});let m=[["p",l],...f?[["e",f,"","root",l]]:[],[Sy,e.serverId,d]],y=await e.nostr.sign(h,{kind:1,created_at:Math.floor(Date.now()/1e3),tags:m,content:p});return e.nostr.publish(y)?Sn(u,202,{msgId:y.id}):Sn(u,503,{error:"relay is not connected"})},s=async(c,u)=>{let l=await pq(c);if(l?.to?.nostrPubkey!==void 0)return i(l,u);let[f,d,p,h]=[Gn(l?.to?.serverId),Gn(l?.to?.agentId),Gn(l?.from?.agentId),Gn(l?.text)];if(!f||!d||!p||!h)return Sn(u,400,{error:"to.serverId, to.agentId, from.agentId, text are required"});let m=await e.registry.find(p);if(!m)return Sn(u,404,{error:"sender agent not found"});let y=await r(f,d);if(!y)return Sn(u,404,{error:"target agent not found"});let v=Gn(l?.replyToEvent),w=[["p",y.pubkey],...v?[["e",v,"","root",y.pubkey]]:[],[Sy,e.serverId,p],[kI,Gn(l?.label)||p]],A=await e.nostr.sign(m,{kind:1,created_at:Math.floor(Date.now()/1e3),tags:w,content:o(y.handle,h)});if(!e.nostr.publish(A))return Sn(u,503,{error:"relay is not connected"});if(f!==e.serverId){let P={method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({event:A})},j=await n(f,"/nostr/events",P);if(!j?.ok)return Sn(u,502,{error:`target relay rejected (${j?.status??"unreachable"})`,msgId:A.id})}return Sn(u,202,{msgId:A.id})},a=async(c,u)=>{let l=(await pq(c))?.event;return!l||!Tl(l)?Sn(u,400,{error:"signed event is required"}):e.nostr.publish(l)?Sn(u,202,{msgId:l.id}):Sn(u,503,{error:"relay is not connected"})};return{async handle(c,u,l){return c.method==="POST"&&l==="/nostr/send"?s(c,u):c.method==="POST"&&l==="/nostr/events"?a(c,u):!1},decorate:async c=>({...c,nostrPubkey:await e.nostr.pubkeyOf(c),nostrHandle:e.nostr.handleOf(c)})}}import{readFileSync as Rve,statSync as gq}from"node:fs";import{isAbsolute as Nve,join as mq,resolve as Lve}from"node:path";var jve=6e4;function Fve(e){try{let t=mq(e,".git"),n=gq(t).isDirectory()?t:qve(t,e);return n?gq(mq(n,"HEAD")).mtimeMs:null}catch{return null}}function qve(e,t){let n=/^gitdir:\s*(.+)$/m.exec(Rve(e,"utf8"));if(!n)return null;let r=n[1].trim();return Nve(r)?r:Lve(t,r)}function yq(e,t=Fve,n=Date.now){let r=new Map,o=i=>i.git&&i.stamp!==null?t(i.git.worktreeRoot)===i.stamp:n()-i.at<jve;return async i=>{let s=r.get(i);if(s&&o(s))return s.git;let a=await e(i);return r.set(i,{git:a,stamp:a?t(a.worktreeRoot):null,at:n()}),a}}import{readFile as Bve,stat as Uve}from"node:fs/promises";function vq(e){try{return process.kill(e,0),!0}catch(t){return t.code==="EPERM"}}async function bq(e){try{return await Bve(e,"utf8")}catch{let t=globalThis.syncFetch;if(typeof t!="function")return null;let n=t(e);return n&&n.ok?n.text():null}}async function _q(e){try{return(await Uve(e)).mtimeMs}catch{return null}}var Zve=5e3,Qve=3e5,wq=Yve(Hve);function zn(e){process.stderr.write(`[agent] ${e}
91
+ `)}async function Jve(e){let t=await RI(e);return Promise.all(t.map(async n=>({name:n,mtimeMs:(await Vve(Eq(e,n))).mtimeMs})))}async function Xve(e,t){let n=await Kve(e,"r");try{let{size:r}=await n.stat();if(r<=t)return{size:r,bytes:Buffer.alloc(0)};let o=Buffer.alloc(r-t),{bytesRead:i}=await n.read(o,0,o.length,t);return{size:r,bytes:o.subarray(0,i)}}finally{await n.close()}}async function ebe(){let e=FI(),t=e.home??zve(),n=nA({home:t,listDir:Jve,readRange:Xve,warn:zn}),r=YI({now:Date.now,log:zn,everyMs:Qve}),o=VI(r.wrap("exec",async(h,m)=>(await wq(h,m,{maxBuffer:8*1024*1024})).stdout)),i=r.wrap("readProc",bq),s=async(h,m)=>(await wq("git",m,{cwd:h})).stdout,a=oA({socketDir:qI,readdir:h=>RI(h),isAlive:r.wrap("isAlive",vq),readEnv:r.wrap("readEnv",h=>WI(h,o,i)),startTimeMs:GI(i,o),stat:_q,unlink:r.wrap("reaped",h=>Gve(h)),now:Date.now,transcripts:n,sessions:{dir:HI(t),readdir:h=>RI(h),readFile:h=>Wve(h,"utf8")},resolveGit:yq(h=>IA(h,s)),warn:zn}),c=e.configDir?dq({seedDir:Eq(e.configDir,"agent"),nosturnPortFile:e.nosturnPortFile,serverName:e.serverName??"planx",deliver:Py,log:zn}):null,u=N2(import.meta.url,process.cwd()),l=await xA({portFile:e.portFile,pidFile:e.pidFile,registry:a,nostr:c&&e.serverId?hq({nostr:c,registry:a,serverId:e.serverId,transportPortFile:e.transportPortFile,fetch}):void 0,deliver:Py,listWorktrees:h=>AA(h,s),roster:R2({workersOrigin:()=>ux(e.workersPortFile),fetch}),log:zn,admin:{assetsDir:()=>u},version:globalThis.__PLANX_SERVICE_VERSION__??null,write:h=>process.stdout.write(h)});zn(`listening 127.0.0.1:${l.port}`),F2({ingressPortFile:j2(e.portFile),apps:[{name:"agent",title:"Agent",port:l.port}],warn:zn});let f={...a,async list(){let h=Date.now();try{return await a.list()}finally{r.tick(Date.now()-h)}}},d=k2({registry:f,publisher:O2({workersOrigin:()=>ux(e.workersPortFile),bundle:()=>$ve(D2(process.argv[1],process.cwd()),"utf-8"),fetch,warn:zn}),onAgents:async h=>{await c?.update(h),await l.publish(h)},intervalMs:Zve,now:()=>new Date,log:zn}),p=()=>{d.stop(),c?.close(),l.close().finally(()=>process.exit(0))};process.on("SIGTERM",p),process.on("SIGINT",p),process.stdin.resume(),process.stdin.on("end",()=>process.exit(1)),process.on("uncaughtException",h=>{zn(`uncaught: ${h.stack??String(h)}`),process.exit(1)})}ebe().catch(e=>{zn(`boot failed: ${String(e)}`),process.exit(1)});
88
92
  /*! Bundled license information:
89
93
 
90
94
  @angular/core/fesm2022/_effect-chunk.mjs: