daimon 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/cli.js +98 -88
  3. package/dist/dashboard/browser/chunk-2LMH5KDX.js +5 -0
  4. package/dist/dashboard/browser/{chunk-6Z4FDREI.js → chunk-2QORICNU.js} +1 -1
  5. package/dist/dashboard/browser/{chunk-UUJWPV5O.js → chunk-36JZZZCV.js} +1 -1
  6. package/dist/dashboard/browser/{chunk-4KVYA2AQ.js → chunk-3S7OJ77P.js} +1 -1
  7. package/dist/dashboard/browser/{chunk-TGSV7ZHM.js → chunk-42QQHEGP.js} +1 -1
  8. package/dist/dashboard/browser/chunk-4L223A7A.js +1 -0
  9. package/dist/dashboard/browser/{chunk-EBGPIJ7S.js → chunk-532NB4ME.js} +1 -1
  10. package/dist/dashboard/browser/{chunk-X4RGWMLE.js → chunk-6CP6NCA6.js} +2 -2
  11. package/dist/dashboard/browser/chunk-6OMBXV4F.js +1 -0
  12. package/dist/dashboard/browser/chunk-6YXOOFGY.js +1 -0
  13. package/dist/dashboard/browser/{chunk-VMW35ZNT.js → chunk-AHO3BCLI.js} +1 -1
  14. package/dist/dashboard/browser/{chunk-CIQNXWDY.js → chunk-ASK7FG27.js} +1 -1
  15. package/dist/dashboard/browser/{chunk-AGN2F6JP.js → chunk-BCGQJHY3.js} +1 -1
  16. package/dist/dashboard/browser/{chunk-ACPSBF55.js → chunk-BDTAVYPH.js} +1 -1
  17. package/dist/dashboard/browser/{chunk-FZLMX6EY.js → chunk-BFBXHJEF.js} +1 -1
  18. package/dist/dashboard/browser/{chunk-B2DPS6BL.js → chunk-BKYXU3OY.js} +1 -1
  19. package/dist/dashboard/browser/{chunk-UC7AWK4C.js → chunk-BPUIUSAU.js} +1 -1
  20. package/dist/dashboard/browser/{chunk-6MTVWBQQ.js → chunk-C6SNIY22.js} +1 -1
  21. package/dist/dashboard/browser/{chunk-3ZFFKHPU.js → chunk-CCRYWDXZ.js} +1 -1
  22. package/dist/dashboard/browser/{chunk-JWXROQJJ.js → chunk-DNHNU64I.js} +1 -1
  23. package/dist/dashboard/browser/{chunk-FRKUCFVI.js → chunk-DRBVSI3B.js} +1 -1
  24. package/dist/dashboard/browser/{chunk-RNUJZTKS.js → chunk-EXOJOB6H.js} +2 -2
  25. package/dist/dashboard/browser/chunk-EYOED3X7.js +2 -0
  26. package/dist/dashboard/browser/{chunk-3EPFSBJ2.js → chunk-G3IBZZQH.js} +1 -1
  27. package/dist/dashboard/browser/chunk-H3HRZLHG.js +4 -0
  28. package/dist/dashboard/browser/chunk-H5GKWN4K.js +1 -0
  29. package/dist/dashboard/browser/{chunk-KRC72WWY.js → chunk-HVK4GEK7.js} +1 -1
  30. package/dist/dashboard/browser/{chunk-7LKM244H.js → chunk-HYIZY5FQ.js} +1 -1
  31. package/dist/dashboard/browser/chunk-ITSOVQEA.js +1 -0
  32. package/dist/dashboard/browser/{chunk-WOMCRDMJ.js → chunk-JODWQVMA.js} +1 -1
  33. package/dist/dashboard/browser/chunk-LAMOHX23.js +1 -0
  34. package/dist/dashboard/browser/chunk-NMKAKRON.js +1 -0
  35. package/dist/dashboard/browser/{chunk-F3FCHBFQ.js → chunk-NY5IR366.js} +1 -1
  36. package/dist/dashboard/browser/{chunk-NVL5HFLU.js → chunk-OOQPWG6B.js} +1 -1
  37. package/dist/dashboard/browser/{chunk-SR4HVFOB.js → chunk-P3Q7RWT5.js} +1 -1
  38. package/dist/dashboard/browser/{chunk-YHBNUNU3.js → chunk-PVPELZPO.js} +1 -1
  39. package/dist/dashboard/browser/{chunk-66VYPESU.js → chunk-QHXOUNPA.js} +1 -1
  40. package/dist/dashboard/browser/{chunk-VHALTUPL.js → chunk-RMV7CR6Y.js} +1 -1
  41. package/dist/dashboard/browser/chunk-RQSDQXNY.js +1 -0
  42. package/dist/dashboard/browser/chunk-RWX5JIT4.js +1 -0
  43. package/dist/dashboard/browser/{chunk-R7VSXL63.js → chunk-SXE7REUK.js} +1 -1
  44. package/dist/dashboard/browser/chunk-TLCLILNG.js +4 -0
  45. package/dist/dashboard/browser/chunk-UAIWZYHN.js +1 -0
  46. package/dist/dashboard/browser/chunk-UFTWVSEC.js +2 -0
  47. package/dist/dashboard/browser/{chunk-RWXAGDGT.js → chunk-UXLEE3F2.js} +1 -1
  48. package/dist/dashboard/browser/{chunk-K6PUQAFE.js → chunk-XPP3TYS2.js} +1 -1
  49. package/dist/dashboard/browser/{chunk-PRLUGTKR.js → chunk-YFYMS5EE.js} +1 -1
  50. package/dist/dashboard/browser/chunk-YPVVBWNF.js +1 -0
  51. package/dist/dashboard/browser/{chunk-BBTQXZIS.js → chunk-Z3XFJOYG.js} +1 -1
  52. package/dist/dashboard/browser/index.html +2 -2
  53. package/dist/dashboard/browser/main-EENULCI5.js +1 -0
  54. package/dist/main.js +55 -51
  55. package/dist/mcp.js +3 -3
  56. package/package.json +4 -2
  57. package/dist/dashboard/browser/chunk-55AO3FMG.js +0 -1
  58. package/dist/dashboard/browser/chunk-FD3BW2ZN.js +0 -1
  59. package/dist/dashboard/browser/chunk-GMEW64AS.js +0 -1
  60. package/dist/dashboard/browser/chunk-HXX2OUOE.js +0 -1
  61. package/dist/dashboard/browser/chunk-HZNVO3JE.js +0 -1
  62. package/dist/dashboard/browser/chunk-K2SFF47Z.js +0 -5
  63. package/dist/dashboard/browser/chunk-K5WKBG55.js +0 -1
  64. package/dist/dashboard/browser/chunk-LBWOIG7N.js +0 -5
  65. package/dist/dashboard/browser/chunk-O76B43BY.js +0 -4
  66. package/dist/dashboard/browser/chunk-QYIYT4YU.js +0 -1
  67. package/dist/dashboard/browser/chunk-RXOAYCKI.js +0 -2
  68. package/dist/dashboard/browser/chunk-WRX32YWH.js +0 -1
  69. package/dist/dashboard/browser/main-YAROJLJV.js +0 -1
