@ngocsangairvds/vsaf 4.0.17 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/package.json +5 -2
  2. package/packages/cli/dist/commands/doctor.d.ts +1 -0
  3. package/packages/cli/dist/commands/doctor.d.ts.map +1 -1
  4. package/packages/cli/dist/commands/doctor.js +5 -4
  5. package/packages/cli/dist/commands/doctor.js.map +1 -1
  6. package/packages/cli/dist/commands/init.d.ts.map +1 -1
  7. package/packages/cli/dist/commands/init.js +15 -6
  8. package/packages/cli/dist/commands/init.js.map +1 -1
  9. package/packages/cli/dist/commands/list.js +8 -1
  10. package/packages/cli/dist/commands/list.js.map +1 -1
  11. package/packages/cli/dist/commands/run.d.ts.map +1 -1
  12. package/packages/cli/dist/commands/run.js +17 -4
  13. package/packages/cli/dist/commands/run.js.map +1 -1
  14. package/packages/cli/dist/commands/skill.d.ts.map +1 -1
  15. package/packages/cli/dist/commands/skill.js +14 -2
  16. package/packages/cli/dist/commands/skill.js.map +1 -1
  17. package/packages/cli/dist/index.js +8 -2
  18. package/packages/cli/dist/index.js.map +1 -1
  19. package/packages/cli/dist/mcp/server.d.ts +22 -0
  20. package/packages/cli/dist/mcp/server.d.ts.map +1 -1
  21. package/packages/cli/dist/mcp/server.js +311 -20
  22. package/packages/cli/dist/mcp/server.js.map +1 -1
  23. package/packages/cli/dist/server/routes/runs.d.ts.map +1 -1
  24. package/packages/cli/dist/server/routes/runs.js +7 -1
  25. package/packages/cli/dist/server/routes/runs.js.map +1 -1
  26. package/packages/cli/dist/server/routes/workflows.d.ts.map +1 -1
  27. package/packages/cli/dist/server/routes/workflows.js +3 -0
  28. package/packages/cli/dist/server/routes/workflows.js.map +1 -1
  29. package/packages/cli/dist/server/services/execution-manager.d.ts.map +1 -1
  30. package/packages/cli/dist/server/services/execution-manager.js +68 -41
  31. package/packages/cli/dist/server/services/execution-manager.js.map +1 -1
  32. package/packages/cli/dist/server/services/sse-manager.d.ts.map +1 -1
  33. package/packages/cli/dist/server/services/sse-manager.js +7 -2
  34. package/packages/cli/dist/server/services/sse-manager.js.map +1 -1
  35. package/packages/core/dist/commands/command-loader.d.ts.map +1 -1
  36. package/packages/core/dist/commands/command-loader.js +3 -0
  37. package/packages/core/dist/commands/command-loader.js.map +1 -1
  38. package/packages/core/dist/engine/condition-evaluator.js +3 -2
  39. package/packages/core/dist/engine/condition-evaluator.js.map +1 -1
  40. package/packages/core/dist/engine/dag-executor.d.ts +28 -1
  41. package/packages/core/dist/engine/dag-executor.d.ts.map +1 -1
  42. package/packages/core/dist/engine/dag-executor.js +279 -131
  43. package/packages/core/dist/engine/dag-executor.js.map +1 -1
  44. package/packages/core/dist/engine/dag-parser.d.ts.map +1 -1
  45. package/packages/core/dist/engine/dag-parser.js +2 -0
  46. package/packages/core/dist/engine/dag-parser.js.map +1 -1
  47. package/packages/core/dist/engine/node-runner.d.ts.map +1 -1
  48. package/packages/core/dist/engine/node-runner.js +12 -1
  49. package/packages/core/dist/engine/node-runner.js.map +1 -1
  50. package/packages/core/dist/engine/variable-resolver.d.ts +1 -1
  51. package/packages/core/dist/engine/variable-resolver.d.ts.map +1 -1
  52. package/packages/core/dist/engine/variable-resolver.js +21 -11
  53. package/packages/core/dist/engine/variable-resolver.js.map +1 -1
  54. package/packages/core/dist/index.d.ts +5 -1
  55. package/packages/core/dist/index.d.ts.map +1 -1
  56. package/packages/core/dist/index.js +13 -3
  57. package/packages/core/dist/index.js.map +1 -1
  58. package/packages/core/dist/isolation/artifact-store.d.ts.map +1 -1
  59. package/packages/core/dist/isolation/artifact-store.js +30 -5
  60. package/packages/core/dist/isolation/artifact-store.js.map +1 -1
  61. package/packages/core/dist/isolation/workspace-manager.d.ts +2 -0
  62. package/packages/core/dist/isolation/workspace-manager.d.ts.map +1 -1
  63. package/packages/core/dist/isolation/workspace-manager.js +81 -7
  64. package/packages/core/dist/isolation/workspace-manager.js.map +1 -1
  65. package/packages/core/dist/schema/workflow-schema.d.ts +10 -0
  66. package/packages/core/dist/schema/workflow-schema.d.ts.map +1 -1
  67. package/packages/core/dist/schema/workflow-schema.js +5 -3
  68. package/packages/core/dist/schema/workflow-schema.js.map +1 -1
  69. package/packages/core/dist/skills/skill-loader.d.ts.map +1 -1
  70. package/packages/core/dist/skills/skill-loader.js +7 -0
  71. package/packages/core/dist/skills/skill-loader.js.map +1 -1
  72. package/packages/core/dist/store/atomic.d.ts +11 -0
  73. package/packages/core/dist/store/atomic.d.ts.map +1 -0
  74. package/packages/core/dist/store/atomic.js +51 -0
  75. package/packages/core/dist/store/atomic.js.map +1 -0
  76. package/packages/core/dist/store/recovery.d.ts +3 -0
  77. package/packages/core/dist/store/recovery.d.ts.map +1 -0
  78. package/packages/core/dist/store/recovery.js +206 -0
  79. package/packages/core/dist/store/recovery.js.map +1 -0
  80. package/packages/core/dist/store/run-lock.d.ts +9 -0
  81. package/packages/core/dist/store/run-lock.d.ts.map +1 -0
  82. package/packages/core/dist/store/run-lock.js +62 -0
  83. package/packages/core/dist/store/run-lock.js.map +1 -0
  84. package/packages/core/dist/store/run-store.d.ts +20 -7
  85. package/packages/core/dist/store/run-store.d.ts.map +1 -1
  86. package/packages/core/dist/store/run-store.js +175 -34
  87. package/packages/core/dist/store/run-store.js.map +1 -1
  88. package/packages/core/dist/store/snapshot.d.ts +4 -0
  89. package/packages/core/dist/store/snapshot.d.ts.map +1 -0
  90. package/packages/core/dist/store/snapshot.js +59 -0
  91. package/packages/core/dist/store/snapshot.js.map +1 -0
  92. package/packages/core/dist/store/types.d.ts +89 -4
  93. package/packages/core/dist/store/types.d.ts.map +1 -1
  94. package/packages/core/dist/store/types.js +14 -0
  95. package/packages/core/dist/store/types.js.map +1 -1
  96. package/packages/core/dist/store/wal.d.ts +39 -0
  97. package/packages/core/dist/store/wal.d.ts.map +1 -0
  98. package/packages/core/dist/store/wal.js +203 -0
  99. package/packages/core/dist/store/wal.js.map +1 -0
  100. package/packages/core/dist/types/dag.d.ts +2 -0
  101. package/packages/core/dist/types/dag.d.ts.map +1 -1
  102. package/packages/core/dist/types/workflow.d.ts +5 -3
  103. package/packages/core/dist/types/workflow.d.ts.map +1 -1
  104. package/packages/web/dist/web/3rdpartylicenses.txt +614 -0
  105. package/packages/web/dist/web/browser/chunk-2QJBTGYU.js +3 -0
  106. package/packages/web/dist/web/browser/chunk-3VYLP4FZ.js +1 -0
  107. package/packages/web/dist/web/browser/chunk-6HRQZQXD.js +1 -0
  108. package/packages/web/dist/web/browser/chunk-7PK6Q4UU.js +1 -0
  109. package/packages/web/dist/web/browser/chunk-O7TQGEFF.js +8 -0
  110. package/packages/web/dist/web/browser/chunk-PWF76NCM.js +1 -0
  111. package/packages/web/dist/web/browser/favicon.ico +0 -0
  112. package/packages/web/dist/web/browser/index.html +13 -0
  113. package/packages/web/dist/web/browser/main-AZU5W3KI.js +1 -0
  114. package/packages/web/dist/web/browser/polyfills-YMBILSHJ.js +2 -0
  115. package/packages/web/dist/web/browser/styles-JBPZVY54.css +1 -0
  116. package/packages/web/dist/web/prerendered-routes.json +3 -0
  117. package/packages/core/dist/store/event-log.d.ts +0 -8
  118. package/packages/core/dist/store/event-log.d.ts.map +0 -1
  119. package/packages/core/dist/store/event-log.js +0 -30
  120. package/packages/core/dist/store/event-log.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ var gg=Object.defineProperty,mg=Object.defineProperties;var yg=Object.getOwnPropertyDescriptors;var Fu=Object.getOwnPropertySymbols;var vg=Object.prototype.hasOwnProperty,Dg=Object.prototype.propertyIsEnumerable;var Lu=(e,t,n)=>t in e?gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})vg.call(t,n)&&Lu(e,n,t[n]);if(Fu)for(var n of Fu(t))Dg.call(t,n)&&Lu(e,n,t[n]);return e},$=(e,t)=>mg(e,yg(t));function Ms(e,t){return Object.is(e,t)}var Y=null,no=!1,Ts=1,Me=Symbol("SIGNAL");function _(e){let t=Y;return Y=e,t}function _s(){return Y}var qn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Gn(e){if(no)throw new Error("");if(Y===null)return;Y.consumerOnSignalRead(e);let t=Y.nextProducerIndex++;if(so(Y),t<Y.producerNode.length&&Y.producerNode[t]!==e&&zn(Y)){let n=Y.producerNode[t];io(n,Y.producerIndexOfThis[t])}Y.producerNode[t]!==e&&(Y.producerNode[t]=e,Y.producerIndexOfThis[t]=zn(Y)?Vu(e,Y,t):0),Y.producerLastReadVersion[t]=e.version}function ju(){Ts++}function Ns(e){if(!(zn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ts)){if(!e.producerMustRecompute(e)&&!Os(e)){Ss(e);return}e.producerRecomputeValue(e),Ss(e)}}function Rs(e){if(e.liveConsumerNode===void 0)return;let t=no;no=!0;try{for(let n of e.liveConsumerNode)n.dirty||Eg(n)}finally{no=t}}function xs(){return Y?.consumerAllowSignalWrites!==!1}function Eg(e){e.dirty=!0,Rs(e),e.consumerMarkedDirty?.(e)}function Ss(e){e.dirty=!1,e.lastCleanEpoch=Ts}function oo(e){return e&&(e.nextProducerIndex=0),_(e)}function As(e,t){if(_(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(zn(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)io(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Os(e){so(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Ns(n),r!==n.version))return!0}return!1}function ks(e){if(so(e),zn(e))for(let t=0;t<e.producerNode.length;t++)io(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Vu(e,t,n){if(Bu(e),e.liveConsumerNode.length===0&&Uu(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Vu(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function io(e,t){if(Bu(e),e.liveConsumerNode.length===1&&Uu(e))for(let r=0;r<e.producerNode.length;r++)io(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],o=e.liveConsumerNode[t];so(o),o.producerIndexOfThis[r]=t}}function zn(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function so(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Bu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Uu(e){return e.producerNode!==void 0}function Ps(e,t){let n=Object.create(wg);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Ns(n),Gn(n),n.value===ro)throw n.error;return n.value};return r[Me]=n,r}var Cs=Symbol("UNSET"),bs=Symbol("COMPUTING"),ro=Symbol("ERRORED"),wg=$(y({},qn),{value:Cs,dirty:!0,error:null,equal:Ms,kind:"computed",producerMustRecompute(e){return e.value===Cs||e.value===bs},producerRecomputeValue(e){if(e.value===bs)throw new Error("Detected cycle in computations.");let t=e.value;e.value=bs;let n=oo(e),r,o=!1;try{r=e.computation(),_(null),o=t!==Cs&&t!==ro&&r!==ro&&e.equal(t,r)}catch(i){r=ro,e.error=i}finally{As(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function Ig(){throw new Error}var $u=Ig;function Hu(e){$u(e)}function Fs(e){$u=e}var Cg=null;function Ls(e,t){let n=Object.create(ao);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(Gn(n),n.value);return r[Me]=n,r}function Wn(e,t){xs()||Hu(e),e.equal(e.value,t)||(e.value=t,bg(e))}function js(e,t){xs()||Hu(e),Wn(e,t(e.value))}var ao=$(y({},qn),{equal:Ms,value:void 0,kind:"signal"});function bg(e){e.version++,ju(),Rs(e),Cg?.()}function Vs(e){let t=_(null);try{return e()}finally{_(t)}}var Bs;function Zn(){return Bs}function Xe(e){let t=Bs;return Bs=e,t}var co=Symbol("NotFound");function b(e){return typeof e=="function"}function Xt(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 uo=Xt(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 Yn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var q=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 uo?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{zu(i)}catch(s){t=t??[],s instanceof uo?t=[...t,...s.errors]:t.push(s)}}if(t)throw new uo(t)}}add(t){var n;if(t&&t!==this)if(this.closed)zu(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)&&Yn(n,t)}remove(t){let{_finalizers:n}=this;n&&Yn(n,t),t instanceof e&&t._removeParent(this)}};q.EMPTY=(()=>{let e=new q;return e.closed=!0,e})();var Us=q.EMPTY;function lo(e){return e instanceof q||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function zu(e){b(e)?e():e.unsubscribe()}var Oe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jt={setTimeout(e,t,...n){let{delegate:r}=Jt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Jt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fo(e){Jt.setTimeout(()=>{let{onUnhandledError:t}=Oe;if(t)t(e);else throw e})}function Qn(){}var qu=$s("C",void 0,void 0);function Gu(e){return $s("E",void 0,e)}function Wu(e){return $s("N",e,void 0)}function $s(e,t,n){return{kind:e,value:t,error:n}}var Nt=null;function en(e){if(Oe.useDeprecatedSynchronousErrorHandling){let t=!Nt;if(t&&(Nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Nt;if(Nt=null,n)throw r}}else e()}function Zu(e){Oe.useDeprecatedSynchronousErrorHandling&&Nt&&(Nt.errorThrown=!0,Nt.error=e)}var Rt=class extends q{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,lo(t)&&t.add(this)):this.destination=Rg}static create(t,n,r){return new tn(t,n,r)}next(t){this.isStopped?zs(Wu(t),this):this._next(t)}error(t){this.isStopped?zs(Gu(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?zs(qu,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()}}},_g=Function.prototype.bind;function Hs(e,t){return _g.call(e,t)}var qs=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ho(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ho(r)}else ho(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ho(n)}}},tn=class extends Rt{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&&Oe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Hs(t.next,i),error:t.error&&Hs(t.error,i),complete:t.complete&&Hs(t.complete,i)}):o=t}this.destination=new qs(o)}};function ho(e){Oe.useDeprecatedSynchronousErrorHandling?Zu(e):fo(e)}function Ng(e){throw e}function zs(e,t){let{onStoppedNotification:n}=Oe;n&&Jt.setTimeout(()=>n(e,t))}var Rg={closed:!0,next:Qn,error:Ng,complete:Qn};var nn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ee(e){return e}function Gs(...e){return Ws(e)}function Ws(e){return e.length===0?Ee:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var P=(()=>{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=Ag(n)?n:new tn(n,r,o);return en(()=>{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=Yu(r),new r((o,i)=>{let s=new tn({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)}[nn](){return this}pipe(...n){return Ws(n)(this)}toPromise(n){return n=Yu(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 Yu(e){var t;return(t=e??Oe.Promise)!==null&&t!==void 0?t:Promise}function xg(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function Ag(e){return e&&e instanceof Rt||xg(e)&&lo(e)}function Zs(e){return b(e?.lift)}function k(e){return t=>{if(Zs(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 O(e,t,n,r,o){return new Ys(e,t,n,r,o)}var Ys=class extends Rt{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 rn(){return k((e,t)=>{let n=null;e._refCount++;let r=O(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 on=class extends P{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Zs(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 q;let n=this.getSubject();t.add(this.source.subscribe(O(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=q.EMPTY)}return t}refCount(){return rn()(this)}};var Qu=Xt(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new po(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Qu}next(n){en(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){en(()=>{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(){en(()=>{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?Us:(this.currentObservers=null,i.push(n),new q(()=>{this.currentObservers=null,Yn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new po(t,n),e})(),po=class extends ee{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:Us}};var re=class extends ee{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 fe=new P(e=>e.complete());function Ku(e){return e&&b(e.schedule)}function Xu(e){return e[e.length-1]}function go(e){return b(Xu(e))?e.pop():void 0}function gt(e){return Ku(Xu(e))?e.pop():void 0}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(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function Ju(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 xt(e){return this instanceof xt?(this.v=e,this):new xt(e)}function tl(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(d){return function(p){return Promise.resolve(p).then(d,f)}}function a(d,p){r[d]&&(o[d]=function(m){return new Promise(function(D,R){i.push([d,m,D,R])>1||c(d,m)})},p&&(o[d]=p(o[d])))}function c(d,p){try{u(r[d](p))}catch(m){h(i[0][3],m)}}function u(d){d.value instanceof xt?Promise.resolve(d.value.v).then(l,f):h(i[0][2],d)}function l(d){c("next",d)}function f(d){c("throw",d)}function h(d,p){d(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function nl(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 Ju=="function"?Ju(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var mo=e=>e&&typeof e.length=="number"&&typeof e!="function";function yo(e){return b(e?.then)}function vo(e){return b(e[nn])}function Do(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function Eo(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 Og(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var wo=Og();function Io(e){return b(e?.[wo])}function Co(e){return tl(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield xt(n.read());if(o)return yield xt(void 0);yield yield xt(r)}}finally{n.releaseLock()}})}function bo(e){return b(e?.getReader)}function G(e){if(e instanceof P)return e;if(e!=null){if(vo(e))return kg(e);if(mo(e))return Pg(e);if(yo(e))return Fg(e);if(Do(e))return rl(e);if(Io(e))return Lg(e);if(bo(e))return jg(e)}throw Eo(e)}function kg(e){return new P(t=>{let n=e[nn]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Pg(e){return new P(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Fg(e){return new P(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fo)})}function Lg(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function rl(e){return new P(t=>{Vg(e,t).catch(n=>t.error(n))})}function jg(e){return rl(Co(e))}function Vg(e,t){var n,r,o,i;return el(this,void 0,void 0,function*(){try{for(n=nl(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 he(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 So(e,t=0){return k((n,r)=>{n.subscribe(O(r,o=>he(r,e,()=>r.next(o),t),()=>he(r,e,()=>r.complete(),t),o=>he(r,e,()=>r.error(o),t)))})}function Mo(e,t=0){return k((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ol(e,t){return G(e).pipe(Mo(t),So(t))}function il(e,t){return G(e).pipe(Mo(t),So(t))}function sl(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function al(e,t){return new P(n=>{let r;return he(n,t,()=>{r=e[wo](),he(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 To(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{he(n,t,()=>{let r=e[Symbol.asyncIterator]();he(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function cl(e,t){return To(Co(e),t)}function ul(e,t){if(e!=null){if(vo(e))return ol(e,t);if(mo(e))return sl(e,t);if(yo(e))return il(e,t);if(Do(e))return To(e,t);if(Io(e))return al(e,t);if(bo(e))return cl(e,t)}throw Eo(e)}function H(e,t){return t?ul(e,t):G(e)}function C(...e){let t=gt(e);return H(e,t)}function sn(e,t){let n=b(e)?e:()=>e,r=o=>o.error(n());return new P(t?o=>t.schedule(r,0,o):r)}function Qs(e){return!!e&&(e instanceof P||b(e.lift)&&b(e.subscribe))}var Je=Xt(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function x(e,t){return k((n,r)=>{let o=0;n.subscribe(O(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Bg}=Array;function Ug(e,t){return Bg(t)?e(...t):e(t)}function _o(e){return x(t=>Ug(e,t))}var{isArray:$g}=Array,{getPrototypeOf:Hg,prototype:zg,keys:qg}=Object;function No(e){if(e.length===1){let t=e[0];if($g(t))return{args:t,keys:null};if(Gg(t)){let n=qg(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Gg(e){return e&&typeof e=="object"&&Hg(e)===zg}function Ro(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function xo(...e){let t=gt(e),n=go(e),{args:r,keys:o}=No(e);if(r.length===0)return H([],t);let i=new P(Wg(r,t,o?s=>Ro(o,s):Ee));return n?i.pipe(_o(n)):i}function Wg(e,t,n=Ee){return r=>{ll(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ll(t,()=>{let u=H(e[c],t),l=!1;u.subscribe(O(r,f=>{i[c]=f,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ll(e,t,n){e?he(n,e,t):t()}function dl(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,f=!1,h=()=>{f&&!c.length&&!u&&t.complete()},d=m=>u<r?p(m):c.push(m),p=m=>{i&&t.next(m),u++;let D=!1;G(n(m,l++)).subscribe(O(t,R=>{o?.(R),i?d(R):t.next(R)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let R=c.shift();s?he(t,s,()=>p(R)):p(R)}h()}catch(R){t.error(R)}}))};return e.subscribe(O(t,d,()=>{f=!0,h()})),()=>{a?.()}}function Q(e,t,n=1/0){return b(t)?Q((r,o)=>x((i,s)=>t(r,i,o,s))(G(e(r,o))),n):(typeof t=="number"&&(n=t),k((r,o)=>dl(r,o,e,n)))}function fl(e=1/0){return Q(Ee,e)}function hl(){return fl(1)}function an(...e){return hl()(H(e,gt(e)))}function Ao(e){return new P(t=>{G(e()).subscribe(t)})}function Zg(...e){let t=go(e),{args:n,keys:r}=No(e),o=new P(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let f=!1;G(n[l]).subscribe(O(i,h=>{f||(f=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!f)&&(u||i.next(r?Ro(r,a):a),i.complete())}))}});return t?o.pipe(_o(t)):o}function we(e,t){return k((n,r)=>{let o=0;n.subscribe(O(r,i=>e.call(t,i,o++)&&r.next(i)))})}function mt(e){return k((t,n)=>{let r=null,o=!1,i;r=t.subscribe(O(n,void 0,void 0,s=>{i=G(e(s,mt(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function pl(e,t,n,r,o){return(i,s)=>{let a=n,c=t,u=0;i.subscribe(O(s,l=>{let f=u++;c=a?e(c,l,f):(a=!0,l),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function yt(e,t){return b(t)?Q(e,t,1):Q(e,1)}function vt(e){return k((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function et(e){return e<=0?()=>fe:k((t,n)=>{let r=0;t.subscribe(O(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Oo(e=Yg){return k((t,n)=>{let r=!1;t.subscribe(O(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Yg(){return new Je}function At(e){return k((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function tt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?we((o,i)=>e(o,i,r)):Ee,et(1),n?vt(t):Oo(()=>new Je))}function cn(e){return e<=0?()=>fe:k((t,n)=>{let r=[];t.subscribe(O(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 Ks(e,t){let n=arguments.length>=2;return r=>r.pipe(e?we((o,i)=>e(o,i,r)):Ee,cn(1),n?vt(t):Oo(()=>new Je))}function Xs(e,t){return k(pl(e,t,arguments.length>=2,!0))}function Js(...e){let t=gt(e);return k((n,r)=>{(t?an(e,n,t):an(e,n)).subscribe(r)})}function Ie(e,t){return k((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(O(r,c=>{o?.unsubscribe();let u=0,l=i++;G(e(c,l)).subscribe(o=O(r,f=>r.next(t?t(c,f,l,u++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ea(e){return k((t,n)=>{G(e).subscribe(O(n,()=>n.complete(),Qn)),!n.closed&&t.subscribe(n)})}function oe(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?k((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(O(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ee}var rd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",v=class extends Error{code;constructor(t,n){super(Kg(t,n)),this.code=t}};function Qg(e){return`NG0${Math.abs(e)}`}function Kg(e,t){return`${Qg(e)}${t?": "+t:""}`}var od=Symbol("InputSignalNode#UNSET"),Xg=$(y({},ao),{transformFn:void 0,applyValueToInputSignal(e,t){Wn(e,t)}});function id(e,t){let n=Object.create(Xg);n.value=e,n.transformFn=t?.transform;function r(){if(Gn(n),n.value===od){let o=null;throw new v(-950,o)}return n.value}return r[Me]=n,r}function pi(e){return{toString:e}.toString()}var kt=globalThis;function V(e){for(let t in e)if(e[t]===V)return t;throw Error("Could not find renamed property on target object.")}function Jg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function me(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(me).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 gl(e,t){return e?t?`${e} ${t}`:e:t||""}var em=V({__forward_ref__:V});function sd(e){return e.__forward_ref__=sd,e.toString=function(){return me(this())},e}function ae(e){return ad(e)?e():e}function ad(e){return typeof e=="function"&&e.hasOwnProperty(em)&&e.__forward_ref__===sd}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function In(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return ml(e,ud)||ml(e,ld)}function cd(e){return gi(e)!==null}function ml(e,t){return e.hasOwnProperty(t)?e[t]:null}function tm(e){let t=e&&(e[ud]||e[ld]);return t||null}function yl(e){return e&&(e.hasOwnProperty(vl)||e.hasOwnProperty(nm))?e[vl]:null}var ud=V({\u0275prov:V}),vl=V({\u0275inj:V}),ld=V({ngInjectableDef:V}),nm=V({ngInjectorDef:V}),E=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=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dd(e){return e&&!!e.\u0275providers}var rm=V({\u0275cmp:V}),om=V({\u0275dir:V}),im=V({\u0275pipe:V}),sm=V({\u0275mod:V}),Uo=V({\u0275fac:V}),er=V({__NG_ELEMENT_ID__:V}),Dl=V({__NG_ENV_ID__:V});function nt(e){return typeof e=="string"?e:e==null?"":String(e)}function am(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():nt(e)}function fd(e,t){throw new v(-200,e)}function oc(e,t){throw new v(-201,!1)}var T=(function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e})(T||{}),ya;function hd(){return ya}function pe(e){let t=ya;return ya=e,t}function pd(e,t,n){let r=gi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;oc(e,"Injector")}var cm={},Pt=cm,um="__NG_DI_FLAG__",$o=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?co:Pt,r)}},Ho="ngTempTokenPath",lm="ngTokenPath",dm=/\n/gm,fm="\u0275",El="__source";function hm(e,t=T.Default){if(Zn()===void 0)throw new v(-203,!1);if(Zn()===null)return pd(e,void 0,t);{let n=Zn(),r;return n instanceof $o?r=n.injector:r=n,r.get(e,t&T.Optional?null:void 0,t)}}function I(e,t=T.Default){return(hd()||hm)(ae(e),t)}function g(e,t=T.Default){return I(e,mi(t))}function mi(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function va(e){let t=[];for(let n=0;n<e.length;n++){let r=ae(e[n]);if(Array.isArray(r)){if(r.length===0)throw new v(900,!1);let o,i=T.Default;for(let s=0;s<r.length;s++){let a=r[s],c=pm(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(I(o,i))}else t.push(I(r))}return t}function pm(e){return e[um]}function gm(e,t,n,r){let o=e[Ho];throw t[El]&&o.unshift(t[El]),e.message=mm(`
5
+ `+e.message,o,n,r),e[lm]=o,e[Ho]=null,e}function mm(e,t,n,r=null){e=e&&e.charAt(0)===`
6
+ `&&e.charAt(1)==fm?e.slice(2):e;let o=me(t);if(Array.isArray(t))o=t.map(me).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):me(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(dm,`
7
+ `)}`}function Lt(e,t){let n=e.hasOwnProperty(Uo);return n?e[Uo]:null}function ic(e,t){e.forEach(n=>Array.isArray(n)?ic(n,t):t(n))}function gd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ym(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 vm(e,t,n){let r=fr(e,t);return r>=0?e[r|1]=n:(r=~r,ym(e,r,t,n)),r}function ta(e,t){let n=fr(e,t);if(n>=0)return e[n|1]}function fr(e,t){return Dm(e,t,1)}function Dm(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 jt={},Te=[],tr=new E(""),md=new E("",-1),yd=new E(""),qo=class{get(t,n=Pt){if(n===Pt){let r=new Error(`NullInjectorError: No provider for ${me(t)}!`);throw r.name="NullInjectorError",r}return n}};function vd(e,t){let n=e[sm]||null;if(!n&&t===!0)throw new Error(`Type ${me(e)} does not have '\u0275mod' property.`);return n}function hn(e){return e[rm]||null}function Em(e){return e[om]||null}function wm(e){return e[im]||null}function hr(e){return{\u0275providers:e}}function Im(...e){return{\u0275providers:Dd(!0,e),\u0275fromNgModule:!0}}function Dd(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ic(t,s=>{let a=s;Da(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ed(o,i),n}function Ed(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];sc(o,i=>{t(i,r)})}}function Da(e,t,n,r){if(e=ae(e),!e)return!1;let o=null,i=yl(e),s=!i&&hn(e);if(!i&&!s){let c=e.ngModule;if(i=yl(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 u of c)Da(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;ic(i.imports,l=>{Da(l,t,n,r)&&(u||=[],u.push(l))}),u!==void 0&&Ed(u,t)}if(!a){let u=Lt(o)||(()=>new o);t({provide:o,useFactory:u,deps:Te},o),t({provide:yd,useValue:o,multi:!0},o),t({provide:tr,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;sc(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function sc(e,t){for(let n of e)dd(n)&&(n=n.\u0275providers),Array.isArray(n)?sc(n,t):t(n)}var Cm=V({provide:String,useValue:V});function wd(e){return e!==null&&typeof e=="object"&&Cm in e}function bm(e){return!!(e&&e.useExisting)}function Sm(e){return!!(e&&e.useFactory)}function pn(e){return typeof e=="function"}function Mm(e){return!!e.useClass}var yi=new E(""),Fo={},wl={},na;function ac(){return na===void 0&&(na=new qo),na}var ue=class{},nr=class extends ue{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,wa(t,s=>this.processProvider(s)),this.records.set(md,un(void 0,this)),o.has("environment")&&this.records.set(ue,un(void 0,this));let i=this.records.get(yi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(yd,Te,T.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?co:Pt,r)}destroy(){Xn(this),this._destroyed=!0;let t=_(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(),_(t)}}onDestroy(t){return Xn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Xn(this);let n=Xe(this),r=pe(void 0),o;try{return t()}finally{Xe(n),pe(r)}}get(t,n=Pt,r=T.Default){if(Xn(this),t.hasOwnProperty(Dl))return t[Dl](this);r=mi(r);let o,i=Xe(this),s=pe(void 0);try{if(!(r&T.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=xm(t)&&gi(t);u&&this.injectableDefInScope(u)?c=un(Ea(t),Fo):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&T.Self?ac():this.parent;return n=r&T.Optional&&n===Pt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ho]=a[Ho]||[]).unshift(me(t)),i)throw a;return gm(a,t,"R3InjectorError",this.source)}else throw a}finally{pe(s),Xe(i)}}resolveInjectorInitializers(){let t=_(null),n=Xe(this),r=pe(void 0),o;try{let i=this.get(tr,Te,T.Self);for(let s of i)s()}finally{Xe(n),pe(r),_(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(me(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ae(t);let n=pn(t)?t:ae(t&&t.provide),r=_m(t);if(!pn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=un(void 0,Fo,!0),o.factory=()=>va(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=_(null);try{return n.value===wl?fd(me(t)):n.value===Fo&&(n.value=wl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Rm(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{_(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ae(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 Ea(e){let t=gi(e),n=t!==null?t.factory:Lt(e);if(n!==null)return n;if(e instanceof E)throw new v(204,!1);if(e instanceof Function)return Tm(e);throw new v(204,!1)}function Tm(e){if(e.length>0)throw new v(204,!1);let n=tm(e);return n!==null?()=>n.factory(e):()=>new e}function _m(e){if(wd(e))return un(void 0,e.useValue);{let t=Id(e);return un(t,Fo)}}function Id(e,t,n){let r;if(pn(e)){let o=ae(e);return Lt(o)||Ea(o)}else if(wd(e))r=()=>ae(e.useValue);else if(Sm(e))r=()=>e.useFactory(...va(e.deps||[]));else if(bm(e))r=(o,i)=>I(ae(e.useExisting),i!==void 0&&i&T.Optional?T.Optional:void 0);else{let o=ae(e&&(e.useClass||e.provide));if(Nm(e))r=()=>new o(...va(e.deps));else return Lt(o)||Ea(o)}return r}function Xn(e){if(e.destroyed)throw new v(205,!1)}function un(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Nm(e){return!!e.deps}function Rm(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xm(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function wa(e,t){for(let n of e)Array.isArray(n)?wa(n,t):n&&dd(n)?wa(n.\u0275providers,t):t(n)}function Ce(e,t){let n;e instanceof nr?(Xn(e),n=e):n=new $o(e);let r,o=Xe(n),i=pe(void 0);try{return t()}finally{Xe(o),pe(i)}}function Am(){return hd()!==void 0||Zn()!=null}function Om(e){return typeof e=="function"}var st=0,N=1,S=2,le=3,Pe=4,je=5,rr=6,Go=7,K=8,gn=9,rt=10,J=11,or=12,Il=13,Cn=14,Fe=15,mn=16,ln=17,yn=18,vi=19,Cd=20,Dt=21,ra=22,Wo=23,_e=24,oa=25,ye=26,bd=1;var Vt=7,Zo=8,Yo=9,ce=10;function Et(e){return Array.isArray(e)&&typeof e[bd]=="object"}function at(e){return Array.isArray(e)&&e[bd]===!0}function Sd(e){return(e.flags&4)!==0}function bn(e){return e.componentOffset>-1}function cc(e){return(e.flags&1)===1}function He(e){return!!e.template}function Qo(e){return(e[S]&512)!==0}function Sn(e){return(e[S]&256)===256}var Ia=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Md(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var pr=(()=>{let e=()=>Td;return e.ngInherit=!0,e})();function Td(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pm),km}function km(){let e=Nd(this),t=e?.current;if(t){let n=e.previous;if(n===jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Pm(e,t,n,r,o){let i=this.declaredInputs[r],s=Nd(e)||Fm(e,{previous:jt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ia(u&&u.currentValue,n,c===jt),Md(e,t,o,n)}var _d="__ngSimpleChanges__";function Nd(e){return e[_d]||null}function Fm(e,t){return e[_d]=t}var Cl=null;var B=function(e,t=null,n){Cl?.(e,t,n)},Lm="svg",jm="math";function ze(e){for(;Array.isArray(e);)e=e[st];return e}function Rd(e,t){return ze(t[e])}function We(e,t){return ze(t[e.index])}function uc(e,t){return e.data[t]}function Vm(e,t){return e[t]}function Bm(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function qe(e,t){let n=t[e];return Et(n)?n:n[st]}function lc(e){return(e[S]&128)===128}function Um(e){return at(e[le])}function vn(e,t){return t==null?null:e[t]}function xd(e){e[ln]=0}function Ad(e){e[S]&1024||(e[S]|=1024,lc(e)&&Ei(e))}function $m(e,t){for(;e>0;)t=t[Cn],e--;return t}function Di(e){return!!(e[S]&9216||e[_e]?.dirty)}function Ca(e){e[rt].changeDetectionScheduler?.notify(8),e[S]&64&&(e[S]|=1024),Di(e)&&Ei(e)}function Ei(e){e[rt].changeDetectionScheduler?.notify(0);let t=Bt(e);for(;t!==null&&!(t[S]&8192||(t[S]|=8192,!lc(t)));)t=Bt(t)}function Od(e,t){if(Sn(e))throw new v(911,!1);e[Dt]===null&&(e[Dt]=[]),e[Dt].push(t)}function Hm(e,t){if(e[Dt]===null)return;let n=e[Dt].indexOf(t);n!==-1&&e[Dt].splice(n,1)}function Bt(e){let t=e[le];return at(t)?t[le]:t}function kd(e){return e[Go]??=[]}function Pd(e){return e.cleanup??=[]}var A={lFrame:qd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ba=!1;function zm(){return A.lFrame.elementDepthCount}function qm(){A.lFrame.elementDepthCount++}function Gm(){A.lFrame.elementDepthCount--}function Fd(){return A.bindingsEnabled}function Wm(){return A.skipHydrationRootTNode!==null}function Zm(e){return A.skipHydrationRootTNode===e}function Ym(){A.skipHydrationRootTNode=null}function F(){return A.lFrame.lView}function de(){return A.lFrame.tView}function sN(e){return A.lFrame.contextLView=e,e[K]}function aN(e){return A.lFrame.contextLView=null,e}function Ne(){let e=Ld();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ld(){return A.lFrame.currentTNode}function Qm(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gr(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function jd(){return A.lFrame.isParent}function Km(){A.lFrame.isParent=!1}function Vd(){return ba}function bl(e){let t=ba;return ba=e,t}function Bd(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ud(){return A.lFrame.bindingIndex}function Xm(e){return A.lFrame.bindingIndex=e}function Mn(){return A.lFrame.bindingIndex++}function dc(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Jm(){return A.lFrame.inI18n}function ey(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,Sa(t)}function ty(){return A.lFrame.currentDirectiveIndex}function Sa(e){A.lFrame.currentDirectiveIndex=e}function ny(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $d(e){A.lFrame.currentQueryIndex=e}function ry(e){let t=e[N];return t.type===2?t.declTNode:t.type===1?e[je]:null}function Hd(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=ry(i),o===null||(i=i[Cn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=zd();return r.currentTNode=t,r.lView=e,!0}function fc(e){let t=zd(),n=e[N];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function zd(){let e=A.lFrame,t=e===null?null:e.child;return t===null?qd(e):t}function qd(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 Gd(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wd=Gd;function hc(){let e=Gd();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 oy(e){return(A.lFrame.contextLView=$m(e,A.lFrame.contextLView))[K]}function ct(){return A.lFrame.selectedIndex}function Ut(e){A.lFrame.selectedIndex=e}function pc(){let e=A.lFrame;return uc(e.tView,e.selectedIndex)}function iy(){return A.lFrame.currentNamespace}var Zd=!0;function gc(){return Zd}function mc(e){Zd=e}function sy(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Td(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 Yd(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:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Lo(e,t,n){Qd(e,t,3,n)}function jo(e,t,n,r){(e[S]&3)===n&&Qd(e,t,n,r)}function ia(e,t){let n=e[S];(n&3)===t&&(n&=16383,n+=1,e[S]=n)}function Qd(e,t,n,r){let o=r!==void 0?e[ln]&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[ln]+=65536),(a<i||i==-1)&&(ay(e,n,t,c),e[ln]=(e[ln]&4294901760)+c+2),c++}function Sl(e,t){B(4,e,t);let n=_(null);try{t.call(e)}finally{_(n),B(5,e,t)}}function ay(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S]>>14<e[ln]>>16&&(e[S]&3)===t&&(e[S]+=16384,Sl(a,i)):Sl(a,i)}var fn=-1,$t=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function cy(e){return(e.flags&8)!==0}function uy(e){return(e.flags&16)!==0}function ly(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];dy(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 dy(e){return e.charCodeAt(0)===64}function ir(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?Ml(e,n,o,null,t[++r]):Ml(e,n,o,null,null))}}return e}function Ml(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 Xd(e){return e!==fn}function Ko(e){return e&32767}function fy(e){return e>>16}function Xo(e,t){let n=fy(e),r=t;for(;n>0;)r=r[Cn],n--;return r}var Ma=!0;function Jo(e){let t=Ma;return Ma=e,t}var hy=256,Jd=hy-1,ef=5,py=0,$e={};function gy(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(er)&&(r=n[er]),r==null&&(r=n[er]=py++);let o=r&Jd,i=1<<o;t.data[e+(o>>ef)]|=i}function ei(e,t){let n=tf(e,t);if(n!==-1)return n;let r=t[N];r.firstCreatePass&&(e.injectorIndex=t.length,sa(r.data,e),sa(t,null),sa(r.blueprint,null));let o=yc(e,t),i=e.injectorIndex;if(Xd(o)){let s=Ko(o),a=Xo(o,t),c=a[N].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function sa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function tf(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function yc(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=af(o),r===null)return fn;if(n++,o=o[Cn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn}function Ta(e,t,n){gy(e,t,n)}function my(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 nf(e,t,n){if(n&T.Optional||e!==void 0)return e;oc(t,"NodeInjector")}function rf(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),(n&(T.Self|T.Host))===0){let o=e[gn],i=pe(void 0);try{return o?o.get(t,r,n&T.Optional):pd(t,r,n&T.Optional)}finally{pe(i)}}return nf(r,t,n)}function of(e,t,n,r=T.Default,o){if(e!==null){if(t[S]&2048&&!(r&T.Self)){let s=wy(e,t,n,r,$e);if(s!==$e)return s}let i=sf(e,t,n,r,$e);if(i!==$e)return i}return rf(t,n,r,o)}function sf(e,t,n,r,o){let i=Dy(n);if(typeof i=="function"){if(!Hd(t,e,r))return r&T.Host?nf(o,n,r):rf(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))oc(n);else return s}finally{Wd()}}else if(typeof i=="number"){let s=null,a=tf(e,t),c=fn,u=r&T.Host?t[Fe][je]:null;for((a===-1||r&T.SkipSelf)&&(c=a===-1?yc(e,t):t[a+8],c===fn||!_l(r,!1)?a=-1:(s=t[N],a=Ko(c),t=Xo(c,t)));a!==-1;){let l=t[N];if(Tl(i,a,l.data)){let f=yy(a,t,n,s,r,u);if(f!==$e)return f}c=t[a+8],c!==fn&&_l(r,t[N].data[a+8]===u)&&Tl(i,a,t)?(s=l,a=Ko(c),t=Xo(c,t)):a=-1}}return o}function yy(e,t,n,r,o,i){let s=t[N],a=s.data[e+8],c=r==null?bn(a)&&Ma:r!=s&&(a.type&3)!==0,u=o&T.Host&&i===a,l=vy(a,s,n,c,u);return l!==null?ti(t,s,l,a,o):$e}function vy(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,h=o?a+l:u;for(let d=f;d<h;d++){let p=s[d];if(d<c&&n===p||d>=c&&p.type===n)return d}if(o){let d=s[c];if(d&&He(d)&&d.type===n)return c}return null}function ti(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof $t){let a=i;a.resolving&&fd(am(s[n]));let c=Jo(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?pe(a.injectImpl):null,f=Hd(e,r,T.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&sy(n,s[n],t)}finally{l!==null&&pe(l),Jo(c),a.resolving=!1,Wd()}}return i}function Dy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(er)?e[er]:void 0;return typeof t=="number"?t>=0?t&Jd:Ey:t}function Tl(e,t,n){let r=1<<e;return!!(n[t+(e>>ef)]&r)}function _l(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var Ft=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return of(this._tNode,this._lView,t,mi(r),n)}};function Ey(){return new Ft(Ne(),F())}function vc(e){return pi(()=>{let t=e.prototype.constructor,n=t[Uo]||_a(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Uo]||_a(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function _a(e){return ad(e)?()=>{let t=_a(ae(e));return t&&t()}:Lt(e)}function wy(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S]&2048&&!Qo(s);){let a=sf(i,s,n,r|T.Self,$e);if(a!==$e)return a;let c=i.parent;if(!c){let u=s[Cd];if(u){let l=u.get(n,$e,r);if(l!==$e)return l}c=af(s),s=s[Cn]}i=c}return o}function af(e){let t=e[N],n=t.type;return n===2?t.declTNode:n===1?e[je]:null}function Dc(e){return my(Ne(),e)}function Nl(e,t=null,n=null,r){let o=cf(e,t,n,r);return o.resolveInjectorInitializers(),o}function cf(e,t=null,n=null,r,o=new Set){let i=[n||Te,Im(e)];return r=r||(typeof e=="object"?void 0:me(e)),new nr(i,t||ac(),r||null,o)}var wt=class e{static THROW_IF_NOT_FOUND=Pt;static NULL=new qo;static create(t,n){if(Array.isArray(t))return Nl({name:""},n,t,"");{let r=t.name??"";return Nl({name:r},t.parent,t.providers,r)}}static \u0275prov=w({token:e,providedIn:"any",factory:()=>I(md)});static __NG_ELEMENT_ID__=-1};var Iy=new E("");Iy.__NG_ELEMENT_ID__=e=>{let t=Ne();if(t===null)throw new v(204,!1);if(t.type&2)return t.value;if(e&T.Optional)return null;throw new v(204,!1)};var uf=!1,mr=(()=>{class e{static __NG_ELEMENT_ID__=Cy;static __NG_ENV_ID__=n=>n}return e})(),Na=class extends mr{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return Sn(n)?(t(),()=>{}):(Od(n,t),()=>Hm(n,t))}};function Cy(){return new Na(F())}var sr=class{},Ec=new E("",{providedIn:"root",factory:()=>!1});var lf=new E(""),df=new E(""),It=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new re(!1);add(){this._hasPendingTasks||this.hasPendingTasks.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.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var Ra=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Am()&&(this.destroyRef=g(mr,{optional:!0})??void 0,this.pendingTasks=g(It,{optional:!0})??void 0)}emit(t){let n=_(null);try{super.next(t)}finally{_(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 q&&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)}})}}},ge=Ra;function ni(...e){}function ff(e){let t,n;function r(){e=ni;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 Rl(e){return queueMicrotask(()=>e()),()=>{e=ni}}var wc="isAngularZone",ri=wc+"_ID",by=0,X=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ge(!1);onMicrotaskEmpty=new ge(!1);onStable=new ge(!1);onError=new ge(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=uf}=t;if(typeof Zone>"u")throw new v(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,Ty(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(wc)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new v(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new v(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,Sy,ni,ni);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)}},Sy={};function Ic(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 My(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){ff(()=>{e.callbackScheduled=!1,xa(e),e.isCheckStableRunning=!0,Ic(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),xa(e)}function Ty(e){let t=()=>{My(e)},n=by++;e._inner=e._inner.fork({name:"angular",properties:{[wc]:!0,[ri]:n,[ri+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(_y(c))return r.invokeTask(i,s,a,c);try{return xl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Al(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return xl(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Ny(c)&&t(),Al(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,xa(e),Ic(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 xa(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function xl(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Al(e){e._nesting--,Ic(e)}var Aa=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ge;onMicrotaskEmpty=new ge;onStable=new ge;onError=new ge;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 _y(e){return hf(e,"__ignore_ng_zone__")}function Ny(e){return hf(e,"__scheduler_tick__")}function hf(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var ot=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Ry=new E("",{providedIn:"root",factory:()=>{let e=g(X),t=g(ot);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ol(e,t){return id(e,t)}function xy(e){return id(od,e)}var pf=(Ol.required=xy,Ol);function Ay(){return Cc(Ne(),F())}function Cc(e,t){return new yr(We(e,t))}var yr=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ay}return e})();function Oy(e){return typeof e=="function"&&e[Me]!==void 0}function cN(e,t){let n=Ls(e,t?.equal),r=n[Me];return n.set=o=>Wn(r,o),n.update=o=>js(r,o),n.asReadonly=ky.bind(n),n}function ky(){let e=this[Me];if(e.readonlyFn===void 0){let t=()=>this();t[Me]=e,e.readonlyFn=t}return e.readonlyFn}function gf(e){return Oy(e)&&typeof e.set=="function"}function mf(e){return(e.flags&128)===128}var yf=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(yf||{}),vf=new Map,Py=0;function Fy(){return Py++}function Ly(e){vf.set(e[vi],e)}function Oa(e){vf.delete(e[vi])}var kl="__ngContext__";function vr(e,t){Et(t)?(e[kl]=t[vi],Ly(t)):e[kl]=t}function Df(e){return wf(e[or])}function Ef(e){return wf(e[Pe])}function wf(e){for(;e!==null&&!at(e);)e=e[Pe];return e}var ka;function If(e){ka=e}function jy(){if(ka!==void 0)return ka;if(typeof document<"u")return document;throw new v(210,!1)}var bc=new E("",{providedIn:"root",factory:()=>Vy}),Vy="ng",Sc=new E(""),Dr=new E("",{providedIn:"platform",factory:()=>"unknown"});var Mc=new E("",{providedIn:"root",factory:()=>jy().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var By="h",Uy="b";var Cf=!1,$y=new E("",{providedIn:"root",factory:()=>Cf});var bf=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(bf||{}),wi=new E(""),Pl=new Set;function Er(e){Pl.has(e)||(Pl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Hy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:e,providedIn:"root",factory:()=>new e})}return e})();var zy=(e,t,n,r)=>{};function qy(e,t,n,r){zy(e,t,n,r)}var Gy=()=>null;function Sf(e,t,n=!1){return Gy(e,t,n)}function Mf(e,t){let n=e.contentQueries;if(n!==null){let r=_(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];$d(i),a.contentQueries(2,t[s],s)}}}finally{_(r)}}}function Pa(e,t,n){$d(0);let r=_(null);try{t(e,n)}finally{_(r)}}function Tf(e,t,n){if(Sd(t)){let r=_(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{_(r)}}}var Ge=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Ge||{});var ko;function Wy(){if(ko===void 0&&(ko=null,kt.trustedTypes))try{ko=kt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ko}function Fl(e){return Wy()?.createScriptURL(e)||e}var oi=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rd})`}};function Tc(e){return e instanceof oi?e.changingThisBreaksApplicationSecurity:e}function _f(e,t){let n=Zy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${rd})`)}return n===t}function Zy(e){return e instanceof oi&&e.getTypeName()||null}var Yy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Qy(e){return e=String(e),e.match(Yy)?e:"unsafe:"+e}function Ky(e,t){return e.createText(t)}function Xy(e,t,n){e.setValue(t,n)}function Nf(e,t,n){return e.createElement(t,n)}function ii(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Rf(e,t,n){e.appendChild(t,n)}function Ll(e,t,n,r,o){r!==null?ii(e,t,n,r,o):Rf(e,t,n)}function Jy(e,t,n){e.removeChild(null,t,n)}function ev(e,t,n){e.setAttribute(t,"style",n)}function tv(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function xf(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&ly(e,t,r),o!==null&&tv(e,t,o),i!==null&&ev(e,t,i)}var _c=(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})(_c||{});function nv(e){let t=Of();return t?t.sanitize(_c.URL,e)||"":_f(e,"URL")?Tc(e):Qy(nt(e))}function rv(e){let t=Of();if(t)return Fl(t.sanitize(_c.RESOURCE_URL,e)||"");if(_f(e,"ResourceURL"))return Fl(Tc(e));throw new v(904,!1)}var ov=new Set(["embed","frame","iframe","media","script"]),iv=new Set(["base","link","script"]);function sv(e,t){return t==="src"&&ov.has(e)||t==="href"&&iv.has(e)||t==="xlink:href"&&e==="script"?rv:nv}function Af(e,t,n){return sv(t,n)(e)}function av(e){if(e.toLowerCase().startsWith("on"))throw new v(306,!1)}function Of(){let e=F();return e&&e[rt].sanitizer}function kf(e){return e instanceof Function?e():e}function cv(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 Pf="ng-template";function uv(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&cv(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(Nc(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 Nc(e){return e.type===4&&e.value!==Pf}function lv(e,t,n){let r=e.type===4&&!n?Pf:e.value;return t===r}function dv(e,t,n){let r=4,o=e.attrs,i=o!==null?pv(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!ke(r)&&!ke(c))return!1;if(s&&ke(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!lv(e,c,n)||c===""&&t.length===1){if(ke(r))return!1;s=!0}}else if(r&8){if(o===null||!uv(e,o,c,n)){if(ke(r))return!1;s=!0}}else{let u=t[++a],l=fv(c,o,Nc(e),n);if(l===-1){if(ke(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(ke(r))return!1;s=!0}}}}return ke(r)||s}function ke(e){return(e&1)===0}function fv(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 gv(t,e)}function hv(e,t,n=!1){for(let r=0;r<t.length;r++)if(dv(e,t[r],n))return!0;return!1}function pv(e){for(let t=0;t<e.length;t++){let n=e[t];if(Kd(n))return t}return e.length}function gv(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 jl(e,t){return e?":not("+t.trim()+")":t}function mv(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!==""&&!ke(s)&&(t+=jl(i,o),o=""),r=s,i=i||!ke(r);n++}return o!==""&&(t+=jl(i,o)),t}function yv(e){return e.map(mv).join(",")}function vv(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(!ke(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var Re={};function Rc(e,t,n,r,o,i,s,a,c,u,l){let f=ye+r,h=f+o,d=Dv(f,h),p=typeof u=="function"?u():u;return d[N]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:h,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:p,incompleteFirstPass:!1,ssrId:l}}function Dv(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Re);return n}function Ev(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Rc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function xc(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[st]=o,f[S]=r|4|128|8|64|1024,(u!==null||e&&e[S]&2048)&&(f[S]|=2048),xd(f),f[le]=f[Cn]=e,f[K]=n,f[rt]=s||e&&e[rt],f[J]=a||e&&e[J],f[gn]=c||e&&e[gn]||null,f[je]=i,f[vi]=Fy(),f[rr]=l,f[Cd]=u,f[Fe]=t.type==2?e[Fe]:f,f}function wv(e,t,n){let r=We(t,e),o=Ev(n),i=e[rt].rendererFactory,s=Ac(e,xc(e,o,null,Ff(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Ff(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Lf(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 Ac(e,t){return e[or]?e[Il][Pe]=t:e[or]=t,e[Il]=t,t}function uN(e=1){jf(de(),F(),ct()+e,!1)}function jf(e,t,n,r){if(!r)if((t[S]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Lo(t,i,n)}else{let i=e.preOrderHooks;i!==null&&jo(t,i,0,n)}Ut(n)}var Ii=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ii||{});function Fa(e,t,n,r){let o=_(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ii.SignalBased)!==0&&(c=t[i][Me]),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):Md(t,c,i,r)}finally{_(o)}}function Vf(e,t,n,r,o){let i=ct(),s=r&2;try{Ut(-1),s&&t.length>ye&&jf(e,t,ye,!1),B(s?2:0,o),n(r,o)}finally{Ut(i),B(s?3:1,o)}}function Oc(e,t,n){Tv(e,t,n),(n.flags&64)===64&&_v(e,t,n)}function Bf(e,t,n=We){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 Iv(e,t,n,r){let i=r.get($y,Cf)||n===Ge.ShadowDom,s=e.selectRootElement(t,i);return Cv(s),s}function Cv(e){bv(e)}var bv=()=>null;function Sv(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Uf(e,t,n,r,o,i,s,a){if(!a&&kc(t,e,n,r,o)){bn(t)&&Mv(n,t.index);return}if(t.type&3){let c=We(t,n);r=Sv(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function Mv(e,t){let n=qe(t,e);n[S]&16||(n[S]|=64)}function Tv(e,t,n){let r=n.directiveStart,o=n.directiveEnd;bn(n)&&wv(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||ei(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ti(t,e,s,n);if(vr(c,t),i!==null&&Av(t,s-r,c,a,n,i),He(a)){let u=qe(n.index,t);u[K]=ti(t,e,s,n)}}}function _v(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=ty();try{Ut(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Sa(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Nv(c,u)}}finally{Ut(-1),Sa(s)}}function Nv(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function $f(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];hv(t,i.selectors,!1)&&(r??=[],He(i)?r.unshift(i):r.push(i))}return r}function Rv(e,t,n,r,o,i){t[N].firstUpdatePass&&av(n);let s=We(e,t);xv(t[J],s,i,e.value,n,r,o)}function xv(e,t,n,r,o,i,s){if(i==null)e.removeAttribute(t,o,n);else{let a=s==null?nt(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}function Av(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Fa(r,n,c,u)}}function Ov(e,t){let n=e[gn],r=n?n.get(ot,null):null;r&&r.handleError(t)}function kc(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],f=t.data[u];Fa(f,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Fa(l,u,r,o),a=!0}return a}function kv(e,t){let n=qe(t,e),r=n[N];Pv(r,n);let o=n[st];o!==null&&n[rr]===null&&(n[rr]=Sf(o,n[gn])),B(18),Pc(r,n,n[K]),B(19,n[K])}function Pv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Pc(e,t,n){fc(t);try{let r=e.viewQuery;r!==null&&Pa(1,r,n);let o=e.template;o!==null&&Vf(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[yn]?.finishViewCreation(e),e.staticContentQueries&&Mf(e,t),e.staticViewQueries&&Pa(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[S]&=-5,hc()}}function Fv(e,t){for(let n=0;n<t.length;n++)kv(e,t[n])}function Fc(e,t,n,r){let o=_(null);try{let i=t.tView,a=e[S]&4096?4096:16,c=xc(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[mn]=u;let l=e[yn];return l!==null&&(c[yn]=l.createEmbeddedView(i)),Pc(i,c,n),c}finally{_(o)}}function ar(e,t){return!t||t.firstChild===null||mf(e)}var Lv;function Lc(e,t){return Lv(e,t)}var it=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(it||{});function Hf(e){return(e.flags&32)===32}function dn(e,t,n,r,o){if(r!=null){let i,s=!1;at(r)?i=r:Et(r)&&(s=!0,r=r[st]);let a=ze(r);e===0&&n!==null?o==null?Rf(t,n,a):ii(t,n,a,o||null,!0):e===1&&n!==null?ii(t,n,a,o||null,!0):e===2?Jy(t,a,s):e===3&&t.destroyNode(a),i!=null&&Yv(t,e,i,n,o)}}function jv(e,t){zf(e,t),t[st]=null,t[je]=null}function Vv(e,t,n,r,o,i){r[st]=o,r[je]=t,bi(e,r,n,1,o,i)}function zf(e,t){t[rt].changeDetectionScheduler?.notify(9),bi(e,t,t[J],2,null,null)}function Bv(e){let t=e[or];if(!t)return aa(e[N],e);for(;t;){let n=null;if(Et(t))n=t[or];else{let r=t[ce];r&&(n=r)}if(!n){for(;t&&!t[Pe]&&t!==e;)Et(t)&&aa(t[N],t),t=t[le];t===null&&(t=e),Et(t)&&aa(t[N],t),n=t&&t[Pe]}t=n}}function jc(e,t){let n=e[Yo],r=n.indexOf(t);n.splice(r,1)}function Ci(e,t){if(Sn(t))return;let n=t[J];n.destroyNode&&bi(e,t,n,3,null,null),Bv(t)}function aa(e,t){if(Sn(t))return;let n=_(null);try{t[S]&=-129,t[S]|=256,t[_e]&&ks(t[_e]),$v(e,t),Uv(e,t),t[N].type===1&&t[J].destroy();let r=t[mn];if(r!==null&&at(t[le])){r!==t[le]&&jc(r,t);let o=t[yn];o!==null&&o.detachView(e)}Oa(t)}finally{_(n)}}function Uv(e,t){let n=e.cleanup,r=t[Go];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[Go]=null);let o=t[Dt];if(o!==null){t[Dt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Wo];if(i!==null){t[Wo]=null;for(let s of i)s.destroy()}}function $v(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 $t)){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];B(4,a,c);try{c.call(a)}finally{B(5,a,c)}}else{B(4,o,i);try{i.call(o)}finally{B(5,o,i)}}}}}function Hv(e,t,n){return zv(e,t.parent,n)}function zv(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[st];if(bn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ge.None||o===Ge.Emulated)return null}return We(r,n)}function qv(e,t,n){return Wv(e,t,n)}function Gv(e,t,n){return e.type&40?We(e,n):null}var Wv=Gv,Vl;function Vc(e,t,n,r){let o=Hv(e,r,t),i=t[J],s=r.parent||t[je],a=qv(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Ll(i,o,n[c],a,!1);else Ll(i,o,n,a,!1);Vl!==void 0&&Vl(i,r,t,n,o)}function Jn(e,t){if(t!==null){let n=t.type;if(n&3)return We(t,e);if(n&4)return La(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Jn(e,r);{let o=e[t.index];return at(o)?La(-1,o):ze(o)}}else{if(n&128)return Jn(e,t.next);if(n&32)return Lc(t,e)()||ze(e[t.index]);{let r=qf(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Bt(e[Fe]);return Jn(o,r)}else return Jn(e,t.next)}}}return null}function qf(e,t){if(t!==null){let r=e[Fe][je],o=t.projection;return r.projection[o]}return null}function La(e,t){let n=ce+e+1;if(n<t.length){let r=t[n],o=r[N].firstChild;if(o!==null)return Jn(r,o)}return t[Vt]}function Bc(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&vr(ze(a),r),n.flags|=2),!Hf(n))if(c&8)Bc(e,t,n.child,r,o,i,!1),dn(t,e,o,a,i);else if(c&32){let u=Lc(n,r),l;for(;l=u();)dn(t,e,o,l,i);dn(t,e,o,a,i)}else c&16?Zv(e,t,r,n,o,i):dn(t,e,o,a,i);n=s?n.projectionNext:n.next}}function bi(e,t,n,r,o,i){Bc(n,r,e.firstChild,t,o,i,!1)}function Zv(e,t,n,r,o,i){let s=n[Fe],c=s[je].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];dn(t,e,o,l,i)}else{let u=c,l=s[le];mf(r)&&(u.flags|=128),Bc(e,t,u,l,o,i,!0)}}function Yv(e,t,n,r,o){let i=n[Vt],s=ze(n);i!==s&&dn(t,e,r,i,o);for(let a=ce;a<n.length;a++){let c=n[a];bi(c[N],c,e,t,r,i)}}function Qv(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:it.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=it.Important),e.setStyle(n,r,o,i))}}function si(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(ze(i)),at(i)&&Kv(i,r);let s=n.type;if(s&8)si(e,t,n.child,r);else if(s&32){let a=Lc(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=qf(t,n);if(Array.isArray(a))r.push(...a);else{let c=Bt(t[Fe]);si(c[N],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kv(e,t){for(let n=ce;n<e.length;n++){let r=e[n],o=r[N].firstChild;o!==null&&si(r[N],r,o,t)}e[Vt]!==e[st]&&t.push(e[Vt])}function Gf(e){if(e[oa]!==null){for(let t of e[oa])t.impl.addSequence(t);e[oa].length=0}}var Wf=[];function Xv(e){return e[_e]??Jv(e)}function Jv(e){let t=Wf.pop()??Object.create(tD);return t.lView=e,t}function eD(e){e.lView[_e]!==e&&(e.lView=null,Wf.push(e))}var tD=$(y({},qn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Ei(e.lView)},consumerOnSignalRead(){this.lView[_e]=this}});function nD(e){let t=e[_e]??Object.create(rD);return t.lView=e,t}var rD=$(y({},qn),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Bt(e.lView);for(;t&&!Zf(t[N]);)t=Bt(t);t&&Ad(t)},consumerOnSignalRead(){this.lView[_e]=this}});function Zf(e){return e.type!==2}function Yf(e){if(e[Wo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Wo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S]&8192)}}var oD=100;function Qf(e,t=!0,n=0){let o=e[rt].rendererFactory,i=!1;i||o.begin?.();try{iD(e,n)}catch(s){throw t&&Ov(e,s),s}finally{i||o.end?.()}}function iD(e,t){let n=Vd();try{bl(!0),ja(e,t);let r=0;for(;Di(e);){if(r===oD)throw new v(103,!1);r++,ja(e,1)}}finally{bl(n)}}function sD(e,t,n,r){if(Sn(t))return;let o=t[S],i=!1,s=!1;fc(t);let a=!0,c=null,u=null;i||(Zf(e)?(u=Xv(t),c=oo(u)):_s()===null?(a=!1,u=nD(t),c=oo(u)):t[_e]&&(ks(t[_e]),t[_e]=null));try{xd(t),Xm(e.bindingStartIndex),n!==null&&Vf(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&Lo(t,d,null)}else{let d=e.preOrderHooks;d!==null&&jo(t,d,0,null),ia(t,0)}if(s||aD(t),Yf(t),Kf(t,0),e.contentQueries!==null&&Mf(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&Lo(t,d)}else{let d=e.contentHooks;d!==null&&jo(t,d,1),ia(t,1)}uD(e,t);let f=e.components;f!==null&&Jf(t,f,0);let h=e.viewQuery;if(h!==null&&Pa(2,h,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&Lo(t,d)}else{let d=e.viewHooks;d!==null&&jo(t,d,2),ia(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ra]){for(let d of t[ra])d();t[ra]=null}i||(Gf(t),t[S]&=-73)}catch(l){throw i||Ei(t),l}finally{u!==null&&(As(u,c),a&&eD(u)),hc()}}function Kf(e,t){for(let n=Df(e);n!==null;n=Ef(n))for(let r=ce;r<n.length;r++){let o=n[r];Xf(o,t)}}function aD(e){for(let t=Df(e);t!==null;t=Ef(t)){if(!(t[S]&2))continue;let n=t[Yo];for(let r=0;r<n.length;r++){let o=n[r];Ad(o)}}}function cD(e,t,n){B(18);let r=qe(t,e);Xf(r,n),B(19,r[K])}function Xf(e,t){lc(e)&&ja(e,t)}function ja(e,t){let r=e[N],o=e[S],i=e[_e],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Os(i)),s||=!1,i&&(i.dirty=!1),e[S]&=-9217,s)sD(r,e,r.template,e[K]);else if(o&8192){Yf(e),Kf(e,1);let a=r.components;a!==null&&Jf(e,a,1),Gf(e)}}function Jf(e,t,n){for(let r=0;r<t.length;r++)cD(e,t[r],n)}function uD(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)Ut(~o);else{let i=o,s=n[++r],a=n[++r];ey(s,i);let c=t[i];B(24,c),a(2,c),B(25,c)}}}finally{Ut(-1)}}function Uc(e,t){let n=Vd()?64:1088;for(e[rt].changeDetectionScheduler?.notify(t);e;){e[S]|=n;let r=Bt(e);if(Qo(e)&&!r)return e;e=r}return null}function eh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function th(e,t){let n=ce+t;if(n<e.length)return e[n]}function Si(e,t,n,r=!0){let o=t[N];if(lD(o,t,e,n),r){let s=La(n,e),a=t[J],c=a.parentNode(e[Vt]);c!==null&&Vv(o,e[je],a,t,c,s)}let i=t[rr];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function nh(e,t){let n=cr(e,t);return n!==void 0&&Ci(n[N],n),n}function cr(e,t){if(e.length<=ce)return;let n=ce+t,r=e[n];if(r){let o=r[mn];o!==null&&o!==e&&jc(o,r),t>0&&(e[n-1][Pe]=r[Pe]);let i=zo(e,ce+t);jv(r[N],r);let s=i[yn];s!==null&&s.detachView(i[N]),r[le]=null,r[Pe]=null,r[S]&=-129}return r}function lD(e,t,n,r){let o=ce+r,i=n.length;r>0&&(n[o-1][Pe]=t),r<i-ce?(t[Pe]=n[o],gd(n,ce+r,t)):(n.push(t),t[Pe]=null),t[le]=n;let s=t[mn];s!==null&&n!==s&&rh(s,t);let a=t[yn];a!==null&&a.insertView(e),Ca(t),t[S]|=128}function rh(e,t){let n=e[Yo],r=t[le];if(Et(r))e[S]|=2;else{let o=r[le][Fe];t[Fe]!==o&&(e[S]|=2)}n===null?e[Yo]=[t]:n.push(t)}var ai=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[N];return si(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[K]}set context(t){this._lView[K]=t}get destroyed(){return Sn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[le];if(at(t)){let n=t[Zo],r=n?n.indexOf(this):-1;r>-1&&(cr(t,r),zo(n,r))}this._attachedToViewContainer=!1}Ci(this._lView[N],this._lView)}onDestroy(t){Od(this._lView,t)}markForCheck(){Uc(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S]&=-129}reattach(){Ca(this._lView),this._lView[S]|=128}detectChanges(){this._lView[S]|=1024,Qf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new v(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Qo(this._lView),n=this._lView[mn];n!==null&&!t&&jc(n,this._lView),zf(this._lView[N],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new v(902,!1);this._appRef=t;let n=Qo(this._lView),r=this._lView[mn];r!==null&&!n&&rh(r,this._lView),Ca(this._lView)}};function $c(e,t,n,r,o){let i=e.data[t];if(i===null)i=dD(e,t,n,r,o),Jm()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Qm();i.injectorIndex=s===null?-1:s.injectorIndex}return gr(i,!0),i}function dD(e,t,n,r,o){let i=Ld(),s=jd(),a=s?i:i&&i.parent,c=e.data[t]=hD(e,a,n,t,r,o);return fD(e,c,i,s),c}function fD(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 hD(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Wm()&&(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 dN=new RegExp(`^(\\d+)*(${Uy}|${By})*(.*)`);var pD=()=>null;function ur(e,t){return pD(e,t)}var gD=class{},oh=class{},Va=class{resolveComponentFactory(t){throw Error(`No component factory found for ${me(t)}.`)}},Mi=class{static NULL=new Va},Dn=class{},Ti=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>mD()}return e})();function mD(){let e=F(),t=Ne(),n=qe(t.index,e);return(Et(n)?n:e)[J]}var yD=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>null})}return e})();var ca={},Ba=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=mi(r);let o=this.injector.get(t,ca,r);return o!==ca||n===ca?o:this.parentInjector.get(t,n,r)}};function Bl(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=gl(o,a);else if(i==2){let c=a,u=t[++s];r=gl(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function ie(e,t=T.Default){let n=F();if(n===null)return I(e,t);let r=Ne();return of(r,n,ae(e),t)}function ih(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=DD(s);l===null?a=s:[a,c,u]=l,ID(e,t,n,a,i,c,u)}i!==null&&r!==null&&vD(n,r,i)}function vD(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 v(-301,!1);r.push(t[o],i)}}function DD(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&He(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,ED(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function ED(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function wD(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function ID(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let d=r[h];!c&&He(d)&&(c=!0,wD(e,n,h)),Ta(ei(n,t),e,d.type)}_D(n,e.data.length,a);for(let h=0;h<a;h++){let d=r[h];d.providersResolver&&d.providersResolver(d)}let u=!1,l=!1,f=Lf(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let d=r[h];if(n.mergedAttrs=ir(n.mergedAttrs,d.hostAttrs),bD(e,n,t,f,d),TD(f,d,o),s!==null&&s.has(d)){let[m,D]=s.get(d);n.directiveToIndex.set(d.type,[f,m+n.directiveStart,D+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let p=d.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}CD(e,n,i)}function CD(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Ul(0,t,o,r),Ul(1,t,o,r),Hl(t,r,!1);else{let i=n.get(o);$l(0,t,i,r),$l(1,t,i,r),Hl(t,r,!0)}}}function Ul(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),sh(t,i)}}function $l(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),sh(t,s)}}function sh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Hl(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Nc(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function bD(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Lt(o.type,!0)),s=new $t(i,He(o),ie);e.blueprint[r]=s,n[r]=s,SD(e,t,r,Lf(e,n,o.hostVars,Re),o)}function SD(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;MD(s)!=a&&s.push(a),s.push(n,r,i)}}function MD(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function TD(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;He(t)&&(n[""]=e)}}function _D(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ah(e,t,n,r,o,i,s,a){let c=t.consts,u=vn(c,s),l=$c(t,e,2,r,u);return i&&ih(t,n,l,vn(c,a),o),l.mergedAttrs=ir(l.mergedAttrs,l.attrs),l.attrs!==null&&Bl(l,l.attrs,!1),l.mergedAttrs!==null&&Bl(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function ch(e,t){Yd(e,t),Sd(t)&&e.queries.elementEnd(t)}var ci=class extends Mi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=hn(t);return new lr(n,this.ngModule)}};function ND(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ii.SignalBased)!==0};return o&&(i.transform=o),i})}function RD(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function xD(e,t,n){let r=t instanceof ue?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Ba(n,r):n}function AD(e){let t=e.get(Dn,null);if(t===null)throw new v(407,!1);let n=e.get(yD,null),r=e.get(sr,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function OD(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Nf(t,n,n==="svg"?Lm:n==="math"?jm:null)}var lr=class extends oh{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=ND(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=RD(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=yv(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){B(22);let i=_(null);try{let s=this.componentDef,a=r?["ng-version","19.2.22"]:vv(this.componentDef.selectors[0]),c=Rc(0,null,null,1,0,null,null,null,null,[a],null),u=xD(s,o||this.ngModule,t),l=AD(u),f=l.rendererFactory.createRenderer(null,s),h=r?Iv(f,r,s.encapsulation,u):OD(s,f),d=xc(null,c,null,512|Ff(s),null,null,l,f,u,null,Sf(h,u,!0));d[ye]=h,fc(d);let p=null;try{let m=ah(ye,c,d,"#host",()=>[this.componentDef],!0,0);h&&(xf(f,h,m),vr(h,d)),Oc(c,d,m),Tf(c,m,d),ch(c,m),n!==void 0&&kD(m,this.ngContentSelectors,n),p=qe(m.index,d),d[K]=p[K],Pc(c,d,null)}catch(m){throw p!==null&&Oa(p),Oa(d),m}finally{B(23),hc()}return new Ua(this.componentType,d)}finally{_(i)}}},Ua=class extends gD{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=uc(n[N],ye),this.location=Cc(this._tNode,n),this.instance=qe(this._tNode.index,n)[K],this.hostView=this.changeDetectorRef=new ai(n,void 0,!1),this.componentType=t}setInput(t,n){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=kc(r,o[N],o,t,n);this.previousInputValues.set(t,n);let s=qe(r.index,o);Uc(s,1)}get injector(){return new Ft(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function kD(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 _i=(()=>{class e{static __NG_ELEMENT_ID__=PD}return e})();function PD(){let e=Ne();return LD(e,F())}var FD=_i,uh=class extends FD{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Cc(this._hostTNode,this._hostLView)}get injector(){return new Ft(this._hostTNode,this._hostLView)}get parentInjector(){let t=yc(this._hostTNode,this._hostLView);if(Xd(t)){let n=Xo(t,this._hostLView),r=Ko(t),o=n[N].data[r+8];return new Ft(o,n)}else return new Ft(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ce}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ur(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ar(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!Om(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?t:new lr(hn(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(ue,null);m&&(i=m)}let l=hn(c.componentType??{}),f=ur(this._lContainer,l?.id??null),h=f?.firstChild??null,d=c.create(u,o,h,i);return this.insertImpl(d.hostView,a,ar(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Um(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[le],u=new uh(c,c[je],c[le]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Si(s,o,i,r),t.attachToViewContainerRef(),gd(ua(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=cr(this._lContainer,n);r&&(zo(ua(this._lContainer),n),Ci(r[N],r))}detach(t){let n=this._adjustIndex(t,-1),r=cr(this._lContainer,n);return r&&zo(ua(this._lContainer),n)!=null?new ai(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zl(e){return e[Zo]}function ua(e){return e[Zo]||(e[Zo]=[])}function LD(e,t){let n,r=t[e.index];return at(r)?n=r:(n=eh(r,t,null,e),t[e.index]=n,Ac(t,n)),VD(n,t,e,r),new uh(n,e,t)}function jD(e,t){let n=e[J],r=n.createComment(""),o=We(t,e),i=n.parentNode(o);return ii(n,i,r,n.nextSibling(o),!1),r}var VD=$D,BD=()=>!1;function UD(e,t,n){return BD(e,t,n)}function $D(e,t,n,r){if(e[Vt])return;let o;n.type&8?o=ze(r):o=jD(t,n),e[Vt]=o}var En=class{},Hc=class{};var $a=class extends En{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ci(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=vd(t);this._bootstrapComponents=kf(i.bootstrap),this._r3Injector=cf(t,n,[{provide:En,useValue:this},{provide:Mi,useValue:this.componentFactoryResolver},...r],me(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)}},Ha=class extends Hc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new $a(this.moduleType,t,[])}};var ui=class extends En{injector;componentFactoryResolver=new ci(this);instance=null;constructor(t){super();let n=new nr([...t.providers,{provide:En,useValue:this},{provide:Mi,useValue:this.componentFactoryResolver}],t.parent||ac(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ni(e,t,n=null){return new ui({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var HD=(()=>{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=Dd(!1,n.type),o=r.length>0?Ni([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=w({token:e,providedIn:"environment",factory:()=>new e(I(ue))})}return e})();function lh(e){return pi(()=>{let t=fh(e),n=$(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===yf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(HD).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ge.Emulated,styles:e.styles||Te,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Er("NgStandalone"),hh(n);let r=e.dependencies;return n.directiveDefs=ql(r,!1),n.pipeDefs=ql(r,!0),n.id=ZD(n),n})}function zD(e){return hn(e)||Em(e)}function qD(e){return e!==null}function Tn(e){return pi(()=>({type:e.type,bootstrap:e.bootstrap||Te,declarations:e.declarations||Te,imports:e.imports||Te,exports:e.exports||Te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function GD(e,t){if(e==null)return jt;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=Ii.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function WD(e){if(e==null)return jt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _n(e){return pi(()=>{let t=fh(e);return hh(t),t})}function dh(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function fh(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||jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:GD(e.inputs,t),outputs:WD(e.outputs),debugInfo:null}}function hh(e){e.features?.forEach(t=>t(e))}function ql(e,t){if(!e)return null;let n=t?wm:zD;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(qD)}function ZD(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 YD(e){return Object.getPrototypeOf(e.prototype).constructor}function QD(e){let t=YD(e.type),n=!0,r=[e];for(;t;){let o;if(He(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new v(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=la(e.inputs),s.declaredInputs=la(e.declaredInputs),s.outputs=la(e.outputs);let a=o.hostBindings;a&&tE(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&JD(e,c),u&&eE(e,u),KD(e,o),Jg(e.outputs,o.outputs),He(o)&&o.data.animation){let l=e.data;l.animation=(l.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===QD&&(n=!1)}}t=Object.getPrototypeOf(t)}XD(r)}function KD(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 XD(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=ir(o.hostAttrs,n=ir(n,o.hostAttrs))}}function la(e){return e===jt?{}:e===Te?[]:e}function JD(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 ph(e,t,n){return e[t]=n}function Le(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function zc(e,t,n,r){let o=Le(e,t,n);return Le(e,t+1,r)||o}function nE(e,t,n,r,o){let i=zc(e,t,n,r);return Le(e,t+2,o)||i}function rE(e,t,n,r,o,i,s,a,c){let u=t.consts,l=$c(t,e,4,s||null,a||null);Fd()&&ih(t,n,l,vn(u,c),$f),l.mergedAttrs=ir(l.mergedAttrs,l.attrs),Yd(t,l);let f=l.tView=Rc(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function za(e,t,n,r,o,i,s,a,c,u){let l=n+ye,f=t.firstCreatePass?rE(l,t,e,r,o,i,s,a,c):t.data[l];gr(f,!1);let h=iE(t,e,f,n);gc()&&Vc(t,e,h,f),vr(h,e);let d=eh(h,e,h,f);return e[l]=d,Ac(e,d),UD(d,f,e),cc(f)&&Oc(t,e,f),c!=null&&Bf(e,f,u),f}function oE(e,t,n,r,o,i,s,a){let c=F(),u=de(),l=vn(u.consts,i);return za(c,u,e,t,n,r,o,l,s,a),oE}var iE=sE;function sE(e,t,n,r){return mc(!0),t[J].createComment("")}var gh=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var mh=new E("");var aE=(()=>{class e{static \u0275prov=w({token:e,providedIn:"root",factory:()=>new qa})}return e})(),qa=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}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)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function wr(e){return!!e&&typeof e.then=="function"}function yh(e){return!!e&&typeof e.subscribe=="function"}var cE=new E("");var vh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(cE,{optional:!0})??[];injector=g(wt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Ce(this.injector,o);if(wr(i))n.push(i);else if(yh(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qc=new E("");function uE(){Fs(()=>{throw new v(600,!1)})}function lE(e){return e.isBoundToModule}var dE=10;var Ht=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(Ry);afterRenderManager=g(Hy);zonelessEnabled=g(Ec);rootEffectScheduler=g(aE);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(It).hasPendingTasks.pipe(x(n=>!n));constructor(){g(wi,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(ue);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=wt.NULL){B(10);let i=n instanceof oh;if(!this._injector.get(vh).done){let d="";throw new v(405,d)}let a;i?a=n:a=this._injector.get(Mi).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=lE(a)?void 0:this._injector.get(En),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,h=l.injector.get(mh,null);return h?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),Vo(this.components,l),h?.unregisterApplication(f)}),this._loadComponent(l),B(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){B(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(bf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new v(101,!1);let n=_(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,_(n),this.afterTick.next(),B(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Dn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<dE;)B(14),this.synchronizeOnce(),B(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)fE(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Di(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;Vo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(qc,[]).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),()=>Vo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new v(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Vo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function fE(e,t,n,r){if(!n&&!Di(e))return;Qf(e,t,n&&!r?0:1)}function Gc(e,t,n,r){let o=F(),i=Mn();if(Le(o,i,t)){let s=de(),a=pc();Rv(a,o,e,t,n,r)}return Gc}function hE(e,t,n,r){return Le(e,Mn(),n)?t+nt(n)+r:Re}function pE(e,t,n,r,o,i){let s=Ud(),a=zc(e,s,n,o);return dc(2),a?t+nt(n)+r+nt(o)+i:Re}function gE(e,t,n,r,o,i,s,a){let c=Ud(),u=nE(e,c,n,o,s);return dc(3),u?t+nt(n)+r+nt(o)+i+nt(s)+a:Re}function Po(e,t){return e<<17|t<<2}function zt(e){return e>>17&32767}function mE(e){return(e&2)==2}function yE(e,t){return e&131071|t<<17}function Ga(e){return e|2}function wn(e){return(e&131068)>>2}function da(e,t){return e&-131069|t<<2}function vE(e){return(e&1)===1}function Wa(e){return e|1}function DE(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=zt(s),c=wn(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||fr(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=zt(e[a+1]);e[r+1]=Po(h,a),h!==0&&(e[h+1]=da(e[h+1],r)),e[a+1]=yE(e[a+1],r)}else e[r+1]=Po(a,0),a!==0&&(e[a+1]=da(e[a+1],r)),a=r;else e[r+1]=Po(c,0),a===0?a=r:e[c+1]=da(e[c+1],r),c=r;u&&(e[r+1]=Ga(e[r+1])),Gl(e,l,r,!0),Gl(e,l,r,!1),EE(t,l,e,r,i),s=Po(a,c),i?t.classBindings=s:t.styleBindings=s}function EE(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&fr(i,t)>=0&&(n[r+1]=Wa(n[r+1]))}function Gl(e,t,n,r){let o=e[n+1],i=t===null,s=r?zt(o):wn(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];wE(c,t)&&(a=!0,e[s+1]=r?Wa(u):Ga(u)),s=r?zt(u):wn(u)}a&&(e[n+1]=r?Ga(o):Wa(o))}function wE(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?fr(e,t)>=0:!1}function IE(e,t,n){let r=F(),o=Mn();if(Le(r,o,t)){let i=de(),s=pc();Uf(i,s,r,e,t,r[J],n,!1)}return IE}function Wl(e,t,n,r,o){kc(t,e,n,o?"class":"style",r)}function CE(e,t){return bE(e,t,null,!0),CE}function bE(e,t,n,r){let o=F(),i=de(),s=dc(2);if(i.firstUpdatePass&&ME(i,e,s,r),t!==Re&&Le(o,s,t)){let a=i.data[ct()];xE(i,a,o,o[J],e,o[s+1]=AE(t,n),r,s)}}function SE(e,t){return t>=e.expandoStartIndex}function ME(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ct()],s=SE(e,n);OE(i,r)&&t===null&&!s&&(t=!1),t=TE(o,i,t,r),DE(o,i,t,n,s,r)}}function TE(e,t,n,r){let o=ny(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=fa(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=fa(o,e,t,n,r),i===null){let c=_E(e,t,r);c!==void 0&&Array.isArray(c)&&(c=fa(null,e,t,c[1],r),c=dr(c,t.attrs,r),NE(e,t,r,c))}else i=RE(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function _E(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wn(r)!==0)return e[zt(r)]}function NE(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[zt(o)]=r}function RE(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 fa(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]),vm(e,s,n?!0:t[++i]))}return e===void 0?null:e}function xE(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=vE(u)?Zl(c,t,n,o,wn(u),s):void 0;if(!li(l)){li(i)||mE(u)&&(i=Zl(c,null,n,o,a,s));let f=Rd(ct(),n);Qv(r,s,f,o,i)}}function Zl(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,h=n[o+1];h===Re&&(h=f?Te:void 0);let d=f?ta(h,r):l===r?h:void 0;if(u&&!li(d)&&(d=ta(c,r)),li(d)&&(a=d,s))return a;let p=e[o+1];o=s?zt(p):wn(p)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ta(c,r))}return a}function li(e){return e!==void 0}function AE(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=me(Tc(e)))),e}function OE(e,t){return(e.flags&(t?8:16))!==0}var Za=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 ha(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function kE(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 u=e.at(i),l=t[i],f=ha(i,u,i,l,n);if(f!==0){f<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),d=t[c],p=ha(s,h,c,d,n);if(p!==0){p<0&&e.updateValue(s,d),s--,c--;continue}let m=n(i,u),D=n(s,h),R=n(i,l);if(Object.is(R,D)){let Ue=n(c,d);Object.is(Ue,m)?(e.swap(i,s),e.updateValue(s,d),c--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new di,o??=Ql(e,i,s,n),Ya(e,r,i,R))e.updateValue(i,l),i++,s++;else if(o.has(R))r.set(m,e.detach(i)),s--;else{let Ue=e.create(i,t[i]);e.attach(i,Ue),i++,s++}}for(;i<=c;)Yl(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),u=c.next();for(;!u.done&&i<=s;){let l=e.at(i),f=u.value,h=ha(i,l,i,f,n);if(h!==0)h<0&&e.updateValue(i,f),i++,u=c.next();else{r??=new di,o??=Ql(e,i,s,n);let d=n(i,f);if(Ya(e,r,i,d))e.updateValue(i,f),i++,s++,u=c.next();else if(!o.has(d))e.attach(i,e.create(i,f)),i++,s++,u=c.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!u.done;)Yl(e,r,n,e.length,u.value),u=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Ya(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Yl(e,t,n,r,o){if(Ya(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Ql(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 di=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 vN(e,t){Er("NgControlFlow");let n=F(),r=Mn(),o=n[r]!==Re?n[r]:-1,i=o!==-1?fi(n,ye+o):void 0,s=0;if(Le(n,r,e)){let a=_(null);try{if(i!==void 0&&nh(i,s),e!==-1){let c=ye+e,u=fi(n,c),l=Ja(n[N],c),f=ur(u,l.tView.ssrId),h=Fc(n,l,t,{dehydratedView:f});Si(u,h,s,ar(l,f))}}finally{_(a)}}else if(i!==void 0){let a=th(i,s);a!==void 0&&(a[K]=t)}}var Qa=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ce}};var Ka=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function DN(e,t,n,r,o,i,s,a,c,u,l,f,h){Er("NgControlFlow");let d=F(),p=de(),m=c!==void 0,D=F(),R=a?s.bind(D[Fe][K]):s,Ue=new Ka(m,R);D[ye+e]=Ue,za(d,p,e+1,t,n,r,o,vn(p.consts,i)),m&&za(d,p,e+2,c,u,l,f,vn(p.consts,h))}var Xa=class extends Za{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-ce}at(t){return this.getLView(t)[K].$implicit}attach(t,n){let r=n[rr];this.needsIndexUpdate||=t!==this.length,Si(this.lContainer,n,t,ar(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,PE(this.lContainer,t)}create(t,n){let r=ur(this.lContainer,this.templateTNode.tView.ssrId),o=Fc(this.hostLView,this.templateTNode,new Qa(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ci(t[N],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[K].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[K].$index=t}getLView(t){return FE(this.lContainer,t)}};function EN(e){let t=_(null),n=ct();try{let r=F(),o=r[N],i=r[n],s=n+1,a=fi(r,s);if(i.liveCollection===void 0){let u=Ja(o,s);i.liveCollection=new Xa(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(kE(c,e,i.trackByFn),c.updateIndexes(),i.hasEmptyBlock){let u=Mn(),l=c.length===0;if(Le(r,u,l)){let f=n+2,h=fi(r,f);if(l){let d=Ja(o,f),p=ur(h,d.tView.ssrId),m=Fc(r,d,void 0,{dehydratedView:p});Si(h,m,0,ar(d,p))}else nh(h,0)}}}finally{_(t)}}function fi(e,t){return e[t]}function PE(e,t){return cr(e,t)}function FE(e,t){return th(e,t)}function Ja(e,t){return uc(e,t)}function Dh(e,t,n,r){let o=F(),i=de(),s=ye+e,a=o[J],c=i.firstCreatePass?ah(s,i,o,t,$f,Fd(),n,r):i.data[s],u=LE(i,o,c,a,t,e);o[s]=u;let l=cc(c);return gr(c,!0),xf(a,u,c),!Hf(c)&&gc()&&Vc(i,o,u,c),(zm()===0||l)&&vr(u,o),qm(),l&&(Oc(i,o,c),Tf(i,c,o)),r!==null&&Bf(o,c),Dh}function Eh(){let e=Ne();jd()?Km():(e=e.parent,gr(e,!1));let t=e;Zm(t)&&Ym(),Gm();let n=de();return n.firstCreatePass&&ch(n,t),t.classesWithoutHost!=null&&cy(t)&&Wl(n,t,F(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&uy(t)&&Wl(n,t,F(),t.stylesWithoutHost,!1),Eh}function Wc(e,t,n,r){return Dh(e,t,n,r),Eh(),Wc}var LE=(e,t,n,r,o,i)=>(mc(!0),Nf(r,o,iy()));function wN(){return F()}var Ot=void 0;function jE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var VE=["en",[["a","p"],["AM","PM"],Ot],[["AM","PM"],Ot,Ot],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ot,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ot,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ot,"{1} 'at' {0}",Ot],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",jE],pa={};function xe(e){let t=BE(e),n=Kl(t);if(n)return n;let r=t.split("-")[0];if(n=Kl(r),n)return n;if(r==="en")return VE;throw new v(701,!1)}function Kl(e){return e in pa||(pa[e]=kt.ng&&kt.ng.common&&kt.ng.common.locales&&kt.ng.common.locales[e]),pa[e]}var z=(function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e})(z||{});function BE(e){return e.toLowerCase().replace(/_/g,"-")}var hi="en-US";var UE=hi;function $E(e){typeof e=="string"&&(UE=e.toLowerCase().replace(/_/g,"-"))}function Xl(e,t,n){return function r(o){if(o===Function)return n;let i=bn(e)?qe(e.index,t):t;Uc(i,5);let s=t[K],a=Jl(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Jl(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Jl(e,t,n,r){let o=_(null);try{return B(6,t,n),n(r)!==!1}catch(i){return HE(e,i),!1}finally{B(7,t,n),_(o)}}function HE(e,t){let n=e[gn],r=n?n.get(ot,null):null;r&&r.handleError(t)}function ed(e,t,n,r,o,i){let s=t[n],a=t[N],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?Pd(a):null,h=kd(t),d=l.subscribe(i),p=h.length;h.push(i,d),f&&f.push(o,e.index,p,-(p+1))}function Zc(e,t,n,r){let o=F(),i=de(),s=Ne();return wh(i,o,o[J],s,e,t,r),Zc}function zE(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[Go],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function wh(e,t,n,r,o,i,s){let a=cc(r),u=e.firstCreatePass?Pd(e):null,l=kd(t),f=!0;if(r.type&3||s){let h=We(r,t),d=s?s(h):h,p=l.length,m=s?R=>s(ze(R[r.index])):r.index,D=null;if(!s&&a&&(D=zE(e,t,o,r.index)),D!==null){let R=D.__ngLastListenerFn__||D;R.__ngNextListenerFn__=i,D.__ngLastListenerFn__=i,f=!1}else{i=Xl(r,t,i),qy(t,d,o,i);let R=n.listen(d,o,i);l.push(i,R),u&&u.push(o,m,p,p+1)}}else i=Xl(r,t,i);if(f){let h=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let p=0;p<d.length;p+=2){let m=d[p],D=d[p+1];ed(r,t,m,D,o,i)}if(h&&h.length)for(let p of h)ed(r,t,p,o,o,i)}}function IN(e=1){return oy(e)}function CN(e,t=""){let n=F(),r=de(),o=e+ye,i=r.firstCreatePass?$c(r,o,1,t,null):r.data[o],s=qE(r,n,i,t,e);n[o]=s,gc()&&Vc(r,n,s,i),gr(i,!1)}var qE=(e,t,n,r,o)=>(mc(!0),Ky(t[J],r));function GE(e){return Ih("",e,""),GE}function Ih(e,t,n){let r=F(),o=hE(r,e,t,n);return o!==Re&&Yc(r,ct(),o),Ih}function WE(e,t,n,r,o){let i=F(),s=pE(i,e,t,n,r,o);return s!==Re&&Yc(i,ct(),s),WE}function ZE(e,t,n,r,o,i,s){let a=F(),c=gE(a,e,t,n,r,o,i,s);return c!==Re&&Yc(a,ct(),c),ZE}function Yc(e,t,n){let r=Rd(t,e);Xy(e[J],r,n)}function YE(e,t,n){gf(t)&&(t=t());let r=F(),o=Mn();if(Le(r,o,t)){let i=de(),s=pc();Uf(i,s,r,e,t,r[J],n,!1)}return YE}function bN(e,t){let n=gf(e);return n&&e.set(t),n}function QE(e,t){let n=F(),r=de(),o=Ne();return wh(r,n,n[J],o,e,t),QE}function KE(e,t,n){let r=de();if(r.firstCreatePass){let o=He(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=ae(e),Array.isArray(e))for(let i=0;i<e.length;i++)ec(e[i],t,n,r,o);else{let i=de(),s=F(),a=Ne(),c=pn(e)?e:ae(e.provide),u=Id(e),l=a.providerIndexes&1048575,f=a.directiveStart,h=a.providerIndexes>>20;if(pn(e)||!e.multi){let d=new $t(u,o,ie),p=ma(c,t,o?l:l+h,f);p===-1?(Ta(ei(a,s),i,c),ga(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[p]=d,s[p]=d)}else{let d=ma(c,t,l+h,f),p=ma(c,t,l,l+h),m=d>=0&&n[d],D=p>=0&&n[p];if(o&&!D||!o&&!m){Ta(ei(a,s),i,c);let R=ew(o?JE:XE,n.length,o,r,u);!o&&D&&(n[p].providerFactory=R),ga(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(R),s.push(R)}else{let R=Ch(n[o?p:d],u,!o&&r);ga(i,e,d>-1?d:p,R)}!o&&r&&D&&n[p].componentProviders++}}}function ga(e,t,n,r){let o=pn(t),i=Mm(t);if(o||i){let c=(i?ae(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Ch(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ma(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function XE(e,t,n,r,o){return tc(this.multi,[])}function JE(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=ti(r,r[N],this.providerFactory.index,o);s=c.slice(0,a),tc(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}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 ew(e,t,n,r,o){let i=new $t(e,n,ie);return i.multi=[],i.index=t,i.componentProviders=0,Ch(i,o,r&&!n),i}function SN(e,t=[]){return n=>{n.providersResolver=(r,o)=>KE(r,o?o(e):e,t)}}function MN(e,t,n,r){return tw(F(),Bd(),e,t,n,r)}function bh(e,t){let n=e[t];return n===Re?void 0:n}function tw(e,t,n,r,o,i){let s=t+n;return Le(e,s,o)?ph(e,s+1,i?r.call(i,o):r(o)):bh(e,s+1)}function nw(e,t,n,r,o,i,s){let a=t+n;return zc(e,a,o,i)?ph(e,a+2,s?r.call(s,o,i):r(o,i)):bh(e,a+2)}function TN(e,t){let n=de(),r,o=e+ye;n.firstCreatePass?(r=rw(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Lt(r.type,!0)),s,a=pe(ie);try{let c=Jo(!1),u=i();return Jo(c),Bm(n,F(),o,u),u}finally{pe(a)}}function rw(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function _N(e,t,n,r){let o=e+ye,i=F(),s=Vm(i,o);return ow(i,o)?nw(i,Bd(),t,s.transform,n,r,s):s.transform(n,r)}function ow(e,t){return e[N].data[t].pure}var nc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Sh=(()=>{class e{compileModuleSync(n){return new Ha(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=vd(n),i=kf(o.declarations).reduce((s,a)=>{let c=hn(a);return c&&s.push(new lr(c)),s},[]);return new nc(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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var iw=(()=>{class e{zone=g(X);changeDetectionScheduler=g(sr);applicationRef=g(Ht);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sw=new E("",{factory:()=>!1});function Mh({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new X($(y({},Th()),{scheduleInRootZone:n})),[{provide:X,useFactory:e},{provide:tr,multi:!0,useFactory:()=>{let r=g(iw,{optional:!0});return()=>r.initialize()}},{provide:tr,multi:!0,useFactory:()=>{let r=g(aw);return()=>{r.initialize()}}},t===!0?{provide:lf,useValue:!0}:[],{provide:df,useValue:n??uf}]}function NN(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=Mh({ngZoneFactory:()=>{let o=Th(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&Er("NgZone_CoalesceEvent"),new X(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return hr([{provide:sw,useValue:!0},{provide:Ec,useValue:!1},r])}function Th(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var aw=(()=>{class e{subscription=new q;initialized=!1;zone=g(X);pendingTasks=g(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(()=>{X.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{X.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var cw=(()=>{class e{appRef=g(Ht);taskService=g(It);ngZone=g(X);zonelessEnabled=g(Ec);tracing=g(wi,{optional:!0});disableScheduling=g(lf,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new q;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ri):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(df,{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 Aa||!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?Rl:ff;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(ri+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){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Rl(()=>{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=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function uw(){return typeof $localize<"u"&&$localize.locale||hi}var Ri=new E("",{providedIn:"root",factory:()=>g(Ri,T.Optional|T.SkipSelf)||uw()});var rc=new E(""),lw=new E("");function Kn(e){return!e.moduleRef}function dw(e){let t=Kn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(X);return n.run(()=>{Kn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ot,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Kn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(rc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(rc);s.add(i),e.moduleRef.onDestroy(()=>{Vo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hw(r,n,()=>{let i=t.get(vh);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Ri,hi);if($E(s||hi),!t.get(lw,!0))return Kn(e)?t.get(Ht):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Kn(e)){let c=t.get(Ht);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return fw(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function fw(e,t){let n=e.injector.get(Ht);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new v(-403,!1);t.push(e)}function hw(e,t,n){try{let r=n();return wr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Bo=null;function pw(e=[],t){return wt.create({name:t,providers:[{provide:yi,useValue:"platform"},{provide:rc,useValue:new Set([()=>Bo=null])},...e]})}function gw(e=[]){if(Bo)return Bo;let t=pw(e);return Bo=t,uE(),mw(t),t}function mw(e){let t=e.get(Sc,null);Ce(e,()=>{t?.forEach(n=>n())})}var xi=(()=>{class e{static __NG_ELEMENT_ID__=yw}return e})();function yw(e){return vw(Ne(),F(),(e&16)===16)}function vw(e,t,n){if(bn(e)&&!n){let r=qe(e.index,t);return new ai(r,r)}else if(e.type&175){let r=t[Fe];return new ai(r,t)}return null}function _h(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;B(8);try{let i=o?.injector??gw(r),s=[Mh({}),{provide:sr,useExisting:cw},...n||[]],a=new ui({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return dw({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{B(9)}}function Ai(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Dw(e){return Vs(e)}function RN(e,t){return Ps(e,t?.equal)}var td=class{[Me];constructor(t){this[Me]=t}destroy(){this[Me].destroy()}};var te=new E("");var xh=null;function ut(){return xh}function Qc(e){xh??=e}var Ir=class{},Kc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(Ah),providedIn:"platform"})}return e})();var Ah=(()=>{class e extends Kc{_location;_history;_doc=g(te);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ut().getBaseHref(this._doc)}onPopState(n){let r=ut().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=ut().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Oh(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Nh(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function bt(e){return e&&e[0]!=="?"?`?${e}`:e}var Nn=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(Ph),providedIn:"root"})}return e})(),kh=new E(""),Ph=(()=>{class e extends Nn{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(te).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Oh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+bt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+bt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+bt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(Kc),I(kh,8))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rn=(()=>{class e{_subject=new ee;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=Iw(Nh(Rh(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+bt(r))}normalize(n){return e.stripTrailingSlash(ww(this._basePath,Rh(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+bt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=bt;static joinWithSlash=Oh;static stripTrailingSlash=Nh;static \u0275fac=function(r){return new(r||e)(I(Nn))};static \u0275prov=w({token:e,factory:()=>Ew(),providedIn:"root"})}return e})();function Ew(){return new Rn(I(Nn))}function ww(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Rh(e){return e.replace(/\/index.html$/,"")}function Iw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var se=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(se||{}),j=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(j||{}),ve=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ve||{}),dt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function jh(e){return xe(e)[z.LocaleId]}function Vh(e,t,n){let r=xe(e),o=[r[z.DayPeriodsFormat],r[z.DayPeriodsStandalone]],i=Ae(o,t);return Ae(i,n)}function Bh(e,t,n){let r=xe(e),o=[r[z.DaysFormat],r[z.DaysStandalone]],i=Ae(o,t);return Ae(i,n)}function Uh(e,t,n){let r=xe(e),o=[r[z.MonthsFormat],r[z.MonthsStandalone]],i=Ae(o,t);return Ae(i,n)}function $h(e,t){let r=xe(e)[z.Eras];return Ae(r,t)}function Cr(e,t){let n=xe(e);return Ae(n[z.DateFormat],t)}function br(e,t){let n=xe(e);return Ae(n[z.TimeFormat],t)}function Sr(e,t){let r=xe(e)[z.DateTimeFormat];return Ae(r,t)}function Mr(e,t){let n=xe(e),r=n[z.NumberSymbols][t];if(typeof r>"u"){if(t===dt.CurrencyDecimal)return n[z.NumberSymbols][dt.Decimal];if(t===dt.CurrencyGroup)return n[z.NumberSymbols][dt.Group]}return r}function Hh(e){if(!e[z.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[z.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zh(e){let t=xe(e);return Hh(t),(t[z.ExtraData][2]||[]).map(r=>typeof r=="string"?Xc(r):[Xc(r[0]),Xc(r[1])])}function qh(e,t,n){let r=xe(e);Hh(r);let o=[r[z.ExtraData][0],r[z.ExtraData][1]],i=Ae(o,t)||[];return Ae(i,n)||[]}function Ae(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Xc(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var Cw=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Oi={},bw=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function Gh(e,t,n,r){let o=Ow(e);t=lt(n,t)||t;let s=[],a;for(;t;)if(a=bw.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let c=o.getTimezoneOffset();r&&(c=Zh(r,c),o=Aw(o,r));let u="";return s.forEach(l=>{let f=Rw(l);u+=f?f(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ji(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function lt(e,t){let n=jh(e);if(Oi[n]??={},Oi[n][t])return Oi[n][t];let r="";switch(t){case"shortDate":r=Cr(e,ve.Short);break;case"mediumDate":r=Cr(e,ve.Medium);break;case"longDate":r=Cr(e,ve.Long);break;case"fullDate":r=Cr(e,ve.Full);break;case"shortTime":r=br(e,ve.Short);break;case"mediumTime":r=br(e,ve.Medium);break;case"longTime":r=br(e,ve.Long);break;case"fullTime":r=br(e,ve.Full);break;case"short":let o=lt(e,"shortTime"),i=lt(e,"shortDate");r=ki(Sr(e,ve.Short),[o,i]);break;case"medium":let s=lt(e,"mediumTime"),a=lt(e,"mediumDate");r=ki(Sr(e,ve.Medium),[s,a]);break;case"long":let c=lt(e,"longTime"),u=lt(e,"longDate");r=ki(Sr(e,ve.Long),[c,u]);break;case"full":let l=lt(e,"fullTime"),f=lt(e,"fullDate");r=ki(Sr(e,ve.Full),[l,f]);break}return r&&(Oi[n][t]=r),r}function ki(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Ve(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),i+s}function Sw(e,t){return Ve(e,3).substring(0,t)}function W(e,t,n=0,r=!1,o=!1){return function(i,s){let a=Mw(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return Sw(a,t);let c=Mr(s,dt.MinusSign);return Ve(a,t,c,r,o)}}function Mw(e,t){switch(e){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function U(e,t,n=se.Format,r=!1){return function(o,i){return Tw(o,i,e,t,n,r)}}function Tw(e,t,n,r,o,i){switch(n){case 2:return Uh(t,o,r)[e.getMonth()];case 1:return Bh(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=zh(t),l=qh(t,o,r),f=u.findIndex(h=>{if(Array.isArray(h)){let[d,p]=h,m=s>=d.hours&&a>=d.minutes,D=s<p.hours||s===p.hours&&a<p.minutes;if(d.hours<p.hours){if(m&&D)return!0}else if(m||D)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(f!==-1)return l[f]}return Vh(t,o,r)[s<12?0:1];case 3:return $h(t,r)[e.getFullYear()<=0?0:1];default:let c=n;throw new Error(`unexpected translation type ${c}`)}}function Pi(e){return function(t,n,r){let o=-1*r,i=Mr(n,dt.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return(o>=0?"+":"")+Ve(s,2,i)+Ve(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+Ve(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+Ve(s,2,i)+":"+Ve(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Ve(s,2,i)+":"+Ve(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var _w=0,Li=4;function Nw(e){let t=ji(e,_w,1).getDay();return ji(e,0,1+(t<=Li?Li:Li+7)-t)}function Wh(e){let t=e.getDay(),n=t===0?-3:Li-t;return ji(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Jc(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=Wh(n),s=Nw(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ve(o,e,Mr(r,dt.MinusSign))}}function Fi(e,t=!1){return function(n,r){let i=Wh(n).getFullYear();return Ve(i,e,Mr(r,dt.MinusSign),t)}}var eu={};function Rw(e){if(eu[e])return eu[e];let t;switch(e){case"G":case"GG":case"GGG":t=U(3,j.Abbreviated);break;case"GGGG":t=U(3,j.Wide);break;case"GGGGG":t=U(3,j.Narrow);break;case"y":t=W(0,1,0,!1,!0);break;case"yy":t=W(0,2,0,!0,!0);break;case"yyy":t=W(0,3,0,!1,!0);break;case"yyyy":t=W(0,4,0,!1,!0);break;case"Y":t=Fi(1);break;case"YY":t=Fi(2,!0);break;case"YYY":t=Fi(3);break;case"YYYY":t=Fi(4);break;case"M":case"L":t=W(1,1,1);break;case"MM":case"LL":t=W(1,2,1);break;case"MMM":t=U(2,j.Abbreviated);break;case"MMMM":t=U(2,j.Wide);break;case"MMMMM":t=U(2,j.Narrow);break;case"LLL":t=U(2,j.Abbreviated,se.Standalone);break;case"LLLL":t=U(2,j.Wide,se.Standalone);break;case"LLLLL":t=U(2,j.Narrow,se.Standalone);break;case"w":t=Jc(1);break;case"ww":t=Jc(2);break;case"W":t=Jc(1,!0);break;case"d":t=W(2,1);break;case"dd":t=W(2,2);break;case"c":case"cc":t=W(7,1);break;case"ccc":t=U(1,j.Abbreviated,se.Standalone);break;case"cccc":t=U(1,j.Wide,se.Standalone);break;case"ccccc":t=U(1,j.Narrow,se.Standalone);break;case"cccccc":t=U(1,j.Short,se.Standalone);break;case"E":case"EE":case"EEE":t=U(1,j.Abbreviated);break;case"EEEE":t=U(1,j.Wide);break;case"EEEEE":t=U(1,j.Narrow);break;case"EEEEEE":t=U(1,j.Short);break;case"a":case"aa":case"aaa":t=U(0,j.Abbreviated);break;case"aaaa":t=U(0,j.Wide);break;case"aaaaa":t=U(0,j.Narrow);break;case"b":case"bb":case"bbb":t=U(0,j.Abbreviated,se.Standalone,!0);break;case"bbbb":t=U(0,j.Wide,se.Standalone,!0);break;case"bbbbb":t=U(0,j.Narrow,se.Standalone,!0);break;case"B":case"BB":case"BBB":t=U(0,j.Abbreviated,se.Format,!0);break;case"BBBB":t=U(0,j.Wide,se.Format,!0);break;case"BBBBB":t=U(0,j.Narrow,se.Format,!0);break;case"h":t=W(3,1,-12);break;case"hh":t=W(3,2,-12);break;case"H":t=W(3,1);break;case"HH":t=W(3,2);break;case"m":t=W(4,1);break;case"mm":t=W(4,2);break;case"s":t=W(5,1);break;case"ss":t=W(5,2);break;case"S":t=W(6,1);break;case"SS":t=W(6,2);break;case"SSS":t=W(6,3);break;case"Z":case"ZZ":case"ZZZ":t=Pi(0);break;case"ZZZZZ":t=Pi(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Pi(1);break;case"OOOO":case"ZZZZ":case"zzzz":t=Pi(2);break;default:return null}return eu[e]=t,t}function Zh(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function xw(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Aw(e,t,n){let o=e.getTimezoneOffset(),i=Zh(t,o);return xw(e,-1*(i-o))}function Ow(e){if(Fh(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return ji(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(Cw))return kw(r)}let t=new Date(e);if(!Fh(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function kw(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,c,u),t}function Fh(e){return e instanceof Date&&!isNaN(e.valueOf())}var tu=/\s+/,Lh=[],Pw=(()=>{class e{_ngEl;_renderer;initialClasses=Lh;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(tu):Lh}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(tu):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(tu).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(ie(yr),ie(Ti))};static \u0275dir=_n({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();function Fw(e,t){return new v(2100,!1)}var Lw="mediumDate",Yh=new E(""),Qh=new E(""),jw=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??Lw,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Gh(n,s,i||this.locale,a)}catch(s){throw Fw(e,s.message)}}static \u0275fac=function(r){return new(r||e)(ie(Ri,16),ie(Yh,24),ie(Qh,24))};static \u0275pipe=dh({name:"date",type:e,pure:!0})}return e})();var Kh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tn({type:e});static \u0275inj=In({})}return e})();function Tr(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var nu="browser",Xh="server";function Vi(e){return e===Xh}var qt=class{};var $i=new E(""),su=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new v(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I($i),I(X))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),_r=class{_doc;constructor(t){this._doc=t}manager},Bi="ng-app-id";function Jh(e){for(let t of e)t.remove()}function ep(e,t){let n=t.createElement("style");return n.textContent=e,n}function Uw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Bi}="${t}"],link[${Bi}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Bi),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function ou(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var au=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=Vi(i),Uw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ep);r?.forEach(o=>this.addUsage(o,this.external,ou))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Jh(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Jh(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ep(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,ou(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Bi,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(te),I(bc),I(Mc,8),I(Dr))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ru={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},cu=/%COMP%/g;var np="%COMP%",$w=`_nghost-${np}`,Hw=`_ngcontent-${np}`,zw=!0,qw=new E("",{providedIn:"root",factory:()=>zw});function Gw(e){return Hw.replace(cu,e)}function Ww(e){return $w.replace(cu,e)}function rp(e,t){return t.map(n=>n.replace(cu,e))}var uu=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=Vi(a),this.defaultRenderer=new Nr(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ge.ShadowDom&&(r=$(y({},r),{encapsulation:Ge.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Ui?o.applyToHost(n):o instanceof Rr&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,f=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Ge.Emulated:i=new Ui(c,u,r,this.appId,l,s,a,f,h);break;case Ge.ShadowDom:return new iu(c,u,n,r,s,a,this.nonce,f,h);default:i=new Rr(c,u,r,l,s,a,f,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(I(su),I(au),I(bc),I(qw),I(te),I(Dr),I(X),I(Mc),I(wi,8))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Nr=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(ru[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(tp(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(tp(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new v(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ru[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ru[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(it.DashCase|it.Important)?t.style.setProperty(n,r,o&it.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&it.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=ut().getGlobalEventTarget(this.doc,t),!t))throw new v(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function tp(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var iu=class extends Nr{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=rp(o.id,l);for(let h of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=h,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let h of f){let d=ou(h,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Rr=class extends Nr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?rp(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Ui=class extends Rr{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=Gw(l),this.hostAttr=Ww(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Hi=class e extends Ir{supportsDOMEvents=!0;static makeCurrent(){Qc(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=Zw();return n==null?null:Yw(n)}resetBaseElement(){xr=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Tr(document.cookie,t)}},xr=null;function Zw(){return xr=xr||document.head.querySelector("base"),xr?xr.getAttribute("href"):null}function Yw(e){return new URL(e,document.baseURI).pathname}var Qw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),ip=(()=>{class e extends _r{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(I(te))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),op=["alt","control","meta","shift"],Kw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Xw={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},sp=(()=>{class e extends _r{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ut().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),op.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Kw[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),op.forEach(s=>{if(s!==o){let a=Xw[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(te))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();function Jw(e,t,n){return _h(y({rootComponent:e,platformRef:n?.platformRef},eI(t)))}function eI(e){return{appProviders:[...iI,...e?.providers??[]],platformProviders:oI}}function tI(){Hi.makeCurrent()}function nI(){return new ot}function rI(){return If(document),document}var oI=[{provide:Dr,useValue:nu},{provide:Sc,useValue:tI,multi:!0},{provide:te,useFactory:rI}];var iI=[{provide:yi,useValue:"root"},{provide:ot,useFactory:nI},{provide:$i,useClass:ip,multi:!0,deps:[te]},{provide:$i,useClass:sp,multi:!0,deps:[te]},uu,au,su,{provide:Dn,useExisting:uu},{provide:qt,useClass:Qw},[]];var An=class{},Ar=class{},St=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var qi=class{encodeKey(t){return ap(t)}encodeValue(t){return ap(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function sI(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var aI=/%(\d[a-f0-9])/gi,cI={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ap(e){return encodeURIComponent(e).replace(aI,(t,n)=>cI[n]??t)}function zi(e){return`${e}`}var ft=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new qi,t.fromString){if(t.fromObject)throw new v(2805,!1);this.map=sI(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(zi):[zi(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(zi(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(zi(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Gi=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function uI(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function cp(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function up(e){return typeof Blob<"u"&&e instanceof Blob}function lp(e){return typeof FormData<"u"&&e instanceof FormData}function lI(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var dp="Content-Type",fp="Accept",hp="X-Request-URL",pp="text/plain",gp="application/json",dI=`${gp}, ${pp}, */*`,xn=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(uI(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new St,this.context??=new Gi,!this.params)this.params=new ft,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||cp(this.body)||up(this.body)||lp(this.body)||lI(this.body)?this.body:this.body instanceof ft?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||lp(this.body)?null:up(this.body)?this.body.type||null:cp(this.body)?null:typeof this.body=="string"?pp:this.body instanceof ft?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?gp:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress,u=t.headers||this.headers,l=t.params||this.params,f=t.context??this.context;return t.setHeaders!==void 0&&(u=Object.keys(t.setHeaders).reduce((h,d)=>h.set(d,t.setHeaders[d]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,d)=>h.set(d,t.setParams[d]),l)),new e(n,r,s,{params:l,headers:u,context:f,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},Gt=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Gt||{}),On=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new St,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Wi=class e extends On{constructor(t={}){super(t)}type=Gt.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Or=class e extends On{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Gt.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},kr=class extends On{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},fI=200,hI=204;function lu(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var mp=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof xn)i=n;else{let c;o.headers instanceof St?c=o.headers:c=new St(o.headers);let u;o.params&&(o.params instanceof ft?u=o.params:u=new ft({fromObject:o.params})),i=new xn(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=C(i).pipe(yt(c=>this.handler.handle(c)));if(n instanceof xn||o.observe==="events")return s;let a=s.pipe(we(c=>c instanceof Or));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new v(2806,!1);return c.body}));case"blob":return a.pipe(x(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new v(2807,!1);return c.body}));case"text":return a.pipe(x(c=>{if(c.body!==null&&typeof c.body!="string")throw new v(2808,!1);return c.body}));default:return a.pipe(x(c=>c.body))}case"response":return a;default:throw new v(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ft().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,lu(o,r))}post(n,r,o={}){return this.request("POST",n,lu(o,r))}put(n,r,o={}){return this.request("PUT",n,lu(o,r))}static \u0275fac=function(r){return new(r||e)(I(An))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var pI=new E("");function gI(e,t){return t(e)}function mI(e,t,n){return(r,o)=>Ce(n,()=>t(r,i=>e(i,o)))}var yp=new E(""),vp=new E(""),Dp=new E("",{providedIn:"root",factory:()=>!0});var Zi=(()=>{class e extends An{backend;injector;chain=null;pendingTasks=g(It);contributeToStability=g(Dp);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(yp),...this.injector.get(vp,[])]));this.chain=r.reduceRight((o,i)=>mI(o,i,this.injector),gI)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(At(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(Ar),I(ue))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})();var yI=/^\)\]\}',?\n/,vI=RegExp(`^${hp}:`,"m");function DI(e){return"responseURL"in e&&e.responseURL?e.responseURL:vI.test(e.getAllResponseHeaders())?e.getResponseHeader(hp):null}var du=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new v(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?H(r.\u0275loadImpl()):C(null)).pipe(Ie(()=>new P(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((m,D)=>s.setRequestHeader(m,D.join(","))),n.headers.has(fp)||s.setRequestHeader(fp,dI),!n.headers.has(dp)){let m=n.detectContentTypeHeader();m!==null&&s.setRequestHeader(dp,m)}if(n.responseType){let m=n.responseType.toLowerCase();s.responseType=m!=="json"?m:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let m=s.statusText||"OK",D=new St(s.getAllResponseHeaders()),R=DI(s)||n.url;return c=new Wi({headers:D,status:s.status,statusText:m,url:R}),c},l=()=>{let{headers:m,status:D,statusText:R,url:Ue}=u(),Z=null;D!==hI&&(Z=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=Z?fI:0);let Is=D>=200&&D<300;if(n.responseType==="json"&&typeof Z=="string"){let hg=Z;Z=Z.replace(yI,"");try{Z=Z!==""?JSON.parse(Z):null}catch(pg){Z=hg,Is&&(Is=!1,Z={error:pg,text:Z})}}Is?(i.next(new Or({body:Z,headers:m,status:D,statusText:R,url:Ue||void 0})),i.complete()):i.error(new kr({error:Z,headers:m,status:D,statusText:R,url:Ue||void 0}))},f=m=>{let{url:D}=u(),R=new kr({error:m,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});i.error(R)},h=!1,d=m=>{h||(i.next(u()),h=!0);let D={type:Gt.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(D.total=m.total),n.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),i.next(D)},p=m=>{let D={type:Gt.UploadProgress,loaded:m.loaded};m.lengthComputable&&(D.total=m.total),i.next(D)};return s.addEventListener("load",l),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",d),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Gt.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",l),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",d),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(qt))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),Ep=new E(""),EI="XSRF-TOKEN",wI=new E("",{providedIn:"root",factory:()=>EI}),II="X-XSRF-TOKEN",CI=new E("",{providedIn:"root",factory:()=>II}),Pr=class{},bI=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tr(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(I(te),I(wI))};static \u0275prov=w({token:e,factory:e.\u0275fac})}return e})(),SI=/^(?:https?:)?\/\//i;function MI(e,t){if(!g(Ep)||e.method==="GET"||e.method==="HEAD"||SI.test(e.url))return t(e);let n=g(Pr).getToken(),r=g(CI);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function TI(...e){let t=[mp,du,Zi,{provide:An,useExisting:Zi},{provide:Ar,useFactory:()=>g(pI,{optional:!0})??g(du)},{provide:yp,useValue:MI,multi:!0},{provide:Ep,useValue:!0},{provide:Pr,useClass:bI}];for(let n of e)t.push(...n.\u0275providers);return hr(t)}var wp=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(I(te))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var M="primary",Yr=Symbol("RouteTitle"),mu=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Yt(e){return new mu(e)}function Np(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function NI(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Ze(e[n],t[n]))return!1;return!0}function Ze(e,t){let n=e?yu(e):void 0,r=t?yu(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!Rp(e[o],t[o]))return!1;return!0}function yu(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function Rp(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function xp(e){return e.length>0?e[e.length-1]:null}function _t(e){return Qs(e)?e:wr(e)?H(Promise.resolve(e)):C(e)}var RI={exact:Op,subset:kp},Ap={exact:xI,subset:AI,ignored:()=>!0};function Ip(e,t,n){return RI[n.paths](e.root,t.root,n.matrixParams)&&Ap[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function xI(e,t){return Ze(e,t)}function Op(e,t,n){if(!Wt(e.segments,t.segments)||!Ki(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Op(e.children[r],t.children[r],n))return!1;return!0}function AI(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Rp(e[n],t[n]))}function kp(e,t,n){return Pp(e,t,t.segments,n)}function Pp(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Wt(o,n)||t.hasChildren()||!Ki(o,n,r))}else if(e.segments.length===n.length){if(!Wt(e.segments,n)||!Ki(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!kp(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Wt(e.segments,o)||!Ki(e.segments,o,r)||!e.children[M]?!1:Pp(e.children[M],t,i,r)}}function Ki(e,t,n){return t.every((r,o)=>Ap[n](e[o].parameters,r.parameters))}var Qe=class{root;queryParams;fragment;_queryParamMap;constructor(t=new L([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Yt(this.queryParams),this._queryParamMap}toString(){return PI.serialize(this)}},L=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Xi(this)}},Mt=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Yt(this.parameters),this._parameterMap}toString(){return Lp(this)}};function OI(e,t){return Wt(e,t)&&e.every((n,r)=>Ze(n.parameters,t[r].parameters))}function Wt(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function kI(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===M&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==M&&(n=n.concat(t(o,r)))}),n}var Qr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>new Qt,providedIn:"root"})}return e})(),Qt=class{parse(t){let n=new Du(t);return new Qe(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Fr(t.root,!0)}`,r=jI(t.queryParams),o=typeof t.fragment=="string"?`#${FI(t.fragment)}`:"";return`${n}${r}${o}`}},PI=new Qt;function Xi(e){return e.segments.map(t=>Lp(t)).join("/")}function Fr(e,t){if(!e.hasChildren())return Xi(e);if(t){let n=e.children[M]?Fr(e.children[M],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==M&&r.push(`${o}:${Fr(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=kI(e,(r,o)=>o===M?[Fr(e.children[M],!1)]:[`${o}:${Fr(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[M]!=null?`${Xi(e)}/${n[0]}`:`${Xi(e)}/(${n.join("//")})`}}function Fp(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Yi(e){return Fp(e).replace(/%3B/gi,";")}function FI(e){return encodeURI(e)}function vu(e){return Fp(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ji(e){return decodeURIComponent(e)}function Cp(e){return Ji(e.replace(/\+/g,"%20"))}function Lp(e){return`${vu(e.path)}${LI(e.parameters)}`}function LI(e){return Object.entries(e).map(([t,n])=>`;${vu(t)}=${vu(n)}`).join("")}function jI(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Yi(n)}=${Yi(o)}`).join("&"):`${Yi(n)}=${Yi(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var VI=/^[^\/()?;#]+/;function fu(e){let t=e.match(VI);return t?t[0]:""}var BI=/^[^\/()?;=#]+/;function UI(e){let t=e.match(BI);return t?t[0]:""}var $I=/^[^=?&#]+/;function HI(e){let t=e.match($I);return t?t[0]:""}var zI=/^[^&#]+/;function qI(e){let t=e.match(zI);return t?t[0]:""}var Du=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new L([],{}):new L([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[M]=new L(t,n)),r}parseSegment(){let t=fu(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new v(4009,!1);return this.capture(t),new Mt(Ji(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=UI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=fu(this.remaining);o&&(r=o,this.capture(r))}t[Ji(n)]=Ji(r)}parseQueryParam(t){let n=HI(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=qI(this.remaining);s&&(r=s,this.capture(r))}let o=Cp(n),i=Cp(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=fu(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new v(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=M);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[M]:new L([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new v(4011,!1)}};function jp(e){return e.segments.length>0?new L([],{[M]:e}):e}function Vp(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Vp(o);if(r===M&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new L(e.segments,t);return GI(n)}function GI(e){if(e.numberOfChildren===1&&e.children[M]){let t=e.children[M];return new L(e.segments.concat(t.segments),t.children)}return e}function Tt(e){return e instanceof Qe}function Bp(e,t,n=null,r=null){let o=Up(e);return $p(o,t,n,r)}function Up(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new L(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=jp(r);return t??o}function $p(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return hu(o,o,o,n,r);let i=WI(t);if(i.toRoot())return hu(o,o,new L([],{}),n,r);let s=ZI(i,o,e),a=s.processChildren?jr(s.segmentGroup,s.index,i.commands):zp(s.segmentGroup,s.index,i.commands);return hu(o,s.segmentGroup,a,n,r)}function ts(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Br(e){return typeof e=="object"&&e!=null&&e.outlets}function hu(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;e===t?s=n:s=Hp(e,t,n);let a=jp(Vp(s));return new Qe(a,i,o)}function Hp(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Hp(i,t,n)}),new L(e.segments,r)}var ns=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ts(r[0]))throw new v(4003,!1);let o=r.find(Br);if(o&&o!==xp(r))throw new v(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function WI(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ns(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ns(n,t,r)}var Fn=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function ZI(e,t,n){if(e.isAbsolute)return new Fn(t,!0,0);if(!n)return new Fn(t,!1,NaN);if(n.parent===null)return new Fn(n,!0,0);let r=ts(e.commands[0])?0:1,o=n.segments.length-1+r;return YI(n,o,e.numberOfDoubleDots)}function YI(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new v(4005,!1);o=r.segments.length}return new Fn(r,!1,o-i)}function QI(e){return Br(e[0])?e[0].outlets:{[M]:e}}function zp(e,t,n){if(e??=new L([],{}),e.segments.length===0&&e.hasChildren())return jr(e,t,n);let r=KI(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new L(e.segments.slice(0,r.pathIndex),{});return i.children[M]=new L(e.segments.slice(r.pathIndex),e.children),jr(i,0,o)}else return r.match&&o.length===0?new L(e.segments,{}):r.match&&!e.hasChildren()?Eu(e,t,n):r.match?jr(e,0,o):Eu(e,t,n)}function jr(e,t,n){if(n.length===0)return new L(e.segments,{});{let r=QI(n),o={};if(Object.keys(r).some(i=>i!==M)&&e.children[M]&&e.numberOfChildren===1&&e.children[M].segments.length===0){let i=jr(e.children[M],t,n);return new L(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=zp(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new L(e.segments,o)}}function KI(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Br(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!Sp(c,u,s))return i;r+=2}else{if(!Sp(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Eu(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Br(i)){let c=XI(i.outlets);return new L(r,c)}if(o===0&&ts(n[0])){let c=e.segments[t];r.push(new Mt(c.path,bp(n[0]))),o++;continue}let s=Br(i)?i.outlets[M]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&ts(a)?(r.push(new Mt(s,bp(a))),o+=2):(r.push(new Mt(s,{})),o++)}return new L(r,{})}function XI(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Eu(new L([],{}),0,r))}),t}function bp(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function Sp(e,t,n){return e==n.path&&Ze(t,n.parameters)}var es="imperative",ne=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(ne||{}),Se=class{id;url;constructor(t,n){this.id=t,this.url=n}},Kt=class extends Se{type=ne.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ke=class extends Se{urlAfterRedirects;type=ne.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},De=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e})(De||{}),Ur=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Ur||{}),Ye=class extends Se{reason;code;type=ne.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ht=class extends Se{reason;code;type=ne.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},jn=class extends Se{error;target;type=ne.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},$r=class extends Se{urlAfterRedirects;state;type=ne.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rs=class extends Se{urlAfterRedirects;state;type=ne.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},os=class extends Se{urlAfterRedirects;state;shouldActivate;type=ne.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},is=class extends Se{urlAfterRedirects;state;type=ne.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ss=class extends Se{urlAfterRedirects;state;type=ne.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},as=class{route;type=ne.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},cs=class{route;type=ne.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},us=class{snapshot;type=ne.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ls=class{snapshot;type=ne.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ds=class{snapshot;type=ne.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},fs=class{snapshot;type=ne.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Hr=class{},Vn=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function JI(e,t){return e.providers&&!e._injector&&(e._injector=Ni(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Be(e){return e.outlet||M}function eC(e,t){let n=e.filter(r=>Be(r)===t);return n.push(...e.filter(r=>Be(r)!==t)),n}function Kr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var hs=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Kr(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new $n(this.rootInjector)}},$n=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new hs(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I(ue))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ps=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=wu(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=wu(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Iu(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Iu(t,this._root).map(n=>n.value)}};function wu(e,t){if(e===t.value)return t;for(let n of t.children){let r=wu(e,n);if(r)return r}return null}function Iu(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Iu(e,n);if(r.length)return r.unshift(t),r}return[]}var be=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Pn(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var zr=class extends ps{snapshot;constructor(t,n){super(t),this.snapshot=n,Ru(this,t)}toString(){return this.snapshot.toString()}};function qp(e){let t=tC(e),n=new re([new Mt("",{})]),r=new re({}),o=new re({}),i=new re({}),s=new re(""),a=new pt(n,r,i,s,o,M,e,t.root);return a.snapshot=t.root,new zr(new be(a,[]),t)}function tC(e){let t={},n={},r={},i=new Zt([],t,r,"",n,M,e,null,{});return new qr("",new be(i,[]))}var pt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(x(u=>u[Yr]))??C(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(x(t=>Yt(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(x(t=>Yt(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function gs(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&Wp(o)&&(r.resolve[Yr]=o.title),r}var Zt=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Yr]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Yt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Yt(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},qr=class extends ps{url;constructor(t,n){super(n),this.url=t,Ru(this,n)}toString(){return Gp(this._root)}};function Ru(e,t){t.value._routerState=e,t.children.forEach(n=>Ru(e,n))}function Gp(e){let t=e.children.length>0?` { ${e.children.map(Gp).join(", ")} } `:"";return`${e.value}${t}`}function pu(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ze(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ze(t.params,n.params)||e.paramsSubject.next(n.params),NI(t.url,n.url)||e.urlSubject.next(n.url),Ze(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Cu(e,t){let n=Ze(e.params,t.params)&&OI(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Cu(e.parent,t.parent))}function Wp(e){return typeof e.title=="string"||e.title===null}var Zp=new E(""),xu=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=M;activateEvents=new ge;deactivateEvents=new ge;attachEvents=new ge;detachEvents=new ge;routerOutletData=pf(void 0);parentContexts=g($n);location=g(_i);changeDetector=g(xi);inputBinder=g(Ds,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new v(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new v(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new v(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new v(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new bu(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=_n({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[pr]})}return e})(),bu=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===pt?this.route:t===$n?this.childContexts:t===Zp?this.outletData:this.parent.get(t,n)}},Ds=new E("");var Au=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=lh({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&Wc(0,"router-outlet")},dependencies:[xu],encapsulation:2})}return e})();function Ou(e){let t=e.children&&e.children.map(Ou),n=t?$(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==M&&(n.component=Au),n}function nC(e,t,n){let r=Gr(e,t._root,n?n._root:void 0);return new zr(r,t)}function Gr(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=rC(e,t,n);return new be(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Gr(e,a)),s}}let r=oC(t.value),o=t.children.map(i=>Gr(e,i));return new be(r,o)}}function rC(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Gr(e,r,o);return Gr(e,r)})}function oC(e){return new pt(new re(e.url),new re(e.params),new re(e.queryParams),new re(e.fragment),new re(e.data),e.outlet,e.component,e)}var Bn=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},Yp="ngNavigationCancelingError";function ms(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Tt(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qp(!1,De.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Qp(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[Yp]=!0,n.cancellationCode=t,n}function iC(e){return Kp(e)&&Tt(e.url)}function Kp(e){return!!e&&e[Yp]}var sC=(e,t,n,r)=>x(o=>(new Su(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Su=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),pu(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Pn(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Pn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Pn(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Pn(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new fs(i.value.snapshot))}),t.children.length&&this.forwardEvent(new ls(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(pu(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),pu(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ys=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Ln=class{component;route;constructor(t,n){this.component=t,this.route=n}};function aC(e,t,n){let r=e._root,o=t?t._root:null;return Lr(r,o,n,[r.value])}function cC(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Hn(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!cd(e)?e:t.get(e):r}function Lr(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Pn(t);return e.children.forEach(s=>{uC(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Vr(a,n.getContext(s),o)),o}function uC(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=lC(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ys(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Lr(e,t,a?a.children:null,r,o):Lr(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ln(a.outlet.component,s))}else s&&Vr(t,a,o),o.canActivateChecks.push(new ys(r)),i.component?Lr(e,null,a?a.children:null,r,o):Lr(e,null,n,r,o);return o}function lC(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Wt(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Wt(e.url,t.url)||!Ze(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cu(e,t)||!Ze(e.queryParams,t.queryParams);default:return!Cu(e,t)}}function Vr(e,t,n){let r=Pn(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Vr(s,t.children.getContext(i),n):Vr(s,null,n):Vr(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Ln(t.outlet.component,o)):n.canDeactivateChecks.push(new Ln(null,o)):n.canDeactivateChecks.push(new Ln(null,o))}function Xr(e){return typeof e=="function"}function dC(e){return typeof e=="boolean"}function fC(e){return e&&Xr(e.canLoad)}function hC(e){return e&&Xr(e.canActivate)}function pC(e){return e&&Xr(e.canActivateChild)}function gC(e){return e&&Xr(e.canDeactivate)}function mC(e){return e&&Xr(e.canMatch)}function Xp(e){return e instanceof Je||e?.name==="EmptyError"}var Qi=Symbol("INITIAL_VALUE");function Un(){return Ie(e=>xo(e.map(t=>t.pipe(et(1),Js(Qi)))).pipe(x(t=>{for(let n of t)if(n!==!0){if(n===Qi)return Qi;if(n===!1||yC(n))return n}return!0}),we(t=>t!==Qi),et(1)))}function yC(e){return Tt(e)||e instanceof Bn}function vC(e,t){return Q(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?C($(y({},n),{guardsResult:!0})):DC(s,r,o,e).pipe(Q(a=>a&&dC(a)?EC(r,i,e,t):C(a)),x(a=>$(y({},n),{guardsResult:a})))})}function DC(e,t,n,r){return H(e).pipe(Q(o=>SC(o.component,o.route,n,t,r)),tt(o=>o!==!0,!0))}function EC(e,t,n,r){return H(t).pipe(yt(o=>an(IC(o.route.parent,r),wC(o.route,r),bC(e,o.path,n),CC(e,o.route,n))),tt(o=>o!==!0,!0))}function wC(e,t){return e!==null&&t&&t(new ds(e)),C(!0)}function IC(e,t){return e!==null&&t&&t(new us(e)),C(!0)}function CC(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return C(!0);let o=r.map(i=>Ao(()=>{let s=Kr(t)??n,a=Hn(i,s),c=hC(a)?a.canActivate(t,e):Ce(s,()=>a(t,e));return _t(c).pipe(tt())}));return C(o).pipe(Un())}function bC(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>cC(s)).filter(s=>s!==null).map(s=>Ao(()=>{let a=s.guards.map(c=>{let u=Kr(s.node)??n,l=Hn(c,u),f=pC(l)?l.canActivateChild(r,e):Ce(u,()=>l(r,e));return _t(f).pipe(tt())});return C(a).pipe(Un())}));return C(i).pipe(Un())}function SC(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return C(!0);let s=i.map(a=>{let c=Kr(t)??o,u=Hn(a,c),l=gC(u)?u.canDeactivate(e,t,n,r):Ce(c,()=>u(e,t,n,r));return _t(l).pipe(tt())});return C(s).pipe(Un())}function MC(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return C(!0);let i=o.map(s=>{let a=Hn(s,e),c=fC(a)?a.canLoad(t,n):Ce(e,()=>a(t,n));return _t(c)});return C(i).pipe(Un(),Jp(r))}function Jp(e){return Gs(oe(t=>{if(typeof t!="boolean")throw ms(e,t)}),x(t=>t===!0))}function TC(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return C(!0);let i=o.map(s=>{let a=Hn(s,e),c=mC(a)?a.canMatch(t,n):Ce(e,()=>a(t,n));return _t(c)});return C(i).pipe(Un(),Jp(r))}var Wr=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},Zr=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function kn(e){return sn(new Wr(e))}function _C(e){return sn(new v(4e3,!1))}function NC(e){return sn(Qp(!1,De.GuardRejected))}var Mu=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return C(r);if(o.numberOfChildren>1||!o.children[M])return _C(`${t.redirectTo}`);o=o.children[M]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:c,fragment:u,routeConfig:l,url:f,outlet:h,params:d,data:p,title:m}=o,D=Ce(i,()=>a({params:d,data:p,queryParams:c,fragment:u,routeConfig:l,url:f,outlet:h,title:m}));if(D instanceof Qe)throw new Zr(D);n=D}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Zr(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Qe(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new L(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new v(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},Tu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function RC(e,t,n,r,o){let i=eg(e,t,n);return i.matched?(r=JI(t,r),TC(r,t,n,o).pipe(x(s=>s===!0?i:y({},Tu)))):C(i)}function eg(e,t,n){if(t.path==="**")return xC(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},Tu):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Np)(n,e,t);if(!o)return y({},Tu);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function xC(e){return{matched:!0,parameters:e.length>0?xp(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function Mp(e,t,n,r){return n.length>0&&kC(e,n,r)?{segmentGroup:new L(t,OC(r,new L(n,e.children))),slicedSegments:[]}:n.length===0&&PC(e,n,r)?{segmentGroup:new L(e.segments,AC(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new L(e.segments,e.children),slicedSegments:n}}function AC(e,t,n,r){let o={};for(let i of n)if(Es(e,t,i)&&!r[Be(i)]){let s=new L([],{});o[Be(i)]=s}return y(y({},r),o)}function OC(e,t){let n={};n[M]=t;for(let r of e)if(r.path===""&&Be(r)!==M){let o=new L([],{});n[Be(r)]=o}return n}function kC(e,t,n){return n.some(r=>Es(e,t,r)&&Be(r)!==M)}function PC(e,t,n){return n.some(r=>Es(e,t,r))}function Es(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function FC(e,t,n){return t.length===0&&!e.children[n]}var _u=class{};function LC(e,t,n,r,o,i,s="emptyOnly"){return new Nu(e,t,n,r,o,s,i).recognize()}var jC=31,Nu=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Mu(this.urlSerializer,this.urlTree)}noMatchError(t){return new v(4002,`'${t.segmentGroup}'`)}recognize(){let t=Mp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(x(({children:n,rootSnapshot:r})=>{let o=new be(r,n),i=new qr("",o),s=Bp(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new Zt([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),M,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,M,n).pipe(x(r=>({children:r,rootSnapshot:n})),mt(r=>{if(r instanceof Zr)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Wr?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(x(s=>s instanceof be?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return H(i).pipe(yt(s=>{let a=r.children[s],c=eC(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Xs((s,a)=>(s.push(...a),s)),vt(null),Ks(),Q(s=>{if(s===null)return kn(r);let a=tg(s);return VC(a),C(a)}))}processSegment(t,n,r,o,i,s,a){return H(n).pipe(yt(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(mt(u=>{if(u instanceof Wr)return C(null);throw u}))),tt(c=>!!c),mt(c=>{if(Xp(c))return FC(r,o,i)?C(new _u):kn(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return Be(r)!==s&&(s===M||!Es(o,i,r))?kn(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):kn(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:f,remainingSegments:h}=eg(n,o,i);if(!c)return kn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>jC&&(this.allowRedirects=!1));let d=new Zt(i,u,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Tp(o),Be(o),o.component??o._loadedComponent??null,o,_p(o)),p=gs(d,a,this.paramsInheritanceStrategy);d.params=Object.freeze(p.params),d.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,f,d,t);return this.applyRedirects.lineralizeSegments(o,m).pipe(Q(D=>this.processSegment(t,r,n,D.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=RC(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Ie(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(Ie(({routes:u})=>{let l=r._loadedInjector??t,{parameters:f,consumedSegments:h,remainingSegments:d}=c,p=new Zt(h,f,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Tp(r),Be(r),r.component??r._loadedComponent??null,r,_p(r)),m=gs(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:D,slicedSegments:R}=Mp(n,h,d,u);if(R.length===0&&D.hasChildren())return this.processChildren(l,u,D,p).pipe(x(Z=>new be(p,Z)));if(u.length===0&&R.length===0)return C(new be(p,[]));let Ue=Be(r)===i;return this.processSegment(l,u,D,R,Ue?M:i,!0,p).pipe(x(Z=>new be(p,Z instanceof be?[Z]:[])))}))):kn(n)))}getChildConfig(t,n,r){return n.children?C({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?C({routes:n._loadedRoutes,injector:n._loadedInjector}):MC(t,n,r,this.urlSerializer).pipe(Q(o=>o?this.configLoader.loadChildren(t,n).pipe(oe(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):NC(n))):C({routes:[],injector:t})}};function VC(e){e.sort((t,n)=>t.value.outlet===M?-1:n.value.outlet===M?1:t.value.outlet.localeCompare(n.value.outlet))}function BC(e){let t=e.value.routeConfig;return t&&t.path===""}function tg(e){let t=[],n=new Set;for(let r of e){if(!BC(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=tg(r.children);t.push(new be(r.value,o))}return t.filter(r=>!n.has(r))}function Tp(e){return e.data||{}}function _p(e){return e.resolve||{}}function UC(e,t,n,r,o,i){return Q(s=>LC(e,t,n,r,s.extractedUrl,o,i).pipe(x(({state:a,tree:c})=>$(y({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function $C(e,t){return Q(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return C(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of ng(c))s.add(u);let a=0;return H(s).pipe(yt(c=>i.has(c)?HC(c,r,e,t):(c.data=gs(c,c.parent,e).resolve,C(void 0))),oe(()=>a++),cn(1),Q(c=>a===s.size?C(n):fe))})}function ng(e){let t=e.children.map(n=>ng(n)).flat();return[e,...t]}function HC(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Wp(o)&&(i[Yr]=o.title),zC(i,e,t,r).pipe(x(s=>(e._resolvedData=s,e.data=gs(e,e.parent,n).resolve,null)))}function zC(e,t,n,r){let o=yu(e);if(o.length===0)return C({});let i={};return H(o).pipe(Q(s=>qC(e[s],t,n,r).pipe(tt(),oe(a=>{if(a instanceof Bn)throw ms(new Qt,a);i[s]=a}))),cn(1),x(()=>i),mt(s=>Xp(s)?fe:sn(s)))}function qC(e,t,n,r){let o=Kr(t)??r,i=Hn(e,o),s=i.resolve?i.resolve(t,n):Ce(o,()=>i(t,n));return _t(s)}function gu(e){return Ie(t=>{let n=e(t);return n?H(n).pipe(x(()=>t)):C(t)})}var ku=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===M);return r}getResolvedTitleForRoute(n){return n.data[Yr]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(rg),providedIn:"root"})}return e})(),rg=(()=>{class e extends ku{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(wp))};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jr=new E("",{providedIn:"root",factory:()=>({})}),eo=new E(""),og=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(Sh);loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return C(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=_t(n.loadComponent()).pipe(x(sg),oe(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),At(()=>{this.componentLoaders.delete(n)})),o=new on(r,()=>new ee).pipe(rn());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return C({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=ig(r,this.compiler,n,this.onLoadEndListener).pipe(At(()=>{this.childrenLoaders.delete(r)})),s=new on(i,()=>new ee).pipe(rn());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ig(e,t,n,r){return _t(e.loadChildren()).pipe(x(sg),Q(o=>o instanceof Hc||Array.isArray(o)?C(o):H(t.compileModuleAsync(o))),x(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(eo,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ou),injector:i}}))}function GC(e){return e&&typeof e=="object"&&"default"in e}function sg(e){return GC(e)?e.default:e}var ws=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(WC),providedIn:"root"})}return e})(),WC=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ag=new E("");var cg=new E(""),ug=(()=>{class e{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ee;transitionAbortSubject=new ee;configLoader=g(og);environmentInjector=g(ue);destroyRef=g(mr);urlSerializer=g(Qr);rootContexts=g($n);location=g(Rn);inputBindingEnabled=g(Ds,{optional:!0})!==null;titleStrategy=g(ku);options=g(Jr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(ws);createViewTransition=g(ag,{optional:!0});navigationErrorHandler=g(cg,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>C(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new as(o)),r=o=>this.events.next(new cs(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next($(y({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))}setupNavigations(n){return this.transitions=new re(null),this.transitions.pipe(we(r=>r!==null),Ie(r=>{let o=!1,i=!1;return C(r).pipe(Ie(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",De.SupersededByNewNavigation),fe;this.currentTransition=r,this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?$(y({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let a=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),c=s.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!a&&c!=="reload")return this.events.next(new ht(s.id,this.urlSerializer.serialize(s.rawUrl),"",Ur.IgnoredSameUrlNavigation)),s.resolve(!1),fe;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return C(s).pipe(Ie(u=>(this.events.next(new Kt(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?fe:Promise.resolve(u))),UC(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),oe(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation=$(y({},this.currentNavigation),{finalUrl:u.urlAfterRedirects});let l=new $r(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:u,extractedUrl:l,source:f,restoredState:h,extras:d}=s,p=new Kt(u,this.urlSerializer.serialize(l),f,h);this.events.next(p);let m=qp(this.rootComponentType).snapshot;return this.currentTransition=r=$(y({},s),{targetSnapshot:m,urlAfterRedirects:l,extras:$(y({},d),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=l,C(r)}else return this.events.next(new ht(s.id,this.urlSerializer.serialize(s.extractedUrl),"",Ur.IgnoredByUrlHandlingStrategy)),s.resolve(!1),fe}),oe(s=>{let a=new rs(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),x(s=>(this.currentTransition=r=$(y({},s),{guards:aC(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),vC(this.environmentInjector,s=>this.events.next(s)),oe(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw ms(this.urlSerializer,s.guardsResult);let a=new os(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),we(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",De.GuardRejected),!1)),gu(s=>{if(s.guards.canActivateChecks.length!==0)return C(s).pipe(oe(a=>{let c=new is(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),Ie(a=>{let c=!1;return C(a).pipe($C(this.paramsInheritanceStrategy,this.environmentInjector),oe({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",De.NoDataFromResolver)}}))}),oe(a=>{let c=new ss(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),gu(s=>{let a=c=>{let u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(oe(l=>{c.component=l}),x(()=>{})));for(let l of c.children)u.push(...a(l));return u};return xo(a(s.targetSnapshot.root)).pipe(vt(null),et(1))}),gu(()=>this.afterPreactivation()),Ie(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?H(c).pipe(x(()=>r)):C(r)}),x(s=>{let a=nC(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=$(y({},s),{targetRouterState:a}),this.currentNavigation.targetRouterState=a,r}),oe(()=>{this.events.next(new Hr)}),sC(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),et(1),oe({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ke(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),ea(this.transitionAbortSubject.pipe(oe(s=>{throw s}))),At(()=>{!o&&!i&&this.cancelNavigationTransition(r,"",De.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation=null,this.currentTransition=null)}),mt(s=>{if(this.destroyed)return r.resolve(!1),fe;if(i=!0,Kp(s))this.events.next(new Ye(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),iC(s)?this.events.next(new Vn(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new jn(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=Ce(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof Bn){let{message:u,cancellationCode:l}=ms(this.urlSerializer,c);this.events.next(new Ye(r.id,this.urlSerializer.serialize(r.extractedUrl),u,l)),this.events.next(new Vn(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return fe}))}))}cancelNavigationTransition(n,r,o){let i=new Ye(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ZC(e){return e!==es}var lg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(YC),providedIn:"root"})}return e})(),vs=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},YC=(()=>{class e extends vs{static \u0275fac=(()=>{let n;return function(o){return(n||(n=vc(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),dg=(()=>{class e{urlSerializer=g(Qr);options=g(Jr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(Rn);urlHandlingStrategy=g(ws);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Qe;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Qe?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=qp(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:()=>g(QC),providedIn:"root"})}return e})(),QC=(()=>{class e extends dg{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Kt?this.updateStateMemento():n instanceof ht?this.commitTransition(r):n instanceof $r?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Hr?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Ye&&(n.code===De.GuardRejected||n.code===De.NoDataFromResolver)?this.restoreHistory(r):n instanceof jn?this.restoreHistory(r,!0):n instanceof Ke&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=y(y({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=y(y({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=vc(e)))(o||e)}})();static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pu(e,t){e.events.pipe(we(n=>n instanceof Ke||n instanceof Ye||n instanceof jn||n instanceof ht),x(n=>n instanceof Ke||n instanceof ht?0:(n instanceof Ye?n.code===De.Redirect||n.code===De.SupersededByNewNavigation:!1)?2:1),we(n=>n!==2),et(1)).subscribe(()=>{t()})}var KC={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},to=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(gh);stateManager=g(dg);options=g(Jr,{optional:!0})||{};pendingTasks=g(It);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(ug);urlSerializer=g(Qr);location=g(Rn);urlHandlingStrategy=g(ws);_events=new ee;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(lg);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(eo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Ds,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new q;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ye&&r.code!==De.Redirect&&r.code!==De.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ke)this.navigated=!0;else if(r instanceof Vn){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=y({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||ZC(o.source)},s);this.scheduleNavigation(a,es,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}eb(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),es,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=y({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ou),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=Up(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return $p(f,n,l,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Tt(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,es,null,r)}navigate(n,r={skipLocationChange:!1}){return JC(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},KC):r===!1?o=y({},XC):o=r,Tt(n))return Ip(this.currentUrlTree,n,o);let i=this.parseUrl(n);return Ip(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,h)=>{a=f,c=h});let l=this.pendingTasks.add();return Pu(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function JC(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new v(4008,!1)}function eb(e){return!(e instanceof Hr)&&!(e instanceof Vn)}var fg=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ee;constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Ke&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Tt(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:Af(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:Tt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||e)(ie(to),ie(pt),Dc("tabindex"),ie(Ti),ie(yr),ie(Nn))};static \u0275dir=_n({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&&Zc("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Gc("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ai],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ai],replaceUrl:[2,"replaceUrl","replaceUrl",Ai],routerLink:"routerLink"},features:[pr]})}return e})();var nb=new E("");function rb(e,...t){return hr([{provide:eo,multi:!0,useValue:e},[],{provide:pt,useFactory:ob,deps:[to]},{provide:qc,multi:!0,useFactory:ib},t.map(n=>n.\u0275providers)])}function ob(e){return e.routerState.root}function ib(){let e=g(wt);return t=>{let n=e.get(Ht);if(t!==n.components[0])return;let r=e.get(to),o=e.get(sb);e.get(ab)===1&&r.initialNavigation(),e.get(cb,null,T.Optional)?.setUpPreloading(),e.get(nb,null,T.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var sb=new E("",{factory:()=>new ee}),ab=new E("",{providedIn:"root",factory:()=>1});var cb=new E("");export{y as a,$ as b,ee as c,H as d,x as e,Zg as f,sd as g,w as h,In as i,E as j,g as k,pr as l,sN as m,aN as n,vc as o,ge as p,X as q,yr as r,cN as s,uN as t,Ti as u,ie as v,lh as w,Tn as x,_n as y,QD as z,oE as A,wr as B,IE as C,CE as D,vN as E,DN as F,EN as G,Dh as H,Eh as I,Wc as J,wN as K,Zc as L,IN as M,CN as N,GE as O,Ih as P,WE as Q,ZE as R,YE as S,bN as T,QE as U,SN as V,MN as W,TN as X,_N as Y,NN as Z,xi as _,Ai as $,Dw as aa,RN as ba,ut as ca,Pw as da,jw as ea,Kh as fa,Jw as ga,mp as ha,TI as ia,pt as ja,xu as ka,to as la,fg as ma,rb as na};