@whoz-oss/coday-client 0.0.0-workstream-setup.11 → 0.0.0-workstream-forge.143

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 (89) hide show
  1. package/browser/chunk-4hdfcPO_.js +1 -0
  2. package/browser/chunk-8dP_JxoE.js +1 -0
  3. package/browser/chunk-B6zlaawE.js +1 -0
  4. package/browser/{chunk-WTk9cWbW.js → chunk-B8ms8uhY.js} +1 -1
  5. package/browser/chunk-BD4Yaamn.js +1 -0
  6. package/browser/{chunk-CDBmedks.js → chunk-BTNcfhJZ.js} +1 -1
  7. package/browser/{chunk-DXdoWn2P.js → chunk-BUxGVYDd.js} +1 -1
  8. package/browser/chunk-BVGub80j.js +1 -0
  9. package/browser/chunk-BYotL0cD.js +1027 -0
  10. package/browser/chunk-BdTNdn1P.js +1 -0
  11. package/browser/chunk-BjKOgP1d.js +1 -0
  12. package/browser/chunk-BqQkUXwZ.js +1 -0
  13. package/browser/chunk-BrZ81WqE.js +1 -0
  14. package/browser/chunk-ByvieLTc.js +1 -0
  15. package/browser/chunk-C-hfddbF.js +1 -0
  16. package/browser/chunk-C9jBkdam.js +1 -0
  17. package/browser/chunk-CA2QZTa2.js +1 -0
  18. package/browser/chunk-CFbqfROd.js +1 -0
  19. package/browser/chunk-CLKo9G-P.js +1 -0
  20. package/browser/{chunk-CM0-ogk7.js → chunk-CN47W66p.js} +1 -1
  21. package/browser/chunk-CWseXESw.js +2 -0
  22. package/browser/chunk-CeKeASfP.js +1 -0
  23. package/browser/chunk-Ckem2zi5.js +2 -0
  24. package/browser/chunk-Cni6uQjq.js +1 -0
  25. package/browser/chunk-D-cYONq_.js +1 -0
  26. package/browser/chunk-D27IL_3m.js +1 -0
  27. package/browser/chunk-DED5zMwn.js +2 -0
  28. package/browser/chunk-DFHrX195.js +1 -0
  29. package/browser/chunk-DSowzCxZ.js +1 -0
  30. package/browser/chunk-DTwIeBF1.js +1 -0
  31. package/browser/chunk-DYTDbT10.js +1 -0
  32. package/browser/chunk-DgyHKgE9.js +1 -0
  33. package/browser/chunk-DlC6NI_C.js +1 -0
  34. package/browser/chunk-DsemqyUC.js +1 -0
  35. package/browser/chunk-DyemIFJZ.js +1 -0
  36. package/browser/chunk-FZQnVWtG.js +1 -0
  37. package/browser/chunk-K2JAUFA1.js +1 -0
  38. package/browser/chunk-LsZlaaX5.js +1 -0
  39. package/browser/chunk-WgI1IYMY.js +1 -0
  40. package/browser/chunk-b_euGvMT.js +1 -0
  41. package/browser/chunk-ew5ufCGJ.js +1 -0
  42. package/browser/chunk-j3oyRCBo.js +1 -0
  43. package/browser/{chunk-DvfSkiIG.js → chunk-lHoAoydV.js} +1 -1
  44. package/browser/chunk-zM2e1ZMM.js +1 -0
  45. package/browser/index.html +1 -1
  46. package/browser/main-QSDGELPX.js +564 -0
  47. package/package.json +1 -1
  48. package/browser/chunk-1ufhYzY2.js +0 -1
  49. package/browser/chunk-AzIWPyDf.js +0 -1
  50. package/browser/chunk-B1MhIkCL.js +0 -1
  51. package/browser/chunk-BFmPLShN.js +0 -1
  52. package/browser/chunk-BVjbT75M.js +0 -1
  53. package/browser/chunk-BcExCF62.js +0 -1027
  54. package/browser/chunk-BgOdKoBw.js +0 -2
  55. package/browser/chunk-BjV-8aBx.js +0 -2
  56. package/browser/chunk-C-pBro4Y.js +0 -1
  57. package/browser/chunk-C2UgpJji.js +0 -1
  58. package/browser/chunk-C6dIhkYp.js +0 -1
  59. package/browser/chunk-C9ddTbqY.js +0 -1
  60. package/browser/chunk-CD8pGOgG.js +0 -1
  61. package/browser/chunk-CJ0SA9x9.js +0 -1
  62. package/browser/chunk-CJSP5uyu.js +0 -1
  63. package/browser/chunk-CRGtX9rm.js +0 -1
  64. package/browser/chunk-Cc2VGDUP.js +0 -1
  65. package/browser/chunk-Ce2-5x7g.js +0 -1
  66. package/browser/chunk-CgFzc-6k.js +0 -1
  67. package/browser/chunk-CiRocD7r.js +0 -2
  68. package/browser/chunk-CsHll_yS.js +0 -1
  69. package/browser/chunk-D2F4FKgz.js +0 -1
  70. package/browser/chunk-D3uylIQK.js +0 -1
  71. package/browser/chunk-DF_6S8cy.js +0 -1
  72. package/browser/chunk-DLu5wDCt.js +0 -1
  73. package/browser/chunk-DQn0-I7m.js +0 -1
  74. package/browser/chunk-DRp3UAqN.js +0 -1
  75. package/browser/chunk-DWY-iw1Y.js +0 -1
  76. package/browser/chunk-DWvsEMKr.js +0 -1
  77. package/browser/chunk-D_zIZIw8.js +0 -1
  78. package/browser/chunk-Dj8eqgRq.js +0 -2
  79. package/browser/chunk-DqUbO-fg.js +0 -1
  80. package/browser/chunk-EmYXSpRt.js +0 -1
  81. package/browser/chunk-Lk8HSQ2K.js +0 -1
  82. package/browser/chunk-QHBOfvtO.js +0 -1
  83. package/browser/chunk-UjfLbjzc.js +0 -1
  84. package/browser/chunk-bdoNwEKh.js +0 -1
  85. package/browser/chunk-h0VFPXbO.js +0 -1
  86. package/browser/chunk-h9n1wm2q.js +0 -1
  87. package/browser/chunk-t25AKbIW.js +0 -1
  88. package/browser/chunk-uUTCpixy.js +0 -1
  89. package/browser/main-YMB7ZRK6.js +0 -564
@@ -0,0 +1,564 @@
1
+ var p$1=Object.create;var j$4=Object.defineProperty,q$1=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$2=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$2=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j$4(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$2.call(b,c)&&l(a,c,b[c]);if(g$2)for(var c of g$2(b))m.call(b,c)&&l(a,c,b[c]);return a},x$2=(a,b)=>q$1(a,s(b));var y$3=(a,b)=>{var c={};for(var d in a)k$2.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$2)for(var d of g$2(a))b.indexOf(d)<0&&m.call(a,d)&&(c[d]=a[d]);return c};var z$4=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$2.call(a,e)&&e!==c&&j$4(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$2=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v(!a||!a.__esModule?j$4(c,"default",{value:a,enumerable:true}):c,a));var B$1=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f));}catch(i){e(i);}},o=f=>{try{h(c.throw(f));}catch(i){e(i);}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next());});function x$1(e){return typeof e=="function"}function mn$2(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 ss$1=mn$2(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 Vn$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ae$2=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;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(x$1(r))try{r();}catch(i){t=i instanceof ss$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{$h(i);}catch(s){t=t??[],s instanceof ss$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new ss$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)$h(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)&&Vn$2(n,t);}remove(t){let{_finalizers:n}=this;n&&Vn$2(n,t),t instanceof e&&t._removeParent(this);}};ae$2.EMPTY=(()=>{let e=new ae$2;return e.closed=true,e})();var mu=ae$2.EMPTY;function as(e){return e instanceof ae$2||e&&"closed"in e&&x$1(e.remove)&&x$1(e.add)&&x$1(e.unsubscribe)}function $h(e){x$1(e)?e():e.unsubscribe();}var ut$2={Promise:void 0};var Nr={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function cs(e){Nr.setTimeout(()=>{throw e});}function zt$1(){}function Rr(e){e();}var zn$2=class zn extends ae$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,as(t)&&t.add(this)):this.destination=ZE;}static create(t,n,r){return new lt$2(t,n,r)}next(t){this.isStopped?Du():this._next(t);}error(t){this.isStopped?Du():(this.isStopped=true,this._error(t));}complete(){this.isStopped?Du():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,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();}}};var Eu=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){us(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){us(r);}else us(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){us(n);}}},lt$2=class lt extends zn$2{constructor(t,n,r){super();let o;if(x$1(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Eu(o);}};function us(e){cs(e);}function qE(e){throw e}function Du(e,t){}var ZE={closed:true,next:zt$1,error:qE,complete:zt$1};var Ar=typeof Symbol=="function"&&Symbol.observable||"@@observable";function He$1(e){return e}function wu(...e){return Iu(e)}function Iu(e){return e.length===0?He$1:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var k$1=(()=>{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=QE(n)?n:new lt$2(n,r,o);return Rr(()=>{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=Zh(r),new r((o,i)=>{let s=new lt$2({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)}[Ar](){return this}pipe(...n){return Iu(n)(this)}toPromise(n){return n=Zh(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 Zh(e){var t;return (t=e??ut$2.Promise)!==null&&t!==void 0?t:Promise}function YE(e){return e&&x$1(e.next)&&x$1(e.error)&&x$1(e.complete)}function QE(e){return e&&e instanceof zn$2||YE(e)&&as(e)}var Yh=mn$2(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ne$1=(()=>{class e extends k$1{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new ls(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Yh}next(n){Rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Rr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,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?mu:(this.currentObservers=null,i.push(n),new ae$2(()=>{this.currentObservers=null,Vn$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new k$1;return n.source=this,n}}return e.create=(t,n)=>new ls(t,n),e})(),ls=class extends ne$1{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:mu}};var De$3=class De extends ne$1{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 he$3=new k$1(e=>e.complete());function ds(e){return e&&x$1(e.schedule)}function Cu(e){return e[e.length-1]}function fs(e){return x$1(Cu(e))?e.pop():void 0}function bt$2(e){return ds(Cu(e))?e.pop():void 0}function Qh(e,t){return typeof Cu(e)=="number"?e.pop():t}function Jh(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(d){s(d);}}function c(l){try{u(r.throw(l));}catch(d){s(d);}}function u(l){l.done?i(l.value):o(l.value).then(a,c);}u((r=r.apply(e,[])).next());})}function Kh(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 Gn$2(e){return this instanceof Gn$2?(this.v=e,this):new Gn$2(e)}function Xh(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(h){return function(g){return Promise.resolve(g).then(h,d)}}function a(h,g){r[h]&&(o[h]=function(v){return new Promise(function(E,M){i.push([h,v,E,M])>1||c(h,v);})},g&&(o[h]=g(o[h])));}function c(h,g){try{u(r[h](g));}catch(v){f(i[0][3],v);}}function u(h){h.value instanceof Gn$2?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h);}function l(h){c("next",h);}function d(h){c("throw",h);}function f(h,g){h(g),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function ep(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 Kh=="function"?Kh(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 hs=e=>e&&typeof e.length=="number"&&typeof e!="function";function ps(e){return x$1(e?.then)}function gs(e){return x$1(e[Ar])}function ms$1(e){return Symbol.asyncIterator&&x$1(e?.[Symbol.asyncIterator])}function ys(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 KE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vs=KE();function Ds(e){return x$1(e?.[vs])}function Es(e){return Xh(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield Gn$2(n.read());if(o)return yield Gn$2(void 0);yield yield Gn$2(r);}}finally{n.releaseLock();}})}function ws(e){return x$1(e?.getReader)}function L$4(e){if(e instanceof k$1)return e;if(e!=null){if(gs(e))return JE(e);if(hs(e))return XE(e);if(ps(e))return ew(e);if(ms$1(e))return tp(e);if(Ds(e))return tw(e);if(ws(e))return nw(e)}throw ys(e)}function JE(e){return new k$1(t=>{let n=e[Ar]();if(x$1(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function XE(e){return new k$1(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function ew(e){return new k$1(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,cs);})}function tw(e){return new k$1(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function tp(e){return new k$1(t=>{rw(e,t).catch(n=>t.error(n));})}function nw(e){return tp(Es(e))}function rw(e,t){var n,r,o,i;return Jh(this,void 0,void 0,function*(){try{for(n=ep(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 Ie$4(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function ow(e){return x$1(e?.lift)}function S(e){return t=>{if(ow(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 T$1(e,t,n,r,o){return new bu(e,t,n,r,o)}var bu=class extends zn$2{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 Is(e,t=0){return S((n,r)=>{n.subscribe(T$1(r,o=>Ie$4(r,e,()=>r.next(o),t),()=>Ie$4(r,e,()=>r.complete(),t),o=>Ie$4(r,e,()=>r.error(o),t)));})}function Cs(e,t=0){return S((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function np(e,t){return L$4(e).pipe(Cs(t),Is(t))}function rp(e,t){return L$4(e).pipe(Cs(t),Is(t))}function op(e,t){return new k$1(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function ip(e,t){return new k$1(n=>{let r;return Ie$4(n,t,()=>{r=e[vs](),Ie$4(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,true);}),()=>x$1(r?.return)&&r.return()})}function bs(e,t){if(!e)throw new Error("Iterable cannot be null");return new k$1(n=>{Ie$4(n,t,()=>{let r=e[Symbol.asyncIterator]();Ie$4(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function sp(e,t){return bs(Es(e),t)}function ap(e,t){if(e!=null){if(gs(e))return np(e,t);if(hs(e))return op(e,t);if(ps(e))return rp(e,t);if(ms$1(e))return bs(e,t);if(Ds(e))return ip(e,t);if(ws(e))return sp(e,t)}throw ys(e)}function Y$1(e,t){return t?ap(e,t):L$4(e)}function _$3(...e){let t=bt$2(e);return Y$1(e,t)}var Gt$1=mn$2(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function iw(e,t){return new Promise((r,o)=>{let i=new lt$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new Gt$1);}});e.subscribe(i);})}function j$3(e,t){return S((n,r)=>{let o=0;n.subscribe(T$1(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:sw}=Array,{getPrototypeOf:aw,prototype:cw,keys:uw}=Object;function Ss(e){if(e.length===1){let t=e[0];if(sw(t))return {args:t,keys:null};if(lw(t)){let n=uw(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function lw(e){return e&&typeof e=="object"&&aw(e)===cw}var{isArray:dw}=Array;function fw(e,t){return dw(t)?e(...t):e(t)}function Ts(e){return j$3(t=>fw(e,t))}function _s(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ms(...e){let t=bt$2(e),n=fs(e),{args:r,keys:o}=Ss(e);if(r.length===0)return Y$1([],t);let i=new k$1(hw(r,t,o?s=>_s(o,s):He$1));return n?i.pipe(Ts(n)):i}function hw(e,t,n=He$1){return r=>{cp(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)cp(t,()=>{let u=Y$1(e[c],t),l=false;u.subscribe(T$1(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function cp(e,t,n){e?Ie$4(n,e,t):t();}function pw(...e){let t=fs(e),{args:n,keys:r}=Ss(e),o=new k$1(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 d=false;L$4(n[l]).subscribe(T$1(i,f=>{d||(d=true,u--),a[l]=f;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?_s(r,a):a),i.complete());}));}});return t?o.pipe(Ts(t)):o}function Wn$2(e){return S((t,n)=>{let r=null,o=!1,i;r=t.subscribe(T$1(n,void 0,void 0,s=>{i=L$4(e(s,Wn$2(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var Ns=class extends ae$2{constructor(t,n){super();}schedule(t,n=0){return this}};var Ro={setInterval(e,t,...n){let{delegate:r}=Ro;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var Rs=class extends Ns{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Ro.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&Ro.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,Vn$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Ao={now(){return (Ao.delegate||Date).now()},delegate:void 0};var xr=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};xr.now=Ao.now;var As=class extends xr{constructor(t,n=xr.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var Wt$1=new As(Rs),up=Wt$1;function lp(e,t=Wt$1){return S((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,r.next(u);}};function c(){let u=s+e,l=t.now();if(l<u){o=this.schedule(void 0,u-l),r.add(o);return}a();}n.subscribe(T$1(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}var xo=class extends ne$1{constructor(t=1/0,n=1/0,r=Ao){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function Tu(e={}){let{connector:t=()=>new ne$1,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,f=()=>{a?.unsubscribe(),a=void 0;},h=()=>{f(),s=c=void 0,l=d=false;},g=()=>{let v=s;h(),v?.unsubscribe();};return S((v,E)=>{u++,!d&&!l&&f();let M=c=c??t();E.add(()=>{u--,u===0&&!d&&!l&&(a=Su(g,o));}),M.subscribe(E),!s&&u>0&&(s=new lt$2({next:z=>M.next(z),error:z=>{d=!0,f(),a=Su(h,n,z),M.error(z);},complete:()=>{l=!0,f(),a=Su(h,r),M.complete();}}),L$4(v).subscribe(s));})(i)}}function Su(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new lt$2({next:()=>{r.unsubscribe(),e();}});return L$4(t(...n)).subscribe(r)}function gw(e,t,n){let r,o=false;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=false,scheduler:n}=e:r=e??1/0,Tu({connector:()=>new xo(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Ce$4(e,t){return S((n,r)=>{let o=0;n.subscribe(T$1(r,i=>e.call(t,i,o++)&&r.next(i)));})}function dp(e){return Ce$4((t,n)=>e<=n)}function xs(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,f=()=>{d&&!c.length&&!u&&t.complete();},h=v=>u<r?g(v):c.push(v),g=v=>{i&&t.next(v),u++;let E=false;L$4(n(v,l++)).subscribe(T$1(t,M=>{i?h(M):t.next(M);},()=>{E=true;},void 0,()=>{if(E)try{for(u--;c.length&&u<r;){let M=c.shift();s?Ie$4(t,s,()=>g(M)):g(M);}f();}catch(M){t.error(M);}}));};return e.subscribe(T$1(t,h,()=>{d=true,f();})),()=>{}}function pe$3(e,t,n=1/0){return x$1(t)?pe$3((r,o)=>j$3((i,s)=>t(r,i,o,s))(L$4(e(r,o))),n):(typeof t=="number"&&(n=t),S((r,o)=>xs(r,o,e,n)))}function St$1(e=1/0){return pe$3(He$1,e)}function fp(){return St$1(1)}function Tt$2(...e){return fp()(Y$1(e,bt$2(e)))}function Os(...e){let t=bt$2(e);return S((n,r)=>{(t?Tt$2(e,n,t):Tt$2(e,n)).subscribe(r);})}function Ae$4(e,t){return S((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(T$1(r,c=>{o?.unsubscribe();let u=0,l=i++;L$4(e(c,l)).subscribe(o=T$1(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Le$2(e,t,n){let r=x$1(e)||t||n?{next:e,error:t,complete:n}:e;return r?S((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(T$1(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);}));}):He$1}function _u(e,t){let n=x$1(e)?e:()=>e,r=o=>o.error(n());return new k$1(r)}function ks(e){return !!e&&(e instanceof k$1||x$1(e.lift)&&x$1(e.subscribe))}function Ps(e){return e instanceof Date&&!isNaN(e)}var mw=mn$2(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function yw(e,t){let{first:n,each:r,with:o=vw,scheduler:i=Wt$1,meta:s=null}=Ps(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return S((a,c)=>{let u,l,d=null,f=0,h=g=>{l=Ie$4(c,i,()=>{try{u.unsubscribe(),L$4(o({meta:s,lastValue:d,seen:f})).subscribe(c);}catch(v){c.error(v);}},g);};u=a.subscribe(T$1(c,g=>{l?.unsubscribe(),f++,c.next(d=g),r>0&&h(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!f&&h(n!=null?typeof n=="number"?n:+n-i.now():r);})}function vw(e){throw new mw(e)}function Oo(e){return new k$1(t=>{L$4(e()).subscribe(t);})}function ko(e=0,t,n=up){let r=-1;return t!=null&&(ds(t)?n=t:r=t),new k$1(o=>{let i=Ps(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function Dw(...e){let t=bt$2(e),n=Qh(e,1/0),r=e;return r.length?r.length===1?L$4(r[0]):St$1(n)(Y$1(r,t)):he$3}function hp(e){return S((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let u=o;o=null,n.next(u);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(T$1(n,u=>{r=!0,o=u,i||L$4(e(u)).subscribe(i=T$1(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function Ew(e,t=Wt$1){return hp(()=>ko(e,t))}function pp(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(T$1(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function qt$1(e,t){return x$1(t)?pe$3(e,t,1):pe$3(e,1)}function gp(e){return S((t,n)=>{let r=!1;t.subscribe(T$1(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function Ve$2(e){return e<=0?()=>he$3:S((t,n)=>{let r=0;t.subscribe(T$1(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Mu(){return S((e,t)=>{e.subscribe(T$1(t,zt$1));})}function Nu(e){return j$3(()=>e)}function Ru(e,t){return t?n=>Tt$2(t.pipe(Ve$2(1),Mu()),n.pipe(Ru(e))):pe$3((n,r)=>L$4(e(n,r)).pipe(Ve$2(1),Nu(n)))}function ww(e,t=Wt$1){let n=ko(e,t);return Ru(()=>n)}function Iw(e,t){return S((n,r)=>{let o=new Set;n.subscribe(T$1(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&L$4(t).subscribe(T$1(r,()=>o.clear(),zt$1));})}function mp(e,t=He$1){return e=e??Cw,S((n,r)=>{let o,i=!0;n.subscribe(T$1(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Cw(e,t){return e===t}function yp(e=bw){return S((t,n)=>{let r=!1;t.subscribe(T$1(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function bw(){return new Gt$1}function Sw(...e){return t=>Tt$2(t,_$3(...e))}function vp(e,t){return t?n=>n.pipe(vp((r,o)=>L$4(e(r,o)).pipe(j$3((i,s)=>t(r,i,o,s))))):S((n,r)=>{let o=0,i=null,s=!1;n.subscribe(T$1(r,a=>{i||(i=T$1(r,void 0,()=>{i=null,s&&r.complete();}),L$4(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function Tw(e,t=1/0,n){return t=(t||0)<1?1/0:t,S((r,o)=>xs(r,o,e,t,void 0,!0,n))}function Or(e){return S((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Zt$2(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ce$4((o,i)=>e(o,i,r)):He$1,Ve$2(1),n?gp(t):yp(()=>new Gt$1))}function Ls(e){return e<=0?()=>he$3:S((t,n)=>{let r=[];t.subscribe(T$1(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 _w(e,t){return S(pp(e,t,arguments.length>=2,!0))}function kr(e){return S((t,n)=>{L$4(e).subscribe(T$1(n,()=>n.complete(),zt$1)),!n.closed&&t.subscribe(n);})}function Mw(e,t=false){return S((n,r)=>{let o=0;n.subscribe(T$1(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var xe$2=null,Fs=false,qn$1=1,re$2=Symbol("SIGNAL");function C(e){let t=xe$2;return xe$2=e,t}function js(){return xe$2}var yn$2={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Yt$1(e){if(Fs)throw new Error("");if(xe$2===null)return;xe$2.consumerOnSignalRead(e);let t=xe$2.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=xe$2.recomputing;if(r&&(n=t!==void 0?t.nextProducer:xe$2.producers,n!==void 0&&n.producer===e)){xe$2.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=qn$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===xe$2&&(!r||o.knownValidAtEpoch===qn$1))return;let i=Fr(xe$2),s={producer:e,consumer:xe$2,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:qn$1,lastReadVersion:e.version,nextConsumer:void 0};xe$2.producersTail=s,t!==void 0?t.nextProducer=s:xe$2.producers=s,i&&Ip(e,s);}function Dp(){qn$1++;}function Qn$2(e){if(!(Fr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qn$1)){if(!e.producerMustRecompute(e)&&!Lr(e)){Pr$1(e);return}e.producerRecomputeValue(e),Pr$1(e);}}function Au(e){if(e.consumers===void 0)return;let t=Fs;Fs=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Rw(r);}}finally{Fs=t;}}function xu(){return xe$2?.consumerAllowSignalWrites!==false}function Rw(e){e.dirty=true,Au(e),e.consumerMarkedDirty?.(e);}function Pr$1(e){e.dirty=false,e.lastCleanEpoch=qn$1;}function Qt$1(e){return e&&Ep(e),C(e)}function Ep(e){if(e.producersTail?.knownValidAtEpoch===qn$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function vn$2(e,t){C(t),e&&wp(e);}function wp(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Fr(e))do n=Ou(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Lr(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Qn$2(n),r!==n.version))return true}return false}function Dn$2(e){if(Fr(e)){let t=e.producers;for(;t!==void 0;)t=Ou(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function Ip(e,t){let n=e.consumersTail,r=Fr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Ip(o.producer,o);}function Ou(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Fr(t)){let i=t.producers;for(;i!==void 0;)i=Ou(i);}return n}function Fr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Lo(e,t){return Object.is(e,t)}function Fo(e,t){let n=Object.create(Aw);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Qn$2(n),Yt$1(n),n.value===_t$2)throw n.error;return n.value};return r[re$2]=n,r}var Zn$2=Symbol("UNSET"),Yn$2=Symbol("COMPUTING"),_t$2=Symbol("ERRORED"),Aw=x$2(w$1({},yn$2),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"computed",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{r=e.computation(),C(null),o=t!==Zn$2&&t!==_t$2&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function xw(){throw new Error}var Cp=xw;function bp(e){Cp(e);}function ku(e){Cp=e;}function Pu(e,t){let n=Object.create(jo);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Sp(n);return r[re$2]=n,[r,s=>En$2(n,s),s=>Us(n,s)]}function Sp(e){return Yt$1(e),e.value}function En$2(e,t){xu()||bp(e),e.equal(e.value,t)||(e.value=t,kw(e));}function Us(e,t){xu()||bp(e),En$2(e,t(e.value));}var jo=x$2(w$1({},yn$2),{equal:Lo,value:void 0,kind:"signal"});function kw(e){e.version++,Dp(),Au(e);}var Lu=x$2(w$1({},yn$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Fu(e){if(e.dirty=false,e.version>0&&!Lr(e))return;e.version++;let t=Qt$1(e);try{e.cleanup(),e.fn();}finally{vn$2(e,t);}}var ju;function Bs(){return ju}function Mt$1(e){let t=ju;return ju=e,t}var Tp=Symbol("NotFound");function jr(e){return e===Tp||e?.name==="\u0275NotFound"}function Uu(e,t,n){let r=Object.create(Pw);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(Qn$2(r),Yt$1(r),r.value===_t$2)throw r.error;return r.value};return i[re$2]=r,i}function _p(e,t){Qn$2(e),En$2(e,t),Pr$1(e);}function Mp(e,t){if(Qn$2(e),e.value===_t$2)throw e.error;Us(e,t),Pr$1(e);}var Pw=x$2(w$1({},yn$2),{value:Zn$2,dirty:true,error:null,equal:Lo,kind:"linkedSignal",producerMustRecompute(e){return e.value===Zn$2||e.value===Yn$2},producerRecomputeValue(e){if(e.value===Yn$2)throw new Error("");let t=e.value;e.value=Yn$2;let n=Qt$1(e),r,o=false;try{let i=e.source(),s=t!==Zn$2&&t!==_t$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,C(null),o=s&&r!==_t$2&&e.equal(t,r);}catch(i){r=_t$2,e.error=i;}finally{vn$2(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Np(e){let t=C(null);try{return e()}finally{C(t);}}var qs="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",y$2=class y extends Error{code;constructor(t,n){super(Ke$1(t,n)),this.code=t;}};function Lw(e){return `NG0${Math.abs(e)}`}function Ke$1(e,t){return `${Lw(e)}${t?": "+t:""}`}function H$2(e){for(let t in e)if(e[t]===H$2)return t;throw Error("")}function kp(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function zo(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(zo).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 Zs(e,t){return e?t?`${e} ${t}`:e:t||""}var Fw=H$2({__forward_ref__:H$2});function Ys(e){return e.__forward_ref__=Ys,e}function Ee$4(e){return Ju(e)?e():e}function Ju(e){return typeof e=="function"&&e.hasOwnProperty(Fw)&&e.__forward_ref__===Ys}function R$1(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tr(e){return {providers:e.providers||[],imports:e.imports||[]}}function Go(e){return jw(e,Qs)}function Xu(e){return Go(e)!==null}function jw(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Uw(e){let t=e?.[Qs]??null;return t||null}function Hu(e){return e&&e.hasOwnProperty(Vs)?e[Vs]:null}var Qs=H$2({\u0275prov:H$2}),Vs=H$2({\u0275inj:H$2}),D$1=class D{_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=R$1({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function el(e){return e&&!!e.\u0275providers}var tl=H$2({\u0275cmp:H$2}),nl=H$2({\u0275dir:H$2}),rl=H$2({\u0275pipe:H$2}),ol=H$2({\u0275mod:H$2}),Bo=H$2({\u0275fac:H$2}),nr=H$2({__NG_ELEMENT_ID__:H$2}),Rp=H$2({__NG_ENV_ID__:H$2});function Pp(e){return Ks(e),e[ol]||null}function Xt$2(e){return Ks(e),e[tl]||null}function il(e){return Ks(e),e[nl]||null}function Lp(e){return Ks(e),e[rl]||null}function Ks(e,t){if(e==null)throw new y$2(-919,false)}function me$2(e){return typeof e=="string"?e:e==null?"":String(e)}var Fp=H$2({ngErrorCode:H$2}),Bw=H$2({ngErrorMessage:H$2});H$2({ngTokenPath:H$2});function sl(e,t){return jp("",-200)}function Js(e,t){throw new y$2(-201,false)}function jp(e,t,n){let r=new y$2(t,e);return r[Fp]=t,r[Bw]=e,r}function Vw(e){return e[Fp]}var Vu;function Up(){return Vu}function Oe$3(e){let t=Vu;return Vu=e,t}function al(e,t,n){let r=Go(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Js();}var Je$2=globalThis;var $w={},Kn$2=$w,zw="__NG_DI_FLAG__",$u=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=Jn$2(n)||0;try{return this.injector.get(t,r&8?null:Kn$2,r)}catch(o){if(jr(o))return o;throw o}}};function Gw(e,t=0){let n=Bs();if(n===void 0)throw new y$2(-203,false);if(n===null)return al(e,void 0,t);{let r=Ww(t),o=n.retrieve(e,r);if(jr(o)){if(r.optional)return null;throw o}return o}}function b(e,t=0){return (Up()||Gw)(Ee$4(e),t)}function p(e,t){return b(e,Jn$2(t))}function Jn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ww(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function zu(e){let t=[];for(let n=0;n<e.length;n++){let r=Ee$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new y$2(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=qw(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b(o,i));}else t.push(b(r));}return t}function qw(e){return e[zw]}function wn$2(e,t){let n=e.hasOwnProperty(Bo);return n?e[Bo]:null}function Bp(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Hp(e){return e.flat(Number.POSITIVE_INFINITY)}function Xs(e,t){e.forEach(n=>Array.isArray(n)?Xs(n,t):t(n));}function cl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Wo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vp(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function $p(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 ea(e,t,n){let r=Hr(e,t);return r>=0?e[r|1]=n:(r=~r,$p(e,r,t,n)),r}function ta(e,t){let n=Hr(e,t);if(n>=0)return e[n|1]}function Hr(e,t){return Zw(e,t,1)}function Zw(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 Cn$2={},Se$3=[],en$2=new D$1(""),qo=new D$1("",-1),ul=new D$1(""),Br=class{get(t,n=Kn$2){if(n===Kn$2){let o=jp("",-201);throw o.name="\u0275NotFound",o}return n}};function ft$2(e){return {\u0275providers:e}}function zp(e){return ft$2([{provide:en$2,multi:true,useValue:e}])}function Gp(...e){return {\u0275providers:ll(true,e),\u0275fromNgModule:true}}function ll(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return Xs(t,s=>{let a=s;$s(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Wp(o,i),n}function Wp(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];dl(o,i=>{t(i,r);});}}function $s(e,t,n,r){if(e=Ee$4(e),!e)return false;let o=null,i=Hu(e),s=!i&&Xt$2(e);if(!i&&!s){let c=e.ngModule;if(i=Hu(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)$s(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;Xs(i.imports,l=>{$s(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&Wp(u,t);}if(!a){let u=wn$2(o)||(()=>new o);t({provide:o,useFactory:u,deps:Se$3},o),t({provide:ul,useValue:o,multi:true},o),t({provide:en$2,useValue:()=>b(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;dl(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function dl(e,t){for(let n of e)el(n)&&(n=n.\u0275providers),Array.isArray(n)?dl(n,t):t(n);}var Yw=H$2({provide:String,useValue:H$2});function qp(e){return e!==null&&typeof e=="object"&&Yw in e}function Qw(e){return !!(e&&e.useExisting)}function Kw(e){return !!(e&&e.useFactory)}function Xn$2(e){return typeof e=="function"}function Zp(e){return !!e.useClass}var Zo=new D$1(""),Hs={},Ap={},Bu;function Vr(){return Bu===void 0&&(Bu=new Br),Bu}var ee$2=class ee{},er=class extends ee$2{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Wu(t,s=>this.processProvider(s)),this.records.set(qo,Ur(void 0,this)),o.has("environment")&&this.records.set(ee$2,Ur(void 0,this));let i=this.records.get(Zo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ul,Se$3,{self:true}));}retrieve(t,n){let r=Jn$2(n)||0;try{return this.get(t,Kn$2,r)}catch(o){if(jr(o))return o;throw o}}destroy(){Uo(this),this._destroyed=true;let t=C(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(),C(t);}}onDestroy(t){return Uo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Uo(this);let n=Mt$1(this),r=Oe$3(void 0);try{return t()}finally{Mt$1(n),Oe$3(r);}}get(t,n=Kn$2,r){if(Uo(this),t.hasOwnProperty(Rp))return t[Rp](this);let o=Jn$2(r),s=Mt$1(this),a=Oe$3(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=nI(t)&&Go(t);l&&this.injectableDefInScope(l)?u=Ur(Gu(t),Hs):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Vr():this.parent;return n=o&8&&n===Kn$2?null:n,c.get(t,n)}catch(c){let u=Vw(c);throw u===-200||u===-201?new y$2(u,null):c}finally{Oe$3(a),Mt$1(s);}}resolveInjectorInitializers(){let t=C(null),n=Mt$1(this),r=Oe$3(void 0);try{let i=this.get(en$2,Se$3,{self:!0});for(let s of i)s();}finally{Mt$1(n),Oe$3(r),C(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=Ee$4(t);let n=Xn$2(t)?t:Ee$4(t&&t.provide),r=Xw(t);if(!Xn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Ur(void 0,Hs,true),o.factory=()=>zu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=C(null);try{if(n.value===Ap)throw sl("");return n.value===Hs&&(n.value=Ap,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&tI(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{C(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=Ee$4(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 Gu(e){let t=Go(e),n=t!==null?t.factory:wn$2(e);if(n!==null)return n;if(e instanceof D$1)throw new y$2(-204,false);if(e instanceof Function)return Jw(e);throw new y$2(-204,false)}function Jw(e){if(e.length>0)throw new y$2(-204,false);let n=Uw(e);return n!==null?()=>n.factory(e):()=>new e}function Xw(e){if(qp(e))return Ur(void 0,e.useValue);{let t=fl(e);return Ur(t,Hs)}}function fl(e,t,n){let r;if(Xn$2(e)){let o=Ee$4(e);return wn$2(o)||Gu(o)}else if(qp(e))r=()=>Ee$4(e.useValue);else if(Kw(e))r=()=>e.useFactory(...zu(e.deps||[]));else if(Qw(e))r=(o,i)=>b(Ee$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=Ee$4(e&&(e.useClass||e.provide));if(eI(e))r=()=>new o(...zu(e.deps));else return wn$2(o)||Gu(o)}return r}function Uo(e){if(e.destroyed)throw new y$2(-205,false)}function Ur(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function eI(e){return !!e.deps}function tI(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function nI(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Wu(e,t){for(let n of e)Array.isArray(n)?Wu(n,t):n&&el(n)?Wu(n.\u0275providers,t):t(n);}function ye$2(e,t){let n;e instanceof er?(Uo(e),n=e):n=new $u(e);let o=Mt$1(n),i=Oe$3(void 0);try{return t()}finally{Mt$1(o),Oe$3(i);}}function Yp(){return Up()!==void 0||Bs()!=null}var ht$2=0,I$1=1,N$2=2,ge$3=3,Xe$1=4,Te$3=5,rr=6,$r=7,oe$1=8,Nt$1=9,pt$2=10,$$2=11,zr=12,hl=13,bn$2=14,_e$1=15,Sn$2=16,or=17,Rt=18,At$1=19,pl=20,Kt$1=21,na=22,In$2=23,$e$1=24,ir=25,xt=26,X$1=27,Qp=1,gl=6,Tn$2=7,Yo=8,sr=9,te$1=10;function tn$2(e){return Array.isArray(e)&&typeof e[Qp]=="object"}function et$2(e){return Array.isArray(e)&&e[Qp]===true}function ml(e){return (e.flags&4)!==0}function nn$2(e){return e.componentOffset>-1}function Gr(e){return (e.flags&1)===1}function Ot$1(e){return !!e.template}function Wr(e){return (e[N$2]&512)!==0}function ar(e){return (e[N$2]&256)===256}var yl="svg",Kp="math";function tt$2(e){for(;Array.isArray(e);)e=e[ht$2];return e}function vl(e,t){return tt$2(t[e])}function nt$2(e,t){return tt$2(t[e.index])}function ra(e,t){return e.data[t]}function oa(e,t){return e[t]}function Dl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function rt$1(e,t){let n=t[e];return tn$2(n)?n:n[ht$2]}function Jp(e){return (e[N$2]&4)===4}function ia(e){return (e[N$2]&128)===128}function Xp(e){return et$2(e[ge$3])}function ze$2(e,t){return t==null?null:e[t]}function El(e){e[or]=0;}function wl(e){e[N$2]&1024||(e[N$2]|=1024,ia(e)&&cr(e));}function eg(e,t){for(;e>0;)t=t[bn$2],e--;return t}function Qo(e){return !!(e[N$2]&9216||e[$e$1]?.dirty)}function sa(e){e[pt$2].changeDetectionScheduler?.notify(8),e[N$2]&64&&(e[N$2]|=1024),Qo(e)&&cr(e);}function cr(e){e[pt$2].changeDetectionScheduler?.notify(0);let t=Jt$1(e);for(;t!==null&&!(t[N$2]&8192||(t[N$2]|=8192,!ia(t)));)t=Jt$1(t);}function aa(e,t){if(ar(e))throw new y$2(911,false);e[Kt$1]===null&&(e[Kt$1]=[]),e[Kt$1].push(t);}function tg(e,t){if(e[Kt$1]===null)return;let n=e[Kt$1].indexOf(t);n!==-1&&e[Kt$1].splice(n,1);}function Jt$1(e){let t=e[ge$3];return et$2(t)?t[ge$3]:t}function Il(e){return e[$r]??=[]}function Cl(e){return e.cleanup??=[]}function ng(e,t,n,r){let o=Il(t);o.push(n),e.firstCreatePass&&Cl(e).push(r,o.length-1);}var O={lFrame:gg(null),bindingsEnabled:true,skipHydrationRootTNode:null};var qu=false;function rg(){return O.lFrame.elementDepthCount}function og(){O.lFrame.elementDepthCount++;}function bl(){O.lFrame.elementDepthCount--;}function ca(){return O.bindingsEnabled}function Sl(){return O.skipHydrationRootTNode!==null}function Tl(e){return O.skipHydrationRootTNode===e}function _l(){O.skipHydrationRootTNode=null;}function w(){return O.lFrame.lView}function G$2(){return O.lFrame.tView}function ig(e){return O.lFrame.contextLView=e,e[oe$1]}function sg(e){return O.lFrame.contextLView=null,e}function de$2(){let e=Ml();for(;e!==null&&e.type===64;)e=e.parent;return e}function Ml(){return O.lFrame.currentTNode}function ag(){let e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function qr(e,t){let n=O.lFrame;n.currentTNode=e,n.isParent=t;}function Nl(){return O.lFrame.isParent}function Rl(){O.lFrame.isParent=false;}function cg(){return O.lFrame.contextLView}function Al(){return qu}function Ho(e){let t=qu;return qu=e,t}function Zr(){let e=O.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ko(){return O.lFrame.bindingIndex}function ug(e){return O.lFrame.bindingIndex=e}function _n$2(){return O.lFrame.bindingIndex++}function ur(e){let t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lg(){return O.lFrame.inI18n}function dg(e,t){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,ua(t);}function fg(){return O.lFrame.currentDirectiveIndex}function ua(e){O.lFrame.currentDirectiveIndex=e;}function hg(e){let t=O.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function la(){return O.lFrame.currentQueryIndex}function Jo(e){O.lFrame.currentQueryIndex=e;}function rI(e){let t=e[I$1];return t.type===2?t.declTNode:t.type===1?e[Te$3]:null}function xl(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=rI(i),o===null||(i=i[bn$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=O.lFrame=pg();return r.currentTNode=t,r.lView=e,true}function da(e){let t=pg(),n=e[I$1];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function pg(){let e=O.lFrame,t=e===null?null:e.child;return t===null?gg(e):t}function gg(e){let t={currentTNode:null,isParent:true,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:false};return e!==null&&(e.child=t),t}function mg(){let e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ol=mg;function fa(){let e=mg();e.isParent=true,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 yg(e){return (O.lFrame.contextLView=eg(e,O.lFrame.contextLView))[oe$1]}function Ge$1(){return O.lFrame.selectedIndex}function Mn$2(e){O.lFrame.selectedIndex=e;}function Yr(){let e=O.lFrame;return ra(e.tView,e.selectedIndex)}function vg(){O.lFrame.currentNamespace=yl;}function Dg(){oI();}function oI(){O.lFrame.currentNamespace=null;}function kl(){return O.lFrame.currentNamespace}var Eg=true;function ha(){return Eg}function Xo(e){Eg=e;}function Zu(e,t=null,n=null,r){let o=Pl(e,t,n);return o.resolveInjectorInitializers(),o}function Pl(e,t=null,n=null,r,o=new Set){let i=[n||Se$3,Gp(e)];return new er(i,t||Vr(),null,o)}var we$3=class e{static THROW_IF_NOT_FOUND=Kn$2;static NULL=new Br;static create(t,n){if(Array.isArray(t))return Zu({name:""},n,t);{let r=t.name??"";return Zu({name:r},t.parent,t.providers)}}static \u0275prov=R$1({token:e,providedIn:"any",factory:()=>b(qo)});static __NG_ELEMENT_ID__=-1},Q$3=new D$1(""),Me$4=(()=>{class e{static __NG_ELEMENT_ID__=iI;static __NG_ENV_ID__=n=>n}return e})(),zs$1=class zs extends Me$4{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return ar(this._lView)}onDestroy(t){let n=this._lView;return aa(n,t),()=>tg(n,t)}};function iI(){return new zs$1(w())}var Ll=false,wg=new D$1(""),kt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new De$3(false);debugTaskTracker=p(wg,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new k$1(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),Yu=class extends ne$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Yp()&&(this.destroyRef=p(Me$4,{optional:true})??void 0,this.pendingTasks=p(kt,{optional:true})??void 0);}emit(t){let n=C(null);try{super.next(t);}finally{C(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 ae$2&&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);}});}}},be$4=Yu;function Gs(...e){}function Fl(e){let t,n;function r(){e=Gs;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch(o){}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function Ig(e){return queueMicrotask(()=>e()),()=>{e=Gs;}}var jl="isAngularZone",Vo=jl+"_ID",sI=0,J$3=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new be$4(false);onMicrotaskEmpty=new be$4(false);onStable=new be$4(false);onError=new be$4(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=Ll}=t;if(typeof Zone>"u")throw new y$2(908,false);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=false,s.scheduleInRootZone=i,uI(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(jl)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new y$2(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new y$2(909,false)}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,aI,Gs,Gs);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)}},aI={};function Ul(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=true;}}}function cI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Fl(()=>{e.callbackScheduled=false,Qu(e),e.isCheckStableRunning=true,Ul(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Qu(e);}function uI(e){let t=()=>{cI(e);},n=sI++;e._inner=e._inner.fork({name:"angular",properties:{[jl]:true,[Vo]:n,[Vo+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(lI(c))return r.invokeTask(i,s,a,c);try{return xp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Op(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return xp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!dI(c)&&t(),Op(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Qu(e),Ul(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Qu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function xp(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Op(e){e._nesting--,Ul(e);}var $o=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new be$4;onMicrotaskEmpty=new be$4;onStable=new be$4;onError=new be$4;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 lI(e){return Cg(e,"__ignore_ng_zone__")}function dI(e){return Cg(e,"__scheduler_tick__")}function Cg(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Qe=class{_console=console;handleError(t){this._console.error("ERROR",t);}},ke$2=new D$1("",{factory:()=>{let e=p(J$3),t=p(ee$2),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Qe),n.handleError(r));});}}}),bg={provide:en$2,useValue:()=>{p(Qe,{optional:true});},multi:true},fI=new D$1("",{factory:()=>{let e=p(Q$3).defaultView;if(!e)return;let t=p(ke$2),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),p(Me$4).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function hI(){return ft$2([zp(()=>{p(fI);})])}function ie$1(e,t){let [n,r,o]=Pu(e,t?.equal),i=n;i[re$2];return i.set=r,i.update=o,i.asReadonly=ei$1.bind(i),i}function ei$1(){let e=this[re$2];if(e.readonlyFn===void 0){let t=()=>this();t[re$2]=e,e.readonlyFn=t;}return e.readonlyFn}var ti$2=new D$1("",{factory:()=>pI}),pI="ng";var pa=new D$1(""),ni$2=new D$1("",{providedIn:"platform",factory:()=>"unknown"}),gI=new D$1(""),ri$2=new D$1("",{factory:()=>p(Q$3).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Qr=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=mI}return e})();function mI(){return new Qr(w(),de$2())}var dt$2=class dt{},Kr=new D$1("",{factory:()=>true});var ga=new D$1(""),ma=(()=>{class e{static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new Ku})}return e})(),Ku=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Ws=class{[re$2];constructor(t){this[re$2]=t;}destroy(){this[re$2].destroy();}};function Sg(e,t){let n=t?.injector??p(we$3),r=t?.manualCleanup!==true?n.get(Me$4):null,o,i=n.get(Qr,null,{optional:true}),s=n.get(dt$2);return i!==null?(o=DI(i.view,s,e),r instanceof zs$1&&r._lView===i.view&&(r=null)):o=EI(e,n.get(ma),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ws(o)}var Tg=x$2(w$1({},Lu),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Ho(false);try{Fu(this);}finally{Ho(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=C(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],C(e);}}}),yI=x$2(w$1({},Tg),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),vI=x$2(w$1({},Tg),{consumerMarkedDirty(){this.view[N$2]|=8192,cr(this.view),this.notifier.notify(13);},destroy(){if(Dn$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[In$2]?.delete(this);}});function DI(e,t,n){let r=Object.create(vI);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=_g(r,n),e[In$2]??=new Set,e[In$2].add(r),r.consumerMarkedDirty(r),r}function EI(e,t,n){let r=Object.create(yI);return r.fn=_g(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function _g(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function oi$2(e){return typeof e=="function"&&e[re$2]!==void 0}function ya(e){return oi$2(e)&&typeof e.set=="function"}var ii$2=(()=>{class e{internalPendingTasks=p(kt);scheduler=p(dt$2);errorHandler=p(ke$2);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new e})}return e})();function yi$2(e){return {toString:e}.toString()}var F$3=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(F$3||{}),Ta=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function pm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var gm=null,xn$2=(()=>{gm=Mg;let e=()=>Mg;return e.ngInherit=true,e})();function NI(){return gm}function Mg(e){return e.type.prototype.ngOnChanges&&(e.setInput=AI),RI}function RI(){let e=mm(this),t=e?.current;if(t){let n=e.previous;if(n===Cn$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function AI(e,t,n,r,o){let i=this.declaredInputs[r],s=mm(e)||xI(e,{previous:Cn$2,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ta(u&&u.currentValue,n,c===Cn$2),pm(e,t,o,n);}var Kl="__ngSimpleChanges__";function mm(e){return Object.hasOwn(e,Kl)&&e[Kl]||null}function xI(e,t){return e[Kl]=t}var Ng=[];var V$1=function(e,t=null,n){for(let r=0;r<Ng.length;r++){let o=Ng[r];o(e,t,n);}};function OI(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=NI()(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 ym(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 Ia(e,t,n){vm(e,t,3,n);}function Ca(e,t,n,r){(e[N$2]&3)===n&&vm(e,t,n,r);}function Bl(e,t){let n=e[N$2];(n&3)===t&&(n&=16383,n+=1,e[N$2]=n);}function vm(e,t,n,r){let o=r!==void 0?e[or]&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[or]+=65536),(a<i||i==-1)&&(kI(e,n,t,c),e[or]=(e[or]&4294901760)+c+2),c++;}function Rg(e,t){V$1(F$3.LifecycleHookStart,e,t);let n=C(null);try{t.call(e);}finally{C(n),V$1(F$3.LifecycleHookEnd,e,t);}}function kI(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[N$2]>>14<e[or]>>16&&(e[N$2]&3)===t&&(e[N$2]+=16384,Rg(a,i)):Rg(a,i);}var Xr=-1,dr=class{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function PI(e){return (e.flags&8)!==0}function LI(e){return (e.flags&16)!==0}function FI(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];jI(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function Dm(e){return e===3||e===4||e===6}function jI(e){return e.charCodeAt(0)===64}function eo(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?Ag(e,n,o,null,t[++r]):Ag(e,n,o,null,null));}}return e}function Ag(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 Em(e){return e!==Xr}function _a(e){return e&32767}function UI(e){return e>>16}function Ma(e,t){let n=UI(e),r=t;for(;n>0;)r=r[bn$2],n--;return r}var Jl=true;function Na(e){let t=Jl;return Jl=e,t}var BI=256,wm=BI-1,Im=5,HI=0,Pt$1={};function VI(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(nr)&&(r=n[nr]),r==null&&(r=n[nr]=HI++);let o=r&wm,i=1<<o;t.data[e+(o>>Im)]|=i;}function Ra(e,t){let n=Cm(e,t);if(n!==-1)return n;let r=t[I$1];r.firstCreatePass&&(e.injectorIndex=t.length,Hl(r.data,e),Hl(t,null),Hl(r.blueprint,null));let o=xd(e,t),i=e.injectorIndex;if(Em(o)){let s=_a(o),a=Ma(o,t),c=a[I$1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Hl(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Cm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function xd(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=Nm(o),r===null)return Xr;if(n++,o=o[bn$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Xr}function Xl(e,t,n){VI(e,t,n);}function $I(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(Dm(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 bm(e,t,n){if(n&8||e!==void 0)return e;Js();}function Sm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Nt$1],i=Oe$3(void 0);try{return o?o.get(t,r,n&8):al(t,r,n&8)}finally{Oe$3(i);}}return bm(r,t,n)}function Tm(e,t,n,r=0,o){if(e!==null){if(t[N$2]&2048&&!(r&2)){let s=qI(e,t,n,r,Pt$1);if(s!==Pt$1)return s}let i=_m(e,t,n,r,Pt$1);if(i!==Pt$1)return i}return Sm(t,n,r,o)}function _m(e,t,n,r,o){let i=GI(n);if(typeof i=="function"){if(!xl(t,e,r))return r&1?bm(o,n,r):Sm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Js(n);else return s}finally{Ol();}}else if(typeof i=="number"){let s=null,a=Cm(e,t),c=Xr,u=r&1?t[_e$1][Te$3]:null;for((a===-1||r&4)&&(c=a===-1?xd(e,t):t[a+8],c===Xr||!Og(r,false)?a=-1:(s=t[I$1],a=_a(c),t=Ma(c,t)));a!==-1;){let l=t[I$1];if(xg(i,a,l.data)){let d=zI(a,t,n,s,r,u);if(d!==Pt$1)return d}c=t[a+8],c!==Xr&&Og(r,t[I$1].data[a+8]===u)&&xg(i,a,t)?(s=l,a=_a(c),t=Ma(c,t)):a=-1;}}return o}function zI(e,t,n,r,o,i){let s=t[I$1],a=s.data[e+8],c=r==null?nn$2(a)&&Jl:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ba(a,s,n,c,u);return l!==null?li$2(t,s,l,a,o):Pt$1}function ba(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let g=s[h];if(h<c&&n===g||h>=c&&g.type===n)return h}if(o){let h=s[c];if(h&&Ot$1(h)&&h.type===n)return c}return null}function li$2(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof dr){let a=i;if(a.resolving)throw sl();let c=Na(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?Oe$3(a.injectImpl):null;xl(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&OI(n,s[n],t);}finally{d!==null&&Oe$3(d),Na(c),a.resolving=false,Ol();}}return i}function GI(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(nr)?e[nr]:void 0;return typeof t=="number"?t>=0?t&wm:WI:t}function xg(e,t,n){let r=1<<e;return !!(n[t+(e>>Im)]&r)}function Og(e,t){return !(e&2)&&!(e&1&&t)}var Nn$2=class Nn{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Tm(this._tNode,this._lView,t,Jn$2(r),n)}};function WI(){return new Nn$2(de$2(),w())}function Mm(e){return yi$2(()=>{let t=e.prototype.constructor,n=t[Bo]||ed(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Bo]||ed(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function ed(e){return Ju(e)?()=>{let t=ed(Ee$4(e));return t&&t()}:wn$2(e)}function qI(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[N$2]&2048&&!Wr(s);){let a=_m(i,s,n,r|2,Pt$1);if(a!==Pt$1)return a;let c=i.parent;if(!c){let u=s[pl];if(u){let l=u.get(n,Pt$1,r&-5);if(l!==Pt$1)return l}c=Nm(s),s=s[bn$2];}i=c;}return o}function Nm(e){let t=e[I$1],n=t.type;return n===2?t.declTNode:n===1?e[Te$3]:null}function vi$2(e){return $I(de$2(),e)}function Z$2(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function ZI(){return so(de$2(),w())}function so(e,t){return new Ft$1(nt$2(e,t))}var Ft$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=ZI}return e})();function Rm(e){return e instanceof Ft$1?e.nativeElement:e}function YI(){return this._results[Symbol.iterator]()}var Aa=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ne$1}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Hp(t);(this._changesDetected=!Bp(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=YI};function Am(e){return (e.flags&128)===128}var Od=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Od||{}),xm=new Map,QI=0;function KI(){return QI++}function JI(e){xm.set(e[At$1],e);}function td(e){xm.delete(e[At$1]);}var kg="__ngContext__";function to(e,t){tn$2(t)?(e[kg]=t[At$1],JI(t)):e[kg]=t;}function Om(e){return Pm(e[zr])}function km(e){return Pm(e[Xe$1])}function Pm(e){for(;e!==null&&!et$2(e);)e=e[Xe$1];return e}var nd;function kd(e){nd=e;}function Pd(){if(nd!==void 0)return nd;if(typeof document<"u")return document;throw new y$2(210,false)}var Lm="r";var Fm="di";var Ld=new D$1(""),jm=false,Um=new D$1("",{factory:()=>jm});var Wa=new D$1("");var Pg=new WeakMap;function XI(e,t){if(e==null||typeof e!="object")return;let n=Pg.get(e);n||(n=new WeakSet,Pg.set(e,n)),n.add(t);}function qa(e){return (e.flags&32)===32}var nC=()=>null;function Bm(e,t,n=false){return nC()}function Hm(e,t){let n=e.contentQueries;if(n!==null){let r=C(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];Jo(i),a.contentQueries(2,t[s],s);}}}finally{C(r);}}}function rd(e,t,n){Jo(0);let r=C(null);try{t(e,n);}finally{C(r);}}function Fd(e,t,n){if(ml(t)){let r=C(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{C(r);}}}var yt$1=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(yt$1||{});var va;function rC(){if(va===void 0&&(va=null,Je$2.trustedTypes))try{va=Je$2.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return va}function Za(e){return rC()?.createHTML(e)||e}var Da;function Vm(){if(Da===void 0&&(Da=null,Je$2.trustedTypes))try{Da=Je$2.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Da}function Lg(e){return Vm()?.createHTML(e)||e}function Fg(e){return Vm()?.createScriptURL(e)||e}var rn$2=class rn{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qs})`}},od=class extends rn$2{getTypeName(){return "HTML"}},id=class extends rn$2{getTypeName(){return "Style"}},sd=class extends rn$2{getTypeName(){return "Script"}},ad=class extends rn$2{getTypeName(){return "URL"}},cd=class extends rn$2{getTypeName(){return "ResourceURL"}};function We$1(e){return e instanceof rn$2?e.changingThisBreaksApplicationSecurity:e}function jt$1(e,t){let n=$m(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${qs})`)}return n===t}function $m(e){return e instanceof rn$2&&e.getTypeName()||null}function jd(e){return new od(e)}function Ud(e){return new id(e)}function Bd(e){return new sd(e)}function Hd(e){return new ad(e)}function Vd(e){return new cd(e)}function oC(e){let t=new ld(e);return iC()?new ud(t):t}var ud=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Za(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},ld=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Za(t),n}};function iC(){try{return !!new window.DOMParser().parseFromString(Za(""),"text/html")}catch(e){return false}}var sC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Di$2(e){return e=String(e),e.match(sC)?e:"unsafe:"+e}function on$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function Ei$2(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var zm=on$2("area,br,col,hr,img,wbr"),Gm=on$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wm=on$2("rp,rt"),aC=Ei$2(Wm,Gm),cC=Ei$2(Gm,on$2("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),uC=Ei$2(Wm,on$2("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jg=Ei$2(zm,cC,uC,aC),qm=on$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),lC=on$2("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),dC=on$2("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),fC=Ei$2(qm,lC,dC),hC=on$2("script,style,template"),dd=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=mC(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=gC(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=Ug(t).toLowerCase();if(!jg.hasOwnProperty(n))return this.sanitizedSomething=true,!hC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!fC.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;qm[a]&&(c=Di$2(c)),this.buf.push(" ",s,'="',Bg(c),'"');}return this.buf.push(">"),true}endElement(t){let n=Ug(t).toLowerCase();jg.hasOwnProperty(n)&&!zm.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Bg(t));}};function pC(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function gC(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Zm(t);return t}function mC(e){let t=e.firstChild;if(t&&pC(e,t))throw Zm(t);return t}function Ug(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Zm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var yC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vC=/([^\#-~ |!])/g;function Bg(e){return e.replace(/&/g,"&amp;").replace(yC,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(vC,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ea;function Ya(e,t){let n=null;try{Ea=Ea||oC(e);let r=t?String(t):"";n=Ea.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Ea.getInertBodyElement(r);}while(r!==i);let a=new dd().sanitizeChildren(Hg(n)||n);return Za(a)}finally{if(n){let r=Hg(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Hg(e){return "content"in e&&DC(e)?e.content:null}function DC(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var EC=/^>|^->|<!--|-->|--!>|<!-$/g,wC=/(<|>)/g,IC="\u200B$1\u200B";function CC(e){return e.replace(EC,t=>t.replace(wC,IC))}function bC(e,t){return e.createText(t)}function SC(e,t,n){e.setValue(t,n);}function TC(e,t){return e.createComment(CC(t))}function Ym(e,t,n){return e.createElement(t,n)}function xa(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Qm(e,t,n){e.appendChild(t,n);}function Vg(e,t,n,r,o){r!==null?xa(e,t,n,r,o):Qm(e,t,n);}function Km(e,t,n,r){e.removeChild(null,t,n,r);}function _C(e,t,n){e.setAttribute(t,"style",n);}function MC(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Jm(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&FI(e,t,r),o!==null&&MC(e,t,o),i!==null&&_C(e,t,i);}var ot$1=(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[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ot$1||{});function NC(e){let t=zd();return t?Lg(t.sanitize(ot$1.HTML,e)||""):jt$1(e,"HTML")?Lg(We$1(e)):Ya(Pd(),me$2(e))}function Xm(e){let t=zd();return t?t.sanitize(ot$1.URL,e)||"":jt$1(e,"URL")?We$1(e):Di$2(me$2(e))}function ey(e){let t=zd();if(t)return Fg(t.sanitize(ot$1.RESOURCE_URL,e)||"");if(jt$1(e,"ResourceURL"))return Fg(We$1(e));throw new y$2(904,false)}var RC={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function AC(e,t){return RC[e.toLowerCase()]?.[t.toLowerCase()]===true?ey:Xm}function $d(e,t,n){return AC(t,n)(e)}function zd(){let e=w();return e&&e[pt$2].sanitizer}function xC(e){return e instanceof Function?e():e}function OC(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 ty="ng-template";function kC(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&OC(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Gd(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function Gd(e){return e.type===4&&e.value!==ty}function PC(e,t,n){let r=e.type===4&&!n?ty:e.value;return t===r}function LC(e,t,n){let r=4,o=e.attrs,i=o!==null?UC(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!gt$2(r)&&!gt$2(c))return false;if(s&&gt$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!PC(e,c,n)||c===""&&t.length===1){if(gt$2(r))return false;s=true;}}else if(r&8){if(o===null||!kC(e,o,c,n)){if(gt$2(r))return false;s=true;}}else {let u=t[++a],l=FC(c,o,Gd(e),n);if(l===-1){if(gt$2(r))return false;s=true;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(gt$2(r))return false;s=true;}}}}return gt$2(r)||s}function gt$2(e){return (e&1)===0}function FC(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;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 BC(t,e)}function ny(e,t,n=false){for(let r=0;r<t.length;r++)if(LC(e,t[r],n))return true;return false}function jC(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function UC(e){for(let t=0;t<e.length;t++){let n=e[t];if(Dm(n))return t}return e.length}function BC(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 HC(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function $g(e,t){return e?":not("+t.trim()+")":t}function VC(e){let t=e[0],n=1,r=2,o="",i=false;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!==""&&!gt$2(s)&&(t+=$g(i,o),o=""),r=s,i=i||!gt$2(r);n++;}return o!==""&&(t+=$g(i,o)),t}function $C(e){return e.map(VC).join(",")}function zC(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(!gt$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var ce$2={},Lt$1=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Lt$1||{}),GC;function Wd(e,t){return GC(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var fd=new WeakMap;function ry(e){return e?e[bn$2]??e:null}var ai$2=new WeakSet;function WC(e,t,n){let r=fd.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=ry(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:u}=r[a],l=c.parentNode;c===t?(r.splice(a,1),ai$2.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):l&&o&&l!==o&&(s===null||u===null||s===u)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function qC(e,t,n){let r=ry(n),o=fd.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):fd.set(e,[{el:t,declarationView:r}]);}var Rn$2=new Set,Qa=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Qa||{}),Ut$1=new D$1(""),zg=new Set;function it$1(e){zg.has(e)||(zg.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var Ka=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),qd=[0,1,2,3],Zd=(()=>{class e{ngZone=p(J$3);scheduler=p(dt$2);errorHandler=p(Qe,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){p(Ut$1,{optional:true});}execute(){let n=this.sequences.size>0;n&&V$1(F$3.AfterRenderHooksStart),this.executing=true;for(let r of qd)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&V$1(F$3.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[ir]??=[]).push(n),cr(r),r[N$2]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(Qa.AFTER_NEXT_RENDER,n):n()}static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),di$2=class di{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[ir];t&&(this.view[ir]=t.filter(n=>n!==this));}};function Ja(e,t){let n=t?.injector??p(we$3);return it$1("NgAfterNextRender"),YC(e,n,t,true)}function ZC(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function YC(e,t,n,r){let o=t.get(Ka);o.impl??=t.get(Zd);let i=t.get(Ut$1,null,{optional:true}),s=n?.manualCleanup!==true?t.get(Me$4):null,a=t.get(Qr,null,{optional:true}),c=new di$2(o.impl,ZC(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Yd=new D$1("",{factory:()=>{let e=p(ee$2),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function oy(e,t,n){let r=e.get(Yd);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function QC(e,t){let n=e.get(Yd);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function KC(e,t){let n=e.get(Yd);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function JC(e,t){for(let[n,r]of t)oy(e,r.animateFns);}function Gg(e,t,n,r){let o=e?.[xt]?.enter;t!==null&&o&&o.has(n.index)&&JC(r,o);}function Wg(e,t,n,r){try{n.get(qo);}catch(s){return r(false)}let o=e?.[xt];o?.enter?.has(t.index)&&QC(n,o.enter.get(t.index).animateFns);let i=XC(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Xa(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Rn$2.add(e[At$1]),oy(n,()=>eb(e,t,o||void 0,i,r),o||void 0);}function XC(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[I$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function eb(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:u}=c();i.push(u);}n.detachedLeaveAnimationFns=void 0;}if(e&&Xa(e,t,i),i.length>0){let s=n||e?.[xt];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),nb(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Rn$2.delete(e[At$1]),o(true);});}else e&&Rn$2.delete(e[At$1]),o(false);}function Xa(e,t,n){if(t.type&12){let o=e[t.index];if(et$2(o))for(let i=te$1;i<o.length;i++){let s=o[i];s[I$1].type===2&&tb(s,n);}}let r=t.child;for(;r;)Xa(e,r,n),r=r.next;}function tb(e,t){let n=e[xt];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[I$1].firstChild;for(;r;)Xa(e,r,t),r=r.next;}function nb(e,t,n){t.then(()=>{e[xt]?.running===t&&(e[xt].running=void 0,Rn$2.delete(e[At$1])),n(true);});}function Jr$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;et$2(o)?c=o:tn$2(o)&&(u=true,o=o[ht$2]);let l=tt$2(o);e===0&&r!==null?(Gg(a,r,i,n),s==null?Qm(t,r,l):xa(t,r,l,s||null,true)):e===1&&r!==null?(Gg(a,r,i,n),xa(t,r,l,s||null,true),WC(i,l,a)):e===2?(a?.[xt]?.leave?.has(i.index)&&qC(i,l,a),ai$2.delete(l),Wg(a,i,n,d=>{if(ai$2.has(l)){ai$2.delete(l);return}Km(t,l,u,d);})):e===3&&(ai$2.delete(l),Wg(a,i,n,()=>{t.destroyNode(l);})),c!=null&&fb(t,e,n,c,i,r,s);}}function rb(e,t){iy(e,t),t[ht$2]=null,t[Te$3]=null;}function ob(e,t,n,r,o,i){r[ht$2]=o,r[Te$3]=t,tc(e,r,n,1,o,i);}function iy(e,t){t[pt$2].changeDetectionScheduler?.notify(9),tc(e,t,t[$$2],2,null,null);}function ib(e){let t=e[zr];if(!t)return Vl(e[I$1],e);for(;t;){let n=null;if(tn$2(t))n=t[zr];else {let r=t[te$1];r&&(n=r);}if(!n){for(;t&&!t[Xe$1]&&t!==e;)tn$2(t)&&Vl(t[I$1],t),t=t[ge$3];t===null&&(t=e),tn$2(t)&&Vl(t[I$1],t),n=t&&t[Xe$1];}t=n;}}function Qd(e,t){let n=e[sr],r=n.indexOf(t);n.splice(r,1);}function ec(e,t){if(ar(t))return;let n=t[$$2];n.destroyNode&&tc(e,t,n,3,null,null),ib(t);}function Vl(e,t){if(ar(t))return;let n=C(null);try{t[N$2]&=-129,t[N$2]|=256,t[$e$1]&&Dn$2(t[$e$1]),ab(e,t),sb(e,t),t[I$1].type===1&&t[$$2].destroy();let r=t[Sn$2];if(r!==null&&et$2(t[ge$3])){r!==t[ge$3]&&Qd(r,t);let o=t[Rt];o!==null&&o.detachView(e);}td(t);}finally{C(n);}}function sb(e,t){let n=e.cleanup,r=t[$r];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[$r]=null);let o=t[Kt$1];if(o!==null){t[Kt$1]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[In$2];if(i!==null){t[In$2]=null;for(let s of i)s.destroy();}}function ab(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 dr)){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];V$1(F$3.LifecycleHookStart,a,c);try{c.call(a);}finally{V$1(F$3.LifecycleHookEnd,a,c);}}else {V$1(F$3.LifecycleHookStart,o,i);try{i.call(o);}finally{V$1(F$3.LifecycleHookEnd,o,i);}}}}}function sy(e,t,n){return cb(e,t.parent,n)}function cb(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[ht$2];if(nn$2(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===yt$1.None||o===yt$1.Emulated)return null}return nt$2(r,n)}function ay(e,t,n){return lb(e,t,n)}function ub(e,t,n){return e.type&40?nt$2(e,n):null}var lb=ub;function Kd(e,t,n,r){let o=sy(e,r,t),i=t[$$2],s=r.parent||t[Te$3],a=ay(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Vg(i,o,n[c],a,false);else Vg(i,o,n,a,false);}function ci$2(e,t){if(t!==null){let n=t.type;if(n&3)return nt$2(t,e);if(n&4)return hd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return ci$2(e,r);{let o=e[t.index];return et$2(o)?hd(-1,o):tt$2(o)}}else {if(n&128)return ci$2(e,t.next);if(n&32)return Wd(t,e)()||tt$2(e[t.index]);{let r=cy(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Jt$1(e[_e$1]);return ci$2(o,r)}else return ci$2(e,t.next)}}}return null}function cy(e,t){if(t!==null){let r=e[_e$1][Te$3],o=t.projection;return r.projection[o]}return null}function hd(e,t){let n=te$1+e+1;if(n<t.length){let r=t[n],o=r[I$1].firstChild;if(o!==null)return ci$2(r,o)}return t[Tn$2]}function Jd(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Nt$1];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&to(tt$2(c),r),n.flags|=2),!qa(n))if(u&8)Jd(e,t,n.child,r,o,i,false),Jr$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Wd(n,r),d;for(;d=l();)Jr$1(t,e,a,o,d,n,i,r);Jr$1(t,e,a,o,c,n,i,r);}else u&16?uy(e,t,r,n,o,i):Jr$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function tc(e,t,n,r,o,i){Jd(n,r,e.firstChild,t,o,i,false);}function db(e,t,n){let r=t[$$2],o=sy(e,n,t),i=n.parent||t[Te$3],s=ay(i,n,t);uy(r,0,t,n,o,s);}function uy(e,t,n,r,o,i){let s=n[_e$1],c=s[Te$3].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Jr$1(t,e,n[Nt$1],o,l,r,i,n);}else {let u=c,l=s[ge$3];Am(r)&&(u.flags|=128),Jd(e,t,u,l,o,i,true);}}function fb(e,t,n,r,o,i,s){let a=r[Tn$2],c=tt$2(r);a!==c&&Jr$1(t,e,n,i,a,o,s);for(let u=te$1;u<r.length;u++){let l=r[u];tc(l[I$1],l,e,t,i,a);}}function hb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Lt$1.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Lt$1.Important),e.setStyle(n,r,o,i));}}function Xd(e,t,n,r,o,i,s,a,c,u,l){let d=X$1+r,f=d+o,h=pb(d,f),g=typeof u=="function"?u():u;return h[I$1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,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:g,incompleteFirstPass:false,ssrId:l}}function pb(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ce$2);return n}function gb(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Xd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function ef(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[ht$2]=o,d[N$2]=r|4|128|8|64|1024,(u!==null||e&&e[N$2]&2048)&&(d[N$2]|=2048),El(d),d[ge$3]=d[bn$2]=e,d[oe$1]=n,d[pt$2]=s||e&&e[pt$2],d[$$2]=a||e&&e[$$2],d[Nt$1]=c||e&&e[Nt$1]||null,d[Te$3]=i,d[At$1]=KI(),d[rr]=l,d[pl]=u,d[_e$1]=t.type==2?e[_e$1]:d,d}function mb(e,t,n){let r=nt$2(t,e),o=gb(n),i=e[pt$2].rendererFactory,s=tf(e,ef(e,o,null,ly(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ly(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function dy(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 tf(e,t){return e[zr]?e[hl][Xe$1]=t:e[zr]=t,e[hl]=t,t}function yb(e=1){fy(G$2(),w(),Ge$1()+e);}function fy(e,t,n,r){if((t[N$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ia(t,i,n);}else {let i=e.preOrderHooks;i!==null&&Ca(t,i,0,n);}Mn$2(n);}var nc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(nc||{});function fr(e,t,n,r){let o=C(null);try{let[i,s,a]=e.inputs[n],c=null;(s&nc.SignalBased)!==0&&(c=t[i][re$2]),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):pm(t,c,i,r);}finally{C(o);}}function hy(e,t,n,r,o){let i=Ge$1(),s=r&2;try{Mn$2(-1),s&&t.length>X$1&&fy(e,t,X$1,!1);let a=s?F$3.TemplateUpdateStart:F$3.TemplateCreateStart;V$1(a,o,n),n(r,o);}finally{Mn$2(i);let a=s?F$3.TemplateUpdateEnd:F$3.TemplateCreateEnd;V$1(a,o,n);}}function rc(e,t,n){Cb(e,t,n),(n.flags&64)===64&&bb(e,t,n);}function wi$2(e,t,n=nt$2){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 vb(e,t,n,r){let i=r.get(Um,jm)||n===yt$1.ShadowDom||n===yt$1.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function wb(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function py(e,t,n,r,o,i){let s=t[I$1];if(sf(e,s,t,n,r)){nn$2(e)&&Ib(t,e.index);return}e.type&3&&(n=wb(n)),gy(e,t,n,r,o,i);}function gy(e,t,n,r,o,i){if(e.type&3){let s=nt$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Ib(e,t){let n=rt$1(t,e);n[N$2]&16||(n[N$2]|=64);}function Cb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;nn$2(n)&&mb(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ra(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=li$2(t,e,s,n);if(to(c,t),i!==null&&Mb(t,s-r,c,a,n,i),Ot$1(a)){let u=rt$1(n.index,t);u[oe$1]=li$2(t,e,s,n);}}}function bb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=fg();try{Mn$2(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];ua(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Sb(c,u);}}finally{Mn$2(-1),ua(s);}}function Sb(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function nf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];ny(t,i.selectors,false)&&(r??=[],Ot$1(i)?r.unshift(i):r.push(i));}return r}function Tb(e,t,n,r,o,i){let s=nt$2(e,t);_b(t[$$2],s,i,e.value,n,r,o);}function _b(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?me$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function Mb(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];fr(r,n,c,u);}}function rf(e,t,n,r,o){let i=X$1+n,s=t[I$1],a=o(s,t,e,r,n);t[i]=a,qr(e,true);let c=e.type===2;return c?(Jm(t[$$2],a,e),(rg()===0||Gr(e))&&to(a,t),og()):to(a,t),ha()&&(!c||!qa(e))&&Kd(s,t,a,e),e}function of(e){let t=e;return Nl()?Rl():(t=t.parent,qr(t,false)),t}function Nb(e,t){let n=e[Nt$1];if(!n)return;let r;try{r=n.get(ke$2,null);}catch(o){r=null;}r?.(t);}function sf(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];fr(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];fr(l,u,r,o),a=true;}return a}function Rb(e,t,n,r,o,i){let s=null,a=null,c=null,u=false,l=e.directiveToIndex.get(r.type);if(typeof l=="number"?s=l:[s,a,c]=l,a!==null&&c!==null&&e.hostDirectiveInputs?.hasOwnProperty(o)){let d=e.hostDirectiveInputs[o];for(let f=0;f<d.length;f+=2){let h=d[f];if(h>=a&&h<=c){let g=t.data[h],v=d[f+1];fr(g,n[h],v,i),u=true;}else if(h>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(fr(r,n[s],o,i),u=true),u}function Ab(e,t){let n=rt$1(t,e),r=n[I$1];xb(r,n);let o=n[ht$2];o!==null&&n[rr]===null&&(n[rr]=Bm(o,n[Nt$1])),V$1(F$3.ComponentStart);try{af(r,n,n[oe$1]);}finally{V$1(F$3.ComponentEnd,n[oe$1]);}}function xb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function af(e,t,n){da(t);try{let r=e.viewQuery;r!==null&&rd(1,r,n);let o=e.template;o!==null&&hy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Rt]?.finishViewCreation(e),e.staticContentQueries&&Hm(e,t),e.staticViewQueries&&rd(2,e.viewQuery,n);let i=e.components;i!==null&&Ob(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[N$2]&=-5,fa();}}function Ob(e,t){for(let n=0;n<t.length;n++)Ab(e,t[n]);}function Ii$2(e,t,n,r){let o=C(null);try{let i=t.tView,a=e[N$2]&4096?4096:16,c=ef(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[Sn$2]=u;let l=e[Rt];return l!==null&&(c[Rt]=l.createEmbeddedView(i)),af(i,c,n),c}finally{C(o);}}function no(e,t){return !t||t.firstChild===null||Am(e)}function fi$2(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(tt$2(i)),et$2(i)&&my(i,r);let s=n.type;if(s&8)fi$2(e,t,n.child,r);else if(s&32){let a=Wd(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=cy(t,n);if(Array.isArray(a))r.push(...a);else {let c=Jt$1(t[_e$1]);fi$2(c[I$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function my(e,t){for(let n=te$1;n<e.length;n++){let r=e[n],o=r[I$1].firstChild;o!==null&&fi$2(r[I$1],r,o,t);}e[Tn$2]!==e[ht$2]&&t.push(e[Tn$2]);}function yy(e){if(e[ir]!==null){for(let t of e[ir])t.impl.addSequence(t);e[ir].length=0;}}var vy=[];function kb(e){return e[$e$1]??Pb(e)}function Pb(e){let t=vy.pop()??Object.create(Fb);return t.lView=e,t}function Lb(e){e.lView[$e$1]!==e&&(e.lView=null,vy.push(e));}var Fb=x$2(w$1({},yn$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{cr(e.lView);},consumerOnSignalRead(){this.lView[$e$1]=this;}});function jb(e){let t=e[$e$1]??Object.create(Ub);return t.lView=e,t}var Ub=x$2(w$1({},yn$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Jt$1(e.lView);for(;t&&!Dy(t[I$1]);)t=Jt$1(t);t&&wl(t);},consumerOnSignalRead(){this.lView[$e$1]=this;}});function Dy(e){return e.type!==2}function Ey(e){if(e[In$2]===null)return;let t=true;for(;t;){let n=false;for(let r of e[In$2])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[N$2]&8192);}}var Bb=100;function wy(e,t=0){let r=e[pt$2].rendererFactory;r.begin?.();try{Hb(e,t);}finally{r.end?.();}}function Hb(e,t){let n=Al();try{Ho(!0),pd(e,t);let r=0;for(;Qo(e);){if(r===Bb)throw new y$2(103,!1);r++,pd(e,1);}}finally{Ho(n);}}function Vb(e,t,n,r){if(ar(t))return;let o=t[N$2],i=false,s=false;da(t);let a=true,c=null,u=null;(Dy(e)?(u=kb(t),c=Qt$1(u)):js()===null?(a=false,u=jb(t),c=Qt$1(u)):t[$e$1]&&(Dn$2(t[$e$1]),t[$e$1]=null));try{El(t),ug(e.bindingStartIndex),n!==null&&hy(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&Ia(t,h,null);}else {let h=e.preOrderHooks;h!==null&&Ca(t,h,0,null),Bl(t,0);}if(s||$b(t),Ey(t),Iy(t,0),e.contentQueries!==null&&Hm(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&Ia(t,h);}else {let h=e.contentHooks;h!==null&&Ca(t,h,1),Bl(t,1);}Gb(e,t);let d=e.components;d!==null&&by(t,d,0);let f=e.viewQuery;if(f!==null&&rd(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&Ia(t,h);}else {let h=e.viewHooks;h!==null&&Ca(t,h,2),Bl(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[na]){for(let h of t[na])h();t[na]=null;}i||(yy(t),t[N$2]&=-73);}catch(l){throw cr(t),l}finally{u!==null&&(vn$2(u,c),a&&Lb(u)),fa();}}function Iy(e,t){for(let n=Om(e);n!==null;n=km(n))for(let r=te$1;r<n.length;r++){let o=n[r];Cy(o,t);}}function $b(e){for(let t=Om(e);t!==null;t=km(t)){if(!(t[N$2]&2))continue;let n=t[sr];for(let r=0;r<n.length;r++){let o=n[r];wl(o);}}}function zb(e,t,n){V$1(F$3.ComponentStart);let r=rt$1(t,e);try{Cy(r,n);}finally{V$1(F$3.ComponentEnd,r[oe$1]);}}function Cy(e,t){ia(e)&&pd(e,t);}function pd(e,t){let r=e[I$1],o=e[N$2],i=e[$e$1],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Lr(i)),s||=false,i&&(i.dirty=false),e[N$2]&=-9217,s)Vb(r,e,r.template,e[oe$1]);else if(o&8192){let a=C(null);try{Ey(e),Iy(e,1);let c=r.components;c!==null&&by(e,c,1),yy(e);}finally{C(a);}}}function by(e,t,n){for(let r=0;r<t.length;r++)zb(e,t[r],n);}function Gb(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)Mn$2(~o);else {let i=o,s=n[++r],a=n[++r];dg(s,i);let c=t[i];V$1(F$3.HostBindingsUpdateStart,c);try{a(2,c);}finally{V$1(F$3.HostBindingsUpdateEnd,c);}}}}finally{Mn$2(-1);}}function cf(e,t){let n=Al()?64:1088;for(e[pt$2].changeDetectionScheduler?.notify(t);e;){e[N$2]|=n;let r=Jt$1(e);if(Wr(e)&&!r)return e;e=r;}return null}function Sy(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Ty(e,t){let n=te$1+t;if(n<e.length)return e[n]}function Ci$2(e,t,n,r=true){let o=t[I$1];if(Wb(o,t,e,n),r){let s=hd(n,e),a=t[$$2],c=a.parentNode(e[Tn$2]);c!==null&&ob(o,e[Te$3],a,t,c,s);}let i=t[rr];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function _y(e,t){let n=hi$2(e,t);return n!==void 0&&ec(n[I$1],n),n}function hi$2(e,t){if(e.length<=te$1)return;let n=te$1+t,r=e[n];if(r){let o=r[Sn$2];o!==null&&o!==e&&Qd(o,r),t>0&&(e[n-1][Xe$1]=r[Xe$1]);let i=Wo(e,te$1+t);rb(r[I$1],r);let s=i[Rt];s!==null&&s.detachView(i[I$1]),r[ge$3]=null,r[Xe$1]=null,r[N$2]&=-129;}return r}function Wb(e,t,n,r){let o=te$1+r,i=n.length;r>0&&(n[o-1][Xe$1]=t),r<i-te$1?(t[Xe$1]=n[o],cl(n,te$1+r,t)):(n.push(t),t[Xe$1]=null),t[ge$3]=n;let s=t[Sn$2];s!==null&&n!==s&&My(s,t);let a=t[Rt];a!==null&&a.insertView(e),sa(t),t[N$2]|=128;}function My(e,t){let n=e[sr],r=t[ge$3];if(tn$2(r))e[N$2]|=2;else {let o=r[ge$3][_e$1];t[_e$1]!==o&&(e[N$2]|=2);}n===null?e[sr]=[t]:n.push(t);}var An$2=class An{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[I$1];return fi$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[oe$1]}set context(t){this._lView[oe$1]=t;}get destroyed(){return ar(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ge$3];if(et$2(t)){let n=t[Yo],r=n?n.indexOf(this):-1;r>-1&&(hi$2(t,r),Wo(n,r));}this._attachedToViewContainer=false;}ec(this._lView[I$1],this._lView);}onDestroy(t){aa(this._lView,t);}markForCheck(){cf(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[N$2]&=-129;}reattach(){sa(this._lView),this._lView[N$2]|=128;}detectChanges(){this._lView[N$2]|=1024,wy(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new y$2(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=Wr(this._lView),n=this._lView[Sn$2];n!==null&&!t&&Qd(n,this._lView),iy(this._lView[I$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new y$2(902,false);this._appRef=t;let n=Wr(this._lView),r=this._lView[Sn$2];r!==null&&!n&&My(r,this._lView),sa(this._lView);}};var ro=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qb;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=Ii$2(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new An$2(i)}}return e})();function qb(){return oc(de$2(),w())}function oc(e,t){return e.type&4?new ro(t,e,so(e,t)):null}function ao(e,t,n,r,o){let i=e.data[t];if(i===null)i=Zb(e,t,n,r,o),lg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=ag();i.injectorIndex=s===null?-1:s.injectorIndex;}return qr(i,true),i}function Zb(e,t,n,r,o){let i=Ml(),s=Nl(),a=s?i:i&&i.parent,c=e.data[t]=Qb(e,a,n,t,r,o);return Yb(e,c,i,s),c}function Yb(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 Qb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Sl()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:kl(),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}}function Kb(e){let t=e[gl]??[],r=e[ge$3][$$2],o=[];for(let i of t)i.data[Fm]!==void 0?o.push(i):Jb(i,r);e[gl]=o;}function Jb(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Lm];for(;n<o;){let i=r.nextSibling;Km(t,r,false),r=i,n++;}}}var Xb=()=>null,eS=()=>null;function Oa(e,t){return Xb()}function Ny(e,t,n){return eS()}var Ry=class{},hr=class{},co=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>tS()}return e})();function tS(){let e=w(),t=de$2(),n=rt$1(t.index,e);return (tn$2(n)?n:e)[$$2]}var Ay=(()=>{class e{static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>null})}return e})();function xy(e){return e.debugInfo?.className||e.type.name||null}var Sa={},ka$1=class ka{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Sa,r);return o!==Sa||n===Sa?o:this.parentInjector.get(t,n,r)}};function uf(e,t,n){return e[t]=n}function nS(e,t){return e[t]}function Fe$3(e,t,n){if(n===ce$2)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function pi$2(e,t,n,r){let o=Fe$3(e,t,n);return Fe$3(e,t+1,r)||o}function rS(e,t,n,r,o){let i=pi$2(e,t,n,r);return Fe$3(e,t+2,o)||i}function Oy(e,t,n,r,o,i){let s=pi$2(e,t,n,r);return pi$2(e,t+2,o,i)||s}function lr(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&XI(o,i);let s=nn$2(e)?rt$1(e.index,t):t;cf(s,5);let a=t[oe$1],c=Zg(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=Zg(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function Zg(e,t,n,r){let o=C(null);try{return V$1(F$3.OutputStart,t,n),n(r)!==!1}catch(i){return Nb(e,i),false}finally{V$1(F$3.OutputEnd,t,n),C(o);}}function lf(e,t,n,r,o,i,s,a){let c=Gr(e),u=false,l=null;if(!r&&c&&(l=iS(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=nt$2(e,n),f=r?r(d):d;r||(a.__ngNativeEl__=d);let h=o.listen(f,i,a);if(!oS(i)){let g=r?v=>r(tt$2(v[e.index])):e.index;ky(g,t,n,i,a,h,false);}}return u}function oS(e){return e.startsWith("animation")||e.startsWith("transition")}function iS(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[$r],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function ky(e,t,n,r,o,i,s){let a=t.firstCreatePass?Cl(t):null,c=Il(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function Yg(e,t,n,r,o){let i=null,s=null,a=null,c=false,u=e.directiveToIndex.get(n.type);if(typeof u=="number"?i=u:[i,s,a]=u,s!==null&&a!==null&&e.hostDirectiveOutputs?.hasOwnProperty(r)){let l=e.hostDirectiveOutputs[r];for(let d=0;d<l.length;d+=2){let f=l[d];if(f>=s&&f<=a)c=true,Pa(e,t,f,l[d+1],r,o);else if(f>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,Pa(e,t,i,r,r,o)),c}function Pa(e,t,n,r,o,i){let s=t[n],a=t[I$1],u=a.data[n].outputs[r],d=s[u].subscribe(i);ky(e.index,a,t,o,i,d,true);}function sS(){aS();}function aS(){let e=w(),t=G$2(),n=de$2();if(t.firstCreatePass&&lS(t,n),n.controlDirectiveIndex===-1)return;it$1("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new La(e,t,n));}function cS(){uS();}function uS(){let e=w(),t=G$2(),n=Yr();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new La(e,t,n));}var La=class{lView;tView;tNode;hasPassThrough;constructor(t,n,r){this.lView=t,this.tView=n,this.tNode=r,this.hasPassThrough=!!(r.flags&4096);}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return nt$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];Yg(this.tNode,this.lView,r,t,lr(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];Yg(this.tNode,this.lView,r,n,lr(this.tNode,this.lView,t));}listenToDom(t,n){lf(this.tNode,this.tView,this.lView,void 0,this.lView[$$2],t,n,lr(this.tNode,this.lView,n));}setInputOnDirectives(t,n){let r=this.tNode.inputs?.[t],o=this.tNode.hostDirectiveInputs?.[t];if(!r&&!o)return false;let i=false;if(r)for(let s of r){if(s===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[s],c=this.lView[s];fr(a,c,t,n),i=true;}if(o)for(let s=0;s<o.length;s+=2){let a=o[s];if(a===this.tNode.controlDirectiveIndex)continue;let c=o[s+1],u=this.tView.data[a],l=this.lView[a];fr(u,l,c,n),i=true;}return i}setCustomControlModelInput(t){let n=this.tView.data[this.tNode.customControlIndex],r=this.tNode.flags&1024?"value":"checked";Rb(this.tNode,this.tView,this.lView,n,r,t);}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let n=this.tView.data[this.tNode.customControlIndex];return (n.signalFormsInputPresence??=this._buildCustomControlInputCache(n))[t]===true}_buildCustomControlInputCache(t){let n={};for(let r in t.inputs)n[r]=true;if(t.hostDirectives!==null){let r=[...t.hostDirectives];for(;r.length>0;){let o=r.shift();if(typeof o!="function"){for(let s in o.inputs)n[o.inputs[s]]=true;let i=Qg(o.directive);i!==null&&r.push(...i);continue}for(let i of o()){if(typeof i=="function")continue;if(i.inputs)for(let a=0;a<i.inputs.length;a+=2){let c=i.inputs[a+1]||i.inputs[a];n[c]=true;}let s=Qg(i.directive);s!==null&&r.push(...s);}}}return n}};function Qg(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function lS(e,t,n){for(let o=t.directiveStart;o<t.directiveEnd;o++)if(e.data[o].controlDef){t.controlDirectiveIndex=o;break}if(t.controlDirectiveIndex===-1)return;let r=e.data[t.controlDirectiveIndex].controlDef;if(r.passThroughInput&&(t.inputs?.[r.passThroughInput]?.length??0)>1){t.flags|=4096;return}dS(e,t);}function dS(e,t){for(let n=t.directiveStart;n<t.directiveEnd;n++){let r=e.data[n];if(!(t.directiveToIndex&&!t.directiveToIndex.has(r.type))){if(Kg(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(Kg(r,"checked")){t.flags|=2048,t.customControlIndex=n;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let n=(r,o)=>{let i=t.hostDirectiveInputs[r],s=t.hostDirectiveOutputs[r+"Change"];if(!i||!s)return false;for(let a=0;a<i.length;a+=2){let c=i[a];for(let u=0;u<s.length;u+=2){let l=s[u];if(c===l)for(let d of t.directiveToIndex.values()){if(!Array.isArray(d))continue;let[f,h,g]=d;if(c>=h&&c<=g)return t.flags|=o,t.customControlIndex=f,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function Kg(e,t){return fS(e,t)&&hS(e,t+"Change")}function fS(e,t){return t in e.inputs}function hS(e,t){return t in e.outputs}var gd=Symbol("BINDING");var yr=new D$1("");function Fa(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=Zs(o,a);else if(i==2){let c=a,u=t[++s];r=Zs(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function se$1(e,t=0){let n=w();if(n===null)return b(e,t);let r=de$2();return Tm(r,n,Ee$4(e),t)}function bi$2(){let e="invalid";throw new Error(e)}function Py(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}mS(e,t,n,a,i,c,u);}i!==null&&r!==null&&pS(n,r,i);}function pS(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 y$2(-301,false);r.push(t[o],i);}}function gS(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function mS(e,t,n,r,o,i,s){let a=r.length,c=null;for(let f=0;f<a;f++){let h=r[f];c===null&&Ot$1(h)&&(c=h,gS(e,n,f)),Xl(Ra(n,t),e,h.type);}IS(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){let h=r[f];h.providersResolver&&h.providersResolver(h);}let u=false,l=false,d=dy(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){let h=r[f];if(n.mergedAttrs=eo(n.mergedAttrs,h.hostAttrs),vS(e,n,t,d,h),wS(d,h,o),s!==null&&s.has(h)){let[v,E]=s.get(h);n.directiveToIndex.set(h.type,[d,v+n.directiveStart,E+n.directiveStart]);}else (i===null||!i.has(h))&&n.directiveToIndex.set(h.type,d);h.contentQueries!==null&&(n.flags|=4),(h.hostBindings!==null||h.hostAttrs!==null||h.hostVars!==0)&&(n.flags|=64);let g=h.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}yS(e,n,i);}function yS(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Jg(0,t,o,r),Jg(1,t,o,r),em(t,r,false);else {let i=n.get(o);Xg(0,t,i,r),Xg(1,t,i,r),em(t,r,true);}}}function Jg(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),Ly(t,i);}}function Xg(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),Ly(t,s);}}function Ly(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function em(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Gd(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 vS(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=wn$2(o.type)),s=new dr(i,Ot$1(o),se$1,null);e.blueprint[r]=s,n[r]=s,DS(e,t,r,dy(e,n,o.hostVars,ce$2),o);}function DS(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;ES(s)!=a&&s.push(a),s.push(n,r,i);}}function ES(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function wS(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ot$1(t)&&(n[""]=e);}}function IS(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function df(e,t,n,r,o,i,s,a){let c=t[I$1],u=c.consts,l=ze$2(u,s),d=ao(c,e,n,r,l);return Py(c,t,d,ze$2(u,a),o),d.mergedAttrs=eo(d.mergedAttrs,d.attrs),d.attrs!==null&&Fa(d,d.attrs,false),d.mergedAttrs!==null&&Fa(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function ff(e,t){ym(e,t),ml(t)&&e.queries.elementEnd(t);}function CS(e,t,n,r,o,i){let s=t.consts,a=ze$2(s,o),c=ao(t,e,n,r,a);if(c.mergedAttrs=eo(c.mergedAttrs,c.attrs),i!=null){let u=ze$2(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&Fa(c,c.attrs,false),c.mergedAttrs!==null&&Fa(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Fy=typeof ShadowRoot<"u",bS=typeof Document<"u";function SS(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&nc.SignalBased)!==0};return o&&(i.transform=o),i})}function TS(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function _S(e,t,n){let r=t instanceof ee$2?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ka$1(n,r):n}function MS(e){let t=e.get(hr,null);if(t===null)throw new y$2(407,false);let n=e.get(Ay,null),r=e.get(dt$2,null),o=e.get(Ut$1,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function NS(e,t){let n=jy(e);return Ym(t,n,n==="svg"?yl:n==="math"?Kp:null)}function RS(e){if(e?.toLowerCase()==="script")throw new y$2(905,false)}function jy(e){return (e.selectors[0][0]||"div").toLowerCase()}var pr=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SS(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TS(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=$C(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){V$1(F$3.DynamicComponentStart);let a=C(null);try{let c=this.componentDef,u=_S(c,o||this.ngModule,t),l=MS(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(xy(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{C(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=AS(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?vb(u,o,a.encapsulation,n):NS(a,u);RS(l?.tagName);let d=n.get(yr,null),f=xS(l,()=>n.get(Q$3,null)??Pd());d&&d.addHost(f);let h=s?.some(tm)||i?.some(E=>typeof E!="function"&&E.bindings.some(tm)),g=ef(null,c,null,512|ly(a),null,null,t,u,n,null,Bm(l,n,true));d&&Fy&&f instanceof ShadowRoot&&aa(g,()=>{d.removeHost(f);}),g[X$1]=l,da(g);let v=null;try{let E=df(X$1,g,2,"#host",()=>c.directiveRegistry,!0,0);Jm(u,l,E),to(l,g),rc(c,g,E),Fd(c,E,g),ff(c,E),r!==void 0&&kS(E,this.ngContentSelectors,r),v=rt$1(E.index,g),g[oe$1]=v[oe$1],af(c,g,null);}catch(E){throw v!==null&&td(v),td(g),E}finally{V$1(F$3.DynamicComponentEnd),fa();}return new ja(this.componentType,g,!!h)}};function AS(e,t,n,r){let o=e?["ng-version","22.0.8"]:zC(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[gd].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let f of d.bindings){a+=f[gd].requiredVars;let h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,f=il(d);c.push(f);}return Xd(0,null,OS(i,s),1,a,c,null,null,null,[o],null)}function xS(e,t){let n=e.getRootNode?.();return bS&&n instanceof Document?n.head:n&&Fy&&n instanceof ShadowRoot?n:t().head}function OS(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function tm(e){let t=e[gd].kind;return t==="input"||t==="twoWay"}var ja=class extends Ry{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ra(n[I$1],X$1),this.location=so(this._tNode,n),this.instance=rt$1(this._tNode.index,n)[oe$1],this.hostView=this.changeDetectorRef=new An$2(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;sf(r,o[I$1],o,t,n);this.previousInputValues.set(t,n);let s=rt$1(r.index,o);cf(s,1);}get injector(){return new Nn$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function kS(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 On$2=(()=>{class e{static __NG_ELEMENT_ID__=PS}return e})();function PS(){let e=de$2();return Uy(e,w())}var md=class e extends On$2{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return so(this._hostTNode,this._hostLView)}get injector(){return new Nn$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=xd(this._hostTNode,this._hostLView);if(Em(t)){let n=Ma(t,this._hostLView),r=_a(t),o=n[I$1].data[r+8];return new Nn$2(o,n)}else return new Nn$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=nm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-te$1}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Oa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,no(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,u=n||{};c=u.index,r=u.injector,o=u.projectableNodes,i=u.environmentInjector||u.ngModuleRef,s=u.directives,a=u.bindings;let l=new pr(Xt$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let M=this.parentInjector.get(ee$2,null);M&&(i=M);}let f=Xt$2(l.componentType??{}),h=Oa(this._lContainer,f?.id??null),g=null,v=l.create(d,o,g,i,s,a);return this.insertImpl(v.hostView,c,no(this._hostTNode,h)),v}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Xp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[ge$3],u=new e(c,c[Te$3],c[ge$3]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Ci$2(s,o,i,r),t.attachToViewContainerRef(),cl($l(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=nm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=hi$2(this._lContainer,n);r&&(Wo($l(this._lContainer),n),ec(r[I$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=hi$2(this._lContainer,n);return r&&Wo($l(this._lContainer),n)!=null?new An$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function nm(e){return e[Yo]}function $l(e){return e[Yo]||(e[Yo]=[])}function Uy(e,t){let n,r=t[e.index];return et$2(r)?n=r:(n=Sy(r,t,null,e),t[e.index]=n,tf(t,n)),FS(n,t,e,r),new md(n,e,t)}function LS(e,t){let n=e[$$2],r=n.createComment(""),o=nt$2(t,e),i=n.parentNode(o);return xa(n,i,r,n.nextSibling(o),false),r}var FS=BS;function BS(e,t,n,r){if(e[Tn$2])return;let o;n.type&8?o=tt$2(r):o=LS(t,n),e[Tn$2]=o;}var yd=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},vd=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)pf(t,n).matches!==null&&this.queries[n].setDirty();}},Ua=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=GS(t):this.predicate=t;}},Dd=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},Ed=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,HS(n,i)),this.matchTNodeWithReadOption(t,n,ba(n,t,i,false,false));}else r===ro?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ba(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Ft$1||o===On$2||o===ro&&n.type&4)this.addMatch(n.index,-2);else {let i=ba(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function HS(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function VS(e,t){return e.type&11?so(e,t):e.type&4?oc(e,t):null}function $S(e,t,n,r){return n===-1?VS(t,e):n===-2?zS(e,t,r):li$2(e,e[I$1],n,t)}function zS(e,t,n){if(n===Ft$1)return so(t,e);if(n===ro)return oc(t,e);if(n===On$2)return Uy(t,e)}function By(e,t,n,r){let o=t[Rt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else {let l=i[u];a.push($S(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function wd(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=By(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let u=i[a+1],l=t[-c];for(let d=te$1;d<l.length;d++){let f=l[d];f[Sn$2]===f[ge$3]&&wd(f[I$1],f,u,r);}if(l[sr]!==null){let d=l[sr];for(let f=0;f<d.length;f++){let h=d[f];wd(h[I$1],h,u,r);}}}}}return r}function hf(e,t){return e[Rt].queries[t].queryList}function Hy(e,t,n){let r=new Aa((n&4)===4);return ng(e,t,r,r.destroy),(t[Rt]??=new vd).queries.push(new yd(r))-1}function Vy(e,t,n){let r=G$2();return r.firstCreatePass&&(zy(r,new Ua(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),Hy(r,w(),t)}function $y(e,t,n,r){let o=G$2();if(o.firstCreatePass){let i=de$2();zy(o,new Ua(t,n,r),i.index),WS(o,e),(n&2)===2&&(o.staticContentQueries=true);}return Hy(o,w(),n)}function GS(e){return e.split(",").map(t=>t.trim())}function zy(e,t,n){e.queries===null&&(e.queries=new Dd),e.queries.track(new Ed(t,n));}function WS(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function pf(e,t){return e.queries.getByIndex(t)}function Gy(e,t){let n=e[I$1],r=pf(n,t);return r.crossesNgTemplate?wd(n,e,t,[]):By(n,e,r,t)}function gf(e,t,n){let r,o=Fo(()=>{r._dirtyCounter();let i=qS(r,e);if(t&&i===void 0)throw new y$2(-951,false);return i});return r=o[re$2],r._dirtyCounter=ie$1(0),r._flatValue=void 0,o}function mf(e){return gf(true,false)}function yf(e){return gf(true,true)}function Wy(e){return gf(false,false)}function qy(e,t){let n=e[re$2];n._lView=w(),n._queryIndex=t,n._queryList=hf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function qS(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[N$2]&4)return t?void 0:Se$3;let o=hf(n,r),i=Gy(n,r);return o.reset(i,Rm),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function vr(e){return !!e&&typeof e.then=="function"}function ic(e){return !!e&&typeof e.subscribe=="function"}var gr=class{},sc=class{};var Ba=class extends gr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Pp(t);this._bootstrapComponents=xC(i.bootstrap),this._r3Injector=Pl(t,n,[{provide:gr,useValue:this},...r],zo(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 sc{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Ba(this.moduleType,t,[])}};var gi$2=class gi extends gr{injector;instance=null;constructor(t){super();let n=new er([...t.providers,{provide:gr,useValue:this}],t.parent||Vr(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function uo(e,t,n=null){return new gi$2({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var ZS=(()=>{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=ll(false,n.type),o=r.length>0?uo([r],this._injector,""):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=R$1({token:e,providedIn:"environment",factory:()=>new e(b(ee$2))})}return e})();function vf(e){return yi$2(()=>{let t=Zy(e),n=x$2(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Od.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(ZS).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||yt$1.Emulated,styles:e.styles||Se$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&it$1("NgStandalone"),Yy(n);let r=e.dependencies;return n.directiveDefs=rm(r,YS),n.pipeDefs=rm(r,Lp),n.id=JS(n),n})}function YS(e){return Xt$2(e)||il(e)}function lo(e){return yi$2(()=>({type:e.type,bootstrap:e.bootstrap||Se$3,declarations:e.declarations||Se$3,imports:e.imports||Se$3,exports:e.exports||Se$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function QS(e,t){if(e==null)return Cn$2;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=nc.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function KS(e){if(e==null)return Cn$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function kn$2(e){return yi$2(()=>{let t=Zy(e);return Yy(t),t})}function Dr(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function Zy(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Cn$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||Se$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:QS(e.inputs,t),outputs:KS(e.outputs),debugInfo:null}}function Yy(e){e.features?.forEach(t=>t(e));}function rm(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function JS(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}var Df=new D$1("");function ac(e){return ft$2([{provide:Df,multi:true,useValue:e}])}var Ef=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=p(Df,{optional:true})??[];injector=p(we$3);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=ye$2(this.injector,o);if(vr(i))n.push(i);else if(ic(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function XS(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function eT(e){return Object.getPrototypeOf(e.prototype).constructor}function Qy(e){let t=eT(e.type),n=true,r=[e];for(;t;){let o;if(Ot$1(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new y$2(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=zl(e.inputs),s.declaredInputs=zl(e.declaredInputs),s.outputs=zl(e.outputs);let a=o.hostBindings;a&&iT(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&rT(e,c),u&&oT(e,u),tT(e,o),kp(e.outputs,o.outputs),Ot$1(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===Qy&&(n=false);}}t=Object.getPrototypeOf(t);}nT(r);}function tT(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 nT(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=eo(o.hostAttrs,n=eo(n,o.hostAttrs));}}function zl(e){return e===Cn$2?{}:e===Se$3?[]:e}function rT(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function oT(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function iT(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function Ky(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=eo(e.mergedAttrs,e.attrs);let l=e.tView=Xd(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),qr(e,false);let c=aT(n,t);ha()&&Kd(n,t,c,e),to(c,t);let u=Sy(c,t,c,e);t[r+X$1]=u,tf(t,u);}function sT(e,t,n,r,o,i,s,a,c,u,l){let d=n+X$1,f;return t.firstCreatePass?(f=ao(t,d,4,s||null,a||null),Py(t,e,f,ze$2(t.consts,u),nf),ym(t,f)):f=t.data[d],Ky(f,e,t,n,r,o,i,c),Gr(f)&&rc(t,e,f),u!=null&&wi$2(e,f,l),f}function oo(e,t,n,r,o,i,s,a,c,u,l){let d=n+X$1,f;if(t.firstCreatePass){if(f=ao(t,d,4,s||null,a||null),u!=null){let h=ze$2(t.consts,u);f.localNames=[];for(let g=0;g<h.length;g+=2)f.localNames.push(h[g],-1);}}else f=t.data[d];return Ky(f,e,t,n,r,o,i,c),u!=null&&wi$2(e,f,l),f}function Jy(e,t,n,r,o,i,s,a){let c=w(),u=G$2(),l=ze$2(u.consts,i);return sT(c,u,e,t,n,r,o,l,void 0,s,a),Jy}function Xy(e,t,n,r,o,i,s,a){let c=w(),u=G$2(),l=ze$2(u.consts,i);return oo(c,u,e,t,n,r,o,l,void 0,s,a),Xy}var aT=cT;function cT(e,t,n,r){return Xo(true),t[$$2].createComment("")}var cc=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var wf=new D$1("");var fo=new D$1("");function ev(){ku(()=>{let e="";throw new y$2(600,e)});}var uT=10;var sn$2=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=p(ke$2);afterRenderManager=p(Ka);zonelessEnabled=p(Kr);rootEffectScheduler=p(ma);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ne$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(kt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(j$3(n=>!n))}constructor(){p(Ut$1,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=p(ee$2);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=we$3.NULL){return this._injector.get(J$3).run(()=>{if(V$1(F$3.BootstrapComponentStart),!this._injector.get(Ef).done){let M="";throw new y$2(405,M)}let a=Xt$2(n),c=this._injector.get(gr),u=new pr(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:f}=lT(r),h=l||u.selector,g=u.create(o,[],h,c.injector,d,f),v=g.location.nativeElement,E=g.injector.get(wf,null);return E?.registerApplication(v),g.onDestroy(()=>{this.detachView(g.hostView),ui$2(this.components,g),E?.unregisterApplication(v);}),this._loadComponent(g),V$1(F$3.BootstrapComponentEnd,g),g})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){V$1(F$3.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Qa.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw V$1(F$3.ChangeDetectionEnd),new y$2(101,false);let n=C(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,C(n),this.afterTick.next(),V$1(F$3.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(hr,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<uT;){V$1(F$3.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{V$1(F$3.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!Qo(o))continue;let i=r&&!this.zonelessEnabled?0:1;wy(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Qo(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;ui$2(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(fo,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>ui$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new y$2(406,false);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=Z$2({token:e,factory:e.\u0275fac})}return e})();function lT(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function ui$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function uc(e,t,n,r){let o=w(),i=_n$2();if(Fe$3(o,i,t)){G$2();let a=Yr();Tb(a,o,e,t,n,r);}return uc}function dT(){return w()[_e$1][oe$1]}var Id=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 Gl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function fT(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){C(r);let u=t.length-1;for(C(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],f=Gl(s,l,s,d,n);if(f!==0){f<0&&e.updateValue(s,d),s++;continue}let h=e.at(a),g=t[u],v=Gl(a,h,u,g,n);if(v!==0){v<0&&e.updateValue(a,g),a--,u--;continue}let E=n(s,l),M=n(a,h),z=n(s,d);if(Object.is(z,M)){let le=n(u,g);Object.is(le,E)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Va,i??=im(e,s,a,n),Cd(e,o,s,z))e.updateValue(s,d),s++,a++;else if(i.has(z))o.set(E,e.detach(s)),a--;else {let le=e.create(s,t[s]);e.attach(s,le),s++,a++;}}for(;s<=u;)om(e,o,n,s,t[s]),s++;}else if(t!=null){C(r);let u=t[Symbol.iterator]();C(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),f=l.value,h=Gl(s,d,s,f,n);if(h!==0)h<0&&e.updateValue(s,f),s++,l=u.next();else {o??=new Va,i??=im(e,s,a,n);let g=n(s,f);if(Cd(e,o,s,g))e.updateValue(s,f),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,f)),s++,a++,l=u.next();else {let v=n(s,d);o.set(v,e.detach(s)),a--;}}}for(;!l.done;)om(e,o,n,e.length,l.value),l=u.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u);});}function Cd(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function om(e,t,n,r,o){if(Cd(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function im(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 Va=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;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),true}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 hT(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$2(),l=ze$2(u.consts,i);return oo(c,u,e,t,n,r,o,l,256,s,a),If}function If(e,t,n,r,o,i,s,a){it$1("NgControlFlow");let c=w(),u=G$2(),l=ze$2(u.consts,i);return oo(c,u,e,t,n,r,o,l,512,s,a),If}function pT(e,t){it$1("NgControlFlow");let n=w(),r=_n$2(),o=n[r]!==ce$2?n[r]:-1,i=o!==-1?$a(n,X$1+o):void 0,s=0;if(Fe$3(n,r,e)){let a=C(null);try{if(i!==void 0&&_y(i,s),e!==-1){let c=X$1+e,u=$a(n,c),l=_d(n[I$1],c),d=Ny(u,l,n),f=Ii$2(n,l,t,{dehydratedView:d});Ci$2(u,f,s,no(l,d));}}finally{C(a);}}else if(i!==void 0){let a=Ty(i,s);a!==void 0&&(a[oe$1]=t);}}var bd=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-te$1}};function gT(e){return e}function mT(e,t){return t}var Sd=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function yT(e,t,n,r,o,i,s,a,c,u,l,d,f){it$1("NgControlFlow");let h=w(),g=G$2(),v=c!==void 0,E=w(),M=a?s.bind(E[_e$1][oe$1]):s,z=new Sd(v,M);E[X$1+e]=z,oo(h,g,e+1,t,n,r,o,ze$2(g.consts,i),256),v&&oo(h,g,e+2,c,u,l,d,ze$2(g.consts,f),512);}var Td=class extends Id{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-te$1}at(t){return this.getLView(t)[oe$1].$implicit}attach(t,n){let r=n[rr];this.needsIndexUpdate||=t!==this.length,Ci$2(this.lContainer,n,t,no(this.templateTNode,r)),DT(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,ET(this.lContainer,t),wT(this.lContainer,t)}create(t,n){let r=Oa(this.lContainer,this.templateTNode.tView.ssrId);return Ii$2(this.hostLView,this.templateTNode,new bd(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ec(t[I$1],t);}updateValue(t,n){this.getLView(t)[oe$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[oe$1].$index=t;}getLView(t){return IT(this.lContainer,t)}};function vT(e){let t=C(null),n=Ge$1();try{let r=w(),o=r[I$1],i=r[n],s=n+1,a=$a(r,s);if(i.liveCollection===void 0){let u=_d(o,s);i.liveCollection=new Td(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(fT(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=_n$2(),l=c.length===0;if(Fe$3(r,u,l)){let d=n+2,f=$a(r,d);if(l){let h=_d(o,d),g=Ny(f,h,r),v=Ii$2(r,h,void 0,{dehydratedView:g});Ci$2(f,v,0,no(h,g));}else o.firstUpdatePass&&Kb(f),_y(f,0);}}}finally{C(t);}}function $a(e,t){return e[t]}function DT(e,t){if(e.length<=te$1)return;let n=te$1+t,r=e[n],o=r?r[xt]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Nt$1];KC(i,o),Rn$2.delete(r[At$1]),o.detachedLeaveAnimationFns=void 0;}}function ET(e,t){if(e.length<=te$1)return;let n=te$1+t,r=e[n],o=r?r[xt]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function wT(e,t){return hi$2(e,t)}function IT(e,t){return Ty(e,t)}function _d(e,t){return ra(e,t)}function tv(e,t,n){let r=w(),o=_n$2();if(Fe$3(r,o,t)){G$2();let s=Yr();py(s,r,e,t,r[$$2],n);}return tv}function Md(e,t,n,r,o){sf(t,e,n,o?"class":"style",r);}function za(e,t,n,r){let o=w(),i=o[I$1],s=e+X$1,a=i.firstCreatePass?df(s,o,2,t,nf,ca(),n,r):i.data[s];if(nn$2(a)){let c=o[pt$2].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(xy(u),()=>(sm(e,t,o,a,r),za))}}return sm(e,t,o,a,r),za}function sm(e,t,n,r,o){if(rf(r,n,e,t,rv),Gr(r)){let i=n[I$1];rc(i,n,r),Fd(i,r,n);}o!=null&&wi$2(n,r);}function Cf(){let e=G$2(),t=de$2(),n=of(t);return e.firstCreatePass&&ff(e,n),Tl(n)&&_l(),bl(),n.classesWithoutHost!=null&&PI(n)&&Md(e,n,w(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&LI(n)&&Md(e,n,w(),n.stylesWithoutHost,false),Cf}function lc(e,t,n,r){return za(e,t,n,r),Cf(),lc}function bf(e,t,n,r){let o=w(),i=o[I$1],s=e+X$1,a=i.firstCreatePass?CS(s,i,2,t,n,r):i.data[s];return rf(a,o,e,t,rv),r!=null&&wi$2(o,a),bf}function Sf(){let e=de$2(),t=of(e);return Tl(t)&&_l(),bl(),Sf}function nv(e,t,n,r){return bf(e,t,n,r),Sf(),nv}var rv=(e,t,n,r,o)=>(Xo(true),Ym(t[$$2],r,kl()));function Tf(e,t,n){let r=w(),o=r[I$1],i=e+X$1,s=o.firstCreatePass?df(i,r,8,"ng-container",nf,ca(),t,n):o.data[i];if(rf(s,r,e,"ng-container",CT),Gr(s)){let a=r[I$1];rc(a,r,s),Fd(a,s,r);}return n!=null&&wi$2(r,s),Tf}function _f(){let e=G$2(),t=de$2(),n=of(t);return e.firstCreatePass&&ff(e,n),_f}function ov(e,t,n){return Tf(e,t,n),_f(),ov}var CT=(e,t,n,r,o)=>(Xo(true),TC(t[$$2],""));function bT(){return w()}function iv(e,t,n){let r=w(),o=_n$2();if(Fe$3(r,o,t)){G$2();let s=Yr();gy(s,r,e,t,r[$$2],n);}return iv}var si$2=void 0;function ST(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var TT=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],si$2,[["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"]],si$2,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",si$2,si$2,si$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ST],Wl=Object.create(null);function je$1(e){let t=_T(e),n=am(t);if(n)return n;let r=t.split("-")[0];if(n=am(r),n)return n;if(r==="en")return TT;throw new y$2(701,false)}function am(e){if(!(e in Wl)){let t=Je$2.ng&&Je$2.ng.common&&Je$2.ng.common.locales&&Je$2.ng.common.locales[e];return t!==void 0&&(Wl[e]=t),t}return Wl[e]}var ue$1={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function _T(e){return e.toLowerCase().replace(/_/g,"-")}var Si$2="en-US";function sv(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function dc(e,t,n){let r=w(),o=G$2(),i=de$2();return cv(o,r,r[$$2],i,e,t,n),dc}function av(e,t,n){let r=w(),o=G$2(),i=de$2();return (i.type&3||n)&&lf(i,o,r,n,r[$$2],e,t,lr(i,r,t)),av}function cv(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=lr(r,t,i),lf(r,e,t,s,n,o,i,c)&&(a=false)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let f=l[d],h=l[d+1];c??=lr(r,t,i),Pa(r,t,f,h,o,c);}if(u&&u.length)for(let d of u)c??=lr(r,t,i),Pa(r,t,d,o,o,c);}}function NT(e=1){return yg(e)}function RT(e,t){let n=null,r=jC(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?ny(e,i,true):HC(r,i))return o}return n}function AT(e){let t=w()[_e$1][Te$3];if(!t.projection){let n=e?e.length:1,r=t.projection=Vp(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?RT(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function xT(e,t=0,n,r,o,i){let s=w(),a=G$2(),c=null;let u=ao(a,X$1+e,16,null,null);u.projection===null&&(u.projection=t),Rl();let d=!s[rr]||Sl();s[_e$1][Te$3].projection[u.projection]===null&&c!==null?OT(s,a,c):d&&!qa(u)&&db(a,s,u);}function OT(e,t,n){let r=X$1+n,o=t.data[r],i=e[r],s=Oa(i,o.tView.ssrId),a=Ii$2(e,o,void 0,{dehydratedView:s});Ci$2(i,a,0,no(o,s));}function fc(e,t,n,r){return $y(e,t,n,r),fc}function uv(e,t,n){return Vy(e,t,n),uv}function Mf(e){let t=w(),n=G$2(),r=la();Jo(r+1);let o=pf(n,r);if(e.dirty&&Jp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Gy(t,r);e.reset(i,Rm),e.notifyOnChanges();}return true}return false}function Nf(){return hf(w(),la())}function lv(e,t,n,r,o){return qy(t,$y(e,n,r,o)),lv}function dv(e,t,n,r){return qy(e,Vy(t,n,r)),dv}function kT(e=1){Jo(la()+e);}function PT(e){let t=cg();return oa(t,X$1+e)}function wa(e,t){return e<<17|t<<2}function mr(e){return e>>17&32767}function LT(e){return (e&2)==2}function FT(e,t){return e&131071|t<<17}function Nd(e){return e|2}function io(e){return (e&131068)>>2}function ql(e,t){return e&-131069|t<<2}function jT(e){return (e&1)===1}function Rd(e){return e|1}function UT(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=mr(s),c=io(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Hr(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let f=mr(e[a+1]);e[r+1]=wa(f,a),f!==0&&(e[f+1]=ql(e[f+1],r)),e[a+1]=FT(e[a+1],r);}else e[r+1]=wa(a,0),a!==0&&(e[a+1]=ql(e[a+1],r)),a=r;else e[r+1]=wa(c,0),a===0?a=r:e[c+1]=ql(e[c+1],r),c=r;u&&(e[r+1]=Nd(e[r+1])),cm(e,l,r,true),cm(e,l,r,false),BT(t,l,e,r,i),s=wa(a,c),i?t.classBindings=s:t.styleBindings=s;}function BT(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Hr(i,t)>=0&&(n[r+1]=Rd(n[r+1]));}function cm(e,t,n,r){let o=e[n+1],i=t===null,s=r?mr(o):io(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];HT(c,t)&&(a=true,e[s+1]=r?Rd(u):Nd(u)),s=r?mr(u):io(u);}a&&(e[n+1]=r?Nd(o):Rd(o));}function HT(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Hr(e,t)>=0:false}var mt$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function VT(e){return e.substring(mt$2.key,mt$2.keyEnd)}function $T(e){return zT(e),fv(e,hv(e,0,mt$2.textEnd))}function fv(e,t){let n=mt$2.textEnd;return n===t?-1:(t=mt$2.keyEnd=GT(e,mt$2.key=t,n),hv(e,t,n))}function zT(e){mt$2.key=0,mt$2.keyEnd=0,mt$2.value=0,mt$2.valueEnd=0,mt$2.textEnd=e.length;}function hv(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function GT(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function pv(e,t,n){return mv(e,t,n,false),pv}function gv(e,t){return mv(e,t,null,true),gv}function WT(e){ZT(e_,qT,e,true);}function qT(e,t){for(let n=$T(t);n>=0;n=fv(t,n))ea(e,VT(t),true);}function mv(e,t,n,r){let o=w(),i=G$2(),s=ur(2);if(i.firstUpdatePass&&vv(i,e,s,r),t!==ce$2&&Fe$3(o,s,t)){let a=i.data[Ge$1()];Dv(i,a,o,o[$$2],e,o[s+1]=n_(t,n),r,s);}}function ZT(e,t,n,r){let o=G$2(),i=ur(2);o.firstUpdatePass&&vv(o,null,i,r);let s=w();if(n!==ce$2&&Fe$3(s,i,n)){let a=o.data[Ge$1()];if(Ev(a,r)&&!yv(o,i)){let c=a.classesWithoutHost;c!==null&&(n=Zs(c,n||"")),Md(o,a,s,n,r);}else t_(o,a,s,s[$$2],s[i+1],s[i+1]=XT(e,t,n),r,i);}}function yv(e,t){return t>=e.expandoStartIndex}function vv(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ge$1()],s=yv(e,n);Ev(i,r)&&t===null&&!s&&(t=false),t=YT(o,i,t,r),UT(o,i,t,n,s,r);}}function YT(e,t,n,r){let o=hg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Zl(null,e,t,n,r),n=mi$2(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Zl(o,e,t,n,r),i===null){let c=QT(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Zl(null,e,t,c[1],r),c=mi$2(c,t.attrs,r),KT(e,t,r,c));}else i=JT(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function QT(e,t,n){let r=n?t.classBindings:t.styleBindings;if(io(r)!==0)return e[mr(r)]}function KT(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[mr(o)]=r;}function JT(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=mi$2(r,s,n);}return mi$2(r,t.attrs,n)}function Zl(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=mi$2(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function mi$2(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]),ea(e,s,n?true:t[++i]));}return e===void 0?null:e}function XT(e,t,n){if(n==null||n==="")return Se$3;let r=[],o=We$1(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function e_(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ea(e,r,n);}function t_(e,t,n,r,o,i,s,a){o===ce$2&&(o=Se$3);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,g=null,v;l===d?(c+=2,u+=2,f!==h&&(g=d,v=h)):d===null||l!==null&&l<d?(c+=2,g=l):(u+=2,g=d,v=h),g!==null&&Dv(e,t,n,r,g,v,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Dv(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=jT(u)?um(c,t,n,o,io(u),s):void 0;if(!Ga(l)){Ga(i)||LT(u)&&(i=um(c,null,n,o,a,s));let d=vl(Ge$1(),n);hb(r,s,d,o,i);}}function um(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,d=l===null,f=n[o+1];f===ce$2&&(f=d?Se$3:void 0);let h=d?ta(f,r):l===r?f:void 0;if(u&&!Ga(h)&&(h=ta(c,r)),Ga(h)&&(a=h,s))return a;let g=e[o+1];o=s?mr(g):io(g);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=ta(c,r));}return a}function Ga(e){return e!==void 0}function n_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=zo(We$1(e)))),e}function Ev(e,t){return (e.flags&(t?8:16))!==0}function r_(e,t=""){let n=w(),r=G$2(),o=e+X$1,i=r.firstCreatePass?ao(r,o,1,t,null):r.data[o],s=o_(r,n,i,t);n[o]=s,ha()&&Kd(r,n,s,i),qr(i,false);}var o_=(e,t,n,r)=>(Xo(true),bC(t[$$2],r));function wv(e,t,n,r=""){return Fe$3(e,_n$2(),n)?t+me$2(n)+r:ce$2}function i_(e,t,n,r,o,i=""){let s=Ko(),a=pi$2(e,s,n,o);return ur(2),a?t+me$2(n)+r+me$2(o)+i:ce$2}function s_(e,t,n,r,o,i,s,a=""){let c=Ko(),u=rS(e,c,n,o,s);return ur(3),u?t+me$2(n)+r+me$2(o)+i+me$2(s)+a:ce$2}function a_(e,t,n,r,o,i,s,a,c,u=""){let l=Ko(),d=Oy(e,l,n,o,s,c);return ur(4),d?t+me$2(n)+r+me$2(o)+i+me$2(s)+a+me$2(c)+u:ce$2}function c_(e,t,n,r,o,i,s,a,c,u,l,d=""){let f=Ko(),h=Oy(e,f,n,o,s,c);return h=Fe$3(e,f+4,l)||h,ur(5),h?t+me$2(n)+r+me$2(o)+i+me$2(s)+a+me$2(c)+u+me$2(l)+d:ce$2}function Iv(e){return Rf("",e),Iv}function Rf(e,t,n){let r=w(),o=wv(r,e,t,n);return o!==ce$2&&Ti$2(r,Ge$1(),o),Rf}function Cv(e,t,n,r,o){let i=w(),s=i_(i,e,t,n,r,o);return s!==ce$2&&Ti$2(i,Ge$1(),s),Cv}function bv(e,t,n,r,o,i,s){let a=w(),c=s_(a,e,t,n,r,o,i,s);return c!==ce$2&&Ti$2(a,Ge$1(),c),bv}function Sv(e,t,n,r,o,i,s,a,c){let u=w(),l=a_(u,e,t,n,r,o,i,s,a,c);return l!==ce$2&&Ti$2(u,Ge$1(),l),Sv}function Tv(e,t,n,r,o,i,s,a,c,u,l){let d=w(),f=c_(d,e,t,n,r,o,i,s,a,c,u,l);return f!==ce$2&&Ti$2(d,Ge$1(),f),Tv}function Ti$2(e,t,n){let r=vl(t,e);SC(e[$$2],r,n);}function _v(e,t,n){ya(t)&&(t=t());let r=w(),o=_n$2();if(Fe$3(r,o,t)){G$2();let s=Yr();py(s,r,e,t,r[$$2],n);}return _v}function u_(e,t){let n=ya(e);return n&&e.set(t),n}function Mv(e,t){let n=w(),r=G$2(),o=de$2();return cv(r,n,n[$$2],o,e,t),Mv}function l_(e,t,n=""){return wv(w(),e,t,n)}function lm(e,t,n){let r=G$2();r.firstCreatePass&&Nv(t,r.data,r.blueprint,Ot$1(e),n);}function Nv(e,t,n,r,o){if(e=Ee$4(e),Array.isArray(e))for(let i=0;i<e.length;i++)Nv(e[i],t,n,r,o);else {let i=G$2(),s=w(),a=de$2(),c=Xn$2(e)?e:Ee$4(e.provide),u=fl(e),l=a.providerIndexes&1048575,d=a.directiveStart,f=a.providerIndexes>>20;if(Xn$2(e)||!e.multi){let h=new dr(u,o,se$1,null),g=Ql(c,t,l+f,d);g===-1?(Xl(Ra(a,s),i,c),Yl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(h),s.push(h)):(n[g]=h,s[g]=h);}else {let h=Ql(c,t,l+f,d),g=Ql(c,t,l,l+f),v=h>=0&&n[h],E=g>=0&&n[g];if(!v){Xl(Ra(a,s),i,c);let M=h_(d_,n.length,o,r,u);E&&(n[g].providerFactory=M),Yl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(M),s.push(M);}else {let M=Rv(n[h],u,r);Yl(i,e,h>-1?h:g,M);}r&&E&&n[g].componentProviders++;}}}function Yl(e,t,n,r){let o=Xn$2(t),i=Zp(t);if(o||i){let c=(i?Ee$4(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 Rv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ql(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function d_(e,t,n,r,o){return Ad(this.multi,[])}function Ad(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function h_(e,t,n,r,o,i){let s=new dr(e,n,se$1,null);return s.multi=[],s.index=t,s.componentProviders=0,Rv(s,o,r&&!n),s}function p_(e,t){return n=>{n.providersResolver=(r,o)=>lm(r,o?o(e):e,false);}}function g_(e,t){let n=Zr()+e,r=w();return r[n]===ce$2?uf(r,n,t()):nS(r,n)}function m_(e,t,n){return xv(w(),Zr(),e,t,n)}function y_(e,t,n,r){return Ov(w(),Zr(),e,t,n,r)}function Av(e,t){let n=e[t];return n===ce$2?void 0:n}function xv(e,t,n,r,o,i){let s=t+n;return Fe$3(e,s,o)?uf(e,s+1,i?r.call(i,o):r(o)):Av(e,s+1)}function Ov(e,t,n,r,o,i,s){let a=t+n;return pi$2(e,a,o,i)?uf(e,a+2,s?r.call(s,o,i):r(o,i)):Av(e,a+2)}function v_(e,t){let n=G$2(),r,o=e+X$1;n.firstCreatePass?(r=D_(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=wn$2(r.type)),a=Oe$3(se$1);try{let c=Na(!1),u=i();return Na(c),Dl(n,w(),o,u),u}finally{Oe$3(a);}}function D_(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function E_(e,t,n){let r=e+X$1,o=w(),i=oa(o,r);return kv(o,r)?xv(o,Zr(),t,i.transform,n,i):i.transform(n)}function w_(e,t,n,r){let o=e+X$1,i=w(),s=oa(i,o);return kv(i,o)?Ov(i,Zr(),t,s.transform,n,r,s):s.transform(n,r)}function kv(e,t){return e[I$1].data[t].pure}function I_(e,t){return oc(e,t)}var Pv=(()=>{class e{applicationErrorHandler=p(ke$2);appRef=p(sn$2);taskService=p(kt);ngZone=p(J$3);zonelessEnabled=p(Kr);tracing=p(Ut$1,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ae$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(ga,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Ig:Fl;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,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=Z$2({token:e,factory:e.\u0275fac})}return e})();function Lv(){return [{provide:dt$2,useExisting:Pv},{provide:J$3,useClass:$o},{provide:Kr,useValue:true}]}var Af=(()=>{class e{compileModuleSync(n){return new Ha(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function C_(){return typeof $localize<"u"&&$localize.locale||Si$2}var ho=new D$1("",{factory:()=>p(ho,{optional:true,skipSelf:true})||C_()});var _i$2=class _i{destroyed=false;listeners=null;errorHandler=p(Qe,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=p(Me$4);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new y$2(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(Ke$1(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=C(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&b_(this.listeners)),C(n),this.isEmitting=false;}}};function b_(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function Mi$2(e,t){return Fo(e,t?.equal)}function W$3(e){return Np(e)}var S_=e=>e;function xf(e,t){if(typeof e=="function"){let n=Uu(e,S_,t?.equal);return Fv(n)}else {let n=Uu(e.source,e.computation,e.equal);return Fv(n,e.debugName)}}function Fv(e,t){let n=e[re$2],r=e;return r.set=o=>_p(n,o),r.update=o=>Mp(n,o),r.asReadonly=ei$1.bind(e),r}var gc=Symbol("InputSignalNode#UNSET"),Gv=x$2(w$1({},jo),{transformFn:void 0,applyValueToInputSignal(e,t){En$2(e,t);}});function Wv(e,t){let n=Object.create(Gv);n.value=e,n.transformFn=t?.transform;function r(){if(Yt$1(n),n.value===gc){let o=null;throw new y$2(-950,o)}return n.value}return r[re$2]=n,r}var pc=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>vi$2(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function Lf(e){return U_(e)?e.default:e}function U_(e){return e&&typeof e=="object"&&"default"in e}function N$(e){return new _i$2}function jv(e,t){return Wv(e,t)}function B_(e){return Wv(gc,e)}var mc=(jv.required=B_,jv);function qv(e,t){let n=Object.create(Gv),r=new _i$2;n.value=e;function o(){return Yt$1(n),Uv(n.value),n.value}return o[re$2]=n,o.asReadonly=ei$1.bind(o),o.set=i=>{n.equal(n.value,i)||(En$2(n,i),r.emit(i));},o.update=i=>{Uv(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Uv(e){if(e===gc)throw new y$2(952,false)}function Bv(e,t){return qv(e)}function H_(e){return qv(gc)}var R$=(Bv.required=H_,Bv);function Hv(e,t){return mf()}function V_(e,t){return yf()}var A$=(Hv.required=V_,Hv);function x$(e,t){return Wy()}function Vv(e,t){return mf()}function $_(e,t){return yf()}var O$=(Vv.required=$_,Vv);var Er=(()=>{class e{static __NG_ELEMENT_ID__=G_}return e})();function G_(e){return W_(de$2(),w(),(e&16)===16)}function W_(e,t,n){if(nn$2(e)&&!n){let r=rt$1(e.index,t);return new An$2(r,r)}else if(e.type&175){let r=t[_e$1];return new An$2(r,t)}return null}var q_=(()=>{class e{zone=p(J$3);changeDetectionScheduler=p(dt$2);applicationRef=p(sn$2);applicationErrorHandler=p(ke$2);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick();}catch(n){this.applicationErrorHandler(n);}});}}));}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),Z_=new D$1("",{factory:()=>false});function Y_({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new J$3(x$2(w$1({},Zv()),{scheduleInRootZone:t})),[{provide:Kr,useValue:false},{provide:J$3,useFactory:e},{provide:en$2,multi:true,useFactory:()=>{let n=p(q_,{optional:true});return ()=>n.initialize()}},{provide:en$2,multi:true,useFactory:()=>{let n=p(Q_);return ()=>{n.initialize();}}},{provide:ga,useValue:t??Ll}]}function P$(e){let t=e?.scheduleInRootZone,n=Y_({ngZoneFactory:()=>{let r=Zv(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&it$1("NgZone_CoalesceEvent"),new J$3(r)},scheduleInRootZone:t});return ft$2([{provide:Z_,useValue:true},n])}function Zv(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var Q_=(()=>{class e{subscription=new ae$2;initialized=false;zone=p(J$3);pendingTasks=p(kt);initialize(){if(this.initialized)return;this.initialized=true;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(()=>{J$3.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{J$3.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var kf=new D$1(""),K_=new D$1("");function Ni$2(e){return !e.moduleRef}function J_(e){let t=Ni$2(e)?e.r3Injector:e.moduleRef.injector,n=t.get(J$3);return n.run(()=>{Ni$2(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ke$2),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),Ni$2(e)){let i=()=>t.destroy(),s=e.platformInjector.get(kf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(kf);s.add(i),e.moduleRef.onDestroy(()=>{ui$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return eM(r,n,()=>{let i=t.get(kt),s=i.add(),a=t.get(Ef);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(ho,Si$2);if(sv(c||Si$2),!t.get(K_,!0))return Ni$2(e)?t.get(sn$2):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ni$2(e)){let l=t.get(sn$2);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return X_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var X_;function eM(e,t,n){try{let r=n();return vr(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var hc=null;function tM(e=[],t){return we$3.create({name:t,providers:[{provide:Zo,useValue:"platform"},{provide:kf,useValue:new Set([()=>hc=null])},...e]})}function nM(e=[]){if(hc)return hc;let t=tM(e);return hc=t,ev(),rM(t),t}function rM(e){let t=e.get(pa,null);ye$2(e,()=>{t?.forEach(n=>n());});}function Yv(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;V$1(F$3.BootstrapApplicationStart);try{let i=o?.injector??nM(r),s=[Lv(),bg,...n||[]],a=new gi$2({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return J_({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{V$1(F$3.BootstrapApplicationEnd);}}function Ri$2(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function oM(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Of=Symbol("NOT_SET"),Qv=new Set,iM=x$2(w$1({},jo),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Of,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==Of&&!Lr(this))return this.signal;try{for(let o of this.cleanup??Qv)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Qt$1(this),r;try{r=this.userFn.apply(null,t);}finally{vn$2(this,n);}return (this.value===Of||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Pf=class extends di$2{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(Me$4),s),this.scheduler=o;for(let a of qd){let c=n[a];if(c===void 0)continue;let u=Object.create(iM);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(Yt$1(u),u.value),u.signal[re$2]=u,u.registerCleanupFn=l=>(u.cleanup??=new Set).add(l),this.nodes[a]=u,this.hooks[a]=l=>u.phaseFn(l);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??Qv)n();}finally{Dn$2(t);}}};function L$(e,t){let n=p(we$3),r=n.get(dt$2),o=n.get(Ka),i=n.get(Ut$1,null,{optional:true});o.impl??=n.get(Zd);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(Qr,null,{optional:true}),c=new Pf(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function F$(e,t){let n=Xt$2(e),r=t.elementInjector||Vr();return new pr(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Kv(e){let t=Xt$2(e);if(!t)return null;let n=new pr(t);return {get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var Jv=null;function cn$2(){return Jv}function Ff(e){Jv??=e;}var Ai$2=class Ai{},un$2=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:()=>p(Xv),providedIn:"platform"})}return e})(),jf=new D$1(""),Xv=(()=>{class e extends un$2{_location;_history;_doc=p(Q$3);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return cn$2().getBaseHref(this._doc)}onPopState(n){let r=cn$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=cn$2().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,false),()=>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=R$1({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function yc(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function eD(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function vt$1(e){return e&&e[0]!=="?"?`?${e}`:e}var Dt=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:()=>p(Dc),providedIn:"root"})}return e})(),vc=new D$1(""),Dc=(()=>{class e extends Dt{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(Q$3).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 yc(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+vt$1(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(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)(b(un$2),b(vc,8))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Pn$2=(()=>{class e{_subject=new ne$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=cM(eD(tD(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(true),pop:true,state:o.state,type:o.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(n=false){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+vt$1(r))}normalize(n){return e.stripTrailingSlash(aM(this._basePath,tD(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+vt$1(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+vt$1(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=vt$1;static joinWithSlash=yc;static stripTrailingSlash=eD;static \u0275fac=function(r){return new(r||e)(b(Dt))};static \u0275prov=R$1({token:e,factory:()=>sM(),providedIn:"root"})}return e})();function sM(){return new Pn$2(b(Dt))}function aM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function tD(e){return e.replace(/\/index\.html$/,"")}function cM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Wf=(()=>{class e extends Dt{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,r!=null&&(this._baseHref=r);}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}path(n=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=yc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+vt$1(i))||this._platformLocation.pathname;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)(b(un$2),b(vc,8))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})();var qf=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(qf||{});var Ne$3=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(Ne$3||{}),q=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(q||{}),Ue$1=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Ue$1||{}),Be$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function oD(e){return je$1(e)[ue$1.LocaleId]}function iD(e,t,n){let r=je$1(e),o=[r[ue$1.DayPeriodsFormat],r[ue$1.DayPeriodsStandalone]],i=st$1(o,t);return st$1(i,n)}function sD(e,t,n){let r=je$1(e),o=[r[ue$1.DaysFormat],r[ue$1.DaysStandalone]],i=st$1(o,t);return st$1(i,n)}function aD(e,t,n){let r=je$1(e),o=[r[ue$1.MonthsFormat],r[ue$1.MonthsStandalone]],i=st$1(o,t);return st$1(i,n)}function cD(e,t){let r=je$1(e)[ue$1.Eras];return st$1(r,t)}function xi$2(e,t){let n=je$1(e);return st$1(n[ue$1.DateFormat],t)}function Oi$2(e,t){let n=je$1(e);return st$1(n[ue$1.TimeFormat],t)}function ki$2(e,t){let r=je$1(e)[ue$1.DateTimeFormat];return st$1(r,t)}function Bt$1(e,t){let n=je$1(e),r=n[ue$1.NumberSymbols][t];if(typeof r>"u"){if(t===Be$3.CurrencyDecimal)return n[ue$1.NumberSymbols][Be$3.Decimal];if(t===Be$3.CurrencyGroup)return n[ue$1.NumberSymbols][Be$3.Group]}return r}function uD(e,t){return je$1(e)[ue$1.NumberFormats][t]}function lD(e){if(!e[ue$1.ExtraData])throw new y$2(2303,false)}function dD(e){let t=je$1(e);return lD(t),(t[ue$1.ExtraData][2]||[]).map(r=>typeof r=="string"?Uf(r):[Uf(r[0]),Uf(r[1])])}function fD(e,t,n){let r=je$1(e);lD(r);let o=[r[ue$1.ExtraData][0],r[ue$1.ExtraData][1]],i=st$1(o,t)||[];return st$1(i,n)||[]}function st$1(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new y$2(2304,false)}function Uf(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var uM=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ec=Object.create(null),lM=/((?:[^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]*)/,dM=256;function hD(e,t,n,r){let o=wM(e);fM(t),t=ln$2(n,t)||t;let s=[],a;for(;t;)if(a=lM.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=gD(r,c),o=EM(o,r));let u="";return s.forEach(l=>{let d=vM(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function fM(e){if(e.length>dM)throw new y$2(2300,false)}function Sc(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function ln$2(e,t){let n=oD(e);if(Ec[n]??=Object.create(null),Ec[n][t])return Ec[n][t];let r="";switch(t){case "shortDate":r=xi$2(e,Ue$1.Short);break;case "mediumDate":r=xi$2(e,Ue$1.Medium);break;case "longDate":r=xi$2(e,Ue$1.Long);break;case "fullDate":r=xi$2(e,Ue$1.Full);break;case "shortTime":r=Oi$2(e,Ue$1.Short);break;case "mediumTime":r=Oi$2(e,Ue$1.Medium);break;case "longTime":r=Oi$2(e,Ue$1.Long);break;case "fullTime":r=Oi$2(e,Ue$1.Full);break;case "short":let o=ln$2(e,"shortTime"),i=ln$2(e,"shortDate");r=wc(ki$2(e,Ue$1.Short),[o,i]);break;case "medium":let s=ln$2(e,"mediumTime"),a=ln$2(e,"mediumDate");r=wc(ki$2(e,Ue$1.Medium),[s,a]);break;case "long":let c=ln$2(e,"longTime"),u=ln$2(e,"longDate");r=wc(ki$2(e,Ue$1.Long),[c,u]);break;case "full":let l=ln$2(e,"fullTime"),d=ln$2(e,"fullDate");r=wc(ki$2(e,Ue$1.Full),[l,d]);break}return r&&(Ec[n][t]=r),r}function wc(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function Et$2(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 hM(e,t){return Et$2(e,3).substring(0,t)}function fe$2(e,t,n=0,r=false,o=false){return function(i,s){let a=pM(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return hM(a,t);let c=Bt$1(s,Be$3.MinusSign);return Et$2(a,t,c,r,o)}}function pM(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 y$2(2301,false)}}function K$1(e,t,n=Ne$3.Format,r=false){return function(o,i){return gM(o,i,e,t,n,r)}}function gM(e,t,n,r,o,i){switch(n){case 2:return aD(t,o,r)[e.getMonth()];case 1:return sD(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=dD(t),l=fD(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){let[h,g]=f,v=s>=h.hours&&a>=h.minutes,E=s<g.hours||s===g.hours&&a<g.minutes;if(h.hours<g.hours){if(v&&E)return true}else if(v||E)return true}else if(f.hours===s&&f.minutes===a)return true;return false});if(d!==-1)return l[d]}return iD(t,o,r)[s<12?0:1];case 3:return cD(t,r)[e.getFullYear()<=0?0:1];default:throw new y$2(2302,false)}}function Ic(e){return function(t,n,r){let o=-1*r,i=Bt$1(n,Be$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+Et$2(s,2,i)+Et$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+Et$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+Et$2(s,2,i)+":"+Et$2(Math.abs(o%60),2,i);default:throw new y$2(2310,false)}}}var mM=0,bc=4;function yM(e){let t=Sc(e,mM,1).getDay();return Sc(e,0,1+(t<=bc?bc:bc+7)-t)}function pD(e){let t=e.getDay(),n=t===0?-3:bc-t;return Sc(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Bf(e,t=false){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=pD(n),s=yM(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return Et$2(o,e,Bt$1(r,Be$3.MinusSign))}}function Cc(e,t=false){return function(n,r){let i=pD(n).getFullYear();return Et$2(i,e,Bt$1(r,Be$3.MinusSign),t)}}var Hf=Object.create(null);function vM(e){if(Hf[e])return Hf[e];let t;switch(e){case "G":case "GG":case "GGG":t=K$1(3,q.Abbreviated);break;case "GGGG":t=K$1(3,q.Wide);break;case "GGGGG":t=K$1(3,q.Narrow);break;case "y":t=fe$2(0,1,0,false,true);break;case "yy":t=fe$2(0,2,0,true,true);break;case "yyy":t=fe$2(0,3,0,false,true);break;case "yyyy":t=fe$2(0,4,0,false,true);break;case "Y":t=Cc(1);break;case "YY":t=Cc(2,true);break;case "YYY":t=Cc(3);break;case "YYYY":t=Cc(4);break;case "M":case "L":t=fe$2(1,1,1);break;case "MM":case "LL":t=fe$2(1,2,1);break;case "MMM":t=K$1(2,q.Abbreviated);break;case "MMMM":t=K$1(2,q.Wide);break;case "MMMMM":t=K$1(2,q.Narrow);break;case "LLL":t=K$1(2,q.Abbreviated,Ne$3.Standalone);break;case "LLLL":t=K$1(2,q.Wide,Ne$3.Standalone);break;case "LLLLL":t=K$1(2,q.Narrow,Ne$3.Standalone);break;case "w":t=Bf(1);break;case "ww":t=Bf(2);break;case "W":t=Bf(1,true);break;case "d":t=fe$2(2,1);break;case "dd":t=fe$2(2,2);break;case "c":case "cc":t=fe$2(7,1);break;case "ccc":t=K$1(1,q.Abbreviated,Ne$3.Standalone);break;case "cccc":t=K$1(1,q.Wide,Ne$3.Standalone);break;case "ccccc":t=K$1(1,q.Narrow,Ne$3.Standalone);break;case "cccccc":t=K$1(1,q.Short,Ne$3.Standalone);break;case "E":case "EE":case "EEE":t=K$1(1,q.Abbreviated);break;case "EEEE":t=K$1(1,q.Wide);break;case "EEEEE":t=K$1(1,q.Narrow);break;case "EEEEEE":t=K$1(1,q.Short);break;case "a":case "aa":case "aaa":t=K$1(0,q.Abbreviated);break;case "aaaa":t=K$1(0,q.Wide);break;case "aaaaa":t=K$1(0,q.Narrow);break;case "b":case "bb":case "bbb":t=K$1(0,q.Abbreviated,Ne$3.Standalone,true);break;case "bbbb":t=K$1(0,q.Wide,Ne$3.Standalone,true);break;case "bbbbb":t=K$1(0,q.Narrow,Ne$3.Standalone,true);break;case "B":case "BB":case "BBB":t=K$1(0,q.Abbreviated,Ne$3.Format,true);break;case "BBBB":t=K$1(0,q.Wide,Ne$3.Format,true);break;case "BBBBB":t=K$1(0,q.Narrow,Ne$3.Format,true);break;case "h":t=fe$2(3,1,-12);break;case "hh":t=fe$2(3,2,-12);break;case "H":t=fe$2(3,1);break;case "HH":t=fe$2(3,2);break;case "m":t=fe$2(4,1);break;case "mm":t=fe$2(4,2);break;case "s":t=fe$2(5,1);break;case "ss":t=fe$2(5,2);break;case "S":t=fe$2(6,1);break;case "SS":t=fe$2(6,2);break;case "SSS":t=fe$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=Ic(0);break;case "ZZZZZ":t=Ic(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=Ic(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=Ic(2);break;default:return null}return Hf[e]=t,t}function gD(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function DM(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function EM(e,t,n){let o=e.getTimezoneOffset(),i=gD(t,o);return DM(e,-1*(i-o))}function wM(e){if(nD(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 Sc(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(uM))return IM(r)}let t=new Date(e);if(!nD(t))throw new y$2(2311,false);return t}function IM(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 nD(e){return e instanceof Date&&!isNaN(e.valueOf())}var CM=/^(\d+)?\.((\d+)(-(\d+))?)?$/,rD=22,Tc=".",Pi$2="0",bM=";",SM=",",Vf="#";function TM(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=Bt$1(n,Be$3.Infinity);else {let u=NM(e);s&&(u=MM(u));let l=t.minInt,d=t.minFrac,f=t.maxFrac;if(i){let z=i.match(CM);if(z===null)throw new y$2(2306,false);let le=z[1],Ct=z[3],gn=z[5];le!=null&&(l=$f(le)),Ct!=null&&(d=$f(Ct)),gn!=null?f=$f(gn):Ct!=null&&d>f&&(f=d);let ct=100;if(l>ct||d>ct||f>ct)throw new y$2(2306,false)}RM(u,d,f);let h=u.digits,g=u.integerLen,v=u.exponent,E=[];for(c=h.every(z=>!z);g<l;g++)h.unshift(0);for(;g<0;g++)h.unshift(0);g>0?E=h.splice(g,h.length):(E=h,h=[0]);let M=[];for(h.length>=t.lgSize&&M.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)M.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&M.unshift(h.join("")),a=M.join(Bt$1(n,r)),E.length&&(a+=Bt$1(n,o)+E.join("")),v&&(a+=Bt$1(n,Be$3.Exponential)+"+"+v);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function mD(e,t,n){let r=uD(t,qf.Decimal),o=_M(r,Bt$1(t,Be$3.MinusSign));return TM(e,o,t,Be$3.Group,Be$3.Decimal,n)}function _M(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(bM),o=r[0],i=r[1],s=o.indexOf(Tc)!==-1?o.split(Tc):[o.substring(0,o.lastIndexOf(Pi$2)+1),o.substring(o.lastIndexOf(Pi$2)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Vf));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Pi$2?n.minFrac=n.maxFrac=l+1:d===Vf?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(SM);if(n.gSize=u[1]?u[1].length:0,n.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,i){let l=o.length-n.posPre.length-n.posSuf.length,d=i.indexOf(Vf);n.negPre=i.substring(0,d).replace(/'/g,""),n.negSuf=i.slice(d+l).replace(/'/g,"");}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function MM(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function NM(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Tc))>-1&&(t=t.replace(Tc,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===Pi$2;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Pi$2;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>rD&&(r=r.splice(0,rD-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function RM(e,t,n){if(t>n)throw new y$2(2307,false);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {o=Math.max(0,o),e.integerLen=1,r.length=Math.max(1,s=i+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++;}else r[s-1]++;for(;o<Math.max(0,i);o++)r.push(0);let c=i!==0,u=t+e.integerLen,l=r.reduceRight(function(d,f,h,g){return f=f+d,g[h]=f<10?f:f-10,c&&(g[h]===0&&h>=u?g.pop():c=false),f>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function $f(e){let t=parseInt(e);if(isNaN(t))throw new y$2(2305,false);return t}var AM=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=p(we$3);constructor(n){this._viewContainerRef=n;}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(n){return !!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):false,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||e)(se$1(On$2))};static \u0275dir=kn$2({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[xn$2]})}return e})();function _c(e,t){return new y$2(2100,false)}var zf=class{createSubscription(t,n,r){return W$3(()=>t.subscribe({next:n,error:r}))}dispose(t){W$3(()=>t.unsubscribe());}},Gf=class{createSubscription(t,n,r){return t.then(o=>n?.(o),o=>r?.(o)),{unsubscribe:()=>{n=null,r=null;}}}dispose(t){t.unsubscribe();}},xM=new Gf,OM=new zf,kM=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=p(ke$2);constructor(n){this._ref=n;}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null;}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n);}finally{this.markForCheckOnValueUpdate=true;}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r),r=>this.applicationErrorHandler(r));}_selectStrategy(n){if(vr(n))return xM;if(ic(n))return OM;throw _c()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null;}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck());}static \u0275fac=function(r){return new(r||e)(se$1(Er,16))};static \u0275pipe=Dr({name:"async",type:e,pure:false})}return e})(),PM=(()=>{class e{transform(n){return n==null?null:(LM(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Dr({name:"lowercase",type:e,pure:true})}return e})();function LM(e,t){if(typeof t!="string")throw _c()}var FM="mediumDate",yD=new D$1(""),vD=new D$1(""),jM=(()=>{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??FM,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return hD(n,s,i||this.locale,a)}catch(s){throw _c(e,s.message)}}static \u0275fac=function(r){return new(r||e)(se$1(ho,16),se$1(yD,24),se$1(vD,24))};static \u0275pipe=Dr({name:"date",type:e,pure:true})}return e})();var UM=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Dr({name:"json",type:e,pure:false})}return e})();var BM=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!HM(n))return null;o||=this._locale;try{let i=VM(n);return mD(i,o,r)}catch(i){throw _c(e,i.message)}}static \u0275fac=function(r){return new(r||e)(se$1(ho,16))};static \u0275pipe=Dr({name:"number",type:e,pure:true})}return e})();function HM(e){return !(e==null||e===""||e!==e)}function VM(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y$2(2309,false);return e}function Li$2(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 Yf="browser";function sz(e){return e===Yf}var Qf=(()=>{class e{static \u0275prov=R$1({token:e,providedIn:"root",factory:()=>new Zf(p(Q$3),window)})}return e})(),Zf=class{document;window;offset=()=>[0,0];constructor(t,n){this.document=t,this.window=n;}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(t,n){this.window.scrollTo(x$2(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=WM(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Ke$1(2400,false));}}scrollToElement(t,n){let r=t.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(x$2(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function WM(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${CSS.escape(t)}"]`);if(s)return s}o=r.nextNode();}}return null}var Fi$2=class Fi{_doc;constructor(t){this._doc=t;}manager},Mc=(()=>{class e extends Fi$2{constructor(n){super(n);}supports(n){return true}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)(b(Q$3))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})(),Ac=new D$1(""),eh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this;});let o=n.filter(s=>!(s instanceof Mc));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Mc);i&&this._plugins.push(i);}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 y$2(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b(Ac),b(J$3))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})(),Kf="ng-app-id";function DD(e){for(let t of e)t.remove();}function ED(e,t){let n=t.createElement("style");return n.textContent=e,n}function ZM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Kf}="${t}"],link[${Kf}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(Kf),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]});return true}function Xf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var th=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,ZM(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,ED);r?.forEach(o=>this.addUsage(o,this.external,Xf));}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&&(DD(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])DD(n);this.hosts.clear();}addHost(n){if(!this.hosts.has(n)){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,ED(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Xf(r,this.doc)));}}removeHost(n){this.hosts.delete(n);for(let r of [...this.inline.values(),...this.external.values()]){let o=[];for(let i of r.elements)i.parentNode===n?i.remove():o.push(i);r.elements=o;}}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(b(Q$3),b(ti$2),b(ri$2,8),b(ni$2))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})(),Jf={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"},nh=/%COMP%/g;var ID="%COMP%",YM=`_nghost-${ID}`,QM=`_ngcontent-${ID}`,KM=true,JM=new D$1("",{factory:()=>KM});function XM(e){return QM.replace(nh,e)}function eN(e){return YM.replace(nh,e)}function CD(e,t){return t.map(n=>n.replace(nh,e))}var rh=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new ji$2(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Rc?o.applyToHost(n):o instanceof Ui$2&&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,d=this.tracingService;switch(r.encapsulation){case yt$1.Emulated:i=new Rc(c,u,r,this.appId,l,s,a,d);break;case yt$1.ShadowDom:return new Nc(c,n,r,s,a,this.nonce,d,u);case yt$1.ExperimentalIsolatedShadowDom:return new Nc(c,n,r,s,a,this.nonce,d);default:i=new Ui$2(c,u,r,l,s,a,d);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)(b(eh),b(yr),b(ti$2),b(JM),b(Q$3),b(J$3),b(ri$2),b(Ut$1,8))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})(),ji$2=class ji{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o;}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Jf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(wD(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(wD(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 y$2(-5104,false);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=Jf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Jf[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&(Lt$1.DashCase|Lt$1.Important)?t.style.setProperty(n,r,o&Lt$1.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&Lt$1.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=cn$2().getGlobalEventTarget(this.doc,t),!t))throw new y$2(-5102,false);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;t(n)===false&&n.preventDefault();}}};function wD(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Nc=class extends ji$2{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=CD(r.id,u);for(let d of u){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=Xf(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}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&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ui$2=class Ui extends ji$2{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?CD(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Rn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Rc=class extends Ui$2{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){let u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=XM(u),this.hostAttr=eN(u);}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 xc=class e extends Ai$2{supportsDOMEvents=true;static makeCurrent(){Ff(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=tN();return n==null?null:nN(n)}resetBaseElement(){Bi$2=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Li$2(document.cookie,t)}},Bi$2=null;function tN(){return Bi$2=Bi$2||document.head.querySelector("base"),Bi$2?Bi$2.getAttribute("href"):null}function nN(e){return new URL(e,document.baseURI).pathname}var bD=["alt","control","meta","shift"],rN={"\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"},oN={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},SD=(()=>{class e extends Fi$2{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(()=>cn$2().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."),bD.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=rN[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?false:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),bD.forEach(s=>{if(s!==o){let a=oN[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)(b(Q$3))};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})();function iN(e,t,n){return B$1(this,null,function*(){let r=w$1({rootComponent:e},sN(t,n));return Yv(r)})}function sN(e,t){return {platformRef:t?.platformRef,appProviders:[...dN,...e?.providers??[]],platformProviders:lN}}function aN(){xc.makeCurrent();}function cN(){return new Qe}function uN(){return kd(document),document}var lN=[{provide:ni$2,useValue:Yf},{provide:pa,useValue:aN,multi:true},{provide:Q$3,useFactory:uN}];var dN=[{provide:Zo,useValue:"root"},{provide:Qe,useFactory:cN},{provide:Ac,useClass:Mc,multi:true},{provide:Ac,useClass:SD,multi:true},rh,{provide:yr,useClass:th},{provide:th,useExisting:yr},eh,{provide:hr,useExisting:rh},[]];var fn$1=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
5
+ `).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 kc=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()}},Pc=class{encodeKey(t){return TD(t)}encodeValue(t){return TD(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function fN(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 hN=/%(\d[a-f0-9])/gi,pN={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function TD(e){return encodeURIComponent(e).replace(hN,(t,n)=>pN[n]??t)}function Oc(e){return `${e}`}var dn$2=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Pc,t.fromString){if(t.fromObject)throw new y$2(2805,false);this.map=fN(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(Oc):[Oc(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(Oc(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(Oc(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);}};function gN(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function _D(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function MD(e){return typeof Blob<"u"&&e instanceof Blob}function ND(e){return typeof FormData<"u"&&e instanceof FormData}function mN(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var oh="Content-Type",RD="Accept",xD="text/plain",OD="application/json",yN=`${OD}, ${xD}, */*`,po=class e{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(gN(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.reportUploadProgress=!!i.reportUploadProgress,this.reportDownloadProgress=!!i.reportDownloadProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new y$2(2822,"");this.timeout=i.timeout;}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache;}if(this.headers??=new fn$1,this.context??=new kc,!this.params)this.params=new dn$2,this.urlWithParams=n;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else {let a=n,c="",u=n.indexOf("#");u!==-1&&(c=n.substring(u),a=n.substring(0,u));let l=a.indexOf("?"),d=l===-1?"?":l<a.length-1?"&":"";this.urlWithParams=a+d+s+c;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||_D(this.body)||MD(this.body)||ND(this.body)||mN(this.body)?this.body:this.body instanceof dn$2?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||ND(this.body)?null:MD(this.body)?this.body.type||null:_D(this.body)?null:typeof this.body=="string"?xD:this.body instanceof dn$2?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?OD:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer??this.referrer,f=t.integrity||this.integrity,h=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,v=t.timeout??this.timeout,E=t.body!==void 0?t.body:this.body,M=t.withCredentials??this.withCredentials,z=t.reportProgress??this.reportProgress,le=t.reportUploadProgress??this.reportUploadProgress,Ct=t.reportDownloadProgress??this.reportDownloadProgress,gn=t.headers||this.headers,ct=t.params||this.params,is=t.context??this.context;return t.setHeaders!==void 0&&(gn=Object.keys(t.setHeaders).reduce((Mr,Hn)=>Mr.set(Hn,t.setHeaders[Hn]),gn)),t.setParams&&(ct=Object.keys(t.setParams).reduce((Mr,Hn)=>Mr.set(Hn,t.setParams[Hn]),ct)),new e(n,r,E,{params:ct,headers:gn,context:is,reportProgress:z,reportUploadProgress:le,reportDownloadProgress:Ct,responseType:o,withCredentials:M,transferCache:g,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:u,credentials:l,referrer:d,integrity:f,referrerPolicy:h})}},go=(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})(go||{}),mo=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new fn$1,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300;}},Lc=class e extends mo{constructor(t={}){super(t);}type=go.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})}},Hi$2=class e extends mo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=go.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,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},wr=class extends mo{name="HttpErrorResponse";message;error;ok=false;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;}},vN=200;var DN=/^\)\]\}',?\n/,kD=new D$1("",{factory:()=>null}),Fc=(()=>{class e{fetchImpl=p(sh,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=p(J$3);destroyRef=p(Me$4);maxResponseSize=p(kD);handle(n){return new k$1(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(ah,s=>r.error(new wr({error:s})));let i;return n.timeout&&(i=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{o.signal.aborted||o.abort(new DOMException("signal timed out","TimeoutError"));},n.timeout))),()=>{i!==void 0&&clearTimeout(i),o.abort();}})}doRequest(n,r,o){return B$1(this,null,function*(){let i=this.createRequestInit(n),s;try{let E=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));EN(E),o.next({type:go.Sent}),s=yield E;}catch(E){o.error(new wr({error:E,status:E.status??0,statusText:E.statusText,url:n.urlWithParams,headers:E.headers}));return}let a=new fn$1(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,f=n.reportProgress||n.reportDownloadProgress;if(f&&o.next(new Lc({headers:a,status:l,statusText:c,url:u})),s.body){let E=s.headers.get("content-length"),M=E!==null?Number(E):NaN;this.maxResponseSize!==null&&Number.isFinite(M)&&M>this.maxResponseSize&&AD(this.maxResponseSize);let z=[],le=s.body.getReader(),Ct=0,gn,ct,is=typeof Zone<"u"&&Zone.current,Mr=false;if(yield this.ngZone.runOutsideAngular(()=>B$1(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield le.cancel(),Mr=true;break}let{done:No,value:gu}=yield le.read();if(No)break;if(z.push(gu),Ct+=gu.length,this.maxResponseSize!==null&&Ct>this.maxResponseSize&&(yield le.cancel(),AD(this.maxResponseSize)),f){ct=n.responseType==="text"?(ct??"")+(gn??=new TextDecoder).decode(gu,{stream:true}):void 0;let Vh=()=>o.next({type:go.DownloadProgress,total:Number.isFinite(M)?M:void 0,loaded:Ct,partialText:ct});is?is.run(Vh):Vh();}}})),Mr){o.complete();return}let Hn=this.concatChunks(z,Ct);try{let No=s.headers.get(oh)??"";d=this.parseBody(n,Hn,No,l);}catch(No){o.error(new wr({error:No,headers:new fn$1(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?vN:0);let h=l>=200&&l<300,g=s.redirected,v=s.type;h?(o.next(new Hi$2({body:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v})),o.complete()):o.error(new wr({error:d,headers:a,status:l,statusText:c,url:u,redirected:g,responseType:v}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(DN,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(i<200||i>=300)return s;throw a}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:o});case "arraybuffer":return r.buffer}}createRequestInit(n){if(n.reportUploadProgress)throw new y$2(2824,false);let r={},o;if(o=n.credentials,n.withCredentials&&(o="include"),n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has(RD)||(r[RD]=yN),!n.headers.has(oh)){let i=n.detectContentTypeHeader();i!==null&&(r[oh]=i);}return {body:n.serializeBody(),method:n.method,headers:r,credentials:o,keepalive:n.keepalive,cache:n.cache,priority:n.priority,mode:n.mode,redirect:n.redirect,referrer:n.referrer,integrity:n.integrity,referrerPolicy:n.referrerPolicy}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),sh=class{};function ah(){}function EN(e){e.then(ah,ah);}function AD(e){throw new y$2(-2825,false)}function wN(e,t){return t(e)}function IN(e,t,n){return (r,o)=>ye$2(n,()=>t(r,i=>e(i,o)))}var PD=new D$1("",{factory:()=>[]}),LD=new D$1(""),FD=new D$1("",{factory:()=>true});var ch=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(Fc),o},providedIn:"root"})}return e})();var jc=(()=>{class e{backend;injector;chain=null;pendingTasks=p(ii$2);contributeToStability=p(FD);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(PD),...this.injector.get(LD,[])]));this.chain=o.reduceRight((i,s)=>IN(i,s,this.injector),wN);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return W$3(()=>r(n,i=>this.backend.handle(i))).pipe(Or(o))}else return W$3(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b(ch),b(ee$2))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),uh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(jc),o},providedIn:"root"})}return e})();function ih(e,t){return w$1({body:t},e)}var jD=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof po)i=n;else {let c;o.headers instanceof fn$1?c=o.headers:c=new fn$1(o.headers);let u;o.params&&(o.params instanceof dn$2?u=o.params:u=new dn$2({fromObject:o.params})),i=new po(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,reportUploadProgress:o.reportUploadProgress,reportDownloadProgress:o.reportDownloadProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout});}let s=_$3(i).pipe(qt$1(c=>this.handler.handle(c)));if(n instanceof po||o.observe==="events")return s;let a=s.pipe(Ce$4(c=>c instanceof Hi$2));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(j$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new y$2(2806,false);return c.body}));case "blob":return a.pipe(j$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new y$2(2807,false);return c.body}));case "text":return a.pipe(j$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new y$2(2808,false);return c.body}));default:return a.pipe(j$3(c=>c.body))}case "response":return a;default:throw new y$2(2809,false)}}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 dn$2().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,ih(o,r))}post(n,r,o={}){return this.request("POST",n,ih(o,r))}put(n,r,o={}){return this.request("PUT",n,ih(o,r))}static \u0275fac=function(r){return new(r||e)(b(uh))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var CN=new D$1("",{factory:()=>true}),bN="XSRF-TOKEN",SN=new D$1("",{factory:()=>bN}),TN="X-XSRF-TOKEN",_N=new D$1("",{factory:()=>TN}),MN=(()=>{class e{cookieName=p(SN);doc=p(Q$3);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Li$2(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),UD=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(MN),o},providedIn:"root"})}return e})();function NN(e,t){if(!p(CN)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=p(un$2).href,{origin:i}=new URL(o),{origin:s}=new URL(e.url,i);if(i!==s)return t(e)}catch(o){return t(e)}let n=p(UD).getToken(),r=p(_N);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function RN(...e){let t=[jD,Fc,jc,{provide:uh,useExisting:jc},{provide:ch,useFactory:()=>p(Fc)},{provide:PD,useValue:NN,multi:true}];for(let n of e)t.push(...n.\u0275providers);return ft$2(t)}var BD=(()=>{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)(b(Q$3))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var AN=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=R$1({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b(xN),o},providedIn:"root"})}return e})(),xN=(()=>{class e extends AN{_doc=p(Q$3);sanitize(n,r){if(r==null)return null;switch(n){case ot$1.NONE:return r;case ot$1.HTML:return jt$1(r,"HTML")?We$1(r):Ya(this._doc,String(r)).toString();case ot$1.STYLE:return jt$1(r,"Style")?We$1(r):r;case ot$1.SCRIPT:if(jt$1(r,"Script"))return We$1(r);throw new y$2(5200,false);case ot$1.URL:return jt$1(r,"URL")?We$1(r):Di$2(String(r));case ot$1.RESOURCE_URL:if(jt$1(r,"ResourceURL"))return We$1(r);throw new y$2(-5201,false);default:throw new y$2(5202,false)}}bypassSecurityTrustHtml(n){return jd(n)}bypassSecurityTrustStyle(n){return Ud(n)}bypassSecurityTrustScript(n){return Bd(n)}bypassSecurityTrustUrl(n){return Hd(n)}bypassSecurityTrustResourceUrl(n){return Vd(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();var A$1="primary",es$1=Symbol("RouteTitle"),ph=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 Cr(e){return new ph(e)}function lh(e,t,n){for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(o[0]===":")n[o.substring(1)]=i;else if(o!==i.path)return false}return true}function ZD(e,t,n){let r=n.path.split("/"),o=r.indexOf("**");if(o===-1){if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let c={},u=e.slice(0,r.length);return lh(r,u,c)?{consumed:u,posParams:c}:null}if(o!==r.lastIndexOf("**"))return null;let i=r.slice(0,o),s=r.slice(o+1);if(i.length+s.length>e.length||n.pathMatch==="full"&&t.hasChildren()&&n.path!=="**")return null;let a={};return !lh(i,e.slice(0,i.length),a)||!lh(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function zc$1(e){return new Promise((t,n)=>{e.pipe(Zt$2()).subscribe({next:r=>t(r),error:r=>n(r)});})}function kN(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;++n)if(!Ht$1(e[n],t[n]))return false;return true}function Ht$1(e,t){let n=e?gh(e):void 0,r=t?gh(t):void 0;if(!n||!r||n.length!=r.length)return false;let o;for(let i=0;i<n.length;i++)if(o=n[i],!YD(e[o],t[o]))return false;return true}function gh(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function YD(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return false;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function PN(e){return e.length>0?e[e.length-1]:null}function Sr(e){return ks(e)?e:vr(e)?Y$1(Promise.resolve(e)):_$3(e)}function QD(e){return ks(e)?zc$1(e):Promise.resolve(e)}var LN={exact:JD,subset:XD},KD={exact:FN,subset:jN,ignored:()=>true},Nh={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi$2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Rh(e,t,n){let r=e instanceof Pe$3?e:t.parseUrl(e);return Mi$2(()=>mh(t.lastSuccessfulNavigation()?.finalUrl??new Pe$3,r,w$1(w$1({},Wi$2),n)))}function mh(e,t,n){return LN[n.paths](e.root,t.root,n.matrixParams)&&KD[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function FN(e,t){return Ht$1(e,t)}function JD(e,t,n){if(!Ir(e.segments,t.segments)||!Hc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return false;for(let r in t.children)if(!e.children[r]||!JD(e.children[r],t.children[r],n))return false;return true}function jN(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>YD(e[n],t[n]))}function XD(e,t,n){return eE(e,t,t.segments,n)}function eE(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return !(!Ir(o,n)||t.hasChildren()||!Hc(o,n,r))}else if(e.segments.length===n.length){if(!Ir(e.segments,n)||!Hc(e.segments,n,r))return false;for(let o in t.children)if(!e.children[o]||!XD(e.children[o],t.children[o],r))return false;return true}else {let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return !Ir(e.segments,o)||!Hc(e.segments,o,r)||!e.children[A$1]?false:eE(e.children[A$1],t,i,r)}}function Hc(e,t,n){return t.every((r,o)=>KD[n](e[o].parameters,r.parameters))}var Pe$3=class Pe{root;queryParams;fragment;_queryParamMap;constructor(t=new U$2([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=Cr(this.queryParams),this._queryParamMap}toString(){return HN.serialize(this)}},U$2=class U{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 Vc(this)}},Ln$2=class Ln{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n;}get parameterMap(){return this._parameterMap??=Cr(this.parameters),this._parameterMap}toString(){return nE(this)}};function UN(e,t){return Ir(e,t)&&e.every((n,r)=>Ht$1(n.parameters,t[r].parameters))}function Ir(e,t){return e.length!==t.length?false:e.every((n,r)=>n.path===t[r].path)}function BN(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===A$1&&(n=n.concat(t(o,r)));}),Object.entries(e.children).forEach(([r,o])=>{r!==A$1&&(n=n.concat(t(o,r)));}),n}var Un$2=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>new pn$2})}return e})(),pn$2=class pn{parse(t){let n=new vh(t);return new Pe$3(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Vi$2(t.root,true)}`,r=zN(t.queryParams),o=typeof t.fragment=="string"?`#${VN(t.fragment)}`:"";return `${n}${r}${o}`}},HN=new pn$2;function Vc(e){return e.segments.map(t=>nE(t)).join("/")}function Vi$2(e,t){if(!e.hasChildren())return Vc(e);if(t){let n=e.children[A$1]?Vi$2(e.children[A$1],false):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==A$1&&r.push(`${o}:${Vi$2(i,false)}`);}),r.length>0?`${n}(${r.join("//")})`:n}else {let n=BN(e,(r,o)=>o===A$1?[Vi$2(e.children[A$1],false)]:[`${o}:${Vi$2(r,false)}`]);return Object.keys(e.children).length===1&&e.children[A$1]!=null?`${Vc(e)}/${n[0]}`:`${Vc(e)}/(${n.join("//")})`}}function tE(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uc(e){return tE(e).replace(/%3B/gi,";")}function VN(e){return encodeURI(e)}function yh(e){return tE(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $c(e){return decodeURIComponent(e)}function HD(e){return $c(e.replace(/\+/g,"%20"))}function nE(e){return `${yh(e.path)}${$N(e.parameters)}`}function $N(e){return Object.entries(e).map(([t,n])=>`;${yh(t)}=${yh(n)}`).join("")}function zN(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Uc(n)}=${Uc(o)}`).join("&"):`${Uc(n)}=${Uc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var GN=/^[^\/()?;#]+/;function dh(e){let t=e.match(GN);return t?t[0]:""}var WN=/^[^\/()?;=#]+/;function qN(e){let t=e.match(WN);return t?t[0]:""}var ZN=/^[^=?&#]+/;function YN(e){let t=e.match(ZN);return t?t[0]:""}var QN=/^[^&#]+/;function KN(e){let t=e.match(QN);return t?t[0]:""}var vh=class{url;remaining;constructor(t){this.url=t,this.remaining=t;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U$2([],{}):new U$2([],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(t=0){if(t>50)throw new y$2(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,t));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(false,t)),(n.length>0||Object.keys(r).length>0)&&(o[A$1]=new U$2(n,r)),o}parseSegment(){let t=dh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new y$2(4009,false);return this.capture(t),new Ln$2($c(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=qN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=dh(this.remaining);o&&(r=o,this.capture(r));}t[$c(n)]=$c(r);}parseQueryParam(t){let n=YN(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=KN(this.remaining);s&&(r=s,this.capture(r));}let o=HD(n),i=HD(r);if(Object.hasOwn(t,o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i);}else t[o]=i;}parseParens(t,n){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=dh(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new y$2(4010,false);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=A$1);let a=this.parseChildren(n+1);r[s??A$1]=Object.keys(a).length===1&&a[A$1]?a[A$1]:new U$2([],a),this.consumeOptional("//");}return r}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),true):false}capture(t){if(!this.consumeOptional(t))throw new y$2(4011,false)}};function rE(e){return e.segments.length>0?new U$2([],{[A$1]:e}):e}function oE(e){let t=Object.create(null);for(let[r,o]of Object.entries(e.children)){let i=oE(o);if(r===A$1&&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 U$2(e.segments,t);return JN(n)}function JN(e){if(e.numberOfChildren===1&&e.children[A$1]){let t=e.children[A$1];return new U$2(e.segments.concat(t.segments),t.children)}return e}function Fn$1(e){return e instanceof Pe$3}function iE(e,t,n=null,r=null,o=new pn$2){let i=sE(e);return aE(i,t,n,r,o)}function sE(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 U$2(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=rE(r);return t??o}function aE(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return fh(i,i,i,n,r,o);let s=XN(t);if(s.toRoot())return fh(i,i,new U$2([],{}),n,r,o);let a=eR(s,i,e),c=a.processChildren?zi$1(a.segmentGroup,a.index,s.commands):uE(a.segmentGroup,a.index,s.commands);return fh(i,a.segmentGroup,c,n,r,o)}function Gc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function qi$1(e){return typeof e=="object"&&e!=null&&e.outlets}function VD(e,t,n){e||="\u0275";let r=new Pe$3;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function fh(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>VD(u,d,i)):VD(u,l,i);let a;e===t?a=n:a=cE(e,t,n);let c=rE(oE(a));return new Pe$3(c,s,o)}function cE(e,t,n){let r=Object.create(null);return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=cE(i,t,n);}),new U$2(e.segments,r)}var Wc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Gc(r[0]))throw new y$2(4003,false);let o=r.find(qi$1);if(o&&o!==PN(r))throw new y$2(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function XN(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Wc(true,0,e);let t=0,n=false,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=true:a===".."?t++:a!=""&&o.push(a));}),o):[...o,i]},[]);return new Wc(n,t,r)}var vo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r;}};function eR(e,t,n){if(e.isAbsolute)return new vo(t,true,0);if(!n)return new vo(t,false,NaN);if(n.parent===null)return new vo(n,true,0);let r=Gc(e.commands[0])?0:1,o=n.segments.length-1+r;return tR(n,o,e.numberOfDoubleDots)}function tR(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new y$2(4005,false);o=r.segments.length;}return new vo(r,false,o-i)}function nR(e){return qi$1(e[0])?e[0].outlets:{[A$1]:e}}function uE(e,t,n){if(e??=new U$2([],{}),e.segments.length===0&&e.hasChildren())return zi$1(e,t,n);let r=rR(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new U$2(e.segments.slice(0,r.pathIndex),{});return i.children[A$1]=new U$2(e.segments.slice(r.pathIndex),e.children),zi$1(i,0,o)}else return r.match&&o.length===0?new U$2(e.segments,{}):r.match&&!e.hasChildren()?Dh(e,t,n):r.match?zi$1(e,0,o):Dh(e,t,n)}function zi$1(e,t,n){if(n.length===0)return new U$2(e.segments,{});{let r=nR(n),o=Object.create(null);if(Object.keys(r).some(i=>i!==A$1)&&e.children[A$1]&&e.numberOfChildren===1&&e.children[A$1].segments.length===0){let i=zi$1(e.children[A$1],t,n);return new U$2(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=uE(e.children[i],t,s));}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s);}),new U$2(e.segments,o)}}function rR(e,t,n){let r=0,o=t,i={match:false,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(qi$1(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(!zD(c,u,s))return i;r+=2;}else {if(!zD(c,{},s))return i;r++;}o++;}return {match:true,pathIndex:o,commandIndex:r}}function Dh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(qi$1(i)){let c=oR(i.outlets);return new U$2(r,c)}if(o===0&&Gc(n[0])){let c=e.segments[t];r.push(new Ln$2(c.path,$D(n[0]))),o++;continue}let s=qi$1(i)?i.outlets[A$1]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Gc(a)?(r.push(new Ln$2(s,$D(a))),o+=2):(r.push(new Ln$2(s,{})),o++);}return new U$2(r,{})}function oR(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Dh(new U$2([],{}),0,r));}),t}function $D(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function zD(e,t,n){return e==n.path&&Ht$1(t,n.parameters)}var Do="imperative",ve$3=(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})(ve$3||{}),Ze$1=class Ze{id;url;constructor(t,n){this.id=t,this.url=n;}},jn$2=class jn extends Ze$1{type=ve$3.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}')`}},Ye$1=class Ye extends Ze$1{urlAfterRedirects;type=ve$3.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Re$4=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Re$4||{}),wo=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(wo||{}),at$1=class at extends Ze$1{reason;code;type=ve$3.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function lE(e){return e instanceof at$1&&(e.code===Re$4.Redirect||e.code===Re$4.SupersededByNewNavigation)}var Vt$1=class Vt extends Ze$1{reason;code;type=ve$3.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o;}},br=class extends Ze$1{error;target;type=ve$3.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})`}},Zi$1=class Zi extends Ze$1{urlAfterRedirects;state;type=ve$3.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})`}},qc=class extends Ze$1{urlAfterRedirects;state;type=ve$3.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})`}},Zc=class extends Ze$1{urlAfterRedirects;state;shouldActivate;type=ve$3.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})`}},Yc=class extends Ze$1{urlAfterRedirects;state;type=ve$3.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})`}},Qc=class extends Ze$1{urlAfterRedirects;state;type=ve$3.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})`}},Kc=class{route;type=ve$3.RouteConfigLoadStart;constructor(t){this.route=t;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},Jc=class{route;type=ve$3.RouteConfigLoadEnd;constructor(t){this.route=t;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},Xc=class{snapshot;type=ve$3.ChildActivationStart;constructor(t){this.snapshot=t;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},eu=class{snapshot;type=ve$3.ChildActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tu=class{snapshot;type=ve$3.ActivationStart;constructor(t){this.snapshot=t;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nu=class{snapshot;type=ve$3.ActivationEnd;constructor(t){this.snapshot=t;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Io=class{routerEvent;position;anchor;scrollBehavior;type=ve$3.Scroll;constructor(t,n,r,o){this.routerEvent=t,this.position=n,this.anchor=r,this.scrollBehavior=o;}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${t}')`}},Co=class{},Yi$2=class Yi{},bo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n;}};function iR(e){return !(e instanceof Co)&&!(e instanceof bo)&&!(e instanceof Yi$2)}var ru=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new Tr(this.rootInjector);}},Tr=(()=>{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 ru(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(b(ee$2))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ou=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=Eh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Eh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=wh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return wh(t,this._root).map(n=>n.value)}};function Eh(e,t){if(e===t.value)return t;for(let n of t.children){let r=Eh(e,n);if(r)return r}return null}function wh(e,t){if(e===t.value)return [t];for(let n of t.children){let r=wh(e,n);if(r.length)return r.unshift(t),r}return []}var qe$1=class qe{value;children;constructor(t,n){this.value=t,this.children=n;}toString(){return `TreeNode(${this.value})`}};function yo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Qi$1=class Qi extends ou{snapshot;constructor(t,n){super(t),this.snapshot=n,xh(this,t);}toString(){return this.snapshot.toString()}};function dE(e,t){let n=sR(e,t),r=new De$3([new Ln$2("",{})]),o=new De$3({}),i=new De$3({}),s=new De$3({}),a=new De$3(""),c=new $t$1(r,o,s,a,i,A$1,e,n.root);return c.snapshot=n.root,new Qi$1(new qe$1(c,[]),n)}function sR(e,t){let n={},r={},o={},s=new So([],n,o,"",r,A$1,e,null,{},t);return new Ki$1("",new qe$1(s,[]))}var $t$1=class $t{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;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(j$3(u=>u[es$1]))??_$3(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(j$3(t=>Cr(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j$3(t=>Cr(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},aR="always";function Ah(e,t,n){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:w$1(w$1({},t.params),e.params),data:w$1(w$1({},t.data),e.data),resolve:w$1(w$1(w$1(w$1({},e.data),t.data),o?.data),e._resolvedData)}:r={params:w$1({},e.params),data:w$1({},e.data),resolve:w$1(w$1({},e.data),e._resolvedData??{})},o&&hE(o)&&(r.resolve[es$1]=o.title),r}var So=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[es$1]}constructor(t,n,r,o,i,s,a,c,u,l){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,this._environmentInjector=l;}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??=Cr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Cr(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}')`}},Ki$1=class Ki extends ou{url;constructor(t,n){super(n),this.url=t,xh(this,n);}toString(){return fE(this._root)}};function xh(e,t){t.value._routerState=e,t.children.forEach(n=>xh(e,n));}function fE(e){let t=e.children.length>0?` { ${e.children.map(fE).join(", ")} } `:"";return `${e.value}${t}`}function hh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ht$1(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Ht$1(t.params,n.params)||e.paramsSubject.next(n.params),kN(t.url,n.url)||e.urlSubject.next(n.url),Ht$1(t.data,n.data)||e.dataSubject.next(n.data);}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data);}function Ih(e,t){let n=Ht$1(e.params,t.params)&&UN(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Ih(e.parent,t.parent))}function hE(e){return typeof e.title=="string"||e.title===null}var pE=new D$1(""),Oh=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=A$1;activateEvents=new be$4;deactivateEvents=new be$4;attachEvents=new be$4;detachEvents=new be$4;routerOutletData=mc();parentContexts=p(Tr);location=p(On$2);changeDetector=p(Er);inputBinder=p(ts$1,{optional:true});supportsBindingToComponentInputs=true;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 y$2(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new y$2(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new y$2(4012,false);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 y$2(4013,false);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Ch(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=kn$2({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[xn$2]})}return e})(),Ch=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===$t$1?this.route:t===Tr?this.childContexts:t===pE?this.outletData:this.parent.get(t,n)}},ts$1=new D$1(""),gE=(()=>{class e{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(n){this.options=n,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n);}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n),this.outletSeenKeys.delete(n);}subscribeToRouteData(n){let{activatedRoute:r}=n,o=Ms([this.options.queryParams?r.queryParams:_$3({}),r.params,r.data]).pipe(Ae$4(([i,s,a],c)=>(a=w$1(w$1(w$1({},i),s),a),c===0?_$3(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=Kv(r.component);if(!s){this.unsubscribeFromRouteData(n);return}let a=this.outletSeenKeys.get(n);a||(a=new Set,this.outletSeenKeys.set(n,a));for(let u of Object.keys(i))a.add(u);let c=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of s.inputs){let l=i[u];(l!==void 0||c==="alwaysUndefined"||a.has(u))&&n.activatedComponentRef.setInput(u,l);}});this.outletDataSubscriptions.set(n,o);}static \u0275fac=function(r){bi$2();};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})(),kh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=vf({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&lc(0,"router-outlet");},dependencies:[Oh],encapsulation:2,changeDetection:1})}return e})();function Ph(e){let t=e.children&&e.children.map(Ph),n=t?x$2(w$1({},e),{children:t}):w$1({},e);return !n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==A$1&&(n.component=kh),n}function cR(e,t,n){let r=new Set,o=Ji$1(e,t._root,n?n._root:void 0,r);return {newlyCreatedRoutes:r,state:new Qi$1(o,t)}}function Ji$1(e,t,n,r){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let o=n.value;o._futureSnapshot=t.value;let i=uR(e,t,n,r);return new qe$1(o,i)}else {if(e.shouldAttach(t.value)){let s=e.retrieve(t.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(c=>Ji$1(e,c,void 0,r)),a}}let o=lR(t.value);r.add(o);let i=t.children.map(s=>Ji$1(e,s,void 0,r));return new qe$1(o,i)}}function uR(e,t,n,r){return t.children.map(o=>{for(let i of n.children)if(e.shouldReuseRoute(o.value,i.value.snapshot))return Ji$1(e,o,i,r);return Ji$1(e,o,void 0,r)})}function lR(e){return new $t$1(new De$3(e.url),new De$3(e.params),new De$3(e.queryParams),new De$3(e.fragment),new De$3(e.data),e.outlet,e.component,e)}var To=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n;}},mE="ngNavigationCancelingError";function iu(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Fn$1(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=yE(false,Re$4.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function yE(e,t){let n=new Error(`NavigationCancelingError: ${""}`);return n[mE]=true,n.cancellationCode=t,n}function dR(e){return vE(e)&&Fn$1(e.url)}function vE(e){return !!e&&e[mE]}var bh=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),hh(this.futureState.root),this.activateChildRoutes(n,r,t);}deactivateChildRoutes(t,n,r){let o=yo(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=yo(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=yo(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),t.value._localInjector?.destroy();}activateChildRoutes(t,n,r){let o=yo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new nu(i.value.snapshot));}),t.children.length&&this.forwardEvent(new eu(t.value.snapshot));}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(hh(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),hh(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);}},su=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1];}},Eo$1=class Eo{component;route;constructor(t,n){this.component=t,this.route=n;}};function fR(e,t,n){let r=e._root,o=t?t._root:null;return $i$1(r,o,n,[r.value])}function hR(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return !t||t.length===0?null:{node:e,guards:t}}function Mo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Xu(e)?e:t.get(e):r}function $i$1(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=yo(t);return e.children.forEach(s=>{pR(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet];}),Object.entries(i).forEach(([s,a])=>Gi$1(a,n.getContext(s),o)),o}function pR(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=gR(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new su(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?$i$1(e,t,a?a.children:null,r,o):$i$1(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Eo$1(a.outlet.component,s));}else s&&Gi$1(t,a,o),o.canActivateChecks.push(new su(r)),i.component?$i$1(e,null,a?a.children:null,r,o):$i$1(e,null,n,r,o);return o}function gR(e,t,n){if(typeof n=="function")return ye$2(t._environmentInjector,()=>n(e,t));switch(n){case "pathParamsChange":return !Ir(e.url,t.url);case "pathParamsOrQueryParamsChange":return !Ir(e.url,t.url)||!Ht$1(e.queryParams,t.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !Ih(e,t)||!Ht$1(e.queryParams,t.queryParams);default:return !Ih(e,t)}}function Gi$1(e,t,n){let r=yo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Gi$1(s,t.children.getContext(i),n):Gi$1(s,null,n):Gi$1(s,t,n);}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Eo$1(t.outlet.component,o)):n.canDeactivateChecks.push(new Eo$1(null,o)):n.canDeactivateChecks.push(new Eo$1(null,o));}function ns$1(e){return typeof e=="function"}function mR(e){return typeof e=="boolean"}function yR(e){return e&&ns$1(e.canLoad)}function vR(e){return e&&ns$1(e.canActivate)}function DR(e){return e&&ns$1(e.canActivateChild)}function ER(e){return e&&ns$1(e.canDeactivate)}function wR(e){return e&&ns$1(e.canMatch)}function DE(e){return e instanceof Gt$1||e?.name==="EmptyError"}var Bc=Symbol("INITIAL_VALUE");function _o(){return Ae$4(e=>Ms(e.map(t=>t.pipe(Ve$2(1),Os(Bc)))).pipe(j$3(t=>{for(let n of t)if(n!==true){if(n===Bc)return Bc;if(n===false||IR(n))return n}return true}),Ce$4(t=>t!==Bc),Ve$2(1)))}function IR(e){return Fn$1(e)||e instanceof To}function EE(e){return e.aborted?_$3(void 0).pipe(Ve$2(1)):new k$1(t=>{let n=()=>{t.next(),t.complete();};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function wE(e){return kr(EE(e))}function CR(e){return pe$3(t=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=t;return i.length===0&&o.length===0?_$3(x$2(w$1({},t),{guardsResult:true})):bR(i,n,r).pipe(pe$3(s=>s&&mR(s)?SR(n,o,e):_$3(s)),j$3(s=>x$2(w$1({},t),{guardsResult:s})))})}function bR(e,t,n){return Y$1(e).pipe(pe$3(r=>RR(r.component,r.route,n,t)),Zt$2(r=>r!==true,true))}function SR(e,t,n){return Y$1(t).pipe(qt$1(r=>Tt$2(_R(r.route.parent,n),TR(r.route,n),NR(e,r.path),MR(e,r.route))),Zt$2(r=>r!==true,true))}function TR(e,t){return e!==null&&t&&t(new tu(e)),_$3(true)}function _R(e,t){return e!==null&&t&&t(new Xc(e)),_$3(true)}function MR(e,t){let n=t.routeConfig?t.routeConfig.canActivate:null;if(!n||n.length===0)return _$3(true);let r=n.map(o=>Oo(()=>{let i=t._environmentInjector,s=Mo(o,i),a=vR(s)?s.canActivate(t,e):ye$2(i,()=>s(t,e));return Sr(a).pipe(Zt$2())}));return _$3(r).pipe(_o())}function NR(e,t){let n=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(i=>hR(i)).filter(i=>i!==null).map(i=>Oo(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,u=Mo(a,c),l=DR(u)?u.canActivateChild(n,e):ye$2(c,()=>u(n,e));return Sr(l).pipe(Zt$2())});return _$3(s).pipe(_o())}));return _$3(o).pipe(_o())}function RR(e,t,n,r){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return _$3(true);let i=o.map(s=>{let a=t._environmentInjector,c=Mo(s,a),u=ER(c)?c.canDeactivate(e,t,n,r):ye$2(a,()=>c(e,t,n,r));return Sr(u).pipe(Zt$2())});return _$3(i).pipe(_o())}function AR(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return _$3(true);let s=i.map(a=>{let c=Mo(a,e),u=yR(c)?c.canLoad(t,n):ye$2(e,()=>c(t,n)),l=Sr(u);return o?l.pipe(wE(o)):l});return _$3(s).pipe(_o(),IE(r))}function IE(e){return wu(Le$2(t=>{if(typeof t!="boolean")throw iu(e,t)}),j$3(t=>t===true))}function xR(e,t,n,r,o,i){let s=t.canMatch;if(!s||s.length===0)return _$3(true);let a=s.map(c=>{let u=Mo(c,e),l=wR(u)?u.canMatch(t,n,o):ye$2(e,()=>u(t,n,o));return Sr(l).pipe(wE(i))});return _$3(a).pipe(_o(),IE(r))}var hn$2=class e extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,e.prototype);}},Xi=class e extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,e.prototype);}};function OR(e){throw new y$2(4e3,false)}function kR(e){throw yE(false,Re$4.GuardRejected)}var Sh=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n;}lineralizeSegments(t,n){return B$1(this,null,function*(){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[A$1])throw OR(`${t.redirectTo}`);o=o.children[A$1];}})}applyRedirectCommands(t,n,r,o,i){return B$1(this,null,function*(){let s=yield PR(n,o,i);if(s instanceof Pe$3)throw new Xi(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new Xi(a);return a})}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Pe$3(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=Object.create(null);return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o);}),new U$2(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 y$2(4001,false);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}};function PR(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e;return zc$1(Sr(ye$2(n,()=>r(t))))}function LR(e,t){return e.providers&&!e._injector&&(e._injector=uo(e.providers,t,`Route: ${e.path}`)),e._injector??t}function wt(e){return e.outlet||A$1}function FR(e,t){let n=e.filter(r=>wt(r)===t);return n.push(...e.filter(r=>wt(r)!==t)),n}var Th={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function CE(e){return {routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function jR(e,t,n,r,o,i,s){let a=bE(e,t,n);if(!a.matched)return _$3(a);let c=CE(i(a));return r=LR(t,r),xR(r,t,n,o,c,s).pipe(j$3(u=>u===true?a:w$1({},Th)))}function bE(e,t,n){if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?w$1({},Th):{matched:true,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||ZD)(n,e,t);if(!o)return w$1({},Th);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path;});let s=o.consumed.length>0?w$1(w$1({},i),o.consumed[o.consumed.length-1].parameters):i;return {matched:true,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function GD(e,t,n,r,o){return n.length>0&&HR(e,n,r,o)?{segmentGroup:new U$2(t,BR(r,new U$2(n,e.children))),slicedSegments:[]}:n.length===0&&VR(e,n,r)?{segmentGroup:new U$2(e.segments,UR(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new U$2(e.segments,e.children),slicedSegments:n}}function UR(e,t,n,r){let o={};for(let i of n)if(cu(e,t,i)&&!r[wt(i)]){let s=new U$2([],{});o[wt(i)]=s;}return w$1(w$1({},r),o)}function BR(e,t){let n={};n[A$1]=t;for(let r of e)if(r.path===""&&wt(r)!==A$1){let o=new U$2([],{});n[wt(r)]=o;}return n}function HR(e,t,n,r){return n.some(o=>!cu(e,t,o)||!(wt(o)!==A$1)?false:!(r!==void 0&&wt(o)===r))}function VR(e,t,n){return n.some(r=>cu(e,t,r))}function cu(e,t,n){return (e.hasChildren()||t.length>0)&&n.pathMatch==="full"?false:n.path===""}function $R(e,t,n){return t.length===0&&!e.children[n]}var _h=class{};function zR(e,t,n,r,o,i,s,a){return B$1(this,null,function*(){return new Mh(e,t,n,r,o,s,i,a).recognize()})}var GR=31,Mh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Sh(this.urlSerializer,this.urlTree);}noMatchError(t){return new y$2(4002,`'${t.segmentGroup}'`)}recognize(){return B$1(this,null,function*(){let t=GD(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=yield this.match(t),o=new qe$1(r,n),i=new Ki$1("",o),s=iE(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){return B$1(this,null,function*(){let n=new So([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A$1,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,t,A$1,n),rootSnapshot:n}}catch(r){if(r instanceof Xi)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof hn$2?this.noMatchError(r):r}})}processSegmentGroup(t,n,r,o,i){return B$1(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=yield this.processSegment(t,n,r,r.segments,o,true,i);return s instanceof qe$1?[s]:[]})}processChildren(t,n,r,o){return B$1(this,null,function*(){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=FR(n,c),d=yield this.processSegmentGroup(t,l,u,c,o);s.push(...d);}let a=SE(s);return WR(a),a})}processSegment(t,n,r,o,i,s,a){return B$1(this,null,function*(){for(let c of n)try{return yield this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof hn$2||DE(u))continue;throw u}if($R(r,o,i))return new _h;throw new hn$2(r)})}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return B$1(this,null,function*(){if(wt(r)!==s&&(s===A$1||!cu(o,i,r)))throw new hn$2(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new hn$2(o)})}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){return B$1(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=bE(n,o,i);if(!c)throw new hn$2(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>GR&&(this.allowRedirects=false));let h=this.createSnapshot(t,o,i,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let g=yield this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,CE(h),t),v=yield this.applyRedirects.lineralizeSegments(o,g);return this.processSegment(t,r,n,v.concat(f),s,false,a)})}createSnapshot(t,n,r,o,i){let s=new So(r,o,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,ZR(n),wt(n),n.component??n._loadedComponent??null,n,YR(n),t),a=Ah(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(t,n,r,o,i,s){return B$1(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=le=>this.createSnapshot(t,r,le.consumedSegments,le.parameters,s),c=yield zc$1(jR(n,r,o,t,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(n.children={}),!c?.matched)throw new hn$2(n);t=r._injector??t;let{routes:u}=yield this.getChildConfig(t,r,o),l=r._loadedInjector??t,{parameters:d,consumedSegments:f,remainingSegments:h}=c,g=this.createSnapshot(t,r,f,d,s),{segmentGroup:v,slicedSegments:E}=GD(n,f,h,u,i);if(E.length===0&&v.hasChildren()){let le=yield this.processChildren(l,u,v,g);return new qe$1(g,le)}if(u.length===0&&E.length===0)return new qe$1(g,[]);let M=wt(r)===i,z=yield this.processSegment(l,u,v,E,M?A$1:i,true,g);return new qe$1(g,z instanceof qe$1?[z]:[])})}getChildConfig(t,n,r){return B$1(this,null,function*(){if(n.children)return {routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0){let i=n._loadedNgModuleFactory;return i&&!n._loadedInjector&&(n._loadedInjector=i.create(t).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield zc$1(AR(t,n,r,this.urlSerializer,this.abortSignal))){let i=yield this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,n._loadedNgModuleFactory=i.factory,i}throw kR()}return {routes:[],injector:t}})}};function WR(e){e.sort((t,n)=>t.value.outlet===A$1?-1:n.value.outlet===A$1?1:t.value.outlet.localeCompare(n.value.outlet));}function qR(e){let t=e.value.routeConfig;return t&&t.path===""}function SE(e){let t=[],n=new Set;for(let r of e){if(!qR(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=SE(r.children);t.push(new qe$1(r.value,o));}return t.filter(r=>!n.has(r))}function ZR(e){return e.data||{}}function YR(e){return e.resolve||{}}function QR(e,t,n,r,o,i,s){return pe$3(a=>B$1(null,null,function*(){let{state:c,tree:u}=yield zR(e,t,n,r,a.extractedUrl,o,i,s);return x$2(w$1({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function KR(e){return pe$3(t=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=t;if(!r.length)return _$3(t);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of TE(a))i.add(c);let s=0;return Y$1(i).pipe(qt$1(a=>o.has(a)?JR(a,n,e):(a.data=Ah(a,a.parent,e).resolve,_$3(void 0))),Le$2(()=>s++),Ls(1),pe$3(a=>s===i.size?_$3(t):he$3))})}function TE(e){let t=e.children.map(n=>TE(n)).flat();return [e,...t]}function JR(e,t,n){let r=e.routeConfig,o=e._resolve;return r?.title!==void 0&&!hE(r)&&(o[es$1]=r.title),Oo(()=>(e.data=Ah(e,e.parent,n).resolve,XR(o,e,t).pipe(j$3(i=>(e._resolvedData=i,e.data=w$1(w$1({},e.data),i),null)))))}function XR(e,t,n){let r=gh(e);if(r.length===0)return _$3({});let o={};return Y$1(r).pipe(pe$3(i=>eA(e[i],t,n).pipe(Zt$2(),Le$2(s=>{if(s instanceof To)throw iu(new pn$2,s);o[i]=s;}))),Ls(1),j$3(()=>o),Wn$2(i=>DE(i)?he$3:_u(i)))}function eA(e,t,n){let r=t._environmentInjector,o=Mo(e,r),i=o.resolve?o.resolve(t,n):ye$2(r,()=>o(t,n));return Sr(i)}function WD(e){return Ae$4(t=>{let n=e(t);return n?Y$1(n).pipe(j$3(()=>t)):_$3(t)})}var Lh=(()=>{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===A$1);return r}getResolvedTitleForRoute(n){return n.data[es$1]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(_E)})}return e})(),_E=(()=>{class e extends Lh{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)(b(BD))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bn$2=new D$1("",{factory:()=>({})}),_r=new D$1(""),uu=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(Af);loadComponent(n,r){return B$1(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=B$1(this,null,function*(){try{let i=yield QD(ye$2(n,()=>r.loadComponent())),s=yield NE(Lf(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,o),o})}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=B$1(this,null,function*(){try{let i=yield ME(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function ME(e,t,n,r){return B$1(this,null,function*(){let o=yield QD(ye$2(n,()=>e.loadChildren())),i=yield NE(Lf(o)),s;i instanceof sc||Array.isArray(i)?s=i:s=yield t.compileModuleAsync(i),r&&r(e);let a,c,l;return Array.isArray(s)?(c=s,true):(a=s.create(n).injector,l=s,c=a.get(_r,[],{optional:true,self:true}).flat()),{routes:c.map(Ph),injector:a,factory:l}})}function NE(e){return B$1(this,null,function*(){return e})}var lu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(tA)})}return e})(),tA=(()=>{class e{shouldProcessUrl(n){return true}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),Fh=new D$1(""),jh=new D$1("");function RE(e,t,n){let r=e.get(jh),o=e.get(Q$3);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let i,s=new Promise(u=>{i=u;}),a=o.startViewTransition(()=>(i(),nA(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&ye$2(e,()=>c({transition:a,from:t,to:n})),s}function nA(e){return new Promise(t=>{Ja({read:()=>setTimeout(t)},{injector:e});})}var AE=new D$1(""),rA=()=>{},Uh=new D$1(""),du=(()=>{class e{currentNavigation=ie$1(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=ie$1(null);events=new ne$1;transitionAbortWithErrorSubject=new ne$1;configLoader=p(uu);environmentInjector=p(ee$2);destroyRef=p(Me$4);urlSerializer=p(Un$2);rootContexts=p(Tr);location=p(Pn$2);inputBindingEnabled=p(ts$1,{optional:true})!==null;titleStrategy=p(Lh);options=p(Bn$2,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||aR;urlHandlingStrategy=p(lu);createViewTransition=p(Fh,{optional:true});navigationErrorHandler=p(Uh,{optional:true});activatedRouteInjectorFeature=p(AE,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>_$3(void 0);rootComponentType=null;destroyed=false;constructor(){let n=o=>this.events.next(new Kc(o)),r=o=>this.events.next(new Jc(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(n){let r=++this.navigationId;W$3(()=>{this.transitions?.next(x$2(w$1({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(n){return this.transitions=new De$3(null),this.transitions.pipe(Ce$4(r=>r!==null),Ae$4(r=>{let o=true,i=false,s=new AbortController,a=()=>!i&&this.currentTransition?.id===r.id;return _$3(r).pipe(Ae$4(c=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),he$3;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:u?x$2(w$1({},u),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:c.routesRecognizeHandler,beforeActivateHandler:c.beforeActivateHandler});let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.rawUrl),"",wo.IgnoredSameUrlNavigation)),c.resolve(false),he$3;if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return _$3(c).pipe(Ae$4(f=>(this.events.next(new jn$2(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?he$3:Promise.resolve(f))),QR(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),Le$2(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=f.urlAfterRedirects,h)),this.events.next(new Yi$2);}),Ae$4(f=>Y$1(r.routesRecognizeHandler.deferredHandle??_$3(void 0)).pipe(j$3(()=>f))),Le$2(()=>{let f=new Zi$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:g,restoredState:v,extras:E}=c,M=new jn$2(f,this.urlSerializer.serialize(h),g,v);this.events.next(M);let z=dE(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$2(w$1({},c),{targetSnapshot:z,urlAfterRedirects:h,extras:x$2(w$1({},E),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(le=>(le.finalUrl=h,le)),_$3(r)}else return this.events.next(new Vt$1(c.id,this.urlSerializer.serialize(c.extractedUrl),"",wo.IgnoredByUrlHandlingStrategy)),c.resolve(false),he$3}),j$3(c=>{let u=new qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$2(w$1({},c),{guards:fR(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r}),CR(c=>this.events.next(c)),Ae$4(c=>{if(r.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw iu(this.urlSerializer,c.guardsResult);let u=new Zc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);if(this.events.next(u),!a())return he$3;if(!c.guardsResult)return this.cancelNavigationTransition(c,"",Re$4.GuardRejected),he$3;if(c.guards.canActivateChecks.length===0)return _$3(c);let l=new Yc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);if(this.events.next(l),!a())return he$3;let d=false;return _$3(c).pipe(KR(this.paramsInheritanceStrategy),Le$2({next:()=>{d=true;let f=new Qc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(f);},complete:()=>{d||this.cancelNavigationTransition(c,"",Re$4.NoDataFromResolver);}}))}),WD(c=>{let u=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let h=d._environmentInjector;f.push(this.configLoader.loadComponent(h,d.routeConfig).then(g=>{d.component=g;}));}for(let h of d.children)f.push(...u(h));return f},l=u(c.targetSnapshot.root);return l.length===0?_$3(c):Y$1(Promise.all(l).then(()=>c))}),Ae$4(c=>{let{newlyCreatedRoutes:u,state:l}=cR(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=c=x$2(w$1({},c),{targetRouterState:l,newlyCreatedRoutes:u}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),_$3(c)}),this.activatedRouteInjectorFeature?.operator()??(c=>c),WD(()=>this.afterPreactivation()),Ae$4(()=>{let{currentSnapshot:c,targetSnapshot:u}=r,l=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return l?Y$1(l).pipe(j$3(()=>r)):_$3(r)}),Ve$2(1),Ae$4(c=>{o=false,this.events.next(new Co);let u=r.beforeActivateHandler.deferredHandle;return u?Y$1(u.then(()=>c)):_$3(c)}),Le$2(c=>{new bh(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),c.newlyCreatedRoutes?.clear(),a()&&(i=true,this.currentNavigation.update(u=>(u.abort=rA,u)),this.lastSuccessfulNavigation.set(W$3(this.currentNavigation)),this.events.next(new Ye$1(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(true));}),kr(EE(s.signal).pipe(Ce$4(()=>!i&&o),Le$2(()=>{this.cancelNavigationTransition(r,s.signal.reason+"",Re$4.Aborted);}))),Le$2({complete:()=>{i=true;}}),kr(this.transitionAbortWithErrorSubject.pipe(Le$2(c=>{throw c}))),Or(()=>{s.abort(),i||this.cancelNavigationTransition(r,"",Re$4.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),Wn$2(c=>{if(i=true,qD(r),this.destroyed)return r.resolve(false),he$3;if(vE(c))this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),dR(c)?this.events.next(new bo(c.url,c.navigationBehaviorOptions)):r.resolve(false);else {let u=new br(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0);try{let l=ye$2(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof To){let{message:d,cancellationCode:f}=iu(this.urlSerializer,l);this.events.next(new at$1(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new bo(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(u),c}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(l);}}return he$3}))}))}cancelNavigationTransition(n,r,o){qD(n);let i=new at$1(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=W$3(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function oA(e){return e!==Do}function qD(e){if(e.newlyCreatedRoutes)for(let t of e.newlyCreatedRoutes)t._localInjector?.destroy();}var xE=new D$1("");var OE=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(iA)})}return e})(),au=class{shouldDetach(t){return false}store(t,n){}shouldAttach(t){return false}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}shouldDestroyInjector(t){return true}},iA=(()=>{class e extends au{static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),fu=(()=>{class e{urlSerializer=p(Un$2);options=p(Bn$2,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(Pn$2);urlHandlingStrategy=p(lu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Pe$3;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 Pe$3?this.urlSerializer.serialize(s):s}routerUrlState(n){return n?.targetBrowserUrl===void 0||n?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(n.finalUrl)}}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=dE(null,p(ee$2));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:()=>p(sA)})}return e})(),sA=(()=>{class e extends fu{currentPageId=0;lastSuccessfulId=-1;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",{replaceUrl:true});});})}handleRouterEvent(n,r){n instanceof jn$2?this.updateStateMemento():n instanceof Vt$1?this.commitTransition(r):n instanceof Zi$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Co?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof at$1&&!lE(n)?this.restoreHistory(r):n instanceof br?this.restoreHistory(r,true):n instanceof Ye$1&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId);}setBrowserUrl(n,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(n)||s){let c=this.browserPageId,u=w$1(w$1({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(n,"",u);}else {let c=w$1(w$1({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(n,"",c);}}restoreHistory(n,r=false){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());}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(n,r,o){return this.canceledNavigationResolution==="computed"?w$1({navigationId:n,\u0275routerPageId:r},this.routerUrlState(o)):w$1({navigationId:n},this.routerUrlState(o))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function hu(e,t){e.events.pipe(Ce$4(n=>n instanceof Ye$1||n instanceof at$1||n instanceof br||n instanceof Vt$1),j$3(n=>n instanceof Ye$1||n instanceof Vt$1?0:(n instanceof at$1?n.code===Re$4.Redirect||n.code===Re$4.SupersededByNewNavigation:false)?2:1),Ce$4(n=>n!==2),Ve$2(1)).subscribe(()=>{t();});}var It$1=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=p(cc);stateManager=p(fu);options=p(Bn$2,{optional:true})||{};pendingTasks=p(kt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(du);urlSerializer=p(Un$2);location=p(Pn$2);urlHandlingStrategy=p(lu);injector=p(ee$2);_events=new ne$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=p(OE);injectorCleanup=p(xE,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(_r,{optional:true})?.flat()??[];componentInputBindingEnabled=!!p(ts$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ae$2;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=W$3(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof at$1&&r.code!==Re$4.Redirect&&r.code!==Re$4.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ye$1)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof bo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=w$1({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||oA(o.source)},s);this.scheduleNavigation(a,Do,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise});}}iR(r)&&this._events.next(r);}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.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(true),Do,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o,i)=>{this.navigateToSyncWithBrowser(n,o,r,i);});}navigateToSyncWithBrowser(n,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??n;if(o?.\u0275routerUrl&&(i=x$2(w$1({},i),{browserUrl:n})),o){let u=w$1({},o);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(i.state=u);}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(u=>{this.disposed||this.injector.get(ke$2)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return W$3(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ph),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,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=w$1(w$1({},this.currentUrlTree.queryParams),i);break;case "preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null;}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=o?o.snapshot:this.routerState.snapshot.root;d=sE(f);}catch(f){(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root;}return aE(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:false}){let o=Fn$1(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Do,null,r)}navigate(n,r={skipLocationChange:false}){return aA(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch(r){return this.console.warn(Ke$1(4018,false)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===true?o=w$1({},Nh):r===false?o=w$1({},Wi$2):o=w$1(w$1({},Wi$2),r),Fn$1(n))return mh(this.currentUrlTree,n,o);let i=this.parseUrl(n);return mh(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(false);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,c=f;});let l=this.pendingTasks.add();return hu(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(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})();function aA(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new y$2(4008,false)}var cA=(()=>{class e{router=p(It$1);stateManager=p(fu);fragment=ie$1("");queryParams=ie$1({});path=ie$1("");serializer=p(Un$2);constructor(){this.updateState(),this.router.events?.subscribe(n=>{n instanceof Ye$1&&this.updateState();});}updateState(){let{fragment:n,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(n),this.queryParams.set(o),this.path.set(this.serializer.serialize(new Pe$3(r)));}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Z$2({token:e,factory:e.\u0275fac})}return e})(),pu=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=p(new pc("href"),{optional:true});reactiveHref=xf(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return W$3(this.reactiveHref)}set href(n){this.reactiveHref.set(n);}set target(n){this._target.set(n);}get target(){return W$3(this._target)}_target=ie$1(void 0);set queryParams(n){this._queryParams.set(n);}get queryParams(){return W$3(this._queryParams)}_queryParams=ie$1(void 0,{equal:()=>false});set fragment(n){this._fragment.set(n);}get fragment(){return W$3(this._fragment)}_fragment=ie$1(void 0);set queryParamsHandling(n){this._queryParamsHandling.set(n);}get queryParamsHandling(){return W$3(this._queryParamsHandling)}_queryParamsHandling=ie$1(void 0);set state(n){this._state.set(n);}get state(){return W$3(this._state)}_state=ie$1(void 0,{equal:()=>false});set info(n){this._info.set(n);}get info(){return W$3(this._info)}_info=ie$1(void 0,{equal:()=>false});set relativeTo(n){this._relativeTo.set(n);}get relativeTo(){return W$3(this._relativeTo)}_relativeTo=ie$1(void 0);set preserveFragment(n){this._preserveFragment.set(n);}get preserveFragment(){return W$3(this._preserveFragment)}_preserveFragment=ie$1(false);set skipLocationChange(n){this._skipLocationChange.set(n);}get skipLocationChange(){return W$3(this._skipLocationChange)}_skipLocationChange=ie$1(false);set replaceUrl(n){this._replaceUrl.set(n);}get replaceUrl(){return W$3(this._replaceUrl)}_replaceUrl=ie$1(false);browserUrl=mc(void 0);isAnchorElement;onChanges=new ne$1;applicationErrorHandler=p(ke$2);options=p(Bn$2,{optional:true});reactiveRouterState=p(cA);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"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n);}ngOnChanges(n){this.onChanges.next(this);}routerLinkInput=ie$1(null);set routerLink(n){n==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Fn$1(n)?this.routerLinkInput.set(n):this.routerLinkInput.set(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 true;let c=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},c!==void 0&&{browserUrl:c});return this.router.navigateByUrl(a,u)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n);}_urlTree=Mi$2(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let n=o=>o==="preserve"||o==="merge";(n(this._queryParamsHandling())||n(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Fn$1(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(n,r)=>this.computeHref(n)===this.computeHref(r)});get urlTree(){return W$3(this._urlTree)}computeHref(n){return n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n))??"":null}static \u0275fac=function(r){return new(r||e)(se$1(It$1),se$1($t$1),vi$2("tabindex"),se$1(co),se$1(Ft$1),se$1(Dt))};static \u0275dir=kn$2({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&dc("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&uc("href",o.reactiveHref(),$d)("target",o._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ri$2],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ri$2],replaceUrl:[2,"replaceUrl","replaceUrl",Ri$2],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[xn$2]})}return e})(),uA=(()=>{class e{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new be$4;link=p(pu,{optional:true});constructor(n,r,o,i){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=n.events.subscribe(s=>{s instanceof Ye$1&&this.update();});}ngAfterContentInit(){_$3(this.links.changes,_$3(null)).pipe(St$1()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Y$1(n).pipe(St$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o);}ngOnChanges(n){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n));});}isLinkActive(n){let r=lA(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Nh):w$1({},Wi$2);return o=>{let i=o.urlTree;return i?W$3(Rh(i,n,r)):false}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static \u0275fac=function(r){return new(r||e)(se$1(It$1),se$1(Ft$1),se$1(co),se$1(Er))};static \u0275dir=kn$2({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&fc(i,pu,5),r&2){let s;Mf(s=Nf())&&(o.links=s);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[xn$2]})}return e})();function lA(e){let t=e;return !!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var rs=class{};var kE=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(n,r,o,i){this.router=n,this.injector=r,this.preloadingStrategy=o,this.loader=i;}setUpPreloading(){this.subscription=this.router.events.pipe(Ce$4(n=>n instanceof Ye$1),qt$1(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(n,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=uo(i.providers,n,""));let s=i._injector??n;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes));}return Y$1(o).pipe(St$1())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{if(n.destroyed)return _$3(null);let o;r.loadChildren&&r.canLoad===void 0?o=Y$1(this.loader.loadChildren(n,r)):o=_$3(null);let i=o.pipe(pe$3(s=>s===null?_$3(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(n,r);return Y$1([i,s]).pipe(St$1())}else return i})}static \u0275fac=function(r){return new(r||e)(b(It$1),b(ee$2),b(rs),b(uu))};static \u0275prov=R$1({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),PE=new D$1(""),dA=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Do;restoredId=0;store={};isHydrating=p(Ld,{optional:true})??false;urlSerializer=p(Un$2);zone=p(J$3);viewportScroller=p(Qf);transitions=p(du);constructor(n){this.options=n,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&p(sn$2).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof jn$2?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Ye$1?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Vt$1&&n.code===wo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{if(!(n instanceof Io)||n.scrollBehavior==="manual")return;let r={behavior:"instant"};n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position,r):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(n,r){if(this.isHydrating)return;let o=W$3(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$1(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i);}),this.zone.run(()=>{this.transitions.events.next(new Io(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){bi$2();};static \u0275prov=R$1({token:e,factory:e.\u0275fac})}return e})();function fA(e,...t){return ft$2([{provide:_r,multi:true,useValue:e},{provide:$t$1,useFactory:LE},{provide:fo,multi:true,useFactory:FE},t.map(n=>n.\u0275providers)])}function LE(){return p(It$1).routerState.root}function os(e,t){return {\u0275kind:e,\u0275providers:t}}function FE(){let e=p(we$3);return t=>{let n=e.get(sn$2);if(t!==n.components[0])return;let r=e.get(It$1),o=e.get(jE);e.get(Hh)===1&&r.initialNavigation(),e.get(HE,null,{optional:true})?.setUpPreloading(),e.get(PE,null,{optional:true})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe());}}var jE=new D$1("",{factory:()=>new ne$1}),Hh=new D$1("",{factory:()=>1});function UE(){let e=[{provide:Wa,useValue:true},{provide:Hh,useValue:0},ac(()=>{let t=p(we$3);return t.get(jf,Promise.resolve()).then(()=>new Promise(r=>{let o=t.get(It$1),i=t.get(jE);hu(o,()=>{r(true);}),t.get(du).afterPreactivation=()=>(r(true),i.closed?_$3(void 0):i),o.initialNavigation();}))})];return os(2,e)}function BE(){let e=[ac(()=>{p(It$1).setUpLocationChangeListener();}),{provide:Hh,useValue:2}];return os(3,e)}var HE=new D$1("");function VE(e){return os(0,[{provide:HE,useExisting:kE},{provide:rs,useExisting:e}])}function $E(e={}){return os(8,[{provide:ts$1,useFactory:()=>new gE(e)}])}function zE(e){it$1("NgRouterViewTransitions");let t=[{provide:Fh,useValue:RE},{provide:jh,useValue:w$1({skipNextTransition:false},e)}];return os(9,t)}var GE=[Pn$2,{provide:Un$2,useClass:pn$2},It$1,Tr,{provide:$t$1,useFactory:LE},uu],hA=(()=>{class e{constructor(){}static forRoot(n,r){return {ngModule:e,providers:[GE,[],{provide:_r,multi:true,useValue:n},[],r?.errorHandler?{provide:Uh,useValue:r.errorHandler}:[],{provide:Bn$2,useValue:r||{}},r?.useHash?gA():mA(),pA(),r?.preloadingStrategy?VE(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?yA(r):[],r?.bindToComponentInputs?$E(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?zE().\u0275providers:[],vA()]}}static forChild(n){return {ngModule:e,providers:[{provide:_r,multi:true,useValue:n}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=lo({type:e});static \u0275inj=tr({})}return e})();function pA(){return {provide:PE,useFactory:()=>{let e=p(Qf),t=p(Bn$2);return t.scrollOffset&&e.setOffset(t.scrollOffset),new dA(t)}}}function gA(){return {provide:Dt,useClass:Wf}}function mA(){return {provide:Dt,useClass:Dc}}function yA(e){return [e.initialNavigation==="disabled"?BE().\u0275providers:[],e.initialNavigation==="enabledBlocking"?UE().\u0275providers:[]]}var Bh=new D$1("");function vA(){return [{provide:Bh,useFactory:FE},{provide:fo,multi:true,useExisting:Bh}]}
6
+ function lt$1(i){return i.buttons===0||i.detail===0}function ct$1(i){let e=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return !!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var he$2;function Je$1(){if(he$2==null){let i=typeof document<"u"?document.head:null;he$2=!!(i&&(i.createShadowRoot||i.attachShadow));}return he$2}function pe$2(i){if(Je$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ri$1(){let i=typeof document<"u"&&document?document.activeElement:null;for(;i&&i.shadowRoot;){let e=i.shadowRoot.activeElement;if(e===i)break;i=e;}return i}function A(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}var fe$1;try{fe$1=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){fe$1=false;}var _$2=(()=>{class i{_platformId=p(ni$2);isBrowser=this._platformId?sz(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||fe$1)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var dt$1;function tn$1(){if(dt$1==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>dt$1=!0}));}finally{dt$1=dt$1||false;}return dt$1}function Q$2(i){return tn$1()?i:!!i.capture}function en$1(i,e=0){return nn$1(i)?Number(i):arguments.length===2?e:0}function nn$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function L$3(i){return i instanceof Ft$1?i.nativeElement:i}var on$1=new D$1("cdk-input-modality-detector-options"),rn$1={ignoreKeys:[18,17,224,91,16]},sn$1=650,be$3={passive:true,capture:true},an$1=(()=>{class i{_platform=p(_$2);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new De$3(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=A(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<sn$1||(this._modality.next(lt$1(t)?"keyboard":"mouse"),this._mostRecentTarget=A(t));};_onTouchstart=t=>{if(ct$1(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=A(t);};constructor(){let t=p(J$3),n=p(Q$3),o=p(on$1,{optional:true});if(this._options=w$1(w$1({},rn$1),o),this.modalityDetected=this._modality.pipe(dp(1)),this.modalityChanged=this.modalityDetected.pipe(mp()),this._platform.isBrowser){let r=p(hr).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,be$3),r.listen(n,"mousedown",this._onMousedown,be$3),r.listen(n,"touchstart",this._onTouchstart,be$3)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ut$1=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(ut$1||{}),ln$1=new D$1("cdk-focus-monitor-default-options"),Ot=Q$2({passive:true,capture:true}),_e=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_inputModalityDetector=p(an$1);_origin=null;_lastFocusOrigin=null;_windowFocused=false;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=false;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=true,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=false);};_document=p(Q$3);_stopInputModalityDetector=new ne$1;constructor(){let t=p(ln$1,{optional:true});this._detectionMode=t?.detectionMode||ut$1.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=A(t);for(let o=n;o;o=o.parentElement)t.type==="focus"?this._onFocus(t,o):this._onBlur(t,o);};monitor(t,n=false){let o=L$3(t);if(!this._platform.isBrowser||o.nodeType!==1)return _$3();let r=pe$2(o)||this._document,s=this._elementInfo.get(o);if(s)return n&&(s.checkChildren=true),s.subject;let l={checkChildren:n,subject:new ne$1,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=L$3(t),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o));}focusVia(t,n,o){let r=L$3(t),s=this._document.activeElement;r===s?this._getClosestElementsInfo(r).forEach(([l,d])=>this._originChanged(l,n,d)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o));}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n));}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ut$1.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program");}_setOrigin(t,n=false){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===ut$1.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?sn$1:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=A(t);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o);}_onBlur(t,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null));}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n));}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(kr(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,true);}));}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(n));}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId));}_originChanged(t,n,o){this._setClasses(t,n),this._emitOrigin(o,n),this._lastFocusOrigin=n;}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((o,r)=>{(r===t||o.checkChildren&&r.contains(t))&&n.push([r,o]);}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return false;let r=t.labels;if(r){for(let s=0;s<r.length;s++)if(r[s].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var At=new WeakMap,I=(()=>{class i{_appRef;_injector=p(we$3);_environmentInjector=p(ee$2);load(t){let n=this._appRef=this._appRef||this._injector.get(sn$2),o=At.get(n);o||(o={loaders:new Set,refs:[]},At.set(n,o),n.onDestroy(()=>{At.get(n)?.refs.forEach(r=>r.destroy()),At.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(F$(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var It=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vf({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
7
+ border: 0;
8
+ clip: rect(0 0 0 0);
9
+ height: 1px;
10
+ margin: -1px;
11
+ overflow: hidden;
12
+ padding: 0;
13
+ position: absolute;
14
+ width: 1px;
15
+ white-space: nowrap;
16
+ outline: 0;
17
+ -webkit-appearance: none;
18
+ -moz-appearance: none;
19
+ left: 0;
20
+ }
21
+ [dir=rtl] .cdk-visually-hidden {
22
+ left: auto;
23
+ right: 0;
24
+ }
25
+ `],encapsulation:2})}return i})(),Mt;function si$1(){if(Mt===void 0&&(Mt=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Mt=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Mt}function Eo(i){return si$1()?.createHTML(i)||i}function J$2(i){return Array.isArray(i)?i:[i]}var cn$1=new Set,j$2,Tt$1=(()=>{class i{_platform=p(_$2);_nonce=p(ri$2,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):li$1;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&ai$1(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function ai$1(i,e){if(!cn$1.has(i))try{j$2||(j$2=document.createElement("style"),e&&j$2.setAttribute("nonce",e),j$2.setAttribute("type","text/css"),document.head.appendChild(j$2)),j$2.sheet&&(j$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),cn$1.add(i));}catch(t){console.error(t);}}function li$1(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var ge$2=(()=>{class i{_mediaMatcher=p(Tt$1);_zone=p(J$3);_queries=new Map;_destroySubject=new ne$1;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return dn$1(J$2(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=dn$1(J$2(t)).map(s=>this._registerQuery(s).observable),r=Ms(o);return r=Tt$2(r.pipe(Ve$2(1)),r.pipe(dp(1),lp(0))),r.pipe(j$3(s=>{let l={matches:false,breakpoints:{}};return s.forEach(({matches:d,query:u})=>{l.matches=l.matches||d,l.breakpoints[u]=d;}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),r={observable:new k$1(s=>{let l=d=>this._zone.run(()=>s.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(Os(n),j$3(({matches:s})=>({query:t,matches:s})),kr(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function dn$1(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}var ci$1=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var un$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[ci$1]})}return i})();var bn$1=(()=>{class i{_platform=p(_$2);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ui$1(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=di$1(vi$1(t));if(n&&(mn$1(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=mn$1(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!_i$1(t)?false:o==="audio"?t.hasAttribute("controls")?r!==-1:false:o==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return gi$1(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function di$1(i){try{return i.frameElement}catch(e){return null}}function ui$1(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function mi$1(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function hi$1(i){return fi$1(i)&&i.type=="hidden"}function pi$1(i){return bi$1(i)&&i.hasAttribute("href")}function fi$1(i){return i.nodeName.toLowerCase()=="input"}function bi$1(i){return i.nodeName.toLowerCase()=="a"}function _n$1(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function mn$1(i){if(!_n$1(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function _i$1(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function gi$1(i){return hi$1(i)?false:mi$1(i)||pi$1(i)||i.hasAttribute("contenteditable")||_n$1(i)}function vi$1(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var Pt=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_enabled=true;constructor(e,t,n,o,r=false,s){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=s,r||this.attachAnchors();}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false;}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener));}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)));})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)));})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)));})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),true}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(o)return o}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(o)return o}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex");}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor));}_executeOnStable(e){Ja(e,{injector:this._injector});}},yi$1=(()=>{class i{_checker=p(bn$1);_ngZone=p(J$3);_document=p(Q$3);_injector=p(we$3);constructor(){p(I).load(It);}create(t,n=false){return new Pt(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var z$3=(function(i){return i[i.NONE=0]="NONE",i[i.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",i[i.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",i})(z$3||{}),hn$1="cdk-high-contrast-black-on-white",pn$1="cdk-high-contrast-white-on-black",ve$2="cdk-high-contrast-active",gn$1=(()=>{class i{_platform=p(_$2);_hasCheckedHighContrastMode=false;_document=p(Q$3);_breakpointSubscription;constructor(){this._breakpointSubscription=p(ge$2).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses());});}getHighContrastMode(){if(!this._platform.isBrowser)return z$3.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(t):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case "rgb(0,0,0)":case "rgb(45,50,54)":case "rgb(32,32,32)":return z$3.WHITE_ON_BLACK;case "rgb(255,255,255)":case "rgb(255,250,239)":return z$3.BLACK_ON_WHITE}return z$3.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe();}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(ve$2,hn$1,pn$1),this._hasCheckedHighContrastMode=true;let n=this.getHighContrastMode();n===z$3.BLACK_ON_WHITE?t.add(ve$2,hn$1):n===z$3.WHITE_ON_BLACK&&t.add(ve$2,pn$1);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),wi$1=(()=>{class i{constructor(){p(gn$1)._applyBodyHighContrastModeCssClasses();}static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[un$1]})}return i})();var xi$1=200,Ft=class{_letterKeyStream=new ne$1;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new ne$1;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:xi$1;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n);}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete();}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e;}setItems(e){this._items=e;}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t));}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[];}_setupKeyHandler(e){this._letterKeyStream.pipe(Le$2(t=>this._pressedLetters.push(t)),lp(e),Ce$4(()=>this._pressedLetters.length>0),j$3(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let o=(this._selectedItemIndex+n)%this._items.length,r=this._items[o];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(r);break}}this._pressedLetters=[];});}};function vn$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var Nt=class{_items;_activeItemIndex=ie$1(-1);_activeItem=ie$1(null);_wrap=false;_typeaheadSubscription=ae$2.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof Aa?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):oi$2(e)&&(this._effectRef=Sg(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new ne$1;change=new ne$1;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=true){return this._wrap=e,this}withVerticalOrientation(e=true){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Ft(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n);}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=true){return this._homeAndEnd=e,this}withPageUpDown(e=true,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex());}onKeydown(e){let t=e.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(r<s?r:s-1,-1);break}else return;default:(o||vn$1(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault();}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return !!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1);}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1);}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1);}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1);}updateActiveItem(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),o=t[n];this._activeItem.set(o??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n);}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete();}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e);}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let o=(this._activeItemIndex()+e*n+t.length)%t.length,r=t[o];if(!this._skipPredicateFn(r)){this.setActiveItem(o);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e);}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e);}}_getItemsArray(){return oi$2(this._items)?this._items():this._items instanceof Aa?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n));}}};var ye$1=class ye extends Nt{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var yn$1=new Map,mt$1=class i{_appId=p(ti$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=yn$1.get(e);return n===void 0?n=0:n++,yn$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})};var xn$1=" ";function Ei$1(i,e,t){let n=Bt(i,e);t=t.trim(),!n.some(o=>o.trim()===t)&&(n.push(t),i.setAttribute(e,n.join(xn$1)));}function Ci$1(i,e,t){let n=Bt(i,e);t=t.trim();let o=n.filter(r=>r!==t);o.length?i.setAttribute(e,o.join(xn$1)):i.removeAttribute(e);}function Bt(i,e){return i.getAttribute(e)?.match(/\S+/g)??[]}var En$1="cdk-describedby-message",Lt="cdk-describedby-host",xe$1=0,Pr=(()=>{class i{_platform=p(_$2);_document=p(Q$3);_messageRegistry=new Map;_messagesContainer=null;_id=`${xe$1++}`;constructor(){p(I).load(It),this._id=p(ti$2)+"-"+xe$1++;}describe(t,n,o){if(!this._canBeDescribed(t,n))return;let r=we$2(n,o);typeof n!="string"?(wn$1(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r);}removeDescription(t,n,o){if(!n||!this._isElementNode(t))return;let r=we$2(n,o);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),typeof n=="string"){let s=this._messageRegistry.get(r);s&&s.referenceCount===0&&this._deleteMessageElement(r);}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null);}ngOnDestroy(){let t=this._document.querySelectorAll(`[${Lt}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(Lt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear();}_createMessageElement(t,n){let o=this._document.createElement("div");wn$1(o,this._id),o.textContent=t,n&&o.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(we$2(t,n),{messageElement:o,referenceCount:0});}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t);}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let r=0;r<n.length;r++)n[r].remove();let o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(t),o.classList.add("cdk-visually-hidden"),this._platform.isBrowser||o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o;}_removeCdkDescribedByReferenceIds(t){let n=Bt(t,"aria-describedby").filter(o=>o.indexOf(En$1)!=0);t.setAttribute("aria-describedby",n.join(" "));}_addMessageReference(t,n){let o=this._messageRegistry.get(n);Ei$1(t,"aria-describedby",o.messageElement.id),t.setAttribute(Lt,this._id),o.referenceCount++;}_removeMessageReference(t,n){let o=this._messageRegistry.get(n);o.referenceCount--,Ci$1(t,"aria-describedby",o.messageElement.id),t.removeAttribute(Lt);}_isElementDescribedByMessage(t,n){let o=Bt(t,"aria-describedby"),r=this._messageRegistry.get(n),s=r&&r.messageElement.id;return !!s&&o.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return false;if(n&&typeof n=="object")return true;let o=n==null?"":`${n}`.trim(),r=t.getAttribute("aria-label");return o?!r||r.trim()!==o:false}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function we$2(i,e){return typeof i=="string"?`${e||""}/${i}`:i}function wn$1(i,e){i.id||(i.id=`${En$1}-${e}-${xe$1++}`);}var N$1=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(N$1||{}),zt,H$1;function Vt(){if(H$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return H$1=false,H$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)H$1=true;else {let i=Element.prototype.scrollTo;i?H$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):H$1=false;}}return H$1}function tt$1(){if(typeof document!="object"||!document)return N$1.NORMAL;if(zt==null){let i=document.createElement("div"),e=i.style;i.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",i.appendChild(t),document.body.appendChild(i),zt=N$1.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,zt=i.scrollLeft===0?N$1.NEGATED:N$1.INVERTED),i.remove();}return zt}function Ee$3(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Si$1=new D$1("MATERIAL_ANIMATIONS"),Cn$1=null;function ki$1(){return p(Si$1,{optional:true})?.animationsDisabled||p(gI,{optional:true})==="NoopAnimations"?"di-disabled":(Cn$1??=p(Tt$1).matchMedia("(prefers-reduced-motion)").matches,Cn$1?"reduced-motion":"enabled")}function et$1(){return ki$1()!=="enabled"}function g$1(i){return i==null?"":typeof i=="string"?i:`${i}px`}function Jr(i){return i!=null&&`${i}`!="false"}var T=(function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i})(T||{}),Ce$3=class Ce{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Sn$1=Q$2({passive:true,capture:true}),Se$2=class Se{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let s=r.get(n);s?s.add(o):r.set(n,new Set([o]));}else this._events.set(t,new Map([[n,new Set([o])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,Sn$1);});}removeHandler(e,t,n){let o=this._events.get(e);if(!o)return;let r=o.get(t);r&&(r.delete(n),r.size===0&&o.delete(t),o.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Sn$1)));}_delegateEventHandler=e=>{let t=A(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},ht$1={enterDuration:225,exitDuration:150},Ri$1=800,kn$1=Q$2({passive:true,capture:true}),Rn$1=["mousedown","touchstart"],Dn$1=["mouseup","mouseleave","touchend","touchcancel"],Di$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vf({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
26
+ overflow: hidden;
27
+ position: relative;
28
+ }
29
+ .mat-ripple:not(:empty) {
30
+ transform: translateZ(0);
31
+ }
32
+
33
+ .mat-ripple.mat-ripple-unbounded {
34
+ overflow: visible;
35
+ }
36
+
37
+ .mat-ripple-element {
38
+ position: absolute;
39
+ border-radius: 50%;
40
+ pointer-events: none;
41
+ transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
42
+ transform: scale3d(0, 0, 0);
43
+ background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent));
44
+ }
45
+ @media (forced-colors: active) {
46
+ .mat-ripple-element {
47
+ display: none;
48
+ }
49
+ }
50
+ .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
51
+ display: none;
52
+ }
53
+ `],encapsulation:2})}return i})(),pt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Se$2;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=L$3(n)),r&&r.get(I).load(Di$1);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},ht$1),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let s=n.radius||Oi$1(e,t,o),l=e-o.left,d=t-o.top,u=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=`${l-s}px`,c.style.top=`${d-s}px`,c.style.height=`${s*2}px`,c.style.width=`${s*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let h=window.getComputedStyle(c),E=h.transitionProperty,k=h.transitionDuration,x=E==="none"||k==="0s"||k==="0s, 0s"||o.width===0&&o.height===0,y=new Ce$3(this,c,n,x);c.style.transform="scale3d(1, 1, 1)",y.state=T.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !x&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Ne=()=>{V&&(V.fallbackTimer=null),clearTimeout(Le),this._finishRippleTransition(y);},Jt=()=>this._destroyRipple(y),Le=setTimeout(Jt,u+100);c.addEventListener("transitionend",Ne),c.addEventListener("transitioncancel",Jt),V={onTransitionEnd:Ne,onTransitionCancel:Jt,fallbackTimer:Le};}),this._activeRipples.set(y,V),(x||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T.FADING_OUT||e.state===T.HIDDEN)return;let t=e.element,n=w$1(w$1({},ht$1),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e);}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut());}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut();});}setupTriggerEvents(e){let t=L$3(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Rn$1.forEach(n=>{i._eventManager.addHandler(this._ngZone,n,t,this);}));}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Dn$1.forEach(t=>{this._triggerElement.addEventListener(t,this,kn$1);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T.FADING_IN?this._startFadeOutTransition(e):e.state===T.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut();}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=T.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove();}_onMousedown(e){let t=lt$1(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$1;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!ct$1(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=true;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig);}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=false,this._getActiveRipples().forEach(e=>{let t=e.state===T.VISIBLE||e.config.terminateOnPointerUp&&e.state===T.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Rn$1.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Dn$1.forEach(t=>e.removeEventListener(t,this,kn$1)),this._pointerUpEventsRegistered=false));}};function Oi$1(i,e,t){let n=Math.max(Math.abs(i-t.left),Math.abs(i-t.right)),o=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+o*o)}var ke$1=new D$1("mat-ripple-global-options"),ms=(()=>{class i{_elementRef=p(Ft$1);_animationsDisabled=et$1();color;unbounded=false;centered=false;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled();}_disabled=false;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled();}_trigger;_rippleRenderer;_globalOptions;_isInitialized=false;constructor(){let t=p(J$3),n=p(_$2),o=p(ke$1,{optional:true}),r=p(we$3);this._globalOptions=o||{},this._rippleRenderer=new pt$1(this,t,this._elementRef,n,r);}ngOnInit(){this._isInitialized=true,this._setupTriggerEventsIfEnabled();}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents();}fadeOutAll(){this._rippleRenderer.fadeOutAll();}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent();}get rippleConfig(){return {centered:this.centered,radius:this.radius,color:this.color,animation:w$1(w$1(w$1({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger);}launch(t,n=0,o){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,w$1(w$1({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,w$1(w$1({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&gv("mat-ripple-unbounded",o.unbounded);},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})();var Ai$1={capture:true},Mi$1=["focus","mousedown","mouseenter","touchstart"],Re$3="mat-ripple-loader-uninitialized",De$2="mat-ripple-loader-class-name",On$1="mat-ripple-loader-centered",jt="mat-ripple-loader-disabled",An$1=(()=>{class i{_document=p(Q$3);_animationsDisabled=et$1();_globalRippleOptions=p(ke$1,{optional:true});_platform=p(_$2);_ngZone=p(J$3);_injector=p(we$3);_eventCleanups;_hosts=new Map;constructor(){let t=p(hr).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Mi$1.map(n=>t.listen(this._document,n,this._onInteraction,Ai$1)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(Re$3,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(De$2))&&t.setAttribute(De$2,n.className||""),n.centered&&t.setAttribute(On$1,""),n.disabled&&t.setAttribute(jt,"");}setDisabled(t,n){let o=this._hosts.get(t);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=true,o.renderer.setupTriggerEvents(t))):n?t.setAttribute(jt,""):t.removeAttribute(jt);}_onInteraction=t=>{let n=A(t);if(n instanceof HTMLElement){let o=n.closest(`[${Re$3}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o);}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(De$2)),t.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??ht$1.enterDuration,s=this._animationsDisabled?0:o?.animation?.exitDuration??ht$1.exitDuration,l={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(jt),rippleConfig:{centered:t.hasAttribute(On$1),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:s}}},d=new pt$1(l,this._ngZone,n,this._platform,this._injector),u=!l.rippleDisabled;u&&d.setupTriggerEvents(t),this._hosts.set(t,{target:l,renderer:d,hasSetUpEvents:u}),t.removeAttribute(Re$3);}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Mn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vf({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator {
54
+ position: relative;
55
+ }
56
+ .mat-focus-indicator::before {
57
+ top: 0;
58
+ left: 0;
59
+ right: 0;
60
+ bottom: 0;
61
+ position: absolute;
62
+ box-sizing: border-box;
63
+ pointer-events: none;
64
+ display: var(--mat-focus-indicator-display, none);
65
+ border-width: var(--mat-focus-indicator-border-width, 3px);
66
+ border-style: var(--mat-focus-indicator-border-style, solid);
67
+ border-color: var(--mat-focus-indicator-border-color, transparent);
68
+ border-radius: var(--mat-focus-indicator-border-radius, 4px);
69
+ }
70
+ .mat-focus-indicator:focus-visible::before {
71
+ content: "";
72
+ }
73
+
74
+ @media (forced-colors: active) {
75
+ html {
76
+ --mat-focus-indicator-display: block;
77
+ --mat-focus-indicator-fallback-border-style: none;
78
+ }
79
+ }
80
+ `],encapsulation:2})}return i})();var Ii$1=["*",[["","progressIndicator",""]]],Ti$1=["*","[progressIndicator]"];function Pi$1(i,e){i&1&&(bf(0,"div",1),xT(1,1),Sf());}var Fi$1=new D$1("MAT_BUTTON_CONFIG");function In$1(i){return i==null?void 0:oM(i)}var Tn$1=(()=>{class i{_elementRef=p(Ft$1);_ngZone=p(J$3);_animationsDisabled=et$1();_config=p(Fi$1,{optional:true});_focusMonitor=p(_e);_cleanupClick;_renderer=p(co);_rippleLoader=p(An$1);_isAnchor;_isFab=false;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled();}_disableRipple=false;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled();}_disabled=false;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t;}showProgress=mc(false,{transform:Ri$2});constructor(){p(I).load(Mn$1);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??false,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,true),this._isAnchor&&this._setupAsAnchor();}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement);}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n);}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?true:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:true}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled);}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation());}));}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,o){n&2&&(uc("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),WT(o.color?"mat-"+o.color:""),gv("mat-mdc-button-progress-indicator-shown",o.showProgress())("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled));},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ri$2],disabled:[2,"disabled","disabled",Ri$2],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ri$2],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ri$2],tabIndex:[2,"tabIndex","tabIndex",In$1],_tabindex:[2,"tabindex","_tabindex",In$1],showProgress:[1,"showProgress"]}})}return i})(),Ni$1=(()=>{class i extends Tn$1{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vf({type:i,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Qy],ngContentSelectors:Ti$1,decls:5,vars:1,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(AT(Ii$1),nv(0,"span",0),xT(1),hT(2,Pi$1,2,0,"div",1),nv(3,"span",2)(4,"span",3)),n&2&&(yb(2),pT(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
81
+ -webkit-user-select: none;
82
+ user-select: none;
83
+ display: inline-block;
84
+ position: relative;
85
+ box-sizing: border-box;
86
+ border: none;
87
+ outline: none;
88
+ background-color: transparent;
89
+ fill: currentColor;
90
+ text-decoration: none;
91
+ cursor: pointer;
92
+ z-index: 0;
93
+ overflow: visible;
94
+ border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
95
+ flex-shrink: 0;
96
+ text-align: center;
97
+ width: var(--mat-icon-button-state-layer-size, 40px);
98
+ height: var(--mat-icon-button-state-layer-size, 40px);
99
+ padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);
100
+ font-size: var(--mat-icon-button-icon-size, 24px);
101
+ color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));
102
+ -webkit-tap-highlight-color: transparent;
103
+ }
104
+ .mat-mdc-icon-button .mat-mdc-button-ripple,
105
+ .mat-mdc-icon-button .mat-mdc-button-persistent-ripple,
106
+ .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
107
+ top: 0;
108
+ left: 0;
109
+ right: 0;
110
+ bottom: 0;
111
+ position: absolute;
112
+ pointer-events: none;
113
+ border-radius: inherit;
114
+ }
115
+ .mat-mdc-icon-button .mat-mdc-button-ripple {
116
+ overflow: hidden;
117
+ }
118
+ .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
119
+ content: "";
120
+ opacity: 0;
121
+ }
122
+ .mat-mdc-icon-button .mdc-button__label,
123
+ .mat-mdc-icon-button .mat-icon {
124
+ z-index: 1;
125
+ position: relative;
126
+ }
127
+ .mat-mdc-icon-button .mat-focus-indicator {
128
+ top: 0;
129
+ left: 0;
130
+ right: 0;
131
+ bottom: 0;
132
+ position: absolute;
133
+ border-radius: inherit;
134
+ }
135
+ .mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before {
136
+ content: "";
137
+ border-radius: inherit;
138
+ }
139
+ .mat-mdc-icon-button .mat-ripple-element {
140
+ background-color: var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
141
+ }
142
+ .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
143
+ background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant));
144
+ }
145
+ .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
146
+ background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
147
+ }
148
+ .mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before {
149
+ opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
150
+ }
151
+ .mat-mdc-icon-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
152
+ opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
153
+ }
154
+ .mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before {
155
+ opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
156
+ }
157
+ .mat-mdc-icon-button .mat-mdc-button-touch-target {
158
+ position: absolute;
159
+ top: 50%;
160
+ height: var(--mat-icon-button-touch-target-size, 48px);
161
+ display: var(--mat-icon-button-touch-target-display, block);
162
+ left: 50%;
163
+ width: var(--mat-icon-button-touch-target-size, 48px);
164
+ transform: translate(-50%, -50%);
165
+ }
166
+ .mat-mdc-icon-button._mat-animation-noopable {
167
+ transition: none !important;
168
+ animation: none !important;
169
+ }
170
+ .mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled {
171
+ cursor: default;
172
+ pointer-events: none;
173
+ color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
174
+ }
175
+ .mat-mdc-icon-button.mat-mdc-button-disabled-interactive {
176
+ pointer-events: auto;
177
+ }
178
+ .mat-mdc-icon-button img,
179
+ .mat-mdc-icon-button svg {
180
+ width: var(--mat-icon-button-icon-size, 24px);
181
+ height: var(--mat-icon-button-icon-size, 24px);
182
+ vertical-align: baseline;
183
+ }
184
+ .mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic {
185
+ width: inherit;
186
+ height: inherit;
187
+ }
188
+ .mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic {
189
+ height: 100%;
190
+ }
191
+ .mat-mdc-icon-button .mat-mdc-button-persistent-ripple {
192
+ border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
193
+ }
194
+ .mat-mdc-icon-button[hidden] {
195
+ display: none;
196
+ }
197
+ .mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before, .mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before {
198
+ background: transparent;
199
+ opacity: 1;
200
+ }
201
+
202
+ .mat-mdc-button-progress-indicator-container {
203
+ position: absolute;
204
+ inset-inline-start: 0;
205
+ inset-block-start: 0;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ width: 100%;
210
+ height: 100%;
211
+ box-sizing: border-box;
212
+ }
213
+
214
+ .mat-mdc-button-progress-indicator-shown mat-icon {
215
+ visibility: hidden;
216
+ }
217
+ `,`@media (forced-colors: active) {
218
+ .mat-mdc-button:not(.mdc-button--outlined),
219
+ .mat-mdc-unelevated-button:not(.mdc-button--outlined),
220
+ .mat-mdc-raised-button:not(.mdc-button--outlined),
221
+ .mat-mdc-outlined-button:not(.mdc-button--outlined),
222
+ .mat-mdc-button-base.mat-tonal-button,
223
+ .mat-mdc-icon-button.mat-mdc-icon-button,
224
+ .mat-mdc-outlined-button .mdc-button__ripple {
225
+ outline: solid 1px;
226
+ }
227
+ }
228
+ `],encapsulation:2})}return i})();var Li$1=new D$1("cdk-dir-doc",{providedIn:"root",factory:()=>p(Q$3)}),Bi$1=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Pn$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Bi$1.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var ft$1=(()=>{class i{get value(){return this.valueSignal()}valueSignal=ie$1("ltr");change=new be$4;constructor(){let t=p(Li$1,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Pn$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var U$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var zs=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$1]})}return i})();var Vi$1=20,bt$1=(()=>{class i{_ngZone=p(J$3);_platform=p(_$2);_renderer=p(hr).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ne$1;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=Vi$1){return this._platform.isBrowser?new k$1(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(Ew(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):_$3()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete();}ancestorScrolled(t,n){let o=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Ce$4(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((o,r)=>{this._targetContainsElement(r,t)&&n.push(r);}),n}_targetContainsElement(t,n){let o=L$3(n),r=t.getElementRef().nativeElement;do if(o==r)return true;while(o=o.parentElement);return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ji$1=(()=>{class i{elementRef=p(Ft$1);scrollDispatcher=p(bt$1);ngZone=p(J$3);dir=p(ft$1,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new ne$1;_renderer=p(co);_cleanupScroll;_elementScrolled=new ne$1;ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this);}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete();}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),o&&tt$1()!=N$1.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),tt$1()==N$1.INVERTED?t.left=t.right:tt$1()==N$1.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t);}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;Vt()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left));}measureScrollOffset(t){let n="left",o="right",r=this.elementRef.nativeElement;if(t=="top")return r.scrollTop;if(t=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?o:n:t=="end"&&(t=s?n:o),s&&tt$1()==N$1.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:s&&tt$1()==N$1.NEGATED?t==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:t==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||i)};static \u0275dir=kn$2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),Hi$1=20,nt$1=(()=>{class i{_platform=p(_$2);_listeners;_viewportSize=null;_change=new ne$1;_document=p(Q$3);constructor(){let t=p(J$3),n=p(hr).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+o,right:t.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,n=this._getWindow(),o=t.documentElement,r=o.getBoundingClientRect(),s=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:s,left:l}}change(t=Hi$1){return t>0?this._change.pipe(Ew(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Oe$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})(),Ae$3=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({imports:[U$1,Oe$2,U$1,Oe$2]})}return i})();var _t$1=class _t{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},Me$3=class Me extends _t$1{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,s){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=s||null;}},Ht=class extends _t$1{templateRef;viewContainerRef;context;injector;constructor(e,t,n,o){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=o;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Ie$3=class Ie extends _t$1{element;constructor(e){super(),this.element=e instanceof Ft$1?e.nativeElement:e;}},Ut=class{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Me$3)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ht)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Ie$3)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},Wt=class extends Ut{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n;}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,o=n.get(gr,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let n=this._appRef,o=e.injector||this._defaultInjector||we$3.NULL,r=o.get(ee$2,n.injector);t=F$(e.component,{elementInjector:o,environmentInjector:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(n);o!==-1&&t.remove(o);}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var ka=(()=>{class i extends Ut{_moduleRef=p(gr,{optional:true});_document=p(Q$3);_viewContainerRef=p(On$2);_isInitialized=false;_attachedRef=null;get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null);}attached=new be$4;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=true;}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null;}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:t.bindings||void 0,directives:t.directives||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o);});};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=(()=>{let t;return function(o){return (t||(t=Mm(i)))(o||i)}})();static \u0275dir=kn$2({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Qy]})}return i})(),Nn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({})}return i})();var Ln$1=Vt();function Wn$1(i){return new Yt(i.get(nt$1),i.get(Q$3))}var Yt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=g$1(-this._previousScrollPosition.left),e.style.top=g$1(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,o=t.style,r=n.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),Ln$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ln$1&&(n.scrollBehavior=r,o.scrollBehavior=s);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function Yn$1(i,e){return new Xt$1(i.get(bt$1),i.get(J$3),i.get(nt$1),e)}var Xt$1=class Xt{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,o){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Ce$4(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var gt$1=class gt{enable(){}disable(){}attach(){}};function Te$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,s=i.left>t.right;return n||o||r||s})}function Bn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,s=i.right>t.right;return n||o||r||s})}function Xn$1(i,e){return new Kt(i.get(bt$1),i.get(nt$1),i.get(J$3),e)}var Kt=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,o){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=o;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();Te$2(t,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},Kn$1=(()=>{class i{_injector=p(we$3);noop=()=>new gt$1;close=t=>Yn$1(this._injector,t);block=()=>Wn$1(this._injector);reposition=t=>Xn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Zt$1=class Zt{positionStrategy;scrollStrategy=new gt$1;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n]);}}};var Gt=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Zn$1=(()=>{class i{_attachedOverlays=[];_document=p(Q$3);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,n,o){return o.observers.length<1?false:t.eventPredicate?t.eventPredicate(n):true}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Gn$1=(()=>{class i extends Zn$1{_ngZone=p(J$3);_renderer=p(hr).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--){let r=n[o];if(this.canReceiveEvent(r,t,r._keydownEvents)){this._ngZone.run(()=>r._keydownEvents.next(t));break}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),$n$1=(()=>{class i extends Zn$1{_platform=p(_$2);_ngZone=p(J$3);_renderer=p(hr).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,o={capture:true},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=A(t);};_clickListener=t=>{let n=A(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let s=r.length-1;s>-1;s--){let l=r[s],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(zn$1(l.overlayElement,n)||zn$1(l.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>d.next(t)):d.next(t);}}};static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();function zn$1(i,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===i)return true;n=t&&n instanceof ShadowRoot?n.host:n.parentNode;}return false}var qn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=vf({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
229
+ pointer-events: none;
230
+ top: 0;
231
+ left: 0;
232
+ height: 100%;
233
+ width: 100%;
234
+ }
235
+
236
+ .cdk-overlay-container {
237
+ position: fixed;
238
+ }
239
+ @layer cdk-overlay {
240
+ .cdk-overlay-container {
241
+ z-index: 1000;
242
+ }
243
+ }
244
+ .cdk-overlay-container:empty {
245
+ display: none;
246
+ }
247
+
248
+ .cdk-global-overlay-wrapper {
249
+ display: flex;
250
+ position: absolute;
251
+ }
252
+ @layer cdk-overlay {
253
+ .cdk-global-overlay-wrapper {
254
+ z-index: 1000;
255
+ }
256
+ }
257
+
258
+ .cdk-overlay-pane {
259
+ position: absolute;
260
+ pointer-events: auto;
261
+ box-sizing: border-box;
262
+ display: flex;
263
+ max-width: 100%;
264
+ max-height: 100%;
265
+ }
266
+ @layer cdk-overlay {
267
+ .cdk-overlay-pane {
268
+ z-index: 1000;
269
+ }
270
+ }
271
+
272
+ .cdk-overlay-backdrop {
273
+ position: absolute;
274
+ top: 0;
275
+ bottom: 0;
276
+ left: 0;
277
+ right: 0;
278
+ pointer-events: auto;
279
+ -webkit-tap-highlight-color: transparent;
280
+ opacity: 0;
281
+ touch-action: manipulation;
282
+ }
283
+ @layer cdk-overlay {
284
+ .cdk-overlay-backdrop {
285
+ z-index: 1000;
286
+ transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
287
+ }
288
+ }
289
+ @media (prefers-reduced-motion) {
290
+ .cdk-overlay-backdrop {
291
+ transition-duration: 1ms;
292
+ }
293
+ }
294
+
295
+ .cdk-overlay-backdrop-showing {
296
+ opacity: 1;
297
+ }
298
+ @media (forced-colors: active) {
299
+ .cdk-overlay-backdrop-showing {
300
+ opacity: 0.6;
301
+ }
302
+ }
303
+
304
+ @layer cdk-overlay {
305
+ .cdk-overlay-dark-backdrop {
306
+ background: rgba(0, 0, 0, 0.32);
307
+ }
308
+ }
309
+
310
+ .cdk-overlay-transparent-backdrop {
311
+ transition: visibility 1ms linear, opacity 1ms linear;
312
+ visibility: hidden;
313
+ opacity: 1;
314
+ }
315
+ .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
316
+ opacity: 0;
317
+ visibility: visible;
318
+ }
319
+
320
+ .cdk-overlay-backdrop-noop-animation {
321
+ transition: none;
322
+ }
323
+
324
+ .cdk-overlay-connected-position-bounding-box {
325
+ position: absolute;
326
+ display: flex;
327
+ flex-direction: column;
328
+ min-width: 1px;
329
+ min-height: 1px;
330
+ }
331
+ @layer cdk-overlay {
332
+ .cdk-overlay-connected-position-bounding-box {
333
+ z-index: 1000;
334
+ }
335
+ }
336
+
337
+ .cdk-global-scrollblock {
338
+ position: fixed;
339
+ width: 100%;
340
+ overflow-y: scroll;
341
+ }
342
+
343
+ .cdk-overlay-popover {
344
+ background: none;
345
+ border: none;
346
+ padding: 0;
347
+ outline: 0;
348
+ overflow: visible;
349
+ position: fixed;
350
+ pointer-events: none;
351
+ white-space: normal;
352
+ color: inherit;
353
+ text-decoration: none;
354
+ width: 100%;
355
+ height: 100%;
356
+ inset: auto;
357
+ top: 0;
358
+ left: 0;
359
+ }
360
+ .cdk-overlay-popover::backdrop {
361
+ display: none;
362
+ }
363
+ .cdk-overlay-popover .cdk-overlay-backdrop {
364
+ position: fixed;
365
+ z-index: auto;
366
+ }
367
+ `],encapsulation:2})}return i})(),Qn$1=(()=>{class i{_platform=p(_$2);_containerElement;_document=p(Q$3);_styleLoader=p(I);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Ee$3()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let r=0;r<o.length;r++)o[r].remove();}let n=this._document.createElement("div");n.classList.add(t),Ee$3()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(qn);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),Pe$2=class Pe{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,o){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function Fe$2(i){return i&&i.nodeType===1}var $t=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ne$1;_attachments=new ne$1;_detachments=new ne$1;_positionStrategy;_scrollStrategy;_locationChanges=ae$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ne$1;_outsidePointerEvents=new ne$1;_afterNextRenderRef;constructor(e,t,n,o,r,s,l,d,u,c=false,h,E){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=s,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=h,this._renderer=E,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ja(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=w$1(w$1({},this._config),e),this._updateElementSize();}setDirection(e){this._config=x$2(w$1({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=g$1(this._config.width),e.height=g$1(this._config.height),e.minWidth=g$1(this._config.minWidth),e.minHeight=g$1(this._config.minHeight),e.maxWidth=g$1(this._config.maxWidth),e.maxHeight=g$1(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Fe$2(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch(e){}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Pe$2(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,n){let o=J$2(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Ja(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},Vn$1="cdk-overlay-connected-position-bounding-box",Ui$1=/([A-Za-z%]+)$/;function Jn$1(i,e){return new qt(e,i.get(nt$1),i.get(Q$3),i.get(_$2),i.get(Qn$1))}var qt=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new ne$1;_resizeSubscription=ae$2.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,o,r){this._viewportRuler=t,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(Vn$1),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],s;for(let l of this._preferredPositions){let d=this._getOriginPoint(e,o,l),u=this._getOverlayPoint(d,t,l),c=this._getOverlayFit(u,t,n,l);if(c.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(l,d);return}if(this._canFitWithFlexibleDimensions(c,u,n)){r.push({position:l,origin:d,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(d,l)});continue}(!s||s.overlayFit.visibleArea<c.visibleArea)&&(s={overlayFit:c,overlayPoint:u,originPoint:d,position:l,overlayRect:t});}if(r.length){let l=null,d=-1;for(let u of r){let c=u.boundingBoxRect.width*u.boundingBoxRect.height*(u.position.weight||1);c>d&&(d=c,l=u);}this._isPushed=false,this._applyPosition(l.position,l.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&W$2(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Vn$1),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof Ft$1?this._origin.nativeElement:Fe$2(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let s=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?s:l;}t.left<0&&(o-=t.left);let r;return n.originY=="center"?r=e.top+e.height/2:r=n.originY=="top"?e.top:e.bottom,t.top<0&&(r-=t.top),{x:o,y:r}}_getOverlayPoint(e,t,n){let o;n.overlayX=="center"?o=-t.width/2:n.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let r;return n.overlayY=="center"?r=-t.height/2:r=n.overlayY=="top"?0:-t.height,{x:e.x+o,y:e.y+r}}_getOverlayFit(e,t,n,o){let r=Hn$1(t),{x:s,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(s+=d),u&&(l+=u);let c=0-s,h=s+r.width-n.width,E=0-l,k=l+r.height-n.height,x=this._subtractOverflows(r.width,c,h),y=this._subtractOverflows(r.height,E,k),V=x*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:x==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,s=jn$1(this._overlayRef.getConfig().minHeight),l=jn$1(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||s!=null&&s<=o,u=e.fitsInViewportHorizontally||l!=null&&l<=r;return d&&u}return false}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let o=Hn$1(t),r=this._viewportRect,s=Math.max(e.x+o.width-r.width,0),l=Math.max(e.y+o.height-r.height,0),d=Math.max(r.top-n.top-e.y,0),u=Math.max(r.left-n.left-e.x,0),c=0,h=0;return o.width<=r.width?c=u||-s:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?h=d||-l:h=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:h},{x:e.x+c,y:e.y+h}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!Wi$1(this._lastScrollVisibility,n)){let o=new Gt(e,n);this._positionChanges.next(o);}this._lastScrollVisibility=n;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,o=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let r=0;r<t.length;r++)t[r].style.transformOrigin=`${n} ${o}`;}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,o=this._isRtl(),r,s,l;if(t.overlayY==="top")s=e.y,r=n.height-s+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let k=Math.min(n.bottom-e.y+n.top,e.y),x=this._lastBoundingBoxSize.height;r=k*2,s=e.y-k,r>x&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-x/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,h,E;if(u)E=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)h=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let k=Math.min(n.right-e.x+n.left,e.x),x=this._lastBoundingBoxSize.width;c=k*2,h=e.x-k,c>x&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.x-x/2);}return {top:s,left:h,bottom:l,right:E,width:c,height:r}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else {let r=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.width=g$1(n.width),o.height=g$1(n.height),o.top=g$1(n.top)||"auto",o.bottom=g$1(n.bottom)||"auto",o.left=g$1(n.left)||"auto",o.right=g$1(n.right)||"auto",t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=g$1(r)),s&&(o.maxWidth=g$1(s));}this._lastBoundingBoxSize=n,W$2(this._boundingBox.style,o);}_resetBoundingBoxStyles(){W$2(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){W$2(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();W$2(n,this._getExactOverlayY(t,e,c)),W$2(n,this._getExactOverlayX(t,e,c));}else n.position="static";let l="",d=this._getOffset(t,"x"),u=this._getOffset(t,"y");d&&(l+=`translateX(${d}px) `),u&&(l+=`translateY(${u}px)`),n.transform=l.trim(),s.maxHeight&&(o?n.maxHeight=g$1(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(o?n.maxWidth=g$1(s.maxWidth):r&&(n.maxWidth="")),W$2(this._pane.style,n);}_getExactOverlayY(e,t,n){let o={top:"",bottom:""},r=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(r.y+this._overlayRect.height)}px`;}else o.top=g$1(r.y);return o}_getExactOverlayX(e,t,n){let o={left:"",right:""},r=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=g$1(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:Bn$1(e,n),isOriginOutsideView:Te$2(e,n),isOverlayClipped:Bn$1(t,n),isOverlayOutsideView:Te$2(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,o)=>n-Math.max(o,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return {top:n.top+this._getViewportMarginTop(),left:n.left+this._getViewportMarginStart(),right:n.left+e-this._getViewportMarginEnd(),bottom:n.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&J$2(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof Ft$1)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return {top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let n=t.getBoundingClientRect();return e&&(t.style.display=""),n}};function W$2(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function jn$1(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(Ui$1);return !t||t==="px"?parseFloat(e):null}return i||null}function Hn$1(i){return {top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function Wi$1(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var Un$1="cdk-global-overlay-wrapper";function ti$1(i){return new Qt}var Qt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Un$1),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:s,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,h=this._xOffset,E=this._overlayRef.getConfig().direction==="rtl",k="",x="",y="";d?y="flex-start":c==="center"?(y="center",E?x=h:k=h):E?c==="left"||c==="end"?(y="flex-end",k=h):(c==="right"||c==="start")&&(y="flex-start",x=h):c==="left"||c==="start"?(y="flex-start",k=h):(c==="right"||c==="end")&&(y="flex-end",x=h),e.position=this._cssPosition,e.marginLeft=d?"0":k,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":x,t.justifyContent=y,t.alignItems=u?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(Un$1),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},ei=(()=>{class i{_injector=p(we$3);global(){return ti$1()}flexibleConnectedTo(t){return Jn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})(),ni$1=new D$1("OVERLAY_DEFAULT_CONFIG");function ii$1(i,e){i.get(I).load(qn);let t=i.get(Qn$1),n=i.get(Q$3),o=i.get(mt$1),r=i.get(sn$2),s=i.get(ft$1),l=i.get(co,null,{optional:true})||i.get(hr).createRenderer(null,null),d=new Zt$1(e),u=i.get(ni$1,null,{optional:true})?.usePopover??true;d.direction=d.direction||s.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),h=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),h.appendChild(c),d.usePopover&&(h.setAttribute("popover","manual"),h.classList.add("cdk-overlay-popover"));let E=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return Fe$2(E)?E.after(h):E?.type==="parent"?E.element.appendChild(h):t.getContainerElement().appendChild(h),new $t(new Wt(c,r,i),h,c,d,i.get(J$3),i.get(Gn$1),n,i.get(Pn$2),i.get($n$1),e?.disableAnimations??i.get(gI,null,{optional:true})==="NoopAnimations",i.get(ee$2),l)}var oi$1=(()=>{class i{scrollStrategies=p(Kn$1);_positionBuilder=p(ei);_injector=p(we$3);create(t){return ii$1(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Z$2({token:i,factory:i.\u0275fac})}return i})();var Yi$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=lo({type:i});static \u0275inj=tr({providers:[oi$1],imports:[U$1,Nn$1,Ae$3,Ae$3]})}return i})();function Se$1(n,a){}var g=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;scrollStrategy;closeOnNavigation=true;closeOnDestroy=true;closeOnOverlayDetachments=true;disableAnimations=false;providers;container;templateContext;bindings};var H=(()=>{class n extends Ut{_elementRef=p(Ft$1);_focusTrapFactory=p(yi$1);_config;_interactivityChecker=p(bn$1);_ngZone=p(J$3);_focusMonitor=p(_e);_renderer=p(co);_changeDetectorRef=p(Er);_injector=p(we$3);_platform=p(_$2);_document=p(Q$3);_portalOutlet;_focusTrapped=new ne$1;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=p(g,{optional:true})||new g,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{o(),l(),e.removeAttribute("tabindex");},o=this._renderer.listen(e,"blur",i),l=this._renderer.listen(e,"mousedown",i);})),e.focus(t);}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t);}_trapFocus(e){this._isDestroyed||Ja(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||t.focus(e);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let i=ri$1(),o=this._elementRef.nativeElement;(!i||i===this._document.body||i===o||o.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e);}_containsFocus(){let e=this._elementRef.nativeElement,t=ri$1();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ri$1()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=vf({type:n,selectors:[["cdk-dialog-container"]],viewQuery:function(t,i){if(t&1&&uv(ka,7),t&2){let o;Mf(o=Nf())&&(i._portalOutlet=o.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,i){t&2&&uc("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null);},features:[Qy],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,i){t&1&&Jy(0,Se$1,0,0,"ng-template",0);},dependencies:[ka],styles:[`.cdk-dialog-container {
368
+ display: block;
369
+ width: 100%;
370
+ height: 100%;
371
+ min-height: inherit;
372
+ max-height: inherit;
373
+ }
374
+ `],encapsulation:2,changeDetection:1})}return n})(),y$1=class y{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new ne$1;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(a,e){this.overlayRef=a,this.config=e,this.disableClose=e.disableClose,this.backdropClick=a.backdropClick(),this.keydownEvents=a.keydownEvents(),this.outsidePointerEvents=a.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!vn$1(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}));}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.();}),this._detachSubscription=a.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==false&&this.close();});}close(a,e){if(this._canClose(a)){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(a),t.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(a="",e=""){return this.overlayRef.updateSize({width:a,height:e}),this}addPanelClass(a){return this.overlayRef.addPanelClass(a),this}removePanelClass(a){return this.overlayRef.removePanelClass(a),this}_canClose(a){let e=this.config;return !!this.containerInstance&&(!e.closePredicate||e.closePredicate(a,e,this.componentInstance))}},Ie$2=new D$1("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=p(we$3);return ()=>Wn$1(n)}}),Ee$2=new D$1("DialogData"),Fe$1=new D$1("DefaultDialogConfig");function Le$1(n){let a=ie$1(n),e=new be$4;return {valueSignal:a,get value(){return a()},change:e,ngOnDestroy(){e.complete();}}}var be$2=(()=>{class n{_injector=p(we$3);_defaultOptions=p(Fe$1,{optional:true});_parentDialog=p(n,{optional:true,skipSelf:true});_overlayContainer=p(Qn$1);_idGenerator=p(mt$1);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;_ariaHiddenElements=new Map;_scrollStrategy=p(Ie$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Os(void 0)));open(e,t){let i=this._defaultOptions||new g;t=w$1(w$1({},i),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let o=this._getOverlayConfig(t),l=ii$1(this._injector,o),s=new y$1(l,t),d=this._attachContainer(l,s,t);if(s.containerInstance=d,!this.openDialogs.length){let R=this._overlayContainer.getContainerElement();d._focusTrapped?d._focusTrapped.pipe(Ve$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(R);}):this._hideNonDialogContentFromAssistiveTechnology(R);}return this._attachDialogContent(e,s,d,t),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,true)),this.afterOpened.next(s),s}closeAll(){z$2(this.openDialogs,e=>e.close());}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){z$2(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===false&&this._removeOpenDialog(e,false);}),z$2(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(e){let t=new Zt$1({positionStrategy:e.positionStrategy||ti$1().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,i){let o=i.injector||i.viewContainerRef?.injector,l=[{provide:g,useValue:i},{provide:y$1,useValue:t},{provide:$t,useValue:e}],s;i.container?typeof i.container=="function"?s=i.container:(s=i.container.type,l.push(...i.container.providers(i))):s=H;let d=new Me$3(s,i.viewContainerRef,we$3.create({parent:o||this._injector,providers:l}));return e.attach(d).instance}_attachDialogContent(e,t,i,o){if(e instanceof ro){let l=this._createInjector(o,t,i,void 0),s={$implicit:o.data,dialogRef:t};o.templateContext&&(s=w$1(w$1({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),i.attachTemplatePortal(new Ht(e,null,s,l));}else {let l=this._createInjector(o,t,i,this._injector),s=i.attachComponentPortal(new Me$3(e,o.viewContainerRef,l,null,o.bindings));t.componentRef=s,t.componentInstance=s.instance;}}_createInjector(e,t,i,o){let l=e.injector||e.viewContainerRef?.injector,s=[{provide:Ee$2,useValue:e.data},{provide:y$1,useValue:t}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(t,e,i)):s.push(...e.providers)),e.direction&&(!l||!l.get(ft$1,null,{optional:true}))&&s.push({provide:ft$1,useValue:Le$1(e.direction)}),we$3.create({parent:l||o,providers:s})}_removeOpenDialog(e,t){let i=this.openDialogs.indexOf(e);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let i=t.length-1;i>-1;i--){let o=t[i];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&!o.hasAttribute("popover")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();function z$2(n,a){let e=n.length;for(;e--;)a(n[e]);}function Re$2(n,a){}var L$2=class L{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=true;backdropClass="";disableClose=false;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=false;autoFocus="first-tabbable";restoreFocus=true;delayFocusTrap=true;scrollStrategy;closeOnNavigation=true;enterAnimationDuration;exitAnimationDuration;bindings},G$1="mdc-dialog--open",ve$1="mdc-dialog--opening",De$1="mdc-dialog--closing",Pe$1=150,Me$2=75,Be$2=(()=>{class n extends H{_animationStateChanged=new be$4;_animationsEnabled=!et$1();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ae$2(this._config.enterAnimationDuration)??Pe$1:0;_exitAnimationDuration=this._animationsEnabled?Ae$2(this._config.exitAnimationDuration)??Me$2:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ve$1,G$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(G$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(G$1),this._animationsEnabled?(this._hostElement.style.setProperty(Ce$2,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(De$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck();}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration);};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration});};_clearAnimationClasses(){this._hostElement.classList.remove(ve$1,De$1);}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e);}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(i){return (e||(e=Mm(n)))(i||n)}})();static \u0275cmp=vf({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,i){t&2&&(iv("id",i._config.id),uc("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),gv("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0));},features:[Qy],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,i){t&1&&(za(0,"div",0)(1,"div",1),Jy(2,Re$2,0,0,"ng-template",2),Cf()());},dependencies:[ka],styles:[`.mat-mdc-dialog-container {
375
+ width: 100%;
376
+ height: 100%;
377
+ display: block;
378
+ box-sizing: border-box;
379
+ max-height: inherit;
380
+ min-height: inherit;
381
+ min-width: inherit;
382
+ max-width: inherit;
383
+ outline: 0;
384
+ }
385
+
386
+ .cdk-overlay-pane.mat-mdc-dialog-panel {
387
+ max-width: var(--mat-dialog-container-max-width, 560px);
388
+ min-width: var(--mat-dialog-container-min-width, 280px);
389
+ }
390
+ @media (max-width: 599px) {
391
+ .cdk-overlay-pane.mat-mdc-dialog-panel {
392
+ max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px));
393
+ }
394
+ }
395
+
396
+ .mat-mdc-dialog-inner-container {
397
+ display: flex;
398
+ flex-direction: row;
399
+ align-items: center;
400
+ justify-content: space-around;
401
+ box-sizing: border-box;
402
+ height: 100%;
403
+ opacity: 0;
404
+ transition: opacity linear var(--mat-dialog-transition-duration, 0ms);
405
+ max-height: inherit;
406
+ min-height: inherit;
407
+ min-width: inherit;
408
+ max-width: inherit;
409
+ }
410
+ .mdc-dialog--closing .mat-mdc-dialog-inner-container {
411
+ transition: opacity 75ms linear;
412
+ transform: none;
413
+ }
414
+ .mdc-dialog--open .mat-mdc-dialog-inner-container {
415
+ opacity: 1;
416
+ }
417
+ ._mat-animation-noopable .mat-mdc-dialog-inner-container {
418
+ transition: none;
419
+ }
420
+
421
+ .mat-mdc-dialog-surface {
422
+ display: flex;
423
+ flex-direction: column;
424
+ flex-grow: 0;
425
+ flex-shrink: 0;
426
+ box-sizing: border-box;
427
+ width: 100%;
428
+ height: 100%;
429
+ position: relative;
430
+ overflow-y: auto;
431
+ outline: 0;
432
+ transform: scale(0.8);
433
+ transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);
434
+ max-height: inherit;
435
+ min-height: inherit;
436
+ min-width: inherit;
437
+ max-width: inherit;
438
+ box-shadow: var(--mat-dialog-container-elevation-shadow, none);
439
+ border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));
440
+ background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white));
441
+ }
442
+ [dir=rtl] .mat-mdc-dialog-surface {
443
+ text-align: right;
444
+ }
445
+ .mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface {
446
+ transform: none;
447
+ }
448
+ ._mat-animation-noopable .mat-mdc-dialog-surface {
449
+ transition: none;
450
+ }
451
+ .mat-mdc-dialog-surface::before {
452
+ position: absolute;
453
+ box-sizing: border-box;
454
+ width: 100%;
455
+ height: 100%;
456
+ top: 0;
457
+ left: 0;
458
+ border: 2px solid transparent;
459
+ border-radius: inherit;
460
+ content: "";
461
+ pointer-events: none;
462
+ }
463
+
464
+ .mat-mdc-dialog-title {
465
+ display: block;
466
+ position: relative;
467
+ flex-shrink: 0;
468
+ box-sizing: border-box;
469
+ margin: 0 0 1px;
470
+ padding: var(--mat-dialog-headline-padding, 6px 24px 13px);
471
+ }
472
+ .mat-mdc-dialog-title::before {
473
+ display: inline-block;
474
+ width: 0;
475
+ height: 40px;
476
+ content: "";
477
+ vertical-align: 0;
478
+ }
479
+ [dir=rtl] .mat-mdc-dialog-title {
480
+ text-align: right;
481
+ }
482
+ .mat-mdc-dialog-container .mat-mdc-dialog-title {
483
+ color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
484
+ font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));
485
+ line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));
486
+ font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));
487
+ font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));
488
+ letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em));
489
+ }
490
+
491
+ .mat-mdc-dialog-content {
492
+ display: block;
493
+ flex-grow: 1;
494
+ box-sizing: border-box;
495
+ margin: 0;
496
+ overflow: auto;
497
+ max-height: 65vh;
498
+ }
499
+ .mat-mdc-dialog-content > :first-child {
500
+ margin-top: 0;
501
+ }
502
+ .mat-mdc-dialog-content > :last-child {
503
+ margin-bottom: 0;
504
+ }
505
+ .mat-mdc-dialog-container .mat-mdc-dialog-content {
506
+ color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
507
+ font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));
508
+ line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));
509
+ font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));
510
+ font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));
511
+ letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em));
512
+ }
513
+ .mat-mdc-dialog-container .mat-mdc-dialog-content {
514
+ padding: var(--mat-dialog-content-padding, 20px 24px);
515
+ }
516
+ .mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
517
+ padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0);
518
+ }
519
+ .mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content {
520
+ padding-top: 0;
521
+ }
522
+
523
+ .mat-mdc-dialog-actions {
524
+ display: flex;
525
+ position: relative;
526
+ flex-shrink: 0;
527
+ flex-wrap: wrap;
528
+ align-items: center;
529
+ box-sizing: border-box;
530
+ min-height: 52px;
531
+ margin: 0;
532
+ border-top: 1px solid transparent;
533
+ padding: var(--mat-dialog-actions-padding, 16px 24px);
534
+ justify-content: var(--mat-dialog-actions-alignment, flex-end);
535
+ }
536
+ @media (forced-colors: active) {
537
+ .mat-mdc-dialog-actions {
538
+ border-top-color: CanvasText;
539
+ }
540
+ }
541
+ .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] {
542
+ justify-content: start;
543
+ }
544
+ .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] {
545
+ justify-content: center;
546
+ }
547
+ .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] {
548
+ justify-content: flex-end;
549
+ }
550
+ .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
551
+ .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
552
+ margin-left: 8px;
553
+ }
554
+ [dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
555
+ [dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
556
+ margin-left: 0;
557
+ margin-right: 8px;
558
+ }
559
+
560
+ .mat-mdc-dialog-component-host {
561
+ display: contents;
562
+ }
563
+ `],encapsulation:2,changeDetection:1})}return n})(),Ce$2="--mat-dialog-transition-duration";function Ae$2(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?en$1(n.substring(0,n.length-2)):n.endsWith("s")?en$1(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var F$2=(function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n})(F$2||{}),W$1=class W{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new xo(1);_beforeClosed=new xo(1);_result;_closeFallbackTimeout;_state=F$2.OPEN;_closeInteractionType;constructor(a,e,t){this._ref=a,this._config=e,this._containerInstance=t,this.disableClose=e.disableClose,this.id=a.id,a.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(Ce$4(i=>i.state==="opened"),Ve$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),t._animationStateChanged.pipe(Ce$4(i=>i.state==="closed"),Ve$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),a.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),Dw(this.backdropClick(),this.keydownEvents().pipe(Ce$4(i=>i.keyCode===27&&!this.disableClose&&!vn$1(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),je(this,i.type==="keydown"?"keyboard":"mouse"));});}close(a){let e=this._config.closePredicate;e&&!e(a,this._config,this.componentInstance)||(this._result=a,this._containerInstance._animationStateChanged.pipe(Ce$4(t=>t.state==="closing"),Ve$2(1)).subscribe(t=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),t.totalTime+100);}),this._state=F$2.CLOSING,this._containerInstance._startExitAnimation());}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(a){let e=this._ref.config.positionStrategy;return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(a="",e=""){return this._ref.updateSize(a,e),this}addPanelClass(a){return this._ref.addPanelClass(a),this}removePanelClass(a){return this._ref.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=F$2.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function je(n,a,e){return n._closeInteractionType=a,n.close(e)}var Ne$2=new D$1("MatMdcDialogData"),Ve$1=new D$1("mat-mdc-dialog-default-options"),ze$1=new D$1("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=p(we$3);return ()=>Wn$1(n)}}),Et$1=(()=>{class n{_defaultOptions=p(Ve$1,{optional:true});_scrollStrategy=p(ze$1);_parentDialog=p(n,{optional:true,skipSelf:true});_idGenerator=p(mt$1);_injector=p(we$3);_dialog=p(be$2);_animationsDisabled=et$1();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new ne$1;_afterOpenedAtThisLevel=new ne$1;dialogConfigClass=L$2;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oo(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Os(void 0)));constructor(){this._dialogRefConstructor=W$1,this._dialogContainerType=Be$2,this._dialogDataToken=Ne$2;}open(e,t){let i;t=w$1(w$1({},this._defaultOptions||new L$2),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,x$2(w$1({},t),{positionStrategy:ti$1(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||t.enterAnimationDuration?.toLocaleString()==="0"||t.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:g,useValue:t}]},templateContext:()=>({dialogRef:i}),providers:(l,s,d)=>(i=new this._dialogRefConstructor(l,t,d),i.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:d},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=o.componentRef,i.componentInstance=o.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(i);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next());}),i}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close();}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Z$2({token:n,factory:n.\u0275fac})}return n})();var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:l,encodeParam:o,encoder:t,password:e,username:s,withCredentials:p}={}){n&&(this.apiKeys=n),s!==void 0&&(this.username=s),e!==void 0&&(this.password=e),x!==void 0&&(this.accessToken=x),r!==void 0&&(this.basePath=r),p!==void 0&&(this.withCredentials=p),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=l??{};}selectHeaderContentType(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}selectHeaderAccept(x){if(x.length===0)return;let n=x.find(r=>this.isJsonMime(r));return n===void 0?x[0]:n}isJsonMime(x){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return x!==null&&(n.test(x)||x.toLowerCase()==="application/json-patch+json")}lookupCredential(x){let n=this.credentials[x];return typeof n=="function"?n():n}addCredentialToHeaders(x,n,r,l){let o=this.lookupCredential(x);return o?r.set(n,(l??"")+o):r}addCredentialToQuery(x,n,r){let l=this.lookupCredential(x);return l?r.set(n,l):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P=new D$1("basePath");var M=class{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$1=class j{basePath="http://localhost:18124";defaultHeaders=new fn$1;configuration;encoder;constructor(x,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let r=Array.isArray(x)?x[0]:void 0;r!=null&&(x=r),typeof x!="string"&&(x=this.basePath),this.configuration.basePath=x;}this.encoder=this.configuration.encoder||new M;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,l=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,l?r:void 0,l):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,l=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return l?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),x):x.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>x=this.addToHttpParamsRecursive(x,o,r));else if(n instanceof Date)if(r!=null)x=x.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;x=this.addToHttpParamsRecursive(x,n[o],t);});return x}else if(r!=null)return x.append(r,n);throw Error("key may not be null if value is not object or array")}};var $$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfig was null or undefined when calling createAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getDefinitionAgentConfig(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,l,"namespaceId");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/definition`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/agent-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",l=false,o){let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"withDisabled");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/agent-configs/platform",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}searchAgentConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter agentConfigSearchRequest was null or undefined when calling searchAgentConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateAgentConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAgentConfig.");if(r==null)throw new Error("Required parameter agentConfig was null or undefined when calling updateAgentConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/agent-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var U=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByNamespaceIdAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentAiModel(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listPlatformLevelAiModel(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(r==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAiProvider(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAiProvider(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(r==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;addMessageCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/cases/unread-count",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}createCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}interruptCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}killCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserExternalIdCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling listByUserExternalIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-user/external/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByUserInNamespaceCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter listByUserInNamespaceRequest was null or undefined when calling listByUserInNamespaceCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listMineByParentCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listMineByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/mine`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}markCaseRead(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling markCaseRead.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/read`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reopenCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling reopenCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reopen`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setReasoningEffortCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setReasoningEffortCase.");if(r==null)throw new Error("Required parameter caseReasoningEffortRequest was null or undefined when calling setReasoningEffortCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reasoning-effort`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}starCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling starCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unstarCase(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling unstarCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/star`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateCase(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var D=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsIntegrationConfig(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listIntegrationConfig(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var W=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listTypesIntegrationType(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var G=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling deployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/deploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAllNamespace(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}undeployAgentsNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling undeployAgentsNamespace.");if(r==null)throw new Error("Required parameter namespaceAgentDeployRequest was null or undefined when calling undeployAgentsNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/undeploy-agents`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateNamespace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}removeAssociationNamespaceGit(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling removeAssociationNamespaceGit.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}setAssociationNamespaceGit(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling setAssociationNamespaceGit.");if(r==null)throw new Error("Required parameter namespaceGitRequest was null or undefined when calling setAssociationNamespaceGit.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/git`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByAgentUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByAgentUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling aggregateByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByCaseTreeUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter rootCaseId was null or undefined when calling aggregateByCaseTreeUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/aggregate/by-case-tree/${this.configuration.encodeParam({name:"rootCaseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}aggregateByModelUsageRecord(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByModelUsageRecord.");if(r==null)throw new Error("Required parameter from was null or undefined when calling aggregateByModelUsageRecord.");if(l==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new dn$2({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,l,"to");let p=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(p=p.set("Accept",a));let d=e?.context??new kc,i=e?.transferCache??true,c="json";a&&(a.startsWith("text")?c="text":this.configuration.isJsonMime(a)?c="json":c="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$2(w$1({context:d,params:s,responseType:c},m?{withCredentials:m}:{}),{headers:p,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter userId was null or undefined when calling aggregateByUserUsageRecord.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling aggregateByUserUsageRecord.");if(l==null)throw new Error("Required parameter from was null or undefined when calling aggregateByUserUsageRecord.");if(o==null)throw new Error("Required parameter to was null or undefined when calling aggregateByUserUsageRecord.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,n,"userId"),p=this.addToHttpParams(p,r,"namespaceId"),p=this.addToHttpParams(p,l,"from"),p=this.addToHttpParams(p,o,"to");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b="/api/usage-records/aggregate/by-user",{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseIdUsageRecord.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/usage-records/by-case/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var we$1=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(we$1||{});var Te$1=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))(Te$1||{});var Re$1=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Re$1||{});var Ie$1=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Ie$1||{});var L$1=class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-list-updated",()=>this.zone.run(()=>r.next("updated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/agent-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var K=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K||{});var Q$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(Q$1||{});var Ee$1=K,Oe$1=Q$1;var Ve={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},Se={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling createAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsAuthSetting(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsAuthSetting.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listAuthSetting(n,r,l="body",o=false,t){let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAuthSetting.");if(r==null)throw new Error("Required parameter apiKeyAuthSettingBasicAuthAuthSettingBearerTokenAuthSettingOAuthCustomAuthSettingOAuthDiscoverableAuthSettingOAuthMcpDiscoverableAuthSettingOAuthRegisteredAuthSetting was null or undefined when calling updateAuthSetting.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseCaseEventRest(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var Z$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersCaseMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersCaseMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersCaseMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersCaseMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ee$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling changesCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/changes`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}diffCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling diffCaseWorkspace.");if(r==null)throw new Error("Required parameter path was null or undefined when calling diffCaseWorkspace.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/diff`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspaces`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}refreshCaseWorkspace(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling refreshCaseWorkspace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/refresh`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}retryCaseWorkspace(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling retryCaseWorkspace.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/workspace/retry`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var te=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;applyConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling applyConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling applyConfigChange.");if(l==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/apply`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling rejectConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling rejectConfigChange.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/reject`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling viewConfigChange.");if(r==null)throw new Error("Required parameter questionId was null or undefined when calling viewConfigChange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/config-changes/${this.configuration.encodeParam({name:"questionId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ne=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}browseNamespaceFilesExchange(n,r,l,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let p=new dn$2({encoder:this.encoder});p=this.addToHttpParams(p,r,"path"),p=this.addToHttpParams(p,l,"page"),p=this.addToHttpParams(p,o,"size");let a=this.defaultHeaders,d=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);d!==void 0&&(a=a.set("Accept",d));let i=s?.context??new kc,c=s?.transferCache??true,f="json";d&&(d.startsWith("text")?f="text":this.configuration.isJsonMime(d)?f="json":f="blob");let b=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/directory`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("get",`${m}${b}`,x$2(w$1({context:i,params:p,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:c,reportProgress:e}))}deleteCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling deleteCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteCaseFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling deleteNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling deleteNamespaceFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling downloadCaseFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadCaseFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling downloadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling downloadNamespaceFileExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/download`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getCaseFileContentExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getCaseFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getNamespaceFileContentExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFileContentExchange.");if(r==null)throw new Error("Required parameter path was null or undefined when calling getNamespaceFileContentExchange.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/content`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling getNamespaceFilesManifestExchange.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files/manifest`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadCaseFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling uploadCaseFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadCaseFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$2({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling uploadNamespaceFileExchange.");if(r==null)throw new Error("Required parameter file was null or undefined when calling uploadNamespaceFileExchange.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),c,f=false;f=i,f?c=new FormData:c=new dn$2({encoder:this.encoder}),r!==void 0&&(c=c.append("file",r)||c);let m="json";s&&(s.startsWith("text")?m="text":this.configuration.isJsonMime(s)?m="json":m="blob");let E=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/files`,{basePath:B,withCredentials:q}=this.configuration;return this.httpClient.request("post",`${B}${E}`,x$2(w$1({context:p,body:c,responseType:m},q?{withCredentials:q}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter feedbackInput was null or undefined when calling createFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseEventFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseEventId was null or undefined when calling listByCaseEventFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-case-event/${this.configuration.encodeParam({name:"caseEventId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByCaseFeedback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseFeedback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/feedbacks/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var re$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ae$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling getMembersNamespaceMembership.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateMembersNamespaceMembership(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter entityId was null or undefined when calling updateMembersNamespaceMembership.");if(r==null)throw new Error("Required parameter userMembershipRole was null or undefined when calling updateMembersNamespaceMembership.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/namespaces/${this.configuration.encodeParam({name:"entityId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("patch",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;grantAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}grantMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling grantMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling grantMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeAdmin.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeAdmin.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/admins/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}revokeMember(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeMember.");if(r==null)throw new Error("Required parameter targetUserId was null or undefined when calling revokeMember.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i=`/api/namespaces/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members/${this.configuration.encodeParam({name:"targetUserId",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${c}${i}`,x$2(w$1({context:p,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter syncUserRolesRequest was null or undefined when calling updateRolesByExternalId.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter oAuthCallbackRequest was null or undefined when calling handleCallbackOAuthCallback.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var pe$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getAllPlugins(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}reloadAllAgentsPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}startPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}unloadPlugin(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}uploadPlugin(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter prompt was null or undefined when calling createPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deletePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deletePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}exportPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling exportPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json","application/yaml"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/export`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectivePrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptEffectiveRequest was null or undefined when calling resolveEffectivePrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter promptSearchRequest was null or undefined when calling searchPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}translateBatchPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter languageCode was null or undefined when calling translateBatchPrompt.");if(r==null)throw new Error("Required parameter promptBatchTranslateRequest was null or undefined when calling translateBatchPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/translations/${this.configuration.encodeParam({name:"languageCode",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}translatePrompt(n,r,l,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling translatePrompt.");if(r==null)throw new Error("Required parameter languageCode was null or undefined when calling translatePrompt.");if(l==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,p=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=e?.context??new kc,d=e?.transferCache??true,i=["application/json"],c=this.configuration.selectHeaderContentType(i);c!==void 0&&(s=s.set("Content-Type",c));let f="json";p&&(p.startsWith("text")?f="text":this.configuration.isJsonMime(p)?f="json":f="blob");let b=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/translations/${this.configuration.encodeParam({name:"languageCode",value:r,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}`,{basePath:m,withCredentials:E}=this.configuration;return this.httpClient.request("post",`${m}${b}`,x$2(w$1({context:a,body:l,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updatePrompt.");if(r==null)throw new Error("Required parameter prompt was null or undefined when calling updatePrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var le=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling continueCostRunRunCost.");if(r==null)throw new Error("Required parameter continueCostRequest was null or undefined when calling continueCostRunRunCost.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/continue`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling getRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}stopCostRunRunCost(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling stopCostRunRunCost.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/run-cost/stop`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling createScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}disableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling disableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/disable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}enableScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling enableScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/enable`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}resolveEffectiveScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptEffectiveRequest was null or undefined when calling resolveEffectiveScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}searchScheduledPrompt(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter scheduledPromptSearchRequest was null or undefined when calling searchScheduledPrompt.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateScheduledPrompt(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateScheduledPrompt.");if(r==null)throw new Error("Required parameter scheduledPrompt was null or undefined when calling updateScheduledPrompt.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/scheduled-prompts/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter skill was null or undefined when calling createSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listByParentSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentSkill.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/skills/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listEffectiveSkill(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/skills/effective",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}listPlatformSkill(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateSkill.");if(r==null)throw new Error("Required parameter skill was null or undefined when calling updateSkill.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/skills/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;streamEventsCaseEventSse(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter toolInvokeRequest was null or undefined when calling invokeToolInvoke.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}listToolInvoke(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var he$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ge$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getByIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter getByIdsRequest was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getGroupsByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter groupsByExternalIdsRequest was null or undefined when calling getGroupsByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMeUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,l){let o=this.defaultHeaders,t=l?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=l?.context??new kc,s=l?.transferCache??true,p="json";t&&(t.startsWith("text")?p="text":this.configuration.isJsonMime(t)?p="json":p="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$2(w$1({context:e,responseType:p},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling listByExternalIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}revokeNamespaceAccessByExternalIdUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter externalId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessByExternalIdUser.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/by-external-id/${this.configuration.encodeParam({name:"externalId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:void 0})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling revokeNamespaceAccessUser.");if(r==null)throw new Error("Required parameter namespaceId was null or undefined when calling revokeNamespaceAccessUser.");let e=new dn$2({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(s=s.set("Accept",p));let a=t?.context??new kc,d=t?.transferCache??true,i="json";p&&(p.startsWith("text")?i="text":this.configuration.isJsonMime(p)?i="json":i="blob");let c=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/access`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${c}`,x$2(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:l,transferCache:d,reportProgress:o}))}updateUser(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ce$1=class C extends j$1{constructor(n,r,l){super(r,l);this.httpClient=n;}httpClient;createUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupCreateRequest was null or undefined when calling createUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let c="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${c}`,x$2(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}deleteUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling deleteUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}findByNamespaceIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new dn$2({encoder:this.encoder});t=this.addToHttpParams(t,n,"namespaceId");let e=this.defaultHeaders,s=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=o?.context??new kc,a=o?.transferCache??true,d="json";s&&(s.startsWith("text")?d="text":this.configuration.isJsonMime(s)?d="json":d="blob");let i="/api/user-groups",{basePath:c,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${c}${i}`,x$2(w$1({context:p,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:l}))}getByIdUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getByIdUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}getMembersUserGroup(n,r="body",l=false,o){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling getMembersUserGroup.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new kc,p=o?.transferCache??true,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/members`,{basePath:i,withCredentials:c}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$2(w$1({context:s,responseType:a},c?{withCredentials:c}:{}),{headers:t,observe:r,transferCache:p,reportProgress:l}))}updateUserGroup(n,r,l="body",o=false,t){if(n==null)throw new Error("Required parameter userGroupId was null or undefined when calling updateUserGroup.");if(r==null)throw new Error("Required parameter userGroupUpdateRequest was null or undefined when calling updateUserGroup.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let p=t?.context??new kc,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let c="json";s&&(s.startsWith("text")?c="text":this.configuration.isJsonMime(s)?c="json":c="blob");let f=`/api/user-groups/${this.configuration.encodeParam({name:"userGroupId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$2(w$1({context:p,body:r,responseType:c},m?{withCredentials:m}:{}),{headers:e,observe:l,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b(jD),b(P,8),b(y,8))};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var qe=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(qe||{});var Me$1=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Me$1||{});var Be$1=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Be$1||{});var $e=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))($e||{}),Ue=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ue||{});var Ne$1=(l=>(l.FREE_TEXT="FREE_TEXT",l.SINGLE_CHOICE="SINGLE_CHOICE",l.OPEN_CHOICE="OPEN_CHOICE",l.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",l))(Ne$1||{});function zc(C){return ft$2([typeof C=="string"?{provide:P,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n)),o=t=>{try{let e=JSON.parse(t.data);this.zone.run(()=>r.next(e));}catch(e){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${e}`)));}};return l.addEventListener("case-event",o),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=p(y);zone=p(J$3);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new k$1(r=>{let l=this.zone.runOutsideAngular(()=>new EventSource(n));return l.onopen=()=>this.zone.run(()=>r.next("connected")),l.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),l.onerror=()=>{},()=>l.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})});var me$1=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/integration-configs/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var ye=class C{http=p(jD);config=p(y);exportAsYaml(x){let n=`${this.config.basePath}/api/prompts/${encodeURIComponent(x)}/export`;return this.http.get(n,{headers:{Accept:"application/yaml"},responseType:"text"})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ae$1=class C{http=p(jD);config=p(y);invoke(x){let n=`${this.config.basePath}/api/tools/invoke`;return this.http.post(n,x)}static \u0275fac=function(n){return new(n||C)};static \u0275prov=R$1({token:C,factory:C.\u0275fac,providedIn:"root"})};
564
+ var _=(function(s){return s[s.State=0]="State",s[s.Transition=1]="Transition",s[s.Sequence=2]="Sequence",s[s.Group=3]="Group",s[s.Animate=4]="Animate",s[s.Keyframes=5]="Keyframes",s[s.Style=6]="Style",s[s.Trigger=7]="Trigger",s[s.Reference=8]="Reference",s[s.AnimateChild=9]="AnimateChild",s[s.AnimateRef=10]="AnimateRef",s[s.Query=11]="Query",s[s.Stagger=12]="Stagger",s})(_||{}),B="*";function Xt(s,e=null){return {type:_.Sequence,steps:s,options:e}}function Ge(s){return {type:_.Style,styles:s,offset:null}}var j=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=false;_destroyed=false;_finished=false;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=true;}triggerMicrotask(){queueMicrotask(()=>this._onFinish());}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[];}pause(){}restart(){}finish(){this._onFinish();}destroy(){this._destroyed||(this._destroyed=true,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this._started=false,this._finished=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}setPosition(e){this._position=this.totalTime?e*this.totalTime:1;}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ie=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish();}),a.onDestroy(()=>{++n==r&&this._onDestroy();}),a.onStart(()=>{++i==r&&this._onStart();});}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0);}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this.players.forEach(e=>e.init());}onStart(e){this._onStartFns.push(e);}_onStart(){this.hasStarted()||(this._started=true,this._onStartFns.forEach(e=>e()),this._onStartFns=[]);}onDone(e){this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play());}pause(){this.players.forEach(e=>e.pause());}restart(){this.players.forEach(e=>e.restart());}finish(){this._onFinish(),this.players.forEach(e=>e.finish());}destroy(){this._onDestroy();}_onDestroy(){this._destroyed||(this._destroyed=true,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}reset(){this.players.forEach(e=>e.reset()),this._destroyed=false,this._finished=false,this._started=false;}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let i=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(i);});}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy();});}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},ce="!";function Zt(s){return new y$2(3e3,false)}function ti(){return new y$2(3100,false)}function ni(){return new y$2(3101,false)}function ii(s){return new y$2(3001,false)}function si(s){return new y$2(3003,false)}function ri(s){return new y$2(3004,false)}function en(s,e){return new y$2(3005,false)}function tn(){return new y$2(3006,false)}function nn(){return new y$2(3007,false)}function sn(s,e){return new y$2(3008,false)}function rn(s){return new y$2(3002,false)}function an(s,e,t,n,i){return new y$2(3010,false)}function on(){return new y$2(3011,false)}function ln(){return new y$2(3012,false)}function cn(){return new y$2(3200,false)}function un(){return new y$2(3202,false)}function hn(){return new y$2(3013,false)}function dn(s){return new y$2(3014,false)}function mn(s){return new y$2(3015,false)}function fn(s){return new y$2(3016,false)}function pn(s,e){return new y$2(3404,false)}function ai(s){return new y$2(3502,false)}function gn(s){return new y$2(3503,false)}function yn(){return new y$2(3300,false)}function _n(s){return new y$2(3504,false)}function Sn(s){return new y$2(3301,false)}function vn(s,e){return new y$2(3302,false)}function En(s){return new y$2(3303,false)}function bn(s,e){return new y$2(3400,false)}function Tn(s){return new y$2(3401,false)}function wn(s){return new y$2(3402,false)}function An(s,e){return new y$2(3505,false)}function V(s){switch(s.length){case 0:return new j;case 1:return s[0];default:return new ie(s)}}function Xe(s,e,t=new Map,n=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==a,u=h&&o||new Map;l.forEach((S,y)=>{let m=y,g=S;if(y!=="offset")switch(m=s.normalizePropertyName(m,i),g){case ce:g=t.get(y);break;case B:g=n.get(y);break;default:g=s.normalizeStyleValue(y,m,g,i);break}u.set(m,g);}),h||r.push(u),o=u,a=c;}),i.length)throw ai();return r}function ve(s,e,t,n){switch(e){case "start":s.onStart(()=>n(t&&We(t,"start",s)));break;case "done":s.onDone(()=>n(t&&We(t,"done",s)));break;case "destroy":s.onDestroy(()=>n(t&&We(t,"destroy",s)));break}}function We(s,e,t){let n=t.totalTime,i=!!t.disabled,r=Ee(s.element,s.triggerName,s.fromState,s.toState,e||s.phaseName,n??s.totalTime,i),a=s._data;return a!=null&&(r._data=a),r}function Ee(s,e,t,n,i="",r=0,a){return {element:s,triggerName:e,fromState:t,toState:n,phaseName:i,totalTime:r,disabled:!!a}}function R(s,e,t){let n=s.get(e);return n||s.set(e,n=t),n}function Ze(s){let e=s.indexOf(":"),t=s.substring(1,e),n=s.slice(e+1);return [t,n]}var oi=typeof document>"u"?null:document.documentElement;function be(s){let e=s.parentNode||s.host||null;return e===oi?null:e}function li(s){return s.substring(1,6)=="ebkit"}var X=null,Jt=false;function kn(s){X||(X=ci()||{},Jt=X.style?"WebkitAppearance"in X.style:false);let e=true;return X.style&&!li(s)&&(e=s in X.style,!e&&Jt&&(e="Webkit"+s.charAt(0).toUpperCase()+s.slice(1)in X.style)),e}function ci(){return typeof document<"u"?document.body:null}function Je(s,e){for(;e;){if(e===s)return true;e=be(e);}return false}function et(s,e,t){if(t)return Array.from(s.querySelectorAll(e));let n=s.querySelector(e);return n?[n]:[]}var ui=1e3,tt="{{",hi="}}",nt="ng-enter",Te="ng-leave",ue="ng-trigger",he=".ng-trigger",it="ng-animating",we=".ng-animating";function Q(s){if(typeof s=="number")return s;let e=s.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:He(parseFloat(e[1]),e[2])}function He(s,e){return e==="s"?s*ui:s}function de(s,e,t){return s.hasOwnProperty("duration")?s:mi(s,e,t)}var di=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function mi(s,e,t){let n,i=0,r="";if(typeof s=="string"){let a=s.match(di);if(a===null)return e.push(Zt()),{duration:0,delay:0,easing:""};n=He(parseFloat(a[1]),a[2]);let o=a[3];o!=null&&(i=He(parseFloat(o),a[4]));let l=a[5];l&&(r=l);}else n=s;if(!t){let a=false,o=e.length;n<0&&(e.push(ti()),a=true),i<0&&(e.push(ni()),a=true),a&&e.splice(o,0,Zt());}return {duration:n,delay:i,easing:r}}function Pn(s){return s.length?s[0]instanceof Map?s:s.map(e=>new Map(Object.entries(e))):[]}function z(s,e,t){e.forEach((n,i)=>{let r=Ae(i);t&&!t.has(i)&&t.set(i,s.style[r]),s.style[r]=n;});}function $(s,e){e.forEach((t,n)=>{let i=Ae(n);s.style[i]="";});}function se(s){return Array.isArray(s)?s.length==1?s[0]:Xt(s):s}function Dn(s,e,t){let n=e.params||{},i=st(s);i.length&&i.forEach(r=>{n.hasOwnProperty(r)||t.push(ii());});}var Ye=new RegExp(`${tt}\\s*(.+?)\\s*${hi}`,"g");function st(s){let e=[];if(typeof s=="string"){let t;for(;t=Ye.exec(s);)e.push(t[1]);Ye.lastIndex=0;}return e}function re(s,e,t){let n=`${s}`,i=n.replace(Ye,(r,a)=>{let o=e[a];return o==null&&(t.push(si()),o=""),o.toString()});return i==n?s:i}var fi=/-+([a-z0-9])/g;function Ae(s){return s.replace(fi,(...e)=>e[1].toUpperCase())}function Mn(s,e){return s===0||e===0}function Cn(s,e,t){if(t.size&&e.length){let n=e[0],i=[];if(t.forEach((r,a)=>{n.has(a)||i.push(a),n.set(a,r);}),i.length)for(let r=1;r<e.length;r++){let a=e[r];i.forEach(o=>a.set(o,ke(s,o)));}}return e}function F(s,e,t){switch(e.type){case _.Trigger:return s.visitTrigger(e,t);case _.State:return s.visitState(e,t);case _.Transition:return s.visitTransition(e,t);case _.Sequence:return s.visitSequence(e,t);case _.Group:return s.visitGroup(e,t);case _.Animate:return s.visitAnimate(e,t);case _.Keyframes:return s.visitKeyframes(e,t);case _.Style:return s.visitStyle(e,t);case _.Reference:return s.visitReference(e,t);case _.AnimateChild:return s.visitAnimateChild(e,t);case _.AnimateRef:return s.visitAnimateRef(e,t);case _.Query:return s.visitQuery(e,t);case _.Stagger:return s.visitStagger(e,t);default:throw ri(e.type)}}function ke(s,e){return window.getComputedStyle(s)[e]}var Et=(()=>{class s{validateStyleProperty(t){return kn(t)}containsElement(t,n){return Je(t,n)}getParentElement(t){return be(t)}query(t,n,i){return et(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,r,a,o=[],l){return new j(i,r)}static \u0275fac=function(n){return new(n||s)};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})(),J=class{static NOOP=new Et},ee=class{};var pi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ne=class extends ee{normalizePropertyName(e,t){return Ae(e)}normalizeStyleValue(e,t,n,i){let r="",a=n.toString().trim();if(pi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")r="px";else {let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(en());}return a+r}};var Re="*";function gi(s,e){let t=[];return typeof s=="string"?s.split(/\s*,\s*/).forEach(n=>yi(n,t,e)):t.push(s),t}function yi(s,e,t){if(s[0]==":"){let l=_i(s,t);if(typeof l=="function"){e.push(l);return}s=l;}let n=s.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(mn()),e;let i=n[1],r=n[2],a=n[3];e.push(Nn(i,a));let o=i==Re&&a==Re;r[0]=="<"&&!o&&e.push(Nn(a,i));}function _i(s,e){switch(s){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,n)=>parseFloat(n)>parseFloat(t);case ":decrement":return (t,n)=>parseFloat(n)<parseFloat(t);default:return e.push(fn()),"* => *"}}var Pe=new Set(["true","1"]),De=new Set(["false","0"]);function Nn(s,e){let t=Pe.has(s)||De.has(s),n=Pe.has(e)||De.has(e);return (i,r)=>{let a=s==Re||s==i,o=e==Re||e==r;return !a&&t&&typeof i=="boolean"&&(a=i?Pe.has(s):De.has(s)),!o&&n&&typeof r=="boolean"&&(o=r?Pe.has(e):De.has(e)),a&&o}}var Qn=":self",Si=new RegExp(`s*${Qn}s*,?`,"g");function jn(s,e,t,n){return new ut(s).build(e,t,n)}var Rn="",ut=class{_driver;constructor(e){this._driver=e;}build(e,t,n){let i=new ht(t);return this._resetContextStyleTimingState(i),F(this,se(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Rn,e.collectedStyles=new Map,e.collectedStyles.set(Rn,new Map),e.currentTime=0;}visitTrigger(e,t){let n=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(tn()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=c;}else if(o.type==_.Transition){let l=this.visitTransition(o,t);n+=l.queryCount,i+=l.depCount,a.push(l);}else t.errors.push(nn());}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:n,depCount:i,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){let r=new Set,a=i||{};n.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{st(l).forEach(c=>{a.hasOwnProperty(c)||r.add(c);});});}),r.size&&t.errors.push(sn(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:n,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=F(this,se(e.animation),t),i=gi(e.expr,t.errors);return {type:_.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:Z(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(n=>F(this,n,t)),options:Z(e.options)}}visitGroup(e,t){let n=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=n;let o=F(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:Z(e.options)}}visitAnimate(e,t){let n=Ti(e.timings,t.errors);t.currentAnimateTimings=n;let i,r=e.styles?e.styles:Ge({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else {let a=e.styles,o=false;if(!a){o=true;let c={};n.easing&&(c.easing=n.easing),a=Ge(c);}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:n,style:i,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===B?n.push(o):t.errors.push(rn()):n.push(new Map(Object.entries(o)));let r=false,a=null;return n.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf(tt)>=0){r=true;break}}}),{type:_.Style,styles:n,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=true;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(an(l,h.startTime,h.endTime)),u=false),r=h.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&Dn(o,t.options,t.errors);});});}visitKeyframes(e,t){let n={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(on()),n;let i=1,r=0,a=[],o=false,l=false,c=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:bi(A.styles),P=0;return M!=null&&(r++,P=A.offset=M),l=l||P<0||P>1,o=o||P<c,c=P,a.push(P),A});l&&t.errors.push(ln()),o&&t.errors.push(cn());let u=e.steps.length,S=0;r>0&&r<u?t.errors.push(un()):r==0&&(S=i/(u-1));let y=u-1,m=t.currentTime,g=t.currentAnimateTimings,b=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:a[A],P=M*b;t.currentTime=m+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=M,n.styles.push(w);}),n}visitReference(e,t){return {type:_.Reference,animation:F(this,se(e.animation),t),options:Z(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:Z(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:Z(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=vi(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,R(t.collectedStyles,t.currentQuerySelector,new Map);let o=F(this,se(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:Z(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(hn());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:de(e.timings,t.errors,true);return {type:_.Stagger,animation:F(this,se(e.animation),t),timings:n,options:null}}};function vi(s){let e=!!s.split(/\s*,\s*/).find(t=>t==Qn);return e&&(s=s.replace(Si,"")),s=s.replace(/@\*/g,he).replace(/@\w+/g,t=>he+"-"+t.slice(1)).replace(/:animating/g,we),[s,e]}function Ei(s){return s?w$1({},s):null}var ht=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e;}};function bi(s){if(typeof s=="string")return null;let e=null;if(Array.isArray(s))s.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset");}});else if(s instanceof Map&&s.has("offset")){let t=s;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Ti(s,e){if(s.hasOwnProperty("duration"))return s;if(typeof s=="number"){let r=de(s,e).duration;return rt(r,0,"")}let t=s;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=rt(0,0,"");return r.dynamic=true,r.strValue=t,r}let i=de(t,e);return rt(i.duration,i.delay,i.easing)}function Z(s){return s?(s=w$1({},s),s.params&&(s.params=Ei(s.params))):s={},s}function rt(s,e,t){return {duration:s,delay:e,easing:t}}function bt(s,e,t,n,i,r,a=null,o=false){return {type:1,element:s,keyframes:e,preStyleProps:t,postStyleProps:n,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var fe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},wi=1,Ai=":enter",ki=new RegExp(Ai,"g"),Pi=":leave",Di=new RegExp(Pi,"g");function Vn(s,e,t,n,i,r=new Map,a=new Map,o,l,c=[]){return new dt().buildKeyframes(s,e,t,n,i,r,a,o,l,c)}var dt=class{buildKeyframes(e,t,n,i,r,a,o,l,c,h=[]){c=c||new fe;let u=new mt(e,t,c,i,r,h,[]);u.options=l;let S=l.delay?Q(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([a],null,u.errors,l),F(this,n,u);let y=u.timelines.filter(m=>m.containsAnimation());if(y.length&&o.size){let m;for(let g=y.length-1;g>=0;g--){let b=y[g];if(b.element===t){m=b;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([o],null,u.errors,l);}return y.length?y.map(m=>m.buildKeyframes()):[bt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a);}t.previousNode=e;}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,n){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:Q(re(r,i?.params??{},t.errors));n.delayNextStep(a);}}}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime,a=n.duration!=null?Q(n.duration):null,o=n.delay!=null?Q(n.delay):null;return a!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,c.duration+c.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),F(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let n=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Fe);let a=Q(r.delay);i.delayNextStep(a);}e.steps.length&&(e.steps.forEach(a=>F(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let n=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Q(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),F(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline);}),n.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,i=t.params?re(n,t.params,t.errors):n;return de(i,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,o=t.createSubContext().currentTimeline;o.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;o.forwardTime(c*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e;}visitQuery(e,t){let n=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Q(i.delay):0;r&&(t.previousNode.type===_.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fe);let a=n,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),F(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;a=Math.max(a,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=o-l;break;case "full":l=n.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;F(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime);}},Fe={},mt=class s{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Fe;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Oe(this._driver,t,0),o.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,i=this.options;n.duration!=null&&(i.duration=Q(n.duration)),n.delay!=null&&(i.delay=Q(n.delay));let r=n.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=re(r[o],a,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(i=>{n[i]=t[i];});}}return e}createSubContext(e=null,t,n){let i=t||this.element,r=new s(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Fe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},r=new ft(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,n,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(ki,"."+this._enterClassName),e=e.replace(Di,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),o.push(...c);}return !r&&o.length==0&&a.push(dn()),o}},Oe=class s{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,i){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe();}containsAnimation(){switch(this._keyframes.size){case 0:return false;case 1:return this.hasCurrentStyleProperties();default:return true}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e;}fork(e,t){return this.applyStylesToKeyframe(),new s(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe));}forwardFrame(){this.duration+=wi,this._loadKeyframe();}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe();}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t});}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||B),this._currentKeyframe.set(t,B);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,n,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Mi(e,this._globalTimelineStyles);for(let[o,l]of a){let c=re(l,r,n);this._pendingStyles.set(o,c),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??B),this._updateStyle(o,c);}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e);}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e);}));}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t);}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let c=new Map([...this._backFill,...o]);c.forEach((h,u)=>{h===ce?e.add(u):h===B&&t.add(u);}),n||c.set("offset",l/this.duration),i.push(c);});let r=[...e.values()],a=[...t.values()];if(n){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l];}return bt(this.element,i,r,a,this.duration,this.startTime,this.easing,false)}},ft=class extends Oe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,i,r,a,o=false){super(e,t,a.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=n+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",Fn(o)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),y=S.get("offset"),m=t+y*n;S.set("offset",Fn(m/a)),r.push(S);}n=a,t=0,i="",e=r;}return bt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,i,true)}};function Fn(s,e=3){let t=Math.pow(10,e-1);return Math.round(s*t)/t}function Mi(s,e){let t=new Map,n;return s.forEach(i=>{if(i==="*"){n??=e.keys();for(let r of n)t.set(r,B);}else for(let[r,a]of i)t.set(r,a);}),t}function On(s,e,t,n,i,r,a,o,l,c,h,u,S){return {type:0,element:s,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var at={},Ie=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n;}match(e,t,n,i){return Ci(this.ast.matchers,e,t,n,i)}buildStyles(e,t,n){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,n):new Map}build(e,t,n,i,r,a,o,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||at,y=o&&o.params||at,m=this.buildStyles(n,y,u),g=l&&l.params||at,b=this.buildStyles(i,g,u),w=new Set,A=new Map,M=new Map,P=i==="void",te={params:Un(g,S),delay:this.ast.options?.delay},K=h?[]:Vn(e,t,this.ast.animation,r,a,m,b,te,c,u),C=0;return K.forEach(N=>{C=Math.max(N.duration+N.delay,C);}),u.length?On(t,this._triggerName,n,i,P,m,b,[],[],A,M,C,u):(K.forEach(N=>{let G=N.element,ne=R(A,G,new Set);N.preStyleProps.forEach(W=>ne.add(W));let wt=R(M,G,new Set);N.postStyleProps.forEach(W=>wt.add(W)),G!==t&&w.add(G);}),On(t,this._triggerName,n,i,P,m,b,K,[...w.values()],A,M,C))}};function Ci(s,e,t,n,i){return s.some(r=>r(e,t,n,i))}function Un(s,e){let t=w$1({},e);return Object.entries(s).forEach(([n,i])=>{i!=null&&(t[n]=i);}),t}var pt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n;}buildStyles(e,t){let n=new Map,i=Un(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=re(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),n.set(o,a);});}),n}};function Ni(s,e,t){return new gt(s,e,t)}var gt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new pt(i.style,r,n));}),In(this.states,"true","1"),In(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Ie(e,i,this.states));}),this.fallbackTransition=Ri(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,i){return this.transitionFactories.find(a=>a.match(e,t,n,i))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function Ri(s,e,t){let n=[(a,o)=>true],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new Ie(s,r,e)}function In(s,e,t){s.has(e)?s.has(t)||s.set(t,s.get(e)):s.has(t)&&s.set(e,s.get(t));}var Fi=new fe,yt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n;}register(e,t){let n=[],i=[],r=jn(this._driver,t,n,i);if(n.length)throw gn();this._animations.set(e,r);}_buildPlayer(e,t,n){let i=e.element,r=Xe(this._normalizer,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],true)}create(e,t,n={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=Vn(this._driver,t,r,nt,Te,new Map,new Map,n,Fi,i),a.forEach(h=>{let u=R(o,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null));})):(i.push(yn()),a=[]),i.length)throw _n();o.forEach((h,u)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(u,y,B));});});let l=a.map(h=>{let u=o.get(h.element);return this._buildPlayer(h,new Map,u)}),c=V(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Sn();return t}listen(e,t,n,i){let r=Ee(t,"","","");return ve(this._getPlayer(e),n,r,i),()=>{}}command(e,t,n,i){if(n=="register"){this.register(e,i[0]);return}if(n=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(n){case "play":r.play();break;case "pause":r.pause();break;case "reset":r.reset();break;case "restart":r.restart();break;case "finish":r.finish();break;case "init":r.init();break;case "setPosition":r.setPosition(parseFloat(i[0]));break;case "destroy":this.destroy(e);break}}},Ln="ng-animate-queued",Oi=".ng-animate-queued",ot="ng-animate-disabled",Ii=".ng-animate-disabled",Li="ng-star-inserted",Bi=".ng-star-inserted",zi=[],$n={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},xi={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},x="__ng_removed",pe=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),i=n?e.value:e;if(this.value=qi(i),n){let r=e,{value:a}=r,o=y$3(r,["value"]);this.options=o;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i]);});}}},me="void",lt=new pe(me),_t=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName);}listen(e,t,n,i){if(!this._triggers.has(t))throw vn();if(n==null||n.length==0)throw En();if(!Qi(n))throw bn();let r=R(this._elementListeners,e,[]),a={name:t,phase:n,callback:i};r.push(a);let o=R(this._engine.statesByElement,e,new Map);return o.has(t)||(L(e,ue),L(e,ue+"-"+t),o.set(t,lt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t);});}}register(e,t){return this._triggers.has(e)?false:(this._triggers.set(e,t),true)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Tn();return t}trigger(e,t,n,i=true){let r=this._getTrigger(t),a=new ge(this.id,t,e),o=this._engine.statesByElement.get(e);o||(L(e,ue),L(e,ue+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),c=new pe(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),o.set(t,c),l||(l=lt),!(c.value===me)&&l.value===c.value){if(!Ui(l.params,c.params)){let g=[],b=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{$(e,b),z(e,w);});}return}let S=R(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,c.value,e,c.params),m=false;if(!y){if(!i)return;y=r.fallbackTransition,m=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:a,isFallbackTransition:m}),m||(L(e,Ln),a.onStart(()=>{ae(e,Ln);})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let b=this._engine.playersByElement.get(e);if(b){let w=b.indexOf(a);w>=0&&b.splice(w,1);}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,he,true);n.forEach(i=>{if(i[x])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,false,true)):this.clearElementCache(i);}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)));}triggerLeaveAnimation(e,t,n,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,me,i);h&&o.push(h);}}),o.length)return this._engine.markElementAsRemoved(this.id,e,true,t,a),n&&V(o).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,c=n.get(a)||lt,h=new pe(me),u=new ge(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:true});});}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let i=false;if(n.totalAnimations){let r=n.players.length?n.playersByQueriedElement.get(e):[];if(r&&r.length)i=true;else {let a=e;for(;a=a.parentNode;)if(n.statesByElement.get(a)){i=true;break}}}if(this.prepareLeaveAnimationListeners(e),i)n.markElementAsRemoved(this.id,e,false,t);else {let r=e[x];(!r||r===$n)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t));}}insertNode(e,t){L(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let r=n.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==n.triggerName){let l=Ee(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,ve(n.player,o.phase,l,o.callback);}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy();}):t.push(n);}),this._queue=[],t.sort((n,i)=>{let r=n.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},St=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t);}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n);});}),e}createNamespace(e,t){let n=new _t(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let a=false,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),a=true;break}o=this.driver.getParentElement(o);}a||n.unshift(e);}else n.push(e);return i.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let i of n.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r);}}return t}trigger(e,t,n,i){if(Me(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),true}return false}insertNode(e,t,n,i){if(!Me(t))return;let r=t[x];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1);}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,n);}i&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ot)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ae(e,ot));}removeNode(e,t,n){if(Me(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,n):this.markElementAsRemoved(e,t,false,n);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,n);}else this._onRemovalComplete(t,n);}markElementAsRemoved(e,t,n,i,r){this.collectedLeaveElements.push(t),t[x]={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,n,i,r){return Me(t)?this._fetchNamespace(e).listen(t,n,i,r):()=>{}}_buildInstruction(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,he,true);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,we,true),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=true:n.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return V(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[x];if(t&&t.setForRemoval){if(e[x]=$n,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(ot)&&this.markElementAsDisabled(e,false),this.driver.query(e,Ii,true).forEach(n=>{this.markElementAsDisabled(n,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++){let i=this.collectedEnterElements[n];L(i,Li);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let n=[];try{t=this._flushAnimations(n,e);}finally{for(let i=0;i<n.length;i++)n[i]();}}else for(let n=0;n<this.collectedLeaveElements.length;n++){let i=this.collectedLeaveElements[n];this.processLeaveNode(i);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?V(t).onDone(()=>{n.forEach(i=>i());}):n.forEach(i=>i());}}reportError(e){throw wn()}_flushAnimations(e,t){let n=new fe,i=[],r=new Map,a=[],o=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let f=this.driver.query(d,Oi,true);for(let p=0;p<f.length;p++)h.add(f[p]);});let u=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=xn(S,this.collectedEnterElements),m=new Map,g=0;y.forEach((d,f)=>{let p=nt+g++;m.set(f,p),d.forEach(v=>L(v,p));});let b=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let f=this.collectedLeaveElements[d],p=f[x];p&&p.setForRemoval&&(b.push(f),w.add(f),p.hasAnimation?this.driver.query(f,Bi,true).forEach(v=>w.add(v)):A.add(f));}let M=new Map,P=xn(S,Array.from(w));P.forEach((d,f)=>{let p=Te+g++;M.set(f,p),d.forEach(v=>L(v,p));}),e.push(()=>{y.forEach((d,f)=>{let p=m.get(f);d.forEach(v=>ae(v,p));}),P.forEach((d,f)=>{let p=M.get(f);d.forEach(v=>ae(v,p));}),b.forEach(d=>{this.processLeaveNode(d);});});let te=[],K=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let v=p.player,k=p.element;if(te.push(v),this.collectedEnterElements.length){let D=k[x];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let H=D.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let ye=I.get(p.triggerName);ye.value=H,I.set(p.triggerName,ye);}}v.destroy();return}}let q=!u||!this.driver.containsElement(u,k),O=M.get(k),U=m.get(k),T=this._buildInstruction(p,n,U,O,q);if(T.errors&&T.errors.length){K.push(T);return}if(q){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}if(p.isFallbackTransition){v.onStart(()=>$(k,T.fromStyles)),v.onDestroy(()=>z(k,T.toStyles)),i.push(v);return}let Pt=[];T.timelines.forEach(D=>{D.stretchStartingKeyframe=true,this.disabledNodes.has(D.element)||Pt.push(D);}),T.timelines=Pt,n.append(k,T.timelines);let ei={instruction:T,player:v,element:k};a.push(ei),T.queriedElements.forEach(D=>R(o,D,[]).push(v)),T.preStyleProps.forEach((D,H)=>{if(D.size){let I=l.get(H);I||l.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));}}),T.postStyleProps.forEach((D,H)=>{let I=c.get(H);I||c.set(H,I=new Set),D.forEach((ye,Qe)=>I.add(Qe));});});if(K.length){let d=[];K.forEach(f=>{d.push(An(f.triggerName,f.errors));}),te.forEach(f=>f.destroy()),this.reportError(d);}let C=new Map,N=new Map;a.forEach(d=>{let f=d.element;n.has(f)&&(N.set(f,f),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,C));}),i.forEach(d=>{let f=d.element;this._getPreviousPlayers(f,false,d.namespaceId,d.triggerName,null).forEach(v=>{R(C,f,[]).push(v),v.destroy();});});let G=b.filter(d=>Kn(d,l,c)),ne=new Map;zn(ne,this.driver,A,c,B).forEach(d=>{Kn(d,l,c)&&G.push(d);});let W=new Map;y.forEach((d,f)=>{zn(W,this.driver,new Set(d),l,ce);}),G.forEach(d=>{let f=ne.get(d),p=W.get(d);ne.set(d,new Map([...f?.entries()??[],...p?.entries()??[]]));});let qe=[],At=[],kt={};a.forEach(d=>{let{element:f,player:p,instruction:v}=d;if(n.has(f)){if(h.has(f)){p.onDestroy(()=>z(f,v.toStyles)),p.disabled=true,p.overrideTotalTime(v.totalTime),i.push(p);return}let k=kt;if(N.size>1){let O=f,U=[];for(;O=O.parentNode;){let T=N.get(O);if(T){k=T;break}U.push(O);}U.forEach(T=>N.set(T,k));}let q=this._buildAnimation(p.namespaceId,v,C,r,W,ne);if(p.setRealPlayer(q),k===kt)qe.push(p);else {let O=this.playersByElement.get(k);O&&O.length&&(p.parentPlayer=V(O)),i.push(p);}}else $(f,v.fromStyles),p.onDestroy(()=>z(f,v.toStyles)),At.push(p),h.has(f)&&i.push(p);}),At.forEach(d=>{let f=r.get(d.element);if(f&&f.length){let p=V(f);d.setRealPlayer(p);}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<b.length;d++){let f=b[d],p=f[x];if(ae(f,Te),p&&p.hasAnimation)continue;let v=[];if(o.size){let q=o.get(f);q&&q.length&&v.push(...q);let O=this.driver.query(f,we,true);for(let U=0;U<O.length;U++){let T=o.get(O[U]);T&&T.length&&v.push(...T);}}let k=v.filter(q=>!q.destroyed);k.length?ji(this,f,k):this.processLeaveNode(f);}return b.length=0,qe.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let f=this.players.indexOf(d);this.players.splice(f,1);}),d.play();}),qe}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,n,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o);}else {let o=this.playersByElement.get(e);if(o){let l=!r||r==me;o.forEach(c=>{c.queued||!l&&c.triggerName!=i||a.push(c);});}}return (n||i)&&(a=a.filter(o=>!(n&&n!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,n){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==r,u=R(n,c,[]);this._getPreviousPlayers(c,h,a,o,t.toState).forEach(y=>{let m=y.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),y.destroy(),u.push(y);});}$(r,t.fromStyles);}_buildAnimation(e,t,n,i,r,a){let o=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(m=>{let g=m.element;h.add(g);let b=g[x];if(b&&b.removedBeforeQueried)return new j(m.duration,m.delay);let w=g!==l,A=Vi((n.get(g)||zi).map(C=>C.getRealPlayer())).filter(C=>{let N=C;return N.element?N.element===g:false}),M=r.get(g),P=a.get(g),te=Xe(this._normalizer,m.keyframes,M,P),K=this._buildPlayer(m,te,A);if(m.subTimeline&&i&&u.add(g),w){let C=new ge(e,o,g);C.setRealPlayer(K),c.push(C);}return K});c.forEach(m=>{R(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Ki(this.playersByQueriedElement,m.element,m));}),h.forEach(m=>L(m,it));let y=V(S);return y.onDestroy(()=>{h.forEach(m=>ae(m,it)),z(l,t.toStyles);}),u.forEach(m=>{R(i,m,[]).push(y);}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new j(e.duration,e.delay)}},ge=class{namespaceId;triggerName;element;_player=new j;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>ve(e,n,void 0,i));}),this._queuedCallbacks.clear(),this._containsRealPlayer=true,this.overrideTotalTime(e.totalTime),this.queued=false);}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e;}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy());}_queueEvent(e,t){R(this._queuedCallbacks,e,[]).push(t);}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e);}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e);}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e);}init(){this._player.init();}hasStarted(){return this.queued?false:this._player.hasStarted()}play(){!this.queued&&this._player.play();}pause(){!this.queued&&this._player.pause();}restart(){!this.queued&&this._player.restart();}finish(){this._player.finish();}destroy(){this.destroyed=true,this._player.destroy();}reset(){!this.queued&&this._player.reset();}setPosition(e){this.queued||this._player.setPosition(e);}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e);}};function Ki(s,e,t){let n=s.get(e);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1);}n.length==0&&s.delete(e);}return n}function qi(s){return s??null}function Me(s){return s&&s.nodeType===1}function Qi(s){return s=="start"||s=="done"}function Bn(s,e){let t=s.style.display;return s.style.display=e??"none",t}function zn(s,e,t,n,i){let r=[];t.forEach(l=>r.push(Bn(l)));let a=[];n.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);h.set(u,S),(!S||S.length==0)&&(c[x]=xi,a.push(c));}),s.set(c,h);});let o=0;return t.forEach(l=>Bn(l,r[o++])),a}function xn(s,e){let t=new Map;if(s.forEach(o=>t.set(o,[])),e.length==0)return t;let n=1,i=new Set(e),r=new Map;function a(o){if(!o)return n;let l=r.get(o);if(l)return l;let c=o.parentNode;return t.has(c)?l=c:i.has(c)?l=n:l=a(c),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==n&&t.get(l).push(o);}),t}function L(s,e){s.classList?.add(e);}function ae(s,e){s.classList?.remove(e);}function ji(s,e,t){V(t).onDone(()=>s.processLeaveNode(e));}function Vi(s){let e=[];return Gn(s,e),e}function Gn(s,e){for(let t=0;t<s.length;t++){let n=s[t];n instanceof ie?Gn(n.players,e):e.push(n);}}function Ui(s,e){let t=Object.keys(s),n=Object.keys(e);if(t.length!=n.length)return false;for(let i=0;i<t.length;i++){let r=t[i];if(!e.hasOwnProperty(r)||s[r]!==e[r])return false}return true}function Kn(s,e,t){let n=t.get(s);if(!n)return false;let i=e.get(s);return i?n.forEach(r=>i.add(r)):e.set(s,n),t.delete(s),true}var oe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new St(e.body,t,n),this._timelineEngine=new yt(e.body,t,n),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r);}registerTrigger(e,t,n,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],c=[],h=jn(this._driver,r,l,c);if(l.length)throw pn();o=Ni(i,h,this._normalizer),this._triggerCache[a]=o;}this._transitionEngine.registerTrigger(t,i,o);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i);}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,n,i){if(n.charAt(0)=="@"){let[r,a]=Ze(n),o=i;this._timelineEngine.command(r,t,a,o);}else this._transitionEngine.trigger(e,t,n,i);}listen(e,t,n,i,r){if(n.charAt(0)=="@"){let[a,o]=Ze(n);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,n,i,r)}flush(e=-1){this._transitionEngine.flush(e);}get players(){return [...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e);}};function $i(s,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=ct(e[0]),e.length>1&&(n=ct(e[e.length-1]))):e instanceof Map&&(t=ct(e)),t||n?new Gi(s,t,n):null}var Gi=(()=>{class s{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let r=s.initialStylesByElement.get(t);r||s.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&($(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3);}}return s})();function ct(s){let e=null;return s.forEach((t,n)=>{Wi(n)&&(e=e||new Map,e.set(n,t));}),e}function Wi(s){return s==="display"||s==="position"}var Le=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=false;_finished=false;_started=false;_destroyed=false;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,i){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay;}_onFinish(){this._finished||(this._finished=true,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]);}init(){this._buildPlayer()&&this._preparePlayerBeforeStart();}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=true;let e=this.keyframes,t=this._triggerWebAnimation(this.element,e,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=e.length?e[e.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n));}),t}_triggerWebAnimation(e,t,n){let i=this._convertKeyframesToObject(t);try{return e.animate(i,n)}catch(r){return null}}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e);}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e);}onDestroy(e){this._onDestroyFns.push(e);}play(){let e=this._buildPlayer();e&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=true,this._specialStyles&&this._specialStyles.start()),e.play());}pause(){this.init(),this.domPlayer?.pause();}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish());}reset(){this._resetDomPlayerState(),this._destroyed=false,this._finished=false,this._started=false,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns;}_resetDomPlayerState(){this.domPlayer?.cancel();}restart(){this.reset(),this.play();}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=true,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[]);}setPosition(e){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=e*this.time);}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&e.set(i,this._finished?n:ke(this.element,i));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0;}},Be=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return Je(e,t)}getParentElement(e){return be(e)}query(e,t,n){return et(e,t,n)}computeStyle(e,t,n){return ke(e,t)}animate(e,t,n,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:n,delay:i,fill:o};r&&(l.easing=r);let c=new Map,h=a.filter(y=>y instanceof Le);Mn(n,i)&&h.forEach(y=>{y.currentSnapshot.forEach((m,g)=>c.set(g,m));});let u=Pn(t).map(y=>new Map(y));u=Cn(e,u,c);let S=$i(e,u);return new Le(e,u,l,S)}};var Ce="@",Wn="@.disabled",ze=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,i){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=i;}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e);}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy();});}),this._onDestroy?.();}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,false);}insertBefore(e,t,n,i=true){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i);}removeChild(e,t,n,i){if(i){this.delegate.removeChild(e,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate);}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,i){this.delegate.setAttribute(e,t,n,i);}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,n,i){this.delegate.setStyle(e,t,n,i);}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n);}setProperty(e,t,n){t.charAt(0)==Ce&&t==Wn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,n,i){return this.delegate.listen(e,t,n,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},vt=class extends ze{factory;constructor(e,t,n,i,r){super(t,n,i,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,n){t.charAt(0)==Ce?t.charAt(1)=="."&&t==Wn?(n=n===void 0?true:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n);}listen(e,t,n,i){if(t.charAt(0)==Ce){let r=Hi(e),a=t.slice(1),o="";return a.charAt(0)!=Ce&&([a,o]=Yi(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,n,l);})}return this.delegate.listen(e,t,n,i)}};function Hi(s){switch(s){case "body":return document.body;case "document":return document;case "window":return window;default:return s}}function Yi(s){let e=s.indexOf("."),t=s.substring(0,e),n=s.slice(e+1);return [t,n]}var xe=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i);};}createRenderer(e,t){let i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new ze("",i,this.engine,u),c.set(i,h);}return h}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=c=>{Array.isArray(c)?c.forEach(o):this.engine.registerTrigger(r,a,e,c.name,c);};return t.data.animation.forEach(o),new vt(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,n){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o);}),this._animationCallbacksBuffer=[];});}),i.push([t,n]);}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId);}),this.delegate.end&&this.delegate.end();}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e);}};var Zi=(()=>{class s extends oe{constructor(t,n,i){super(t,n,i);}ngOnDestroy(){this.flush();}static \u0275fac=function(n){return new(n||s)(b(Q$3),b(J),b(ee))};static \u0275prov=R$1({token:s,factory:s.\u0275fac})}return s})();function Ji(){return new Ne}function es(){return new xe(p(rh),p(oe),p(J$3))}var Hn=[{provide:ee,useFactory:Ji},{provide:oe,useClass:Zi},{provide:hr,useFactory:es}],ts=[{provide:J,useFactory:()=>new Be},{provide:gI,useFactory:()=>"BrowserAnimations"},...Hn];function Yn(){return it$1("NgEagerAnimations"),[...ts]}var Tt=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"};var Xn=new D$1("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new Tt});var ns=s=>s[0]?.path==="agentos"?{consumed:s}:null,is=(s,e)=>{let t=e.url.replace(/^\/agentos/,"");return p(It$1).parseUrl(t.startsWith("/")?t:`/${t}`)},Zn=[{matcher:ns,canActivate:[is],children:[]},{path:"",loadChildren:()=>import('./chunk-BYotL0cD.js').then(function(n){return n.N}).then(s=>s.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];function ss(s){return ()=>B$1(null,null,function*(){let{UserStateService:e}=yield import('./chunk-BYotL0cD.js').then(function(n){return n.N}),t=s.get(e);yield iw(t.loadMe().pipe(Wn$2(n=>(console.warn("Failed to load current user",n),_$3(null)))));})}var Jn={providers:[hI(),P$({eventCoalescing:true}),fA(Zn),RN(),Yn(),{provide:Xn,useValue:{duration:3e3}},{provide:Df,useFactory:ss,deps:[we$3],multi:true},zc({basePath:"/api/agentos"}),{provide:Ve$1,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};var Ke=class s{title="client";static \u0275fac=function(t){return new(t||s)};static \u0275cmp=vf({type:s,selectors:[["app-root"]],decls:1,vars:0,template:function(t,n){t&1&&lc(0,"router-outlet");},dependencies:[hA,Oh],encapsulation:2,changeDetection:1})};iN(Ke,Jn).catch(s=>console.error(s));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(s=>console.error("[SW] Registration failed:",s));});export{$t$1 as $,Ae$1 as A,yT as B,Cf as C,vT as D,Mi$2 as E,Sg as F,G,dT as H,Iv as I,mT as J,D as K,Le$2 as L,Me$4 as M,NT as N,Oh as O,De$3 as P,Ae$4 as Q,Rf as R,Sf as S,$$1 as T,Oe$1 as U,Ee$1 as V,W,Ve as X,Os as Y,pw as Z,_$3 as _,yb as a,D$1 as a$,Wn$2 as a0,Xm as a1,Se as a2,gT as a3,Te$1 as a4,k as a5,WT as a6,mc as a7,N$ as a8,Jy as a9,_v as aA,y_ as aB,m_ as aC,w_ as aD,u_ as aE,kM as aF,g_ as aG,F$1 as aH,B$1 as aI,iw as aJ,av as aK,nv as aL,iv as aM,_$1 as aN,Re$1 as aO,A$2 as aP,z$4 as aQ,Ce$1 as aR,W$3 as aS,be$4 as aT,vr as aU,Y$1 as aV,se$1 as aW,co as aX,Ft$1 as aY,kn$2 as aZ,Mm as a_,PT as aa,I_ as ab,N as ac,Ie$1 as ad,Cv as ae,Ms as af,pu as ag,v_ as ah,E_ as ai,NC as aj,U as ak,Y as al,we$1 as am,j$3 as an,Pn$2 as ao,ae$1 as ap,gw as aq,z$1 as ar,me$1 as as,de$1 as at,be$1 as au,J$1 as av,ne$1 as aw,he$3 as ax,BM as ay,Mv as az,bf as b,A$ as b$,Ys as b0,Ri$2 as b1,Er as b2,we$3 as b3,Z$2 as b4,sn$2 as b5,Ja as b6,lo as b7,tr as b8,cn$2 as b9,et$1 as bA,J$3 as bB,Ce$4 as bC,Ht as bD,_e as bE,I as bF,Mn$1 as bG,Dw as bH,vn$1 as bI,Aa as bJ,ye$1 as bK,Nn$1 as bL,U$1 as bM,Xn$1 as bN,_$2 as bO,Pr as bP,ft$1 as bQ,Tt$1 as bR,Jr as bS,en$1 as bT,Me$3 as bU,bt$1 as bV,Jn$1 as bW,ii$1 as bX,wi$1 as bY,Yi$1 as bZ,Oe$2 as b_,ae$2 as ba,Qy as bb,p_ as bc,xn$2 as bd,XS as be,y$2 as bf,kr as bg,k$1 as bh,xo as bi,AM as bj,ov as bk,ot$1 as bl,Eo as bm,_u as bn,Or as bo,Tu as bp,b as bq,Q$3 as br,Qe as bs,pc as bt,Ve$2 as bu,lp as bv,mp as bw,mt$1 as bx,ro as by,On$2 as bz,It$1 as c,Ne$1 as c$,ji$1 as c0,ww as c1,yi$1 as c2,bn$1 as c3,Nu as c4,nt$1 as c5,ge$2 as c6,R$ as c7,Zt$1 as c8,bi$2 as c9,he$1 as cA,Dr as cB,ce$1 as cC,ye as cD,qe as cE,L$ as cF,Me$1 as cG,yw as cH,L$1 as cI,dp as cJ,ne as cK,Tw as cL,_w as cM,Mw as cN,x$ as cO,ee$1 as cP,re$1 as cQ,ko as cR,vp as cS,$e as cT,Ue as cU,Et$1 as cV,Ne$2 as cW,W$1 as cX,Be$1 as cY,le as cZ,Iw as c_,ct$1 as ca,lt$1 as cb,zs as cc,AN as cd,AT as ce,xT as cf,Ni$1 as cg,ka as ch,uv as ci,Mf as cj,Nf as ck,fc as cl,oM as cm,pv as cn,ms as co,dv as cp,kT as cq,Xy as cr,vg as cs,l_ as ct,ge$1 as cu,uA as cv,Oo as cw,Mu as cx,Sw as cy,qt$1 as cz,pT as d,te as d0,xf as d1,Z$1 as d2,jM as d3,PM as d4,UM as d5,Dg as d6,Tv as d7,bv as d8,O$ as d9,lv as da,Tf as db,_f as dc,pe$1 as dd,Sv as de,bT as e,dc as f,cS as g,hT as h,ie$1 as i,jD as j,ig as k,lc as l,sg as m,R$1 as n,wr as o,p,gv as q,r_ as r,sS as s,tv as t,uc as u,vf as v,w$1 as w,x$2 as x,y,za as z};