@@ -0,0 +1,4 @@
1
+ var xh=Object.defineProperty,Sh=Object.defineProperties;var Ah=Object.getOwnPropertyDescriptors;var Cr=Object.getOwnPropertySymbols;var sl=Object.prototype.hasOwnProperty,al=Object.prototype.propertyIsEnumerable;var il=(e,t,n)=>t in e?xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||={})sl.call(t,n)&&il(e,n,t[n]);if(Cr)for(var n of Cr(t))al.call(t,n)&&il(e,n,t[n]);return e},Q=(e,t)=>Sh(e,Ah(t));var wC=(e,t)=>{var n={};for(var r in e)sl.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Cr)for(var r of Cr(e))t.indexOf(r)<0&&al.call(e,r)&&(n[r]=e[r]);return n};function qt(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Le=qt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function b(e){return typeof e=="function"}var wr=qt(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function lt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var L=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b(r))try{r()}catch(i){t=i instanceof wr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{cl(i)}catch(s){t=t??[],s instanceof wr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new wr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)cl(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)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&lt(n,t)}remove(t){let{_finalizers:n}=this;n&&lt(n,t),t instanceof e&&t._removeParent(this)}};L.EMPTY=(()=>{let e=new L;return e.closed=!0,e})();var ki=L.EMPTY;function Tr(e){return e instanceof L||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function cl(e){b(e)?e():e.unsubscribe()}var ye={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wt={setTimeout(e,t,...n){let{delegate:r}=Wt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Wt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function br(e){Wt.setTimeout(()=>{let{onUnhandledError:t}=ye;if(t)t(e);else throw e})}function Nn(){}var ll=Pi("C",void 0,void 0);function ul(e){return Pi("E",void 0,e)}function dl(e){return Pi("N",e,void 0)}function Pi(e,t,n){return{kind:e,value:t,error:n}}var ut=null;function Gt(e){if(ye.useDeprecatedSynchronousErrorHandling){let t=!ut;if(t&&(ut={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ut;if(ut=null,n)throw r}}else e()}function fl(e){ye.useDeprecatedSynchronousErrorHandling&&ut&&(ut.errorThrown=!0,ut.error=e)}var dt=class extends L{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Tr(t)&&t.add(this)):this.destination=kh}static create(t,n,r){return new ve(t,n,r)}next(t){this.isStopped?Fi(dl(t),this):this._next(t)}error(t){this.isStopped?Fi(ul(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fi(ll,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Rh=Function.prototype.bind;function Li(e,t){return Rh.call(e,t)}var ji=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){_r(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){_r(r)}else _r(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){_r(n)}}},ve=class extends dt{constructor(t,n,r){super();let o;if(b(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ye.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Li(t.next,i),error:t.error&&Li(t.error,i),complete:t.complete&&Li(t.complete,i)}):o=t}this.destination=new ji(o)}};function _r(e){ye.useDeprecatedSynchronousErrorHandling?fl(e):br(e)}function Oh(e){throw e}function Fi(e,t){let{onStoppedNotification:n}=ye;n&&Wt.setTimeout(()=>n(e,t))}var kh={closed:!0,next:Nn,error:Oh,complete:Nn};function Ph(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new ve({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new Le)}});e.subscribe(i)})}var zt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function X(e){return e}function Lh(...e){return Vi(e)}function Vi(e){return e.length===0?X:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var N=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=jh(n)?n:new ve(n,r,o);return Gt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=pl(r),new r((o,i)=>{let s=new ve({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[zt](){return this}pipe(...n){return Vi(n)(this)}toPromise(n){return n=pl(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function pl(e){var t;return(t=e??ye.Promise)!==null&&t!==void 0?t:Promise}function Fh(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function jh(e){return e&&e instanceof dt||Fh(e)&&Tr(e)}function Hi(e){return b(e?.lift)}function w(e){return t=>{if(Hi(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")}}function C(e,t,n,r,o){return new Bi(e,t,n,r,o)}var Bi=class extends dt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function $i(){return w((e,t)=>{let n=null;e._refCount++;let r=C(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Ui=class extends N{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Hi(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new L;let n=this.getSubject();t.add(this.source.subscribe(C(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=L.EMPTY)}return t}refCount(){return $i()(this)}};var Qt={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Qt;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new L(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Qt;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Qt;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var hl=qt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var fe=(()=>{class e extends N{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Mr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new hl}next(n){Gt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Gt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Gt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?ki:(this.currentObservers=null,i.push(n),new L(()=>{this.currentObservers=null,lt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new N;return n.source=this,n}}return e.create=(t,n)=>new Mr(t,n),e})(),Mr=class extends fe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:ki}};var xn=class extends fe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Sn={now(){return(Sn.delegate||Date).now()},delegate:void 0};var Nr=class extends fe{constructor(t=1/0,n=1/0,r=Sn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var xr=class extends L{constructor(t,n){super()}schedule(t,n=0){return this}};var An={setInterval(e,t,...n){let{delegate:r}=An;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=An;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var ze=class extends xr{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return An.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&An.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,lt(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Vh=1,qi,Wi={};function gl(e){return e in Wi?(delete Wi[e],!0):!1}var ml={setImmediate(e){let t=Vh++;return Wi[t]=!0,qi||(qi=Promise.resolve()),qi.then(()=>gl(t)&&e()),t},clearImmediate(e){gl(e)}};var{setImmediate:Hh,clearImmediate:Bh}=ml,Rn={setImmediate(...e){let{delegate:t}=Rn;return(t?.setImmediate||Hh)(...e)},clearImmediate(e){let{delegate:t}=Rn;return(t?.clearImmediate||Bh)(e)},delegate:void 0};var Sr=class extends ze{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Rn.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Rn.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Zt=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Zt.now=Sn.now;var Qe=class extends Zt{constructor(t,n=Zt.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Ar=class extends Qe{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var $h=new Ar(Sr);var On=new Qe(ze),yl=On;var Rr=class extends ze{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Qt.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Qt.cancelAnimationFrame(n),t._scheduled=void 0)}};var Or=class extends Qe{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Uh=new Or(Rr);var ft=new N(e=>e.complete());function kr(e){return e&&b(e.schedule)}function Gi(e){return e[e.length-1]}function Pr(e){return b(Gi(e))?e.pop():void 0}function Me(e){return kr(Gi(e))?e.pop():void 0}function vl(e,t){return typeof Gi(e)=="number"?e.pop():t}function El(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(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Il(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.")}function pt(e){return this instanceof pt?(this.v=e,this):new pt(e)}function Dl(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(g){return new Promise(function(E,v){i.push([f,g,E,v])>1||c(f,g)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(g){p(i[0][3],g)}}function l(f){f.value instanceof pt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Cl(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 Il=="function"?Il(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(l){i({value:l,done:a})},s)}}var Lr=e=>e&&typeof e.length=="number"&&typeof e!="function";function Fr(e){return b(e?.then)}function jr(e){return b(e[zt])}function Vr(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function Hr(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.`)}function qh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Br=qh();function $r(e){return b(e?.[Br])}function Ur(e){return Dl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield pt(n.read());if(o)return yield pt(void 0);yield yield pt(r)}}finally{n.releaseLock()}})}function qr(e){return b(e?.getReader)}function O(e){if(e instanceof N)return e;if(e!=null){if(jr(e))return Wh(e);if(Lr(e))return Gh(e);if(Fr(e))return zh(e);if(Vr(e))return wl(e);if($r(e))return Qh(e);if(qr(e))return Zh(e)}throw Hr(e)}function Wh(e){return new N(t=>{let n=e[zt]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Gh(e){return new N(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function zh(e){return new N(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,br)})}function Qh(e){return new N(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function wl(e){return new N(t=>{Yh(e,t).catch(n=>t.error(n))})}function Zh(e){return wl(Ur(e))}function Yh(e,t){var n,r,o,i;return El(this,void 0,void 0,function*(){try{for(n=Cl(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function re(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Wr(e,t=0){return w((n,r)=>{n.subscribe(C(r,o=>re(r,e,()=>r.next(o),t),()=>re(r,e,()=>r.complete(),t),o=>re(r,e,()=>r.error(o),t)))})}function Gr(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Tl(e,t){return O(e).pipe(Gr(t),Wr(t))}function bl(e,t){return O(e).pipe(Gr(t),Wr(t))}function _l(e,t){return new N(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Ml(e,t){return new N(n=>{let r;return re(n,t,()=>{r=e[Br](),re(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>b(r?.return)&&r.return()})}function zr(e,t){if(!e)throw new Error("Iterable cannot be null");return new N(n=>{re(n,t,()=>{let r=e[Symbol.asyncIterator]();re(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Nl(e,t){return zr(Ur(e),t)}function xl(e,t){if(e!=null){if(jr(e))return Tl(e,t);if(Lr(e))return _l(e,t);if(Fr(e))return bl(e,t);if(Vr(e))return zr(e,t);if($r(e))return Ml(e,t);if(qr(e))return Nl(e,t)}throw Hr(e)}function Ne(e,t){return t?xl(e,t):O(e)}function Kh(...e){let t=Me(e);return Ne(e,t)}function Jh(e,t){let n=b(e)?e:()=>e,r=o=>o.error(n());return new N(t?o=>t.schedule(r,0,o):r)}function Xh(e){return!!e&&(e instanceof N||b(e.lift)&&b(e.subscribe))}function Sl(e){return e instanceof Date&&!isNaN(e)}function ht(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:eg}=Array;function tg(e,t){return eg(t)?e(...t):e(t)}function Qr(e){return ht(t=>tg(e,t))}var{isArray:ng}=Array,{getPrototypeOf:rg,prototype:og,keys:ig}=Object;function Zr(e){if(e.length===1){let t=e[0];if(ng(t))return{args:t,keys:null};if(sg(t)){let n=ig(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function sg(e){return e&&typeof e=="object"&&rg(e)===og}function Yr(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ag(...e){let t=Me(e),n=Pr(e),{args:r,keys:o}=Zr(e);if(r.length===0)return Ne([],t);let i=new N(cg(r,t,o?s=>Yr(o,s):X));return n?i.pipe(Qr(n)):i}function cg(e,t,n=X){return r=>{Al(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Al(t,()=>{let l=Ne(e[c],t),u=!1;l.subscribe(C(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Al(e,t,n){e?re(n,e,t):t()}function Rl(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=g=>l<r?h(g):c.push(g),h=g=>{i&&t.next(g),l++;let E=!1;O(n(g,u++)).subscribe(C(t,v=>{o?.(v),i?f(v):t.next(v)},()=>{E=!0},void 0,()=>{if(E)try{for(l--;c.length&&l<r;){let v=c.shift();s?re(t,s,()=>h(v)):h(v)}p()}catch(v){t.error(v)}}))};return e.subscribe(C(t,f,()=>{d=!0,p()})),()=>{a?.()}}function gt(e,t,n=1/0){return b(t)?gt((r,o)=>ht((i,s)=>t(r,i,o,s))(O(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>Rl(r,o,e,n)))}function kn(e=1/0){return gt(X,e)}function Ol(){return kn(1)}function Kr(...e){return Ol()(Ne(e,Me(e)))}function lg(e){return new N(t=>{O(e()).subscribe(t)})}function ug(...e){let t=Pr(e),{args:n,keys:r}=Zr(e),o=new N(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;O(n[u]).subscribe(C(i,p=>{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Yr(r,a):a),i.complete())}))}});return t?o.pipe(Qr(t)):o}function zi(e=0,t,n=yl){let r=-1;return t!=null&&(kr(t)?n=t:r=t),new N(o=>{let i=Sl(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function dg(...e){let t=Me(e),n=vl(e,1/0),r=e;return r.length?r.length===1?O(r[0]):kn(n)(Ne(r,t)):ft}function mt(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)))})}function kl(e){return w((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(C(n,l=>{r=!0,o=l,i||O(e(l)).subscribe(i=C(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function fg(e,t=On){return kl(()=>zi(e,t))}function Pl(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=O(e(s,Pl(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Ll(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(C(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function pg(e,t){return b(t)?gt(e,t,1):gt(e,1)}function hg(e,t=On){return w((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u<l){o=this.schedule(void 0,l-u),r.add(o);return}a()}n.subscribe(C(r,l=>{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Pn(e){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Qi(e){return e<=0?()=>ft:w((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function gg(e,t=X){return e=e??mg,w((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function mg(e,t){return e===t}function Jr(e=yg){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function yg(){return new Le}function vg(e){return w((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Ig(e,t){let n=arguments.length>=2;return r=>r.pipe(e?mt((o,i)=>e(o,i,r)):X,Qi(1),n?Pn(t):Jr(()=>new Le))}function Zi(e){return e<=0?()=>ft:w((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Eg(e,t){let n=arguments.length>=2;return r=>r.pipe(e?mt((o,i)=>e(o,i,r)):X,Zi(1),n?Pn(t):Jr(()=>new Le))}function Dg(){return w((e,t)=>{let n,r=!1;e.subscribe(C(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function Cg(e,t){return w(Ll(e,t,arguments.length>=2,!0))}function Ki(e={}){let{connector:t=()=>new fe,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,d=!1,p=()=>{a?.unsubscribe(),a=void 0},f=()=>{p(),s=c=void 0,u=d=!1},h=()=>{let g=s;f(),g?.unsubscribe()};return w((g,E)=>{l++,!d&&!u&&p();let v=c=c??t();E.add(()=>{l--,l===0&&!d&&!u&&(a=Yi(h,o))}),v.subscribe(E),!s&&l>0&&(s=new ve({next:Z=>v.next(Z),error:Z=>{d=!0,p(),a=Yi(f,n,Z),v.error(Z)},complete:()=>{u=!0,p(),a=Yi(f,r),v.complete()}}),O(g).subscribe(s))})(i)}}function Yi(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new ve({next:()=>{r.unsubscribe(),e()}});return O(t(...n)).subscribe(r)}function wg(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Ki({connector:()=>new Nr(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Tg(e){return mt((t,n)=>e<=n)}function bg(...e){let t=Me(e);return w((n,r)=>{(t?Kr(e,n,t):Kr(e,n)).subscribe(r)})}function _g(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let l=0,u=i++;O(e(c,u)).subscribe(o=C(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Mg(e){return w((t,n)=>{O(e).subscribe(C(n,()=>n.complete(),Nn)),!n.closed&&t.subscribe(n)})}function Ng(e,t=!1){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function xg(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):X}var Ji;function Xr(){return Ji}function xe(e){let t=Ji;return Ji=e,t}var Fl=Symbol("NotFound");function Yt(e){return e===Fl||e?.name==="\u0275NotFound"}var Y=null,eo=!1,Xi=1,Sg=null,W=Symbol("SIGNAL");function I(e){let t=Y;return Y=e,t}function oo(){return Y}var yt={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 vt(e){if(eo)throw new Error("");if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Y.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Y.producers,n!==void 0&&n.producer===e)){Y.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Y&&(!r||Rg(o,Y)))return;let i=Kt(Y),s={producer:e,consumer:Y,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Y.producersTail=s,t!==void 0?t.nextProducer=s:Y.producers=s,i&&Bl(e,s)}function jl(){Xi++}function io(e){if(!(Kt(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Xi)){if(!e.producerMustRecompute(e)&&!Et(e)){ro(e);return}e.producerRecomputeValue(e),ro(e)}}function es(e){if(e.consumers===void 0)return;let t=eo;eo=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Ag(r)}}finally{eo=t}}function ts(){return Y?.consumerAllowSignalWrites!==!1}function Ag(e){e.dirty=!0,es(e),e.consumerMarkedDirty?.(e)}function ro(e){e.dirty=!1,e.lastCleanEpoch=Xi}function Ze(e){return e&&Vl(e),I(e)}function Vl(e){e.producersTail=void 0,e.recomputing=!0}function It(e,t){I(t),e&&Hl(e)}function Hl(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Kt(e))do n=ns(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function Et(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(io(n),r!==n.version))return!0}return!1}function Ye(e){if(Kt(e)){let t=e.producers;for(;t!==void 0;)t=ns(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Bl(e,t){let n=e.consumersTail,r=Kt(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)Bl(o.producer,o)}function ns(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,!Kt(t)){let i=t.producers;for(;i!==void 0;)i=ns(i)}return n}function Kt(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function so(e){Sg?.(e)}function Rg(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 ao(e,t){return Object.is(e,t)}function Fn(e,t){let n=Object.create(Og);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(io(n),vt(n),n.value===Ln)throw n.error;return n.value};return r[W]=n,so(n),r}var to=Symbol("UNSET"),no=Symbol("COMPUTING"),Ln=Symbol("ERRORED"),Og=Q(z({},yt),{value:to,dirty:!0,error:null,equal:ao,kind:"computed",producerMustRecompute(e){return e.value===to||e.value===no},producerRecomputeValue(e){if(e.value===no)throw new Error("");let t=e.value;e.value=no;let n=Ze(e),r,o=!1;try{r=e.computation(),I(null),o=t!==to&&t!==Ln&&r!==Ln&&e.equal(t,r)}catch(i){r=Ln,e.error=i}finally{It(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function kg(){throw new Error}var $l=kg;function Ul(e){$l(e)}function rs(e){$l=e}var Pg=null;function os(e,t){let n=Object.create(jn);n.value=e,t!==void 0&&(n.equal=t);let r=()=>ql(n);return r[W]=n,so(n),[r,s=>Jt(n,s),s=>is(n,s)]}function ql(e){return vt(e),e.value}function Jt(e,t){ts()||Ul(e),e.equal(e.value,t)||(e.value=t,Lg(e))}function is(e,t){ts()||Ul(e),Jt(e,t(e.value))}var jn=Q(z({},yt),{equal:ao,value:void 0,kind:"signal"});function Lg(e){e.version++,jl(),es(e),Pg?.(e)}function Wl(e){let t=I(null);try{return e()}finally{I(t)}}var Gl=Q(z({},yt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function zl(e){if(e.dirty=!1,e.version>0&&!Et(e))return;e.version++;let t=Ze(e);try{e.cleanup(),e.fn()}finally{It(e,t)}}var fo="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",M=class extends Error{code;constructor(t,n){super(po(t,n)),this.code=t}};function Fg(e){return`NG0${Math.abs(e)}`}function po(e,t){return`${Fg(e)}${t?": "+t:""}`}var en=globalThis;function A(e){for(let t in e)if(e[t]===A)return t;throw Error("")}function Yl(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function je(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(je).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(`
4
+ `);return r>=0?n.slice(0,r):n}function ho(e,t){return e?t?`${e} ${t}`:e:t||""}var jg=A({__forward_ref__:A});function go(e){return e.__forward_ref__=go,e.toString=function(){return je(this())},e}function G(e){return ys(e)?e():e}function ys(e){return typeof e=="function"&&e.hasOwnProperty(jg)&&e.__forward_ref__===go}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Kl(e){return{providers:e.providers||[],imports:e.imports||[]}}function Un(e){return Hg(e,mo)}function Vg(e){return Un(e)!==null}function Hg(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Bg(e){let t=e?.[mo]??null;return t||null}function as(e){return e&&e.hasOwnProperty(lo)?e[lo]:null}var mo=A({\u0275prov:A}),lo=A({\u0275inj:A}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function vs(e){return e&&!!e.\u0275providers}var Is=A({\u0275cmp:A}),Es=A({\u0275dir:A}),Ds=A({\u0275pipe:A}),Cs=A({\u0275mod:A}),Hn=A({\u0275fac:A}),_t=A({__NG_ELEMENT_ID__:A}),Ql=A({__NG_ENV_ID__:A});function F(e){return typeof e=="string"?e:e==null?"":String(e)}function Jl(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():F(e)}var Xl=A({ngErrorCode:A}),$g=A({ngErrorMessage:A}),Ug=A({ngTokenPath:A});function ws(e,t){return eu("",-200,t)}function yo(e,t){throw new M(-201,!1)}function eu(e,t,n){let r=new M(t,e);return r[Xl]=t,r[$g]=e,n&&(r[Ug]=n),r}function qg(e){return e[Xl]}var cs;function tu(){return cs}function se(e){let t=cs;return cs=e,t}function Ts(e,t,n){let r=Un(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;yo(e,"Injector")}var Wg={},Dt=Wg,ls="__NG_DI_FLAG__",us=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=Ct(n)||0;try{return this.injector.get(t,r&8?null:Dt,r)}catch(o){if(Yt(o))return o;throw o}}};function Gg(e,t=0){let n=Xr();if(n===void 0)throw new M(-203,!1);if(n===null)return Ts(e,void 0,t);{let r=zg(t),o=n.retrieve(e,r);if(Yt(o)){if(r.optional)return null;throw o}return o}}function Se(e,t=0){return(tu()||Gg)(G(e),t)}function T(e,t){return Se(e,Ct(t))}function Ct(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function zg(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function ds(e){let t=[];for(let n=0;n<e.length;n++){let r=G(e[n]);if(Array.isArray(r)){if(r.length===0)throw new M(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=Qg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(Se(o,i))}else t.push(Se(r))}return t}function bs(e,t){return e[ls]=t,e.prototype[ls]=t,e}function Qg(e){return e[ls]}function wt(e,t){let n=e.hasOwnProperty(Hn);return n?e[Hn]:null}function nu(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 ru(e){return e.flat(Number.POSITIVE_INFINITY)}function vo(e,t){e.forEach(n=>Array.isArray(n)?vo(n,t):t(n))}function _s(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ou(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function iu(e,t,n,r){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 Io(e,t,n){let r=tn(e,t);return r>=0?e[r|1]=n:(r=~r,iu(e,r,t,n)),r}function Eo(e,t){let n=tn(e,t);if(n>=0)return e[n|1]}function tn(e,t){return Zg(e,t,1)}function Zg(e,t,n){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 Ee={},K=[],Mt=new x(""),Ms=new x("",-1),Ns=new x(""),Bn=class{get(t,n=Dt){if(n===Dt){let o=eu("",-201);throw o.name="\u0275NotFound",o}return n}};function xs(e){return e[Cs]||null}function De(e){return e[Is]||null}function Wn(e){return e[Es]||null}function Ss(e){return e[Ds]||null}function As(e){return{\u0275providers:e}}function su(...e){return{\u0275providers:Do(!0,e),\u0275fromNgModule:!0}}function Do(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return vo(t,s=>{let a=s;uo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&au(o,i),n}function au(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Rs(o,i=>{t(i,r)})}}function uo(e,t,n,r){if(e=G(e),!e)return!1;let o=null,i=as(e),s=!i&&De(e);if(!i&&!s){let c=e.ngModule;if(i=as(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}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 l of c)uo(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;vo(i.imports,u=>{uo(u,t,n,r)&&(l||=[],l.push(u))}),l!==void 0&&au(l,t)}if(!a){let l=wt(o)||(()=>new o);t({provide:o,useFactory:l,deps:K},o),t({provide:Ns,useValue:o,multi:!0},o),t({provide:Mt,useValue:()=>Se(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Rs(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Rs(e,t){for(let n of e)vs(n)&&(n=n.\u0275providers),Array.isArray(n)?Rs(n,t):t(n)}var Yg=A({provide:String,useValue:A});function cu(e){return e!==null&&typeof e=="object"&&Yg in e}function Kg(e){return!!(e&&e.useExisting)}function Jg(e){return!!(e&&e.useFactory)}function Tt(e){return typeof e=="function"}function lu(e){return!!e.useClass}var Os=new x(""),co={},Zl={},ss;function nn(){return ss===void 0&&(ss=new Bn),ss}var ae=class{},bt=class extends ae{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,ps(t,s=>this.processProvider(s)),this.records.set(Ms,Xt(void 0,this)),o.has("environment")&&this.records.set(ae,Xt(void 0,this));let i=this.records.get(Os);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ns,K,{self:!0}))}retrieve(t,n){let r=Ct(n)||0;try{return this.get(t,Dt,r)}catch(o){if(Yt(o))return o;throw o}}destroy(){Vn(this),this._destroyed=!0;let t=I(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(),I(t)}}onDestroy(t){return Vn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Vn(this);let n=xe(this),r=se(void 0),o;try{return t()}finally{xe(n),se(r)}}get(t,n=Dt,r){if(Vn(this),t.hasOwnProperty(Ql))return t[Ql](this);let o=Ct(r),i,s=xe(this),a=se(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=rm(t)&&Un(t);u&&this.injectableDefInScope(u)?l=Xt(fs(t),co):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?nn():this.parent;return n=o&8&&n===Dt?null:n,c.get(t,n)}catch(c){let l=qg(c);throw l===-200||l===-201?new M(l,null):c}finally{se(a),xe(s)}}resolveInjectorInitializers(){let t=I(null),n=xe(this),r=se(void 0),o;try{let i=this.get(Mt,K,{self:!0});for(let s of i)s()}finally{xe(n),se(r),I(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(je(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=G(t);let n=Tt(t)?t:G(t&&t.provide),r=em(t);if(!Tt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Xt(void 0,co,!0),o.factory=()=>ds(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=I(null);try{if(n.value===Zl)throw ws(je(t));return n.value===co&&(n.value=Zl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&nm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=G(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 fs(e){let t=Un(e),n=t!==null?t.factory:wt(e);if(n!==null)return n;if(e instanceof x)throw new M(204,!1);if(e instanceof Function)return Xg(e);throw new M(204,!1)}function Xg(e){if(e.length>0)throw new M(204,!1);let n=Bg(e);return n!==null?()=>n.factory(e):()=>new e}function em(e){if(cu(e))return Xt(void 0,e.useValue);{let t=ks(e);return Xt(t,co)}}function ks(e,t,n){let r;if(Tt(e)){let o=G(e);return wt(o)||fs(o)}else if(cu(e))r=()=>G(e.useValue);else if(Jg(e))r=()=>e.useFactory(...ds(e.deps||[]));else if(Kg(e))r=(o,i)=>Se(G(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=G(e&&(e.useClass||e.provide));if(tm(e))r=()=>new o(...ds(e.deps));else return wt(o)||fs(o)}return r}function Vn(e){if(e.destroyed)throw new M(205,!1)}function Xt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function tm(e){return!!e.deps}function nm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function rm(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ps(e,t){for(let n of e)Array.isArray(n)?ps(n,t):n&&vs(n)?ps(n.\u0275providers,t):t(n)}function Co(e,t){let n;e instanceof bt?(Vn(e),n=e):n=new us(e);let r,o=xe(n),i=se(void 0);try{return t()}finally{xe(o),se(i)}}function uu(){return tu()!==void 0||Xr()!=null}var Ce=0,m=1,D=2,B=3,pe=4,ee=5,Nt=6,rn=7,j=8,oe=9,Ae=10,R=11,on=12,Ps=13,xt=14,J=15,Je=16,St=17,Re=18,Gn=19,Ls=20,Fe=21,wo=22,He=23,le=24,At=25,Rt=26,P=27,du=1,Xe=6,et=7,zn=8,Ot=9,V=10;function Oe(e){return Array.isArray(e)&&typeof e[du]=="object"}function we(e){return Array.isArray(e)&&e[du]===!0}function Fs(e){return(e.flags&4)!==0}function Be(e){return e.componentOffset>-1}function sn(e){return(e.flags&1)===1}function Te(e){return!!e.template}function an(e){return(e[D]&512)!==0}function tt(e){return(e[D]&256)===256}var js="svg",fu="math";function he(e){for(;Array.isArray(e);)e=e[Ce];return e}function Vs(e,t){return he(t[e])}function ge(e,t){return he(t[e.index])}function kt(e,t){return e.data[t]}function pu(e,t){return e[t]}function me(e,t){let n=t[e];return Oe(n)?n:n[Ce]}function hu(e){return(e[D]&4)===4}function To(e){return(e[D]&128)===128}function gu(e){return we(e[B])}function ue(e,t){return t==null?null:e[t]}function Hs(e){e[St]=0}function Bs(e){e[D]&1024||(e[D]|=1024,To(e)&&nt(e))}function mu(e,t){for(;e>0;)t=t[xt],e--;return t}function Qn(e){return!!(e[D]&9216||e[le]?.dirty)}function bo(e){e[Ae].changeDetectionScheduler?.notify(8),e[D]&64&&(e[D]|=1024),Qn(e)&&nt(e)}function nt(e){e[Ae].changeDetectionScheduler?.notify(0);let t=Ke(e);for(;t!==null&&!(t[D]&8192||(t[D]|=8192,!To(t)));)t=Ke(t)}function _o(e,t){if(tt(e))throw new M(911,!1);e[Fe]===null&&(e[Fe]=[]),e[Fe].push(t)}function $s(e,t){if(e[Fe]===null)return;let n=e[Fe].indexOf(t);n!==-1&&e[Fe].splice(n,1)}function Ke(e){let t=e[B];return we(t)?t[B]:t}function Us(e){return e[rn]??=[]}function qs(e){return e.cleanup??=[]}function yu(e,t,n,r){let o=Us(t);o.push(n),e.firstCreatePass&&qs(e).push(r,o.length-1)}var _={lFrame:Au(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var hs=!1;function vu(){return _.lFrame.elementDepthCount}function Iu(){_.lFrame.elementDepthCount++}function Ws(){_.lFrame.elementDepthCount--}function Mo(){return _.bindingsEnabled}function Gs(){return _.skipHydrationRootTNode!==null}function zs(e){return _.skipHydrationRootTNode===e}function Qs(){_.skipHydrationRootTNode=null}function y(){return _.lFrame.lView}function k(){return _.lFrame.tView}function Eu(e){return _.lFrame.contextLView=e,e[j]}function Du(e){return _.lFrame.contextLView=null,e}function U(){let e=Zs();for(;e!==null&&e.type===64;)e=e.parent;return e}function Zs(){return _.lFrame.currentTNode}function Cu(){let e=_.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function cn(e,t){let n=_.lFrame;n.currentTNode=e,n.isParent=t}function Ys(){return _.lFrame.isParent}function Ks(){_.lFrame.isParent=!1}function wu(){return _.lFrame.contextLView}function Js(){return hs}function ln(e){let t=hs;return hs=e,t}function Tu(){let e=_.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Zn(){return _.lFrame.bindingIndex}function bu(e){return _.lFrame.bindingIndex=e}function ke(){return _.lFrame.bindingIndex++}function Pt(e){let t=_.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function _u(){return _.lFrame.inI18n}function Mu(e,t){let n=_.lFrame;n.bindingIndex=n.bindingRootIndex=e,No(t)}function Nu(){return _.lFrame.currentDirectiveIndex}function No(e){_.lFrame.currentDirectiveIndex=e}function xu(e){let t=_.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function xo(){return _.lFrame.currentQueryIndex}function Yn(e){_.lFrame.currentQueryIndex=e}function om(e){let t=e[m];return t.type===2?t.declTNode:t.type===1?e[ee]:null}function Xs(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=om(i),o===null||(i=i[xt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=_.lFrame=Su();return r.currentTNode=t,r.lView=e,!0}function So(e){let t=Su(),n=e[m];_.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Su(){let e=_.lFrame,t=e===null?null:e.child;return t===null?Au(e):t}function Au(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 Ru(){let e=_.lFrame;return _.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var ea=Ru;function Ao(){let e=Ru();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 Ou(e){return(_.lFrame.contextLView=mu(e,_.lFrame.contextLView))[j]}function de(){return _.lFrame.selectedIndex}function rt(e){_.lFrame.selectedIndex=e}function Lt(){let e=_.lFrame;return kt(e.tView,e.selectedIndex)}function ku(){_.lFrame.currentNamespace=js}function Pu(){im()}function im(){_.lFrame.currentNamespace=null}function Lu(){return _.lFrame.currentNamespace}var Fu=!0;function Ro(){return Fu}function Kn(e){Fu=e}function gs(e,t=null,n=null,r){let o=ta(e,t,n,r);return o.resolveInjectorInitializers(),o}function ta(e,t=null,n=null,r,o=new Set){let i=[n||K,su(e)];return r=r||(typeof e=="object"?void 0:je(e)),new bt(i,t||nn(),r||null,o)}var Ie=class e{static THROW_IF_NOT_FOUND=Dt;static NULL=new Bn;static create(t,n){if(Array.isArray(t))return gs({name:""},n,t,"");{let r=t.name??"";return gs({name:r},t.parent,t.providers,r)}}static \u0275prov=$({token:e,providedIn:"any",factory:()=>Se(Ms)});static __NG_ELEMENT_ID__=-1},sm=new x(""),ot=(()=>{class e{static __NG_ELEMENT_ID__=am;static __NG_ENV_ID__=n=>n}return e})(),$n=class extends ot{_lView;constructor(t){super(),this._lView=t}get destroyed(){return tt(this._lView)}onDestroy(t){let n=this._lView;return _o(n,t),()=>$s(n,t)}};function am(){return new $n(y())}var Ve=class{_console=console;handleError(t){this._console.error("ERROR",t)}},$e=new x("",{providedIn:"root",factory:()=>{let e=T(ae),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(Ve),t.handleError(n))}}}),ju={provide:Mt,useValue:()=>{T(Ve)},multi:!0};function na(e){return typeof e=="function"&&e[W]!==void 0}function Oo(e,t){let[n,r,o]=os(e,t?.equal),i=n,s=i[W];return i.set=r,i.update=o,i.asReadonly=ra.bind(i),i}function ra(){let e=this[W];if(e.readonlyFn===void 0){let t=()=>this();t[W]=e,e.readonlyFn=t}return e.readonlyFn}function oa(e){return na(e)&&typeof e.set=="function"}var Ft=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=cm}return e})();function cm(){return new Ft(y(),U())}var ce=class{},Jn=new x("",{providedIn:"root",factory:()=>!1});var ia=new x(""),ko=new x(""),it=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new xn(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new N(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),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=$({token:e,providedIn:"root",factory:()=>new e})}return e})(),Po=(()=>{class e{internalPendingTasks=T(it);scheduler=T(ce);errorHandler=T($e);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}return e})();function jt(...e){}var Xn=(()=>{class e{static \u0275prov=$({token:e,providedIn:"root",factory:()=>new ms})}return e})(),ms=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}};function vn(e){return{toString:e}.toString()}var Lo="__parameters__";function mm(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Md(e,t,n){return vn(()=>{let r=mm(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,l,u){let d=c.hasOwnProperty(Lo)?c[Lo]:Object.defineProperty(c,Lo,{value:[]})[Lo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var ym=bs(Md("Inject",e=>({token:e})),-1),vm=bs(Md("Optional"),8);function Im(e){return typeof e=="function"}var zo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Nd(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Em=(()=>{let e=()=>xd;return e.ngInherit=!0,e})();function xd(e){return e.type.prototype.ngOnChanges&&(e.setInput=Cm),Dm}function Dm(){let e=Ad(this),t=e?.current;if(t){let n=e.previous;if(n===Ee)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Cm(e,t,n,r,o){let i=this.declaredInputs[r],s=Ad(e)||wm(e,{previous:Ee,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new zo(l&&l.currentValue,n,c===Ee),Nd(e,t,o,n)}var Sd="__ngSimpleChanges__";function Ad(e){return e[Sd]||null}function wm(e,t){return e[Sd]=t}var Vu=[];var S=function(e,t=null,n){for(let r=0;r<Vu.length;r++){let o=Vu[r];o(e,t,n)}};function Tm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=xd(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 Rd(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Bo(e,t,n){Od(e,t,3,n)}function $o(e,t,n,r){(e[D]&3)===n&&Od(e,t,n,r)}function sa(e,t){let n=e[D];(n&3)===t&&(n&=16383,n+=1,e[D]=n)}function Od(e,t,n,r){let o=r!==void 0?e[St]&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[St]+=65536),(a<i||i==-1)&&(bm(e,n,t,c),e[St]=(e[St]&4294901760)+c+2),c++}function Hu(e,t){S(4,e,t);let n=I(null);try{t.call(e)}finally{I(n),S(5,e,t)}}function bm(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[D]>>14<e[St]>>16&&(e[D]&3)===t&&(e[D]+=16384,Hu(a,i)):Hu(a,i)}var dn=-1,Ht=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function _m(e){return(e.flags&8)!==0}function Mm(e){return(e.flags&16)!==0}function Nm(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];xm(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function kd(e){return e===3||e===4||e===6}function xm(e){return e.charCodeAt(0)===64}function pn(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?Bu(e,n,o,null,t[++r]):Bu(e,n,o,null,null))}}return e}function Bu(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 Pd(e){return e!==dn}function Qo(e){return e&32767}function Sm(e){return e>>16}function Zo(e,t){let n=Sm(e),r=t;for(;n>0;)r=r[xt],n--;return r}var va=!0;function $u(e){let t=va;return va=e,t}var Am=256,Ld=Am-1,Fd=5,Rm=0,Pe={};function Om(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(_t)&&(r=n[_t]),r==null&&(r=n[_t]=Rm++);let o=r&Ld,i=1<<o;t.data[e+(o>>Fd)]|=i}function Yo(e,t){let n=jd(e,t);if(n!==-1)return n;let r=t[m];r.firstCreatePass&&(e.injectorIndex=t.length,aa(r.data,e),aa(t,null),aa(r.blueprint,null));let o=nc(e,t),i=e.injectorIndex;if(Pd(o)){let s=Qo(o),a=Zo(o,t),c=a[m].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function aa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function jd(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function nc(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=Ud(o),r===null)return dn;if(n++,o=o[xt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return dn}function Ia(e,t,n){Om(e,t,n)}function km(e,t){if(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(kd(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 Vd(e,t,n){if(n&8||e!==void 0)return e;yo(t,"NodeInjector")}function Hd(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[oe],i=se(void 0);try{return o?o.get(t,r,n&8):Ts(t,r,n&8)}finally{se(i)}}return Vd(r,t,n)}function Bd(e,t,n,r=0,o){if(e!==null){if(t[D]&2048&&!(r&2)){let s=Vm(e,t,n,r,Pe);if(s!==Pe)return s}let i=$d(e,t,n,r,Pe);if(i!==Pe)return i}return Hd(t,n,r,o)}function $d(e,t,n,r,o){let i=Lm(n);if(typeof i=="function"){if(!Xs(t,e,r))return r&1?Vd(o,n,r):Hd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))yo(n);else return s}finally{ea()}}else if(typeof i=="number"){let s=null,a=jd(e,t),c=dn,l=r&1?t[J][ee]:null;for((a===-1||r&4)&&(c=a===-1?nc(e,t):t[a+8],c===dn||!qu(r,!1)?a=-1:(s=t[m],a=Qo(c),t=Zo(c,t)));a!==-1;){let u=t[m];if(Uu(i,a,u.data)){let d=Pm(a,t,n,s,r,l);if(d!==Pe)return d}c=t[a+8],c!==dn&&qu(r,t[m].data[a+8]===l)&&Uu(i,a,t)?(s=u,a=Qo(c),t=Zo(c,t)):a=-1}}return o}function Pm(e,t,n,r,o,i){let s=t[m],a=s.data[e+8],c=r==null?Be(a)&&va:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Uo(a,s,n,c,l);return u!==null?nr(t,s,u,a,o):Pe}function Uo(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Te(f)&&f.type===n)return c}return null}function nr(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Ht){let a=i;if(a.resolving){let f=Jl(s[n]);throw ws(f)}let c=$u(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?se(a.injectImpl):null,p=Xs(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Tm(n,s[n],t)}finally{d!==null&&se(d),$u(c),a.resolving=!1,ea()}}return i}function Lm(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(_t)?e[_t]:void 0;return typeof t=="number"?t>=0?t&Ld:Fm:t}function Uu(e,t,n){let r=1<<e;return!!(n[t+(e>>Fd)]&r)}function qu(e,t){return!(e&2)&&!(e&1&&t)}var Vt=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Bd(this._tNode,this._lView,t,Ct(r),n)}};function Fm(){return new Vt(U(),y())}function jm(e){return vn(()=>{let t=e.prototype.constructor,n=t[Hn]||Ea(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Hn]||Ea(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ea(e){return ys(e)?()=>{let t=Ea(G(e));return t&&t()}:wt(e)}function Vm(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[D]&2048&&!an(s);){let a=$d(i,s,n,r|2,Pe);if(a!==Pe)return a;let c=i.parent;if(!c){let l=s[Ls];if(l){let u=l.get(n,Pe,r);if(u!==Pe)return u}c=Ud(s),s=s[xt]}i=c}return o}function Ud(e){let t=e[m],n=t.type;return n===2?t.declTNode:n===1?e[ee]:null}function qd(e){return km(U(),e)}function Hm(){return In(U(),y())}function In(e,t){return new fr(ge(e,t))}var fr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Hm}return e})();function Wd(e){return e instanceof fr?e.nativeElement:e}function Bm(){return this._results[Symbol.iterator]()}var Ko=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 fe}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=ru(t);(this._changesDetected=!nu(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]=Bm};function Gd(e){return(e.flags&128)===128}var rc=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(rc||{}),zd=new Map,$m=0;function Um(){return $m++}function qm(e){zd.set(e[Gn],e)}function Da(e){zd.delete(e[Gn])}var Wu="__ngContext__";function hn(e,t){Oe(t)?(e[Wu]=t[Gn],qm(t)):e[Wu]=t}function Qd(e){return Yd(e[on])}function Zd(e){return Yd(e[pe])}function Yd(e){for(;e!==null&&!we(e);)e=e[pe];return e}var Ca;function Wm(e){Ca=e}function oc(){if(Ca!==void 0)return Ca;if(typeof document<"u")return document;throw new M(210,!1)}var Gm=new x("",{providedIn:"root",factory:()=>zm}),zm="ng",Kd=new x(""),Qm=new x("",{providedIn:"platform",factory:()=>"unknown"});var Zm=new x(""),Ym=new x("",{providedIn:"root",factory:()=>oc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Km="h",Jm="b";var Jd="r";var ic="di",sc="s";var Xd=!1,ef=new x("",{providedIn:"root",factory:()=>Xd});var tf=new x("");var Xm=(e,t,n,r)=>{};function ey(e,t,n,r){Xm(e,t,n,r)}var nf=new x("");function hi(e){return(e.flags&32)===32}var ty=()=>null;function rf(e,t,n=!1){return ty(e,t,n)}function ac(e){return e.get(tf,!1,{optional:!0})}function of(e,t){let n=e.contentQueries;if(n!==null){let r=I(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];Yn(i),a.contentQueries(2,t[s],s)}}}finally{I(r)}}}function wa(e,t,n){Yn(0);let r=I(null);try{t(e,n)}finally{I(r)}}function cc(e,t,n){if(Fs(t)){let r=I(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];a.contentQueries(1,c,s)}}}finally{I(r)}}}var gn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(gn||{});var Fo;function ny(){if(Fo===void 0&&(Fo=null,en.trustedTypes))try{Fo=en.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Fo}function gi(e){return ny()?.createHTML(e)||e}var jo;function sf(){if(jo===void 0&&(jo=null,en.trustedTypes))try{jo=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jo}function Gu(e){return sf()?.createHTML(e)||e}function zu(e){return sf()?.createScriptURL(e)||e}var qe=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${fo})`}},Ta=class extends qe{getTypeName(){return"HTML"}},ba=class extends qe{getTypeName(){return"Style"}},_a=class extends qe{getTypeName(){return"Script"}},Ma=class extends qe{getTypeName(){return"URL"}},Na=class extends qe{getTypeName(){return"ResourceURL"}};function En(e){return e instanceof qe?e.changingThisBreaksApplicationSecurity:e}function mi(e,t){let n=af(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${fo})`)}return n===t}function af(e){return e instanceof qe&&e.getTypeName()||null}function ry(e){return new Ta(e)}function oy(e){return new ba(e)}function iy(e){return new _a(e)}function sy(e){return new Ma(e)}function ay(e){return new Na(e)}function cy(e){let t=new Sa(e);return ly()?new xa(t):t}var xa=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(gi(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Sa=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=gi(t),n}};function ly(){try{return!!new window.DOMParser().parseFromString(gi(""),"text/html")}catch{return!1}}var uy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function lc(e){return e=String(e),e.match(uy)?e:"unsafe:"+e}function We(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function pr(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var cf=We("area,br,col,hr,img,wbr"),lf=We("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uf=We("rp,rt"),dy=pr(uf,lf),fy=pr(lf,We("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")),py=pr(uf,We("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")),Qu=pr(cf,fy,py,dy),df=We("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hy=We("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"),gy=We("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"),my=pr(df,hy,gy),yy=We("script,style,template");var Aa=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=Ey(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Iy(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Zu(t).toLowerCase();if(!Qu.hasOwnProperty(n))return this.sanitizedSomething=!0,!yy.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(!my.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=i.value;df[a]&&(c=lc(c)),this.buf.push(" ",s,'="',Yu(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=Zu(t).toLowerCase();Qu.hasOwnProperty(n)&&!cf.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Yu(t))}};function vy(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Iy(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw ff(t);return t}function Ey(e){let t=e.firstChild;if(t&&vy(e,t))throw ff(t);return t}function Zu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function ff(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Dy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cy=/([^\#-~ |!])/g;function Yu(e){return e.replace(/&/g,"&amp;").replace(Dy,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Cy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Vo;function pf(e,t){let n=null;try{Vo=Vo||cy(e);let r=t?String(t):"";n=Vo.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=Vo.getInertBodyElement(r)}while(r!==i);let a=new Aa().sanitizeChildren(Ku(n)||n);return gi(a)}finally{if(n){let r=Ku(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Ku(e){return"content"in e&&wy(e)?e.content:null}function wy(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Ty=/^>|^->|<!--|-->|--!>|<!-$/g,by=/(<|>)/g,_y="\u200B$1\u200B";function My(e){return e.replace(Ty,t=>t.replace(by,_y))}function Ny(e,t){return e.createText(t)}function xy(e,t,n){e.setValue(t,n)}function Sy(e,t){return e.createComment(My(t))}function hf(e,t,n){return e.createElement(t,n)}function Jo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function gf(e,t,n){e.appendChild(t,n)}function Ju(e,t,n,r,o){r!==null?Jo(e,t,n,r,o):gf(e,t,n)}function mf(e,t,n,r){e.removeChild(null,t,n,r)}function Ay(e,t,n){e.setAttribute(t,"style",n)}function Ry(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function yf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&Nm(e,t,r),o!==null&&Ry(e,t,o),i!==null&&Ay(e,t,i)}var hr=(function(e){return 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})(hr||{});function Oy(e){let t=uc();return t?Gu(t.sanitize(hr.HTML,e)||""):mi(e,"HTML")?Gu(En(e)):pf(oc(),F(e))}function vf(e){let t=uc();return t?t.sanitize(hr.URL,e)||"":mi(e,"URL")?En(e):lc(F(e))}function If(e){let t=uc();if(t)return zu(t.sanitize(hr.RESOURCE_URL,e)||"");if(mi(e,"ResourceURL"))return zu(En(e));throw new M(904,!1)}var ky=new Set(["embed","frame","iframe","media","script"]),Py=new Set(["base","link","script"]);function Ly(e,t){return t==="src"&&ky.has(e)||t==="href"&&Py.has(e)||t==="xlink:href"&&e==="script"?If:vf}function Fy(e,t,n){return Ly(t,n)(e)}function uc(){let e=y();return e&&e[Ae].sanitizer}function jy(e){return e.ownerDocument.defaultView}function Vy(e){return e.ownerDocument}function Ef(e){return e instanceof Function?e():e}function Hy(e,t,n){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 Df="ng-template";function By(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Hy(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(dc(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 dc(e){return e.type===4&&e.value!==Df}function $y(e,t,n){let r=e.type===4&&!n?Df:e.value;return t===r}function Uy(e,t,n){let r=4,o=e.attrs,i=o!==null?Gy(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!be(r)&&!be(c))return!1;if(s&&be(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!$y(e,c,n)||c===""&&t.length===1){if(be(r))return!1;s=!0}}else if(r&8){if(o===null||!By(e,o,c,n)){if(be(r))return!1;s=!0}}else{let l=t[++a],u=qy(c,o,dc(e),n);if(u===-1){if(be(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(be(r))return!1;s=!0}}}}return be(r)||s}function be(e){return(e&1)===0}function qy(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 zy(t,e)}function Cf(e,t,n=!1){for(let r=0;r<t.length;r++)if(Uy(e,t[r],n))return!0;return!1}function Wy(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function Gy(e){for(let t=0;t<e.length;t++){let n=e[t];if(kd(n))return t}return e.length}function zy(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 Qy(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 Xu(e,t){return e?":not("+t.trim()+")":t}function Zy(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!==""&&!be(s)&&(t+=Xu(i,o),o=""),r=s,i=i||!be(r);n++}return o!==""&&(t+=Xu(i,o)),t}function Yy(e){return e.map(Zy).join(",")}function Ky(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(!be(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var q={};function fc(e,t,n,r,o,i,s,a,c,l,u){let d=P+r,p=d+o,f=Jy(d,p),h=typeof l=="function"?l():l;return f[m]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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:u}}function Jy(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:q);return n}function Xy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=fc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function pc(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Ce]=o,d[D]=r|4|128|8|64|1024,(l!==null||e&&e[D]&2048)&&(d[D]|=2048),Hs(d),d[B]=d[xt]=e,d[j]=n,d[Ae]=s||e&&e[Ae],d[R]=a||e&&e[R],d[oe]=c||e&&e[oe]||null,d[ee]=i,d[Gn]=Um(),d[Nt]=u,d[Ls]=l,d[J]=t.type==2?e[J]:d,d}function ev(e,t,n){let r=ge(t,e),o=Xy(n),i=e[Ae].rendererFactory,s=hc(e,pc(e,o,null,wf(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function wf(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Tf(e,t,n,r){if(n===0)return-1;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 hc(e,t){return e[on]?e[Ps][pe]=t:e[on]=t,e[Ps]=t,t}function tv(e=1){bf(k(),y(),de()+e,!1)}function bf(e,t,n,r){if(!r)if((t[D]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Bo(t,i,n)}else{let i=e.preOrderHooks;i!==null&&$o(t,i,0,n)}rt(n)}var yi=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(yi||{});function Ra(e,t,n,r){let o=I(null);try{let[i,s,a]=e.inputs[n],c=null;(s&yi.SignalBased)!==0&&(c=t[i][W]),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):Nd(t,c,i,r)}finally{I(o)}}var Xo=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Xo||{}),nv;function gc(e,t){return nv(e,t)}var rr=new Set,vi=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(vi||{}),Dn=new x(""),ed=new Set;function Ge(e){ed.has(e)||(ed.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var _f=!1,Oa=class extends fe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,uu()&&(this.destroyRef=T(ot,{optional:!0})??void 0,this.pendingTasks=T(it,{optional:!0})??void 0)}emit(t){let n=I(null);try{super.next(t)}finally{I(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 L&&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)}})}}},Ue=Oa;function Mf(e){let t,n;function r(){e=jt;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 td(e){return queueMicrotask(()=>e()),()=>{e=jt}}var mc="isAngularZone",ei=mc+"_ID",rv=0,te=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ue(!1);onMicrotaskEmpty=new Ue(!1);onStable=new Ue(!1);onError=new Ue(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=_f}=t;if(typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,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,sv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(mc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new M(909,!1)}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,ov,jt,jt);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)}},ov={};function yc(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 iv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Mf(()=>{e.callbackScheduled=!1,ka(e),e.isCheckStableRunning=!0,yc(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ka(e)}function sv(e){let t=()=>{iv(e)},n=rv++;e._inner=e._inner.fork({name:"angular",properties:{[mc]:!0,[ei]:n,[ei+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(av(c))return r.invokeTask(i,s,a,c);try{return nd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),rd(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return nd(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!cv(c)&&t(),rd(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ka(e),yc(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 ka(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function nd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function rd(e){e._nesting--,yc(e)}var or=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ue;onMicrotaskEmpty=new Ue;onStable=new Ue;onError=new Ue;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 av(e){return Nf(e,"__ignore_ng_zone__")}function cv(e){return Nf(e,"__scheduler_tick__")}function Nf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Ii=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}return e})(),vc=[0,1,2,3],Ic=(()=>{class e{ngZone=T(te);scheduler=T(ce);errorHandler=T(Ve,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){T(Dn,{optional:!0})}execute(){let n=this.sequences.size>0;n&&S(16),this.executing=!0;for(let r of vc)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&S(17)}register(n){let{view:r}=n;r!==void 0?((r[At]??=[]).push(n),nt(r),r[D]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(vi.AFTER_NEXT_RENDER,n):n()}static \u0275prov=$({token:e,providedIn:"root",factory:()=>new e})}return e})(),ir=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?.[At];t&&(this.view[At]=t.filter(n=>n!==this))}};function lv(e,t){let n=t?.injector??T(Ie);return Ge("NgAfterNextRender"),dv(e,n,t,!0)}function uv(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function dv(e,t,n,r){let o=t.get(Ii);o.impl??=t.get(Ic);let i=t.get(Dn,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(ot):null,a=t.get(Ft,null,{optional:!0}),c=new ir(o.impl,uv(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var xf=new x("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Sf(e,t,n){let r=e.get(xf);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 fv(e,t){let n=e.get(xf);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function pv(e,t){for(let[n,r]of t)Sf(e,r.animateFns)}function od(e,t,n,r){let o=e?.[Rt]?.enter;t!==null&&o&&o.has(n.index)&&pv(r,o)}function un(e,t,n,r,o,i,s,a){if(o!=null){let c,l=!1;we(o)?c=o:Oe(o)&&(l=!0,o=o[Ce]);let u=he(o);e===0&&r!==null?(od(a,r,i,n),s==null?gf(t,r,u):Jo(t,r,u,s||null,!0)):e===1&&r!==null?(od(a,r,i,n),Jo(t,r,u,s||null,!0)):e===2?id(a,i,n,d=>{mf(t,u,l,d)}):e===3&&id(a,i,n,()=>{t.destroyNode(u)}),c!=null&&Tv(t,e,n,c,i,r,s)}}function hv(e,t){Af(e,t),t[Ce]=null,t[ee]=null}function gv(e,t,n,r,o,i){r[Ce]=o,r[ee]=t,Di(e,r,n,1,o,i)}function Af(e,t){t[Ae].changeDetectionScheduler?.notify(9),Di(e,t,t[R],2,null,null)}function mv(e){let t=e[on];if(!t)return ca(e[m],e);for(;t;){let n=null;if(Oe(t))n=t[on];else{let r=t[V];r&&(n=r)}if(!n){for(;t&&!t[pe]&&t!==e;)Oe(t)&&ca(t[m],t),t=t[B];t===null&&(t=e),Oe(t)&&ca(t[m],t),n=t&&t[pe]}t=n}}function Ec(e,t){let n=e[Ot],r=n.indexOf(t);n.splice(r,1)}function Ei(e,t){if(tt(t))return;let n=t[R];n.destroyNode&&Di(e,t,n,3,null,null),mv(t)}function ca(e,t){if(tt(t))return;let n=I(null);try{t[D]&=-129,t[D]|=256,t[le]&&Ye(t[le]),Iv(e,t),vv(e,t),t[m].type===1&&t[R].destroy();let r=t[Je];if(r!==null&&we(t[B])){r!==t[B]&&Ec(r,t);let o=t[Re];o!==null&&o.detachView(e)}Da(t)}finally{I(n)}}function id(e,t,n,r){let o=e?.[Rt];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&rr.add(e),Sf(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 l=s.animateFns[c],{promise:u}=l();a.push(u)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),yv(e,r)}else e&&rr.delete(e),r(!1)},o)}function yv(e,t){let n=e[Rt]?.running;if(n){n.then(()=>{e[Rt].running=void 0,rr.delete(e),t(!0)});return}t(!1)}function vv(e,t){let n=e.cleanup,r=t[rn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[rn]=null);let o=t[Fe];if(o!==null){t[Fe]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[He];if(i!==null){t[He]=null;for(let s of i)s.destroy()}}function Iv(e,t){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 Ht)){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];S(4,a,c);try{c.call(a)}finally{S(5,a,c)}}else{S(4,o,i);try{i.call(o)}finally{S(5,o,i)}}}}}function Rf(e,t,n){return Ev(e,t.parent,n)}function Ev(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ce];if(Be(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===gn.None||o===gn.Emulated)return null}return ge(r,n)}function Of(e,t,n){return Cv(e,t,n)}function Dv(e,t,n){return e.type&40?ge(e,n):null}var Cv=Dv,sd;function Dc(e,t,n,r){let o=Rf(e,r,t),i=t[R],s=r.parent||t[ee],a=Of(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ju(i,o,n[c],a,!1);else Ju(i,o,n,a,!1);sd!==void 0&&sd(i,r,t,n,o)}function er(e,t){if(t!==null){let n=t.type;if(n&3)return ge(t,e);if(n&4)return Pa(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return er(e,r);{let o=e[t.index];return we(o)?Pa(-1,o):he(o)}}else{if(n&128)return er(e,t.next);if(n&32)return gc(t,e)()||he(e[t.index]);{let r=kf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ke(e[J]);return er(o,r)}else return er(e,t.next)}}}return null}function kf(e,t){if(t!==null){let r=e[J][ee],o=t.projection;return r.projection[o]}return null}function Pa(e,t){let n=V+e+1;if(n<t.length){let r=t[n],o=r[m].firstChild;if(o!==null)return er(r,o)}return t[et]}function Cc(e,t,n,r,o,i,s){for(;n!=null;){let a=r[oe];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&hn(he(c),r),n.flags|=2),!hi(n))if(l&8)Cc(e,t,n.child,r,o,i,!1),un(t,e,a,o,c,n,i,r);else if(l&32){let u=gc(n,r),d;for(;d=u();)un(t,e,a,o,d,n,i,r);un(t,e,a,o,c,n,i,r)}else l&16?Pf(e,t,r,n,o,i):un(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function Di(e,t,n,r,o,i){Cc(n,r,e.firstChild,t,o,i,!1)}function wv(e,t,n){let r=t[R],o=Rf(e,n,t),i=n.parent||t[ee],s=Of(i,n,t);Pf(r,0,t,n,o,s)}function Pf(e,t,n,r,o,i){let s=n[J],c=s[ee].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];un(t,e,n[oe],o,u,r,i,n)}else{let l=c,u=s[B];Gd(r)&&(l.flags|=128),Cc(e,t,l,u,o,i,!0)}}function Tv(e,t,n,r,o,i,s){let a=r[et],c=he(r);a!==c&&un(t,e,n,i,a,o,s);for(let l=V;l<r.length;l++){let u=r[l];Di(u[m],u,e,t,i,a)}}function bv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Xo.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xo.Important),e.setStyle(n,r,o,i))}}function Lf(e,t,n,r,o){let i=de(),s=r&2;try{rt(-1),s&&t.length>P&&bf(e,t,P,!1),S(s?2:0,o,n),n(r,o)}finally{rt(i),S(s?3:1,o,n)}}function Ci(e,t,n){Sv(e,t,n),(n.flags&64)===64&&Av(e,t,n)}function gr(e,t,n=ge){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 _v(e,t,n,r){let i=r.get(ef,Xd)||n===gn.ShadowDom,s=e.selectRootElement(t,i);return Mv(s),s}function Mv(e){Nv(e)}var Nv=()=>null;function xv(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ff(e,t,n,r,o,i){let s=t[m];if(wi(e,s,t,n,r)){Be(e)&&Vf(t,e.index);return}e.type&3&&(n=xv(n)),jf(e,t,n,r,o,i)}function jf(e,t,n,r,o,i){if(e.type&3){let s=ge(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function Vf(e,t){let n=me(t,e);n[D]&16||(n[D]|=64)}function Sv(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Be(n)&&ev(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Yo(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=nr(t,e,s,n);if(hn(c,t),i!==null&&kv(t,s-r,c,a,n,i),Te(a)){let l=me(n.index,t);l[j]=nr(t,e,s,n)}}}function Av(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Nu();try{rt(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];No(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Rv(c,l)}}finally{rt(-1),No(s)}}function Rv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function wc(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Cf(t,i.selectors,!1)&&(r??=[],Te(i)?r.unshift(i):r.push(i))}return r}function Ov(e,t,n,r,o,i){let s=ge(e,t);Hf(t[R],s,i,e.value,n,r,o)}function Hf(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?F(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function kv(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],l=s[a+1];Ra(r,n,c,l)}}function Tc(e,t,n,r,o){let i=P+n,s=t[m],a=o(s,t,e,r,n);t[i]=a,cn(e,!0);let c=e.type===2;return c?(yf(t[R],a,e),(vu()===0||sn(e))&&hn(a,t),Iu()):hn(a,t),Ro()&&(!c||!hi(e))&&Dc(s,t,a,e),e}function bc(e){let t=e;return Ys()?Ks():(t=t.parent,cn(t,!1)),t}function _c(e,t){let n=e[oe];if(!n)return;let r;try{r=n.get($e,null)}catch{r=null}r?.(t)}function wi(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 l=s[c],u=s[c+1],d=t.data[l];Ra(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Ra(u,l,r,o),a=!0}return a}function Pv(e,t){let n=me(t,e),r=n[m];Lv(r,n);let o=n[Ce];o!==null&&n[Nt]===null&&(n[Nt]=rf(o,n[oe])),S(18),Mc(r,n,n[j]),S(19,n[j])}function Lv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Mc(e,t,n){So(t);try{let r=e.viewQuery;r!==null&&wa(1,r,n);let o=e.template;o!==null&&Lf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Re]?.finishViewCreation(e),e.staticContentQueries&&of(e,t),e.staticViewQueries&&wa(2,e.viewQuery,n);let i=e.components;i!==null&&Fv(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[D]&=-5,Ao()}}function Fv(e,t){for(let n=0;n<t.length;n++)Pv(e,t[n])}function Cn(e,t,n,r){let o=I(null);try{let i=t.tView,a=e[D]&4096?4096:16,c=pc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Je]=l;let u=e[Re];return u!==null&&(c[Re]=u.createEmbeddedView(i)),Mc(i,c,n),c}finally{I(o)}}function Bt(e,t){return!t||t.firstChild===null||Gd(e)}function sr(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(he(i)),we(i)&&Bf(i,r);let s=n.type;if(s&8)sr(e,t,n.child,r);else if(s&32){let a=gc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=kf(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ke(t[J]);sr(c[m],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Bf(e,t){for(let n=V;n<e.length;n++){let r=e[n],o=r[m].firstChild;o!==null&&sr(r[m],r,o,t)}e[et]!==e[Ce]&&t.push(e[et])}function $f(e){if(e[At]!==null){for(let t of e[At])t.impl.addSequence(t);e[At].length=0}}var Uf=[];function jv(e){return e[le]??Vv(e)}function Vv(e){let t=Uf.pop()??Object.create(Bv);return t.lView=e,t}function Hv(e){e.lView[le]!==e&&(e.lView=null,Uf.push(e))}var Bv=Q(z({},yt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{nt(e.lView)},consumerOnSignalRead(){this.lView[le]=this}});function $v(e){let t=e[le]??Object.create(Uv);return t.lView=e,t}var Uv=Q(z({},yt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ke(e.lView);for(;t&&!qf(t[m]);)t=Ke(t);t&&Bs(t)},consumerOnSignalRead(){this.lView[le]=this}});function qf(e){return e.type!==2}function Wf(e){if(e[He]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[He])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[D]&8192)}}var qv=100;function Gf(e,t=0){let r=e[Ae].rendererFactory,o=!1;o||r.begin?.();try{Wv(e,t)}finally{o||r.end?.()}}function Wv(e,t){let n=Js();try{ln(!0),La(e,t);let r=0;for(;Qn(e);){if(r===qv)throw new M(103,!1);r++,La(e,1)}}finally{ln(n)}}function Gv(e,t,n,r){if(tt(t))return;let o=t[D],i=!1,s=!1;So(t);let a=!0,c=null,l=null;i||(qf(e)?(l=jv(t),c=Ze(l)):oo()===null?(a=!1,l=$v(t),c=Ze(l)):t[le]&&(Ye(t[le]),t[le]=null));try{Hs(t),bu(e.bindingStartIndex),n!==null&&Lf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Bo(t,f,null)}else{let f=e.preOrderHooks;f!==null&&$o(t,f,0,null),sa(t,0)}if(s||zv(t),Wf(t),zf(t,0),e.contentQueries!==null&&of(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Bo(t,f)}else{let f=e.contentHooks;f!==null&&$o(t,f,1),sa(t,1)}Zv(e,t);let d=e.components;d!==null&&Zf(t,d,0);let p=e.viewQuery;if(p!==null&&wa(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Bo(t,f)}else{let f=e.viewHooks;f!==null&&$o(t,f,2),sa(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[wo]){for(let f of t[wo])f();t[wo]=null}i||($f(t),t[D]&=-73)}catch(u){throw i||nt(t),u}finally{l!==null&&(It(l,c),a&&Hv(l)),Ao()}}function zf(e,t){for(let n=Qd(e);n!==null;n=Zd(n))for(let r=V;r<n.length;r++){let o=n[r];Qf(o,t)}}function zv(e){for(let t=Qd(e);t!==null;t=Zd(t)){if(!(t[D]&2))continue;let n=t[Ot];for(let r=0;r<n.length;r++){let o=n[r];Bs(o)}}}function Qv(e,t,n){S(18);let r=me(t,e);Qf(r,n),S(19,r[j])}function Qf(e,t){To(e)&&La(e,t)}function La(e,t){let r=e[m],o=e[D],i=e[le],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Et(i)),s||=!1,i&&(i.dirty=!1),e[D]&=-9217,s)Gv(r,e,r.template,e[j]);else if(o&8192){let a=I(null);try{Wf(e),zf(e,1);let c=r.components;c!==null&&Zf(e,c,1),$f(e)}finally{I(a)}}}function Zf(e,t,n){for(let r=0;r<t.length;r++)Qv(e,t[r],n)}function Zv(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)rt(~o);else{let i=o,s=n[++r],a=n[++r];Mu(s,i);let c=t[i];S(24,c),a(2,c),S(25,c)}}}finally{rt(-1)}}function Ti(e,t){let n=Js()?64:1088;for(e[Ae].changeDetectionScheduler?.notify(t);e;){e[D]|=n;let r=Ke(e);if(an(e)&&!r)return e;e=r}return null}function Yf(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Kf(e,t){let n=V+t;if(n<e.length)return e[n]}function wn(e,t,n,r=!0){let o=t[m];if(Yv(o,t,e,n),r){let s=Pa(n,e),a=t[R],c=a.parentNode(e[et]);c!==null&&gv(o,e[ee],a,t,c,s)}let i=t[Nt];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Nc(e,t){let n=ar(e,t);return n!==void 0&&Ei(n[m],n),n}function ar(e,t){if(e.length<=V)return;let n=V+t,r=e[n];if(r){let o=r[Je];o!==null&&o!==e&&Ec(o,r),t>0&&(e[n-1][pe]=r[pe]);let i=qn(e,V+t);hv(r[m],r);let s=i[Re];s!==null&&s.detachView(i[m]),r[B]=null,r[pe]=null,r[D]&=-129}return r}function Yv(e,t,n,r){let o=V+r,i=n.length;r>0&&(n[o-1][pe]=t),r<i-V?(t[pe]=n[o],_s(n,V+r,t)):(n.push(t),t[pe]=null),t[B]=n;let s=t[Je];s!==null&&n!==s&&Jf(s,t);let a=t[Re];a!==null&&a.insertView(e),bo(t),t[D]|=128}function Jf(e,t){let n=e[Ot],r=t[B];if(Oe(r))e[D]|=2;else{let o=r[B][J];t[J]!==o&&(e[D]|=2)}n===null?e[Ot]=[t]:n.push(t)}var at=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[m];return sr(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[j]}set context(t){this._lView[j]=t}get destroyed(){return tt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[B];if(we(t)){let n=t[zn],r=n?n.indexOf(this):-1;r>-1&&(ar(t,r),qn(n,r))}this._attachedToViewContainer=!1}Ei(this._lView[m],this._lView)}onDestroy(t){_o(this._lView,t)}markForCheck(){Ti(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[D]&=-129}reattach(){bo(this._lView),this._lView[D]|=128}detectChanges(){this._lView[D]|=1024,Gf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=an(this._lView),n=this._lView[Je];n!==null&&!t&&Ec(n,this._lView),Af(this._lView[m],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t;let n=an(this._lView),r=this._lView[Je];r!==null&&!n&&Jf(r,this._lView),bo(this._lView)}};var cr=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Kv;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Cn(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new at(i)}}return e})();function Kv(){return bi(U(),y())}function bi(e,t){return e.type&4?new cr(t,e,In(e,t)):null}function Tn(e,t,n,r,o){let i=e.data[t];if(i===null)i=Jv(e,t,n,r,o),_u()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Cu();i.injectorIndex=s===null?-1:s.injectorIndex}return cn(i,!0),i}function Jv(e,t,n,r,o){let i=Zs(),s=Ys(),a=s?i:i&&i.parent,c=e.data[t]=eI(e,a,n,t,r,o);return Xv(e,c,i,s),c}function Xv(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 eI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Gs()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,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}}var AA=new RegExp(`^(\\d+)*(${Jm}|${Km})*(.*)`);function tI(e){let t=e[Xe]??[],r=e[B][R],o=[];for(let i of t)i.data[ic]!==void 0?o.push(i):nI(i,r);e[Xe]=o}function nI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Jd];for(;n<o;){let i=r.nextSibling;mf(t,r,!1),r=i,n++}}}var rI=()=>null,oI=()=>null;function ti(e,t){return rI(e,t)}function Xf(e,t,n){return oI(e,t,n)}var ep=class{},_i=class{},Fa=class{resolveComponentFactory(t){throw new M(917,!1)}},mr=class{static NULL=new Fa},lr=class{},iI=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>sI()}return e})();function sI(){let e=y(),t=U(),n=me(t.index,e);return(Oe(n)?n:e)[R]}var tp=(()=>{class e{static \u0275prov=$({token:e,providedIn:"root",factory:()=>null})}return e})();var qo={},fn=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,qo,r);return o!==qo||n===qo?o:this.parentInjector.get(t,n,r)}};function ni(e,t,n){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=ho(o,a);else if(i==2){let c=a,l=t[++s];r=ho(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Mi(e,t=0){let n=y();if(n===null)return Se(e,t);let r=U();return Bd(r,n,G(e),t)}function aI(){let e="invalid";throw new Error(e)}function np(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}uI(e,t,n,a,i,c,l)}i!==null&&r!==null&&cI(n,r,i)}function cI(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 M(-301,!1);r.push(t[o],i)}}function lI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function uI(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let f=r[p];!c&&Te(f)&&(c=!0,lI(e,n,p)),Ia(Yo(n,t),e,f.type)}mI(n,e.data.length,a);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=Tf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=pn(n.mergedAttrs,f.hostAttrs),fI(e,n,t,d,f),gI(d,f,o),s!==null&&s.has(f)){let[g,E]=s.get(f);n.directiveToIndex.set(f.type,[d,g+n.directiveStart,E+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}dI(e,n,i)}function dI(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))ad(0,t,o,r),ad(1,t,o,r),ld(t,r,!1);else{let i=n.get(o);cd(0,t,i,r),cd(1,t,i,r),ld(t,r,!0)}}}function ad(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),rp(t,i)}}function cd(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),rp(t,s)}}function rp(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function ld(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||dc(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 l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function fI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=wt(o.type,!0)),s=new Ht(i,Te(o),Mi,null);e.blueprint[r]=s,n[r]=s,pI(e,t,r,Tf(e,n,o.hostVars,q),o)}function pI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;hI(s)!=a&&s.push(a),s.push(n,r,i)}}function hI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function gI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Te(t)&&(n[""]=e)}}function mI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function xc(e,t,n,r,o,i,s,a){let c=t[m],l=c.consts,u=ue(l,s),d=Tn(c,e,n,r,u);return i&&np(c,t,d,ue(l,a),o),d.mergedAttrs=pn(d.mergedAttrs,d.attrs),d.attrs!==null&&ni(d,d.attrs,!1),d.mergedAttrs!==null&&ni(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Sc(e,t){Rd(e,t),Fs(t)&&e.queries.elementEnd(t)}function yI(e,t,n,r,o,i){let s=t.consts,a=ue(s,o),c=Tn(t,e,n,r,a);if(c.mergedAttrs=pn(c.mergedAttrs,c.attrs),i!=null){let l=ue(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&ni(c,c.attrs,!1),c.mergedAttrs!==null&&ni(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Ac(e){return ip(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function op(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 ip(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function vI(e,t,n){return e[t]=n}function ne(e,t,n){if(n===q)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ri(e,t,n,r){let o=ne(e,t,n);return ne(e,t+1,r)||o}function sp(e,t,n,r,o){let i=ri(e,t,n,r);return ne(e,t+2,o)||i}function ap(e,t,n,r,o,i){let s=ri(e,t,n,r);return ri(e,t+2,o,i)||s}function Wo(e,t,n){return function r(o){let i=Be(e)?me(e.index,t):t;Ti(i,5);let s=t[j],a=ud(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ud(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function ud(e,t,n,r){let o=I(null);try{return S(6,t,n),n(r)!==!1}catch(i){return _c(e,i),!1}finally{S(7,t,n),I(o)}}function cp(e,t,n,r,o,i,s,a){let c=sn(e),l=!1,u=null;if(!r&&c&&(u=EI(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=ge(e,n),p=r?r(d):d;ey(n,p,i,a);let f=o.listen(p,i,a);if(!II(i)){let h=r?g=>r(he(g[e.index])):e.index;lp(h,t,n,i,a,f,!1)}}return l}function II(e){return e.startsWith("animation")||e.startsWith("transition")}function EI(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[rn],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function lp(e,t,n,r,o,i,s){let a=t.firstCreatePass?qs(t):null,c=Us(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function dd(e,t,n,r,o,i){let s=t[n],a=t[m],l=a.data[n].outputs[r],d=s[l].subscribe(i);lp(e.index,a,t,o,i,d,!0)}var ja=Symbol("BINDING");var oi=class extends mr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=De(t);return new ct(n,this.ngModule)}};function DI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&yi.SignalBased)!==0};return o&&(i.transform=o),i})}function CI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function wI(e,t,n){let r=t instanceof ae?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new fn(n,r):n}function TI(e){let t=e.get(lr,null);if(t===null)throw new M(407,!1);let n=e.get(tp,null),r=e.get(ce,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function bI(e,t){let n=up(e);return hf(t,n,n==="svg"?js:n==="math"?fu:null)}function up(e){return(e.selectors[0][0]||"div").toLowerCase()}var ct=class extends _i{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=DI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=CI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Yy(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){S(22);let a=I(null);try{let c=this.componentDef,l=_I(r,c,s,i),u=wI(c,o||this.ngModule,t),d=TI(u),p=d.rendererFactory.createRenderer(null,c),f=r?_v(p,r,c.encapsulation,u):bI(c,p),h=s?.some(fd)||i?.some(v=>typeof v!="function"&&v.bindings.some(fd)),g=pc(null,l,null,512|wf(c),null,null,d,p,u,null,rf(f,u,!0));g[P]=f,So(g);let E=null;try{let v=xc(P,g,2,"#host",()=>l.directiveRegistry,!0,0);yf(p,f,v),hn(f,g),Ci(l,g,v),cc(l,v,g),Sc(l,v),n!==void 0&&NI(v,this.ngContentSelectors,n),E=me(v.index,g),g[j]=E[j],Mc(l,g,null)}catch(v){throw E!==null&&Da(E),Da(g),v}finally{S(23),Ao()}return new ii(this.componentType,g,!!h)}finally{I(a)}}};function _I(e,t,n,r){let o=e?["ng-version","20.3.21"]:Ky(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[ja].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[ja].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=Wn(d);c.push(p)}return fc(0,null,MI(i,s),1,a,c,null,null,null,[o],null)}function MI(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 fd(e){let t=e[ja].kind;return t==="input"||t==="twoWay"}var ii=class extends ep{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=kt(n[m],P),this.location=In(this._tNode,n),this.instance=me(this._tNode.index,n)[j],this.hostView=this.changeDetectorRef=new at(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;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=wi(r,o[m],o,t,n);this.previousInputValues.set(t,n);let s=me(r.index,o);Ti(s,1)}get injector(){return new Vt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function NI(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 Ni=(()=>{class e{static __NG_ELEMENT_ID__=xI}return e})();function xI(){let e=U();return fp(e,y())}var SI=Ni,dp=class extends SI{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return In(this._hostTNode,this._hostLView)}get injector(){return new Vt(this._hostTNode,this._hostLView)}get parentInjector(){let t=nc(this._hostTNode,this._hostLView);if(Pd(t)){let n=Zo(t,this._hostLView),r=Qo(t),o=n[m].data[r+8];return new Vt(o,n)}else return new Vt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=pd(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-V}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ti(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Bt(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!Im(t),l;if(c)l=n;else{let E=n||{};l=E.index,r=E.injector,o=E.projectableNodes,i=E.environmentInjector||E.ngModuleRef,s=E.directives,a=E.bindings}let u=c?t:new ct(De(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let v=(c?d:this.parentInjector).get(ae,null);v&&(i=v)}let p=De(u.componentType??{}),f=ti(this._lContainer,p?.id??null),h=f?.firstChild??null,g=u.create(d,o,h,i,s,a);return this.insertImpl(g.hostView,l,Bt(this._hostTNode,f)),g}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(gu(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[B],l=new dp(c,c[ee],c[B]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return wn(s,o,i,r),t.attachToViewContainerRef(),_s(la(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=pd(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ar(this._lContainer,n);r&&(qn(la(this._lContainer),n),Ei(r[m],r))}detach(t){let n=this._adjustIndex(t,-1),r=ar(this._lContainer,n);return r&&qn(la(this._lContainer),n)!=null?new at(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function pd(e){return e[zn]}function la(e){return e[zn]||(e[zn]=[])}function fp(e,t){let n,r=t[e.index];return we(r)?n=r:(n=Yf(r,t,null,e),t[e.index]=n,hc(t,n)),RI(n,t,e,r),new dp(n,e,t)}function AI(e,t){let n=e[R],r=n.createComment(""),o=ge(t,e),i=n.parentNode(o);return Jo(n,i,r,n.nextSibling(o),!1),r}var RI=kI,OI=()=>!1;function pp(e,t,n){return OI(e,t,n)}function kI(e,t,n,r){if(e[et])return;let o;n.type&8?o=he(r):o=AI(t,n),e[et]=o}var Va=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Ha=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++)Oc(t,n).matches!==null&&this.queries[n].setDirty()}},si=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=VI(t):this.predicate=t}},Ba=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){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){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},$a=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,PI(n,i)),this.matchTNodeWithReadOption(t,n,Uo(n,t,i,!1,!1))}else r===cr?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Uo(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===fr||o===Ni||o===cr&&n.type&4)this.addMatch(n.index,-2);else{let i=Uo(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 PI(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 LI(e,t){return e.type&11?In(e,t):e.type&4?bi(e,t):null}function FI(e,t,n,r){return n===-1?LI(t,e):n===-2?jI(e,t,r):nr(e,e[m],n,t)}function jI(e,t,n){if(n===fr)return In(t,e);if(n===cr)return bi(t,e);if(n===Ni)return fp(t,e)}function hp(e,t,n,r){let o=t[Re].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 l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(FI(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Ua(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=hp(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 l=i[a+1],u=t[-c];for(let d=V;d<u.length;d++){let p=u[d];p[Je]===p[B]&&Ua(p[m],p,l,r)}if(u[Ot]!==null){let d=u[Ot];for(let p=0;p<d.length;p++){let f=d[p];Ua(f[m],f,l,r)}}}}}return r}function Rc(e,t){return e[Re].queries[t].queryList}function gp(e,t,n){let r=new Ko((n&4)===4);return yu(e,t,r,r.destroy),(t[Re]??=new Ha).queries.push(new Va(r))-1}function mp(e,t,n){let r=k();return r.firstCreatePass&&(vp(r,new si(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),gp(r,y(),t)}function yp(e,t,n,r){let o=k();if(o.firstCreatePass){let i=U();vp(o,new si(t,n,r),i.index),HI(o,e),(n&2)===2&&(o.staticContentQueries=!0)}return gp(o,y(),n)}function VI(e){return e.split(",").map(t=>t.trim())}function vp(e,t,n){e.queries===null&&(e.queries=new Ba),e.queries.track(new $a(t,n))}function HI(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 Oc(e,t){return e.queries.getByIndex(t)}function Ip(e,t){let n=e[m],r=Oc(n,t);return r.crossesNgTemplate?Ua(n,e,t,[]):hp(n,e,r,t)}function Ep(e,t,n){let r,o=Fn(()=>{r._dirtyCounter();let i=BI(r,e);if(t&&i===void 0)throw new M(-951,!1);return i});return r=o[W],r._dirtyCounter=Oo(0),r._flatValue=void 0,o}function kc(e){return Ep(!0,!1,e)}function Pc(e){return Ep(!0,!0,e)}function Dp(e,t){let n=e[W];n._lView=y(),n._queryIndex=t,n._queryList=Rc(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function BI(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[D]&4)return t?void 0:K;let o=Rc(n,r),i=Ip(n,r);return o.reset(i,Wd),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}var mn=class{},Cp=class{};var ai=class extends mn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new oi(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=xs(t);this._bootstrapComponents=Ef(i.bootstrap),this._r3Injector=ta(t,n,[{provide:mn,useValue:this},{provide:mr,useValue:this.componentFactoryResolver},...r],je(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},ci=class extends Cp{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new ai(this.moduleType,t,[])}};var ur=class extends mn{injector;componentFactoryResolver=new oi(this);instance=null;constructor(t){super();let n=new bt([...t.providers,{provide:mn,useValue:this},{provide:mr,useValue:this.componentFactoryResolver}],t.parent||nn(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Lc(e,t,n=null){return new ur({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var $I=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Do(!1,n.type),o=r.length>0?Lc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:e,providedIn:"environment",factory:()=>new e(Se(ae))})}return e})();function UI(e){return vn(()=>{let t=wp(e),n=Q(z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===rc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get($I).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gn.Emulated,styles:e.styles||K,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ge("NgStandalone"),Tp(n);let r=e.dependencies;return n.directiveDefs=hd(r,qI),n.pipeDefs=hd(r,Ss),n.id=ZI(n),n})}function qI(e){return De(e)||Wn(e)}function WI(e){return vn(()=>({type:e.type,bootstrap:e.bootstrap||K,declarations:e.declarations||K,imports:e.imports||K,exports:e.exports||K,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function GI(e,t){if(e==null)return Ee;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=yi.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function zI(e){if(e==null)return Ee;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function QI(e){return vn(()=>{let t=wp(e);return Tp(t),t})}function wp(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Ee,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||K,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:GI(e.inputs,t),outputs:zI(e.outputs),debugInfo:null}}function Tp(e){e.features?.forEach(t=>t(e))}function hd(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}function ZI(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];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function YI(e){return Object.getPrototypeOf(e.prototype).constructor}function bp(e){let t=YI(e.type),n=!0,r=[e];for(;t;){let o;if(Te(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ua(e.inputs),s.declaredInputs=ua(e.declaredInputs),s.outputs=ua(e.outputs);let a=o.hostBindings;a&&tE(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&XI(e,c),l&&eE(e,l),KI(e,o),Yl(e.outputs,o.outputs),Te(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===bp&&(n=!1)}}t=Object.getPrototypeOf(t)}JI(r)}function KI(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 JI(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=pn(o.hostAttrs,n=pn(n,o.hostAttrs))}}function ua(e){return e===Ee?{}:e===K?[]:e}function XI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function eE(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function tE(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function nE(e){let t=n=>{let r=Array.isArray(e);n.hostDirectives===null?(n.resolveHostDirectives=rE,n.hostDirectives=r?e.map(qa):[e]):r?n.hostDirectives.unshift(...e.map(qa)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function rE(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,_p(s,t,r),o.set(s,[a,t.length-1])}i===0&&Te(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 _p(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)gd(qa(i),t,n)}else gd(r,t,n)}function gd(e,t,n){let r=Wn(e.directive);oE(r.declaredInputs,e.inputs),_p(r,t,n),n.set(r,e),t.push(r)}function qa(e){return typeof e=="function"?{directive:G(e),inputs:Ee,outputs:Ee}:{directive:G(e.directive),inputs:md(e.inputs),outputs:md(e.outputs)}}function md(e){if(e===void 0||e.length===0)return Ee;let t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function oE(e,t){for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],o=e[n];e[r]=o}}function Mp(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=pn(e.mergedAttrs,e.attrs);let u=e.tView=fc(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),cn(e,!1);let c=sE(n,t,e,r);Ro()&&Dc(n,t,c,e),hn(c,t);let l=Yf(c,t,c,e);t[r+P]=l,hc(t,l),pp(l,e,t)}function iE(e,t,n,r,o,i,s,a,c,l,u){let d=n+P,p;return t.firstCreatePass?(p=Tn(t,d,4,s||null,a||null),Mo()&&np(t,e,p,ue(t.consts,l),wc),Rd(t,p)):p=t.data[d],Mp(p,e,t,n,r,o,i,c),sn(p)&&Ci(t,e,p),l!=null&&gr(e,p,u),p}function $t(e,t,n,r,o,i,s,a,c,l,u){let d=n+P,p;if(t.firstCreatePass){if(p=Tn(t,d,4,s||null,a||null),l!=null){let f=ue(t.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1)}}else p=t.data[d];return Mp(p,e,t,n,r,o,i,c),l!=null&&gr(e,p,u),p}function Np(e,t,n,r,o,i,s,a){let c=y(),l=k(),u=ue(l.consts,i);return iE(c,l,e,t,n,r,o,u,void 0,s,a),Np}function xp(e,t,n,r,o,i,s,a){let c=y(),l=k(),u=ue(l.consts,i);return $t(c,l,e,t,n,r,o,u,void 0,s,a),xp}var sE=aE;function aE(e,t,n,r){return Kn(!0),t[R].createComment("")}var ie=(function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e})(ie||{}),yd=0,cE=1,H=(function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e})(H||{}),li=(function(e){return e[e.Initial=-1]="Initial",e})(li||{}),lE=0,yr=1;var uE=4,dE=5,fE=6,pE=7,da=8,hE=9,Fc=(function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e})(Fc||{});function gE(e,t,n){let r=Ap(e);t[r]===null&&(t[r]=[]),t[r].push(n)}function Go(e,t){let n=Ap(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null}}function Sp(e){Go(1,e),Go(0,e),Go(2,e)}function Ap(e){let t=uE;return e===1?t=dE:e===2&&(t=hE),t}function xi(e){return e+1}function bn(e,t){let n=e[m],r=xi(t.index);return e[r]}function mE(e,t,n){let r=e[m],o=xi(t);e[o]=n}function _n(e,t){let n=xi(t.index);return e.data[n]}function yE(e,t,n){let r=xi(t);e.data[r]=n}function vE(e,t,n){let r=t[m],o=_n(r,n);switch(e){case H.Complete:return o.primaryTmplIndex;case H.Loading:return o.loadingTmplIndex;case H.Error:return o.errorTmplIndex;case H.Placeholder:return o.placeholderTmplIndex;default:return null}}function vd(e,t){return t===H.Placeholder?e.placeholderBlockConfig?.[yd]??null:t===H.Loading?e.loadingBlockConfig?.[yd]??null:null}function IE(e){return e.loadingBlockConfig?.[cE]??null}function Id(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 EE(e,t){let n=t.primaryTmplIndex+P;return kt(e,n)}var DE=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?Lc(o,r,i):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=$({token:e,providedIn:"environment",factory:()=>new e})}return e})();var Rp=new x("");function fa(e,t,n){return e.get(DE).getOrCreateInjector(t,e,n,"")}function CE(e,t,n){if(e instanceof fn){let o=e.injector,i=e.parentInjector,s=fa(i,t,n);return new fn(o,s)}let r=e.get(ae);if(r!==e){let o=fa(r,t,n);return new fn(e,o)}return fa(e,t,n)}function st(e,t,n,r=!1){let o=n[B],i=o[m];if(tt(o))return;let s=bn(o,t),a=s[yr],c=s[pE];if(!(c!==null&&e<c)&&Ed(a,e)&&Ed(s[lE]??-1,e)){let l=_n(i,t),d=!r&&!0&&(IE(l)!==null||vd(l,H.Loading)!==null||vd(l,H.Placeholder))?_E:TE;try{d(e,s,n,t,o)}catch(p){_c(o,p)}}}function wE(e,t){let n=e[Xe]?.findIndex(o=>o.data[sc]===t[yr])??-1;return{dehydratedView:n>-1?e[Xe][n]:null,dehydratedViewIx:n}}function TE(e,t,n,r,o){S(20);let i=vE(e,o,r);if(i!==null){t[yr]=e;let s=o[m],a=i+P,c=kt(s,a),l=0;Nc(n,l);let u;if(e===H.Complete){let h=_n(s,r),g=h.providers;g&&g.length>0&&(u=CE(o[oe],h,g))}let{dehydratedView:d,dehydratedViewIx:p}=wE(n,t),f=Cn(o,c,null,{injector:u,dehydratedView:d});if(wn(n,f,l,Bt(c,d)),Ti(f,2),p>-1&&n[Xe]?.splice(p,1),(e===H.Complete||e===H.Error)&&Array.isArray(t[da])){for(let h of t[da])h();t[da]=null}}S(21)}function Ed(e,t){return e<t}function bE(e,t){let n=e[t.index];st(H.Placeholder,t,n)}function Dd(e,t,n){e.loadingPromise.then(()=>{e.loadingState===ie.COMPLETE?st(H.Complete,t,n):e.loadingState===ie.FAILED&&st(H.Error,t,n)})}var _E=null;var ME=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Op=new x("");function jc(e){return!!e&&typeof e.then=="function"}function kp(e){return!!e&&typeof e.subscribe=="function"}var Pp=new x("");var Vc=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=T(Pp,{optional:!0})??[];injector=T(Ie);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Co(this.injector,o);if(jc(i))n.push(i);else if(kp(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lp=new x("");function Fp(){rs(()=>{let e="";throw new M(600,e)})}function jp(e){return e.isBoundToModule}var NE=10;var vr=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=T($e);afterRenderManager=T(Ii);zonelessEnabled=T(Jn);rootEffectScheduler=T(Xn);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new fe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=T(it);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ht(n=>!n))}constructor(){T(Dn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=T(ae);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Ie.NULL){return this._injector.get(te).run(()=>{S(10);let s=n instanceof _i;if(!this._injector.get(Vc).done){let h="";throw new M(405,h)}let c;s?c=n:c=this._injector.get(mr).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=jp(c)?void 0:this._injector.get(mn),u=r||c.selector,d=c.create(o,[],u,l),p=d.location.nativeElement,f=d.injector.get(Op,null);return f?.registerApplication(p),d.onDestroy(()=>{this.detachView(d.hostView),tr(this.components,d),f?.unregisterApplication(p)}),this._loadComponent(d),S(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){S(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(vi.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new M(101,!1);let n=I(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),S(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(lr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<NE;)S(14),this.synchronizeOnce(),S(15)}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Qn(o))continue;let i=r&&!this.zonelessEnabled?0:1;Gf(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Qn(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;tr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Lp,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>tr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function tr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Vp(e,t,n){let r=t[oe],o=t[m];if(e.loadingState!==ie.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=bn(t,n),s=EE(o,e);e.loadingState=ie.IN_PROGRESS,Go(1,i);let a=e.dependencyResolverFn,c=r.get(Po).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(l=>{let u=!1,d=[],p=[];for(let f of l)if(f.status==="fulfilled"){let h=f.value,g=De(h)||Wn(h);if(g)d.push(g);else{let E=Ss(h);E&&p.push(E)}}else{u=!0;break}if(u){if(e.loadingState=ie.FAILED,e.errorTmplIndex===null){let h=new M(-750,!1);_c(t,h)}}else{e.loadingState=ie.COMPLETE;let f=s.tView;if(d.length>0){f.directiveRegistry=Id(f.directiveRegistry,d);let h=d.map(E=>E.type),g=Do(!1,...h);e.providers=g}p.length>0&&(f.pipeRegistry=Id(f.pipeRegistry,p))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=ie.COMPLETE,c()}),e.loadingPromise)}function xE(e,t){return t[oe].get(Rp,null,{optional:!0})?.behavior!==Fc.Manual}function SE(e,t,n){let r=t[m],o=t[n.index];if(!xE(e,t))return;let i=bn(t,n),s=_n(r,n);switch(Sp(i),s.loadingState){case ie.NOT_STARTED:st(H.Loading,n,o),Vp(s,t,n),s.loadingState===ie.IN_PROGRESS&&Dd(s,n,o);break;case ie.IN_PROGRESS:st(H.Loading,n,o),Dd(s,n,o);break;case ie.COMPLETE:st(H.Complete,n,o);break;case ie.FAILED:st(H.Error,n,o);break;default:}}function AE(e,t,n){return e===0?Cd(t,n):e===2?!Cd(t,n):!0}function RE(e){return e!=null&&(e&1)===1}function Cd(e,t){let n=e[oe],r=_n(e[m],t),o=ac(n),i=RE(r.flags),a=bn(e,t)[fE]!==null;return!(i&&a&&o)}function OE(e,t,n,r,o,i,s,a,c,l){let u=y(),d=k(),p=e+P,f=$t(u,d,e,null,0,0),h=u[oe],g=ac(h);if(d.firstCreatePass){Ge("NgDefer");let Mn={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ie.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:l??0};c?.(d,Mn,a,s),yE(d,p,Mn)}let E=u[p];pp(E,f,u);let v=null,Z=null;if(E[Xe]?.length>0){let Mn=E[Xe][0].data;Z=Mn[ic]??null,v=Mn[sc]}let Ri=[null,li.Initial,null,null,null,null,Z,v,null,null];mE(u,p,Ri);let Oi=null;Z!==null&&g&&(Oi=h.get(nf),Oi.add(Z,{lView:u,tNode:f,lContainer:E}));let ol=()=>{Sp(Ri),Z!==null&&Oi?.cleanup([Z])};gE(0,Ri,()=>$s(u,ol)),_o(u,ol)}function kE(e){let t=y(),n=Lt();if(!AE(0,t,n))return;let r=ke();if(ne(t,r,e)){let o=I(null);try{let i=!!e,a=bn(t,n)[yr];i===!1&&a===li.Initial?bE(t,n):i===!0&&(a===li.Initial||a===H.Placeholder)&&SE(0,t,n)}finally{I(o)}}}function Hp(e,t){let n=y(),r=ke();if(ne(n,r,t)){let o=k(),i=Lt();if(wi(i,o,n,e,t))Be(i)&&Vf(n,i.index);else{let a=ge(i,n);Hf(n[R],a,null,i.value,e,t,null)}}return Hp}function Bp(e,t,n,r){let o=y(),i=ke();if(ne(o,i,t)){let s=k(),a=Lt();Ov(a,o,e,t,n,r)}return Bp}var jA=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function PE(){return y()[J][j]}var Wa=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 pa(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function LE(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=pa(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],h=pa(s,p,c,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,c--;continue}let g=n(i,l),E=n(s,p),v=n(i,u);if(Object.is(v,E)){let Z=n(c,f);Object.is(Z,g)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new ui,o??=Td(e,i,s,n),Ga(e,r,i,v))e.updateValue(i,u),i++,s++;else if(o.has(v))r.set(g,e.detach(i)),s--;else{let Z=e.create(i,t[i]);e.attach(i,Z),i++,s++}}for(;i<=c;)wd(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=pa(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new ui,o??=Td(e,i,s,n);let f=n(i,d);if(Ga(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let h=n(i,u);r.set(h,e.detach(i)),s--}}}for(;!l.done;)wd(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Ga(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function wd(e,t,n,r,o){if(Ga(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Td(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 ui=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);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 FE(e,t,n,r,o,i,s,a){Ge("NgControlFlow");let c=y(),l=k(),u=ue(l.consts,i);return $t(c,l,e,t,n,r,o,u,256,s,a),Hc}function Hc(e,t,n,r,o,i,s,a){Ge("NgControlFlow");let c=y(),l=k(),u=ue(l.consts,i);return $t(c,l,e,t,n,r,o,u,512,s,a),Hc}function jE(e,t){Ge("NgControlFlow");let n=y(),r=ke(),o=n[r]!==q?n[r]:-1,i=o!==-1?di(n,P+o):void 0,s=0;if(ne(n,r,e)){let a=I(null);try{if(i!==void 0&&Nc(i,s),e!==-1){let c=P+e,l=di(n,c),u=Ya(n[m],c),d=Xf(l,u,n),p=Cn(n,u,t,{dehydratedView:d});wn(l,p,s,Bt(u,d))}}finally{I(a)}}else if(i!==void 0){let a=Kf(i,s);a!==void 0&&(a[j]=t)}}var za=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-V}};function VE(e){return e}function HE(e,t){return t}var Qa=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function BE(e,t,n,r,o,i,s,a,c,l,u,d,p){Ge("NgControlFlow");let f=y(),h=k(),g=c!==void 0,E=y(),v=a?s.bind(E[J][j]):s,Z=new Qa(g,v);E[P+e]=Z,$t(f,h,e+1,t,n,r,o,ue(h.consts,i),256),g&&$t(f,h,e+2,c,l,u,d,ue(h.consts,p),512)}var Za=class extends Wa{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-V}at(t){return this.getLView(t)[j].$implicit}attach(t,n){let r=n[Nt];this.needsIndexUpdate||=t!==this.length,wn(this.lContainer,n,t,Bt(this.templateTNode,r)),UE(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,qE(this.lContainer,t),WE(this.lContainer,t)}create(t,n){let r=ti(this.lContainer,this.templateTNode.tView.ssrId),o=Cn(this.hostLView,this.templateTNode,new za(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ei(t[m],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[j].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[j].$index=t}getLView(t){return GE(this.lContainer,t)}};function $E(e){let t=I(null),n=de();try{let r=y(),o=r[m],i=r[n],s=n+1,a=di(r,s);if(i.liveCollection===void 0){let l=Ya(o,s);i.liveCollection=new Za(a,r,l)}else i.liveCollection.reset();let c=i.liveCollection;if(LE(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let l=ke(),u=c.length===0;if(ne(r,l,u)){let d=n+2,p=di(r,d);if(u){let f=Ya(o,d),h=Xf(p,f,r),g=Cn(r,f,void 0,{dehydratedView:h});wn(p,g,0,Bt(f,h))}else o.firstUpdatePass&&tI(p),Nc(p,0)}}}finally{I(t)}}function di(e,t){return e[t]}function UE(e,t){if(e.length<=V)return;let n=V+t,r=e[n],o=r?r[Rt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[oe];fv(i,o),rr.delete(r),o.detachedLeaveAnimationFns=void 0}}function qE(e,t){if(e.length<=V)return;let n=V+t,r=e[n],o=r?r[Rt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function WE(e,t){return ar(e,t)}function GE(e,t){return Kf(e,t)}function Ya(e,t){return kt(e,t)}function $p(e,t,n){let r=y(),o=ke();if(ne(r,o,t)){let i=k(),s=Lt();Ff(s,r,e,t,r[R],n)}return $p}function Ka(e,t,n,r,o){wi(t,e,n,o?"class":"style",r)}function Bc(e,t,n,r){let o=y(),i=o[m],s=e+P,a=i.firstCreatePass?xc(s,o,2,t,wc,Mo(),n,r):i.data[s];if(Tc(a,o,e,t,Wp),sn(a)){let c=o[m];Ci(c,o,a),cc(c,a,o)}return r!=null&&gr(o,a),Bc}function $c(){let e=k(),t=U(),n=bc(t);return e.firstCreatePass&&Sc(e,n),zs(n)&&Qs(),Ws(),n.classesWithoutHost!=null&&_m(n)&&Ka(e,n,y(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&Mm(n)&&Ka(e,n,y(),n.stylesWithoutHost,!1),$c}function Up(e,t,n,r){return Bc(e,t,n,r),$c(),Up}function Uc(e,t,n,r){let o=y(),i=o[m],s=e+P,a=i.firstCreatePass?yI(s,i,2,t,n,r):i.data[s];return Tc(a,o,e,t,Wp),r!=null&&gr(o,a),Uc}function qc(){let e=U(),t=bc(e);return zs(t)&&Qs(),Ws(),qc}function qp(e,t,n,r){return Uc(e,t,n,r),qc(),qp}var Wp=(e,t,n,r,o)=>(Kn(!0),hf(t[R],r,Lu()));function Wc(e,t,n){let r=y(),o=r[m],i=e+P,s=o.firstCreatePass?xc(i,r,8,"ng-container",wc,Mo(),t,n):o.data[i];if(Tc(s,r,e,"ng-container",zE),sn(s)){let a=r[m];Ci(a,r,s),cc(a,s,r)}return n!=null&&gr(r,s),Wc}function Gc(){let e=k(),t=U(),n=bc(t);return e.firstCreatePass&&Sc(e,n),Gc}function Gp(e,t,n){return Wc(e,t,n),Gc(),Gp}var zE=(e,t,n,r,o)=>(Kn(!0),Sy(t[R],""));function QE(){return y()}function zp(e,t,n){let r=y(),o=ke();if(ne(r,o,t)){let i=k(),s=Lt();jf(s,r,e,t,r[R],n)}return zp}var Ir="en-US";var ZE=Ir;function Qp(e){typeof e=="string"&&(ZE=e.toLowerCase().replace(/_/g,"-"))}function Zp(e,t,n){let r=y(),o=k(),i=U();return Kp(o,r,r[R],i,e,t,n),Zp}function Yp(e,t,n){let r=y(),o=k(),i=U();return(i.type&3||n)&&cp(i,o,r,n,r[R],e,t,Wo(i,r,t)),Yp}function Kp(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Wo(r,t,i),cp(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Wo(r,t,i),dd(r,t,p,f,o,c)}if(l&&l.length)for(let d of l)c??=Wo(r,t,i),dd(r,t,d,o,o,c)}}function YE(e=1){return Ou(e)}function KE(e,t){let n=null,r=Wy(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Cf(e,i,!0):Qy(r,i))return o}return n}function JE(e){let t=y()[J][ee];if(!t.projection){let n=e?e.length:1,r=t.projection=ou(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?KE(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}function XE(e,t=0,n,r,o,i){let s=y(),a=k(),c=r?e+1:null;c!==null&&$t(s,a,c,r,o,i,null,n);let l=Tn(a,P+e,16,null,n||null);l.projection===null&&(l.projection=t),Ks();let d=!s[Nt]||Gs();s[J][ee].projection[l.projection]===null&&c!==null?eD(s,a,c):d&&!hi(l)&&wv(a,s,l)}function eD(e,t,n){let r=P+n,o=t.data[r],i=e[r],s=ti(i,o.tView.ssrId),a=Cn(e,o,void 0,{dehydratedView:s});wn(i,a,0,Bt(o,s))}function tD(e,t,n,r){yp(e,t,n,r)}function nD(e,t,n){mp(e,t,n)}function rD(e){let t=y(),n=k(),r=xo();Yn(r+1);let o=Oc(n,r);if(e.dirty&&hu(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=Ip(t,r);e.reset(i,Wd),e.notifyOnChanges()}return!0}return!1}function oD(){return Rc(y(),xo())}function iD(e,t,n,r,o){Dp(t,yp(e,n,r,o))}function sD(e,t,n,r){Dp(e,mp(t,n,r))}function aD(e=1){Yn(xo()+e)}function cD(e){let t=wu();return pu(t,P+e)}function Ho(e,t){return e<<17|t<<2}function Ut(e){return e>>17&32767}function lD(e){return(e&2)==2}function uD(e,t){return e&131071|t<<17}function Ja(e){return e|2}function yn(e){return(e&131068)>>2}function ha(e,t){return e&-131069|t<<2}function dD(e){return(e&1)===1}function Xa(e){return e|1}function fD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ut(s),c=yn(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||tn(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=Ut(e[a+1]);e[r+1]=Ho(p,a),p!==0&&(e[p+1]=ha(e[p+1],r)),e[a+1]=uD(e[a+1],r)}else e[r+1]=Ho(a,0),a!==0&&(e[a+1]=ha(e[a+1],r)),a=r;else e[r+1]=Ho(c,0),a===0?a=r:e[c+1]=ha(e[c+1],r),c=r;l&&(e[r+1]=Ja(e[r+1])),bd(e,u,r,!0),bd(e,u,r,!1),pD(t,u,e,r,i),s=Ho(a,c),i?t.classBindings=s:t.styleBindings=s}function pD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&tn(i,t)>=0&&(n[r+1]=Xa(n[r+1]))}function bd(e,t,n,r){let o=e[n+1],i=t===null,s=r?Ut(o):yn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];hD(c,t)&&(a=!0,e[s+1]=r?Xa(l):Ja(l)),s=r?Ut(l):yn(l)}a&&(e[n+1]=r?Ja(o):Xa(o))}function hD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?tn(e,t)>=0:!1}var _e={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function gD(e){return e.substring(_e.key,_e.keyEnd)}function mD(e){return yD(e),Jp(e,Xp(e,0,_e.textEnd))}function Jp(e,t){let n=_e.textEnd;return n===t?-1:(t=_e.keyEnd=vD(e,_e.key=t,n),Xp(e,t,n))}function yD(e){_e.key=0,_e.keyEnd=0,_e.value=0,_e.valueEnd=0,_e.textEnd=e.length}function Xp(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function vD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function eh(e,t,n){return nh(e,t,n,!1),eh}function th(e,t){return nh(e,t,null,!0),th}function ID(e){DD(MD,ED,e,!0)}function ED(e,t){for(let n=mD(t);n>=0;n=Jp(t,n))Io(e,gD(t),!0)}function nh(e,t,n,r){let o=y(),i=k(),s=Pt(2);if(i.firstUpdatePass&&oh(i,e,s,r),t!==q&&ne(o,s,t)){let a=i.data[de()];ih(i,a,o,o[R],e,o[s+1]=xD(t,n),r,s)}}function DD(e,t,n,r){let o=k(),i=Pt(2);o.firstUpdatePass&&oh(o,null,i,r);let s=y();if(n!==q&&ne(s,i,n)){let a=o.data[de()];if(sh(a,r)&&!rh(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ho(c,n||"")),Ka(o,a,s,n,r)}else ND(o,a,s,s[R],s[i+1],s[i+1]=_D(e,t,n),r,i)}}function rh(e,t){return t>=e.expandoStartIndex}function oh(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[de()],s=rh(e,n);sh(i,r)&&t===null&&!s&&(t=!1),t=CD(o,i,t,r),fD(o,i,t,n,s,r)}}function CD(e,t,n,r){let o=xu(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ga(null,e,t,n,r),n=dr(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ga(o,e,t,n,r),i===null){let c=wD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ga(null,e,t,c[1],r),c=dr(c,t.attrs,r),TD(e,t,r,c))}else i=bD(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function wD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yn(r)!==0)return e[Ut(r)]}function TD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Ut(o)]=r}function bD(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=dr(r,s,n)}return dr(r,t.attrs,n)}function ga(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],r=dr(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function dr(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]),Io(e,s,n?!0:t[++i]))}return e===void 0?null:e}function _D(e,t,n){if(n==null||n==="")return K;let r=[],o=En(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[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);return r}function MD(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Io(e,r,n)}function ND(e,t,n,r,o,i,s,a){o===q&&(o=K);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,g;u===d?(c+=2,l+=2,p!==f&&(h=d,g=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,g=f),h!==null&&ih(e,t,n,r,h,g,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function ih(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=dD(l)?_d(c,t,n,o,yn(l),s):void 0;if(!fi(u)){fi(i)||lD(l)&&(i=_d(c,null,n,o,a,s));let d=Vs(de(),n);bv(r,s,d,o,i)}}function _d(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===q&&(p=d?K:void 0);let f=d?Eo(p,r):u===r?p:void 0;if(l&&!fi(f)&&(f=Eo(c,r)),fi(f)&&(a=f,s))return a;let h=e[o+1];o=s?Ut(h):yn(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Eo(c,r))}return a}function fi(e){return e!==void 0}function xD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=je(En(e)))),e}function sh(e,t){return(e.flags&(t?8:16))!==0}function SD(e,t=""){let n=y(),r=k(),o=e+P,i=r.firstCreatePass?Tn(r,o,1,t,null):r.data[o],s=AD(r,n,i,t,e);n[o]=s,Ro()&&Dc(r,n,s,i),cn(i,!1)}var AD=(e,t,n,r,o)=>(Kn(!0),Ny(t[R],r));function ah(e,t,n,r=""){return ne(e,ke(),n)?t+F(n)+r:q}function RD(e,t,n,r,o,i=""){let s=Zn(),a=ri(e,s,n,o);return Pt(2),a?t+F(n)+r+F(o)+i:q}function OD(e,t,n,r,o,i,s,a=""){let c=Zn(),l=sp(e,c,n,o,s);return Pt(3),l?t+F(n)+r+F(o)+i+F(s)+a:q}function kD(e,t,n,r,o,i,s,a,c,l=""){let u=Zn(),d=ap(e,u,n,o,s,c);return Pt(4),d?t+F(n)+r+F(o)+i+F(s)+a+F(c)+l:q}function PD(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,g=""){let E=Zn(),v=ap(e,E,n,o,s,c);return v=sp(e,E+4,u,p,h)||v,Pt(7),v?t+F(n)+r+F(o)+i+F(s)+a+F(c)+l+F(u)+d+F(p)+f+F(h)+g:q}function ch(e){return zc("",e),ch}function zc(e,t,n){let r=y(),o=ah(r,e,t,n);return o!==q&&Er(r,de(),o),zc}function lh(e,t,n,r,o){let i=y(),s=RD(i,e,t,n,r,o);return s!==q&&Er(i,de(),s),lh}function uh(e,t,n,r,o,i,s){let a=y(),c=OD(a,e,t,n,r,o,i,s);return c!==q&&Er(a,de(),c),uh}function dh(e,t,n,r,o,i,s,a,c){let l=y(),u=kD(l,e,t,n,r,o,i,s,a,c);return u!==q&&Er(l,de(),u),dh}function fh(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h){let g=y(),E=PD(g,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h);return E!==q&&Er(g,de(),E),fh}function Er(e,t,n){let r=Vs(t,e);xy(e[R],r,n)}function ph(e,t,n){oa(t)&&(t=t());let r=y(),o=ke();if(ne(r,o,t)){let i=k(),s=Lt();Ff(s,r,e,t,r[R],n)}return ph}function LD(e,t){let n=oa(e);return n&&e.set(t),n}function hh(e,t){let n=y(),r=k(),o=U();return Kp(r,n,n[R],o,e,t),hh}function FD(e,t,n=""){return ah(y(),e,t,n)}function jD(e,t,n){let r=k();if(r.firstCreatePass){let o=Te(e);ec(n,r.data,r.blueprint,o,!0),ec(t,r.data,r.blueprint,o,!1)}}function ec(e,t,n,r,o){if(e=G(e),Array.isArray(e))for(let i=0;i<e.length;i++)ec(e[i],t,n,r,o);else{let i=k(),s=y(),a=U(),c=Tt(e)?e:G(e.provide),l=ks(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Tt(e)||!e.multi){let f=new Ht(l,o,Mi,null),h=ya(c,t,o?u:u+p,d);h===-1?(Ia(Yo(a,s),i,c),ma(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=ya(c,t,u+p,d),h=ya(c,t,u,u+p),g=f>=0&&n[f],E=h>=0&&n[h];if(o&&!E||!o&&!g){Ia(Yo(a,s),i,c);let v=BD(o?HD:VD,n.length,o,r,l,e);!o&&E&&(n[h].providerFactory=v),ma(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=gh(n[o?h:f],l,!o&&r);ma(i,e,f>-1?f:h,v)}!o&&r&&E&&n[h].componentProviders++}}}function ma(e,t,n,r){let o=Tt(t),i=lu(t);if(o||i){let c=(i?G(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function gh(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ya(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function VD(e,t,n,r,o){return tc(this.multi,[])}function HD(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=nr(r,r[m],this.providerFactory.index,o);s=c.slice(0,a),tc(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],tc(i,s);return s}function tc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function BD(e,t,n,r,o,i){let s=new Ht(e,n,Mi,null);return s.multi=[],s.index=t,s.componentProviders=0,gh(s,o,r&&!n),s}function $D(e,t=[]){return n=>{n.providersResolver=(r,o)=>jD(r,o?o(e):e,t)}}function UD(e,t,n,r){return WD(y(),Tu(),e,t,n,r)}function qD(e,t){let n=e[t];return n===q?void 0:n}function WD(e,t,n,r,o,i){let s=t+n;return ne(e,s,o)?vI(e,s+1,i?r.call(i,o):r(o)):qD(e,s+1)}function GD(e,t){return bi(e,t)}var pi=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},zD=(()=>{class e{compileModuleSync(n){return new ci(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=xs(n),i=Ef(o.declarations).reduce((s,a)=>{let c=De(a);return c&&s.push(new ct(c)),s},[]);return new pi(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var QD=(()=>{class e{zone=T(te);changeDetectionScheduler=T(ce);applicationRef=T(vr);applicationErrorHandler=T($e);_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(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new te(Q(z({},yh()),{scheduleInRootZone:n})),[{provide:te,useFactory:e},{provide:Mt,multi:!0,useFactory:()=>{let r=T(QD,{optional:!0});return()=>r.initialize()}},{provide:Mt,multi:!0,useFactory:()=>{let r=T(ZD);return()=>{r.initialize()}}},t===!0?{provide:ia,useValue:!0}:[],{provide:ko,useValue:n??_f},{provide:$e,useFactory:()=>{let r=T(te),o=T(ae),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(Ve),i.handleError(s))})}}}]}function yh(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var ZD=(()=>{class e{subscription=new L;initialized=!1;zone=T(te);pendingTasks=T(it);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qc=(()=>{class e{applicationErrorHandler=T($e);appRef=T(vr);taskService=T(it);ngZone=T(te);zonelessEnabled=T(Jn);tracing=T(Dn,{optional:!0});disableScheduling=T(ia,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new L;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ei):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(T(ko,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof or||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?td:Mf;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ei+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 n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,td(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=$({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function YD(){return Ge("NgZoneless"),As([{provide:ce,useExisting:Qc},{provide:te,useClass:or},{provide:Jn,useValue:!0},{provide:ko,useValue:!1},[]])}function KD(){return typeof $localize<"u"&&$localize.locale||Ir}var Zc=new x("",{providedIn:"root",factory:()=>T(Zc,{optional:!0,skipSelf:!0})||KD()});function JD(e){return Wl(e)}function XD(e,t){return Fn(e,t?.equal)}var Yc=class{[W];constructor(t){this[W]=t}destroy(){this[W].destroy()}};function eC(e,t){let n=t?.injector??T(Ie),r=t?.manualCleanup!==!0?n.get(ot):null,o,i=n.get(Ft,null,{optional:!0}),s=n.get(ce);return i!==null?(o=rC(i.view,s,e),r instanceof $n&&r._lView===i.view&&(r=null)):o=oC(e,n.get(Xn),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new Yc(o)}var vh=Q(z({},Gl),{cleanupFns:void 0,zone:null,onDestroyFn:jt,run(){let e=ln(!1);try{zl(this)}finally{ln(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],I(e)}}}),tC=Q(z({},vh),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Ye(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),nC=Q(z({},vh),{consumerMarkedDirty(){this.view[D]|=8192,nt(this.view),this.notifier.notify(13)},destroy(){Ye(this),this.onDestroyFn(),this.cleanup(),this.view[He]?.delete(this)}});function rC(e,t,n){let r=Object.create(nC);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Ih(r,n),e[He]??=new Set,e[He].add(r),r.consumerMarkedDirty(r),r}function oC(e,t,n){let r=Object.create(tC);return r.fn=Ih(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function Ih(e,t){return()=>{t(n=>(e.cleanupFns??=[]).push(n))}}var _h=Symbol("InputSignalNode#UNSET"),sC=Q(z({},jn),{transformFn:void 0,applyValueToInputSignal(e,t){Jt(e,t)}});function Mh(e,t){let n=Object.create(sC);n.value=e,n.transformFn=t?.transform;function r(){if(vt(n),n.value===_h){let o=null;throw new M(-950,o)}return n.value}return r[W]=n,r}var Eh=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>qd(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},aC=new x("");aC.__NG_ELEMENT_ID__=e=>{let t=U();if(t===null)throw new M(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new M(204,!1)};function Dh(e,t){return Mh(e,t)}function cC(e){return Mh(_h,e)}var bF=(Dh.required=cC,Dh);function Ch(e,t){return kc(t)}function lC(e,t){return Pc(t)}var _F=(Ch.required=lC,Ch);function wh(e,t){return kc(t)}function uC(e,t){return Pc(t)}var MF=(wh.required=uC,wh);var Jc=new x(""),dC=new x("");function Dr(e){return!e.moduleRef}function fC(e){let t=Dr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(te);return n.run(()=>{Dr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get($e),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Dr(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Jc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Jc);s.add(i),e.moduleRef.onDestroy(()=>{tr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hC(r,n,()=>{let i=t.get(it),s=i.add(),a=t.get(Vc);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Zc,Ir);if(Qp(c||Ir),!t.get(dC,!0))return Dr(e)?t.get(vr):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Dr(e)){let u=t.get(vr);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return pC?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}var pC;function hC(e,t,n){try{let r=n();return jc(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Si=null;function gC(e=[],t){return Ie.create({name:t,providers:[{provide:Os,useValue:"platform"},{provide:Jc,useValue:new Set([()=>Si=null])},...e]})}function mC(e=[]){if(Si)return Si;let t=gC(e);return Si=t,Fp(),yC(t),t}function yC(e){let t=e.get(Kd,null);Co(e,()=>{t?.forEach(n=>n())})}var NF=(()=>{class e{static __NG_ELEMENT_ID__=vC}return e})();function vC(e){return IC(U(),y(),(e&16)===16)}function IC(e,t,n){if(Be(e)&&!n){let r=me(e.index,t);return new at(r,r)}else if(e.type&175){let r=t[J];return new at(r,t)}return null}var Xc=class{constructor(){}supports(t){return Ac(t)}create(t){return new el(t)}},EC=(e,t)=>t,el=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||EC}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<Th(r,o,i)?n:r,a=Th(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 l=a-o,u=c-o;if(l!=u){for(let p=0;p<l;p++){let f=p<i.length?i[p]:i[p]=0,h=f+p;u<=h&&h<l&&(i[p]=f+1)}let d=s.previousIndex;i[d]=u-l}}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=[]),!Ac(t))throw new M(900,!1);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,op(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 tl(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 Ai),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 Ai),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}},tl=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}},nl=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}},Ai=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new nl,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 Th(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}function bh(){return new DC([new Xc])}var DC=(()=>{class e{factories;static \u0275prov=$({token:e,providedIn:"root",factory:bh});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:()=>{let r=T(e,{optional:!0,skipSelf:!0});return e.create(n,r||bh())}}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new M(901,!1)}}return e})();function xF(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;S(8);try{let i=o?.injector??mC(r),s=[mh({}),{provide:ce,useExisting:Qc},ju,...n||[]],a=new ur({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return fC({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{S(9)}}function SF(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function AF(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Kc=Symbol("NOT_SET"),Nh=new Set,CC=Q(z({},jn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Kc,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Kc&&!Et(this))return this.signal;try{for(let o of this.cleanup??Nh)o()}finally{this.cleanup?.clear()}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Ze(this),r;try{r=this.userFn.apply(null,t)}finally{It(this,n)}return(this.value===Kc||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),rl=class extends ir{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,!1,i.get(ot),s),this.scheduler=o;for(let a of vc){let c=n[a];if(c===void 0)continue;let l=Object.create(CC);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=!0,l.signal=()=>(vt(l),l.value),l.signal[W]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??Nh)n()}finally{Ye(t)}}};function RF(e,t){let n=t?.injector??T(Ie),r=n.get(ce),o=n.get(Ii),i=n.get(Dn,null,{optional:!0});o.impl??=n.get(Ic);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Ft,null,{optional:!0}),c=new rl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function OF(e,t){let n=De(e),r=t.elementInjector||nn();return new ct(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function kF(e){let t=De(e);if(!t)return null;let n=new ct(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}export{z as a,Q as b,wC as c,L as d,Lh as e,N as f,$i as g,Ui as h,fe as i,xn as j,$h as k,Uh as l,ft as m,Ne as n,Kh as o,Jh as p,Xh as q,Le as r,Ph as s,ht as t,ag as u,gt as v,kn as w,Kr as x,lg as y,ug as z,zi as A,dg as B,mt as C,fg as D,Pl as E,pg as F,hg as G,Pn as H,Qi as I,gg as J,vg as K,Ig as L,Zi as M,Eg as N,Dg as O,Cg as P,Ki as Q,wg as R,Tg as S,bg as T,_g as U,Mg as V,Ng as W,xg as X,M as Y,po as Z,go as _,$,Kl as aa,Vg as ba,x as ca,Se as da,T as ea,As as fa,Os as ga,ae as ha,Co as ia,Eu as ja,Du as ka,ku as la,Pu as ma,Ie as na,sm as oa,ot as pa,Ve as qa,$e as ra,na as sa,Oo as ta,ce as ua,it as va,Po as wa,ym as xa,vm as ya,Em as za,jm as Aa,qd as Ba,fr as Ca,Ko as Da,Wm as Ea,Gm as Fa,Kd as Ga,Qm as Ha,Zm as Ia,Ym as Ja,gn as Ka,En as La,mi as Ma,ry as Na,oy as Oa,iy as Pa,sy as Qa,ay as Ra,lc as Sa,pf as Ta,hr as Ua,Oy as Va,vf as Wa,Fy as Xa,jy as Ya,Vy as Za,tv as _a,Xo as $a,rr as ab,Dn as bb,Ge as cb,Ue as db,te as eb,lv as fb,cr as gb,lr as hb,iI as ib,Mi as jb,aI as kb,Ni as lb,mn as mb,Cp as nb,Lc as ob,UI as pb,WI as qb,QI as rb,bp as sb,nE as tb,Np as ub,xp as vb,ME as wb,jc as xb,Lp as yb,vr as zb,OE as Ab,kE as Bb,Hp as Cb,Bp as Db,PE as Eb,FE as Fb,jE as Gb,VE as Hb,HE as Ib,BE as Jb,$E as Kb,$p as Lb,Bc as Mb,$c as Nb,Up as Ob,Uc as Pb,qc as Qb,qp as Rb,Gp as Sb,QE as Tb,zp as Ub,Zp as Vb,Yp as Wb,YE as Xb,JE as Yb,XE as Zb,tD as _b,nD as $b,rD as ac,oD as bc,iD as cc,sD as dc,aD as ec,cD as fc,eh as gc,th as hc,ID as ic,SD as jc,ch as kc,zc as lc,lh as mc,uh as nc,dh as oc,fh as pc,ph as qc,LD as rc,hh as sc,FD as tc,$D as uc,UD as vc,GD as wc,zD as xc,YD as yc,JD as zc,XD as Ac,eC as Bc,Eh as Cc,aC as Dc,bF as Ec,_F as Fc,MF as Gc,NF as Hc,DC as Ic,xF as Jc,SF as Kc,AF as Lc,RF as Mc,OF as Nc,kF as Oc};
@@ -0,0 +1 @@
1
+ import{a as U,b as V,c as W}from"./chunk-XPP3TYS2.js";import{a as j,b as A,c as H,d as G,f as J,g as q,h as Q}from"./chunk-EXOJOB6H.js";import{d as z}from"./chunk-36JZZZCV.js";import"./chunk-EYOED3X7.js";import"./chunk-PVPELZPO.js";import"./chunk-HVK4GEK7.js";import{f as N,h as B,m as K}from"./chunk-2QORICNU.js";import"./chunk-CCRYWDXZ.js";import"./chunk-6YXOOFGY.js";import"./chunk-BCGQJHY3.js";import"./chunk-P3Q7RWT5.js";import{c as F,d as L}from"./chunk-JODWQVMA.js";import{b as I}from"./chunk-RMV7CR6Y.js";import"./chunk-YNQPX5G6.js";import"./chunk-C6SNIY22.js";import"./chunk-42QQHEGP.js";import"./chunk-AHO3BCLI.js";import"./chunk-DRBVSI3B.js";import"./chunk-BKYXU3OY.js";import{c as R}from"./chunk-YFYMS5EE.js";import{e as D,f as T}from"./chunk-BPUIUSAU.js";import{d as $}from"./chunk-6CP6NCA6.js";import"./chunk-DNHNU64I.js";import{h as w}from"./chunk-532NB4ME.js";import{Ac as C,Bc as k,Db as h,Eb as y,Fb as p,Gb as g,Jb as b,Kb as M,Lb as f,Mb as o,Nb as i,Ob as P,Vb as S,Xb as l,_a as s,ea as _,jc as a,kc as d,lc as v,mc as E,pb as x,ta as c,vc as O}from"./chunk-H3HRZLHG.js";var Y=n=>["/apps",n];function Z(n,t){if(n&1&&(o(0,"span",3),a(1),i()),n&2){let e=l();s(),v("live \xB7 ",e.liveCount()," new since open")}}function ee(n,t){n&1&&(o(0,"span",4),a(1,"disconnected"),i())}function te(n,t){n&1&&(o(0,"p",12),a(1,"Loading regressions\u2026"),i())}function ne(n,t){if(n&1&&P(0,"dm-empty",13),n&2){let e=l();f("title",e.filter()==="all"?"No regressions detected":"No "+e.filter()+" regressions")("hint",e.filter()==="all"?"Daimon watches compile times, bundle sizes, and error rates. Spikes will appear here.":"Try a different filter or wait for new events to arrive.")}}function ie(n,t){if(n&1&&(o(0,"a",24),a(1),i(),o(2,"span",5),a(3,"\xB7"),i()),n&2){let e=l().$implicit;f("routerLink",O(2,Y,e.ev.app)),s(),d(e.ev.app)}}function re(n,t){if(n&1&&(o(0,"span",5),a(1,"\xB7"),i(),o(2,"dm-mono",25),a(3),i()),n&2){let e=l().$implicit;s(3),d(e.fingerprint)}}function oe(n,t){if(n&1&&(o(0,"div",23)(1,"mat-icon",9),a(2,"commit"),i(),o(3,"span"),a(4,"Suspect commit"),i(),o(5,"dm-mono"),a(6),i()()),n&2){let e=l().$implicit;s(6),d(e.suspectCommit)}}function ae(n,t){if(n&1&&(o(0,"mat-card",15)(1,"mat-card-header")(2,"mat-icon",16),a(3),i(),o(4,"mat-card-title"),a(5),i(),o(6,"mat-card-subtitle"),p(7,ie,4,4),o(8,"span"),a(9),i(),p(10,re,4,1),i()(),o(11,"mat-card-content")(12,"div",17)(13,"div",18)(14,"span",19),a(15,"Baseline"),i(),o(16,"dm-mono",20),a(17),i()(),o(18,"mat-icon",21),a(19,"arrow_forward"),i(),o(20,"div",22)(21,"span",19),a(22,"Now"),i(),o(23,"dm-mono",20),a(24),i()()(),p(25,oe,7,1,"div",23),i()()),n&2){let e=t.$implicit,r=l(2);h("data-kind",e.kind),s(3),d(r.icon(e.kind)),s(2),E(" ",r.label(e.kind)," \xB7 \xD7",e.factor," "),s(2),g(e.ev.app?7:-1),s(2),d(r.rel(e.ev.ts)),s(),g(e.fingerprint?10:-1),s(7),d(r.fmt(e.kind,e.baseline)),s(7),d(r.fmt(e.kind,e.current)),s(),g(e.suspectCommit?25:-1)}}function se(n,t){if(n&1&&(o(0,"div",14),b(1,ae,26,10,"mat-card",15,y().trackKey,!0),i()),n&2){let e=l();s(),M(e.filtered())}}function me(n,t){let e=Math.max(0,Math.floor((t-n)/1e3));if(e<1)return"just now";if(e<60)return`${e}s ago`;let r=Math.floor(e/60);if(r<60)return`${r}m ago`;let m=Math.floor(r/60);return m<24?`${m}h ${r%60}m ago`:`${Math.floor(m/24)}d ago`}function le(n){if(n.type!=="regression-detected"||!n.message)return null;try{let t=JSON.parse(n.message);return!t||typeof t!="object"||t.kind!=="compile"&&t.kind!=="bundle"&&t.kind!=="error-flap"?null:{ev:n,kind:t.kind,factor:Number(t.factor)||0,baseline:Number(t.baseline)||0,current:Number(t.current)||0,fingerprint:t.fingerprint,suspectCommit:t.suspectCommit??null}}catch{return null}}function de(n){return n==="compile"?"hourglass_bottom":n==="bundle"?"inventory_2":"whatshot"}function ce(n){return n==="compile"?"Compile-time spike":n==="bundle"?"Bundle size grew":"Error flap"}function pe(n,t){return n==="compile"?t>=1e3?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`:n==="bundle"?`${Math.round(t)} KB`:`${Math.round(t)} ev/h`}var X=class n{api=_($);events=c([]);filter=c("all");loading=c(!0);liveCount=c(0);now=c(Date.now());parsed=C(()=>{let t=new Set,e=[];for(let r of this.events()){let m=`${r.ts}|${r.app}|${r.message}`;if(t.has(m))continue;t.add(m);let u=le(r);u&&e.push(u)}return e.sort((r,m)=>m.ev.ts-r.ev.ts)});filtered=C(()=>{let t=this.filter();return t==="all"?this.parsed():this.parsed().filter(e=>e.kind===t)});tickTimer;lastStreamLen=0;streamEffect=k(()=>{let t=this.api.events();if(t.length>this.lastStreamLen){let e=t.slice(this.lastStreamLen);this.lastStreamLen=t.length;let r=[];for(let m of e)m.type==="regression-detected"&&r.push(m);r.length>0&&(this.events.update(m=>[...r,...m]),this.liveCount.update(m=>m+r.length))}});ngOnInit(){this.seed(),this.tickTimer=setInterval(()=>this.now.set(Date.now()),5e3),this.lastStreamLen=this.api.events().length}ngOnDestroy(){this.tickTimer&&clearInterval(this.tickTimer),this.streamEffect.destroy()}rel(t){return me(t,this.now())}icon(t){return de(t)}label(t){return ce(t)}fmt(t,e){return pe(t,e)}trackKey(t,e){return`${e.ev.ts}|${e.ev.app}|${e.kind}|${e.fingerprint??""}`}async seed(){this.loading.set(!0);try{let t=await this.api.getHistoryEvents({type:"regression-detected",since:"30d",limit:500});this.events.set(t.sort((e,r)=>r.ts-e.ts))}finally{this.loading.set(!1)}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=x({type:n,selectors:[["dm-regressions-page"]],decls:31,vars:4,consts:[[1,"dm-page-header"],[1,"dm-count"],[1,"dm-page-sub"],[1,"dm-conn-on"],[1,"dm-conn-off"],[1,"dm-sep"],["hideSingleSelectionIndicator","",3,"ngModelChange","ngModel"],["value","all"],["value","compile"],["fontSet","material-symbols-outlined"],["value","bundle"],["value","error-flap"],[1,"dm-loading"],["icon","trending_down",3,"title","hint"],[1,"dm-regr-list"],[1,"dm-regr-card"],["mat-card-avatar","","fontSet","material-symbols-outlined",1,"dm-regr-icon"],[1,"dm-regr-metrics"],[1,"dm-metric"],[1,"dm-metric-label"],[1,"dm-metric-value"],["fontSet","material-symbols-outlined",1,"dm-arrow"],[1,"dm-metric","dm-metric-bad"],[1,"dm-suspect"],[1,"dm-app-link",3,"routerLink"],[1,"dm-fp"]],template:function(e,r){e&1&&(o(0,"div",0)(1,"div")(2,"h1"),a(3,"Regressions "),o(4,"span",1),a(5),i()(),o(6,"div",2),p(7,Z,2,1,"span",3)(8,ee,2,0,"span",4),o(9,"span",5),a(10,"\xB7"),i(),o(11,"span"),a(12,"compile spikes > 2\xD7, bundle growth > +10%, error flap > 3\xD7 baseline"),i()()(),o(13,"mat-button-toggle-group",6),S("ngModelChange",function(u){return r.filter.set(u)}),o(14,"mat-button-toggle",7),a(15,"All"),i(),o(16,"mat-button-toggle",8)(17,"mat-icon",9),a(18,"hourglass_bottom"),i(),a(19,"Compile"),i(),o(20,"mat-button-toggle",10)(21,"mat-icon",9),a(22,"inventory_2"),i(),a(23,"Bundle"),i(),o(24,"mat-button-toggle",11)(25,"mat-icon",9),a(26,"whatshot"),i(),a(27,"Errors"),i()()(),p(28,te,2,0,"p",12)(29,ne,1,2,"dm-empty",13)(30,se,3,0,"div",14)),e&2&&(s(5),v("\xB7 ",r.filtered().length),s(2),g(r.api.connected()?7:8),s(6),f("ngModel",r.filter()),s(15),g(r.loading()?28:r.filtered().length===0?29:30))},dependencies:[w,R,K,N,B,Q,j,q,H,J,G,A,T,D,W,U,V,I,z,F,L],styles:["[_nghost-%COMP%]{display:block;padding:1.5rem;max-width:1100px;margin:0 auto}.dm-page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.dm-page-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:500 1.5rem/2rem Roboto;margin:0;color:var(--mat-sys-on-surface)}.dm-count[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-weight:400}.dm-page-sub[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:.875rem;margin-top:.25rem}.dm-conn-on[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.dm-conn-off[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-sep[_ngcontent-%COMP%]{margin:0 .5rem;opacity:.5}.dm-loading[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);padding:2rem;text-align:center}.dm-regr-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.75rem}.dm-regr-card[_ngcontent-%COMP%]{border-left:4px solid var(--mat-sys-tertiary)}.dm-regr-card[data-kind=compile][_ngcontent-%COMP%]{border-left-color:var(--mat-sys-tertiary)}.dm-regr-card[data-kind=bundle][_ngcontent-%COMP%]{border-left-color:var(--mat-sys-secondary)}.dm-regr-card[data-kind=error-flap][_ngcontent-%COMP%]{border-left-color:var(--mat-sys-error)}.dm-regr-icon[_ngcontent-%COMP%]{font-size:28px;width:28px;height:28px;color:var(--mat-sys-on-surface-variant)}.dm-app-link[_ngcontent-%COMP%]{color:var(--mat-sys-primary);text-decoration:none;font-weight:500}.dm-app-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.dm-fp[_ngcontent-%COMP%]{font-size:.75rem;color:var(--mat-sys-on-surface-variant)}.dm-regr-metrics[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-top:.5rem}.dm-metric[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:.5rem .875rem;border-radius:8px;background:var(--mat-sys-surface-container)}.dm-metric-bad[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 12%,var(--mat-sys-surface-container))}.dm-metric-label[_ngcontent-%COMP%]{font:500 .6875rem/1rem Roboto;text-transform:uppercase;letter-spacing:.05rem;color:var(--mat-sys-on-surface-variant)}.dm-metric-value[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;color:var(--mat-sys-on-surface)}.dm-metric-bad[_ngcontent-%COMP%] .dm-metric-value[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.dm-arrow[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-suspect[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-top:.75rem;padding-top:.5rem;border-top:1px dashed var(--mat-sys-outline-variant);font-size:.8125rem;color:var(--mat-sys-on-surface-variant)}.dm-suspect[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}"],changeDetection:0})};export{X as RegressionsPageComponent};
@@ -1 +1 @@
1
- import{$ as l,i as o}from"./chunk-O76B43BY.js";var c=(()=>{class r{_listeners=[];notify(t,i){for(let n of this._listeners)n(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var h=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new o;constructor(e=!1,t,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,t&&t.length&&(e?t.forEach(s=>this._markSelected(s)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,i=new Set(e.map(s=>this._getConcreteValue(s)));e.forEach(s=>this._markSelected(s)),t.filter(s=>!i.has(this._getConcreteValue(s,i))).forEach(s=>this._unmarkSelected(s));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let i of t)if(this.compareWith(e,i))return i;return e}else return e}};export{c as a,h as b};
1
+ import{$ as l,i as o}from"./chunk-H3HRZLHG.js";var c=(()=>{class r{_listeners=[];notify(t,i){for(let n of this._listeners)n(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var h=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new o;constructor(e=!1,t,i=!0,n){this._multiple=e,this._emitChanges=i,this.compareWith=n,t&&t.length&&(e?t.forEach(s=>this._markSelected(s)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(i=>this._markSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(i=>this._unmarkSelected(i));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,i=new Set(e.map(s=>this._getConcreteValue(s)));e.forEach(s=>this._markSelected(s)),t.filter(s=>!i.has(this._getConcreteValue(s,i))).forEach(s=>this._unmarkSelected(s));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let i of t)if(this.compareWith(e,i))return i;return e}else return e}};export{c as a,h as b};
@@ -1,4 +1,4 @@
1
- import{c as ht,d as pt}from"./chunk-LBWOIG7N.js";import{c as ct,g as lt,h as mt,k as dt}from"./chunk-6MTVWBQQ.js";import{a as T,b as st,c as ot,f as E,g as rt}from"./chunk-VMW35ZNT.js";import{d as ut,f as R}from"./chunk-FRKUCFVI.js";import{l as nt,q as at,s as it,z as D}from"./chunk-JWXROQJJ.js";import{l as et}from"./chunk-EBGPIJ7S.js";import{$ as F,$b as B,Ca as q,Db as K,Eb as X,Fb as G,Fc as tt,Lb as k,Mb as f,Nb as $,Sb as Y,Ub as A,V as j,Wb as x,_a as p,_b as S,a as m,aa as N,ac as C,ca as v,ea as o,eb as H,fb as y,gb as Z,gc as J,i as c,ic as w,ja as L,ka as z,kc as M,na as h,o as P,oa as V,pb as g,qb as Q,rb as b,sb as U,ub as W}from"./chunk-O76B43BY.js";function vt(a,l){if(a&1){let t=Y();k(0,"div",1)(1,"button",2),A("click",function(){L(t);let n=x();return z(n.action())}),w(2),f()()}if(a&2){let t=x();p(2),M(" ",t.data.action," ")}}var yt=["label"];function gt(a,l){}var At=Math.pow(2,31)-1,_=class{_overlayRef;instance;containerInstance;_afterDismissed=new c;_afterOpened=new c;_onAction=new c;_durationTimeoutId;_dismissedByAction=!1;constructor(l,t){this._overlayRef=t,this.containerInstance=l,l._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(l){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(l,At))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},ft=new v("MatSnackBarData"),d=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),St=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),Bt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),_t=(()=>{class a{snackBarRef=o(_);data=o(ft);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=g({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(k(0,"div",0),w(1),f(),X(2,vt,3,1,"div",1)),e&2&&(p(),M(" ",n.data.message,`
1
+ import{b as ht,c as pt}from"./chunk-2LMH5KDX.js";import{c as ct,g as lt,h as mt,k as dt}from"./chunk-C6SNIY22.js";import{a as T,b as st,c as ot,f as E,g as rt}from"./chunk-AHO3BCLI.js";import{d as ut,f as R}from"./chunk-DRBVSI3B.js";import{l as nt,q as at,s as it,z as D}from"./chunk-DNHNU64I.js";import{l as et}from"./chunk-532NB4ME.js";import{$ as F,$b as S,Ca as q,Db as K,Fb as X,Gb as G,Hc as tt,Mb as k,Nb as f,Ob as $,Tb as Y,V as j,Vb as A,Xb as x,_a as p,a as m,aa as N,ac as B,bc as C,ca as v,ea as o,eb as H,fb as y,gb as Z,hc as J,i as c,ja as L,jc as w,ka as z,lc as M,na as h,o as P,oa as V,pb as g,qb as Q,rb as b,sb as U,ub as W}from"./chunk-H3HRZLHG.js";function vt(a,l){if(a&1){let t=Y();k(0,"div",1)(1,"button",2),A("click",function(){L(t);let n=x();return z(n.action())}),w(2),f()()}if(a&2){let t=x();p(2),M(" ",t.data.action," ")}}var yt=["label"];function gt(a,l){}var At=Math.pow(2,31)-1,_=class{_overlayRef;instance;containerInstance;_afterDismissed=new c;_afterOpened=new c;_onAction=new c;_durationTimeoutId;_dismissedByAction=!1;constructor(l,t){this._overlayRef=t,this.containerInstance=l,l._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(l){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(l,At))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},ft=new v("MatSnackBarData"),d=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return a})(),St=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return a})(),Bt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275dir=b({type:a,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return a})(),_t=(()=>{class a{snackBarRef=o(_);data=o(ft);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=g({type:a,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(k(0,"div",0),w(1),f(),X(2,vt,3,1,"div",1)),e&2&&(p(),M(" ",n.data.message,`
2
2
  `),p(),G(n.hasAction?2:-1))},dependencies:[ht,xt,St,Bt],styles:[`.mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}
3
3
  `],encapsulation:2,changeDetection:0})}return a})(),I="_mat-snack-bar-enter",O="_mat-snack-bar-exit",Ct=(()=>{class a extends ot{_ngZone=o(H);_elementRef=o(q);_changeDetectorRef=o(tt);_platform=o(et);_animationsDisabled=R();snackBarConfig=o(d);_document=o(V);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=o(h);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new c;_onExit=new c;_onEnter=new c;_animationState="void";_live;_label;_role;_liveElementId=o(it).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===O?this._completeExit():t===I&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?y(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(I)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(I)},200)))}exit(){return this._destroyed?P(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?y(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(O)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(O),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,i="mdc-snackbar__label";n.classList.toggle(i,!n.querySelector(`.${i}`))}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<e.length;n++){let i=e[n],s=i.getAttribute("aria-owns");this._trackedModals.add(i),s?s.indexOf(t)===-1&&i.setAttribute("aria-owns",s+" "+t):i.setAttribute("aria-owns",t)}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),n=t.querySelector("[aria-live]");if(e&&n){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),i?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=g({type:a,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&(S(E,7),S(yt,7)),e&2){let i;B(i=C())&&(n._portalOutlet=i.first),B(i=C())&&(n._label=i.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&A("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&J("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[U],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(k(0,"div",1)(1,"div",2,0)(3,"div",3),W(4,gt,0,0,"ng-template",4),f(),$(5,"div"),f()()),e&2&&(p(5),K("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[E],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
4
4
  `],encapsulation:2})}return a})();function wt(){return new d}var Mt=new v("mat-snack-bar-default-options",{providedIn:"root",factory:wt}),Dt=(()=>{class a{_live=o(at);_injector=o(h);_breakpointObserver=o(nt);_parentSnackBar=o(a,{optional:!0,skipSelf:!0});_defaultConfig=o(Mt);_animationsDisabled=R();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=_t;snackBarContainerComponent=Ct;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(){}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let i=m(m({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,i=h.create({parent:n||this._injector,providers:[{provide:d,useValue:e}]}),s=new T(this.snackBarContainerComponent,e.viewContainerRef,i),r=t.attach(s);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){let n=m(m(m({},new d),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),r=new _(s,i);if(t instanceof Z){let u=new st(t,null,{$implicit:n.data,snackBarRef:r});r.instance=s.attachTemplatePortal(u)}else{let u=this._createInjector(n,r),bt=new T(t,void 0,u),kt=s.attachComponentPortal(bt);r.instance=kt.instance}return this._breakpointObserver.observe(ut.HandsetPortrait).pipe(j(i.detachments())).subscribe(u=>{i.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(r,n),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter()}_createOverlay(t){let e=new ct;e.direction=t.direction;let n=lt(this._injector),i=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!i||t.horizontalPosition==="end"&&i,r=!s&&t.horizontalPosition!=="center";return s?n.left("0"):r?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,mt(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return h.create({parent:n||this._injector,providers:[{provide:_,useValue:e},{provide:ft,useValue:t.data}]})}static \u0275fac=function(e){return new(e||a)};static \u0275prov=F({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Xt=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=Q({type:a});static \u0275inj=N({providers:[Dt],imports:[dt,rt,pt,D,_t,D]})}return a})();export{Dt as a,Xt as b};
@@ -0,0 +1 @@
1
+ import{a as ie,b as oe,c as ae,d as re,g as se,h as le}from"./chunk-TLCLILNG.js";import{d as de}from"./chunk-36JZZZCV.js";import{a as ee,b as te,e as ne}from"./chunk-EYOED3X7.js";import"./chunk-PVPELZPO.js";import"./chunk-HVK4GEK7.js";import{b as Y,f as Q,h as q,m as G}from"./chunk-2QORICNU.js";import"./chunk-CCRYWDXZ.js";import{a as H,b as J,c as U}from"./chunk-2LMH5KDX.js";import"./chunk-6YXOOFGY.js";import"./chunk-BCGQJHY3.js";import"./chunk-P3Q7RWT5.js";import{c as X,d as Z}from"./chunk-JODWQVMA.js";import{a as z,b as K}from"./chunk-RMV7CR6Y.js";import"./chunk-YNQPX5G6.js";import"./chunk-C6SNIY22.js";import"./chunk-42QQHEGP.js";import"./chunk-AHO3BCLI.js";import"./chunk-DRBVSI3B.js";import"./chunk-BKYXU3OY.js";import{c as B}from"./chunk-YFYMS5EE.js";import{e as j,f as A}from"./chunk-BPUIUSAU.js";import{d as W}from"./chunk-6CP6NCA6.js";import"./chunk-DNHNU64I.js";import{h as V}from"./chunk-532NB4ME.js";import{Ac as P,Db as b,Fb as c,Gb as p,Ib as L,Jb as E,Kb as k,Lb as _,Mb as a,Nb as r,Ob as F,Tb as T,Vb as h,Xb as m,_a as o,ea as D,hc as w,ja as x,jc as s,ka as M,kc as u,lc as y,pb as N,ta as g,vc as R}from"./chunk-H3HRZLHG.js";var ce=t=>["/apps",t],pe=(t,n)=>n.name,ue=(t,n)=>n.key;function ve(t,n){t&1&&(a(0,"span",18),s(1,"\xB7"),r(),a(2,"span",19),s(3,"paused"),r())}function ge(t,n){if(t&1&&(a(0,"span",18),s(1,"\xB7"),r(),a(2,"span"),s(3),r()),t&2){let e=m();o(3),y("",e.pendingCount()," new while paused")}}function _e(t,n){if(t&1&&(a(0,"mat-option",10),s(1),r()),t&2){let e=n.$implicit;_("value",e.name),o(),u(e.name)}}function fe(t,n){if(t&1){let e=T();a(0,"button",20),h("click",function(){x(e);let d=m();return M(d.textFilter.set(""))}),a(1,"mat-icon"),s(2,"close"),r()()}}function he(t,n){if(t&1){let e=T();a(0,"button",21),h("click",function(){let d=x(e).$implicit,v=m();return M(v.toggleType(d))}),s(1),r()}if(t&2){let e=n.$implicit,i=m();w("dm-chip-active",i.typeFilter().has(e)),b("data-kind",e),o(),y(" ",e," ")}}function ye(t,n){if(t&1){let e=T();a(0,"button",22),h("click",function(){x(e);let d=m();return M(d.clearTypes())}),a(1,"mat-icon"),s(2,"close"),r()()}}function Ce(t,n){t&1&&F(0,"dm-empty",23)}function xe(t,n){t&1&&F(0,"dm-empty",24)}function Me(t,n){if(t&1&&c(0,Ce,1,0,"dm-empty",23)(1,xe,1,0,"dm-empty",24),t&2){let e=m();p(e.liveEvents().length===0?0:1)}}function be(t,n){if(t&1&&(a(0,"li",25)(1,"span",32),s(2),r()()),t&2){let e=m().$implicit;o(2),u(e.gapLabel)}}function Ee(t,n){if(t&1&&(a(0,"a",29)(1,"dm-mono"),s(2),r()()),t&2){let e=m().$implicit;_("routerLink",R(2,ce,e.ev.app)),o(2),u(e.ev.app)}}function ke(t,n){t&1&&(a(0,"span",30),s(1,"\u2014"),r())}function Fe(t,n){if(t&1&&(a(0,"dm-mono"),s(1),r(),a(2,"span",33),s(3,"\u2192"),r(),a(4,"dm-mono"),s(5),r()),t&2){let e=m().$implicit;o(),u(e.ev.from??"?"),o(4),u(e.ev.to??"?")}}function Te(t,n){if(t&1&&s(0),t&2){let e=m().$implicit;y(" ",e.ev.message??""," ")}}function we(t,n){if(t&1&&(c(0,be,3,1,"li",25),a(1,"li",26)(2,"span",27)(3,"dm-mono"),s(4),r()(),a(5,"span",28),s(6),r(),c(7,Ee,3,4,"a",29)(8,ke,2,0,"span",30),a(9,"span",31),c(10,Fe,6,2)(11,Te,1,1),r()()),t&2){let e=n.$implicit,i=m(2);p(e.divider?0:-1),o(),w("dm-flash",e.flash),b("data-kind",e.ev.type),o(),_("matTooltip",i.absTime(e.ev.ts)),o(2),u(i.rel(e.ev.ts)),o(),b("data-kind",e.ev.type),o(),u(e.ev.type),o(),p(e.ev.app?7:8),o(3),p(e.ev.type==="status"&&(e.ev.from||e.ev.to)?10:11)}}function Pe(t,n){if(t&1&&(a(0,"ol",17),E(1,we,12,10,null,null,ue),r()),t&2){let e=m();o(),k(e.rendered())}}var Oe=["status","health","error","compile","log"];function Se(t,n){let e=Math.max(0,Math.floor((n-t)/1e3));if(e<1)return"just now";if(e<60)return`${e}s ago`;let i=Math.floor(e/60),d=e%60;return i<60?d?`${i}m ${d}s ago`:`${i}m ago`:`${Math.floor(i/60)}h ${i%60}m ago`}var me=class t{api=D(W);types=Oe;paused=g(!1);appFilter=g("");textFilter=g("");typeFilter=g(new Set);now=g(Date.now());snapshot=g(null);lastSeenTs=g(0);tickTimer;liveEvents=P(()=>this.snapshot()??this.api.events());pendingCount=P(()=>{let n=this.snapshot();if(!n)return 0;let e=this.api.events();return Math.max(0,e.length-n.length)});rendered=P(()=>{let n=this.liveEvents(),e=this.appFilter(),i=this.textFilter().toLowerCase(),d=this.typeFilter(),v=this.lastSeenTs(),C=[];for(let l of n)e&&l.app!==e||d.size&&!d.has(l.type)||i&&!`${l.app??""} ${l.type} ${l.message??""} ${l.from??""} ${l.to??""}`.toLowerCase().includes(i)||C.push(l);let S=[];for(let l=0;l<C.length;l++){let f=C[l],O=C[l+1],I=O?f.ts-O.ts:0,$=!!O&&I>3e4;S.push({key:`${f.ts}:${l}`,ev:f,divider:$,gapLabel:$?Ie(I):"",flash:f.ts>v})}return S.sort((l,f)=>f.ev.ts-l.ev.ts)});ngOnInit(){this.lastSeenTs.set(Date.now()),this.tickTimer=setInterval(()=>{this.now.set(Date.now());let n=this.api.events();n.length&&this.lastSeenTs.set(n[n.length-1].ts)},1e3)}ngOnDestroy(){this.tickTimer&&clearInterval(this.tickTimer)}togglePause(){this.paused()?(this.paused.set(!1),this.snapshot.set(null)):(this.snapshot.set(this.api.events().slice()),this.paused.set(!0))}toggleType(n){this.typeFilter.update(e=>{let i=new Set(e);return i.has(n)?i.delete(n):i.add(n),i})}clearTypes(){this.typeFilter.set(new Set)}rel(n){return Se(n,this.now())}absTime(n){return new Date(n).toLocaleString()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=N({type:t,selectors:[["dm-events-feed"]],decls:37,vars:15,consts:[[1,"dm-page-header"],[1,"dm-count"],[1,"dm-page-sub"],[1,"dm-conn"],[1,"dm-conn-dot"],[1,"dm-header-actions"],["mat-stroked-button","",3,"click","matTooltip"],[1,"dm-toolbar"],["appearance","outline",1,"dm-app-filter"],[3,"ngModelChange","ngModel"],[3,"value"],["appearance","outline",1,"dm-text-filter"],["matInput","","placeholder","filter message / app",3,"ngModelChange","ngModel"],["matSuffix","","mat-icon-button",""],[1,"dm-type-chips"],[1,"dm-chip",3,"dm-chip-active"],[1,"dm-chip","dm-chip-clear"],[1,"dm-list"],[1,"dm-sep"],[1,"dm-paused-tag"],["matSuffix","","mat-icon-button","",3,"click"],[1,"dm-chip",3,"click"],[1,"dm-chip","dm-chip-clear",3,"click"],["icon","timeline","title","Quiet","hint","No events in this session \u2014 start an app to see status transitions, errors, and compiles"],["icon","filter_alt_off","title","No matches","hint","Adjust filters to see events"],[1,"dm-divider"],[1,"dm-event"],[1,"dm-time",3,"matTooltip"],[1,"dm-type"],[1,"dm-app",3,"routerLink"],[1,"dm-app","dm-app-empty"],[1,"dm-msg"],[1,"dm-divider-label"],[1,"dm-arrow"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div")(2,"h1"),s(3,"Events "),a(4,"span",1),s(5),r()(),a(6,"div",2)(7,"span",3),F(8,"span",4),s(9),r(),c(10,ve,4,0),c(11,ge,4,1),r()(),a(12,"div",5)(13,"button",6),h("click",function(){return i.togglePause()}),a(14,"mat-icon"),s(15),r(),s(16),r()()(),a(17,"div",7)(18,"mat-form-field",8)(19,"mat-label"),s(20,"App"),r(),a(21,"mat-select",9),h("ngModelChange",function(v){return i.appFilter.set(v)}),a(22,"mat-option",10),s(23,"All apps"),r(),E(24,_e,2,2,"mat-option",10,pe),r()(),a(26,"mat-form-field",11)(27,"mat-label"),s(28,"Search"),r(),a(29,"input",12),h("ngModelChange",function(v){return i.textFilter.set(v)}),r(),c(30,fe,3,0,"button",13),r(),a(31,"div",14),E(32,he,2,4,"button",15,L),c(34,ye,3,0,"button",16),r()(),c(35,Me,2,1)(36,Pe,3,0,"ol",17)),e&2&&(o(5),y("\xB7 ",i.liveEvents().length),o(2),w("dm-conn-on",i.api.connected()),o(2),y(" ",i.api.connected()?"live":"disconnected"," "),o(),p(i.paused()?10:-1),o(),p(i.paused()&&i.pendingCount()>0?11:-1),o(2),_("matTooltip",i.paused()?"Resume feed":"Pause feed"),o(2),u(i.paused()?"play_arrow":"pause"),o(),y(" ",i.paused()?"Resume":"Pause"," "),o(5),_("ngModel",i.appFilter()),o(),_("value",""),o(2),k(i.api.apps()),o(5),_("ngModel",i.textFilter()),o(),p(i.textFilter()?30:-1),o(2),k(i.types),o(2),p(i.typeFilter().size>0?34:-1),o(),p(i.rendered().length===0?35:36))},dependencies:[V,G,Y,Q,q,B,ie,ne,ee,te,re,ae,oe,le,se,de,U,J,H,A,j,K,z,X,Z],styles:["[_nghost-%COMP%]{display:block}.dm-count[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-weight:400}.dm-conn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.35rem}.dm-conn-dot[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:999px;background:var(--mat-sys-outline)}.dm-conn-on[_ngcontent-%COMP%] .dm-conn-dot[_ngcontent-%COMP%]{background:var(--mat-sys-primary);box-shadow:0 0 0 3px color-mix(in oklch,var(--mat-sys-primary) 24%,transparent)}.dm-sep[_ngcontent-%COMP%]{color:var(--mat-sys-outline);margin:0 .15rem}.dm-paused-tag[_ngcontent-%COMP%]{color:var(--mat-sys-tertiary);font-weight:500}.dm-toolbar[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-bottom:.5rem}.dm-app-filter[_ngcontent-%COMP%]{width:12rem}.dm-text-filter[_ngcontent-%COMP%]{flex:1;min-width:14rem;max-width:28rem}.dm-type-chips[_ngcontent-%COMP%]{display:flex;gap:.35rem;flex-wrap:wrap}.dm-chip[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant);border-radius:999px;padding:4px 12px;font:500 .75rem/1rem Roboto;cursor:pointer;letter-spacing:.025rem}.dm-chip[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container-high)}.dm-chip-active[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.dm-chip-clear[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:2px 8px}.dm-chip-clear[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.dm-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;border:1px solid var(--mat-sys-outline-variant);border-radius:10px;background:var(--mat-sys-surface-container-lowest);overflow:hidden}.dm-event[_ngcontent-%COMP%]{display:grid;grid-template-columns:7.5rem max-content 10rem 1fr;gap:.75rem;align-items:center;height:28px;padding:0 .75rem;border-top:1px solid var(--mat-sys-outline-variant);font-size:.8125rem;color:var(--mat-sys-on-surface)}.dm-event[_ngcontent-%COMP%]:first-child{border-top:0}.dm-time[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-type[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:1px 8px;border-radius:999px;font:500 .6875rem/1rem Roboto;letter-spacing:.03rem;border:1px solid var(--mat-sys-outline-variant);text-transform:lowercase;white-space:nowrap}.dm-type[data-kind=status][_ngcontent-%COMP%], .dm-chip[data-kind=status].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-primary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-primary) 30%,transparent);color:var(--mat-sys-primary)}.dm-type[data-kind=health][_ngcontent-%COMP%], .dm-chip[data-kind=health].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-secondary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-secondary) 30%,transparent);color:var(--mat-sys-secondary)}.dm-type[data-kind=error][_ngcontent-%COMP%], .dm-chip[data-kind=error].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-error) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-error) 32%,transparent);color:var(--mat-sys-error)}.dm-type[data-kind=compile][_ngcontent-%COMP%], .dm-chip[data-kind=compile].dm-chip-active[_ngcontent-%COMP%]{background:color-mix(in oklch,var(--mat-sys-tertiary) 14%,transparent);border-color:color-mix(in oklch,var(--mat-sys-tertiary) 30%,transparent);color:var(--mat-sys-tertiary)}.dm-type[data-kind=log][_ngcontent-%COMP%], .dm-chip[data-kind=log].dm-chip-active[_ngcontent-%COMP%]{background:var(--mat-sys-surface-container);color:var(--mat-sys-on-surface-variant)}.dm-app[_ngcontent-%COMP%]{text-decoration:none;color:var(--mat-sys-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-app[_ngcontent-%COMP%]:hover{text-decoration:underline}.dm-app-empty[_ngcontent-%COMP%]{color:var(--mat-sys-outline)}.dm-msg[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:.35rem}.dm-arrow[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.dm-divider[_ngcontent-%COMP%]{height:18px;display:flex;align-items:center;justify-content:center;border-top:1px solid var(--mat-sys-outline-variant);background:var(--mat-sys-surface-container)}.dm-divider-label[_ngcontent-%COMP%]{font:400 .6875rem/1rem Roboto;color:var(--mat-sys-on-surface-variant);letter-spacing:.04rem}.dm-flash[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_dm-event-pulse .6s var(--dm-motion-easing)}@keyframes _ngcontent-%COMP%_dm-event-pulse{0%{background:color-mix(in oklch,var(--mat-sys-primary) 24%,transparent)}to{background:transparent}}@media(prefers-reduced-motion:reduce){.dm-flash[_ngcontent-%COMP%]{animation:none}}"],changeDetection:0})};function Ie(t){let n=Math.floor(t/1e3);if(n<60)return`${n}s gap`;let e=Math.floor(n/60);return e<60?`${e}m gap`:`${Math.floor(e/60)}h ${e%60}m gap`}export{me as EventsFeedComponent};