@whoz-oss/coday-client 0.0.0-workstream-forge.284 → 0.0.0-workstream-forge.286

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/3rdpartylicenses.txt +52 -0
  2. package/browser/{chunk-BYsAPdst.js → chunk-5mGW4E0G.js} +1 -1
  3. package/browser/chunk-B4ZKQxLi.js +1 -0
  4. package/browser/chunk-B6Jjbp7r.js +1 -0
  5. package/browser/chunk-BDdxWZSD.js +2 -0
  6. package/browser/chunk-BFMfi7bN.js +1 -0
  7. package/browser/chunk-BGKOG_jF.js +1 -0
  8. package/browser/chunk-BIv3GA0j.js +1 -0
  9. package/browser/chunk-BRKEdS-H.js +1 -0
  10. package/browser/{chunk-BQrOLW8s.js → chunk-BSLGGdgS.js} +1 -1
  11. package/browser/{chunk-DB_JDbO5.js → chunk-BWOdgPpL.js} +1 -1
  12. package/browser/chunk-BYBCnWol.js +1 -0
  13. package/browser/chunk-BaZs2cqq.js +1 -0
  14. package/browser/{chunk-BXYAYYIa.js → chunk-BecFkRj3.js} +1 -1
  15. package/browser/{chunk-Bl2q9K-9.js → chunk-BgspkyJn.js} +1 -1
  16. package/browser/chunk-BtNRYep-.js +16 -0
  17. package/browser/chunk-BuupDt2w.js +1 -0
  18. package/browser/chunk-C-TFPDAn.js +1 -0
  19. package/browser/{chunk-CK-0hHs3.js → chunk-C4AQsMm0.js} +1 -1
  20. package/browser/{chunk-BbXsFpeY.js → chunk-C8kRHbPY.js} +1 -1
  21. package/browser/chunk-C9I0IDkC.js +1 -0
  22. package/browser/chunk-C9Im1XQZ.js +1 -0
  23. package/browser/chunk-CBa63htl.js +1 -0
  24. package/browser/chunk-CR2ZgYm1.js +1 -0
  25. package/browser/chunk-CTnGJhEu.js +1 -0
  26. package/browser/chunk-CV72_wbg.js +690 -0
  27. package/browser/chunk-Cgng0NyG.js +1 -0
  28. package/browser/chunk-Cht3Sl44.js +1 -0
  29. package/browser/chunk-CpXnuzhL.js +1 -0
  30. package/browser/chunk-Cw_G-BTP.js +1 -0
  31. package/browser/chunk-D48e7Jxo.js +2 -0
  32. package/browser/chunk-DEd4dYEy.js +1 -0
  33. package/browser/chunk-DII4lC8r.js +1 -0
  34. package/browser/chunk-DTHI-QLx.js +61 -0
  35. package/browser/chunk-DUksmlzj.js +1 -0
  36. package/browser/chunk-DWnk-InR.js +1 -0
  37. package/browser/{chunk-DM86JaK-.js → chunk-DZzoCiPa.js} +1 -1
  38. package/browser/chunk-Da_8VPJd.js +1 -0
  39. package/browser/chunk-DeS6UHdw.js +1 -0
  40. package/browser/{chunk-BxyolXEz.js → chunk-DtO-loh9.js} +1 -1
  41. package/browser/chunk-DvgyKpON.js +2 -0
  42. package/browser/chunk-O_4Rn5qq.js +1 -0
  43. package/browser/chunk-RNbGWl1w.js +1 -0
  44. package/browser/chunk-YSYGmtzS.js +1 -0
  45. package/browser/chunk-cs0QcDnt.js +1 -0
  46. package/browser/chunk-gOvITjLx.js +1 -0
  47. package/browser/{chunk-BEjdqTuv.js → chunk-hqzAiSeU.js} +1 -1
  48. package/browser/chunk-spovbUSX.js +1 -0
  49. package/browser/chunk-wS9pwsFZ.js +1 -0
  50. package/browser/index.html +1 -1
  51. package/browser/main-2W2EKPFF.js +1253 -0
  52. package/package.json +1 -1
  53. package/browser/chunk-0JbcW6XU.js +0 -1
  54. package/browser/chunk-Bb-c0ROH.js +0 -1
  55. package/browser/chunk-BdGvps3l.js +0 -1
  56. package/browser/chunk-BiVIEQ9a.js +0 -1
  57. package/browser/chunk-BiZzqeAP.js +0 -1
  58. package/browser/chunk-BkYVWjXM.js +0 -1
  59. package/browser/chunk-Bl_O73CB.js +0 -1
  60. package/browser/chunk-Bw6tipQO.js +0 -1
  61. package/browser/chunk-C1XiLUJe.js +0 -1
  62. package/browser/chunk-CCAHEyrn.js +0 -1
  63. package/browser/chunk-CKVl5Clw.js +0 -1
  64. package/browser/chunk-CMLKq_d1.js +0 -1
  65. package/browser/chunk-CUuUezdS.js +0 -2
  66. package/browser/chunk-Cfwcs5Kc.js +0 -1
  67. package/browser/chunk-Csvi_3to.js +0 -1
  68. package/browser/chunk-CxGh-OSF.js +0 -1
  69. package/browser/chunk-Cz-Jz4NK.js +0 -1
  70. package/browser/chunk-D4hFKIuc.js +0 -1
  71. package/browser/chunk-D8p-F6vy.js +0 -1
  72. package/browser/chunk-DCI35EBd.js +0 -1
  73. package/browser/chunk-DEGiKLCd.js +0 -1
  74. package/browser/chunk-DJVPAAOR.js +0 -1
  75. package/browser/chunk-DNMiaqnS.js +0 -2
  76. package/browser/chunk-DQzepkz_.js +0 -1
  77. package/browser/chunk-DTUbUaG8.js +0 -1
  78. package/browser/chunk-DV9A52hr.js +0 -2
  79. package/browser/chunk-Dm98JW0v.js +0 -1
  80. package/browser/chunk-TljffFCf.js +0 -1
  81. package/browser/chunk-Yh9s3GFa.js +0 -1
  82. package/browser/chunk-YmtXKFPm.js +0 -1
  83. package/browser/chunk-gJxWDxbF.js +0 -1
  84. package/browser/chunk-idHJ_h4K.js +0 -1
  85. package/browser/chunk-iiXgVxfs.js +0 -1
  86. package/browser/chunk-qF4-8qpt.js +0 -671
  87. package/browser/chunk-rqfGv-7x.js +0 -1
  88. package/browser/chunk-tlmUd1Et.js +0 -1
  89. package/browser/main-C2L5IBU7.js +0 -1253
@@ -1,1253 +0,0 @@
1
- var p$1=Object.create;var j$5=Object.defineProperty,q$2=Object.defineProperties,r=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertyNames,g$1=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,k$3=Object.prototype.hasOwnProperty,m$3=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j$5(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c,w$1=(a,b)=>{for(var c in b||={})k$3.call(b,c)&&l(a,c,b[c]);if(g$1)for(var c of g$1(b))m$3.call(b,c)&&l(a,c,b[c]);return a},x$1=(a,b)=>q$2(a,s(b));var y$1=(a,b)=>{var c={};for(var d in a)k$3.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g$1)for(var d of g$1(a))b.indexOf(d)<0&&m$3.call(a,d)&&(c[d]=a[d]);return c};var z$2=(a,b)=>()=>{try{return b||a((b={exports:{}}).exports,b),b.exports}catch(c){throw b=0,c}};var v$2=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of t(b))!k$3.call(a,e)&&e!==c&&j$5(a,e,{get:()=>b[e],enumerable:!(d=r(b,e))||d.enumerable});return a};var A$3=(a,b,c)=>(c=a!=null?p$1(u(a)):{},v$2(!a||!a.__esModule?j$5(c,"default",{value:a,enumerable:true}):c,a));var B$3=(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 M(e){return typeof e=="function"}function Rt$1(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 Bo$1=Rt$1(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 en$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var ee$5=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(M(r))try{r();}catch(i){t=i instanceof Bo$1?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Zl(i);}catch(s){t=t??[],s instanceof Bo$1?t=[...t,...s.errors]:t.push(s);}}if(t)throw new Bo$1(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Zl(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)&&en$2(n,t);}remove(t){let{_finalizers:n}=this;n&&en$2(n,t),t instanceof e&&t._removeParent(this);}};ee$5.EMPTY=(()=>{let e=new ee$5;return e.closed=true,e})();var aa$1=ee$5.EMPTY;function Vo$1(e){return e instanceof ee$5||e&&"closed"in e&&M(e.remove)&&M(e.add)&&M(e.unsubscribe)}function Zl(e){M(e)?e():e.unsubscribe();}var Pe$2={Promise:void 0};var Bn$3={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Ho$1(e){Bn$3.setTimeout(()=>{throw e});}function ft$4(){}function Vn$3(e){e();}var nn$2=class nn extends ee$5{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Vo$1(t)&&t.add(this)):this.destination=iy;}static create(t,n,r){return new Le$2(t,n,r)}next(t){this.isStopped?la$1():this._next(t);}error(t){this.isStopped?la$1():(this.isStopped=true,this._error(t));}complete(){this.isStopped?la$1():(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 da=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){Uo$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){Uo$1(r);}else Uo$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){Uo$1(n);}}},Le$2=class Le extends nn$2{constructor(t,n,r){super();let o;if(M(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new da(o);}};function Uo$1(e){Ho$1(e);}function oy(e){throw e}function la$1(e,t){}var iy={closed:true,next:ft$4,error:oy,complete:ft$4};var Hn$3=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ue$4(e){return e}function sy(...e){return fa(e)}function fa(e){return e.length===0?ue$4:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var R$2=(()=>{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=cy(n)?n:new Le$2(n,r,o);return Vn$3(()=>{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=Jl(r),new r((o,i)=>{let s=new Le$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)}[Hn$3](){return this}pipe(...n){return fa(n)(this)}toPromise(n){return n=Jl(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 Jl(e){var t;return (t=e??Pe$2.Promise)!==null&&t!==void 0?t:Promise}function ay(e){return e&&M(e.next)&&M(e.error)&&M(e.complete)}function cy(e){return e&&e instanceof nn$2||ay(e)&&Vo$1(e)}var ed=Rt$1(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var le$4=(()=>{class e extends R$2{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new $o$1(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ed}next(n){Vn$3(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Vn$3(()=>{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(){Vn$3(()=>{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?aa$1:(this.currentObservers=null,i.push(n),new ee$5(()=>{this.currentObservers=null,en$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new R$2;return n.source=this,n}}return e.create=(t,n)=>new $o$1(t,n),e})(),$o$1=class $o extends le$4{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:aa$1}};var Tr$1=class Tr extends le$4{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 rn$2=new R$2(e=>e.complete());function zo$1(e){return e&&M(e.schedule)}function pa(e){return e[e.length-1]}function Go$1(e){return M(pa(e))?e.pop():void 0}function Ye$2(e){return zo$1(pa(e))?e.pop():void 0}function td(e,t){return typeof pa(e)=="number"?e.pop():t}function rd(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 nd(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 on$2(e){return this instanceof on$2?(this.v=e,this):new on$2(e)}function od(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(y){return new Promise(function(D,_){i.push([f,y,D,_])>1||c(f,y);})},h&&(o[f]=h(o[f])));}function c(f,h){try{u(r[f](h));}catch(y){p(i[0][3],y);}}function u(f){f.value instanceof on$2?Promise.resolve(f.value.v).then(l,d):p(i[0][2],f);}function l(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function id(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 nd=="function"?nd(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 Wo$1=e=>e&&typeof e.length=="number"&&typeof e!="function";function qo$1(e){return M(e?.then)}function Zo$1(e){return M(e[Hn$3])}function Yo$1(e){return Symbol.asyncIterator&&M(e?.[Symbol.asyncIterator])}function Qo$1(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 uy(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ko$1=uy();function Xo$1(e){return M(e?.[Ko$1])}function Jo$1(e){return od(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield on$2(n.read());if(o)return yield on$2(void 0);yield yield on$2(r);}}finally{n.releaseLock();}})}function ei$3(e){return M(e?.getReader)}function A$2(e){if(e instanceof R$2)return e;if(e!=null){if(Zo$1(e))return ly(e);if(Wo$1(e))return dy(e);if(qo$1(e))return fy(e);if(Yo$1(e))return sd(e);if(Xo$1(e))return py(e);if(ei$3(e))return hy(e)}throw Qo$1(e)}function ly(e){return new R$2(t=>{let n=e[Hn$3]();if(M(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function dy(e){return new R$2(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function fy(e){return new R$2(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Ho$1);})}function py(e){return new R$2(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function sd(e){return new R$2(t=>{gy(e,t).catch(n=>t.error(n));})}function hy(e){return sd(Jo$1(e))}function gy(e,t){var n,r,o,i;return rd(this,void 0,void 0,function*(){try{for(n=id(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 oe$3(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 my(e){return M(e?.lift)}function w(e){return t=>{if(my(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function C(e,t,n,r,o){return new ha(e,t,n,r,o)}var ha=class extends nn$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 ti$3(e,t=0){return w((n,r)=>{n.subscribe(C(r,o=>oe$3(r,e,()=>r.next(o),t),()=>oe$3(r,e,()=>r.complete(),t),o=>oe$3(r,e,()=>r.error(o),t)));})}function ni$3(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function ad(e,t){return A$2(e).pipe(ni$3(t),ti$3(t))}function cd(e,t){return A$2(e).pipe(ni$3(t),ti$3(t))}function ud(e,t){return new R$2(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function ld(e,t){return new R$2(n=>{let r;return oe$3(n,t,()=>{r=e[Ko$1](),oe$3(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);}),()=>M(r?.return)&&r.return()})}function ri$3(e,t){if(!e)throw new Error("Iterable cannot be null");return new R$2(n=>{oe$3(n,t,()=>{let r=e[Symbol.asyncIterator]();oe$3(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function dd(e,t){return ri$3(Jo$1(e),t)}function fd(e,t){if(e!=null){if(Zo$1(e))return ad(e,t);if(Wo$1(e))return ud(e,t);if(qo$1(e))return cd(e,t);if(Yo$1(e))return ri$3(e,t);if(Xo$1(e))return ld(e,t);if(ei$3(e))return dd(e,t)}throw Qo$1(e)}function Qe$3(e,t){return t?fd(e,t):A$2(e)}function br$1(...e){let t=Ye$2(e);return Qe$3(e,t)}var sn$2=Rt$1(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function yy(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Le$2({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{n?r(t.defaultValue):o(new sn$2);}});e.subscribe(i);})}function ne$3(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{r.next(e.call(t,i,o++));}));})}var{isArray:vy}=Array,{getPrototypeOf:Dy,prototype:Ey,keys:Iy}=Object;function oi$3(e){if(e.length===1){let t=e[0];if(vy(t))return {args:t,keys:null};if(wy(t)){let n=Iy(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function wy(e){return e&&typeof e=="object"&&Dy(e)===Ey}var{isArray:Cy}=Array;function Ty(e,t){return Cy(t)?e(...t):e(t)}function ii$3(e){return ne$3(t=>Ty(e,t))}function si$3(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function by(...e){let t=Ye$2(e),n=Go$1(e),{args:r,keys:o}=oi$3(e);if(r.length===0)return Qe$3([],t);let i=new R$2(Sy(r,t,o?s=>si$3(o,s):ue$4));return n?i.pipe(ii$3(n)):i}function Sy(e,t,n=ue$4){return r=>{pd(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)pd(t,()=>{let u=Qe$3(e[c],t),l=false;u.subscribe(C(r,d=>{i[c]=d,l||(l=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function pd(e,t,n){e?oe$3(n,e,t):t();}function _y(...e){let t=Go$1(e),{args:n,keys:r}=oi$3(e),o=new R$2(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;A$2(n[l]).subscribe(C(i,p=>{d||(d=true,u--),a[l]=p;},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?si$3(r,a):a),i.complete());}));}});return t?o.pipe(ii$3(t)):o}function ai$3(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=false,p=()=>{d&&!c.length&&!u&&t.complete();},f=y=>u<r?h(y):c.push(y),h=y=>{i&&t.next(y),u++;let D=false;A$2(n(y,l++)).subscribe(C(t,_=>{i?f(_):t.next(_);},()=>{D=true;},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){let _=c.shift();s?oe$3(t,s,()=>h(_)):h(_);}p();}catch(_){t.error(_);}}));};return e.subscribe(C(t,f,()=>{d=true,p();})),()=>{}}function pt$4(e,t,n=1/0){return M(t)?pt$4((r,o)=>ne$3((i,s)=>t(r,i,o,s))(A$2(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>ai$3(r,o,e,n)))}function Sr$1(e=1/0){return pt$4(ue$4,e)}function My(...e){let t=Ye$2(e),n=td(e,1/0),r=e;return r.length?r.length===1?A$2(r[0]):Sr$1(n)(Qe$3(r,t)):rn$2}function Ot$1(e,t){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>e.call(t,i,o++)&&r.next(i)));})}function ga(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(C(n,void 0,void 0,s=>{i=A$2(e(s,ga(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}var ci$3=class ci extends ee$5{constructor(t,n){super();}schedule(t,n=0){return this}};var _r$1={setInterval(e,t,...n){let{delegate:r}=_r$1;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var ui$3=class ui extends ci$3{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 _r$1.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&&_r$1.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,en$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Mr$1={now(){return (Mr$1.delegate||Date).now()},delegate:void 0};var Un$3=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)}};Un$3.now=Mr$1.now;var li$3=class li extends Un$3{constructor(t,n=Un$3.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 ht$4=new li$3(ui$3),hd=ht$4;function gd(e,t=ht$4){return w((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(C(r,u=>{i=u,s=t.now(),o||(o=t.schedule(c,e),r.add(o));},()=>{a(),r.complete();},void 0,()=>{i=o=null;}));})}function di$3(e){return w((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function md(e){return Ot$1((t,n)=>e<=n)}function yd(){return Sr$1(1)}function kt$1(...e){return yd()(Qe$3(e,Ye$2(e)))}function vd(...e){let t=Ye$2(e);return w((n,r)=>{(t?kt$1(e,n,t):kt$1(e,n)).subscribe(r);})}function ma(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(C(r,c=>{o?.unsubscribe();let u=0,l=i++;A$2(e(c,l)).subscribe(o=C(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function Dd(e,t,n){let r=M(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(C(i,c=>{var 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);}));}):ue$4}var Nr$1=class Nr extends le$4{constructor(t=1/0,n=1/0,r=Mr$1){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 Ny(e,t){let n=M(e)?e:()=>e,r=o=>o.error(n());return new R$2(r)}function xy(e){return !!e&&(e instanceof R$2||M(e.lift)&&M(e.subscribe))}function fi$3(e){return e instanceof Date&&!isNaN(e)}var Ed=Rt$1(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function Ay(e,t){let{first:n,each:r,with:o=Ry,scheduler:i=ht$4,meta:s=null}=fi$3(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return w((a,c)=>{let u,l,d=null,p=0,f=h=>{l=oe$3(c,i,()=>{try{u.unsubscribe(),A$2(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(y){c.error(y);}},h);};u=a.subscribe(C(c,h=>{l?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function Ry(e){throw new Ed(e)}function Oy(e){return new R$2(t=>{A$2(e()).subscribe(t);})}function an$2(e=0,t,n=hd){let r=-1;return t!=null&&(zo$1(t)?n=t:r=t),new R$2(o=>{let i=fi$3(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 Id(e){return w((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(C(n,u=>{r=!0,o=u,i||A$2(e(u)).subscribe(i=C(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function ky(e,t=ht$4){return Id(()=>an$2(e,t))}function wd(e,t,n,r,o){return (i,s)=>{let a=n,c=t,u=0;i.subscribe(C(s,l=>{let d=u++;c=a?e(c,l,d):(a=true,l),s.next(c);},o));}}function pi$3(e,t){return M(t)?pt$4(e,t,1):pt$4(e,1)}function Cd(e){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function cn$2(e){return e<=0?()=>rn$2:w((t,n)=>{let r=0;t.subscribe(C(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function ya(){return w((e,t)=>{e.subscribe(C(t,ft$4));})}function va(e){return ne$3(()=>e)}function Da(e,t){return t?n=>kt$1(t.pipe(cn$2(1),ya()),n.pipe(Da(e))):pt$4((n,r)=>A$2(e(n,r)).pipe(cn$2(1),va(n)))}function Fy(e,t=ht$4){let n=an$2(e,t);return Da(()=>n)}function Py(e,t){return w((n,r)=>{let o=new Set;n.subscribe(C(r,i=>{let s=e?e(i):i;o.has(s)||(o.add(s),r.next(i));})),t&&A$2(t).subscribe(C(r,()=>o.clear(),ft$4));})}function Td(e,t=ue$4){return e=e??Ly,w((n,r)=>{let o,i=!0;n.subscribe(C(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s));}));})}function Ly(e,t){return e===t}function bd(e=jy){return w((t,n)=>{let r=!1;t.subscribe(C(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function jy(){return new sn$2}function By(...e){return t=>kt$1(t,br$1(...e))}function Ea$1(e,t){return t?n=>n.pipe(Ea$1((r,o)=>A$2(e(r,o)).pipe(ne$3((i,s)=>t(r,i,o,s))))):w((n,r)=>{let o=0,i=null,s=!1;n.subscribe(C(r,a=>{i||(i=C(r,void 0,()=>{i=null,s&&r.complete();}),A$2(e(a,o++)).subscribe(i));},()=>{s=!0,!i&&r.complete();}));})}function Vy(e,t=1/0,n){return t=(t||0)<1?1/0:t,w((r,o)=>ai$3(r,o,e,t,void 0,!0,n))}function Hy(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Ot$1((o,i)=>e(o,i,r)):ue$4,cn$2(1),n?Cd(t):bd(()=>new sn$2))}function Uy(e){return e<=0?()=>rn$2:w((t,n)=>{let r=[];t.subscribe(C(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function $y(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?ue$4:w((i,s)=>{let a=0,c,u=()=>{let l=!1;c=i.subscribe(C(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,u()):l=!0;};if(r!=null){let f=typeof r=="number"?an$2(r):A$2(r(d,a)),h=C(s,()=>{h.unsubscribe(),p();},()=>{s.complete();});f.subscribe(h);}else p();}else s.error(d);})),l&&(c.unsubscribe(),c=null,u());};u();})}function zy(e,t){return w(wd(e,t,arguments.length>=2,!0))}function wa(e={}){let{connector:t=()=>new le$4,resetOnError:n=true,resetOnComplete:r=true,resetOnRefCountZero:o=true}=e;return i=>{let s,a,c,u=0,l=false,d=false,p=()=>{a?.unsubscribe(),a=void 0;},f=()=>{p(),s=c=void 0,l=d=false;},h=()=>{let y=s;f(),y?.unsubscribe();};return w((y,D)=>{u++,!d&&!l&&p();let _=c=c??t();D.add(()=>{u--,u===0&&!d&&!l&&(a=Ia(h,o));}),_.subscribe(D),!s&&u>0&&(s=new Le$2({next:$=>_.next($),error:$=>{d=!0,p(),a=Ia(f,n,$),_.error($);},complete:()=>{l=!0,p(),a=Ia(f,r),_.complete();}}),A$2(y).subscribe(s));})(i)}}function Ia(e,t,...n){if(t===true){e();return}if(t===false)return;let r=new Le$2({next:()=>{r.unsubscribe(),e();}});return A$2(t(...n)).subscribe(r)}function Gy(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,wa({connector:()=>new Nr$1(r,t,n),resetOnError:true,resetOnComplete:false,resetOnRefCountZero:o})}function Sd(e){return w((t,n)=>{A$2(e).subscribe(C(n,()=>n.complete(),ft$4)),!n.closed&&t.subscribe(n);})}function Wy(e,t=false){return w((n,r)=>{let o=0;n.subscribe(C(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var de$5=null,hi$3=false,un$2=1,q$1=Symbol("SIGNAL");function I(e){let t=de$5;return de$5=e,t}function gi$3(){return de$5}var Ft$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 gt$3(e){if(hi$3)throw new Error("");if(de$5===null)return;de$5.consumerOnSignalRead(e);let t=de$5.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=de$5.recomputing;if(r&&(n=t!==void 0?t.nextProducer:de$5.producers,n!==void 0&&n.producer===e)){de$5.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=un$2;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===de$5&&(!r||o.knownValidAtEpoch===un$2))return;let i=Gn$3(de$5),s={producer:e,consumer:de$5,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:un$2,lastReadVersion:e.version,nextConsumer:void 0};de$5.producersTail=s,t!==void 0?t.nextProducer=s:de$5.producers=s,i&&xd(e,s);}function _d(){un$2++;}function fn$2(e){if(!(Gn$3(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===un$2)){if(!e.producerMustRecompute(e)&&!zn$3(e)){$n$3(e);return}e.producerRecomputeValue(e),$n$3(e);}}function Ca(e){if(e.consumers===void 0)return;let t=hi$3;hi$3=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Zy(r);}}finally{hi$3=t;}}function Ta(){return de$5?.consumerAllowSignalWrites!==false}function Zy(e){e.dirty=true,Ca(e),e.consumerMarkedDirty?.(e);}function $n$3(e){e.dirty=false,e.lastCleanEpoch=un$2;}function mt$4(e){return e&&Md(e),I(e)}function Md(e){if(e.producersTail?.knownValidAtEpoch===un$2){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Pt$3(e,t){I(t),e&&Nd(e);}function Nd(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Gn$3(e))do n=ba(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function zn$3(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(fn$2(n),r!==n.version))return true}return false}function Lt$2(e){if(Gn$3(e)){let t=e.producers;for(;t!==void 0;)t=ba(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function xd(e,t){let n=e.consumersTail,r=Gn$3(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)xd(o.producer,o);}function ba(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,!Gn$3(t)){let i=t.producers;for(;i!==void 0;)i=ba(i);}return n}function Gn$3(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Ar$1(e,t){return Object.is(e,t)}function Rr$1(e,t){let n=Object.create(Yy);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(fn$2(n),gt$3(n),n.value===Ke$3)throw n.error;return n.value};return r[q$1]=n,r}var ln$1=Symbol("UNSET"),dn$3=Symbol("COMPUTING"),Ke$3=Symbol("ERRORED"),Yy=x$1(w$1({},Ft$2),{value:ln$1,dirty:true,error:null,equal:Ar$1,kind:"computed",producerMustRecompute(e){return e.value===ln$1||e.value===dn$3},producerRecomputeValue(e){if(e.value===dn$3)throw new Error("");let t=e.value;e.value=dn$3;let n=mt$4(e),r,o=false;try{r=e.computation(),I(null),o=t!==ln$1&&t!==Ke$3&&r!==Ke$3&&e.equal(t,r);}catch(i){r=Ke$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Qy(){throw new Error}var Ad=Qy;function Rd(e){Ad(e);}function Sa(e){Ad=e;}function _a(e,t){let n=Object.create(Or);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Od(n);return r[q$1]=n,[r,s=>jt$2(n,s),s=>mi$3(n,s)]}function Od(e){return gt$3(e),e.value}function jt$2(e,t){Ta()||Rd(e),e.equal(e.value,t)||(e.value=t,Xy(e));}function mi$3(e,t){Ta()||Rd(e),jt$2(e,t(e.value));}var Or=x$1(w$1({},Ft$2),{equal:Ar$1,value:void 0,kind:"signal"});function Xy(e){e.version++,_d(),Ca(e);}var Ma=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Na(e){if(e.dirty=false,e.version>0&&!zn$3(e))return;e.version++;let t=mt$4(e);try{e.cleanup(),e.fn();}finally{Pt$3(e,t);}}var xa;function yi$3(){return xa}function Xe(e){let t=xa;return xa=e,t}var kd=Symbol("NotFound");function Wn$3(e){return e===kd||e?.name==="\u0275NotFound"}function Aa(e,t,n){let r=Object.create(Jy);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(fn$2(r),gt$3(r),r.value===Ke$3)throw r.error;return r.value};return i[q$1]=r,i}function Fd(e,t){fn$2(e),jt$2(e,t),$n$3(e);}function Pd(e,t){if(fn$2(e),e.value===Ke$3)throw e.error;mi$3(e,t),$n$3(e);}var Jy=x$1(w$1({},Ft$2),{value:ln$1,dirty:true,error:null,equal:Ar$1,kind:"linkedSignal",producerMustRecompute(e){return e.value===ln$1||e.value===dn$3},producerRecomputeValue(e){if(e.value===dn$3)throw new Error("");let t=e.value;e.value=dn$3;let n=mt$4(e),r,o=false;try{let i=e.source(),s=t!==ln$1&&t!==Ke$3,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,I(null),o=s&&r!==Ke$3&&e.equal(t,r);}catch(i){r=Ke$3,e.error=i;}finally{Pt$3(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function Ld(e){let t=I(null);try{return e()}finally{I(t);}}var Ti$3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",m$2=class m extends Error{code;constructor(t,n){super(Je$3(t,n)),this.code=t;}};function ev(e){return `NG0${Math.abs(e)}`}function Je$3(e,t){return `${ev(e)}${t?": "+t:""}`}function k$2(e){for(let t in e)if(e[t]===k$2)return t;throw Error("")}function Ud(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);}function Br(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Br).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 bi$3(e,t){return e?t?`${e} ${t}`:e:t||""}var tv=k$2({__forward_ref__:k$2});function Si$3(e){return e.__forward_ref__=Si$3,e}function re$4(e){return za(e)?e():e}function za(e){return typeof e=="function"&&e.hasOwnProperty(tv)&&e.__forward_ref__===Si$3}function x(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Vr(e){return {providers:e.providers||[],imports:e.imports||[]}}function Hr(e){return rv(e,_i$3)}function nv(e){return Hr(e)!==null}function rv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function ov(e){let t=e?.[_i$3]??null;return t||null}function Oa(e){return e&&e.hasOwnProperty(Di$3)?e[Di$3]:null}var _i$3=k$2({\u0275prov:k$2}),Di$3=k$2({\u0275inj:k$2}),T$4=class T{_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=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function Ga(e){return e&&!!e.\u0275providers}var Wa=k$2({\u0275cmp:k$2}),qa=k$2({\u0275dir:k$2}),Za=k$2({\u0275pipe:k$2}),Ya=k$2({\u0275mod:k$2}),Fr=k$2({\u0275fac:k$2}),yn$2=k$2({__NG_ELEMENT_ID__:k$2}),jd=k$2({__NG_ENV_ID__:k$2});function $d(e){return Mi$3(e),e[Ya]||null}function Et$2(e){return Mi$3(e),e[Wa]||null}function Qa(e){return Mi$3(e),e[qa]||null}function zd(e){return Mi$3(e),e[Za]||null}function Mi$3(e,t){if(e==null)throw new m$2(-919,false)}function Z$1(e){return typeof e=="string"?e:e==null?"":String(e)}var Gd=k$2({ngErrorCode:k$2}),iv=k$2({ngErrorMessage:k$2});k$2({ngTokenPath:k$2});function Ka(e,t){return Wd("",-200)}function Ni$3(e,t){throw new m$2(-201,false)}function Wd(e,t,n){let r=new m$2(t,e);return r[Gd]=t,r[iv]=e,r}function av(e){return e[Gd]}var ka$1;function qd(){return ka$1}function fe$5(e){let t=ka$1;return ka$1=e,t}function Xa(e,t,n){let r=Hr(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;Ni$3();}var _e$4=globalThis;var cv={},pn$2=cv,uv="__NG_DI_FLAG__",Fa=class{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=hn$2(n)||0;try{return this.injector.get(t,r&8?null:pn$2,r)}catch(o){if(Wn$3(o))return o;throw o}}};function lv(e,t=0){let n=yi$3();if(n===void 0)throw new m$2(-203,false);if(n===null)return Xa(e,void 0,t);{let r=dv(t),o=n.retrieve(e,r);if(Wn$3(o)){if(r.optional)return null;throw o}return o}}function b$2(e,t=0){return (qd()||lv)(re$4(e),t)}function g(e,t){return b$2(e,hn$2(t))}function hn$2(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function dv(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Pa(e){let t=[];for(let n=0;n<e.length;n++){let r=re$4(e[n]);if(Array.isArray(r)){if(r.length===0)throw new m$2(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=fv(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(b$2(o,i));}else t.push(b$2(r));}return t}function fv(e){return e[uv]}function Bt$1(e,t){let n=e.hasOwnProperty(Fr);return n?e[Fr]:null}function Zd(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 Yd(e){return e.flat(Number.POSITIVE_INFINITY)}function xi$2(e,t){e.forEach(n=>Array.isArray(n)?xi$2(n,t):t(n));}function Ja(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function Ur(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qd(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Kd(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 Ai$3(e,t,n){let r=Yn$3(e,t);return r>=0?e[r|1]=n:(r=~r,Kd(e,r,t,n)),r}function Ri$3(e,t){let n=Yn$3(e,t);if(n>=0)return e[n|1]}function Yn$3(e,t){return pv(e,t,1)}function pv(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 Ht$1={},ie$3=[],It$2=new T$4(""),$r=new T$4("",-1),ec=new T$4(""),Zn$3=class Zn{get(t,n=pn$2){if(n===pn$2){let o=Wd("",-201);throw o.name="\u0275NotFound",o}return n}};function wt$3(e){return {\u0275providers:e}}function Xd(e){return wt$3([{provide:It$2,multi:true,useValue:e}])}function Jd(...e){return {\u0275providers:tc(true,e),\u0275fromNgModule:true}}function tc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return xi$2(t,s=>{let a=s;Ei$2(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&ef(o,i),n}function ef(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];nc(o,i=>{t(i,r);});}}function Ei$2(e,t,n,r){if(e=re$4(e),!e)return false;let o=null,i=Oa(e),s=!i&&Et$2(e);if(!i&&!s){let c=e.ngModule;if(i=Oa(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)Ei$2(u,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;xi$2(i.imports,l=>{Ei$2(l,t,n,r)&&(u||=[],u.push(l));}),u!==void 0&&ef(u,t);}if(!a){let u=Bt$1(o)||(()=>new o);t({provide:o,useFactory:u,deps:ie$3},o),t({provide:ec,useValue:o,multi:true},o),t({provide:It$2,useValue:()=>b$2(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let u=e;nc(c,l=>{t(l,u);});}}else return false;return o!==e&&e.providers!==void 0}function nc(e,t){for(let n of e)Ga(n)&&(n=n.\u0275providers),Array.isArray(n)?nc(n,t):t(n);}var hv=k$2({provide:String,useValue:k$2});function tf(e){return e!==null&&typeof e=="object"&&hv in e}function gv(e){return !!(e&&e.useExisting)}function mv(e){return !!(e&&e.useFactory)}function gn$2(e){return typeof e=="function"}function nf(e){return !!e.useClass}var zr=new T$4(""),vi$3={},Bd={},Ra;function Qn$3(){return Ra===void 0&&(Ra=new Zn$3),Ra}var pe$4=class pe{},mn$2=class mn extends pe$4{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,ja(t,s=>this.processProvider(s)),this.records.set($r,qn$3(void 0,this)),o.has("environment")&&this.records.set(pe$4,qn$3(void 0,this));let i=this.records.get(zr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ec,ie$3,{self:true}));}retrieve(t,n){let r=hn$2(n)||0;try{return this.get(t,pn$2,r)}catch(o){if(Wn$3(o))return o;throw o}}destroy(){kr(this),this._destroyed=true;let t=I(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),I(t);}}onDestroy(t){return kr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){kr(this);let n=Xe(this),r=fe$5(void 0);try{return t()}finally{Xe(n),fe$5(r);}}get(t,n=pn$2,r){if(kr(this),t.hasOwnProperty(jd))return t[jd](this);let o=hn$2(r),s=Xe(this),a=fe$5(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Iv(t)&&Hr(t);l&&this.injectableDefInScope(l)?u=qn$3(La(t),vi$3):u=null,this.records.set(t,u);}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?Qn$3():this.parent;return n=o&8&&n===pn$2?null:n,c.get(t,n)}catch(c){let u=av(c);throw u===-200||u===-201?new m$2(u,null):c}finally{fe$5(a),Xe(s);}}resolveInjectorInitializers(){let t=I(null),n=Xe(this),r=fe$5(void 0);try{let i=this.get(It$2,ie$3,{self:!0});for(let s of i)s();}finally{Xe(n),fe$5(r),I(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=re$4(t);let n=gn$2(t)?t:re$4(t&&t.provide),r=vv(t);if(!gn$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=qn$3(void 0,vi$3,true),o.factory=()=>Pa(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=I(null);try{if(n.value===Bd)throw Ka("");return n.value===vi$3&&(n.value=Bd,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Ev(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{I(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=re$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 La(e){let t=Hr(e),n=t!==null?t.factory:Bt$1(e);if(n!==null)return n;if(e instanceof T$4)throw new m$2(-204,false);if(e instanceof Function)return yv(e);throw new m$2(-204,false)}function yv(e){if(e.length>0)throw new m$2(-204,false);let n=ov(e);return n!==null?()=>n.factory(e):()=>new e}function vv(e){if(tf(e))return qn$3(void 0,e.useValue);{let t=rc(e);return qn$3(t,vi$3)}}function rc(e,t,n){let r;if(gn$2(e)){let o=re$4(e);return Bt$1(o)||La(o)}else if(tf(e))r=()=>re$4(e.useValue);else if(mv(e))r=()=>e.useFactory(...Pa(e.deps||[]));else if(gv(e))r=(o,i)=>b$2(re$4(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=re$4(e&&(e.useClass||e.provide));if(Dv(e))r=()=>new o(...Pa(e.deps));else return Bt$1(o)||La(o)}return r}function kr(e){if(e.destroyed)throw new m$2(-205,false)}function qn$3(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function Dv(e){return !!e.deps}function Ev(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Iv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function ja(e,t){for(let n of e)Array.isArray(n)?ja(n,t):n&&Ga(n)?ja(n.\u0275providers,t):t(n);}function Kn$3(e,t){let n;e instanceof mn$2?(kr(e),n=e):n=new Fa(e);let o=Xe(n),i=fe$5(void 0);try{return t()}finally{Xe(o),fe$5(i);}}function rf(){return qd()!==void 0||yi$3()!=null}var Be$3=0,E=1,S$2=2,te$3=3,Me$3=4,se$2=5,vn$2=6,Xn$3=7,Y$3=8,et=9,Ve$3=10,j$4=11,Jn$2=12,oc=13,Ut$3=14,ae$2=15,$t$3=16,Dn$3=17,tt$1=18,nt$1=19,ic=20,vt$3=21,Oi$2=22,Vt$1=23,Ee$2=24,En$3=25,rt$2=26,V$2=27,of=1,sc=6,zt$1=7,Gr=8,In$3=9,W$4=10;function Ct$2(e){return Array.isArray(e)&&typeof e[of]=="object"}function Ne$3(e){return Array.isArray(e)&&e[of]===true}function ac(e){return (e.flags&4)!==0}function Tt$3(e){return e.componentOffset>-1}function er$1(e){return (e.flags&1)===1}function ot$2(e){return !!e.template}function tr$1(e){return (e[S$2]&512)!==0}function wn$3(e){return (e[S$2]&256)===256}var cc="svg",sf="math";function xe$3(e){for(;Array.isArray(e);)e=e[Be$3];return e}function uc(e,t){return xe$3(t[e])}function Ae$2(e,t){return xe$3(t[e.index])}function ki$3(e,t){return e.data[t]}function Wr(e,t){return e[t]}function qr(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function Re$3(e,t){let n=t[e];return Ct$2(n)?n:n[Be$3]}function af(e){return (e[S$2]&4)===4}function Fi$3(e){return (e[S$2]&128)===128}function cf(e){return Ne$3(e[te$3])}function Ie$2(e,t){return t==null?null:e[t]}function lc(e){e[Dn$3]=0;}function dc(e){e[S$2]&1024||(e[S$2]|=1024,Fi$3(e)&&Cn$3(e));}function uf(e,t){for(;e>0;)t=t[Ut$3],e--;return t}function Zr(e){return !!(e[S$2]&9216||e[Ee$2]?.dirty)}function Pi$3(e){e[Ve$3].changeDetectionScheduler?.notify(8),e[S$2]&64&&(e[S$2]|=1024),Zr(e)&&Cn$3(e);}function Cn$3(e){e[Ve$3].changeDetectionScheduler?.notify(0);let t=Dt$2(e);for(;t!==null&&!(t[S$2]&8192||(t[S$2]|=8192,!Fi$3(t)));)t=Dt$2(t);}function Li$2(e,t){if(wn$3(e))throw new m$2(911,false);e[vt$3]===null&&(e[vt$3]=[]),e[vt$3].push(t);}function lf(e,t){if(e[vt$3]===null)return;let n=e[vt$3].indexOf(t);n!==-1&&e[vt$3].splice(n,1);}function Dt$2(e){let t=e[te$3];return Ne$3(t)?t[te$3]:t}function fc(e){return e[Xn$3]??=[]}function pc(e){return e.cleanup??=[]}function df(e,t,n,r){let o=fc(t);o.push(n),e.firstCreatePass&&pc(e).push(r,o.length-1);}var N$2={lFrame:Cf(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Ba=false;function ff(){return N$2.lFrame.elementDepthCount}function pf(){N$2.lFrame.elementDepthCount++;}function hc(){N$2.lFrame.elementDepthCount--;}function ji$1(){return N$2.bindingsEnabled}function gc(){return N$2.skipHydrationRootTNode!==null}function mc(e){return N$2.skipHydrationRootTNode===e}function yc(){N$2.skipHydrationRootTNode=null;}function v$1(){return N$2.lFrame.lView}function F$4(){return N$2.lFrame.tView}function hf(e){return N$2.lFrame.contextLView=e,e[Y$3]}function gf(e){return N$2.lFrame.contextLView=null,e}function X$2(){let e=vc();for(;e!==null&&e.type===64;)e=e.parent;return e}function vc(){return N$2.lFrame.currentTNode}function mf(){let e=N$2.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Tn$3(e,t){let n=N$2.lFrame;n.currentTNode=e,n.isParent=t;}function Dc(){return N$2.lFrame.isParent}function Ec(){N$2.lFrame.isParent=false;}function Ic(){return N$2.lFrame.contextLView}function wc(){return Ba}function Pr(e){let t=Ba;return Ba=e,t}function Gt$1(){let e=N$2.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yr(){return N$2.lFrame.bindingIndex}function yf(e){return N$2.lFrame.bindingIndex=e}function Wt$1(){return N$2.lFrame.bindingIndex++}function bn$2(e){let t=N$2.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vf(){return N$2.lFrame.inI18n}function Df(e,t){let n=N$2.lFrame;n.bindingIndex=n.bindingRootIndex=e,Bi$2(t);}function Ef(){return N$2.lFrame.currentDirectiveIndex}function Bi$2(e){N$2.lFrame.currentDirectiveIndex=e;}function If(e){let t=N$2.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Vi$2(){return N$2.lFrame.currentQueryIndex}function Qr(e){N$2.lFrame.currentQueryIndex=e;}function wv(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[se$2]:null}function Cc(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=wv(i),o===null||(i=i[Ut$3],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=N$2.lFrame=wf();return r.currentTNode=t,r.lView=e,true}function Hi$1(e){let t=wf(),n=e[E];N$2.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function wf(){let e=N$2.lFrame,t=e===null?null:e.child;return t===null?Cf(e):t}function Cf(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 Tf(){let e=N$2.lFrame;return N$2.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Tc=Tf;function Ui$1(){let e=Tf();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 bf(e){return (N$2.lFrame.contextLView=uf(e,N$2.lFrame.contextLView))[Y$3]}function ge$4(){return N$2.lFrame.selectedIndex}function qt$1(e){N$2.lFrame.selectedIndex=e;}function nr$1(){let e=N$2.lFrame;return ki$3(e.tView,e.selectedIndex)}function Sf(){N$2.lFrame.currentNamespace=cc;}function _f(){Cv();}function Cv(){N$2.lFrame.currentNamespace=null;}function bc(){return N$2.lFrame.currentNamespace}var Mf=true;function $i$1(){return Mf}function Kr(e){Mf=e;}function Va(e,t=null,n=null,r){let o=Sc(e,t,n);return o.resolveInjectorInitializers(),o}function Sc(e,t=null,n=null,r,o=new Set){let i=[n||ie$3,Jd(e)];return new mn$2(i,t||Qn$3(),null,o)}var he$4=class e{static THROW_IF_NOT_FOUND=pn$2;static NULL=new Zn$3;static create(t,n){if(Array.isArray(t))return Va({name:""},n,t);{let r=t.name??"";return Va({name:r},t.parent,t.providers)}}static \u0275prov=x({token:e,providedIn:"any",factory:()=>b$2($r)});static __NG_ELEMENT_ID__=-1},U$5=new T$4(""),we$3=(()=>{class e{static __NG_ELEMENT_ID__=Tv;static __NG_ENV_ID__=n=>n}return e})(),Ii$1=class Ii extends we$3{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return wn$3(this._lView)}onDestroy(t){let n=this._lView;return Li$2(n,t),()=>lf(n,t)}};function Tv(){return new Ii$1(v$1())}var _c=false,Nf=new T$4(""),Zt$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new Tr$1(false);debugTaskTracker=g(Nf,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new R$2(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=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ha=class extends le$4{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,rf()&&(this.destroyRef=g(we$3,{optional:true})??void 0,this.pendingTasks=g(Zt$2,{optional:true})??void 0);}emit(t){let n=I(null);try{super.next(t);}finally{I(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ee$5&&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);}});}}},yt$3=Ha;function wi$3(...e){}function Mc(e){let t,n;function r(){e=wi$3;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 xf(e){return queueMicrotask(()=>e()),()=>{e=wi$3;}}var Nc="isAngularZone",Lr=Nc+"_ID",bv=0,G$2=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new yt$3(false);onMicrotaskEmpty=new yt$3(false);onStable=new yt$3(false);onError=new yt$3(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=_c}=t;if(typeof Zone>"u")throw new m$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,Mv(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Nc)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new m$2(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new m$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,Sv,wi$3,wi$3);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)}},Sv={};function xc(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 _v(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Mc(()=>{e.callbackScheduled=false,Ua(e),e.isCheckStableRunning=true,xc(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Ua(e);}function Mv(e){let t=()=>{_v(e);},n=bv++;e._inner=e._inner.fork({name:"angular",properties:{[Nc]:true,[Lr]:n,[Lr+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Nv(c))return r.invokeTask(i,s,a,c);try{return Vd(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Hd(e);}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Vd(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!xv(c)&&t(),Hd(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Ua(e),xc(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 Ua(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Vd(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function Hd(e){e._nesting--,xc(e);}var jr=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new yt$3;onMicrotaskEmpty=new yt$3;onStable=new yt$3;onError=new yt$3;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 Nv(e){return Af(e,"__ignore_ng_zone__")}function xv(e){return Af(e,"__scheduler_tick__")}function Af(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var Se$2=class Se{_console=console;handleError(t){this._console.error("ERROR",t);}},it$3=new T$4("",{factory:()=>{let e=g(G$2),t=g(pe$4),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Se$2),n.handleError(r));});}}}),Rf={provide:It$2,useValue:()=>{g(Se$2,{optional:true});},multi:true},Av=new T$4("",{factory:()=>{let e=g(U$5).defaultView;if(!e)return;let t=g(it$3),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(),g(we$3).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function Rv(){return wt$3([Xd(()=>{g(Av);})])}function zi$2(e,t){let [n,r,o]=_a(e,t?.equal),i=n;i[q$1];return i.set=r,i.update=o,i.asReadonly=Xr.bind(i),i}function Xr(){let e=this[q$1];if(e.readonlyFn===void 0){let t=()=>this();t[q$1]=e,e.readonlyFn=t;}return e.readonlyFn}var Jr=new T$4("",{factory:()=>Ov}),Ov="ng";var Gi$1=new T$4(""),eo$1=new T$4("",{providedIn:"platform",factory:()=>"unknown"}),kv=new T$4(""),to$1=new T$4("",{factory:()=>g(U$5).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var rr$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Fv}return e})();function Fv(){return new rr$1(v$1(),X$2())}var je$3=class je{},or$1=new T$4("",{factory:()=>true});var Wi$1=new T$4(""),qi$1=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new $a})}return e})(),$a=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}},Ci$3=class Ci{[q$1];constructor(t){this[q$1]=t;}destroy(){this[q$1].destroy();}};function Of(e,t){let n=t?.injector??g(he$4),r=t?.manualCleanup!==true?n.get(we$3):null,o,i=n.get(rr$1,null,{optional:true}),s=n.get(je$3);return i!==null?(o=jv(i.view,s,e),r instanceof Ii$1&&r._lView===i.view&&(r=null)):o=Bv(e,n.get(qi$1),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Ci$3(o)}var kf=x$1(w$1({},Ma),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Pr(false);try{Na(this);}finally{Pr(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=I(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],I(e);}}}),Pv=x$1(w$1({},kf),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),Lv=x$1(w$1({},kf),{consumerMarkedDirty(){this.view[S$2]|=8192,Cn$3(this.view),this.notifier.notify(13);},destroy(){if(Lt$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Vt$1]?.delete(this);}});function jv(e,t,n){let r=Object.create(Lv);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=Ff(r,n),e[Vt$1]??=new Set,e[Vt$1].add(r),r.consumerMarkedDirty(r),r}function Bv(e,t,n){let r=Object.create(Pv);return r.fn=Ff(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 Ff(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function no$1(e){return typeof e=="function"&&e[q$1]!==void 0}function Zi$1(e){return no$1(e)&&typeof e.set=="function"}var ro$1=(()=>{class e{internalPendingTasks=g(Zt$2);scheduler=g(je$3);errorHandler=g(it$3);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=x({token:e,providedIn:"root",factory:()=>new e})}return e})();function go$1(e){return {toString:e}.toString()}var O$2=(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})(O$2||{}),rs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function Ep(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var Ip=null,Cu=(()=>{Ip=Pf;let e=()=>Pf;return e.ngInherit=true,e})();function Qv(){return Ip}function Pf(e){return e.type.prototype.ngOnChanges&&(e.setInput=Xv),Kv}function Kv(){let e=wp(this),t=e?.current;if(t){let n=e.previous;if(n===Ht$1)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Xv(e,t,n,r,o){let i=this.declaredInputs[r],s=wp(e)||Jv(e,{previous:Ht$1,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new rs(u&&u.currentValue,n,c===Ht$1),Ep(e,t,o,n);}var Uc="__ngSimpleChanges__";function wp(e){return Object.hasOwn(e,Uc)&&e[Uc]||null}function Jv(e,t){return e[Uc]=t}var Lf=[];var P$2=function(e,t=null,n){for(let r=0;r<Lf.length;r++){let o=Lf[r];o(e,t,n);}};function eD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Qv()(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 Cp(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 Ji$1(e,t,n){Tp(e,t,3,n);}function es(e,t,n,r){(e[S$2]&3)===n&&Tp(e,t,n,r);}function Ac(e,t){let n=e[S$2];(n&3)===t&&(n&=16383,n+=1,e[S$2]=n);}function Tp(e,t,n,r){let o=r!==void 0?e[Dn$3]&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[Dn$3]+=65536),(a<i||i==-1)&&(tD(e,n,t,c),e[Dn$3]=(e[Dn$3]&4294901760)+c+2),c++;}function jf(e,t){P$2(O$2.LifecycleHookStart,e,t);let n=I(null);try{t.call(e);}finally{I(n),P$2(O$2.LifecycleHookEnd,e,t);}}function tD(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[S$2]>>14<e[Dn$3]>>16&&(e[S$2]&3)===t&&(e[S$2]+=16384,jf(a,i)):jf(a,i);}var sr$1=-1,_n$3=class _n{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 nD(e){return (e.flags&8)!==0}function rD(e){return (e.flags&16)!==0}function oD(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];iD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function bp(e){return e===3||e===4||e===6}function iD(e){return e.charCodeAt(0)===64}function ar$1(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?Bf(e,n,o,null,t[++r]):Bf(e,n,o,null,null));}}return e}function Bf(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 Sp(e){return e!==sr$1}function os(e){return e&32767}function sD(e){return e>>16}function is(e,t){let n=sD(e),r=t;for(;n>0;)r=r[Ut$3],n--;return r}var $c=true;function ss(e){let t=$c;return $c=e,t}var aD=256,_p=aD-1,Mp=5,cD=0,st$1={};function uD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(yn$2)&&(r=n[yn$2]),r==null&&(r=n[yn$2]=cD++);let o=r&_p,i=1<<o;t.data[e+(o>>Mp)]|=i;}function as(e,t){let n=Np(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,Rc(r.data,e),Rc(t,null),Rc(r.blueprint,null));let o=Tu(e,t),i=e.injectorIndex;if(Sp(o)){let s=os(o),a=is(o,t),c=a[E].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u];}return t[i+8]=o,i}function Rc(e,t){e.push(0,0,0,0,0,0,0,0,t);}function Np(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Tu(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=Fp(o),r===null)return sr$1;if(n++,o=o[Ut$3],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return sr$1}function zc(e,t,n){uD(e,t,n);}function lD(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(bp(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 xp(e,t,n){if(n&8||e!==void 0)return e;Ni$3();}function Ap(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[et],i=fe$5(void 0);try{return o?o.get(t,r,n&8):Xa(t,r,n&8)}finally{fe$5(i);}}return xp(r,t,n)}function Rp(e,t,n,r=0,o){if(e!==null){if(t[S$2]&2048&&!(r&2)){let s=hD(e,t,n,r,st$1);if(s!==st$1)return s}let i=Op(e,t,n,r,st$1);if(i!==st$1)return i}return Ap(t,n,r,o)}function Op(e,t,n,r,o){let i=fD(n);if(typeof i=="function"){if(!Cc(t,e,r))return r&1?xp(o,n,r):Ap(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Ni$3(n);else return s}finally{Tc();}}else if(typeof i=="number"){let s=null,a=Np(e,t),c=sr$1,u=r&1?t[ae$2][se$2]:null;for((a===-1||r&4)&&(c=a===-1?Tu(e,t):t[a+8],c===sr$1||!Hf(r,false)?a=-1:(s=t[E],a=os(c),t=is(c,t)));a!==-1;){let l=t[E];if(Vf(i,a,l.data)){let d=dD(a,t,n,s,r,u);if(d!==st$1)return d}c=t[a+8],c!==sr$1&&Hf(r,t[E].data[a+8]===u)&&Vf(i,a,t)?(s=l,a=os(c),t=is(c,t)):a=-1;}}return o}function dD(e,t,n,r,o,i){let s=t[E],a=s.data[e+8],c=r==null?Tt$3(a)&&$c:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=ts(a,s,n,c,u);return l!==null?co$1(t,s,l,a,o):st$1}function ts(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,p=o?a+l:u;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&ot$2(f)&&f.type===n)return c}return null}function co$1(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof _n$3){let a=i;if(a.resolving)throw Ka();let c=ss(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?fe$5(a.injectImpl):null;Cc(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&eD(n,s[n],t);}finally{d!==null&&fe$5(d),ss(c),a.resolving=false,Tc();}}return i}function fD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(yn$2)?e[yn$2]:void 0;return typeof t=="number"?t>=0?t&_p:pD:t}function Vf(e,t,n){let r=1<<e;return !!(n[t+(e>>Mp)]&r)}function Hf(e,t){return !(e&2)&&!(e&1&&t)}var Yt$2=class Yt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return Rp(this._tNode,this._lView,t,hn$2(r),n)}};function pD(){return new Yt$2(X$2(),v$1())}function kp(e){return go$1(()=>{let t=e.prototype.constructor,n=t[Fr]||Gc(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Fr]||Gc(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function Gc(e){return za(e)?()=>{let t=Gc(re$4(e));return t&&t()}:Bt$1(e)}function hD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[S$2]&2048&&!tr$1(s);){let a=Op(i,s,n,r|2,st$1);if(a!==st$1)return a;let c=i.parent;if(!c){let u=s[ic];if(u){let l=u.get(n,st$1,r&-5);if(l!==st$1)return l}c=Fp(s),s=s[Ut$3];}i=c;}return o}function Fp(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[se$2]:null}function bu(e){return lD(X$2(),e)}function Ce$5(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function gD(){return hr$1(X$2(),v$1())}function hr$1(e,t){return new On$3(Ae$2(e,t))}var On$3=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=gD}return e})();function Pp(e){return e instanceof On$3?e.nativeElement:e}function mD(){return this._results[Symbol.iterator]()}var cs=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 le$4}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=Yd(t);(this._changesDetected=!Zd(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]=mD};function Lp(e){return (e.flags&128)===128}var Su=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Su||{}),jp=new Map,yD=0;function vD(){return yD++}function DD(e){jp.set(e[nt$1],e);}function Wc(e){jp.delete(e[nt$1]);}var Uf="__ngContext__";function cr$1(e,t){Ct$2(t)?(e[Uf]=t[nt$1],DD(t)):e[Uf]=t;}function Bp(e){return Hp(e[Jn$2])}function Vp(e){return Hp(e[Me$3])}function Hp(e){for(;e!==null&&!Ne$3(e);)e=e[Me$3];return e}var qc;function _u(e){qc=e;}function Mu(){if(qc!==void 0)return qc;if(typeof document<"u")return document;throw new m$2(210,false)}var Up="r";var $p="di";var ED=new T$4(""),zp=false,Gp=new T$4("",{factory:()=>zp});var Wp=new T$4("");var $f=new WeakMap;function ID(e,t){if(e==null||typeof e!="object")return;let n=$f.get(e);n||(n=new WeakSet,$f.set(e,n)),n.add(t);}function Cs$1(e){return (e.flags&32)===32}var TD=()=>null;function qp(e,t,n=false){return TD()}function Zp(e,t){let n=e.contentQueries;if(n!==null){let r=I(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Qr(i),a.contentQueries(2,t[s],s);}}}finally{I(r);}}}function Zc(e,t,n){Qr(0);let r=I(null);try{t(e,n);}finally{I(r);}}function Nu(e,t,n){if(ac(t)){let r=I(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{I(r);}}}var $e$4=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})($e$4||{});var Yi$1;function bD(){if(Yi$1===void 0&&(Yi$1=null,_e$4.trustedTypes))try{Yi$1=_e$4.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Yi$1}function Ts$1(e){return bD()?.createHTML(e)||e}var Qi$1;function Yp(){if(Qi$1===void 0&&(Qi$1=null,_e$4.trustedTypes))try{Qi$1=_e$4.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch(e){}return Qi$1}function zf(e){return Yp()?.createHTML(e)||e}function Gf(e){return Yp()?.createScriptURL(e)||e}var bt$3=class bt{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ti$3})`}},Yc=class extends bt$3{getTypeName(){return "HTML"}},Qc=class extends bt$3{getTypeName(){return "Style"}},Kc=class extends bt$3{getTypeName(){return "Script"}},Xc=class extends bt$3{getTypeName(){return "URL"}},Jc=class extends bt$3{getTypeName(){return "ResourceURL"}};function Te$1(e){return e instanceof bt$3?e.changingThisBreaksApplicationSecurity:e}function ct$1(e,t){let n=Qp(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ti$3})`)}return n===t}function Qp(e){return e instanceof bt$3&&e.getTypeName()||null}function xu(e){return new Yc(e)}function Au(e){return new Qc(e)}function Ru(e){return new Kc(e)}function Ou(e){return new Xc(e)}function ku(e){return new Jc(e)}function SD(e){let t=new tu(e);return _D()?new eu(t):t}var eu=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(Ts$1(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch(n){return null}}},tu=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=Ts$1(t),n}};function _D(){try{return !!new window.DOMParser().parseFromString(Ts$1(""),"text/html")}catch(e){return false}}var MD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mo$1(e){return e=String(e),e.match(MD)?e:"unsafe:"+e}function St$2(e){let t={};for(let n of e.split(","))t[n]=true;return t}function yo$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var Kp=St$2("area,br,col,hr,img,wbr"),Xp=St$2("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jp=St$2("rp,rt"),ND=yo$1(Jp,Xp),xD=yo$1(Xp,St$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")),AD=yo$1(Jp,St$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")),Wf=yo$1(Kp,xD,AD,ND),eh=St$2("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),RD=St$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"),OD=St$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"),kD=yo$1(eh,RD,OD),FD=St$2("script,style,template"),nu=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=jD(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=LD(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=qf(t).toLowerCase();if(!Wf.hasOwnProperty(n))return this.sanitizedSomething=true,!FD.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(!kD.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;eh[a]&&(c=mo$1(c)),this.buf.push(" ",s,'="',Zf(c),'"');}return this.buf.push(">"),true}endElement(t){let n=qf(t).toLowerCase();Wf.hasOwnProperty(n)&&!Kp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Zf(t));}};function PD(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function LD(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw th(t);return t}function jD(e){let t=e.firstChild;if(t&&PD(e,t))throw th(t);return t}function qf(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function th(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var BD=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,VD=/([^\#-~ |!])/g;function Zf(e){return e.replace(/&/g,"&amp;").replace(BD,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(VD,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Ki$1;function bs$1(e,t){let n=null;try{Ki$1=Ki$1||SD(e);let r=t?String(t):"";n=Ki$1.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=Ki$1.getInertBodyElement(r);}while(r!==i);let a=new nu().sanitizeChildren(Yf(n)||n);return Ts$1(a)}finally{if(n){let r=Yf(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Yf(e){return "content"in e&&HD(e)?e.content:null}function HD(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var UD=/^>|^->|<!--|-->|--!>|<!-$/g,$D=/(<|>)/g,zD="\u200B$1\u200B";function GD(e){return e.replace(UD,t=>t.replace($D,zD))}function WD(e,t){return e.createText(t)}function qD(e,t,n){e.setValue(t,n);}function ZD(e,t){return e.createComment(GD(t))}function nh(e,t,n){return e.createElement(t,n)}function us(e,t,n,r,o){e.insertBefore(t,n,r,o);}function rh(e,t,n){e.appendChild(t,n);}function Qf(e,t,n,r,o){r!==null?us(e,t,n,r,o):rh(e,t,n);}function oh(e,t,n,r){e.removeChild(null,t,n,r);}function YD(e,t,n){e.setAttribute(t,"style",n);}function QD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function ih(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&oD(e,t,r),o!==null&&QD(e,t,o),i!==null&&YD(e,t,i);}var Oe$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})(Oe$1||{});function KD(e){let t=Fu();return t?zf(t.sanitize(Oe$1.HTML,e)||""):ct$1(e,"HTML")?zf(Te$1(e)):bs$1(Mu(),Z$1(e))}function sh(e){let t=Fu();return t?t.sanitize(Oe$1.URL,e)||"":ct$1(e,"URL")?Te$1(e):mo$1(Z$1(e))}function ah(e){let t=Fu();if(t)return Gf(t.sanitize(Oe$1.RESOURCE_URL,e)||"");if(ct$1(e,"ResourceURL"))return Gf(Te$1(e));throw new m$2(904,false)}var XD={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function JD(e,t){return XD[e.toLowerCase()]?.[t.toLowerCase()]===true?ah:sh}function eE(e,t,n){return JD(t,n)(e)}function Fu(){let e=v$1();return e&&e[Ve$3].sanitizer}function tE(e){return e.ownerDocument}function nE(e){return e instanceof Function?e():e}function rE(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 ch="ng-template";function oE(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&rE(t[o+1].toLowerCase(),n,0)!==-1)return true}else if(Pu(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 Pu(e){return e.type===4&&e.value!==ch}function iE(e,t,n){let r=e.type===4&&!n?ch:e.value;return t===r}function sE(e,t,n){let r=4,o=e.attrs,i=o!==null?uE(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!He$2(r)&&!He$2(c))return false;if(s&&He$2(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!iE(e,c,n)||c===""&&t.length===1){if(He$2(r))return false;s=true;}}else if(r&8){if(o===null||!oE(e,o,c,n)){if(He$2(r))return false;s=true;}}else {let u=t[++a],l=aE(c,o,Pu(e),n);if(l===-1){if(He$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(He$2(r))return false;s=true;}}}}return He$2(r)||s}function He$2(e){return (e&1)===0}function aE(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 lE(t,e)}function uh(e,t,n=false){for(let r=0;r<t.length;r++)if(sE(e,t[r],n))return true;return false}function cE(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function uE(e){for(let t=0;t<e.length;t++){let n=e[t];if(bp(n))return t}return e.length}function lE(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 dE(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 Kf(e,t){return e?":not("+t.trim()+")":t}function fE(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!==""&&!He$2(s)&&(t+=Kf(i,o),o=""),r=s,i=i||!He$2(r);n++;}return o!==""&&(t+=Kf(i,o)),t}function pE(e){return e.map(fE).join(",")}function hE(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(!He$2(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$1={},at$3=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(at$3||{}),gE;function Lu(e,t){return gE(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var ru=new WeakMap;function lh(e){return e?e[Ut$3]??e:null}var io$1=new WeakSet;function mE(e,t,n){let r=ru.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=lh(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),io$1.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 yE(e,t,n){let r=lh(n),o=ru.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):ru.set(e,[{el:t,declarationView:r}]);}var Qt$2=new Set,Ss$1=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Ss$1||{}),ut$2=new T$4(""),Xf=new Set;function ze$2(e){Xf.has(e)||(Xf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var _s$1=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),ju=[0,1,2,3],Bu=(()=>{class e{ngZone=g(G$2);scheduler=g(je$3);errorHandler=g(Se$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){g(ut$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&P$2(O$2.AfterRenderHooksStart),this.executing=true;for(let r of ju)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&&P$2(O$2.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[En$3]??=[]).push(n),Cn$3(r),r[S$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(Ss$1.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:e,providedIn:"root",factory:()=>new e})}return e})(),uo$1=class uo{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?.[En$3];t&&(this.view[En$3]=t.filter(n=>n!==this));}};function vE(e,t){let n=t?.injector??g(he$4);return ze$2("NgAfterNextRender"),EE(e,n,t,true)}function DE(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function EE(e,t,n,r){let o=t.get(_s$1);o.impl??=t.get(Bu);let i=t.get(ut$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(we$3):null,a=t.get(rr$1,null,{optional:true}),c=new uo$1(o.impl,DE(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Vu=new T$4("",{factory:()=>{let e=g(pe$4),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function dh(e,t,n){let r=e.get(Vu);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 IE(e,t){let n=e.get(Vu);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function wE(e,t){let n=e.get(Vu);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function CE(e,t){for(let[n,r]of t)dh(e,r.animateFns);}function Jf(e,t,n,r){let o=e?.[rt$2]?.enter;t!==null&&o&&o.has(n.index)&&CE(r,o);}function ep(e,t,n,r){try{n.get($r);}catch(s){return r(false)}let o=e?.[rt$2];o?.enter?.has(t.index)&&IE(n,o.enter.get(t.index).animateFns);let i=TE(e,t,o);if(i.size===0){let s=false;if(e){let a=[];Ms$1(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&Qt$2.add(e[nt$1]),dh(n,()=>bE(e,t,o||void 0,i,r),o||void 0);}function TE(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[E].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function bE(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&&Ms$1(e,t,i),i.length>0){let s=n||e?.[rt$2];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),_E(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&Qt$2.delete(e[nt$1]),o(true);});}else e&&Qt$2.delete(e[nt$1]),o(false);}function Ms$1(e,t,n){if(t.type&12){let o=e[t.index];if(Ne$3(o))for(let i=W$4;i<o.length;i++){let s=o[i];s[E].type===2&&SE(s,n);}}let r=t.child;for(;r;)Ms$1(e,r,n),r=r.next;}function SE(e,t){let n=e[rt$2];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[E].firstChild;for(;r;)Ms$1(e,r,t),r=r.next;}function _E(e,t,n){t.then(()=>{e[rt$2]?.running===t&&(e[rt$2].running=void 0,Qt$2.delete(e[nt$1])),n(true);});}function ir$1(e,t,n,r,o,i,s,a){if(o!=null){let c,u=false;Ne$3(o)?c=o:Ct$2(o)&&(u=true,o=o[Be$3]);let l=xe$3(o);e===0&&r!==null?(Jf(a,r,i,n),s==null?rh(t,r,l):us(t,r,l,s||null,true)):e===1&&r!==null?(Jf(a,r,i,n),us(t,r,l,s||null,true),mE(i,l,a)):e===2?(a?.[rt$2]?.leave?.has(i.index)&&yE(i,l,a),io$1.delete(l),ep(a,i,n,d=>{if(io$1.has(l)){io$1.delete(l);return}oh(t,l,u,d);})):e===3&&(io$1.delete(l),ep(a,i,n,()=>{t.destroyNode(l);})),c!=null&&LE(t,e,n,c,i,r,s);}}function ME(e,t){fh(e,t),t[Be$3]=null,t[se$2]=null;}function NE(e,t,n,r,o,i){r[Be$3]=o,r[se$2]=t,xs$1(e,r,n,1,o,i);}function fh(e,t){t[Ve$3].changeDetectionScheduler?.notify(9),xs$1(e,t,t[j$4],2,null,null);}function xE(e){let t=e[Jn$2];if(!t)return Oc(e[E],e);for(;t;){let n=null;if(Ct$2(t))n=t[Jn$2];else {let r=t[W$4];r&&(n=r);}if(!n){for(;t&&!t[Me$3]&&t!==e;)Ct$2(t)&&Oc(t[E],t),t=t[te$3];t===null&&(t=e),Ct$2(t)&&Oc(t[E],t),n=t&&t[Me$3];}t=n;}}function Hu(e,t){let n=e[In$3],r=n.indexOf(t);n.splice(r,1);}function Ns$1(e,t){if(wn$3(t))return;let n=t[j$4];n.destroyNode&&xs$1(e,t,n,3,null,null),xE(t);}function Oc(e,t){if(wn$3(t))return;let n=I(null);try{t[S$2]&=-129,t[S$2]|=256,t[Ee$2]&&Lt$2(t[Ee$2]),RE(e,t),AE(e,t),t[E].type===1&&t[j$4].destroy();let r=t[$t$3];if(r!==null&&Ne$3(t[te$3])){r!==t[te$3]&&Hu(r,t);let o=t[tt$1];o!==null&&o.detachView(e);}Wc(t);}finally{I(n);}}function AE(e,t){let n=e.cleanup,r=t[Xn$3];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[Xn$3]=null);let o=t[vt$3];if(o!==null){t[vt$3]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[Vt$1];if(i!==null){t[Vt$1]=null;for(let s of i)s.destroy();}}function RE(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 _n$3)){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];P$2(O$2.LifecycleHookStart,a,c);try{c.call(a);}finally{P$2(O$2.LifecycleHookEnd,a,c);}}else {P$2(O$2.LifecycleHookStart,o,i);try{i.call(o);}finally{P$2(O$2.LifecycleHookEnd,o,i);}}}}}function ph(e,t,n){return OE(e,t.parent,n)}function OE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Be$3];if(Tt$3(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===$e$4.None||o===$e$4.Emulated)return null}return Ae$2(r,n)}function hh(e,t,n){return FE(e,t,n)}function kE(e,t,n){return e.type&40?Ae$2(e,n):null}var FE=kE;function Uu(e,t,n,r){let o=ph(e,r,t),i=t[j$4],s=r.parent||t[se$2],a=hh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Qf(i,o,n[c],a,false);else Qf(i,o,n,a,false);}function so$1(e,t){if(t!==null){let n=t.type;if(n&3)return Ae$2(t,e);if(n&4)return ou(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return so$1(e,r);{let o=e[t.index];return Ne$3(o)?ou(-1,o):xe$3(o)}}else {if(n&128)return so$1(e,t.next);if(n&32)return Lu(t,e)()||xe$3(e[t.index]);{let r=gh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Dt$2(e[ae$2]);return so$1(o,r)}else return so$1(e,t.next)}}}return null}function gh(e,t){if(t!==null){let r=e[ae$2][se$2],o=t.projection;return r.projection[o]}return null}function ou(e,t){let n=W$4+e+1;if(n<t.length){let r=t[n],o=r[E].firstChild;if(o!==null)return so$1(r,o)}return t[zt$1]}function $u(e,t,n,r,o,i,s){for(;n!=null;){let a=r[et];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&cr$1(xe$3(c),r),n.flags|=2),!Cs$1(n))if(u&8)$u(e,t,n.child,r,o,i,false),ir$1(t,e,a,o,c,n,i,r);else if(u&32){let l=Lu(n,r),d;for(;d=l();)ir$1(t,e,a,o,d,n,i,r);ir$1(t,e,a,o,c,n,i,r);}else u&16?mh(e,t,r,n,o,i):ir$1(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function xs$1(e,t,n,r,o,i){$u(n,r,e.firstChild,t,o,i,false);}function PE(e,t,n){let r=t[j$4],o=ph(e,n,t),i=n.parent||t[se$2],s=hh(i,n,t);mh(r,0,t,n,o,s);}function mh(e,t,n,r,o,i){let s=n[ae$2],c=s[se$2].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];ir$1(t,e,n[et],o,l,r,i,n);}else {let u=c,l=s[te$3];Lp(r)&&(u.flags|=128),$u(e,t,u,l,o,i,true);}}function LE(e,t,n,r,o,i,s){let a=r[zt$1],c=xe$3(r);a!==c&&ir$1(t,e,n,i,a,o,s);for(let u=W$4;u<r.length;u++){let l=r[u];xs$1(l[E],l,e,t,i,a);}}function jE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:at$3.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=at$3.Important),e.setStyle(n,r,o,i));}}function zu(e,t,n,r,o,i,s,a,c,u,l){let d=V$2+r,p=d+o,f=BE(d,p),h=typeof u=="function"?u():u;return f[E]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass: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:h,incompleteFirstPass:false,ssrId:l}}function BE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$1);return n}function VE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=zu(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Gu(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Be$3]=o,d[S$2]=r|4|128|8|64|1024,(u!==null||e&&e[S$2]&2048)&&(d[S$2]|=2048),lc(d),d[te$3]=d[Ut$3]=e,d[Y$3]=n,d[Ve$3]=s||e&&e[Ve$3],d[j$4]=a||e&&e[j$4],d[et]=c||e&&e[et]||null,d[se$2]=i,d[nt$1]=vD(),d[vn$2]=l,d[ic]=u,d[ae$2]=t.type==2?e[ae$2]:d,d}function HE(e,t,n){let r=Ae$2(t,e),o=VE(n),i=e[Ve$3].rendererFactory,s=Wu(e,Gu(e,o,null,yh(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function yh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function vh(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 Wu(e,t){return e[Jn$2]?e[oc][Me$3]=t:e[Jn$2]=t,e[oc]=t,t}function UE(e=1){Dh(F$4(),v$1(),ge$4()+e);}function Dh(e,t,n,r){if((t[S$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ji$1(t,i,n);}else {let i=e.preOrderHooks;i!==null&&es(t,i,0,n);}qt$1(n);}var As$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(As$1||{});function Mn$4(e,t,n,r){let o=I(null);try{let[i,s,a]=e.inputs[n],c=null;(s&As$1.SignalBased)!==0&&(c=t[i][q$1]),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):Ep(t,c,i,r);}finally{I(o);}}function Eh(e,t,n,r,o){let i=ge$4(),s=r&2;try{qt$1(-1),s&&t.length>V$2&&Dh(e,t,V$2,!1);let a=s?O$2.TemplateUpdateStart:O$2.TemplateCreateStart;P$2(a,o,n),n(r,o);}finally{qt$1(i);let a=s?O$2.TemplateUpdateEnd:O$2.TemplateCreateEnd;P$2(a,o,n);}}function Rs$1(e,t,n){ZE(e,t,n),(n.flags&64)===64&&YE(e,t,n);}function vo$1(e,t,n=Ae$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 $E(e,t,n,r){let i=r.get(Gp,zp)||n===$e$4.ShadowDom||n===$e$4.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function WE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Ih(e,t,n,r,o,i){let s=t[E];if(Qu(e,s,t,n,r)){Tt$3(e)&&qE(t,e.index);return}e.type&3&&(n=WE(n)),wh(e,t,n,r,o,i);}function wh(e,t,n,r,o,i){if(e.type&3){let s=Ae$2(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function qE(e,t){let n=Re$3(t,e);n[S$2]&16||(n[S$2]|=64);}function ZE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Tt$3(n)&&HE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||as(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=co$1(t,e,s,n);if(cr$1(c,t),i!==null&&JE(t,s-r,c,a,n,i),ot$2(a)){let u=Re$3(n.index,t);u[Y$3]=co$1(t,e,s,n);}}}function YE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Ef();try{qt$1(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Bi$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&QE(c,u);}}finally{qt$1(-1),Bi$2(s);}}function QE(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function qu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];uh(t,i.selectors,false)&&(r??=[],ot$2(i)?r.unshift(i):r.push(i));}return r}function KE(e,t,n,r,o,i){let s=Ae$2(e,t);XE(t[j$4],s,i,e.value,n,r,o);}function XE(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?Z$1(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function JE(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];Mn$4(r,n,c,u);}}function Zu(e,t,n,r,o){let i=V$2+n,s=t[E],a=o(s,t,e,r,n);t[i]=a,Tn$3(e,true);let c=e.type===2;return c?(ih(t[j$4],a,e),(ff()===0||er$1(e))&&cr$1(a,t),pf()):cr$1(a,t),$i$1()&&(!c||!Cs$1(e))&&Uu(s,t,a,e),e}function Yu(e){let t=e;return Dc()?Ec():(t=t.parent,Tn$3(t,false)),t}function eI(e,t){let n=e[et];if(!n)return;let r;try{r=n.get(it$3,null);}catch(o){r=null;}r?.(t);}function Qu(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];Mn$4(d,n[u],l,o),a=true;}if(i)for(let c of i){let u=n[c],l=t.data[c];Mn$4(l,u,r,o),a=true;}return a}function tI(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 p=0;p<d.length;p+=2){let f=d[p];if(f>=a&&f<=c){let h=t.data[f],y=d[p+1];Mn$4(h,n[f],y,i),u=true;}else if(f>c)break}}return s!==null&&r.inputs.hasOwnProperty(o)&&(Mn$4(r,n[s],o,i),u=true),u}function nI(e,t){let n=Re$3(t,e),r=n[E];rI(r,n);let o=n[Be$3];o!==null&&n[vn$2]===null&&(n[vn$2]=qp(o,n[et])),P$2(O$2.ComponentStart);try{Ku(r,n,n[Y$3]);}finally{P$2(O$2.ComponentEnd,n[Y$3]);}}function rI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function Ku(e,t,n){Hi$1(t);try{let r=e.viewQuery;r!==null&&Zc(1,r,n);let o=e.template;o!==null&&Eh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[tt$1]?.finishViewCreation(e),e.staticContentQueries&&Zp(e,t),e.staticViewQueries&&Zc(2,e.viewQuery,n);let i=e.components;i!==null&&oI(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[S$2]&=-5,Ui$1();}}function oI(e,t){for(let n=0;n<t.length;n++)nI(e,t[n]);}function Do$1(e,t,n,r){let o=I(null);try{let i=t.tView,a=e[S$2]&4096?4096:16,c=Gu(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[$t$3]=u;let l=e[tt$1];return l!==null&&(c[tt$1]=l.createEmbeddedView(i)),Ku(i,c,n),c}finally{I(o);}}function ur$1(e,t){return !t||t.firstChild===null||Lp(e)}function lo$1(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(xe$3(i)),Ne$3(i)&&Ch(i,r);let s=n.type;if(s&8)lo$1(e,t,n.child,r);else if(s&32){let a=Lu(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=gh(t,n);if(Array.isArray(a))r.push(...a);else {let c=Dt$2(t[ae$2]);lo$1(c[E],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function Ch(e,t){for(let n=W$4;n<e.length;n++){let r=e[n],o=r[E].firstChild;o!==null&&lo$1(r[E],r,o,t);}e[zt$1]!==e[Be$3]&&t.push(e[zt$1]);}function Th(e){if(e[En$3]!==null){for(let t of e[En$3])t.impl.addSequence(t);e[En$3].length=0;}}var bh=[];function iI(e){return e[Ee$2]??sI(e)}function sI(e){let t=bh.pop()??Object.create(cI);return t.lView=e,t}function aI(e){e.lView[Ee$2]!==e&&(e.lView=null,bh.push(e));}var cI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{Cn$3(e.lView);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function uI(e){let t=e[Ee$2]??Object.create(lI);return t.lView=e,t}var lI=x$1(w$1({},Ft$2),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Dt$2(e.lView);for(;t&&!Sh(t[E]);)t=Dt$2(t);t&&dc(t);},consumerOnSignalRead(){this.lView[Ee$2]=this;}});function Sh(e){return e.type!==2}function _h(e){if(e[Vt$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[Vt$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[S$2]&8192);}}var dI=100;function Mh(e,t=0){let r=e[Ve$3].rendererFactory;r.begin?.();try{fI(e,t);}finally{r.end?.();}}function fI(e,t){let n=wc();try{Pr(!0),iu(e,t);let r=0;for(;Zr(e);){if(r===dI)throw new m$2(103,!1);r++,iu(e,1);}}finally{Pr(n);}}function pI(e,t,n,r){if(wn$3(t))return;let o=t[S$2],i=false,s=false;Hi$1(t);let a=true,c=null,u=null;(Sh(e)?(u=iI(t),c=mt$4(u)):gi$3()===null?(a=false,u=uI(t),c=mt$4(u)):t[Ee$2]&&(Lt$2(t[Ee$2]),t[Ee$2]=null));try{lc(t),yf(e.bindingStartIndex),n!==null&&Eh(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&Ji$1(t,f,null);}else {let f=e.preOrderHooks;f!==null&&es(t,f,0,null),Ac(t,0);}if(s||hI(t),_h(t),Nh(t,0),e.contentQueries!==null&&Zp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&Ji$1(t,f);}else {let f=e.contentHooks;f!==null&&es(t,f,1),Ac(t,1);}mI(e,t);let d=e.components;d!==null&&Ah(t,d,0);let p=e.viewQuery;if(p!==null&&Zc(2,p,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&Ji$1(t,f);}else {let f=e.viewHooks;f!==null&&es(t,f,2),Ac(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oi$2]){for(let f of t[Oi$2])f();t[Oi$2]=null;}i||(Th(t),t[S$2]&=-73);}catch(l){throw Cn$3(t),l}finally{u!==null&&(Pt$3(u,c),a&&aI(u)),Ui$1();}}function Nh(e,t){for(let n=Bp(e);n!==null;n=Vp(n))for(let r=W$4;r<n.length;r++){let o=n[r];xh(o,t);}}function hI(e){for(let t=Bp(e);t!==null;t=Vp(t)){if(!(t[S$2]&2))continue;let n=t[In$3];for(let r=0;r<n.length;r++){let o=n[r];dc(o);}}}function gI(e,t,n){P$2(O$2.ComponentStart);let r=Re$3(t,e);try{xh(r,n);}finally{P$2(O$2.ComponentEnd,r[Y$3]);}}function xh(e,t){Fi$3(e)&&iu(e,t);}function iu(e,t){let r=e[E],o=e[S$2],i=e[Ee$2],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&zn$3(i)),s||=false,i&&(i.dirty=false),e[S$2]&=-9217,s)pI(r,e,r.template,e[Y$3]);else if(o&8192){let a=I(null);try{_h(e),Nh(e,1);let c=r.components;c!==null&&Ah(e,c,1),Th(e);}finally{I(a);}}}function Ah(e,t,n){for(let r=0;r<t.length;r++)gI(e,t[r],n);}function mI(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)qt$1(~o);else {let i=o,s=n[++r],a=n[++r];Df(s,i);let c=t[i];P$2(O$2.HostBindingsUpdateStart,c);try{a(2,c);}finally{P$2(O$2.HostBindingsUpdateEnd,c);}}}}finally{qt$1(-1);}}function Xu(e,t){let n=wc()?64:1088;for(e[Ve$3].changeDetectionScheduler?.notify(t);e;){e[S$2]|=n;let r=Dt$2(e);if(tr$1(e)&&!r)return e;e=r;}return null}function Rh(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function Oh(e,t){let n=W$4+t;if(n<e.length)return e[n]}function Eo$1(e,t,n,r=true){let o=t[E];if(yI(o,t,e,n),r){let s=ou(n,e),a=t[j$4],c=a.parentNode(e[zt$1]);c!==null&&NE(o,e[se$2],a,t,c,s);}let i=t[vn$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function kh(e,t){let n=fo$1(e,t);return n!==void 0&&Ns$1(n[E],n),n}function fo$1(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n];if(r){let o=r[$t$3];o!==null&&o!==e&&Hu(o,r),t>0&&(e[n-1][Me$3]=r[Me$3]);let i=Ur(e,W$4+t);ME(r[E],r);let s=i[tt$1];s!==null&&s.detachView(i[E]),r[te$3]=null,r[Me$3]=null,r[S$2]&=-129;}return r}function yI(e,t,n,r){let o=W$4+r,i=n.length;r>0&&(n[o-1][Me$3]=t),r<i-W$4?(t[Me$3]=n[o],Ja(n,W$4+r,t)):(n.push(t),t[Me$3]=null),t[te$3]=n;let s=t[$t$3];s!==null&&n!==s&&Fh(s,t);let a=t[tt$1];a!==null&&a.insertView(e),Pi$3(t),t[S$2]|=128;}function Fh(e,t){let n=e[In$3],r=t[te$3];if(Ct$2(r))e[S$2]|=2;else {let o=r[te$3][ae$2];t[ae$2]!==o&&(e[S$2]|=2);}n===null?e[In$3]=[t]:n.push(t);}var Kt$2=class Kt{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[E];return lo$1(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[Y$3]}set context(t){this._lView[Y$3]=t;}get destroyed(){return wn$3(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[te$3];if(Ne$3(t)){let n=t[Gr],r=n?n.indexOf(this):-1;r>-1&&(fo$1(t,r),Ur(n,r));}this._attachedToViewContainer=false;}Ns$1(this._lView[E],this._lView);}onDestroy(t){Li$2(this._lView,t);}markForCheck(){Xu(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[S$2]&=-129;}reattach(){Pi$3(this._lView),this._lView[S$2]|=128;}detectChanges(){this._lView[S$2]|=1024,Mh(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m$2(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=tr$1(this._lView),n=this._lView[$t$3];n!==null&&!t&&Hu(n,this._lView),fh(this._lView[E],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new m$2(902,false);this._appRef=t;let n=tr$1(this._lView),r=this._lView[$t$3];r!==null&&!n&&Fh(r,this._lView),Pi$3(this._lView);}};var lr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=vI;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=Do$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Kt$2(i)}}return e})();function vI(){return Os$2(X$2(),v$1())}function Os$2(e,t){return e.type&4?new lr$1(t,e,hr$1(e,t)):null}function kn$3(e,t,n,r,o){let i=e.data[t];if(i===null)i=DI(e,t,n,r,o),vf()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=mf();i.injectorIndex=s===null?-1:s.injectorIndex;}return Tn$3(i,true),i}function DI(e,t,n,r,o){let i=vc(),s=Dc(),a=s?i:i&&i.parent,c=e.data[t]=II(e,a,n,t,r,o);return EI(e,c,i,s),c}function EI(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 II(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return gc()&&(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:bc(),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 wI(e){let t=e[sc]??[],r=e[te$3][j$4],o=[];for(let i of t)i.data[$p]!==void 0?o.push(i):CI(i,r);e[sc]=o;}function CI(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Up];for(;n<o;){let i=r.nextSibling;oh(t,r,false),r=i,n++;}}}var TI=()=>null,bI=()=>null;function ls(e,t){return TI()}function Ph(e,t,n){return bI()}var Lh=class{},Nn$3=class Nn{},Ju=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>SI()}return e})();function SI(){let e=v$1(),t=X$2(),n=Re$3(t.index,e);return (Ct$2(n)?n:e)[j$4]}var jh=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>null})}return e})();function Bh(e){return e.debugInfo?.className||e.type.name||null}var ns={},ds=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,ns,r);return o!==ns||n===ns?o:this.parentInjector.get(t,n,r)}};function Io$1(e,t,n){return e[t]=n}function _I(e,t){return e[t]}function me$4(e,t,n){if(n===Q$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function dr$1(e,t,n,r){let o=me$4(e,t,n);return me$4(e,t+1,r)||o}function MI(e,t,n,r,o){let i=dr$1(e,t,n,r);return me$4(e,t+2,o)||i}function ks$1(e,t,n,r,o,i){let s=dr$1(e,t,n,r);return dr$1(e,t+2,o,i)||s}function Sn$3(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&ID(o,i);let s=Tt$3(e)?Re$3(e.index,t):t;Xu(s,5);let a=t[Y$3],c=np(t,a,n,o),u=r.__ngNextListenerFn__;for(;u;)c=np(t,a,u,o)&&c,u=u.__ngNextListenerFn__;return c}}function np(e,t,n,r){let o=I(null);try{return P$2(O$2.OutputStart,t,n),n(r)!==!1}catch(i){return eI(e,i),false}finally{P$2(O$2.OutputEnd,t,n),I(o);}}function el(e,t,n,r,o,i,s,a){let c=er$1(e),u=false,l=null;if(!r&&c&&(l=xI(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=true;}else {let d=Ae$2(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!NI(i)){let h=r?y=>r(xe$3(y[e.index])):e.index;Vh(h,t,n,i,a,f,false);}}return u}function NI(e){return e.startsWith("animation")||e.startsWith("transition")}function xI(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[Xn$3],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Vh(e,t,n,r,o,i,s){let a=t.firstCreatePass?pc(t):null,c=fc(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1));}function rp(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 p=l[d];if(p>=s&&p<=a)c=true,fs(e,t,p,l[d+1],r,o);else if(p>a)break}}return n.outputs.hasOwnProperty(r)&&(c=true,fs(e,t,i,r,r,o)),c}function fs(e,t,n,r,o,i){let s=t[n],a=t[E],u=a.data[n].outputs[r],d=s[u].subscribe(i);Vh(e.index,a,t,o,i,d,true);}function AI(){RI();}function RI(){let e=v$1(),t=F$4(),n=X$2();if(t.firstCreatePass&&FI(t,n),n.controlDirectiveIndex===-1)return;ze$2("NgSignalForms");let r=e[n.controlDirectiveIndex];t.data[n.controlDirectiveIndex].controlDef.create(r,new ps(e,t,n));}function OI(){kI();}function kI(){let e=v$1(),t=F$4(),n=nr$1();if(n.controlDirectiveIndex===-1)return;let r=t.data[n.controlDirectiveIndex].controlDef,o=e[n.controlDirectiveIndex];r.update(o,new ps(e,t,n));}var ps=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 Ae$2(this.tNode,this.lView)}get descriptor(){return `<${this.tNode.value}>`}listenToCustomControlOutput(t,n){let r=this.tView.data[this.tNode.customControlIndex];rp(this.tNode,this.lView,r,t,Sn$3(this.tNode,this.lView,n));}listenToCustomControlModel(t){let n=this.tNode.flags&1024?"valueChange":"checkedChange",r=this.tView.data[this.tNode.customControlIndex];rp(this.tNode,this.lView,r,n,Sn$3(this.tNode,this.lView,t));}listenToDom(t,n){el(this.tNode,this.tView,this.lView,void 0,this.lView[j$4],t,n,Sn$3(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];Mn$4(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];Mn$4(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";tI(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=op(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=op(i.directive);s!==null&&r.push(...s);}}}return n}};function op(e){return typeof e=="function"&&"\u0275dir"in e?e.\u0275dir.hostDirectives??null:null}function FI(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}PI(e,t);}function PI(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(ip(r,"value")){t.flags|=1024,t.customControlIndex=n;return}if(ip(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[p,f,h]=d;if(c>=f&&c<=h)return t.flags|=o,t.customControlIndex=p,true}}}return false};if(n("value",1024)||n("checked",2048))return}}function ip(e,t){return LI(e,t)&&jI(e,t+"Change")}function LI(e,t){return t in e.inputs}function jI(e,t){return t in e.outputs}var su=Symbol("BINDING");var Fn$3=new T$4("");function hs(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=bi$3(o,a);else if(i==2){let c=a,u=t[++s];r=bi$3(r,c+": "+u+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function Ge$3(e,t=0){let n=v$1();if(n===null)return b$2(e,t);let r=X$2();return Rp(r,n,re$4(e),t)}function BI(){let e="invalid";throw new Error(e)}function Hh(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}UI(e,t,n,a,i,c,u);}i!==null&&r!==null&&VI(n,r,i);}function VI(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new m$2(-301,false);r.push(t[o],i);}}function HI(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function UI(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&ot$2(f)&&(c=f,HI(e,n,p)),zc(as(n,t),e,f.type);}ZI(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let u=false,l=false,d=vh(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ar$1(n.mergedAttrs,f.hostAttrs),zI(e,n,t,d,f),qI(d,f,o),s!==null&&s.has(f)){let[y,D]=s.get(f);n.directiveToIndex.set(f.type,[d,y+n.directiveStart,D+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=true),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=true),d++;}$I(e,n,i);}function $I(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))sp(0,t,o,r),sp(1,t,o,r),cp(t,r,false);else {let i=n.get(o);ap(0,t,i,r),ap(1,t,i,r),cp(t,r,true);}}}function sp(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),Uh(t,i);}}function ap(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),Uh(t,s);}}function Uh(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function cp(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||Pu(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 zI(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Bt$1(o.type)),s=new _n$3(i,ot$2(o),Ge$3,null);e.blueprint[r]=s,n[r]=s,GI(e,t,r,vh(e,n,o.hostVars,Q$1),o);}function GI(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;WI(s)!=a&&s.push(a),s.push(n,r,i);}}function WI(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function qI(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ot$2(t)&&(n[""]=e);}}function ZI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function tl$1(e,t,n,r,o,i,s,a){let c=t[E],u=c.consts,l=Ie$2(u,s),d=kn$3(c,e,n,r,l);return Hh(c,t,d,Ie$2(u,a),o),d.mergedAttrs=ar$1(d.mergedAttrs,d.attrs),d.attrs!==null&&hs(d,d.attrs,false),d.mergedAttrs!==null&&hs(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function nl(e,t){Cp(e,t),ac(t)&&e.queries.elementEnd(t);}function YI(e,t,n,r,o,i){let s=t.consts,a=Ie$2(s,o),c=kn$3(t,e,n,r,a);if(c.mergedAttrs=ar$1(c.mergedAttrs,c.attrs),i!=null){let u=Ie$2(s,i);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1);}return c.attrs!==null&&hs(c,c.attrs,false),c.mergedAttrs!==null&&hs(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var $h=typeof ShadowRoot<"u",QI=typeof Document<"u";function KI(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&As$1.SignalBased)!==0};return o&&(i.transform=o),i})}function XI(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function JI(e,t,n){let r=t instanceof pe$4?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new ds(n,r):n}function ew(e){let t=e.get(Nn$3,null);if(t===null)throw new m$2(407,false);let n=e.get(jh,null),r=e.get(je$3,null),o=e.get(ut$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function tw(e,t){let n=zh(e);return nh(t,n,n==="svg"?cc:n==="math"?sf:null)}function nw(e){if(e?.toLowerCase()==="script")throw new m$2(905,false)}function zh(e){return (e.selectors[0][0]||"div").toLowerCase()}var xn$3=class xn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=KI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=XI(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=pE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){P$2(O$2.DynamicComponentStart);let a=I(null);try{let c=this.componentDef,u=JI(c,o||this.ngModule,t),l=ew(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Bh(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{I(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=rw(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?$E(u,o,a.encapsulation,n):tw(a,u);nw(l?.tagName);let d=n.get(Fn$3,null),p=ow(l,()=>n.get(U$5,null)??Mu());d&&d.addHost(p);let f=s?.some(up)||i?.some(D=>typeof D!="function"&&D.bindings.some(up)),h=Gu(null,c,null,512|yh(a),null,null,t,u,n,null,qp(l,n,true));d&&$h&&p instanceof ShadowRoot&&Li$2(h,()=>{d.removeHost(p);}),h[V$2]=l,Hi$1(h);let y=null;try{let D=tl$1(V$2,h,2,"#host",()=>c.directiveRegistry,!0,0);ih(u,l,D),cr$1(l,h),Rs$1(c,h,D),Nu(c,D,h),nl(c,D),r!==void 0&&sw(D,this.ngContentSelectors,r),y=Re$3(D.index,h),h[Y$3]=y[Y$3],Ku(c,h,null);}catch(D){throw y!==null&&Wc(y),Wc(h),D}finally{P$2(O$2.DynamicComponentEnd),Ui$1();}return new gs(this.componentType,h,!!f)}};function rw(e,t,n,r){let o=e?["ng-version","22.0.8"]:hE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[su].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 p of d.bindings){a+=p[su].requiredVars;let f=l+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,p=Qa(d);c.push(p);}return zu(0,null,iw(i,s),1,a,c,null,null,null,[o],null)}function ow(e,t){let n=e.getRootNode?.();return QI&&n instanceof Document?n.head:n&&$h&&n instanceof ShadowRoot?n:t().head}function iw(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 up(e){let t=e[su].kind;return t==="input"||t==="twoWay"}var gs=class extends Lh{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ki$3(n[E],V$2),this.location=hr$1(this._tNode,n),this.instance=Re$3(this._tNode.index,n)[Y$3],this.hostView=this.changeDetectorRef=new Kt$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;Qu(r,o[E],o,t,n);this.previousInputValues.set(t,n);let s=Re$3(r.index,o);Xu(s,1);}get injector(){return new Yt$2(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function sw(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 gr$1=(()=>{class e{static __NG_ELEMENT_ID__=aw}return e})();function aw(){let e=X$2();return Gh(e,v$1())}var au=class e extends gr$1{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return hr$1(this._hostTNode,this._hostLView)}get injector(){return new Yt$2(this._hostTNode,this._hostLView)}get parentInjector(){let t=Tu(this._hostTNode,this._hostLView);if(Sp(t)){let n=is(t,this._hostLView),r=os(t),o=n[E].data[r+8];return new Yt$2(o,n)}else return new Yt$2(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=lp(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-W$4}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ls(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,ur$1(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 xn$3(Et$2(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let _=this.parentInjector.get(pe$4,null);_&&(i=_);}let p=Et$2(l.componentType??{}),f=ls(this._lContainer,p?.id??null),h=null,y=l.create(d,o,h,i,s,a);return this.insertImpl(y.hostView,c,ur$1(this._hostTNode,f)),y}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(cf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[te$3],u=new e(c,c[se$2],c[te$3]);u.detach(u.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return Eo$1(s,o,i,r),t.attachToViewContainerRef(),Ja(kc(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=lp(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=fo$1(this._lContainer,n);r&&(Ur(kc(this._lContainer),n),Ns$1(r[E],r));}detach(t){let n=this._adjustIndex(t,-1),r=fo$1(this._lContainer,n);return r&&Ur(kc(this._lContainer),n)!=null?new Kt$2(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function lp(e){return e[Gr]}function kc(e){return e[Gr]||(e[Gr]=[])}function Gh(e,t){let n,r=t[e.index];return Ne$3(r)?n=r:(n=Rh(r,t,null,e),t[e.index]=n,Wu(t,n)),uw(n,t,e,r),new au(n,e,t)}function cw(e,t){let n=e[j$4],r=n.createComment(""),o=Ae$2(t,e),i=n.parentNode(o);return us(n,i,r,n.nextSibling(o),false),r}var uw=fw;function fw(e,t,n,r){if(e[zt$1])return;let o;n.type&8?o=xe$3(r):o=cw(t,n),e[zt$1]=o;}var cu=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},uu=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++)ol(t,n).matches!==null&&this.queries[n].setDirty();}},ms=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=yw(t):this.predicate=t;}},lu=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);}},du=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,pw(n,i)),this.matchTNodeWithReadOption(t,n,ts(n,t,i,false,false));}else r===lr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,ts(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===On$3||o===gr$1||o===lr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=ts(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 pw(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 hw(e,t){return e.type&11?hr$1(e,t):e.type&4?Os$2(e,t):null}function gw(e,t,n,r){return n===-1?hw(t,e):n===-2?mw(e,t,r):co$1(e,e[E],n,t)}function mw(e,t,n){if(n===On$3)return hr$1(t,e);if(n===lr$1)return Os$2(t,e);if(n===gr$1)return Gh(t,e)}function Wh(e,t,n,r){let o=t[tt$1].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(gw(t,l,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function fu(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Wh(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=W$4;d<l.length;d++){let p=l[d];p[$t$3]===p[te$3]&&fu(p[E],p,u,r);}if(l[In$3]!==null){let d=l[In$3];for(let p=0;p<d.length;p++){let f=d[p];fu(f[E],f,u,r);}}}}}return r}function rl(e,t){return e[tt$1].queries[t].queryList}function qh(e,t,n){let r=new cs((n&4)===4);return df(e,t,r,r.destroy),(t[tt$1]??=new uu).queries.push(new cu(r))-1}function Zh(e,t,n){let r=F$4();return r.firstCreatePass&&(Qh(r,new ms(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),qh(r,v$1(),t)}function Yh(e,t,n,r){let o=F$4();if(o.firstCreatePass){let i=X$2();Qh(o,new ms(t,n,r),i.index),vw(o,e),(n&2)===2&&(o.staticContentQueries=true);}return qh(o,v$1(),n)}function yw(e){return e.split(",").map(t=>t.trim())}function Qh(e,t,n){e.queries===null&&(e.queries=new lu),e.queries.track(new du(t,n));}function vw(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 ol(e,t){return e.queries.getByIndex(t)}function Kh(e,t){let n=e[E],r=ol(n,t);return r.crossesNgTemplate?fu(n,e,t,[]):Wh(n,e,r,t)}function il(e,t,n){let r,o=Rr$1(()=>{r._dirtyCounter();let i=Dw(r,e);if(t&&i===void 0)throw new m$2(-951,false);return i});return r=o[q$1],r._dirtyCounter=zi$2(0),r._flatValue=void 0,o}function sl(e){return il(true,false)}function al(e){return il(true,true)}function Xh(e){return il(false,false)}function Jh(e,t){let n=e[q$1];n._lView=v$1(),n._queryIndex=t,n._queryList=rl(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function Dw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[S$2]&4)return t?void 0:ie$3;let o=rl(n,r),i=Kh(n,r);return o.reset(i,Pp),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function Fs$1(e){return !!e&&typeof e.then=="function"}function cl(e){return !!e&&typeof e.subscribe=="function"}var An$3=class An{},eg=class{};var ys=class extends An$3{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=$d(t);this._bootstrapComponents=nE(i.bootstrap),this._r3Injector=Sc(t,n,[{provide:An$3,useValue:this},...r],Br(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);}},vs$1=class vs extends eg{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new ys(this.moduleType,t,[])}};var po$1=class po extends An$3{injector;instance=null;constructor(t){super();let n=new mn$2([...t.providers,{provide:An$3,useValue:this}],t.parent||Qn$3(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function tg(e,t,n=null){return new po$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var Ew=(()=>{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=tc(false,n.type),o=r.length>0?tg([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=x({token:e,providedIn:"environment",factory:()=>new e(b$2(pe$4))})}return e})();function Iw(e){return go$1(()=>{let t=ng(e),n=x$1(w$1({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Su.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Ew).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||$e$4.Emulated,styles:e.styles||ie$3,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&ze$2("NgStandalone"),rg(n);let r=e.dependencies;return n.directiveDefs=dp(r,ww),n.pipeDefs=dp(r,zd),n.id=bw(n),n})}function ww(e){return Et$2(e)||Qa(e)}function Ps$1(e){return go$1(()=>({type:e.type,bootstrap:e.bootstrap||ie$3,declarations:e.declarations||ie$3,imports:e.imports||ie$3,exports:e.exports||ie$3,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Cw(e,t){if(e==null)return Ht$1;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=As$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function Tw(e){if(e==null)return Ht$1;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function ul(e){return go$1(()=>{let t=ng(e);return rg(t),t})}function mr$1(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 ng(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||Ht$1,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||ie$3,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Cw(e.inputs,t),outputs:Tw(e.outputs),debugInfo:null}}function rg(e){e.features?.forEach(t=>t(e));}function dp(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 bw(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 ll=new T$4("");function Sw(e){return wt$3([{provide:ll,multi:true,useValue:e}])}var dl=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=g(ll,{optional:true})??[];injector=g(he$4);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Kn$3(this.injector,o);if(Fs$1(i))n.push(i);else if(cl(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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function _w(e){return t=>{t.controlDef={create:(n,r)=>{n?.\u0275ngControlCreate(r);},update:(n,r)=>{n?.\u0275ngControlUpdate?.(r);},passThroughInput:e};}}function Mw(e){return Object.getPrototypeOf(e.prototype).constructor}function og(e){let t=Mw(e.type),n=true,r=[e];for(;t;){let o;if(ot$2(e))o=t.\u0275cmp||t.\u0275dir;else {if(t.\u0275cmp)throw new m$2(903,false);o=t.\u0275dir;}if(o){if(n){r.push(o);let s=e;s.inputs=Fc(e.inputs),s.declaredInputs=Fc(e.declaredInputs),s.outputs=Fc(e.outputs);let a=o.hostBindings;a&&Ow(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&Aw(e,c),u&&Rw(e,u),Nw(e,o),Ud(e.outputs,o.outputs),ot$2(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===og&&(n=false);}}t=Object.getPrototypeOf(t);}xw(r);}function Nw(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 xw(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=ar$1(o.hostAttrs,n=ar$1(n,o.hostAttrs));}}function Fc(e){return e===Ht$1?{}:e===ie$3?[]:e}function Aw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o);}:e.viewQuery=t;}function Rw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i);}:e.contentQueries=t;}function Ow(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o);}:e.hostBindings=t;}function ig(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ar$1(e.mergedAttrs,e.attrs);let l=e.tView=zu(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),Tn$3(e,false);let c=Fw(n,t);$i$1()&&Uu(n,t,c,e),cr$1(c,t);let u=Rh(c,t,c,e);t[r+V$2]=u,Wu(t,u);}function kw(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$2,p;return t.firstCreatePass?(p=kn$3(t,d,4,s||null,a||null),Hh(t,e,p,Ie$2(t.consts,u),qu),Cp(t,p)):p=t.data[d],ig(p,e,t,n,r,o,i,c),er$1(p)&&Rs$1(t,e,p),u!=null&&vo$1(e,p,l),p}function fr$1(e,t,n,r,o,i,s,a,c,u,l){let d=n+V$2,p;if(t.firstCreatePass){if(p=kn$3(t,d,4,s||null,a||null),u!=null){let f=Ie$2(t.consts,u);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return ig(p,e,t,n,r,o,i,c),u!=null&&vo$1(e,p,l),p}function sg(e,t,n,r,o,i,s,a){let c=v$1(),u=F$4(),l=Ie$2(u.consts,i);return kw(c,u,e,t,n,r,o,l,void 0,s,a),sg}function ag(e,t,n,r,o,i,s,a){let c=v$1(),u=F$4(),l=Ie$2(u.consts,i);return fr$1(c,u,e,t,n,r,o,l,void 0,s,a),ag}var Fw=Pw;function Pw(e,t,n,r){return Kr(true),t[j$4].createComment("")}var cg=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var fl=new T$4("");var pl=new T$4("");function ug(){Sa(()=>{let e="";throw new m$2(600,e)});}var Lw=10;var yr$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=g(it$3);afterRenderManager=g(_s$1);zonelessEnabled=g(or$1);rootEffectScheduler=g(qi$1);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new le$4;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(Zt$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ne$3(n=>!n))}constructor(){g(ut$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=g(pe$4);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=he$4.NULL){return this._injector.get(G$2).run(()=>{if(P$2(O$2.BootstrapComponentStart),!this._injector.get(dl).done){let _="";throw new m$2(405,_)}let a=Et$2(n),c=this._injector.get(An$3),u=new xn$3(a,c);this.componentTypes.push(n);let{hostElement:l,directives:d,bindings:p}=jw(r),f=l||u.selector,h=u.create(o,[],f,c.injector,d,p),y=h.location.nativeElement,D=h.injector.get(fl,null);return D?.registerApplication(y),h.onDestroy(()=>{this.detachView(h.hostView),ao$1(this.components,h),D?.unregisterApplication(y);}),this._loadComponent(h),P$2(O$2.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){P$2(O$2.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Ss$1.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw P$2(O$2.ChangeDetectionEnd),new m$2(101,false);let n=I(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,I(n),this.afterTick.next(),P$2(O$2.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Nn$3,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<Lw;){P$2(O$2.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{P$2(O$2.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&&!Zr(o))continue;let i=r&&!this.zonelessEnabled?0:1;Mh(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})=>Zr(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;ao$1(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(pl,[]).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),()=>ao$1(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new m$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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function jw(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function ao$1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function lg(e,t,n,r){let o=v$1(),i=Wt$1();if(me$4(o,i,t)){F$4();let a=nr$1();KE(a,o,e,t,n,r);}return lg}function Bw(){return v$1()[ae$2][Y$3]}var pu=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 Pc(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Vw(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){I(r);let u=t.length-1;for(I(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],p=Pc(s,l,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[u],y=Pc(a,f,u,h,n);if(y!==0){y<0&&e.updateValue(a,h),a--,u--;continue}let D=n(s,l),_=n(a,f),$=n(s,d);if(Object.is($,_)){let be=n(u,h);Object.is(be,D)?(e.swap(s,a),e.updateValue(a,h),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ds$1,i??=pp(e,s,a,n),hu(e,o,s,$))e.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,e.detach(s)),a--;else {let be=e.create(s,t[s]);e.attach(s,be),s++,a++;}}for(;s<=u;)fp(e,o,n,s,t[s]),s++;}else if(t!=null){I(r);let u=t[Symbol.iterator]();I(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),p=l.value,f=Pc(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,l=u.next();else {o??=new Ds$1,i??=pp(e,s,a,n);let h=n(s,p);if(hu(e,o,s,h))e.updateValue(s,p),s++,a++,l=u.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,l=u.next();else {let y=n(s,d);o.set(y,e.detach(s)),a--;}}}for(;!l.done;)fp(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 hu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function fp(e,t,n,r,o){if(hu(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function pp(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 Ds$1=class Ds{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 Hw(e,t,n,r,o,i,s,a){ze$2("NgControlFlow");let c=v$1(),u=F$4(),l=Ie$2(u.consts,i);return fr$1(c,u,e,t,n,r,o,l,256,s,a),hl}function hl(e,t,n,r,o,i,s,a){ze$2("NgControlFlow");let c=v$1(),u=F$4(),l=Ie$2(u.consts,i);return fr$1(c,u,e,t,n,r,o,l,512,s,a),hl}function Uw(e,t){ze$2("NgControlFlow");let n=v$1(),r=Wt$1(),o=n[r]!==Q$1?n[r]:-1,i=o!==-1?Es$1(n,V$2+o):void 0,s=0;if(me$4(n,r,e)){let a=I(null);try{if(i!==void 0&&kh(i,s),e!==-1){let c=V$2+e,u=Es$1(n,c),l=vu(n[E],c),d=Ph(u,l,n),p=Do$1(n,l,t,{dehydratedView:d});Eo$1(u,p,s,ur$1(l,d));}}finally{I(a);}}else if(i!==void 0){let a=Oh(i,s);a!==void 0&&(a[Y$3]=t);}}var gu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-W$4}};function $w(e){return e}function zw(e,t){return t}var mu=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function Gw(e,t,n,r,o,i,s,a,c,u,l,d,p){ze$2("NgControlFlow");let f=v$1(),h=F$4(),y=c!==void 0,D=v$1(),_=a?s.bind(D[ae$2][Y$3]):s,$=new mu(y,_);D[V$2+e]=$,fr$1(f,h,e+1,t,n,r,o,Ie$2(h.consts,i),256),y&&fr$1(f,h,e+2,c,u,l,d,Ie$2(h.consts,p),512);}var yu=class extends pu{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-W$4}at(t){return this.getLView(t)[Y$3].$implicit}attach(t,n){let r=n[vn$2];this.needsIndexUpdate||=t!==this.length,Eo$1(this.lContainer,n,t,ur$1(this.templateTNode,r)),qw(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Zw(this.lContainer,t),Yw(this.lContainer,t)}create(t,n){let r=ls(this.lContainer,this.templateTNode.tView.ssrId);return Do$1(this.hostLView,this.templateTNode,new gu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Ns$1(t[E],t);}updateValue(t,n){this.getLView(t)[Y$3].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y$3].$index=t;}getLView(t){return Qw(this.lContainer,t)}};function Ww(e){let t=I(null),n=ge$4();try{let r=v$1(),o=r[E],i=r[n],s=n+1,a=Es$1(r,s);if(i.liveCollection===void 0){let u=vu(o,s);i.liveCollection=new yu(a,r,u);}else i.liveCollection.reset();let c=i.liveCollection;if(Vw(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=Wt$1(),l=c.length===0;if(me$4(r,u,l)){let d=n+2,p=Es$1(r,d);if(l){let f=vu(o,d),h=Ph(p,f,r),y=Do$1(r,f,void 0,{dehydratedView:h});Eo$1(p,y,0,ur$1(f,h));}else o.firstUpdatePass&&wI(p),kh(p,0);}}}finally{I(t);}}function Es$1(e,t){return e[t]}function qw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[rt$2]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[et];wE(i,o),Qt$2.delete(r[nt$1]),o.detachedLeaveAnimationFns=void 0;}}function Zw(e,t){if(e.length<=W$4)return;let n=W$4+t,r=e[n],o=r?r[rt$2]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function Yw(e,t){return fo$1(e,t)}function Qw(e,t){return Oh(e,t)}function vu(e,t){return ki$3(e,t)}function dg(e,t,n){let r=v$1(),o=Wt$1();if(me$4(r,o,t)){F$4();let s=nr$1();Ih(s,r,e,t,r[j$4],n);}return dg}function Du(e,t,n,r,o){Qu(t,e,n,o?"class":"style",r);}function Is$1(e,t,n,r){let o=v$1(),i=o[E],s=e+V$2,a=i.firstCreatePass?tl$1(s,o,2,t,qu,ji$1(),n,r):i.data[s];if(Tt$3(a)){let c=o[Ve$3].tracingService;if(c&&c.componentCreate){let u=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(Bh(u),()=>(hp(e,t,o,a,r),Is$1))}}return hp(e,t,o,a,r),Is$1}function hp(e,t,n,r,o){if(Zu(r,n,e,t,hg),er$1(r)){let i=n[E];Rs$1(i,n,r),Nu(i,r,n);}o!=null&&vo$1(n,r);}function gl(){let e=F$4(),t=X$2(),n=Yu(t);return e.firstCreatePass&&nl(e,n),mc(n)&&yc(),hc(),n.classesWithoutHost!=null&&nD(n)&&Du(e,n,v$1(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&rD(n)&&Du(e,n,v$1(),n.stylesWithoutHost,false),gl}function fg(e,t,n,r){return Is$1(e,t,n,r),gl(),fg}function ml(e,t,n,r){let o=v$1(),i=o[E],s=e+V$2,a=i.firstCreatePass?YI(s,i,2,t,n,r):i.data[s];return Zu(a,o,e,t,hg),r!=null&&vo$1(o,a),ml}function yl(){let e=X$2(),t=Yu(e);return mc(t)&&yc(),hc(),yl}function pg(e,t,n,r){return ml(e,t,n,r),yl(),pg}var hg=(e,t,n,r,o)=>(Kr(true),nh(t[j$4],r,bc()));function vl(e,t,n){let r=v$1(),o=r[E],i=e+V$2,s=o.firstCreatePass?tl$1(i,r,8,"ng-container",qu,ji$1(),t,n):o.data[i];if(Zu(s,r,e,"ng-container",Kw),er$1(s)){let a=r[E];Rs$1(a,r,s),Nu(a,s,r);}return n!=null&&vo$1(r,s),vl}function Dl(){let e=F$4(),t=X$2(),n=Yu(t);return e.firstCreatePass&&nl(e,n),Dl}function gg(e,t,n){return vl(e,t,n),Dl(),gg}var Kw=(e,t,n,r,o)=>(Kr(true),ZD(t[j$4],""));function Xw(){return v$1()}function mg(e,t,n){let r=v$1(),o=Wt$1();if(me$4(r,o,t)){F$4();let s=nr$1();wh(s,r,e,t,r[j$4],n);}return mg}var oo$1=void 0;function Jw(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var eC=["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"]],oo$1,[["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"]],oo$1,[["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}",oo$1,oo$1,oo$1],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Jw],Lc=Object.create(null);function ye$4(e){let t=tC(e),n=gp(t);if(n)return n;let r=t.split("-")[0];if(n=gp(r),n)return n;if(r==="en")return eC;throw new m$2(701,false)}function gp(e){if(!(e in Lc)){let t=_e$4.ng&&_e$4.ng.common&&_e$4.ng.common.locales&&_e$4.ng.common.locales[e];return t!==void 0&&(Lc[e]=t),t}return Lc[e]}var K$4={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 tC(e){return e.toLowerCase().replace(/_/g,"-")}var wo$1="en-US";function yg(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function vg(e,t,n){let r=v$1(),o=F$4(),i=X$2();return Eg(o,r,r[j$4],i,e,t,n),vg}function Dg(e,t,n){let r=v$1(),o=F$4(),i=X$2();return (i.type&3||n)&&el(i,o,r,n,r[j$4],e,t,Sn$3(i,r,t)),Dg}function Eg(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Sn$3(r,t,i),el(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 p=l[d],f=l[d+1];c??=Sn$3(r,t,i),fs(r,t,p,f,o,c);}if(u&&u.length)for(let d of u)c??=Sn$3(r,t,i),fs(r,t,d,o,o,c);}}function rC(e=1){return bf(e)}function oC(e,t){let n=null,r=cE(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?uh(e,i,true):dE(r,i))return o}return n}function iC(e){let t=v$1()[ae$2][se$2];if(!t.projection){let n=e?e.length:1,r=t.projection=Qd(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?oC(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function sC(e,t=0,n,r,o,i){let s=v$1(),a=F$4(),c=null;let u=kn$3(a,V$2+e,16,null,null);u.projection===null&&(u.projection=t),Ec();let d=!s[vn$2]||gc();s[ae$2][se$2].projection[u.projection]===null&&c!==null?aC(s,a,c):d&&!Cs$1(u)&&PE(a,s,u);}function aC(e,t,n){let r=V$2+n,o=t.data[r],i=e[r],s=ls(i,o.tView.ssrId),a=Do$1(e,o,void 0,{dehydratedView:s});Eo$1(i,a,0,ur$1(o,s));}function Ig(e,t,n,r){return Yh(e,t,n,r),Ig}function wg(e,t,n){return Zh(e,t,n),wg}function cC(e){let t=v$1(),n=F$4(),r=Vi$2();Qr(r+1);let o=ol(n,r);if(e.dirty&&af(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else {let i=Kh(t,r);e.reset(i,Pp),e.notifyOnChanges();}return true}return false}function uC(){return rl(v$1(),Vi$2())}function Cg(e,t,n,r,o){return Jh(t,Yh(e,n,r,o)),Cg}function Tg(e,t,n,r){return Jh(e,Zh(t,n,r)),Tg}function lC(e=1){Qr(Vi$2()+e);}function dC(e){let t=Ic();return Wr(t,V$2+e)}function Xi$1(e,t){return e<<17|t<<2}function Rn$3(e){return e>>17&32767}function fC(e){return (e&2)==2}function pC(e,t){return e&131071|t<<17}function Eu(e){return e|2}function pr$1(e){return (e&131068)>>2}function jc(e,t){return e&-131069|t<<2}function hC(e){return (e&1)===1}function Iu(e){return e|1}function gC(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Rn$3(s),c=pr$1(s);e[r]=n;let u=false,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Yn$3(d,l)>0)&&(u=true);}else l=n;if(o)if(c!==0){let p=Rn$3(e[a+1]);e[r+1]=Xi$1(p,a),p!==0&&(e[p+1]=jc(e[p+1],r)),e[a+1]=pC(e[a+1],r);}else e[r+1]=Xi$1(a,0),a!==0&&(e[a+1]=jc(e[a+1],r)),a=r;else e[r+1]=Xi$1(c,0),a===0?a=r:e[c+1]=jc(e[c+1],r),c=r;u&&(e[r+1]=Eu(e[r+1])),mp(e,l,r,true),mp(e,l,r,false),mC(t,l,e,r,i),s=Xi$1(a,c),i?t.classBindings=s:t.styleBindings=s;}function mC(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Yn$3(i,t)>=0&&(n[r+1]=Iu(n[r+1]));}function mp(e,t,n,r){let o=e[n+1],i=t===null,s=r?Rn$3(o):pr$1(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],u=e[s+1];yC(c,t)&&(a=true,e[s+1]=r?Iu(u):Eu(u)),s=r?Rn$3(u):pr$1(u);}a&&(e[n+1]=r?Eu(o):Iu(o));}function yC(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?Yn$3(e,t)>=0:false}var Ue$2={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function vC(e){return e.substring(Ue$2.key,Ue$2.keyEnd)}function DC(e){return EC(e),bg(e,Sg(e,0,Ue$2.textEnd))}function bg(e,t){let n=Ue$2.textEnd;return n===t?-1:(t=Ue$2.keyEnd=IC(e,Ue$2.key=t,n),Sg(e,t,n))}function EC(e){Ue$2.key=0,Ue$2.keyEnd=0,Ue$2.value=0,Ue$2.valueEnd=0,Ue$2.textEnd=e.length;}function Sg(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function IC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function _g(e,t,n){return Ng(e,t,n,false),_g}function Mg(e,t){return Ng(e,t,null,true),Mg}function wC(e){TC(xC,CC,e,true);}function CC(e,t){for(let n=DC(t);n>=0;n=bg(t,n))Ai$3(e,vC(t),true);}function Ng(e,t,n,r){let o=v$1(),i=F$4(),s=bn$2(2);if(i.firstUpdatePass&&Ag(i,e,s,r),t!==Q$1&&me$4(o,s,t)){let a=i.data[ge$4()];Rg(i,a,o,o[j$4],e,o[s+1]=RC(t,n),r,s);}}function TC(e,t,n,r){let o=F$4(),i=bn$2(2);o.firstUpdatePass&&Ag(o,null,i,r);let s=v$1();if(n!==Q$1&&me$4(s,i,n)){let a=o.data[ge$4()];if(Og(a,r)&&!xg(o,i)){let c=a.classesWithoutHost;c!==null&&(n=bi$3(c,n||"")),Du(o,a,s,n,r);}else AC(o,a,s,s[j$4],s[i+1],s[i+1]=NC(e,t,n),r,i);}}function xg(e,t){return t>=e.expandoStartIndex}function Ag(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ge$4()],s=xg(e,n);Og(i,r)&&t===null&&!s&&(t=false),t=bC(o,i,t,r),gC(o,i,t,n,s,r);}}function bC(e,t,n,r){let o=If(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bc(null,e,t,n,r),n=ho$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Bc(o,e,t,n,r),i===null){let c=SC(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Bc(null,e,t,c[1],r),c=ho$1(c,t.attrs,r),_C(e,t,r,c));}else i=MC(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function SC(e,t,n){let r=n?t.classBindings:t.styleBindings;if(pr$1(r)!==0)return e[Rn$3(r)]}function _C(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Rn$3(o)]=r;}function MC(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=ho$1(r,s,n);}return ho$1(r,t.attrs,n)}function Bc(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=ho$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ho$1(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]),Ai$3(e,s,n?true:t[++i]));}return e===void 0?null:e}function NC(e,t,n){if(n==null||n==="")return ie$3;let r=[],o=Te$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 xC(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ai$3(e,r,n);}function AC(e,t,n,r,o,i,s,a){o===Q$1&&(o=ie$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 p=c<o.length?o[c+1]:void 0,f=u<i.length?i[u+1]:void 0,h=null,y;l===d?(c+=2,u+=2,p!==f&&(h=d,y=f)):d===null||l!==null&&l<d?(c+=2,h=l):(u+=2,h=d,y=f),h!==null&&Rg(e,t,n,r,h,y,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null;}}function Rg(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=hC(u)?yp(c,t,n,o,pr$1(u),s):void 0;if(!ws$1(l)){ws$1(i)||fC(u)&&(i=yp(c,null,n,o,a,s));let d=uc(ge$4(),n);jE(r,s,d,o,i);}}function yp(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,p=n[o+1];p===Q$1&&(p=d?ie$3:void 0);let f=d?Ri$3(p,r):l===r?p:void 0;if(u&&!ws$1(f)&&(f=Ri$3(c,r)),ws$1(f)&&(a=f,s))return a;let h=e[o+1];o=s?Rn$3(h):pr$1(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ri$3(c,r));}return a}function ws$1(e){return e!==void 0}function RC(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Br(Te$1(e)))),e}function Og(e,t){return (e.flags&(t?8:16))!==0}function OC(e,t=""){let n=v$1(),r=F$4(),o=e+V$2,i=r.firstCreatePass?kn$3(r,o,1,t,null):r.data[o],s=kC(r,n,i,t);n[o]=s,$i$1()&&Uu(r,n,s,i),Tn$3(i,false);}var kC=(e,t,n,r)=>(Kr(true),WD(t[j$4],r));function kg(e,t,n,r=""){return me$4(e,Wt$1(),n)?t+Z$1(n)+r:Q$1}function FC(e,t,n,r,o,i=""){let s=Yr(),a=dr$1(e,s,n,o);return bn$2(2),a?t+Z$1(n)+r+Z$1(o)+i:Q$1}function PC(e,t,n,r,o,i,s,a,c,u=""){let l=Yr(),d=ks$1(e,l,n,o,s,c);return bn$2(4),d?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u:Q$1}function LC(e,t,n,r,o,i,s,a,c,u,l,d=""){let p=Yr(),f=ks$1(e,p,n,o,s,c);return f=me$4(e,p+4,l)||f,bn$2(5),f?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d:Q$1}function jC(e,t,n,r,o,i,s,a,c,u,l,d,p,f=""){let h=Yr(),y=ks$1(e,h,n,o,s,c);return y=dr$1(e,h+4,l,p)||y,bn$2(6),y?t+Z$1(n)+r+Z$1(o)+i+Z$1(s)+a+Z$1(c)+u+Z$1(l)+d+Z$1(p)+f:Q$1}function Fg(e){return El("",e),Fg}function El(e,t,n){let r=v$1(),o=kg(r,e,t,n);return o!==Q$1&&Co$1(r,ge$4(),o),El}function Pg(e,t,n,r,o){let i=v$1(),s=FC(i,e,t,n,r,o);return s!==Q$1&&Co$1(i,ge$4(),s),Pg}function Lg(e,t,n,r,o,i,s,a,c){let u=v$1(),l=PC(u,e,t,n,r,o,i,s,a,c);return l!==Q$1&&Co$1(u,ge$4(),l),Lg}function jg(e,t,n,r,o,i,s,a,c,u,l){let d=v$1(),p=LC(d,e,t,n,r,o,i,s,a,c,u,l);return p!==Q$1&&Co$1(d,ge$4(),p),jg}function Bg(e,t,n,r,o,i,s,a,c,u,l,d,p){let f=v$1(),h=jC(f,e,t,n,r,o,i,s,a,c,u,l,d,p);return h!==Q$1&&Co$1(f,ge$4(),h),Bg}function Co$1(e,t,n){let r=uc(t,e);qD(e[j$4],r,n);}function Vg(e,t,n){Zi$1(t)&&(t=t());let r=v$1(),o=Wt$1();if(me$4(r,o,t)){F$4();let s=nr$1();Ih(s,r,e,t,r[j$4],n);}return Vg}function BC(e,t){let n=Zi$1(e);return n&&e.set(t),n}function Hg(e,t){let n=v$1(),r=F$4(),o=X$2();return Eg(r,n,n[j$4],o,e,t),Hg}var Ug={};function $g(e){ze$2("NgLet");let t=F$4(),n=v$1(),r=e+V$2,o=kn$3(t,r,128,null,null);return Tn$3(o,false),qr(t,n,r,Ug),$g}function VC(e){let t=F$4(),n=v$1(),r=ge$4();return qr(t,n,r,e),e}function HC(e){let t=Ic(),n=Wr(t,V$2+e);if(n===Ug)throw new m$2(314,false);return n}function UC(e,t,n=""){return kg(v$1(),e,t,n)}function vp(e,t,n){let r=F$4();r.firstCreatePass&&zg(t,r.data,r.blueprint,ot$2(e),n);}function zg(e,t,n,r,o){if(e=re$4(e),Array.isArray(e))for(let i=0;i<e.length;i++)zg(e[i],t,n,r,o);else {let i=F$4(),s=v$1(),a=X$2(),c=gn$2(e)?e:re$4(e.provide),u=rc(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(gn$2(e)||!e.multi){let f=new _n$3(u,o,Ge$3,null),h=Hc(c,t,l+p,d);h===-1?(zc(as(a,s),i,c),Vc(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Hc(c,t,l+p,d),h=Hc(c,t,l,l+p),y=f>=0&&n[f],D=h>=0&&n[h];if(!y){zc(as(a,s),i,c);let _=GC($C,n.length,o,r,u);D&&(n[h].providerFactory=_),Vc(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(_),s.push(_);}else {let _=Gg(n[f],u,r);Vc(i,e,f>-1?f:h,_);}r&&D&&n[h].componentProviders++;}}}function Vc(e,t,n,r){let o=gn$2(t),i=nf(t);if(o||i){let c=(i?re$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 Gg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Hc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function $C(e,t,n,r,o){return wu(this.multi,[])}function wu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function GC(e,t,n,r,o,i){let s=new _n$3(e,n,Ge$3,null);return s.multi=[],s.index=t,s.componentProviders=0,Gg(s,o,r&&!n),s}function WC(e,t){return n=>{n.providersResolver=(r,o)=>vp(r,o?o(e):e,false);}}function qC(e,t){let n=Gt$1()+e,r=v$1();return r[n]===Q$1?Io$1(r,n,t()):_I(r,n)}function ZC(e,t,n){return Wg(v$1(),Gt$1(),e,t,n)}function YC(e,t,n,r){return qg(v$1(),Gt$1(),e,t,n,r)}function QC(e,t,n,r,o){return XC(v$1(),Gt$1(),e,t,n,r,o)}function KC(e,t,n,r,o,i,s){return JC(v$1(),Gt$1(),e,t,n,r,o,i)}function Ls$1(e,t){let n=e[t];return n===Q$1?void 0:n}function Wg(e,t,n,r,o,i){let s=t+n;return me$4(e,s,o)?Io$1(e,s+1,i?r.call(i,o):r(o)):Ls$1(e,s+1)}function qg(e,t,n,r,o,i,s){let a=t+n;return dr$1(e,a,o,i)?Io$1(e,a+2,s?r.call(s,o,i):r(o,i)):Ls$1(e,a+2)}function XC(e,t,n,r,o,i,s,a){let c=t+n;return MI(e,c,o,i,s)?Io$1(e,c+3,r(o,i,s)):Ls$1(e,c+3)}function JC(e,t,n,r,o,i,s,a,c){let u=t+n;return ks$1(e,u,o,i,s,a)?Io$1(e,u+4,r(o,i,s,a)):Ls$1(e,u+4)}function eT(e,t){let n=F$4(),r,o=e+V$2;n.firstCreatePass?(r=tT(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=Bt$1(r.type)),a=fe$5(Ge$3);try{let c=ss(!1),u=i();return ss(c),qr(n,v$1(),o,u),u}finally{fe$5(a);}}function tT(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function nT(e,t,n){let r=e+V$2,o=v$1(),i=Wr(o,r);return Zg(o,r)?Wg(o,Gt$1(),t,i.transform,n,i):i.transform(n)}function rT(e,t,n,r){let o=e+V$2,i=v$1(),s=Wr(i,o);return Zg(i,o)?qg(i,Gt$1(),t,s.transform,n,r,s):s.transform(n,r)}function Zg(e,t){return e[E].data[t].pure}function oT(e,t){return Os$2(e,t)}var Yg=(()=>{class e{applicationErrorHandler=g(it$3);appRef=g(yr$1);taskService=g(Zt$2);ngZone=g(G$2);zonelessEnabled=g(or$1);tracing=g(ut$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new ee$5;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Lr):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(Wi$1,{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?xf:Mc;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(Lr+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=Ce$5({token:e,factory:e.\u0275fac})}return e})();function Qg(){return [{provide:je$3,useExisting:Yg},{provide:G$2,useClass:jr},{provide:or$1,useValue:true}]}var iT=(()=>{class e{compileModuleSync(n){return new vs$1(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();function sT(){return typeof $localize<"u"&&$localize.locale||wo$1}var vr$1=new T$4("",{factory:()=>g(vr$1,{optional:true,skipSelf:true})||sT()});var To$1=class To{destroyed=false;listeners=null;errorHandler=g(Se$2,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=g(we$3);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new m$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(Je$3(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=I(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&&aT(this.listeners)),I(n),this.isEmitting=false;}}};function aT(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function cT(e,t){return Rr$1(e,t?.equal)}function bo$1(e){return Ld(e)}var uT=e=>e;function lT(e,t){if(typeof e=="function"){let n=Aa(e,uT,t?.equal);return Kg(n)}else {let n=Aa(e.source,e.computation,e.equal);return Kg(n,e.debugName)}}function Kg(e,t){let n=e[q$1],r=e;return r.set=o=>Fd(n,o),r.update=o=>Pd(n,o),r.asReadonly=Xr.bind(e),r}var Bs$1=Symbol("InputSignalNode#UNSET"),sm=x$1(w$1({},Or),{transformFn:void 0,applyValueToInputSignal(e,t){jt$2(e,t);}});function am(e,t){let n=Object.create(sm);n.value=e,n.transformFn=t?.transform;function r(){if(gt$3(n),n.value===Bs$1){let o=null;throw new m$2(-950,o)}return n.value}return r[q$1]=n,r}var Xg=class{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>bu(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function xB(e){return CT(e)?e.default:e}function CT(e){return e&&typeof e=="object"&&"default"in e}function AB(e){return new To$1}function Jg(e,t){return am(e,t)}function TT(e){return am(Bs$1,e)}var RB=(Jg.required=TT,Jg);function cm(e,t){let n=Object.create(sm),r=new To$1;n.value=e;function o(){return gt$3(n),em(n.value),n.value}return o[q$1]=n,o.asReadonly=Xr.bind(o),o.set=i=>{n.equal(n.value,i)||(jt$2(n,i),r.emit(i));},o.update=i=>{em(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function em(e){if(e===Bs$1)throw new m$2(952,false)}function tm(e,t){return cm(e)}function bT(e){return cm(Bs$1)}var OB=(tm.required=bT,tm);function nm(e,t){return sl()}function ST(e,t){return al()}var kB=(nm.required=ST,nm);function FB(e,t){return Xh()}function rm(e,t){return sl()}function _T(e,t){return al()}var PB=(rm.required=_T,rm);var um=(()=>{class e{static __NG_ELEMENT_ID__=NT}return e})();function NT(e){return xT(X$2(),v$1(),(e&16)===16)}function xT(e,t,n){if(Tt$3(e)&&!n){let r=Re$3(e.index,t);return new Kt$2(r,r)}else if(e.type&175){let r=t[ae$2];return new Kt$2(r,t)}return null}var AT=(()=>{class e{zone=g(G$2);changeDetectionScheduler=g(je$3);applicationRef=g(yr$1);applicationErrorHandler=g(it$3);_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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),RT=new T$4("",{factory:()=>false});function OT({ngZoneFactory:e,scheduleInRootZone:t}){return e??=()=>new G$2(x$1(w$1({},lm()),{scheduleInRootZone:t})),[{provide:or$1,useValue:false},{provide:G$2,useFactory:e},{provide:It$2,multi:true,useFactory:()=>{let n=g(AT,{optional:true});return ()=>n.initialize()}},{provide:It$2,multi:true,useFactory:()=>{let n=g(kT);return ()=>{n.initialize();}}},{provide:Wi$1,useValue:t??_c}]}function jB(e){let t=e?.scheduleInRootZone,n=OT({ngZoneFactory:()=>{let r=lm(e);return r.scheduleInRootZone=t,r.shouldCoalesceEventChangeDetection&&ze$2("NgZone_CoalesceEvent"),new G$2(r)},scheduleInRootZone:t});return wt$3([{provide:RT,useValue:true},n])}function lm(e){return {enableLongStackTrace:false,shouldCoalesceEventChangeDetection:e?.eventCoalescing??false,shouldCoalesceRunChangeDetection:e?.runCoalescing??false}}var kT=(()=>{class e{subscription=new ee$5;initialized=false;zone=g(G$2);pendingTasks=g(Zt$2);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(()=>{G$2.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null);});}));}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{G$2.assertInAngularZone(),n??=this.pendingTasks.add();}));}ngOnDestroy(){this.subscription.unsubscribe();}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var wl=new T$4(""),FT=new T$4("");function So$1(e){return !e.moduleRef}function PT(e){let t=So$1(e)?e.r3Injector:e.moduleRef.injector,n=t.get(G$2);return n.run(()=>{So$1(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(it$3),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),So$1(e)){let i=()=>t.destroy(),s=e.platformInjector.get(wl);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(wl);s.add(i),e.moduleRef.onDestroy(()=>{ao$1(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return jT(r,n,()=>{let i=t.get(Zt$2),s=i.add(),a=t.get(dl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(vr$1,wo$1);if(yg(c||wo$1),!t.get(FT,!0))return So$1(e)?t.get(yr$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(So$1(e)){let l=t.get(yr$1);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return LT?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var LT;function jT(e,t,n){try{let r=n();return Fs$1(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var js$1=null;function BT(e=[],t){return he$4.create({name:t,providers:[{provide:zr,useValue:"platform"},{provide:wl,useValue:new Set([()=>js$1=null])},...e]})}function VT(e=[]){if(js$1)return js$1;let t=BT(e);return js$1=t,ug(),HT(t),t}function HT(e){let t=e.get(Gi$1,null);Kn$3(e,()=>{t?.forEach(n=>n());});}function dm(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;P$2(O$2.BootstrapApplicationStart);try{let i=o?.injector??VT(r),s=[Qg(),Rf,...n||[]],a=new po$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return PT({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{P$2(O$2.BootstrapApplicationEnd);}}function UT(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function $T(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var Il=Symbol("NOT_SET"),fm=new Set,zT=x$1(w$1({},Or),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:Il,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!==Il&&!zn$3(this))return this.signal;try{for(let o of this.cleanup??fm)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=mt$4(this),r;try{r=this.userFn.apply(null,t);}finally{Pt$3(this,n);}return (this.value===Il||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Cl=class extends uo$1{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(we$3),s),this.scheduler=o;for(let a of ju){let c=n[a];if(c===void 0)continue;let u=Object.create(zT);u.sequence=this,u.phase=a,u.userFn=c,u.dirty=true,u.signal=()=>(gt$3(u),u.value),u.signal[q$1]=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??fm)n();}finally{Lt$2(t);}}};function BB(e,t){let n=g(he$4),r=n.get(je$3),o=n.get(_s$1),i=n.get(ut$2,null,{optional:true});o.impl??=n.get(Bu);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(rr$1,null,{optional:true}),c=new Cl(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function VB(e,t){let n=Et$2(e),r=t.elementInjector||Qn$3();return new xn$3(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function HB(e){let t=Et$2(e);if(!t)return null;let n=new xn$3(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 pm=null;function _t$4(){return pm}function Tl(e){pm??=e;}var _o$1=class _o{},Xt$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(hm),providedIn:"platform"})}return e})(),GT=new T$4(""),hm=(()=>{class e extends Xt$1{_location;_history;_doc=g(U$5);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return _t$4().getBaseHref(this._doc)}onPopState(n){let r=_t$4().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,false),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=_t$4().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=x({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Vs$1(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function gm(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function We$2(e){return e&&e[0]!=="?"?`?${e}`:e}var Dr$1=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:()=>g(ym),providedIn:"root"})}return e})(),Hs$1=new T$4(""),ym=(()=>{class e extends Dr$1{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??g(U$5).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 Vs$1(this._baseHref,n)}path(n=false){let r=this._platformLocation.pathname+We$2(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+We$2(i));this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+We$2(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$2(Xt$1),b$2(Hs$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var vm=(()=>{class e{_subject=new le$4;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=ZT(gm(mm(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+We$2(r))}normalize(n){return e.stripTrailingSlash(qT(this._basePath,mm(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+We$2(r)),o);}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+We$2(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=We$2;static joinWithSlash=Vs$1;static stripTrailingSlash=gm;static \u0275fac=function(r){return new(r||e)(b$2(Dr$1))};static \u0275prov=x({token:e,factory:()=>WT(),providedIn:"root"})}return e})();function WT(){return new vm(b$2(Dr$1))}function qT(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function mm(e){return e.replace(/\/index\.html$/,"")}function ZT(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var YT=(()=>{class e extends Dr$1{_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=Vs$1(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+We$2(i))||this._platformLocation.pathname;this._platformLocation.pushState(n,r,s);}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+We$2(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$2(Xt$1),b$2(Hs$1,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();var xl=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(xl||{});var ce$1=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(ce$1||{}),B$2=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(B$2||{}),ve$2=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(ve$2||{}),De$3={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function Im(e){return ye$4(e)[K$4.LocaleId]}function wm(e,t,n){let r=ye$4(e),o=[r[K$4.DayPeriodsFormat],r[K$4.DayPeriodsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Cm(e,t,n){let r=ye$4(e),o=[r[K$4.DaysFormat],r[K$4.DaysStandalone]],i=ke$4(o,t);return ke$4(i,n)}function Tm(e,t,n){let r=ye$4(e),o=[r[K$4.MonthsFormat],r[K$4.MonthsStandalone]],i=ke$4(o,t);return ke$4(i,n)}function bm(e,t){let r=ye$4(e)[K$4.Eras];return ke$4(r,t)}function Mo$2(e,t){let n=ye$4(e);return ke$4(n[K$4.DateFormat],t)}function No$1(e,t){let n=ye$4(e);return ke$4(n[K$4.TimeFormat],t)}function xo$1(e,t){let r=ye$4(e)[K$4.DateTimeFormat];return ke$4(r,t)}function lt$2(e,t){let n=ye$4(e),r=n[K$4.NumberSymbols][t];if(typeof r>"u"){if(t===De$3.CurrencyDecimal)return n[K$4.NumberSymbols][De$3.Decimal];if(t===De$3.CurrencyGroup)return n[K$4.NumberSymbols][De$3.Group]}return r}function Sm(e,t){return ye$4(e)[K$4.NumberFormats][t]}function _m(e){if(!e[K$4.ExtraData])throw new m$2(2303,false)}function Mm(e){let t=ye$4(e);return _m(t),(t[K$4.ExtraData][2]||[]).map(r=>typeof r=="string"?bl(r):[bl(r[0]),bl(r[1])])}function Nm(e,t,n){let r=ye$4(e);_m(r);let o=[r[K$4.ExtraData][0],r[K$4.ExtraData][1]],i=ke$4(o,t)||[];return ke$4(i,n)||[]}function ke$4(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new m$2(2304,false)}function bl(e){let[t,n]=e.split(":");return {hours:+t,minutes:+n}}var QT=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Us$1=Object.create(null),KT=/((?:[^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]*)/,XT=256;function xm(e,t,n,r){let o=cb(e);JT(t),t=Mt$2(n,t)||t;let s=[],a;for(;t;)if(a=KT.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=Rm(r,c),o=ab(o,r));let u="";return s.forEach(l=>{let d=ib(l);u+=d?d(o,n,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),u}function JT(e){if(e.length>XT)throw new m$2(2300,false)}function qs$2(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Mt$2(e,t){let n=Im(e);if(Us$1[n]??=Object.create(null),Us$1[n][t])return Us$1[n][t];let r="";switch(t){case "shortDate":r=Mo$2(e,ve$2.Short);break;case "mediumDate":r=Mo$2(e,ve$2.Medium);break;case "longDate":r=Mo$2(e,ve$2.Long);break;case "fullDate":r=Mo$2(e,ve$2.Full);break;case "shortTime":r=No$1(e,ve$2.Short);break;case "mediumTime":r=No$1(e,ve$2.Medium);break;case "longTime":r=No$1(e,ve$2.Long);break;case "fullTime":r=No$1(e,ve$2.Full);break;case "short":let o=Mt$2(e,"shortTime"),i=Mt$2(e,"shortDate");r=$s$1(xo$1(e,ve$2.Short),[o,i]);break;case "medium":let s=Mt$2(e,"mediumTime"),a=Mt$2(e,"mediumDate");r=$s$1(xo$1(e,ve$2.Medium),[s,a]);break;case "long":let c=Mt$2(e,"longTime"),u=Mt$2(e,"longDate");r=$s$1(xo$1(e,ve$2.Long),[c,u]);break;case "full":let l=Mt$2(e,"fullTime"),d=Mt$2(e,"fullDate");r=$s$1(xo$1(e,ve$2.Full),[l,d]);break}return r&&(Us$1[n][t]=r),r}function $s$1(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return Object.hasOwn(t,r)?t[r]:n})),e}function qe$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 eb(e,t){return qe$2(e,3).substring(0,t)}function J$2(e,t,n=0,r=false,o=false){return function(i,s){let a=tb(e,i);if((n>0||a>-n)&&(a+=n),e===3)a===0&&n===-12&&(a=12);else if(e===6)return eb(a,t);let c=lt$2(s,De$3.MinusSign);return qe$2(a,t,c,r,o)}}function tb(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 m$2(2301,false)}}function H$1(e,t,n=ce$1.Format,r=false){return function(o,i){return nb(o,i,e,t,n,r)}}function nb(e,t,n,r,o,i){switch(n){case 2:return Tm(t,o,r)[e.getMonth()];case 1:return Cm(t,o,r)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(i){let u=Mm(t),l=Nm(t,o,r),d=u.findIndex(p=>{if(Array.isArray(p)){let[f,h]=p,y=s>=f.hours&&a>=f.minutes,D=s<h.hours||s===h.hours&&a<h.minutes;if(f.hours<h.hours){if(y&&D)return true}else if(y||D)return true}else if(p.hours===s&&p.minutes===a)return true;return false});if(d!==-1)return l[d]}return wm(t,o,r)[s<12?0:1];case 3:return bm(t,r)[e.getFullYear()<=0?0:1];default:throw new m$2(2302,false)}}function zs$1(e){return function(t,n,r){let o=-1*r,i=lt$2(n,De$3.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case 0:return (o>=0?"+":"")+qe$2(s,2,i)+qe$2(Math.abs(o%60),2,i);case 1:return "GMT"+(o>=0?"+":"")+qe$2(s,1,i);case 2:return "GMT"+(o>=0?"+":"")+qe$2(s,2,i)+":"+qe$2(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+qe$2(s,2,i)+":"+qe$2(Math.abs(o%60),2,i);default:throw new m$2(2310,false)}}}var rb=0,Ws$1=4;function ob(e){let t=qs$2(e,rb,1).getDay();return qs$2(e,0,1+(t<=Ws$1?Ws$1:Ws$1+7)-t)}function Am(e){let t=e.getDay(),n=t===0?-3:Ws$1-t;return qs$2(e.getFullYear(),e.getMonth(),e.getDate()+n)}function Sl(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=Am(n),s=ob(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5);}return qe$2(o,e,lt$2(r,De$3.MinusSign))}}function Gs$1(e,t=false){return function(n,r){let i=Am(n).getFullYear();return qe$2(i,e,lt$2(r,De$3.MinusSign),t)}}var _l=Object.create(null);function ib(e){if(_l[e])return _l[e];let t;switch(e){case "G":case "GG":case "GGG":t=H$1(3,B$2.Abbreviated);break;case "GGGG":t=H$1(3,B$2.Wide);break;case "GGGGG":t=H$1(3,B$2.Narrow);break;case "y":t=J$2(0,1,0,false,true);break;case "yy":t=J$2(0,2,0,true,true);break;case "yyy":t=J$2(0,3,0,false,true);break;case "yyyy":t=J$2(0,4,0,false,true);break;case "Y":t=Gs$1(1);break;case "YY":t=Gs$1(2,true);break;case "YYY":t=Gs$1(3);break;case "YYYY":t=Gs$1(4);break;case "M":case "L":t=J$2(1,1,1);break;case "MM":case "LL":t=J$2(1,2,1);break;case "MMM":t=H$1(2,B$2.Abbreviated);break;case "MMMM":t=H$1(2,B$2.Wide);break;case "MMMMM":t=H$1(2,B$2.Narrow);break;case "LLL":t=H$1(2,B$2.Abbreviated,ce$1.Standalone);break;case "LLLL":t=H$1(2,B$2.Wide,ce$1.Standalone);break;case "LLLLL":t=H$1(2,B$2.Narrow,ce$1.Standalone);break;case "w":t=Sl(1);break;case "ww":t=Sl(2);break;case "W":t=Sl(1,true);break;case "d":t=J$2(2,1);break;case "dd":t=J$2(2,2);break;case "c":case "cc":t=J$2(7,1);break;case "ccc":t=H$1(1,B$2.Abbreviated,ce$1.Standalone);break;case "cccc":t=H$1(1,B$2.Wide,ce$1.Standalone);break;case "ccccc":t=H$1(1,B$2.Narrow,ce$1.Standalone);break;case "cccccc":t=H$1(1,B$2.Short,ce$1.Standalone);break;case "E":case "EE":case "EEE":t=H$1(1,B$2.Abbreviated);break;case "EEEE":t=H$1(1,B$2.Wide);break;case "EEEEE":t=H$1(1,B$2.Narrow);break;case "EEEEEE":t=H$1(1,B$2.Short);break;case "a":case "aa":case "aaa":t=H$1(0,B$2.Abbreviated);break;case "aaaa":t=H$1(0,B$2.Wide);break;case "aaaaa":t=H$1(0,B$2.Narrow);break;case "b":case "bb":case "bbb":t=H$1(0,B$2.Abbreviated,ce$1.Standalone,true);break;case "bbbb":t=H$1(0,B$2.Wide,ce$1.Standalone,true);break;case "bbbbb":t=H$1(0,B$2.Narrow,ce$1.Standalone,true);break;case "B":case "BB":case "BBB":t=H$1(0,B$2.Abbreviated,ce$1.Format,true);break;case "BBBB":t=H$1(0,B$2.Wide,ce$1.Format,true);break;case "BBBBB":t=H$1(0,B$2.Narrow,ce$1.Format,true);break;case "h":t=J$2(3,1,-12);break;case "hh":t=J$2(3,2,-12);break;case "H":t=J$2(3,1);break;case "HH":t=J$2(3,2);break;case "m":t=J$2(4,1);break;case "mm":t=J$2(4,2);break;case "s":t=J$2(5,1);break;case "ss":t=J$2(5,2);break;case "S":t=J$2(6,1);break;case "SS":t=J$2(6,2);break;case "SSS":t=J$2(6,3);break;case "Z":case "ZZ":case "ZZZ":t=zs$1(0);break;case "ZZZZZ":t=zs$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":t=zs$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":t=zs$1(2);break;default:return null}return _l[e]=t,t}function Rm(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function sb(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function ab(e,t,n){let o=e.getTimezoneOffset(),i=Rm(t,o);return sb(e,-1*(i-o))}function cb(e){if(Dm(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 qs$2(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QT))return ub(r)}let t=new Date(e);if(!Dm(t))throw new m$2(2311,false);return t}function ub(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 Dm(e){return e instanceof Date&&!isNaN(e.valueOf())}var lb=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Em=22,Zs$1=".",Ao$1="0",db=";",fb=",",Ml="#";function pb(e,t,n,r,o,i,s=false){let a="",c=false;if(!isFinite(e))a=lt$2(n,De$3.Infinity);else {let u=mb(e);s&&(u=gb(u));let l=t.minInt,d=t.minFrac,p=t.maxFrac;if(i){let $=i.match(lb);if($===null)throw new m$2(2306,false);let be=$[1],Ze=$[3],At=$[5];be!=null&&(l=Nl(be)),Ze!=null&&(d=Nl(Ze)),At!=null?p=Nl(At):Ze!=null&&d>p&&(p=d);let Fe=100;if(l>Fe||d>Fe||p>Fe)throw new m$2(2306,false)}yb(u,d,p);let f=u.digits,h=u.integerLen,y=u.exponent,D=[];for(c=f.every($=>!$);h<l;h++)f.unshift(0);for(;h<0;h++)f.unshift(0);h>0?D=f.splice(h,f.length):(D=f,f=[0]);let _=[];for(f.length>=t.lgSize&&_.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)_.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&_.unshift(f.join("")),a=_.join(lt$2(n,r)),D.length&&(a+=lt$2(n,o)+D.join("")),y&&(a+=lt$2(n,De$3.Exponential)+"+"+y);}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function Om(e,t,n){let r=Sm(t,xl.Decimal),o=hb(r,lt$2(t,De$3.MinusSign));return pb(e,o,t,De$3.Group,De$3.Decimal,n)}function hb(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(db),o=r[0],i=r[1],s=o.indexOf(Zs$1)!==-1?o.split(Zs$1):[o.substring(0,o.lastIndexOf(Ao$1)+1),o.substring(o.lastIndexOf(Ao$1)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(Ml));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===Ao$1?n.minFrac=n.maxFrac=l+1:d===Ml?n.maxFrac=l+1:n.posSuf+=d;}let u=a.split(fb);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(Ml);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 gb(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 mb(e){let t=Math.abs(e)+"",n=0,r,o,i,s,a;for((o=t.indexOf(Zs$1))>-1&&(t=t.replace(Zs$1,"")),(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)===Ao$1;i++);if(i===(a=t.length))r=[0],o=1;else {for(a--;t.charAt(a)===Ao$1;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i));}return o>Em&&(r=r.splice(0,Em-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function yb(e,t,n){if(t>n)throw new m$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,p,f,h){return p=p+d,h[f]=p<10?p:p-10,c&&(h[f]===0&&f>=u?h.pop():c=false),p>=10?1:0},0);l&&(r.unshift(l),e.integerLen++);}function Nl(e){let t=parseInt(e);if(isNaN(t))throw new m$2(2305,false);return t}var vb=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(he$4);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)(Ge$3(gr$1))};static \u0275dir=ul({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Cu]})}return e})();function Al(e,t){return new m$2(2100,false)}var Db=(()=>{class e{transform(n){return n==null?null:(Eb(e,n),n.toLowerCase())}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=mr$1({name:"lowercase",type:e,pure:true})}return e})();function Eb(e,t){if(typeof t!="string")throw Al()}var Ib="mediumDate",km=new T$4(""),Fm=new T$4(""),wb=(()=>{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??Ib,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return xm(n,s,i||this.locale,a)}catch(s){throw Al(e,s.message)}}static \u0275fac=function(r){return new(r||e)(Ge$3(vr$1,16),Ge$3(km,24),Ge$3(Fm,24))};static \u0275pipe=mr$1({name:"date",type:e,pure:true})}return e})();var Cb=(()=>{class e{transform(n){return JSON.stringify(n,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=mr$1({name:"json",type:e,pure:false})}return e})();var Tb=(()=>{class e{_locale;constructor(n){this._locale=n;}transform(n,r,o){if(!bb(n))return null;o||=this._locale;try{let i=Sb(n);return Om(i,o,r)}catch(i){throw Al(e,i.message)}}static \u0275fac=function(r){return new(r||e)(Ge$3(vr$1,16))};static \u0275pipe=mr$1({name:"number",type:e,pure:true})}return e})();function bb(e){return !(e==null||e===""||e!==e)}function Sb(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new m$2(2309,false);return e}function Ro$1(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 Ol="browser";function d2(e){return e===Ol}var f2=(()=>{class e{static \u0275prov=x({token:e,providedIn:"root",factory:()=>new Rl(g(U$5),window)})}return e})(),Rl=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$1(w$1({},n),{left:t[0],top:t[1]}));}scrollToAnchor(t,n){let r=xb(this.document,t);r&&(this.scrollToElement(r,n),r.focus({preventScroll:true}));}setHistoryScrollRestoration(t){try{this.window.history.scrollRestoration=t;}catch(n){console.warn(Je$3(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$1(w$1({},n),{left:o-s[0],top:i-s[1]}));}};function xb(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 Oo$1=class Oo{_doc;constructor(t){this._doc=t;}manager},Ys$1=(()=>{class e extends Oo$1{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$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Xs$1=new T$4(""),Ll$1=(()=>{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 Ys$1));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Ys$1);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 m$2(-5101,false);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(b$2(Xs$1),b$2(G$2))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),kl="ng-app-id";function Pm(e){for(let t of e)t.remove();}function Lm(e,t){let n=t.createElement("style");return n.textContent=e,n}function Ab(e,t,n,r){let o=e.head?.querySelectorAll(`style[${kl}="${t}"],link[${kl}="${t}"]`);if(!o||o.length===0)return false;for(let i of o)i.removeAttribute(kl),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 Pl(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var jl=(()=>{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,Ab(n,r,this.inline,this.external)&&this.hosts.add(n.head);}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Lm);r?.forEach(o=>this.addUsage(o,this.external,Pl));}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&&(Pm(o.elements),r.delete(n)));}ngOnDestroy(){for(let[,{elements:n}]of [...this.inline,...this.external])Pm(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,Lm(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Pl(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$2(U$5),b$2(Jr),b$2(to$1,8),b$2(eo$1))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),Fl={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"},Bl=/%COMP%/g;var Bm="%COMP%",Rb=`_nghost-${Bm}`,Ob=`_ngcontent-${Bm}`,kb=true,Fb=new T$4("",{factory:()=>kb});function Pb(e){return Ob.replace(Bl,e)}function Lb(e){return Rb.replace(Bl,e)}function Vm(e,t){return t.map(n=>n.replace(Bl,e))}var Vl=(()=>{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 ko$1(n,s,a,this.tracingService);}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Ks$1?o.applyToHost(n):o instanceof Fo$1&&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 $e$4.Emulated:i=new Ks$1(c,u,r,this.appId,l,s,a,d);break;case $e$4.ShadowDom:return new Qs$1(c,n,r,s,a,this.nonce,d,u);case $e$4.ExperimentalIsolatedShadowDom:return new Qs$1(c,n,r,s,a,this.nonce,d);default:i=new Fo$1(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$2(Ll$1),b$2(Fn$3),b$2(Jr),b$2(Fb),b$2(U$5),b$2(G$2),b$2(to$1),b$2(ut$2,8))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})(),ko$1=class ko{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(Fl[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(jm(t)?t.content:t).appendChild(n);}insertBefore(t,n,r){t&&(jm(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 m$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=Fl[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r);}else t.setAttribute(n,r);}removeAttribute(t,n,r){if(r){let o=Fl[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&(at$3.DashCase|at$3.Important)?t.style.setProperty(n,r,o&at$3.Important?"important":""):t.style[n]=r;}removeStyle(t,n,r){r&at$3.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=_t$4().getGlobalEventTarget(this.doc,t),!t))throw new m$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 jm(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Qs$1=class Qs extends ko$1{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=Vm(r.id,u);for(let d of u){let p=document.createElement("style");s&&p.setAttribute("nonce",s),p.textContent=d,this.shadowRoot.appendChild(p);}let l=r.getExternalStyles?.();if(l)for(let d of l){let p=Pl(d,o);s&&p.setAttribute("nonce",s),this.shadowRoot.appendChild(p);}}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);}},Fo$1=class Fo extends ko$1{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?Vm(c,u):u,this.styleUrls=r.getExternalStyles?.(c);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&Qt$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Ks$1=class Ks extends Fo$1{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=Pb(u),this.hostAttr=Lb(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 Js$1=class e extends _o$1{supportsDOMEvents=true;static makeCurrent(){Tl(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=jb();return n==null?null:Bb(n)}resetBaseElement(){Po$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ro$1(document.cookie,t)}},Po$1=null;function jb(){return Po$1=Po$1||document.head.querySelector("base"),Po$1?Po$1.getAttribute("href"):null}function Bb(e){return new URL(e,document.baseURI).pathname}var Hm=["alt","control","meta","shift"],Vb={"\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"},Hb={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Um=(()=>{class e extends Oo$1{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(()=>_t$4().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."),Hm.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=Vb[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"),Hm.forEach(s=>{if(s!==o){let a=Hb[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$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac})}return e})();function Ub(e,t,n){return B$3(this,null,function*(){let r=w$1({rootComponent:e},$b(t,n));return dm(r)})}function $b(e,t){return {platformRef:t?.platformRef,appProviders:[...Zb,...e?.providers??[]],platformProviders:qb}}function zb(){Js$1.makeCurrent();}function Gb(){return new Se$2}function Wb(){return _u(document),document}var qb=[{provide:eo$1,useValue:Ol},{provide:Gi$1,useValue:zb,multi:true},{provide:U$5,useFactory:Wb}];var Zb=[{provide:zr,useValue:"root"},{provide:Se$2,useFactory:Gb},{provide:Xs$1,useClass:Ys$1,multi:true},{provide:Xs$1,useClass:Um,multi:true},Vl,{provide:Fn$3,useClass:jl},{provide:jl,useExisting:Fn$3},Ll$1,{provide:Nn$3,useExisting:Vl},[]];var xt$2=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 ta$1=class ta{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()}},na$1=class na{encodeKey(t){return $m(t)}encodeValue(t){return $m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Yb(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 Qb=/%(\d[a-f0-9])/gi,Kb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $m(e){return encodeURIComponent(e).replace(Qb,(t,n)=>Kb[n]??t)}function ea$1(e){return `${e}`}var Nt$3=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new na$1,t.fromString){if(t.fromObject)throw new m$2(2805,false);this.map=Yb(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(ea$1):[ea$1(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(ea$1(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(ea$1(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 Xb(e){switch(e){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function zm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Gm(e){return typeof Blob<"u"&&e instanceof Blob}function Wm(e){return typeof FormData<"u"&&e instanceof FormData}function Jb(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Hl="Content-Type",qm="Accept",Ym="text/plain",Qm="application/json",eS=`${Qm}, ${Ym}, */*`,Er$1=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(Xb(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 m$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 xt$2,this.context??=new ta$1,!this.params)this.params=new Nt$3,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"||zm(this.body)||Gm(this.body)||Wm(this.body)||Jb(this.body)?this.body:this.body instanceof Nt$3?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||Wm(this.body)?null:Gm(this.body)?this.body.type||null:zm(this.body)?null:typeof this.body=="string"?Ym:this.body instanceof Nt$3?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Qm: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,p=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,h=t.transferCache??this.transferCache,y=t.timeout??this.timeout,D=t.body!==void 0?t.body:this.body,_=t.withCredentials??this.withCredentials,$=t.reportProgress??this.reportProgress,be=t.reportUploadProgress??this.reportUploadProgress,Ze=t.reportDownloadProgress??this.reportDownloadProgress,At=t.headers||this.headers,Fe=t.params||this.params,jo=t.context??this.context;return t.setHeaders!==void 0&&(At=Object.keys(t.setHeaders).reduce((jn,Jt)=>jn.set(Jt,t.setHeaders[Jt]),At)),t.setParams&&(Fe=Object.keys(t.setParams).reduce((jn,Jt)=>jn.set(Jt,t.setParams[Jt]),Fe)),new e(n,r,D,{params:Fe,headers:At,context:jo,reportProgress:$,reportUploadProgress:be,reportDownloadProgress:Ze,responseType:o,withCredentials:_,transferCache:h,keepalive:i,cache:a,priority:s,timeout:y,mode:c,redirect:u,credentials:l,referrer:d,integrity:p,referrerPolicy:f})}},Ir$1=(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})(Ir$1||{}),wr$1=class wr{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new xt$2,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;}},ra$1=class e extends wr$1{constructor(t={}){super(t);}type=Ir$1.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})}},Lo$1=class e extends wr$1{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null;}type=Ir$1.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})}},Ln$3=class Ln extends wr$1{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;}},tS=200;var nS=/^\)\]\}',?\n/,Km=new T$4("",{factory:()=>null}),oa$1=(()=>{class e{fetchImpl=g($l,{optional:true})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g(G$2);destroyRef=g(we$3);maxResponseSize=g(Km);handle(n){return new R$2(r=>{let o=new AbortController;this.doRequest(n,o.signal,r).then(zl,s=>r.error(new Ln$3({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$3(this,null,function*(){let i=this.createRequestInit(n),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w$1({signal:r},i)));rS(D),o.next({type:Ir$1.Sent}),s=yield D;}catch(D){o.error(new Ln$3({error:D,status:D.status??0,statusText:D.statusText,url:n.urlWithParams,headers:D.headers}));return}let a=new xt$2(s.headers),c=s.statusText,u=s.url||n.urlWithParams,l=s.status,d=null,p=n.reportProgress||n.reportDownloadProgress;if(p&&o.next(new ra$1({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),_=D!==null?Number(D):NaN;this.maxResponseSize!==null&&Number.isFinite(_)&&_>this.maxResponseSize&&Zm(this.maxResponseSize);let $=[],be=s.body.getReader(),Ze=0,At,Fe,jo=typeof Zone<"u"&&Zone.current,jn=false;if(yield this.ngZone.runOutsideAngular(()=>B$3(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield be.cancel(),jn=true;break}let{done:Cr,value:sa}=yield be.read();if(Cr)break;if($.push(sa),Ze+=sa.length,this.maxResponseSize!==null&&Ze>this.maxResponseSize&&(yield be.cancel(),Zm(this.maxResponseSize)),p){Fe=n.responseType==="text"?(Fe??"")+(At??=new TextDecoder).decode(sa,{stream:true}):void 0;let ql=()=>o.next({type:Ir$1.DownloadProgress,total:Number.isFinite(_)?_:void 0,loaded:Ze,partialText:Fe});jo?jo.run(ql):ql();}}})),jn){o.complete();return}let Jt=this.concatChunks($,Ze);try{let Cr=s.headers.get(Hl)??"";d=this.parseBody(n,Jt,Cr,l);}catch(Cr){o.error(new Ln$3({error:Cr,headers:new xt$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||n.urlWithParams}));return}}l===0&&(l=d?tS:0);let f=l>=200&&l<300,h=s.redirected,y=s.type;f?(o.next(new Lo$1({body:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y})),o.complete()):o.error(new Ln$3({error:d,headers:a,status:l,statusText:c,url:u,redirected:h,responseType:y}));})}parseBody(n,r,o,i){switch(n.responseType){case "json":let s=new TextDecoder().decode(r).replace(nS,"");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 m$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(qm)||(r[qm]=eS),!n.headers.has(Hl)){let i=n.detectContentTypeHeader();i!==null&&(r[Hl]=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=Ce$5({token:e,factory:e.\u0275fac})}return e})(),$l=class{};function zl(){}function rS(e){e.then(zl,zl);}function Zm(e){throw new m$2(-2825,false)}function oS(e,t){return t(e)}function iS(e,t,n){return (r,o)=>Kn$3(n,()=>t(r,i=>e(i,o)))}var Xm=new T$4("",{factory:()=>[]}),Jm=new T$4(""),ey=new T$4("",{factory:()=>true});var Gl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(oa$1),o},providedIn:"root"})}return e})();var ia$1=(()=>{class e{backend;injector;chain=null;pendingTasks=g(ro$1);contributeToStability=g(ey);constructor(n,r){this.backend=n,this.injector=r;}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Xm),...this.injector.get(Jm,[])]));this.chain=o.reduceRight((i,s)=>iS(i,s,this.injector),oS);}let r=this.chain;if(this.contributeToStability){let o=this.pendingTasks.add();return bo$1(()=>r(n,i=>this.backend.handle(i))).pipe(di$3(o))}else return bo$1(()=>r(n,o=>this.backend.handle(o)))}static \u0275fac=function(r){return new(r||e)(b$2(Gl),b$2(pe$4))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Wl=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(ia$1),o},providedIn:"root"})}return e})();function Ul(e,t){return w$1({body:t},e)}var ty=(()=>{class e{handler;constructor(n){this.handler=n;}request(n,r,o={}){let i;if(n instanceof Er$1)i=n;else {let c;o.headers instanceof xt$2?c=o.headers:c=new xt$2(o.headers);let u;o.params&&(o.params instanceof Nt$3?u=o.params:u=new Nt$3({fromObject:o.params})),i=new Er$1(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=br$1(i).pipe(pi$3(c=>this.handler.handle(c)));if(n instanceof Er$1||o.observe==="events")return s;let a=s.pipe(Ot$1(c=>c instanceof Lo$1));switch(o.observe||"body"){case "body":switch(i.responseType){case "arraybuffer":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new m$2(2806,false);return c.body}));case "blob":return a.pipe(ne$3(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new m$2(2807,false);return c.body}));case "text":return a.pipe(ne$3(c=>{if(c.body!==null&&typeof c.body!="string")throw new m$2(2808,false);return c.body}));default:return a.pipe(ne$3(c=>c.body))}case "response":return a;default:throw new m$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 Nt$3().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,Ul(o,r))}post(n,r,o={}){return this.request("POST",n,Ul(o,r))}put(n,r,o={}){return this.request("PUT",n,Ul(o,r))}static \u0275fac=function(r){return new(r||e)(b$2(Wl))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sS=new T$4("",{factory:()=>true}),aS="XSRF-TOKEN",cS=new T$4("",{factory:()=>aS}),uS="X-XSRF-TOKEN",lS=new T$4("",{factory:()=>uS}),dS=(()=>{class e{cookieName=g(cS);doc=g(U$5);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ro$1(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})(),ny=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(dS),o},providedIn:"root"})}return e})();function fS(e,t){if(!g(sS)||e.method==="GET"||e.method==="HEAD")return t(e);try{let o=g(Xt$1).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=g(ny).getToken(),r=g(lS);return n!=null&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,n)})),t(e)}function pS(...e){let t=[ty,oa$1,ia$1,{provide:Wl,useExisting:ia$1},{provide:Gl,useFactory:()=>g(oa$1)},{provide:Xm,useValue:fS,multi:true}];for(let n of e)t.push(...n.\u0275providers);return wt$3(t)}var BH=(()=>{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$2(U$5))};static \u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var hS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=x({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=b$2(gS),o},providedIn:"root"})}return e})(),gS=(()=>{class e extends hS{_doc=g(U$5);sanitize(n,r){if(r==null)return null;switch(n){case Oe$1.NONE:return r;case Oe$1.HTML:return ct$1(r,"HTML")?Te$1(r):bs$1(this._doc,String(r)).toString();case Oe$1.STYLE:return ct$1(r,"Style")?Te$1(r):r;case Oe$1.SCRIPT:if(ct$1(r,"Script"))return Te$1(r);throw new m$2(5200,false);case Oe$1.URL:return ct$1(r,"URL")?Te$1(r):mo$1(String(r));case Oe$1.RESOURCE_URL:if(ct$1(r,"ResourceURL"))return Te$1(r);throw new m$2(-5201,false);default:throw new m$2(5202,false)}}bypassSecurityTrustHtml(n){return xu(n)}bypassSecurityTrustStyle(n){return Au(n)}bypassSecurityTrustScript(n){return Ru(n)}bypassSecurityTrustUrl(n){return Ou(n)}bypassSecurityTrustResourceUrl(n){return ku(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=Ce$5({token:e,factory:e.\u0275fac})}return e})();var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:x,apiKeys:n,basePath:r,credentials:p,encodeParam:o,encoder:t,password:e,username:s,withCredentials:c}={}){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),c!==void 0&&(this.withCredentials=c),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=p??{};}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,p){let o=this.lookupCredential(x);return o?r.set(n,(p??"")+o):r}addCredentialToQuery(x,n,r){let p=this.lookupCredential(x);return p?r.set(n,p):r}defaultEncodeParam(x){let n=x.dataFormat==="date-time"&&x.value instanceof Date?x.value.toISOString():x.value;return encodeURIComponent(String(n))}};var P$1=new T$4("basePath");var B$1=class B{encodeKey(x){return encodeURIComponent(x)}encodeValue(x){return encodeURIComponent(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}};var j$3=class j{basePath="http://localhost:18124";defaultHeaders=new xt$2;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 B$1;}canConsumeForm(x){return x.indexOf("multipart/form-data")!==-1}addToHttpParams(x,n,r,p=false){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(x,n,p?r:void 0,p):this.addToHttpParamsRecursive(x,n,r)}addToHttpParamsRecursive(x,n,r,p=false){if(n==null)return x;if(typeof n=="object"){if(r!=null)return p?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 U$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAgentConfig(n,r="body",p=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 ta$1,c=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 l="/api/agent-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAgentConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableAgentConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableAgentConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportAgentConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAgentConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAgentConfig(n,r="body",p=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 ta$1,c=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 l="/api/agent-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getDefinitionAgentConfig(n,r,p,o="body",t=false,e){if(n==null)throw new Error("Required parameter id was null or undefined when calling getDefinitionAgentConfig.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,r,"withUserOverlay"),s=this.addToHttpParams(s,p,"namespaceId");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ta$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="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$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}listByParentAgentConfig(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAgentConfig.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"withDisabled");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listPlatformAgentsAgentConfig(n,r="body",p=false,o){let t=new Nt$3({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 c=o?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}searchAgentConfig(n,r="body",p=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 ta$1,c=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 l="/api/agent-configs/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateAgentConfig(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var N$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAgentConfigDefaults(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/agent-configs/defaults",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var k$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiModel(n,r="body",p=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 ta$1,c=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 l="/api/ai-models",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiModel(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiModel(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiModel(n,r="body",p=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 ta$1,c=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 l="/api/ai-models/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByNamespaceIdAiModel(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentAiModel(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listPlatformLevelAiModel(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/ai-models/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateAiModel(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var F$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createAiProvider(n,r="body",p=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 ta$1,c=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 l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAiProvider(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAiProvider(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAiProvider(n,r="body",p=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 ta$1,c=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 l="/api/ai-providers/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAiProvider(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/ai-providers",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAiProvider(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var D$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;addMessageCase(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}countUnreadCase(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling countUnreadCase.");let t=new Nt$3({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 c=o?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}createCase(n,r="body",p=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 ta$1,c=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 l="/api/cases",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCase(n,r="body",p=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 ta$1,c=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 l="/api/cases/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}interruptCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}killCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserExternalIdCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByUserInNamespaceCase(n,r="body",p=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 ta$1,c=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 l="/api/cases/by-user/in-namespace",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listMineByParentCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}markCaseRead(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reopenCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setModelCase(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling setModelCase.");if(r==null)throw new Error("Required parameter caseModelRequest was null or undefined when calling setModelCase.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/model`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("put",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}setReasoningEffortCase(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}starCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("put",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unstarCase(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateCase(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var W$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;listEffectiveConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/admin/configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var G$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createIntegrationConfig(n,r="body",p=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 ta$1,c=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 l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteIntegrationConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportIntegrationConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdIntegrationConfig(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsIntegrationConfig(n,r="body",p=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 ta$1,c=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 l="/api/integration-configs/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listIntegrationConfig(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/integration-configs",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateIntegrationConfig(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var _$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getTypeIntegrationType(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listTypesIntegrationType(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var J$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createNamespace(n,r="body",p=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 ta$1,c=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 l="/api/namespaces",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteNamespace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deployAgentsNamespace(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getByIdNamespace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsNamespace(n,r="body",p=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 ta$1,c=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 l="/api/namespaces/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listAllNamespace(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsNamespace(n,r="body",p=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 ta$1,c=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 l="/api/namespaces/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}undeployAgentsNamespace(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateNamespace(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var L$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getAssociationNamespaceGit(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}removeAssociationNamespaceGit(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}setAssociationNamespaceGit(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Y$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;aggregateByAgentUsageRecord(n,r,p,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(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByAgentUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ta$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-agent",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByCaseIdUsageRecord(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByCaseTreeUsageRecord(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}aggregateByModelUsageRecord(n,r,p,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(p==null)throw new Error("Required parameter to was null or undefined when calling aggregateByModelUsageRecord.");let s=new Nt$3({encoder:this.encoder});s=this.addToHttpParams(s,n,"namespaceId"),s=this.addToHttpParams(s,r,"from"),s=this.addToHttpParams(s,p,"to");let c=this.defaultHeaders,a=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);a!==void 0&&(c=c.set("Accept",a));let d=e?.context??new ta$1,i=e?.transferCache??true,l="json";a&&(a.startsWith("text")?l="text":this.configuration.isJsonMime(a)?l="json":l="blob");let f="/api/usage-records/aggregate/by-model",{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("get",`${b}${f}`,x$1(w$1({context:d,params:s,responseType:l},m?{withCredentials:m}:{}),{headers:c,observe:o,transferCache:i,reportProgress:t}))}aggregateByUserUsageRecord(n,r,p,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(p==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 c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,n,"userId"),c=this.addToHttpParams(c,r,"namespaceId"),c=this.addToHttpParams(c,p,"from"),c=this.addToHttpParams(c,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 ta$1,l=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$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}listByCaseIdUsageRecord(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Me$2=(r=>(r.SIMPLE="SIMPLE",r.ADVANCED="ADVANCED",r.LOOP="LOOP",r))(Me$2||{});var $e$3=(o=>(o.OpenAI="OpenAI",o.Anthropic="Anthropic",o.Gemini="Gemini",o.vLLM="vLLM",o.Ollama="Ollama",o))($e$3||{});var Be$2=(n=>(n.ENVIRONMENT="ENVIRONMENT",n.PROPERTY="PROPERTY",n))(Be$2||{});var Ue$1=(r=>(r.PREPARING="PREPARING",r.READY="READY",r.FAILED="FAILED",r))(Ue$1||{});var Ne$2=(t=>(t.NONE="NONE",t.LOW="LOW",t.MEDIUM="MEDIUM",t.HIGH="HIGH",t.XHIGH="XHIGH",t.MAX="MAX",t))(Ne$2||{});var Q=class C{http=g(ty);config=g(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=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var K$3=(n=>(n.WEEK="WEEK",n.MONTH="MONTH",n))(K$3||{});var z$1=(r=>(r.NEVER="NEVER",r.ON_DATE="ON_DATE",r.OCCURRENCES="OCCURRENCES",r))(z$1||{});var ke$3=K$3,Fe$2=z$1;var De$2={MONDAY:"Mon",TUESDAY:"Tue",WEDNESDAY:"Wed",THURSDAY:"Thu",FRIDAY:"Fri",SATURDAY:"Sat",SUNDAY:"Sun"},We$1={MONDAY:"Monday",TUESDAY:"Tuesday",WEDNESDAY:"Wednesday",THURSDAY:"Thursday",FRIDAY:"Friday",SATURDAY:"Saturday",SUNDAY:"Sunday"};var X$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;connectAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling connectAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connect`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}createAuthSetting(n,r="body",p=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 ta$1,c=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 l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteAuthSetting(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdAuthSetting(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsAuthSetting(n,r="body",p=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 ta$1,c=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 l="/api/auth-settings/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getConnectionAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling getConnectionAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/connection`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}listAuthSetting(n,r,p="body",o=false,t){let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/auth-settings",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}resetMyCredentialAuthSetting(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling resetMyCredentialAuthSetting.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/api/auth-settings/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/credential`,{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("delete",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateAuthSetting(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getByIdCaseEventRest(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsCaseEventRest(n,r="body",p=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 ta$1,c=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 l="/api/case-events/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseCaseEventRest(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ee$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersCaseMembership(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersCaseMembership(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;askSideQuestionCaseSideQuestion(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling askSideQuestionCaseSideQuestion.");if(r==null)throw new Error("Required parameter sideQuestionRequest was null or undefined when calling askSideQuestionCaseSideQuestion.");let e=this.defaultHeaders,s=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);s!==void 0&&(e=e.set("Accept",s));let c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="blob");let f=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/side-questions`,{basePath:b,withCredentials:m}=this.configuration;return this.httpClient.request("post",`${b}${f}`,x$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var ne$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;changesCaseWorkspace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}diffCaseWorkspace(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseWorkspace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listCaseWorkspace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}refreshCaseWorkspace(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}retryCaseWorkspace(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var oe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;applyConfigChange(n,r,p,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(p==null)throw new Error("Required parameter configChangeApplyRequest was null or undefined when calling applyConfigChange.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ta$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?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$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}rejectConfigChange(n,r,p,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,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ta$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?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$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}viewConfigChange(n,r,p="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 c=t?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var re$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;browseCaseFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling browseCaseFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,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 ta$1,l=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$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}browseNamespaceFilesExchange(n,r,p,o,t="body",e=false,s){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling browseNamespaceFilesExchange.");let c=new Nt$3({encoder:this.encoder});c=this.addToHttpParams(c,r,"path"),c=this.addToHttpParams(c,p,"page"),c=this.addToHttpParams(c,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 ta$1,l=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$1(w$1({context:i,params:c,responseType:f},E?{withCredentials:E}:{}),{headers:a,observe:t,transferCache:l,reportProgress:e}))}deleteCaseFileExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}deleteNamespaceFileExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadCaseFileExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}downloadNamespaceFileExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/octet-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFileContentExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getCaseFilesManifestExchange(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getNamespaceFileContentExchange(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"path");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}getNamespaceFilesManifestExchange(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadCaseFileExchange(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);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:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}uploadNamespaceFileExchange(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["multipart/form-data"],i=this.canConsumeForm(d),l,f=false;f=i,f?l=new FormData:l=new Nt$3({encoder:this.encoder}),r!==void 0&&(l=l.append("file",r)||l);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:O,withCredentials:S}=this.configuration;return this.httpClient.request("post",`${O}${E}`,x$1(w$1({context:c,body:l,responseType:m},S?{withCredentials:S}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createFeedback(n,r="body",p=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 ta$1,c=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 l="/api/feedbacks",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseEventFeedback(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByCaseFeedback(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var se$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getGitWorkspacesConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/git-workspaces-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ie$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getMembersNamespaceMembership(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateMembersNamespaceMembership(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;grantAdmin(n,r,p="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 c=t?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}grantMember(n,r,p="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 c=t?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("put",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeAdmin(n,r,p="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 c=t?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}revokeMember(n,r,p="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 c=t?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("delete",`${l}${i}`,x$1(w$1({context:c,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}updateRolesByExternalId(n,r="body",p=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 ta$1,c=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 l="/api/namespaces/update-roles-by-external-id",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;handleCallbackOAuthCallback(n,r="body",p=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 ta$1,c=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 l="/api/oauth/callback",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var le$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;debugAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}debugPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getAllPlugins(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}getPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}reloadAllAgentsPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}reloadPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}startPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}unloadPlugin(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}uploadPlugin(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var de$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createPrompt(n,r="body",p=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 ta$1,c=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 l="/api/prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deletePrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}exportPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsPrompt(n,r="body",p=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 ta$1,c=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 l="/api/prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectivePrompt(n,r="body",p=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 ta$1,c=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 l="/api/prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchPrompt(n,r="body",p=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 ta$1,c=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 l="/api/prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}translateBatchPrompt(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}translatePrompt(n,r,p,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(p==null)throw new Error("Required parameter promptTranslateRequest was null or undefined when calling translatePrompt.");let s=this.defaultHeaders,c=e?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=e?.context??new ta$1,d=e?.transferCache??true,i=["application/json"],l=this.configuration.selectHeaderContentType(i);l!==void 0&&(s=s.set("Content-Type",l));let f="json";c&&(c.startsWith("text")?f="text":this.configuration.isJsonMime(c)?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$1(w$1({context:a,body:p,responseType:f},E?{withCredentials:E}:{}),{headers:s,observe:o,transferCache:d,reportProgress:t}))}updatePrompt(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var be$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;continueCostRunRunCost(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}getRunCost(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}stopCostRunRunCost(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var fe$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createScheduledPrompt(n,r="body",p=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 ta$1,c=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 l="/api/scheduled-prompts",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteScheduledPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}disableScheduledPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}enableScheduledPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("patch",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdScheduledPrompt(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsScheduledPrompt(n,r="body",p=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 ta$1,c=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 l="/api/scheduled-prompts/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}resolveEffectiveScheduledPrompt(n,r="body",p=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 ta$1,c=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 l="/api/scheduled-prompts/effective",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}searchScheduledPrompt(n,r="body",p=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 ta$1,c=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 l="/api/scheduled-prompts/search",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateScheduledPrompt(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var ue$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createSkill(n,r="body",p=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 ta$1,c=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 l="/api/skills",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteSkill(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdSkill(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsSkill(n,r="body",p=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 ta$1,c=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 l="/api/skills/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listByParentSkill(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listEffectiveSkill(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listEffectiveSkill.");let t=new Nt$3({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 c=o?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}listPlatformSkill(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/skills/platform",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}updateSkill(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;streamCaseInvalidationsNamespaceCaseInvalidationSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseInvalidationsNamespaceCaseInvalidationSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ta$1,c=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"})}/case-invalidation`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamCaseListUpdatesNamespaceCaseListUpdateSse(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling streamCaseListUpdatesNamespaceCaseListUpdateSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let s=o?.context??new ta$1,c=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"})}/case-list-updates`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}streamEventsCaseEventSse(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"includePreviousEvents");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}streamMyEventsGlobalCaseEventSse(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/cases/events/mine",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;invokeToolInvoke(n,r="body",p=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 ta$1,c=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 l="/api/tools/invoke",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}listToolInvoke(n,r,p="body",o=false,t){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listToolInvoke.");let e=new Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,n,"namespaceId"),e=this.addToHttpParams(e,r,"userId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l="/api/tools",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("get",`${f}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ce$4=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;getUsageConfiguration(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/usage-configuration",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var He$1=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUser(n,r="body",p=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 ta$1,c=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 l="/api/users",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUser(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdUser(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getByIdsUser(n,r="body",p=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 ta$1,c=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 l="/api/users/by-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getGroupsByExternalIdsUser(n,r="body",p=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 ta$1,c=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 l="/api/users/groups-by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMeUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listAllUser(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}listByExternalIdsUser(n,r="body",p=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 ta$1,c=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 l="/api/users/by-external-ids",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}revokeNamespaceAccessByExternalIdUser(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}revokeNamespaceAccessUser(n,r,p="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 Nt$3({encoder:this.encoder});e=this.addToHttpParams(e,r,"namespaceId");let s=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(s=s.set("Accept",c));let a=t?.context??new ta$1,d=t?.transferCache??true,i="json";c&&(c.startsWith("text")?i="text":this.configuration.isJsonMime(c)?i="json":i="blob");let l=`/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}${l}`,x$1(w$1({context:a,params:e,responseType:i},b?{withCredentials:b}:{}),{headers:s,observe:p,transferCache:d,reportProgress:o}))}updateUser(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var xe$2=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;createUserGroup(n,r="body",p=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 ta$1,c=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 l="/api/user-groups",{basePath:f,withCredentials:b}=this.configuration;return this.httpClient.request("post",`${f}${l}`,x$1(w$1({context:s,body:n,responseType:i},b?{withCredentials:b}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}deleteUserGroup(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}findByNamespaceIdUserGroup(n,r="body",p=false,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling findByNamespaceIdUserGroup.");let t=new Nt$3({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 c=o?.context??new ta$1,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:l,withCredentials:f}=this.configuration;return this.httpClient.request("get",`${l}${i}`,x$1(w$1({context:c,params:t,responseType:d},f?{withCredentials:f}:{}),{headers:e,observe:r,transferCache:a,reportProgress:p}))}getByIdUserGroup(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}getMembersUserGroup(n,r="body",p=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 ta$1,c=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:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,x$1(w$1({context:s,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:p}))}updateUserGroup(n,r,p="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 c=t?.context??new ta$1,a=t?.transferCache??true,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";s&&(s.startsWith("text")?l="text":this.configuration.isJsonMime(s)?l="json":l="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$1(w$1({context:c,body:r,responseType:l},m?{withCredentials:m}:{}),{headers:e,observe:p,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var me$3=class C extends j$3{constructor(n,r,p){super(r,p);this.httpClient=n;}httpClient;capabilityVoiceMessage(n="body",r=false,p){let o=this.defaultHeaders,t=p?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=p?.context??new ta$1,s=p?.transferCache??true,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/voice-messages/capability",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,x$1(w$1({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:s,reportProgress:r}))}postVoiceMessage(n,r,p,o,t,e,s="body",c=false,a){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling postVoiceMessage.");if(r==null)throw new Error("Required parameter audio was null or undefined when calling postVoiceMessage.");let d=new Nt$3({encoder:this.encoder});d=this.addToHttpParams(d,p,"answerToEventId"),d=this.addToHttpParams(d,o,"durationMs");let i=this.defaultHeaders,l=a?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);l!==void 0&&(i=i.set("Accept",l));let f=a?.context??new ta$1,b=a?.transferCache??true,m=["multipart/form-data"],E=this.canConsumeForm(m),O,S=false;S=E,S?O=new FormData:O=new Nt$3({encoder:this.encoder}),t!==void 0&&(O=O.append("answerToEventId",t)||O),r!==void 0&&(O=O.append("audio",r)||O),e!==void 0&&(O=O.append("durationMs",e)||O);let $="json";l&&(l.startsWith("text")?$="text":this.configuration.isJsonMime(l)?$="json":$="blob");let Se=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:false,dataType:"string",dataFormat:"uuid"})}/voice-messages`,{basePath:qe,withCredentials:Te}=this.configuration;return this.httpClient.request("post",`${qe}${Se}`,x$1(w$1({context:f,body:O,params:d,responseType:$},Te?{withCredentials:Te}:{}),{headers:i,observe:s,transferCache:b,reportProgress:c}))}static \u0275fac=function(r){return new(r||C)(b$2(ty),b$2(P$1,8),b$2(y,8))};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var Ge$2=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(Ge$2||{});var _e$3=(t=>(t.CREATED="CREATED",t.PENDING="PENDING",t.RUNNING="RUNNING",t.IDLE="IDLE",t.KILLED="KILLED",t.ERROR="ERROR",t))(_e$3||{});var Je$2=(t=>(t.REQUESTED="REQUESTED",t.PREPARING="PREPARING",t.READY="READY",t.FAILED="FAILED",t.DELETING="DELETING",t.REMOVED="REMOVED",t))(Je$2||{});var Le$1=(o=>(o.DETACHED="DETACHED",o.LOCAL_ONLY="LOCAL_ONLY",o.PUSHED="PUSHED",o.UNPUSHED_COMMITS="UNPUSHED_COMMITS",o.UNKNOWN="UNKNOWN",o))(Le$1||{}),Ye$1=(t=>(t.DRAFT="DRAFT",t.OPEN="OPEN",t.MERGED="MERGED",t.CLOSED_UNMERGED="CLOSED_UNMERGED",t.NONE="NONE",t.UNKNOWN="UNKNOWN",t))(Ye$1||{});var Qe$2=(p=>(p.FREE_TEXT="FREE_TEXT",p.SINGLE_CHOICE="SINGLE_CHOICE",p.OPEN_CHOICE="OPEN_CHOICE",p.OAUTH_AUTHORIZE="OAUTH_AUTHORIZE",p))(Qe$2||{});function Ll(C){return wt$3([typeof C=="string"?{provide:P$1,useValue:C}:{provide:y,useValue:new y(w$1({},C))}])}(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/cases/${x}/events`;return new R$2(r=>{let p=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 p.addEventListener("case-event",o),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Ve$2="namespace-case-list-updated";(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${encodeURIComponent(x)}/case-list-updates`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener(Ve$2,()=>this.zone.run(()=>r.next("updated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});(class C{config=g(y);zone=g(G$2);connect(x){let n=`${this.config.basePath}/api/namespaces/${x}/case-invalidation`;return new R$2(r=>{let p=this.zone.runOutsideAngular(()=>new EventSource(n));return p.onopen=()=>this.zone.run(()=>r.next("connected")),p.addEventListener("namespace-case-invalidation",()=>this.zone.run(()=>r.next("invalidated"))),p.onerror=()=>{},()=>p.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=x({token:C,factory:C.\u0275fac,providedIn:"root"})});var Pe$1=class C{http=g(ty);config=g(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=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var je$2=class C{http=g(ty);config=g(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=x({token:C,factory:C.\u0275fac,providedIn:"root"})};var we$2=class C{http=g(ty);config=g(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=x({token:C,factory:C.\u0275fac,providedIn:"root"})};
6
- var b$1=class i{http=g(ty);base="/api/setup";getStatus(){return this.http.get(`${this.base}/status`)}saveIdentity(e){return this.http.post(`${this.base}/identity`,{email:e})}browse(e,t=false){let r=new Nt$3;return e&&(r=r.set("path",e)),t&&(r=r.set("hidden","true")),this.http.get(`${this.base}/browse`,{params:r})}mkdir(e,t){return this.http.post(`${this.base}/mkdir`,{path:e,name:t})}apply(e){return this.http.post(`${this.base}/apply`,e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var A$1=["email","providers","folder","progress"],ee$3=i=>i==="fresh"||i==="nofresh"?i:null,T$3=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,j$2=1500,U$3=8,O$1=2e4,m$1=(i,e,t)=>({key:i,label:e,state:t.state,percent:t.percent,message:t.message??(i==="java"?t.version:void 0)}),R$1=i=>{let e=[i?.agentos?`AgentOS ${i.agentos}`:null,i?.factory?`Factory ${i.factory}`:null].filter(t=>!!t);return e.length>0?`Downloading ${e.join(" and ")}`:"Downloading AgentOS"},f$1=(i,e)=>{if(i instanceof Ln$3){let t=i.error;if(t&&typeof t=="object"&&t.error)return t.error;if(i.status===0)return "Cannot reach the Coday server."}return e},V$1=class i{api=g(b$1);users=g(He$1);namespaces=g(J$1);aiProviders=g(F$3);destroyRef=g(we$3);status=zi$2(null);statusError=zi$2(null);step=zi$2("email");email=zi$2("");providers=zi$2([{id:"anthropic",enabled:false,apiKey:""},{id:"openai",enabled:false,apiKey:""},{id:"requesty",enabled:false,apiKey:""}]);folder=zi$2("");mode=zi$2("wizard");preview=zi$2(null);factoryGraceElapsed=zi$2(false);factoryGraceTimer=null;busy=zi$2(false);error=zi$2(null);profileEmail=zi$2("");needsEmail=zi$2(false);userKeys=zi$2([]);userKeysChecked=zi$2(false);userKeysCheck=null;me=null;emailValid=cT(()=>T$3.test(this.email().trim()));enabledProviders=cT(()=>this.providers().filter(e=>e.enabled));providersValid=cT(()=>{let e=this.enabledProviders();return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});needsUserKeys=cT(()=>this.userKeys().length>0);needsProfile=cT(()=>this.needsEmail()||this.needsUserKeys());userKeysValid=cT(()=>{let e=this.userKeys().filter(t=>t.apiKey.trim().length>0);return e.length>0&&e.every(t=>t.apiKey.trim().length>=U$3)});profileEmailValid=cT(()=>T$3.test(this.profileEmail().trim()));profileValid=cT(()=>(!this.needsEmail()||this.profileEmailValid())&&(!this.needsUserKeys()||this.userKeysValid()));folderValid=cT(()=>this.folder().startsWith("/")||/^[A-Za-z]:[\\/]/.test(this.folder()));stepIndex=cT(()=>A$1.indexOf(this.step()));checklist=cT(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),m$1("providers","Configuring your AI providers",e.providers),m$1("models","Registering the models",e.models),m$1("namespace","Creating your personal workspace",e.namespace),m$1("agent","Deploying the Coday agent",e.agent)]:[]});loadingChecklist=cT(()=>{let e=this.status()?.steps;return e?[m$1("download",R$1(e.download.versions),e.download),m$1("java","Checking Java 25",e.java),m$1("agentos","Starting AgentOS",e.agentos),...e.factory?[m$1("factory","Waiting for the Factory",e.factory)]:[]]:[]});loadingReady=cT(()=>{let e=this.status()?.steps;return !e||e.agentos.state!=="done"||this.status()?.mode==="managed"&&(!this.userKeysChecked()||this.needsProfile())?false:e.factory?e.factory.state==="done"||e.factory.state==="error"||this.factoryGraceElapsed():true});javaBlocked=cT(()=>this.status()?.steps.java.state==="blocked");ready=cT(()=>{let e=this.status();return !!e&&e.apply.status==="done"&&!!e.namespaceId});failed=cT(()=>this.status()?.apply.status==="error");emailLocked=cT(()=>!this.preview()&&(this.status()?.apply.status??"idle")!=="idle");namespaceId=cT(()=>this.status()?.namespaceId??null);poller=null;constructor(){this.destroyRef.onDestroy(()=>this.stopPolling());}setStatus(e){this.status.set(e),this.statusError.set(null),this.mode()==="loading"&&e.steps.agentos.state==="done"&&!this.factoryGraceTimer&&(this.factoryGraceTimer=setTimeout(()=>this.factoryGraceElapsed.set(true),O$1)),this.maybeCheckUserKeys();}refreshStatus(){return B$3(this,null,function*(){try{let e=yield yy(this.api.getStatus());return this.setStatus(e),e}catch(e){return this.statusError.set(f$1(e,"Cannot read the setup status.")),null}})}startPolling(){this.poller||(this.poller=an$2(0,j$2).pipe(Ea$1(()=>this.api.getStatus().pipe(ga(()=>br$1(null))))).subscribe(e=>{e?this.setStatus(e):this.statusError.set("Lost contact with the Coday server, retrying...");}));}stopPolling(){this.poller?.unsubscribe(),this.poller=null,this.factoryGraceTimer&&clearTimeout(this.factoryGraceTimer),this.factoryGraceTimer=null;}init(e=null){return B$3(this,null,function*(){this.preview.set(e);let t=yield this.refreshStatus();if(!t)return;if(t.defaults?.sharedExchangePath&&!this.folder()&&this.folder.set(t.defaults.sharedExchangePath),t.identity&&!this.email()&&this.email.set(t.identity.email),this.startPolling(),!(e?e==="fresh":t.mode==="unmanaged"&&t.setupEnabled&&!t.setupDone)){this.mode.set("loading"),this.step.set("progress"),this.maybeCheckUserKeys();return}!e&&["running","error","done"].includes(t.apply.status)&&this.step.set("progress");})}back(){let e=this.stepIndex(),t=this.step()==="providers"&&this.emailLocked();e>0&&this.step()!=="progress"&&!t&&this.step.set(A$1[e-1]),this.error.set(null);}editAfterFailure(e){!this.failed()||this.step()!=="progress"||(this.error.set(e==="providers"&&!this.providersValid()?"Enter your API keys again: they are not kept when the page is reloaded.":null),this.step.set(e));}submitEmail(){return B$3(this,null,function*(){if(!(!this.emailValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("providers");return}this.busy.set(true);try{yield yy(this.api.saveIdentity(this.email().trim())),yield this.refreshStatus(),this.step.set("providers");}catch(e){this.error.set(f$1(e,"Could not save your email."));}finally{this.busy.set(false);}}})}submitProviders(){this.providersValid()&&(this.error.set(null),this.step.set("folder"));}toggleProvider(e){this.providers.update(t=>{let r=t.find(a=>a.id===e);if(!r)return t;let s=t.map(a=>a.id===e?x$1(w$1({},a),{enabled:!a.enabled}):a);if(!r.enabled){let a=s.find(u=>u.id===e);return [...s.filter(u=>u.id!==e),a]}return s});}setApiKey(e,t){this.providers.update(r=>r.map(s=>s.id===e?x$1(w$1({},s),{apiKey:t}):s));}moveProvider(e,t){this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=a+t;if(a<0||u<0||u>=s.length)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}moveProviderTo(e,t){e!==t&&this.providers.update(r=>{let s=r.filter(p=>p.enabled),a=s.findIndex(p=>p.id===e),u=s.findIndex(p=>p.id===t);if(a<0||u<0)return r;let o=[...s],[P]=o.splice(a,1);return o.splice(u,0,P),[...o,...r.filter(p=>!p.enabled)]});}rankOf(e){let t=this.enabledProviders().findIndex(r=>r.id===e);return t<0?null:t+1}browse(e,t=false){return yy(this.api.browse(e,t))}mkdir(e,t){return yy(this.api.mkdir(e,t))}selectFolder(e){this.folder.set(e);}submitFolderAndApply(){return B$3(this,null,function*(){if(!(!this.providersValid()||!this.folderValid()||this.busy())){if(this.error.set(null),this.preview()){this.step.set("progress");return}this.busy.set(true);try{yield yy(this.api.apply({providers:this.applyProviders(),sharedExchangePath:this.folder()})),this.step.set("progress"),this.startPolling();}catch(e){this.error.set(f$1(e,"Could not start the setup."));}finally{this.busy.set(false);}}})}retry(){return B$3(this,null,function*(){if(!this.providersValid()){this.step.set("providers"),this.error.set("Enter your API keys again: they are not kept when the page is reloaded.");return}yield this.submitFolderAndApply();})}maybeCheckUserKeys(){let e=this.status();this.mode()!=="loading"||this.preview()||e?.mode!=="managed"||e.steps.agentos.state==="done"&&this.checkUserKeys();}checkUserKeys(){return this.userKeysCheck??=this.loadProfileRequirements(),this.userKeysCheck}loadProfileRequirements(){return B$3(this,null,function*(){try{let[e,t,r]=yield Promise.all([yy(this.aiProviders.listAiProvider("none")),yy(this.aiProviders.listAiProvider("none","me")),yy(this.users.getMeUser())]);if(e.length===0)return;this.me=r,this.needsEmail.set(!r.email?.trim());let s=new Map(t.map(o=>[o.name.toLowerCase(),o])),a=new Set(e.map(o=>o.name.toLowerCase()));t.some(o=>!!o.apiKey&&a.has(o.name.toLowerCase()))||this.userKeys.set(e.map(o=>({name:o.name,apiType:o.apiType,apiKey:"",existingId:s.get(o.name.toLowerCase())?.id})));}catch(e){console.warn("Could not check the profile requirements of the platform",e);}finally{this.userKeysChecked.set(true);}})}setProfileEmail(e){this.profileEmail.set(e);}setUserKey(e,t){this.userKeys.update(r=>r.map(s=>s.name===e?x$1(w$1({},s),{apiKey:t}):s));}submitProfile(){return B$3(this,null,function*(){if(!(!this.profileValid()||this.busy())){this.error.set(null),this.busy.set(true);try{if(this.needsEmail()&&!(yield this.saveProfileEmail()))return;this.needsUserKeys()&&(yield this.saveUserKeys());}finally{this.busy.set(false);}}})}saveProfileEmail(){return B$3(this,null,function*(){try{let e=yield this.currentUser();return yield yy(this.users.updateUser(e.id,x$1(w$1({},e),{email:this.profileEmail().trim().toLowerCase()}))),this.needsEmail.set(!1),!0}catch(e){return console.warn("Could not save the email of the user",e),this.error.set(f$1(e,"Could not save your email.")),false}})}saveUserKeys(){return B$3(this,null,function*(){try{let e=yield this.currentUser(),t=[];for(let r of this.userKeys()){let s=r.apiKey.trim();if(!s)continue;let a={name:r.name,apiType:r.apiType,apiKey:s,userId:e.id};try{yield yy(r.existingId?this.aiProviders.updateAiProvider(r.existingId,a):this.aiProviders.createAiProvider(a));}catch(u){console.warn(`Could not save the key of ${r.name}`,u),t.push(r);}}this.userKeys.set(t),t.length>0&&this.error.set(`Could not save the key of ${t.map(r=>r.name).join(", ")}. Check it and try again.`);}catch(e){this.error.set(f$1(e,"Could not save your keys."));}})}currentUser(){return B$3(this,null,function*(){if(this.me??=yield yy(this.users.getMeUser()),!this.me.id)throw new Error("The current user has no id");return this.me})}applyProviders(){return this.enabledProviders().map((e,t)=>({id:e.id,apiKey:e.apiKey.trim(),rank:t+1}))}loadingTarget(){return B$3(this,null,function*(){let e=this.namespaceId()??(yield this.personalNamespaceId());return {path:"/home",queryParams:e?{ns:e}:{}}})}personalNamespaceId(){return B$3(this,null,function*(){try{let{externalId:e}=yield yy(this.users.getMeUser());if(!e)return null;let t=`user:${e}`;return (yield yy(this.namespaces.listByExternalIdsNamespace([t]))).find(s=>s.externalId===t)?.id??null}catch(e){return console.warn("Could not look up the personal namespace",e),null}})}landingCommands(){let e=this.namespaceId();return e?{path:"/home",queryParams:{ns:e}}:null}static \u0275fac=function(t){return new(t||i)};static \u0275prov=x({token:i,factory:i.\u0275fac,providedIn:"root"})};var de$3;try{de$3=typeof Intl<"u"&&Intl.v8BreakIterator;}catch(i){de$3=false;}var v=(()=>{class i{_platformId=g(eo$1);isBrowser=this._platformId?d2(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||de$3)&&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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ke$2(i,e=0){return Ze$1(i)?Number(i):arguments.length===2?e:0}function Ze$1(i){return !isNaN(parseFloat(i))&&!isNaN(Number(i))}function N(i){return i instanceof On$3?i.nativeElement:i}var qn$2=new T$4("cdk-dir-doc",{providedIn:"root",factory:()=>g(U$5)}),Qn$2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ge$1(i){let e=i?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Qn$2.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var mt$3=(()=>{class i{get value(){return this.valueSignal()}valueSignal=zi$2("ltr");change=new yt$3;constructor(){let t=g(qn$2,{optional:true});if(t){let n=t.body?t.body.dir:null,o=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(Ge$1(n||o||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var W$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({})}return i})();var F$2=(function(i){return i[i.NORMAL=0]="NORMAL",i[i.NEGATED=1]="NEGATED",i[i.INVERTED=2]="INVERTED",i})(F$2||{}),It$1,Y$1;function Tt$2(){if(Y$1==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Y$1=false,Y$1;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Y$1=true;else {let i=Element.prototype.scrollTo;i?Y$1=!/\{\s*\[native code\]\s*\}/.test(i.toString()):Y$1=false;}}return Y$1}function it$2(){if(typeof document!="object"||!document)return F$2.NORMAL;if(It$1==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),It$1=F$2.NORMAL,i.scrollLeft===0&&(i.scrollLeft=1,It$1=i.scrollLeft===0?F$2.NEGATED:F$2.INVERTED),i.remove();}return It$1}var ti$2=20,Pt$2=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_renderer=g(Nn$3).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new le$4;_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=ti$2){return this._platform.isBrowser?new R$2(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(ky(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):br$1()}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(Ot$1(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=N(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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Mo$1=(()=>{class i{elementRef=g(On$3);scrollDispatcher=g(Pt$2);ngZone=g(G$2);dir=g(mt$3,{optional:true});_scrollElement=this.elementRef.nativeElement;_destroyed=new le$4;_renderer=g(Ju);_cleanupScroll;_elementScrolled=new le$4;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&&it$2()!=F$2.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),it$2()==F$2.INVERTED?t.left=t.right:it$2()==F$2.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;Tt$2()?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 a=this.dir&&this.dir.value=="rtl";return t=="start"?t=a?o:n:t=="end"&&(t=a?n:o),a&&it$2()==F$2.INVERTED?t==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&it$2()==F$2.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=ul({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return i})(),ei$2=20,ht$3=(()=>{class i{_platform=g(v);_listeners;_viewportSize=null;_change=new le$4;_document=g(U$5);constructor(){let t=g(G$2),n=g(Nn$3).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(),a=-r.top||t.body?.scrollTop||n.scrollY||o.scrollTop||0,l=-r.left||t.body?.scrollLeft||n.scrollX||o.scrollLeft||0;return {top:a,left:l}}change(t=ei$2){return t>0?this._change.pipe(ky(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=Ce$5({token:i,factory:i.\u0275fac})}return i})();var $e$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({})}return i})(),ue$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({imports:[W$2,$e$2,W$2,$e$2]})}return i})();var Je$1=new Map,pt$3=class i{_appId=g(Jr);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let n=Je$1.get(e);return n===void 0?n=0:n++,Je$1.set(e,n),`${e}${t?i._infix+"-":""}${n}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})};var ft$3=class ft{_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$2=class me extends ft$3{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,n,o,r,a){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.projectableNodes=o,this.bindings=r||null,this.directives=a||null;}},Ft$1=class Ft extends ft$3{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()}},he$3=class he extends ft$3{element;constructor(e){super(),this.element=e instanceof On$3?e.nativeElement:e;}},Nt$2=class Nt{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof me$2)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ft$1)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof he$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);}},Lt$1=class Lt extends Nt$2{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(An$3,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||he$4.NULL,r=o.get(pe$4,n.injector);t=VB(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 jo$1=(()=>{class i extends Nt$2{_moduleRef=g(An$3,{optional:true});_document=g(U$5);_viewContainerRef=g(gr$1);_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 yt$3;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=kp(i)))(o||i)}})();static \u0275dir=ul({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[og]})}return i})(),tn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({})}return i})();function en$1(i,...e){return e.length?e.some(t=>i[t]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var pe$3;function nn$1(){if(pe$3==null){let i=typeof document<"u"?document.head:null;pe$3=!!(i&&(i.createShadowRoot||i.attachShadow));}return pe$3}function fe$3(i){if(nn$1()){let e=i.getRootNode?i.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ni$2(){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 D(i){if(i.composedPath)try{return i.composedPath()[0]}catch(e){}return i.target}function be$2(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Bt=new WeakMap,L$1=(()=>{class i{_appRef;_injector=g(he$4);_environmentInjector=g(pe$4);load(t){let n=this._appRef=this._appRef||this._injector.get(yr$1),o=Bt.get(n);o||(o={loaders:new Set,refs:[]},Bt.set(n,o),n.onDestroy(()=>{Bt.get(n)?.refs.forEach(r=>r.destroy()),Bt.delete(n);})),o.loaders.has(t)||(o.loaders.add(t),o.refs.push(VB(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function b(i){return i==null?"":typeof i=="string"?i:`${i}px`}function ot$1(i){return Array.isArray(i)?i:[i]}var on$1=Tt$2();function un$1(i){return new zt(i.get(ht$3),i.get(U$5))}var zt=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=b(-this._previousScrollPosition.left),e.style.top=b(-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||"",a=o.scrollBehavior||"";this._isEnabled=false,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),on$1&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),on$1&&(n.scrollBehavior=r,o.scrollBehavior=a);}}_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 mn$1(i,e){return new Vt(i.get(Pt$2),i.get(G$2),i.get(ht$3),e)}var Vt=class{_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(Ot$1(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 bt$2=class bt{enable(){}disable(){}attach(){}};function _e$2(i,e){return e.some(t=>{let n=i.bottom<t.top,o=i.top>t.bottom,r=i.right<t.left,a=i.left>t.right;return n||o||r||a})}function rn$1(i,e){return e.some(t=>{let n=i.top<t.top,o=i.bottom>t.bottom,r=i.left<t.left,a=i.right>t.right;return n||o||r||a})}function hn$1(i,e){return new jt$1(i.get(Pt$2),i.get(ht$3),i.get(G$2),e)}var jt$1=class jt{_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();_e$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;}},pn$1=(()=>{class i{_injector=g(he$4);noop=()=>new bt$2;close=t=>mn$1(this._injector,t);block=()=>un$1(this._injector);reposition=t=>hn$1(this._injector,t);static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),Ht=class{positionStrategy;scrollStrategy=new bt$2;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 Ut$2=class Ut{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var fn$1=(()=>{class i{_attachedOverlays=[];_document=g(U$5);_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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),bn$1=(()=>{class i extends fn$1{_ngZone=g(G$2);_renderer=g(Nn$3).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=Ce$5({token:i,factory:i.\u0275fac})}return i})(),_n$2=(()=>{class i extends fn$1{_platform=g(v);_ngZone=g(G$2);_renderer=g(Nn$3).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=D(t);};_clickListener=t=>{let n=D(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let l=r[a],d=l._outsidePointerEvents;if(!(!l.hasAttached()||!this.canReceiveEvent(l,t,d))){if(an$1(l.overlayElement,n)||an$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=Ce$5({token:i,factory:i.\u0275fac})}return i})();function an$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 gn$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({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 {
7
- pointer-events: none;
8
- top: 0;
9
- left: 0;
10
- height: 100%;
11
- width: 100%;
12
- }
13
-
14
- .cdk-overlay-container {
15
- position: fixed;
16
- }
17
- @layer cdk-overlay {
18
- .cdk-overlay-container {
19
- z-index: 1000;
20
- }
21
- }
22
- .cdk-overlay-container:empty {
23
- display: none;
24
- }
25
-
26
- .cdk-global-overlay-wrapper {
27
- display: flex;
28
- position: absolute;
29
- }
30
- @layer cdk-overlay {
31
- .cdk-global-overlay-wrapper {
32
- z-index: 1000;
33
- }
34
- }
35
-
36
- .cdk-overlay-pane {
37
- position: absolute;
38
- pointer-events: auto;
39
- box-sizing: border-box;
40
- display: flex;
41
- max-width: 100%;
42
- max-height: 100%;
43
- }
44
- @layer cdk-overlay {
45
- .cdk-overlay-pane {
46
- z-index: 1000;
47
- }
48
- }
49
-
50
- .cdk-overlay-backdrop {
51
- position: absolute;
52
- top: 0;
53
- bottom: 0;
54
- left: 0;
55
- right: 0;
56
- pointer-events: auto;
57
- -webkit-tap-highlight-color: transparent;
58
- opacity: 0;
59
- touch-action: manipulation;
60
- }
61
- @layer cdk-overlay {
62
- .cdk-overlay-backdrop {
63
- z-index: 1000;
64
- transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
65
- }
66
- }
67
- @media (prefers-reduced-motion) {
68
- .cdk-overlay-backdrop {
69
- transition-duration: 1ms;
70
- }
71
- }
72
-
73
- .cdk-overlay-backdrop-showing {
74
- opacity: 1;
75
- }
76
- @media (forced-colors: active) {
77
- .cdk-overlay-backdrop-showing {
78
- opacity: 0.6;
79
- }
80
- }
81
-
82
- @layer cdk-overlay {
83
- .cdk-overlay-dark-backdrop {
84
- background: rgba(0, 0, 0, 0.32);
85
- }
86
- }
87
-
88
- .cdk-overlay-transparent-backdrop {
89
- transition: visibility 1ms linear, opacity 1ms linear;
90
- visibility: hidden;
91
- opacity: 1;
92
- }
93
- .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
94
- opacity: 0;
95
- visibility: visible;
96
- }
97
-
98
- .cdk-overlay-backdrop-noop-animation {
99
- transition: none;
100
- }
101
-
102
- .cdk-overlay-connected-position-bounding-box {
103
- position: absolute;
104
- display: flex;
105
- flex-direction: column;
106
- min-width: 1px;
107
- min-height: 1px;
108
- }
109
- @layer cdk-overlay {
110
- .cdk-overlay-connected-position-bounding-box {
111
- z-index: 1000;
112
- }
113
- }
114
-
115
- .cdk-global-scrollblock {
116
- position: fixed;
117
- width: 100%;
118
- overflow-y: scroll;
119
- }
120
-
121
- .cdk-overlay-popover {
122
- background: none;
123
- border: none;
124
- padding: 0;
125
- outline: 0;
126
- overflow: visible;
127
- position: fixed;
128
- pointer-events: none;
129
- white-space: normal;
130
- color: inherit;
131
- text-decoration: none;
132
- width: 100%;
133
- height: 100%;
134
- inset: auto;
135
- top: 0;
136
- left: 0;
137
- }
138
- .cdk-overlay-popover::backdrop {
139
- display: none;
140
- }
141
- .cdk-overlay-popover .cdk-overlay-backdrop {
142
- position: fixed;
143
- z-index: auto;
144
- }
145
- `],encapsulation:2})}return i})(),vn$1=(()=>{class i{_platform=g(v);_containerElement;_document=g(U$5);_styleLoader=g(L$1);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||be$2()){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),be$2()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n;}_loadStyles(){this._styleLoader.load(gn$1);}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),ge$3=class ge{_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 ve$1(i){return i&&i.nodeType===1}var Wt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new le$4;_attachments=new le$4;_detachments=new le$4;_positionStrategy;_scrollStrategy;_locationChanges=ee$5.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new le$4;_outsidePointerEvents=new le$4;_afterNextRenderRef;constructor(e,t,n,o,r,a,l,d,u,c=false,m,C){this._portalOutlet=e,this._host=t,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=l,this._location=d,this._outsideClickDispatcher=u,this._animationsDisabled=c,this._injector=m,this._renderer=C,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=vE(()=>{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$1(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=b(this._config.width),e.height=b(this._config.height),e.minWidth=b(this._config.minWidth),e.minHeight=b(this._config.minHeight),e.maxWidth=b(this._config.maxWidth),e.maxHeight=b(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;ve$1(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 ge$3(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=ot$1(t||[]).filter(r=>!!r);o.length&&(n?e.classList.add(...o):e.classList.remove(...o));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=vE(()=>{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?.();}},sn$1="cdk-overlay-connected-position-bounding-box",ii$2=/([A-Za-z%]+)$/;function yn$1(i,e){return new Yt$1(e,i.get(ht$3),i.get(U$5),i.get(v),i.get(vn$1))}var Yt$1=class Yt{_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 le$4;_resizeSubscription=ee$5.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(sn$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=[],a;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}(!a||a.overlayFit.visibleArea<c.visibleArea)&&(a={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(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&X(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(sn$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 On$3?this._origin.nativeElement:ve$1(this._origin)?this._origin:null}_getOriginPoint(e,t,n){let o;if(n.originX=="center")o=e.left+e.width/2;else {let a=this._isRtl()?e.right:e.left,l=this._isRtl()?e.left:e.right;o=n.originX=="start"?a: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=cn$1(t),{x:a,y:l}=e,d=this._getOffset(o,"x"),u=this._getOffset(o,"y");d&&(a+=d),u&&(l+=u);let c=0-a,m=a+r.width-n.width,C=0-l,S=l+r.height-n.height,w=this._subtractOverflows(r.width,c,m),y=this._subtractOverflows(r.height,C,S),V=w*y;return {visibleArea:V,isCompletelyWithinViewport:r.width*r.height===V,fitsInViewportVertically:y===r.height,fitsInViewportHorizontally:w==r.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let o=n.bottom-t.y,r=n.right-t.x,a=ln(this._overlayRef.getConfig().minHeight),l=ln(this._overlayRef.getConfig().minWidth),d=e.fitsInViewportVertically||a!=null&&a<=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=cn$1(t),r=this._viewportRect,a=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,m=0;return o.width<=r.width?c=u||-a:c=e.x<this._getViewportMarginStart()?r.left-n.left-e.x:0,o.height<=r.height?m=d||-l:m=e.y<this._getViewportMarginTop()?r.top-n.top-e.y:0,this._previousPushAmount={x:c,y:m},{x:e.x+c,y:e.y+m}}_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||!oi$2(this._lastScrollVisibility,n)){let o=new Ut$2(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,a,l;if(t.overlayY==="top")a=e.y,r=n.height-a+this._getViewportMarginBottom();else if(t.overlayY==="bottom")l=n.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),r=n.height-l+this._getViewportMarginTop();else {let S=Math.min(n.bottom-e.y+n.top,e.y),w=this._lastBoundingBoxSize.height;r=S*2,a=e.y-S,r>w&&!this._isInitialRender&&!this._growAfterOpen&&(a=e.y-w/2);}let d=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,u=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,c,m,C;if(u)C=n.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),c=e.x-this._getViewportMarginStart();else if(d)m=e.x,c=n.right-e.x-this._getViewportMarginEnd();else {let S=Math.min(n.right-e.x+n.left,e.x),w=this._lastBoundingBoxSize.width;c=S*2,m=e.x-S,c>w&&!this._isInitialRender&&!this._growAfterOpen&&(m=e.x-w/2);}return {top:a,left:m,bottom:l,right:C,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,a=this._overlayRef.getConfig().maxWidth;o.width=b(n.width),o.height=b(n.height),o.top=b(n.top)||"auto",o.bottom=b(n.bottom)||"auto",o.left=b(n.left)||"auto",o.right=b(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=b(r)),a&&(o.maxWidth=b(a));}this._lastBoundingBoxSize=n,X(this._boundingBox.style,o);}_resetBoundingBoxStyles(){X(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){X(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let c=this._viewportRuler.getViewportScrollPosition();X(n,this._getExactOverlayY(t,e,c)),X(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(),a.maxHeight&&(o?n.maxHeight=b(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=b(a.maxWidth):r&&(n.maxWidth="")),X(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 a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`;}else o.top=b(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 a;if(this._isRtl()?a=e.overlayX==="end"?"left":"right":a=e.overlayX==="end"?"right":"left",a==="right"){let l=this._document.documentElement.clientWidth;o.right=`${l-(r.x+this._overlayRect.width)}px`;}else o.left=b(r.x);return o}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:rn$1(e,n),isOriginOutsideView:_e$2(e,n),isOverlayClipped:rn$1(t,n),isOverlayOutsideView:_e$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&&ot$1(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 On$3)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 X(i,e){for(let t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);return i}function ln(i){if(typeof i!="number"&&i!=null){let[e,t]=i.split(ii$2);return !t||t==="px"?parseFloat(e):null}return i||null}function cn$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 oi$2(i,e){return i===e?true:i.isOriginClipped===e.isOriginClipped&&i.isOriginOutsideView===e.isOriginOutsideView&&i.isOverlayClipped===e.isOverlayClipped&&i.isOverlayOutsideView===e.isOverlayOutsideView}var dn$2="cdk-global-overlay-wrapper";function wn$2(i){return new Xt}var Xt=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(dn$2),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:a,maxHeight:l}=n,d=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),u=(r==="100%"||r==="100vh")&&(!l||l==="100%"||l==="100vh"),c=this._xPosition,m=this._xOffset,C=this._overlayRef.getConfig().direction==="rtl",S="",w="",y="";d?y="flex-start":c==="center"?(y="center",C?w=m:S=m):C?c==="left"||c==="end"?(y="flex-end",S=m):(c==="right"||c==="start")&&(y="flex-start",w=m):c==="left"||c==="start"?(y="flex-start",S=m):(c==="right"||c==="end")&&(y="flex-end",w=m),e.position=this._cssPosition,e.marginLeft=d?"0":S,e.marginTop=u?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=d?"0":w,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(dn$2),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},xn$2=(()=>{class i{_injector=g(he$4);global(){return wn$2()}flexibleConnectedTo(t){return yn$1(this._injector,t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),En$2=new T$4("OVERLAY_DEFAULT_CONFIG");function Cn$2(i,e){i.get(L$1).load(gn$1);let t=i.get(vn$1),n=i.get(U$5),o=i.get(pt$3),r=i.get(yr$1),a=i.get(mt$3),l=i.get(Ju,null,{optional:true})||i.get(Nn$3).createRenderer(null,null),d=new Ht(e),u=i.get(En$2,null,{optional:true})?.usePopover??true;d.direction=d.direction||a.value,!n.body||!("showPopover"in n.body)?d.usePopover=false:d.usePopover=e?.usePopover??u;let c=n.createElement("div"),m=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),m.appendChild(c),d.usePopover&&(m.setAttribute("popover","manual"),m.classList.add("cdk-overlay-popover"));let C=d.usePopover?d.positionStrategy?.getPopoverInsertionPoint?.():null;return ve$1(C)?C.after(m):C?.type==="parent"?C.element.appendChild(m):t.getContainerElement().appendChild(m),new Wt(new Lt$1(c,r,i),m,c,d,i.get(G$2),i.get(bn$1),n,i.get(vm),i.get(_n$2),e?.disableAnimations??i.get(kv,null,{optional:true})==="NoopAnimations",i.get(pe$4),l)}var Sn$2=(()=>{class i{scrollStrategies=g(pn$1);_positionBuilder=g(xn$2);_injector=g(he$4);create(t){return Cn$2(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var ri$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({providers:[Sn$2],imports:[W$2,tn$1,ue$2,ue$2]})}return i})();var kn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden {
146
- border: 0;
147
- clip: rect(0 0 0 0);
148
- height: 1px;
149
- margin: -1px;
150
- overflow: hidden;
151
- padding: 0;
152
- position: absolute;
153
- width: 1px;
154
- white-space: nowrap;
155
- outline: 0;
156
- -webkit-appearance: none;
157
- -moz-appearance: none;
158
- left: 0;
159
- }
160
- [dir=rtl] .cdk-visually-hidden {
161
- left: auto;
162
- right: 0;
163
- }
164
- `],encapsulation:2})}return i})(),Kt$1;function ai$2(){if(Kt$1===void 0&&(Kt$1=null,typeof window<"u")){let i=window;if(i.trustedTypes!==void 0)try{Kt$1=i.trustedTypes.createPolicy("angular#components",{createHTML:e=>e});}catch(e){console.error(e);}}return Kt$1}function si$2(i){return ai$2()?.createHTML(i)||i}function Rn$2(i,e,t){let n=t.sanitize(Oe$1.HTML,e);i.innerHTML=si$2(n||"");}var Dn$2=new Set,K$2,Zt$1=(()=>{class i{_platform=g(v);_nonce=g(to$1,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ci$2;}matchMedia(t){return (this._platform.WEBKIT||this._platform.BLINK)&&li$2(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function li$2(i,e){if(!Dn$2.has(i))try{K$2||(K$2=document.createElement("style"),e&&K$2.setAttribute("nonce",e),K$2.setAttribute("type","text/css"),document.head.appendChild(K$2)),K$2.sheet&&(K$2.sheet.insertRule(`@media ${i.replace(/[{}]/g,"")} {body{ }}`,0),Dn$2.add(i));}catch(t){console.error(t);}}function ci$2(i){return {matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var di$2=(()=>{class i{_mediaMatcher=g(Zt$1);_zone=g(G$2);_queries=new Map;_destroySubject=new le$4;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete();}isMatched(t){return On$2(ot$1(t)).some(o=>this._registerQuery(o).mql.matches)}observe(t){let o=On$2(ot$1(t)).map(a=>this._registerQuery(a).observable),r=by(o);return r=kt$1(r.pipe(cn$2(1)),r.pipe(md(1),gd(0))),r.pipe(ne$3(a=>{let l={matches:false,breakpoints:{}};return a.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 R$2(a=>{let l=d=>this._zone.run(()=>a.next(d));return n.addListener(l),()=>{n.removeListener(l);}}).pipe(vd(n),ne$3(({matches:a})=>({query:t,matches:a})),Sd(this._destroySubject)),mql:n};return this._queries.set(t,r),r}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function On$2(i){return i.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function _t$3(i){return i.buttons===0||i.detail===0}function gt$2(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 vt$2;function An$2(){if(vt$2==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>vt$2=!0}));}finally{vt$2=vt$2||false;}return vt$2}function rt$1(i){return An$2()?i:!!i.capture}var Mn$3=new T$4("cdk-input-modality-detector-options"),In$2={ignoreKeys:[18,17,224,91,16]},Tn$2=650,ye$3={passive:true,capture:true},Pn$2=(()=>{class i{_platform=g(v);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Tr$1(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(t));};_onMousedown=t=>{Date.now()-this._lastTouchMs<Tn$2||(this._modality.next(_t$3(t)?"keyboard":"mouse"),this._mostRecentTarget=D(t));};_onTouchstart=t=>{if(gt$2(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(t);};constructor(){let t=g(G$2),n=g(U$5),o=g(Mn$3,{optional:true});if(this._options=w$1(w$1({},In$2),o),this.modalityDetected=this._modality.pipe(md(1)),this.modalityChanged=this.modalityDetected.pipe(Td()),this._platform.isBrowser){let r=g(Nn$3).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,ye$3),r.listen(n,"mousedown",this._onMousedown,ye$3),r.listen(n,"touchstart",this._onTouchstart,ye$3)]);}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t());}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})(),yt$2=(function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i})(yt$2||{}),Fn$2=new T$4("cdk-focus-monitor-default-options"),Gt=rt$1({passive:true,capture:true}),we$1=(()=>{class i{_ngZone=g(G$2);_platform=g(v);_inputModalityDetector=g(Pn$2);_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=g(U$5);_stopInputModalityDetector=new le$4;constructor(){let t=g(Fn$2,{optional:true});this._detectionMode=t?.detectionMode||yt$2.IMMEDIATE;}_rootNodeFocusAndBlurListener=t=>{let n=D(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=N(t);if(!this._platform.isBrowser||o.nodeType!==1)return br$1();let r=fe$3(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=true),a.subject;let l={checkChildren:n,subject:new le$4,rootNode:r};return this._elementInfo.set(o,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let n=N(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=N(t),a=this._document.activeElement;r===a?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===yt$2.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===yt$2.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Tn$2:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o);}});}_onFocus(t,n){let o=this._elementInfo.get(n),r=D(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,Gt),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Gt);}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener);}),this._inputModalityDetector.modalityDetected.pipe(Sd(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,Gt),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Gt),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 a=0;a<r.length;a++)if(r[a].contains(n))return true}return false}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Ln$2=(()=>{class i{_platform=g(v);isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return mi$2(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return false;let n=ui$2(yi$2(t));if(n&&(Nn$2(n)===-1||!this.isVisible(n)))return false;let o=t.nodeName.toLowerCase(),r=Nn$2(t);return t.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!gi$2(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 vi$2(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function ui$2(i){try{return i.frameElement}catch(e){return null}}function mi$2(i){return !!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function hi$2(i){let e=i.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function pi$2(i){return bi$2(i)&&i.type=="hidden"}function fi$2(i){return _i$2(i)&&i.hasAttribute("href")}function bi$2(i){return i.nodeName.toLowerCase()=="input"}function _i$2(i){return i.nodeName.toLowerCase()=="a"}function Bn$2(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return false;let e=i.getAttribute("tabindex");return !!(e&&!isNaN(parseInt(e,10)))}function Nn$2(i){if(!Bn$2(i))return null;let e=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function gi$2(i){let e=i.nodeName.toLowerCase(),t=e==="input"&&i.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function vi$2(i){return pi$2(i)?false:hi$2(i)||fi$2(i)||i.hasAttribute("contenteditable")||Bn$2(i)}function yi$2(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var $t$2=class $t{_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,a){this._element=e,this._checker=t,this._ngZone=n,this._document=o,this._injector=a,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){vE(e,{injector:this._injector});}},wi$2=(()=>{class i{_checker=g(Ln$2);_ngZone=g(G$2);_document=g(U$5);_injector=g(he$4);constructor(){g(L$1).load(kn$2);}create(t,n=false){return new $t$2(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();var zn$2=new T$4("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),Vn$2=new T$4("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),xi$1=0,Ei$1=(()=>{class i{_ngZone=g(G$2);_defaultOptions=g(Vn$2,{optional:true});_liveElement;_document=g(U$5);_sanitizer=g(hS);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=g(zn$2,{optional:true});this._liveElement=t||this._createLiveElement();}announce(t,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!t||typeof t=="string"?this._liveElement.textContent=t:Rn$2(this._liveElement,t,this._sanitizer),typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="");}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0;}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),o=this._document.createElement("div");for(let r=0;r<n.length;r++)n[r].remove();return o.classList.add(t),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id=`cdk-live-announcer-${xi$1++}`,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<n.length;o++){let r=n[o],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t);}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function Ea(i){return i!=null&&`${i}`!="false"}var ka={HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)"};var Ci$2=new T$4("MATERIAL_ANIMATIONS"),jn$2=null;function Si$2(){return g(Ci$2,{optional:true})?.animationsDisabled||g(kv,{optional:true})==="NoopAnimations"?"di-disabled":(jn$2??=g(Zt$1).matchMedia("(prefers-reduced-motion)").matches,jn$2?"reduced-motion":"enabled")}function at$2(){return Si$2()!=="enabled"}var ki$2=200,qt=class{_letterKeyStream=new le$4;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new le$4;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:ki$2;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(Dd(t=>this._pressedLetters.push(t)),gd(e),Ot$1(()=>this._pressedLetters.length>0),ne$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=[];});}};var Qt$1=class Qt{_items;_activeItemIndex=zi$2(-1);_activeItem=zi$2(null);_wrap=false;_typeaheadSubscription=ee$5.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 cs?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):no$1(e)&&(this._effectRef=Of(()=>this._itemsChanged(e()),{injector:t}));}tabOut=new le$4;change=new le$4;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 qt(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,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(o||en$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 no$1(this._items)?this._items():this._items instanceof cs?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 xe$1=class xe extends Qt$1{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin);}};var T$2=(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$2||{}),Ee$1=class Ee{_renderer;element;config;_animationForciblyDisabledThroughCss;state=T$2.HIDDEN;constructor(e,t,n,o=false){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=o;}fadeOut(){this._renderer.fadeOutRipple(this);}},Hn$2=rt$1({passive:true,capture:true}),Ce$3=class Ce{_events=new Map;addHandler(e,t,n,o){let r=this._events.get(t);if(r){let a=r.get(n);a?a.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,Hn$2);});}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,Hn$2)));}_delegateEventHandler=e=>{let t=D(e);t&&this._events.get(e.type)?.forEach((n,o)=>{(o===t||o.contains(t))&&n.forEach(r=>r.handleEvent(e));});}},wt$2={enterDuration:225,exitDuration:150},Ri$2=800,Un$2=rt$1({passive:true,capture:true}),Wn$2=["mousedown","touchstart"],Yn$2=["mouseup","mouseleave","touchend","touchcancel"],Di$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple {
165
- overflow: hidden;
166
- position: relative;
167
- }
168
- .mat-ripple:not(:empty) {
169
- transform: translateZ(0);
170
- }
171
-
172
- .mat-ripple.mat-ripple-unbounded {
173
- overflow: visible;
174
- }
175
-
176
- .mat-ripple-element {
177
- position: absolute;
178
- border-radius: 50%;
179
- pointer-events: none;
180
- transition: opacity, transform 0ms cubic-bezier(0, 0, 0.2, 1);
181
- transform: scale3d(0, 0, 0);
182
- background-color: var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent));
183
- }
184
- @media (forced-colors: active) {
185
- .mat-ripple-element {
186
- display: none;
187
- }
188
- }
189
- .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element {
190
- display: none;
191
- }
192
- `],encapsulation:2})}return i})(),xt$1=class i{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=false;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=false;_containerRect=null;static _eventManager=new Ce$3;constructor(e,t,n,o,r){this._target=e,this._ngZone=t,this._platform=o,o.isBrowser&&(this._containerElement=N(n)),r&&r.get(L$1).load(Di$2);}fadeInRipple(e,t,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=w$1(w$1({},wt$2),n.animation);n.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);let a=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-a}px`,c.style.top=`${d-a}px`,c.style.height=`${a*2}px`,c.style.width=`${a*2}px`,n.color!=null&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(c);let m=window.getComputedStyle(c),C=m.transitionProperty,S=m.transitionDuration,w=C==="none"||S==="0s"||S==="0s, 0s"||o.width===0&&o.height===0,y=new Ee$1(this,c,n,w);c.style.transform="scale3d(1, 1, 1)",y.state=T$2.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let V=null;return !w&&(u||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Oe=()=>{V&&(V.fallbackTimer=null),clearTimeout(Ae),this._finishRippleTransition(y);},te=()=>this._destroyRipple(y),Ae=setTimeout(te,u+100);c.addEventListener("transitionend",Oe),c.addEventListener("transitioncancel",te),V={onTransitionEnd:Oe,onTransitionCancel:te,fallbackTimer:Ae};}),this._activeRipples.set(y,V),(w||!u)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===T$2.FADING_OUT||e.state===T$2.HIDDEN)return;let t=e.element,n=w$1(w$1({},wt$2),e.config.animation);t.style.transitionDuration=`${n.exitDuration}ms`,t.style.opacity="0",e.state=T$2.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=N(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,Wn$2.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(()=>{Yn$2.forEach(t=>{this._triggerElement.addEventListener(t,this,Un$2);});}),this._pointerUpEventsRegistered=true);}_finishRippleTransition(e){e.state===T$2.FADING_IN?this._startFadeOutTransition(e):e.state===T$2.FADING_OUT&&this._destroyRipple(e);}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=T$2.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$2.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=_t$3(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Ri$2;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=true,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig));}_onTouchStart(e){if(!this._target.rippleDisabled&&!gt$2(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$2.VISIBLE||e.config.terminateOnPointerUp&&e.state===T$2.FADING_IN;!e.config.persistent&&t&&e.fadeOut();}));}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Wn$2.forEach(t=>i._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(Yn$2.forEach(t=>e.removeEventListener(t,this,Un$2)),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 Se$1=new T$4("mat-ripple-global-options"),Os$1=(()=>{class i{_elementRef=g(On$3);_animationsDisabled=at$2();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=g(G$2),n=g(v),o=g(Se$1,{optional:true}),r=g(he$4);this._globalOptions=o||{},this._rippleRenderer=new xt$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=ul({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&Mg("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$2={capture:true},Mi$2=["focus","mousedown","mouseenter","touchstart"],ke$2="mat-ripple-loader-uninitialized",Re$2="mat-ripple-loader-class-name",Xn$2="mat-ripple-loader-centered",Jt$1="mat-ripple-loader-disabled",Kn$2=(()=>{class i{_document=g(U$5);_animationsDisabled=at$2();_globalRippleOptions=g(Se$1,{optional:true});_platform=g(v);_ngZone=g(G$2);_injector=g(he$4);_eventCleanups;_hosts=new Map;constructor(){let t=g(Nn$3).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Mi$2.map(n=>t.listen(this._document,n,this._onInteraction,Ai$2)));}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n());}configureRipple(t,n){t.setAttribute(ke$2,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(Re$2))&&t.setAttribute(Re$2,n.className||""),n.centered&&t.setAttribute(Xn$2,""),n.disabled&&t.setAttribute(Jt$1,"");}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$1,""):t.removeAttribute(Jt$1);}_onInteraction=t=>{let n=D(t);if(n instanceof HTMLElement){let o=n.closest(`[${ke$2}="${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(Re$2)),t.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??wt$2.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??wt$2.exitDuration,l={rippleDisabled:this._animationsDisabled||o?.disabled||t.hasAttribute(Jt$1),rippleConfig:{centered:t.hasAttribute(Xn$2),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},d=new xt$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(ke$2);}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=Ce$5({token:i,factory:i.\u0275fac})}return i})();var Zn$2=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator {
193
- position: relative;
194
- }
195
- .mat-focus-indicator::before {
196
- top: 0;
197
- left: 0;
198
- right: 0;
199
- bottom: 0;
200
- position: absolute;
201
- box-sizing: border-box;
202
- pointer-events: none;
203
- display: var(--mat-focus-indicator-display, none);
204
- border-width: var(--mat-focus-indicator-border-width, 3px);
205
- border-style: var(--mat-focus-indicator-border-style, solid);
206
- border-color: var(--mat-focus-indicator-border-color, transparent);
207
- border-radius: var(--mat-focus-indicator-border-radius, 4px);
208
- }
209
- .mat-focus-indicator:focus-visible::before {
210
- content: "";
211
- }
212
-
213
- @media (forced-colors: active) {
214
- html {
215
- --mat-focus-indicator-display: block;
216
- --mat-focus-indicator-fallback-border-style: none;
217
- }
218
- }
219
- `],encapsulation:2})}return i})();var Ii=["*",[["","progressIndicator",""]]],Ti$2=["*","[progressIndicator]"];function Pi$2(i,e){i&1&&(ml(0,"div",1),sC(1,1),yl());}var Fi$2=new T$4("MAT_BUTTON_CONFIG");function Gn$2(i){return i==null?void 0:$T(i)}var De$1=(()=>{class i{_elementRef=g(On$3);_ngZone=g(G$2);_animationsDisabled=at$2();_config=g(Fi$2,{optional:true});_focusMonitor=g(we$1);_cleanupClick;_renderer=g(Ju);_rippleLoader=g(Kn$2);_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=RB(false,{transform:UT});constructor(){g(L$1).load(Zn$2);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=ul({type:i,hostAttrs:[1,"mat-mdc-button-base"],hostVars:15,hostBindings:function(n,o){n&2&&(lg("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),wC(o.color?"mat-"+o.color:""),Mg("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",UT],disabled:[2,"disabled","disabled",UT],ariaDisabled:[2,"aria-disabled","ariaDisabled",UT],disabledInteractive:[2,"disabledInteractive","disabledInteractive",UT],tabIndex:[2,"tabIndex","tabIndex",Gn$2],_tabindex:[2,"tabindex","_tabindex",Gn$2],showProgress:[1,"showProgress"]}})}return i})(),Ni$2=(()=>{class i extends De$1{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:true});}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({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:[og],ngContentSelectors:Ti$2,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&&(iC(Ii),pg(0,"span",0),sC(1),Hw(2,Pi$2,2,0,"div",1),pg(3,"span",2)(4,"span",3)),n&2&&(UE(2),Uw(o.showProgress()?2:-1));},styles:[`.mat-mdc-icon-button {
220
- -webkit-user-select: none;
221
- user-select: none;
222
- display: inline-block;
223
- position: relative;
224
- box-sizing: border-box;
225
- border: none;
226
- outline: none;
227
- background-color: transparent;
228
- fill: currentColor;
229
- text-decoration: none;
230
- cursor: pointer;
231
- z-index: 0;
232
- overflow: visible;
233
- border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
234
- flex-shrink: 0;
235
- text-align: center;
236
- width: var(--mat-icon-button-state-layer-size, 40px);
237
- height: var(--mat-icon-button-state-layer-size, 40px);
238
- padding: calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);
239
- font-size: var(--mat-icon-button-icon-size, 24px);
240
- color: var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));
241
- -webkit-tap-highlight-color: transparent;
242
- }
243
- .mat-mdc-icon-button .mat-mdc-button-ripple,
244
- .mat-mdc-icon-button .mat-mdc-button-persistent-ripple,
245
- .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
246
- top: 0;
247
- left: 0;
248
- right: 0;
249
- bottom: 0;
250
- position: absolute;
251
- pointer-events: none;
252
- border-radius: inherit;
253
- }
254
- .mat-mdc-icon-button .mat-mdc-button-ripple {
255
- overflow: hidden;
256
- }
257
- .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
258
- content: "";
259
- opacity: 0;
260
- }
261
- .mat-mdc-icon-button .mdc-button__label,
262
- .mat-mdc-icon-button .mat-icon {
263
- z-index: 1;
264
- position: relative;
265
- }
266
- .mat-mdc-icon-button .mat-focus-indicator {
267
- top: 0;
268
- left: 0;
269
- right: 0;
270
- bottom: 0;
271
- position: absolute;
272
- border-radius: inherit;
273
- }
274
- .mat-mdc-icon-button:focus-visible > .mat-focus-indicator::before {
275
- content: "";
276
- border-radius: inherit;
277
- }
278
- .mat-mdc-icon-button .mat-ripple-element {
279
- 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));
280
- }
281
- .mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before {
282
- background-color: var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant));
283
- }
284
- .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
285
- background-color: var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
286
- }
287
- .mat-mdc-icon-button:hover > .mat-mdc-button-persistent-ripple::before {
288
- opacity: var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
289
- }
290
- .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 {
291
- opacity: var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
292
- }
293
- .mat-mdc-icon-button:active > .mat-mdc-button-persistent-ripple::before {
294
- opacity: var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
295
- }
296
- .mat-mdc-icon-button .mat-mdc-button-touch-target {
297
- position: absolute;
298
- top: 50%;
299
- height: var(--mat-icon-button-touch-target-size, 48px);
300
- display: var(--mat-icon-button-touch-target-display, block);
301
- left: 50%;
302
- width: var(--mat-icon-button-touch-target-size, 48px);
303
- transform: translate(-50%, -50%);
304
- }
305
- .mat-mdc-icon-button._mat-animation-noopable {
306
- transition: none !important;
307
- animation: none !important;
308
- }
309
- .mat-mdc-icon-button[disabled], .mat-mdc-icon-button.mat-mdc-button-disabled {
310
- cursor: default;
311
- pointer-events: none;
312
- color: var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
313
- }
314
- .mat-mdc-icon-button.mat-mdc-button-disabled-interactive {
315
- pointer-events: auto;
316
- }
317
- .mat-mdc-icon-button img,
318
- .mat-mdc-icon-button svg {
319
- width: var(--mat-icon-button-icon-size, 24px);
320
- height: var(--mat-icon-button-icon-size, 24px);
321
- vertical-align: baseline;
322
- }
323
- .mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__determinate-circle-graphic {
324
- width: inherit;
325
- height: inherit;
326
- }
327
- .mat-mdc-icon-button .mat-mdc-button-progress-indicator-container .mdc-circular-progress__indeterminate-circle-graphic {
328
- height: 100%;
329
- }
330
- .mat-mdc-icon-button .mat-mdc-button-persistent-ripple {
331
- border-radius: var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));
332
- }
333
- .mat-mdc-icon-button[hidden] {
334
- display: none;
335
- }
336
- .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 {
337
- background: transparent;
338
- opacity: 1;
339
- }
340
-
341
- .mat-mdc-button-progress-indicator-container {
342
- position: absolute;
343
- inset-inline-start: 0;
344
- inset-block-start: 0;
345
- display: flex;
346
- align-items: center;
347
- justify-content: center;
348
- width: 100%;
349
- height: 100%;
350
- box-sizing: border-box;
351
- }
352
-
353
- .mat-mdc-button-progress-indicator-shown mat-icon {
354
- visibility: hidden;
355
- }
356
- `,`@media (forced-colors: active) {
357
- .mat-mdc-button:not(.mdc-button--outlined),
358
- .mat-mdc-unelevated-button:not(.mdc-button--outlined),
359
- .mat-mdc-raised-button:not(.mdc-button--outlined),
360
- .mat-mdc-outlined-button:not(.mdc-button--outlined),
361
- .mat-mdc-button-base.mat-tonal-button,
362
- .mat-mdc-icon-button.mat-mdc-icon-button,
363
- .mat-mdc-outlined-button .mdc-button__ripple {
364
- outline: solid 1px;
365
- }
366
- }
367
- `],encapsulation:2})}return i})();var qs$1=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ps$1({type:i});static \u0275inj=Vr({imports:[W$2]})}return i})();var Li$1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]],[["","progressIndicator",""]]],Bi$1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]","[progressIndicator]"];function zi$1(i,e){i&1&&(ml(0,"div",2),sC(1,3),yl());}var $n$2=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),tl=(()=>{class i extends De$1{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text");}_appearance=null;constructor(){super();let t=Vi$1(this._elementRef.nativeElement);t&&this.setAppearance(t);}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?$n$2.get(this._appearance):null,r=$n$2.get(t);o&&n.remove(...o),n.add(...r),this._appearance=t;}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=Iw({type:i,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[og],ngContentSelectors:Bi$1,decls:8,vars:5,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-button-progress-indicator-container"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(iC(Li$1),pg(0,"span",0),sC(1),ml(2,"span",1),sC(3,1),yl(),sC(4,2),Hw(5,zi$1,2,0,"div",2),pg(6,"span",3)(7,"span",4)),n&2&&(Mg("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab),UE(5),Uw(o.showProgress()?5:-1));},styles:[`.mat-mdc-button-base {
368
- text-decoration: none;
369
- }
370
- .mat-mdc-button-base .mat-icon {
371
- min-height: fit-content;
372
- flex-shrink: 0;
373
- }
374
- @media (hover: none) {
375
- .mat-mdc-button-base:hover > span.mat-mdc-button-persistent-ripple::before {
376
- opacity: 0;
377
- }
378
- }
379
-
380
- .mdc-button {
381
- -webkit-user-select: none;
382
- user-select: none;
383
- position: relative;
384
- display: inline-flex;
385
- align-items: center;
386
- justify-content: center;
387
- box-sizing: border-box;
388
- min-width: 64px;
389
- border: none;
390
- outline: none;
391
- line-height: inherit;
392
- -webkit-appearance: none;
393
- overflow: visible;
394
- vertical-align: middle;
395
- background: transparent;
396
- padding: 0 8px;
397
- }
398
- .mdc-button::-moz-focus-inner {
399
- padding: 0;
400
- border: 0;
401
- }
402
- .mdc-button:active {
403
- outline: none;
404
- }
405
- .mdc-button:hover {
406
- cursor: pointer;
407
- }
408
- .mdc-button:disabled {
409
- cursor: default;
410
- pointer-events: none;
411
- }
412
- .mdc-button[hidden] {
413
- display: none;
414
- }
415
- .mdc-button .mdc-button__label {
416
- position: relative;
417
- }
418
-
419
- .mat-mdc-button {
420
- padding: 0 var(--mat-button-text-horizontal-padding, 12px);
421
- height: var(--mat-button-text-container-height, 40px);
422
- font-family: var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));
423
- font-size: var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));
424
- letter-spacing: var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));
425
- text-transform: var(--mat-button-text-label-text-transform);
426
- font-weight: var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight));
427
- }
428
- .mat-mdc-button, .mat-mdc-button .mdc-button__ripple {
429
- border-radius: var(--mat-button-text-container-shape, var(--mat-sys-corner-full));
430
- }
431
- .mat-mdc-button:not(:disabled) {
432
- color: var(--mat-button-text-label-text-color, var(--mat-sys-primary));
433
- }
434
- .mat-mdc-button[disabled], .mat-mdc-button.mat-mdc-button-disabled {
435
- cursor: default;
436
- pointer-events: none;
437
- color: var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
438
- }
439
- .mat-mdc-button.mat-mdc-button-disabled-interactive {
440
- pointer-events: auto;
441
- }
442
- .mat-mdc-button:has(.material-icons, mat-icon, [matButtonIcon]) {
443
- padding: 0 var(--mat-button-text-with-icon-horizontal-padding, 16px);
444
- }
445
- .mat-mdc-button > .mat-icon {
446
- margin-right: var(--mat-button-text-icon-spacing, 8px);
447
- margin-left: var(--mat-button-text-icon-offset, -4px);
448
- }
449
- [dir=rtl] .mat-mdc-button > .mat-icon {
450
- margin-right: var(--mat-button-text-icon-offset, -4px);
451
- margin-left: var(--mat-button-text-icon-spacing, 8px);
452
- }
453
- .mat-mdc-button .mdc-button__label + .mat-icon {
454
- margin-right: var(--mat-button-text-icon-offset, -4px);
455
- margin-left: var(--mat-button-text-icon-spacing, 8px);
456
- }
457
- [dir=rtl] .mat-mdc-button .mdc-button__label + .mat-icon {
458
- margin-right: var(--mat-button-text-icon-spacing, 8px);
459
- margin-left: var(--mat-button-text-icon-offset, -4px);
460
- }
461
- .mat-mdc-button .mat-ripple-element {
462
- background-color: var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
463
- }
464
- .mat-mdc-button .mat-mdc-button-persistent-ripple::before {
465
- background-color: var(--mat-button-text-state-layer-color, var(--mat-sys-primary));
466
- }
467
- .mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
468
- background-color: var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
469
- }
470
- .mat-mdc-button:hover > .mat-mdc-button-persistent-ripple::before {
471
- opacity: var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
472
- }
473
- .mat-mdc-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
474
- opacity: var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
475
- }
476
- .mat-mdc-button:active > .mat-mdc-button-persistent-ripple::before {
477
- opacity: var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
478
- }
479
- .mat-mdc-button .mat-mdc-button-touch-target {
480
- position: absolute;
481
- top: 50%;
482
- height: var(--mat-button-text-touch-target-size, 48px);
483
- display: var(--mat-button-text-touch-target-display, block);
484
- left: 0;
485
- right: 0;
486
- transform: translateY(-50%);
487
- }
488
-
489
- .mat-mdc-unelevated-button {
490
- transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
491
- height: var(--mat-button-filled-container-height, 40px);
492
- font-family: var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));
493
- font-size: var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));
494
- letter-spacing: var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));
495
- text-transform: var(--mat-button-filled-label-text-transform);
496
- font-weight: var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));
497
- padding: 0 var(--mat-button-filled-horizontal-padding, 24px);
498
- }
499
- .mat-mdc-unelevated-button > .mat-icon {
500
- margin-right: var(--mat-button-filled-icon-spacing, 8px);
501
- margin-left: var(--mat-button-filled-icon-offset, -8px);
502
- }
503
- [dir=rtl] .mat-mdc-unelevated-button > .mat-icon {
504
- margin-right: var(--mat-button-filled-icon-offset, -8px);
505
- margin-left: var(--mat-button-filled-icon-spacing, 8px);
506
- }
507
- .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
508
- margin-right: var(--mat-button-filled-icon-offset, -8px);
509
- margin-left: var(--mat-button-filled-icon-spacing, 8px);
510
- }
511
- [dir=rtl] .mat-mdc-unelevated-button .mdc-button__label + .mat-icon {
512
- margin-right: var(--mat-button-filled-icon-spacing, 8px);
513
- margin-left: var(--mat-button-filled-icon-offset, -8px);
514
- }
515
- .mat-mdc-unelevated-button .mat-ripple-element {
516
- background-color: var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
517
- }
518
- .mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before {
519
- background-color: var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary));
520
- }
521
- .mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
522
- background-color: var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
523
- }
524
- .mat-mdc-unelevated-button:hover > .mat-mdc-button-persistent-ripple::before {
525
- opacity: var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
526
- }
527
- .mat-mdc-unelevated-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
528
- opacity: var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
529
- }
530
- .mat-mdc-unelevated-button:active > .mat-mdc-button-persistent-ripple::before {
531
- opacity: var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
532
- }
533
- .mat-mdc-unelevated-button .mat-mdc-button-touch-target {
534
- position: absolute;
535
- top: 50%;
536
- height: var(--mat-button-filled-touch-target-size, 48px);
537
- display: var(--mat-button-filled-touch-target-display, block);
538
- left: 0;
539
- right: 0;
540
- transform: translateY(-50%);
541
- }
542
- .mat-mdc-unelevated-button:not(:disabled) {
543
- color: var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));
544
- background-color: var(--mat-button-filled-container-color, var(--mat-sys-primary));
545
- }
546
- .mat-mdc-unelevated-button, .mat-mdc-unelevated-button .mdc-button__ripple {
547
- border-radius: var(--mat-button-filled-container-shape, var(--mat-sys-corner-full));
548
- }
549
- .mat-mdc-unelevated-button .mat-mdc-button-progress-indicator-container {
550
- --mat-progress-spinner-active-indicator-color: var(--mat-button-filled-progress-active-indicator-color, var(--mat-sys-on-primary));
551
- }
552
- .mat-mdc-unelevated-button[disabled], .mat-mdc-unelevated-button.mat-mdc-button-disabled {
553
- cursor: default;
554
- pointer-events: none;
555
- color: var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
556
- background-color: var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
557
- }
558
- .mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive {
559
- pointer-events: auto;
560
- }
561
-
562
- .mat-mdc-raised-button {
563
- transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
564
- box-shadow: var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));
565
- height: var(--mat-button-protected-container-height, 40px);
566
- font-family: var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));
567
- font-size: var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));
568
- letter-spacing: var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));
569
- text-transform: var(--mat-button-protected-label-text-transform);
570
- font-weight: var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));
571
- padding: 0 var(--mat-button-protected-horizontal-padding, 24px);
572
- }
573
- .mat-mdc-raised-button > .mat-icon {
574
- margin-right: var(--mat-button-protected-icon-spacing, 8px);
575
- margin-left: var(--mat-button-protected-icon-offset, -8px);
576
- }
577
- [dir=rtl] .mat-mdc-raised-button > .mat-icon {
578
- margin-right: var(--mat-button-protected-icon-offset, -8px);
579
- margin-left: var(--mat-button-protected-icon-spacing, 8px);
580
- }
581
- .mat-mdc-raised-button .mdc-button__label + .mat-icon {
582
- margin-right: var(--mat-button-protected-icon-offset, -8px);
583
- margin-left: var(--mat-button-protected-icon-spacing, 8px);
584
- }
585
- [dir=rtl] .mat-mdc-raised-button .mdc-button__label + .mat-icon {
586
- margin-right: var(--mat-button-protected-icon-spacing, 8px);
587
- margin-left: var(--mat-button-protected-icon-offset, -8px);
588
- }
589
- .mat-mdc-raised-button .mat-ripple-element {
590
- background-color: var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
591
- }
592
- .mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before {
593
- background-color: var(--mat-button-protected-state-layer-color, var(--mat-sys-primary));
594
- }
595
- .mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
596
- background-color: var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
597
- }
598
- .mat-mdc-raised-button:hover > .mat-mdc-button-persistent-ripple::before {
599
- opacity: var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
600
- }
601
- .mat-mdc-raised-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
602
- opacity: var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
603
- }
604
- .mat-mdc-raised-button:active > .mat-mdc-button-persistent-ripple::before {
605
- opacity: var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
606
- }
607
- .mat-mdc-raised-button .mat-mdc-button-touch-target {
608
- position: absolute;
609
- top: 50%;
610
- height: var(--mat-button-protected-touch-target-size, 48px);
611
- display: var(--mat-button-protected-touch-target-display, block);
612
- left: 0;
613
- right: 0;
614
- transform: translateY(-50%);
615
- }
616
- .mat-mdc-raised-button:not(:disabled) {
617
- color: var(--mat-button-protected-label-text-color, var(--mat-sys-primary));
618
- background-color: var(--mat-button-protected-container-color, var(--mat-sys-surface));
619
- }
620
- .mat-mdc-raised-button, .mat-mdc-raised-button .mdc-button__ripple {
621
- border-radius: var(--mat-button-protected-container-shape, var(--mat-sys-corner-full));
622
- }
623
- @media (hover: hover) {
624
- .mat-mdc-raised-button:hover {
625
- box-shadow: var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2));
626
- }
627
- }
628
- .mat-mdc-raised-button:focus {
629
- box-shadow: var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1));
630
- }
631
- .mat-mdc-raised-button:active, .mat-mdc-raised-button:focus:active {
632
- box-shadow: var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1));
633
- }
634
- .mat-mdc-raised-button[disabled], .mat-mdc-raised-button.mat-mdc-button-disabled {
635
- cursor: default;
636
- pointer-events: none;
637
- color: var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
638
- background-color: var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
639
- }
640
- .mat-mdc-raised-button[disabled].mat-mdc-button-disabled, .mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled {
641
- box-shadow: var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0));
642
- }
643
- .mat-mdc-raised-button.mat-mdc-button-disabled-interactive {
644
- pointer-events: auto;
645
- }
646
-
647
- .mat-mdc-outlined-button {
648
- border-style: solid;
649
- transition: border 280ms cubic-bezier(0.4, 0, 0.2, 1);
650
- height: var(--mat-button-outlined-container-height, 40px);
651
- font-family: var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));
652
- font-size: var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));
653
- letter-spacing: var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));
654
- text-transform: var(--mat-button-outlined-label-text-transform);
655
- font-weight: var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));
656
- border-radius: var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));
657
- border-width: var(--mat-button-outlined-outline-width, 1px);
658
- padding: 0 var(--mat-button-outlined-horizontal-padding, 24px);
659
- }
660
- .mat-mdc-outlined-button > .mat-icon {
661
- margin-right: var(--mat-button-outlined-icon-spacing, 8px);
662
- margin-left: var(--mat-button-outlined-icon-offset, -8px);
663
- }
664
- [dir=rtl] .mat-mdc-outlined-button > .mat-icon {
665
- margin-right: var(--mat-button-outlined-icon-offset, -8px);
666
- margin-left: var(--mat-button-outlined-icon-spacing, 8px);
667
- }
668
- .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
669
- margin-right: var(--mat-button-outlined-icon-offset, -8px);
670
- margin-left: var(--mat-button-outlined-icon-spacing, 8px);
671
- }
672
- [dir=rtl] .mat-mdc-outlined-button .mdc-button__label + .mat-icon {
673
- margin-right: var(--mat-button-outlined-icon-spacing, 8px);
674
- margin-left: var(--mat-button-outlined-icon-offset, -8px);
675
- }
676
- .mat-mdc-outlined-button .mat-ripple-element {
677
- background-color: var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
678
- }
679
- .mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before {
680
- background-color: var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary));
681
- }
682
- .mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
683
- background-color: var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
684
- }
685
- .mat-mdc-outlined-button:hover > .mat-mdc-button-persistent-ripple::before {
686
- opacity: var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
687
- }
688
- .mat-mdc-outlined-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
689
- opacity: var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
690
- }
691
- .mat-mdc-outlined-button:active > .mat-mdc-button-persistent-ripple::before {
692
- opacity: var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
693
- }
694
- .mat-mdc-outlined-button .mat-mdc-button-touch-target {
695
- position: absolute;
696
- top: 50%;
697
- height: var(--mat-button-outlined-touch-target-size, 48px);
698
- display: var(--mat-button-outlined-touch-target-display, block);
699
- left: 0;
700
- right: 0;
701
- transform: translateY(-50%);
702
- }
703
- .mat-mdc-outlined-button:not(:disabled) {
704
- color: var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));
705
- border-color: var(--mat-button-outlined-outline-color, var(--mat-sys-outline));
706
- }
707
- .mat-mdc-outlined-button[disabled], .mat-mdc-outlined-button.mat-mdc-button-disabled {
708
- cursor: default;
709
- pointer-events: none;
710
- color: var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
711
- border-color: var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
712
- }
713
- .mat-mdc-outlined-button.mat-mdc-button-disabled-interactive {
714
- pointer-events: auto;
715
- }
716
-
717
- .mat-tonal-button {
718
- transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
719
- height: var(--mat-button-tonal-container-height, 40px);
720
- font-family: var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));
721
- font-size: var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));
722
- letter-spacing: var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));
723
- text-transform: var(--mat-button-tonal-label-text-transform);
724
- font-weight: var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));
725
- padding: 0 var(--mat-button-tonal-horizontal-padding, 24px);
726
- }
727
- .mat-tonal-button:not(:disabled) {
728
- color: var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));
729
- background-color: var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container));
730
- }
731
- .mat-tonal-button, .mat-tonal-button .mdc-button__ripple {
732
- border-radius: var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full));
733
- }
734
- .mat-tonal-button[disabled], .mat-tonal-button.mat-mdc-button-disabled {
735
- cursor: default;
736
- pointer-events: none;
737
- color: var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
738
- background-color: var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent));
739
- }
740
- .mat-tonal-button.mat-mdc-button-disabled-interactive {
741
- pointer-events: auto;
742
- }
743
- .mat-tonal-button > .mat-icon {
744
- margin-right: var(--mat-button-tonal-icon-spacing, 8px);
745
- margin-left: var(--mat-button-tonal-icon-offset, -8px);
746
- }
747
- [dir=rtl] .mat-tonal-button > .mat-icon {
748
- margin-right: var(--mat-button-tonal-icon-offset, -8px);
749
- margin-left: var(--mat-button-tonal-icon-spacing, 8px);
750
- }
751
- .mat-tonal-button .mdc-button__label + .mat-icon {
752
- margin-right: var(--mat-button-tonal-icon-offset, -8px);
753
- margin-left: var(--mat-button-tonal-icon-spacing, 8px);
754
- }
755
- [dir=rtl] .mat-tonal-button .mdc-button__label + .mat-icon {
756
- margin-right: var(--mat-button-tonal-icon-spacing, 8px);
757
- margin-left: var(--mat-button-tonal-icon-offset, -8px);
758
- }
759
- .mat-tonal-button .mat-ripple-element {
760
- background-color: var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent));
761
- }
762
- .mat-tonal-button .mat-mdc-button-persistent-ripple::before {
763
- background-color: var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container));
764
- }
765
- .mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before {
766
- background-color: var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant));
767
- }
768
- .mat-tonal-button:hover > .mat-mdc-button-persistent-ripple::before {
769
- opacity: var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));
770
- }
771
- .mat-tonal-button.cdk-program-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.cdk-keyboard-focused > .mat-mdc-button-persistent-ripple::before, .mat-tonal-button.mat-mdc-button-disabled-interactive:focus > .mat-mdc-button-persistent-ripple::before {
772
- opacity: var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));
773
- }
774
- .mat-tonal-button:active > .mat-mdc-button-persistent-ripple::before {
775
- opacity: var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));
776
- }
777
- .mat-tonal-button .mat-mdc-button-touch-target {
778
- position: absolute;
779
- top: 50%;
780
- height: var(--mat-button-tonal-touch-target-size, 48px);
781
- display: var(--mat-button-tonal-touch-target-display, block);
782
- left: 0;
783
- right: 0;
784
- transform: translateY(-50%);
785
- }
786
-
787
- .mat-mdc-button,
788
- .mat-mdc-unelevated-button,
789
- .mat-mdc-raised-button,
790
- .mat-mdc-outlined-button,
791
- .mat-tonal-button {
792
- -webkit-tap-highlight-color: transparent;
793
- }
794
- .mat-mdc-button .mat-mdc-button-ripple,
795
- .mat-mdc-button .mat-mdc-button-persistent-ripple,
796
- .mat-mdc-button .mat-mdc-button-persistent-ripple::before,
797
- .mat-mdc-unelevated-button .mat-mdc-button-ripple,
798
- .mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,
799
- .mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
800
- .mat-mdc-raised-button .mat-mdc-button-ripple,
801
- .mat-mdc-raised-button .mat-mdc-button-persistent-ripple,
802
- .mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
803
- .mat-mdc-outlined-button .mat-mdc-button-ripple,
804
- .mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,
805
- .mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
806
- .mat-tonal-button .mat-mdc-button-ripple,
807
- .mat-tonal-button .mat-mdc-button-persistent-ripple,
808
- .mat-tonal-button .mat-mdc-button-persistent-ripple::before {
809
- top: 0;
810
- left: 0;
811
- right: 0;
812
- bottom: 0;
813
- position: absolute;
814
- pointer-events: none;
815
- border-radius: inherit;
816
- }
817
- .mat-mdc-button .mat-mdc-button-ripple,
818
- .mat-mdc-unelevated-button .mat-mdc-button-ripple,
819
- .mat-mdc-raised-button .mat-mdc-button-ripple,
820
- .mat-mdc-outlined-button .mat-mdc-button-ripple,
821
- .mat-tonal-button .mat-mdc-button-ripple {
822
- overflow: hidden;
823
- }
824
- .mat-mdc-button .mat-mdc-button-persistent-ripple::before,
825
- .mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,
826
- .mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,
827
- .mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,
828
- .mat-tonal-button .mat-mdc-button-persistent-ripple::before {
829
- content: "";
830
- opacity: 0;
831
- }
832
- .mat-mdc-button .mdc-button__label,
833
- .mat-mdc-button .mat-icon,
834
- .mat-mdc-unelevated-button .mdc-button__label,
835
- .mat-mdc-unelevated-button .mat-icon,
836
- .mat-mdc-raised-button .mdc-button__label,
837
- .mat-mdc-raised-button .mat-icon,
838
- .mat-mdc-outlined-button .mdc-button__label,
839
- .mat-mdc-outlined-button .mat-icon,
840
- .mat-tonal-button .mdc-button__label,
841
- .mat-tonal-button .mat-icon {
842
- z-index: 1;
843
- position: relative;
844
- }
845
- .mat-mdc-button .mat-focus-indicator,
846
- .mat-mdc-unelevated-button .mat-focus-indicator,
847
- .mat-mdc-raised-button .mat-focus-indicator,
848
- .mat-mdc-outlined-button .mat-focus-indicator,
849
- .mat-tonal-button .mat-focus-indicator {
850
- top: 0;
851
- left: 0;
852
- right: 0;
853
- bottom: 0;
854
- position: absolute;
855
- border-radius: inherit;
856
- }
857
- .mat-mdc-button:focus-visible > .mat-focus-indicator::before,
858
- .mat-mdc-unelevated-button:focus-visible > .mat-focus-indicator::before,
859
- .mat-mdc-raised-button:focus-visible > .mat-focus-indicator::before,
860
- .mat-mdc-outlined-button:focus-visible > .mat-focus-indicator::before,
861
- .mat-tonal-button:focus-visible > .mat-focus-indicator::before {
862
- content: "";
863
- border-radius: inherit;
864
- }
865
- .mat-mdc-button._mat-animation-noopable,
866
- .mat-mdc-unelevated-button._mat-animation-noopable,
867
- .mat-mdc-raised-button._mat-animation-noopable,
868
- .mat-mdc-outlined-button._mat-animation-noopable,
869
- .mat-tonal-button._mat-animation-noopable {
870
- transition: none !important;
871
- animation: none !important;
872
- }
873
- .mat-mdc-button > .mat-icon,
874
- .mat-mdc-unelevated-button > .mat-icon,
875
- .mat-mdc-raised-button > .mat-icon,
876
- .mat-mdc-outlined-button > .mat-icon,
877
- .mat-tonal-button > .mat-icon {
878
- display: inline-block;
879
- position: relative;
880
- vertical-align: top;
881
- font-size: 1.125rem;
882
- height: 1.125rem;
883
- width: 1.125rem;
884
- }
885
-
886
- .mat-mdc-outlined-button .mat-mdc-button-ripple,
887
- .mat-mdc-outlined-button .mdc-button__ripple {
888
- top: -1px;
889
- left: -1px;
890
- bottom: -1px;
891
- right: -1px;
892
- }
893
-
894
- .mat-mdc-unelevated-button .mat-focus-indicator::before,
895
- .mat-tonal-button .mat-focus-indicator::before,
896
- .mat-mdc-raised-button .mat-focus-indicator::before {
897
- margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1);
898
- }
899
-
900
- .mat-mdc-outlined-button .mat-focus-indicator::before {
901
- margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
902
- }
903
-
904
- .mat-mdc-button-progress-indicator-container {
905
- position: absolute;
906
- inset-inline-start: 0;
907
- inset-block-start: 0;
908
- display: flex;
909
- align-items: center;
910
- justify-content: center;
911
- width: 100%;
912
- height: 100%;
913
- box-sizing: border-box;
914
- }
915
-
916
- .mat-mdc-button-progress-indicator-shown mat-icon,
917
- .mat-mdc-button-progress-indicator-shown [matButtonIcon],
918
- .mat-mdc-button-progress-indicator-shown .mdc-button__label {
919
- visibility: hidden;
920
- }
921
- `,`@media (forced-colors: active) {
922
- .mat-mdc-button:not(.mdc-button--outlined),
923
- .mat-mdc-unelevated-button:not(.mdc-button--outlined),
924
- .mat-mdc-raised-button:not(.mdc-button--outlined),
925
- .mat-mdc-outlined-button:not(.mdc-button--outlined),
926
- .mat-mdc-button-base.mat-tonal-button,
927
- .mat-mdc-icon-button.mat-mdc-icon-button,
928
- .mat-mdc-outlined-button .mdc-button__ripple {
929
- outline: solid 1px;
930
- }
931
- }
932
- `],encapsulation:2})}return i})();function Vi$1(i){return i.hasAttribute("mat-raised-button")?"elevated":i.hasAttribute("mat-stroked-button")?"outlined":i.hasAttribute("mat-flat-button")?"filled":i.hasAttribute("mat-button")?"text":null}function Jt(i,o){}var f=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 ht$2=(()=>{class i extends Nt$2{_elementRef=g(On$3);_focusTrapFactory=g(wi$2);_config;_interactivityChecker=g(Ln$2);_ngZone=g(G$2);_focusMonitor=g(we$1);_renderer=g(Ju);_changeDetectorRef=g(um);_injector=g(he$4);_platform=g(v);_document=g(U$5);_portalOutlet;_focusTrapped=new le$4;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=false;constructor(){super(),this._config=g(f,{optional:true})||new f,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy);}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck();}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck());}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus();}_captureInitialFocus(){this._trapFocus();}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=true,this._restoreFocus();}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}attachDomPortal=t=>{this._portalOutlet.hasAttached();let e=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),e};_recaptureFocus(){this._containsFocus()||this._trapFocus();}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),s(),t.removeAttribute("tabindex");},a=this._renderer.listen(t,"blur",n),s=this._renderer.listen(t,"mousedown",n);})),t.focus(e);}_focusByCssSelector(t,e){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,e);}_trapFocus(t){this._isDestroyed||vE(()=>{let e=this._elementRef.nativeElement;switch(this._config.autoFocus){case false:case "dialog":this._containsFocus()||e.focus(t);break;case true:case "first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next();},{injector:this._injector});}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let n=ni$2(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus());}this._focusTrap&&this._focusTrap.destroy();}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t);}_containsFocus(){let t=this._elementRef.nativeElement,e=ni$2();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=ni$2()));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Iw({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,n){if(e&1&&wg(jo$1,7),e&2){let a;cC(a=uC())&&(n._portalOutlet=a.first);}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,n){e&2&&lg("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null);},features:[og],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){e&1&&sg(0,Jt,0,0,"ng-template",0);},dependencies:[jo$1],styles:[`.cdk-dialog-container {
933
- display: block;
934
- width: 100%;
935
- height: 100%;
936
- min-height: inherit;
937
- max-height: inherit;
938
- }
939
- `],encapsulation:2,changeDetection:1})}return i})(),L=class{overlayRef;config;componentInstance=null;componentRef=null;containerInstance;disableClose;closed=new le$4;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(e=>{e.keyCode===27&&!this.disableClose&&!en$1(e)&&(e.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=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==false&&this.close();});}close(o,t){if(this._canClose(o)){let e=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),e.next(o),e.complete(),this.componentInstance=this.containerInstance=null;}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return !!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},te$2=new T$4("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=g(he$4);return ()=>un$1(i)}}),ee$2=new T$4("DialogData"),ne$1=new T$4("DefaultDialogConfig");function ie$1(i){let o=zi$2(i),t=new yt$3;return {valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete();}}}var Qt=(()=>{class i{_injector=g(he$4);_defaultOptions=g(ne$1,{optional:true});_parentDialog=g(i,{optional:true,skipSelf:true});_overlayContainer=g(vn$1);_idGenerator=g(pt$3);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$4;_afterOpenedAtThisLevel=new le$4;_ariaHiddenElements=new Map;_scrollStrategy=g(te$2);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Oy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vd(void 0)));open(t,e){let n=this._defaultOptions||new f;e=w$1(w$1({},n),e),e.id=e.id||this._idGenerator.getId("cdk-dialog-"),e.id&&this.getDialogById(e.id);let a=this._getOverlayConfig(e),s=Cn$2(this._injector,a),l=new L(s,e),c=this._attachContainer(s,l,e);if(l.containerInstance=c,!this.openDialogs.length){let O=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(cn$2(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(O);}):this._hideNonDialogContentFromAssistiveTechnology(O);}return this._attachDialogContent(t,l,c,e),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,true)),this.afterOpened.next(l),l}closeAll(){mt$2(this.openDialogs,t=>t.close());}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){mt$2(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===false&&this._removeOpenDialog(t,false);}),mt$2(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[];}_getOverlayConfig(t){let e=new Ht({positionStrategy:t.positionStrategy||wn$2().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,n){let a=n.injector||n.viewContainerRef?.injector,s=[{provide:f,useValue:n},{provide:L,useValue:e},{provide:Wt,useValue:t}],l;n.container?typeof n.container=="function"?l=n.container:(l=n.container.type,s.push(...n.container.providers(n))):l=ht$2;let c=new me$2(l,n.viewContainerRef,he$4.create({parent:a||this._injector,providers:s}));return t.attach(c).instance}_attachDialogContent(t,e,n,a){if(t instanceof lr$1){let s=this._createInjector(a,e,n,void 0),l={$implicit:a.data,dialogRef:e};a.templateContext&&(l=w$1(w$1({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new Ft$1(t,null,l,s));}else {let s=this._createInjector(a,e,n,this._injector),l=n.attachComponentPortal(new me$2(t,a.viewContainerRef,s,null,a.bindings));e.componentRef=l,e.componentInstance=l.instance;}}_createInjector(t,e,n,a){let s=t.injector||t.viewContainerRef?.injector,l=[{provide:ee$2,useValue:t.data},{provide:L,useValue:e}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(e,t,n)):l.push(...t.providers)),t.direction&&(!s||!s.get(mt$3,null,{optional:true}))&&l.push({provide:mt$3,useValue:ie$1(t.direction)}),he$4.create({parent:s||a,providers:l})}_removeOpenDialog(t,e){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden");}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()));}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let a=e[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&!a.hasAttribute("popover")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"));}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function mt$2(i,o){let t=i.length;for(;t--;)o(i[t]);}function ae$1(i,o){}var at$1=class at{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},ut$1="mdc-dialog--open",Zt="mdc-dialog--opening",Ut$1="mdc-dialog--closing",oe$1=150,se=75,re$2=(()=>{class i extends ht$2{_animationStateChanged=new yt$3;_animationsEnabled=!at$2();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Yt(this._config.enterAnimationDuration)??oe$1:0;_exitAnimationDuration=this._animationsEnabled?Yt(this._config.exitAnimationDuration)??se:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation();}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Zt,ut$1)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ut$1),Promise.resolve().then(()=>this._finishDialogOpen()));}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ut$1),this._animationsEnabled?(this._hostElement.style.setProperty($t$1,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ut$1)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose());}_updateActionSectionCount(t){this._actionSectionCount+=t,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(Zt,Ut$1);}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t);}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t();});}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus();}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t});}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer);}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}static \u0275fac=(()=>{let t;return function(n){return (t||(t=kp(i)))(n||i)}})();static \u0275cmp=Iw({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,n){e&2&&(mg("id",n._config.id),lg("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),Mg("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0));},features:[og],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(e,n){e&1&&(Is$1(0,"div",0)(1,"div",1),sg(2,ae$1,0,0,"ng-template",2),gl()());},dependencies:[jo$1],styles:[`.mat-mdc-dialog-container {
940
- width: 100%;
941
- height: 100%;
942
- display: block;
943
- box-sizing: border-box;
944
- max-height: inherit;
945
- min-height: inherit;
946
- min-width: inherit;
947
- max-width: inherit;
948
- outline: 0;
949
- }
950
-
951
- .cdk-overlay-pane.mat-mdc-dialog-panel {
952
- max-width: var(--mat-dialog-container-max-width, 560px);
953
- min-width: var(--mat-dialog-container-min-width, 280px);
954
- }
955
- @media (max-width: 599px) {
956
- .cdk-overlay-pane.mat-mdc-dialog-panel {
957
- max-width: var(--mat-dialog-container-small-max-width, calc(100vw - 32px));
958
- }
959
- }
960
-
961
- .mat-mdc-dialog-inner-container {
962
- display: flex;
963
- flex-direction: row;
964
- align-items: center;
965
- justify-content: space-around;
966
- box-sizing: border-box;
967
- height: 100%;
968
- opacity: 0;
969
- transition: opacity linear var(--mat-dialog-transition-duration, 0ms);
970
- max-height: inherit;
971
- min-height: inherit;
972
- min-width: inherit;
973
- max-width: inherit;
974
- }
975
- .mdc-dialog--closing .mat-mdc-dialog-inner-container {
976
- transition: opacity 75ms linear;
977
- transform: none;
978
- }
979
- .mdc-dialog--open .mat-mdc-dialog-inner-container {
980
- opacity: 1;
981
- }
982
- ._mat-animation-noopable .mat-mdc-dialog-inner-container {
983
- transition: none;
984
- }
985
-
986
- .mat-mdc-dialog-surface {
987
- display: flex;
988
- flex-direction: column;
989
- flex-grow: 0;
990
- flex-shrink: 0;
991
- box-sizing: border-box;
992
- width: 100%;
993
- height: 100%;
994
- position: relative;
995
- overflow-y: auto;
996
- outline: 0;
997
- transform: scale(0.8);
998
- transition: transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);
999
- max-height: inherit;
1000
- min-height: inherit;
1001
- min-width: inherit;
1002
- max-width: inherit;
1003
- box-shadow: var(--mat-dialog-container-elevation-shadow, none);
1004
- border-radius: var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));
1005
- background-color: var(--mat-dialog-container-color, var(--mat-sys-surface, white));
1006
- }
1007
- [dir=rtl] .mat-mdc-dialog-surface {
1008
- text-align: right;
1009
- }
1010
- .mdc-dialog--open .mat-mdc-dialog-surface, .mdc-dialog--closing .mat-mdc-dialog-surface {
1011
- transform: none;
1012
- }
1013
- ._mat-animation-noopable .mat-mdc-dialog-surface {
1014
- transition: none;
1015
- }
1016
- .mat-mdc-dialog-surface::before {
1017
- position: absolute;
1018
- box-sizing: border-box;
1019
- width: 100%;
1020
- height: 100%;
1021
- top: 0;
1022
- left: 0;
1023
- border: 2px solid transparent;
1024
- border-radius: inherit;
1025
- content: "";
1026
- pointer-events: none;
1027
- }
1028
-
1029
- .mat-mdc-dialog-title {
1030
- display: block;
1031
- position: relative;
1032
- flex-shrink: 0;
1033
- box-sizing: border-box;
1034
- margin: 0 0 1px;
1035
- padding: var(--mat-dialog-headline-padding, 6px 24px 13px);
1036
- }
1037
- .mat-mdc-dialog-title::before {
1038
- display: inline-block;
1039
- width: 0;
1040
- height: 40px;
1041
- content: "";
1042
- vertical-align: 0;
1043
- }
1044
- [dir=rtl] .mat-mdc-dialog-title {
1045
- text-align: right;
1046
- }
1047
- .mat-mdc-dialog-container .mat-mdc-dialog-title {
1048
- color: var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));
1049
- font-family: var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));
1050
- line-height: var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));
1051
- font-size: var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));
1052
- font-weight: var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));
1053
- letter-spacing: var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em));
1054
- }
1055
-
1056
- .mat-mdc-dialog-content {
1057
- display: block;
1058
- flex-grow: 1;
1059
- box-sizing: border-box;
1060
- margin: 0;
1061
- overflow: auto;
1062
- max-height: 65vh;
1063
- }
1064
- .mat-mdc-dialog-content > :first-child {
1065
- margin-top: 0;
1066
- }
1067
- .mat-mdc-dialog-content > :last-child {
1068
- margin-bottom: 0;
1069
- }
1070
- .mat-mdc-dialog-container .mat-mdc-dialog-content {
1071
- color: var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));
1072
- font-family: var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));
1073
- line-height: var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));
1074
- font-size: var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));
1075
- font-weight: var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));
1076
- letter-spacing: var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em));
1077
- }
1078
- .mat-mdc-dialog-container .mat-mdc-dialog-content {
1079
- padding: var(--mat-dialog-content-padding, 20px 24px);
1080
- }
1081
- .mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content {
1082
- padding: var(--mat-dialog-with-actions-content-padding, 20px 24px 0);
1083
- }
1084
- .mat-mdc-dialog-container .mat-mdc-dialog-title + .mat-mdc-dialog-content {
1085
- padding-top: 0;
1086
- }
1087
-
1088
- .mat-mdc-dialog-actions {
1089
- display: flex;
1090
- position: relative;
1091
- flex-shrink: 0;
1092
- flex-wrap: wrap;
1093
- align-items: center;
1094
- box-sizing: border-box;
1095
- min-height: 52px;
1096
- margin: 0;
1097
- border-top: 1px solid transparent;
1098
- padding: var(--mat-dialog-actions-padding, 16px 24px);
1099
- justify-content: var(--mat-dialog-actions-alignment, flex-end);
1100
- }
1101
- @media (forced-colors: active) {
1102
- .mat-mdc-dialog-actions {
1103
- border-top-color: CanvasText;
1104
- }
1105
- }
1106
- .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start, .mat-mdc-dialog-actions[align=start] {
1107
- justify-content: start;
1108
- }
1109
- .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center, .mat-mdc-dialog-actions[align=center] {
1110
- justify-content: center;
1111
- }
1112
- .mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end, .mat-mdc-dialog-actions[align=end] {
1113
- justify-content: flex-end;
1114
- }
1115
- .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
1116
- .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
1117
- margin-left: 8px;
1118
- }
1119
- [dir=rtl] .mat-mdc-dialog-actions .mat-button-base + .mat-button-base,
1120
- [dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base + .mat-mdc-button-base {
1121
- margin-left: 0;
1122
- margin-right: 8px;
1123
- }
1124
-
1125
- .mat-mdc-dialog-component-host {
1126
- display: contents;
1127
- }
1128
- `],encapsulation:2,changeDetection:1})}return i})(),$t$1="--mat-dialog-transition-duration";function Yt(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Ke$2(i.substring(0,i.length-2)):i.endsWith("s")?Ke$2(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var it$1=(function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i})(it$1||{}),pt$2=class pt{_ref;_config;_containerInstance;componentInstance;componentRef=null;disableClose;id;_afterOpened=new Nr$1(1);_beforeClosed=new Nr$1(1);_result;_closeFallbackTimeout;_state=it$1.OPEN;_closeInteractionType;constructor(o,t,e){this._ref=o,this._config=t,this._containerInstance=e,this.disableClose=t.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),e._animationStateChanged.pipe(Ot$1(n=>n.state==="opened"),cn$2(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete();}),e._animationStateChanged.pipe(Ot$1(n=>n.state==="closed"),cn$2(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose();}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose();}),My(this.backdropClick(),this.keydownEvents().pipe(Ot$1(n=>n.keyCode===27&&!this.disableClose&&!en$1(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),le$2(this,n.type==="keydown"?"keyboard":"mouse"));});}close(o){let t=this._config.closePredicate;t&&!t(o,this._config,this.componentInstance)||(this._result=o,this._containerInstance._animationStateChanged.pipe(Ot$1(e=>e.state==="closing"),cn$2(1)).subscribe(e=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100);}),this._state=it$1.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(o){let t=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?t.left(o.left):t.right(o.right):t.centerHorizontally(),o&&(o.top||o.bottom)?o.top?t.top(o.top):t.bottom(o.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",t=""){return this._ref.updateSize(o,t),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=it$1.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null;}};function le$2(i,o,t){return i._closeInteractionType=o,i.close(t)}var ce=new T$4("MatMdcDialogData"),de$2=new T$4("mat-mdc-dialog-default-options"),me$1=new T$4("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=g(he$4);return ()=>un$1(i)}}),dn$1=(()=>{class i{_defaultOptions=g(de$2,{optional:true});_scrollStrategy=g(me$1);_parentDialog=g(i,{optional:true,skipSelf:true});_idGenerator=g(pt$3);_injector=g(he$4);_dialog=g(Qt);_animationsDisabled=at$2();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new le$4;_afterOpenedAtThisLevel=new le$4;dialogConfigClass=at$1;_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 t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Oy(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(vd(void 0)));constructor(){this._dialogRefConstructor=pt$2,this._dialogContainerType=re$2,this._dialogDataToken=ce;}open(t,e){let n;e=w$1(w$1({},this._defaultOptions||new at$1),e),e.id=e.id||this._idGenerator.getId("mat-mdc-dialog-"),e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,x$1(w$1({},e),{positionStrategy:wn$2(this._injector).centerHorizontally().centerVertically(),disableClose:true,closePredicate:void 0,closeOnDestroy:false,closeOnOverlayDetachments:false,disableAnimations:this._animationsDisabled||e.enterAnimationDuration?.toLocaleString()==="0"||e.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:f,useValue:e}]},templateContext:()=>({dialogRef:n}),providers:(s,l,c)=>(n=new this._dialogRefConstructor(s,e,c),n.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=a.componentRef,n.componentInstance=a.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(n);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next());}),n}closeAll(){this._closeDialogs(this.openDialogs);}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete();}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function he$2(i,o){if(i&1){let t=Xw();Is$1(0,"div",1)(1,"button",2),vg("click",function(){hf(t);let n=rC();return gf(n.action())}),OC(2),gl()();}if(i&2){let t=rC();UE(2),El(" ",t.data.action," ");}}var ue$1=["label"];function pe$2(i,o){}var fe$2=Math.pow(2,31)-1,j$1=class j{_overlayRef;instance;containerInstance;_afterDismissed=new le$4;_afterOpened=new le$4;_onAction=new le$4;_durationTimeoutId;_dismissedByAction=false;constructor(o,t){this._overlayRef=t,this.containerInstance=o,o._onExit.subscribe(()=>this._finishDismiss());}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId);}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=true,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId);}closeWithAction(){this.dismissWithAction();}_dismissAfter(o){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(o,fe$2));}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete());}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=false;}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Kt=new T$4("MatSnackBarData"),S$1=class S{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},_e$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=ul({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),ge$2=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=ul({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),be$1=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275dir=ul({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),ve=(()=>{class i{snackBarRef=g(j$1);data=g(Kt);action(){this.snackBarRef.dismissWithAction();}get hasAction(){return !!this.data.action}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Iw({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(e,n){e&1&&(Is$1(0,"div",0),OC(1),gl(),Hw(2,he$2,3,1,"div",1)),e&2&&(UE(),El(" ",n.data.message,`
1129
- `),UE(),Uw(n.hasAction?2:-1));},dependencies:[tl,_e$1,ge$2,be$1],styles:[`.mat-mdc-simple-snack-bar {
1130
- display: flex;
1131
- }
1132
- .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label {
1133
- max-height: 50vh;
1134
- overflow: auto;
1135
- }
1136
- `],encapsulation:2})}return i})(),ft$2="_mat-snack-bar-enter",_t$2="_mat-snack-bar-exit",ye$2=(()=>{class i extends Nt$2{_ngZone=g(G$2);_elementRef=g(On$3);_changeDetectorRef=g(um);_platform=g(v);_animationsDisabled=at$2();snackBarConfig=g(S$1);_document=g(U$5);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=g(he$4);_announceDelay=150;_announceTimeoutId;_destroyed=false;_portalOutlet;_onAnnounce=new le$4;_onExit=new le$4;_onEnter=new le$4;_animationState="void";_live;_label;_role;_liveElementId=g(pt$3).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"));}attachComponentPortal(t){this._assertNotAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),e}attachTemplatePortal(t){this._assertNotAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),e}attachDomPortal=t=>{this._assertNotAttached();let e=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),e};onAnimationEnd(t){t===_t$2?this._completeExit():t===ft$2&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete();}));}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?vE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ft$2)));},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ft$2);},200)));}exit(){return this._destroyed?br$1(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?vE(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(_t$2)));},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(_t$2),200));}),this._onExit)}ngOnDestroy(){this._destroyed=true,this._clearFromModals(),this._completeExit();}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete();});}_afterPortalAttached(){let t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(s=>t.classList.add(s)):t.classList.add(e)),this._exposeToModals();let n=this._label.nativeElement,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`));}_exposeToModals(){let t=this._liveElementId,e=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n<e.length;n++){let a=e[n],s=a.getAttribute("aria-owns");this._trackedModals.add(a),s?s.indexOf(t)===-1&&a.setAttribute("aria-owns",s+" "+t):a.setAttribute("aria-owns",t);}}_clearFromModals(){this._trackedModals.forEach(t=>{let e=t.getAttribute("aria-owns");if(e){let n=e.replace(this._liveElementId,"").trim();n.length>0?t.setAttribute("aria-owns",n):t.removeAttribute("aria-owns");}}),this._trackedModals.clear();}_assertNotAttached(){this._portalOutlet.hasAttached();}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,e=t.querySelector("[aria-hidden]"),n=t.querySelector("[aria-live]");if(e&&n){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(a=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete();}},this._announceDelay);});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Iw({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(e,n){if(e&1&&wg(jo$1,7)(ue$1,7),e&2){let a;cC(a=uC())&&(n._portalOutlet=a.first),cC(a=uC())&&(n._label=a.first);}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(e,n){e&1&&vg("animationend",function(s){return n.onAnimationEnd(s.animationName)})("animationcancel",function(s){return n.onAnimationEnd(s.animationName)}),e&2&&Mg("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled);},features:[og],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){e&1&&(Is$1(0,"div",1)(1,"div",2,0)(3,"div",3),sg(4,pe$2,0,0,"ng-template",4),gl(),fg(5,"div"),gl()()),e&2&&(UE(5),lg("aria-live",n._live)("role",n._role)("id",n._liveElementId));},dependencies:[jo$1],styles:[`@keyframes _mat-snack-bar-enter {
1137
- from {
1138
- transform: scale(0.8);
1139
- opacity: 0;
1140
- }
1141
- to {
1142
- transform: scale(1);
1143
- opacity: 1;
1144
- }
1145
- }
1146
- @keyframes _mat-snack-bar-exit {
1147
- from {
1148
- opacity: 1;
1149
- }
1150
- to {
1151
- opacity: 0;
1152
- }
1153
- }
1154
- .mat-mdc-snack-bar-container {
1155
- display: flex;
1156
- align-items: center;
1157
- justify-content: center;
1158
- box-sizing: border-box;
1159
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
1160
- margin: 8px;
1161
- }
1162
- .mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container {
1163
- width: 100vw;
1164
- }
1165
-
1166
- .mat-snack-bar-container-animations-enabled {
1167
- opacity: 0;
1168
- }
1169
- .mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible {
1170
- opacity: 1;
1171
- }
1172
- .mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter {
1173
- animation: _mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
1174
- }
1175
- .mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit {
1176
- animation: _mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
1177
- }
1178
-
1179
- .mat-mdc-snackbar-surface {
1180
- box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
1181
- display: flex;
1182
- align-items: center;
1183
- justify-content: flex-start;
1184
- box-sizing: border-box;
1185
- padding-left: 0;
1186
- padding-right: 8px;
1187
- }
1188
- [dir=rtl] .mat-mdc-snackbar-surface {
1189
- padding-right: 0;
1190
- padding-left: 8px;
1191
- }
1192
- .mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
1193
- min-width: 344px;
1194
- max-width: 672px;
1195
- }
1196
- .mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface {
1197
- width: 100%;
1198
- min-width: 0;
1199
- }
1200
- @media (forced-colors: active) {
1201
- .mat-mdc-snackbar-surface {
1202
- outline: solid 1px;
1203
- }
1204
- }
1205
- .mat-mdc-snack-bar-container .mat-mdc-snackbar-surface {
1206
- color: var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));
1207
- border-radius: var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));
1208
- background-color: var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface));
1209
- }
1210
-
1211
- .mdc-snackbar__label {
1212
- width: 100%;
1213
- flex-grow: 1;
1214
- box-sizing: border-box;
1215
- margin: 0;
1216
- padding: 14px 8px 14px 16px;
1217
- }
1218
- [dir=rtl] .mdc-snackbar__label {
1219
- padding-left: 8px;
1220
- padding-right: 16px;
1221
- }
1222
- .mat-mdc-snack-bar-container .mdc-snackbar__label {
1223
- font-family: var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));
1224
- font-size: var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));
1225
- font-weight: var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));
1226
- line-height: var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height));
1227
- }
1228
-
1229
- .mat-mdc-snack-bar-actions {
1230
- display: flex;
1231
- flex-shrink: 0;
1232
- align-items: center;
1233
- box-sizing: border-box;
1234
- }
1235
-
1236
- .mat-mdc-snack-bar-handset,
1237
- .mat-mdc-snack-bar-container,
1238
- .mat-mdc-snack-bar-label {
1239
- flex: 1 1 auto;
1240
- }
1241
-
1242
- .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed {
1243
- color: var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary));
1244
- }
1245
- .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) {
1246
- --mat-button-text-state-layer-color: currentColor;
1247
- --mat-button-text-ripple-color: currentColor;
1248
- }
1249
- .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element {
1250
- opacity: 0.1;
1251
- }
1252
- `],encapsulation:2,changeDetection:1})}return i})(),Ce$2=new T$4("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new S$1}),Mn$2=(()=>{class i{_live=g(Ei$1);_injector=g(he$4);_breakpointObserver=g(di$2);_parentSnackBar=g(i,{optional:true,skipSelf:true});_defaultConfig=g(Ce$2);_animationsDisabled=at$2();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ve;snackBarContainerComponent=ye$2;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t;}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){let a=w$1(w$1({},this._defaultConfig),n);return a.data={message:t,action:e},a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss();}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss();}_attachSnackBarContainer(t,e){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector,a=he$4.create({parent:n||this._injector,providers:[{provide:S$1,useValue:e}]}),s=new me$2(this.snackBarContainerComponent,e.viewContainerRef,a),l=t.attach(s);return l.instance.snackBarConfig=e,l.instance}_attach(t,e){let n=w$1(w$1(w$1({},new S$1),this._defaultConfig),e),a=this._createOverlay(n),s=this._attachSnackBarContainer(a,n),l=new j$1(s,a);if(t instanceof lr$1){let c=new Ft$1(t,null,{$implicit:n.data,snackBarRef:l});l.instance=s.attachTemplatePortal(c);}else {let c=this._createInjector(n,l),O=new me$2(t,void 0,c),Xt=s.attachComponentPortal(O);l.instance=Xt.instance;}return this._breakpointObserver.observe(ka.HandsetPortrait).pipe(Sd(a.detachments())).subscribe(c=>{a.overlayElement.classList.toggle(this.handsetCssClass,c.matches);}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness);}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear();}),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter();}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter();}_createOverlay(t){let e=new Ht;e.direction=t.direction;let n=wn$2(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,l=!s&&t.horizontalPosition!=="center";return s?n.left("0"):l?n.right("0"):n.centerHorizontally(),t.verticalPosition==="top"?n.top("0"):n.bottom("0"),e.positionStrategy=n,e.disableAnimations=this._animationsDisabled,Cn$2(this._injector,e)}_createInjector(t,e){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector;return he$4.create({parent:n||this._injector,providers:[{provide:j$1,useValue:e},{provide:Kt,useValue:t.data}]})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ce$5({token:i,factory:i.\u0275fac})}return i})();function U$2(n){n||(n=g(we$3));let e=new R$2(t=>{if(n.destroyed){t.next();return}return n.onDestroy(t.next.bind(t))});return t=>t.pipe(Sd(e))}function T$1(n,e){let t=g(he$4),o=new Nr$1(1),c=Of(()=>{let r;try{r=n();}catch(i){bo$1(()=>o.error(i));return}bo$1(()=>o.next(r));},{injector:t,manualCleanup:true});return t.get(we$3).onDestroy(()=>{c.destroy(),o.complete();}),o.asObservable()}function F$1(n,e){let o=!e?.manualCleanup?e?.injector?.get(we$3)??g(we$3):null,c=h(e?.equal),r;e?.requireSync?r=zi$2({kind:0},{equal:c}):r=zi$2({kind:1,value:e?.initialValue},{equal:c});let i,v=n.subscribe({next:s=>r.set({kind:1,value:s}),error:s=>{r.set({kind:2,error:s}),i?.();},complete:()=>{i?.();}});if(e?.requireSync&&r().kind===0)throw new m$2(601,false);return i=o?.onDestroy(v.unsubscribe.bind(v)),cT(()=>{let s=r();switch(s.kind){case 1:return s.value;case 2:throw s.error;case 0:throw new m$2(601,false)}},{equal:e?.equal})}function h(n=Object.is){return (e,t)=>e.kind===1&&t.kind===1&&n(e.value,t.value)}var p="primary",Qe$1=Symbol("RouteTitle"),ir=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function he$1(t){return new ir(t)}function er(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function En$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let s={},u=t.slice(0,r.length);return er(r,u,s)?{consumed:u,posParams:s}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),a=r.slice(i+1);if(o.length+a.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let c={};return !er(o,t.slice(0,o.length),c)||!er(a,t.slice(t.length-a.length),c)?null:{consumed:t,posParams:c}}function gt$1(t){return new Promise((n,e)=>{t.pipe(Hy()).subscribe({next:r=>n(r),error:r=>e(r)});})}function Ai$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!V(t[e],n[e]))return false;return true}function V(t,n){let e=t?or(t):void 0,r=n?or(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!Tn$1(t[i],n[i]))return false;return true}function or(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Tn$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Ei(t){return t.length>0?t[t.length-1]:null}function fe$1(t){return xy(t)?t:Fs$1(t)?Qe$3(Promise.resolve(t)):br$1(t)}function Nn$1(t){return xy(t)?gt$1(t):Promise.resolve(t)}var Ti$1={exact:Dn$1,subset:_n$1},Mn$1={exact:Ni$1,subset:Mi$1,ignored:()=>true},Rr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ze$1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Sr(t,n,e){let r=t instanceof T?t:n.parseUrl(t);return cT(()=>ar(n.lastSuccessfulNavigation()?.finalUrl??new T,r,w$1(w$1({},ze$1),e)))}function ar(t,n,e){return Ti$1[e.paths](t.root,n.root,e.matrixParams)&&Mn$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ni$1(t,n){return V(t,n)}function Dn$1(t,n,e){if(!le$1(t.segments,n.segments)||!dt$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!Dn$1(t.children[r],n.children[r],e))return false;return true}function Mi$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Tn$1(t[e],n[e]))}function _n$1(t,n,e){return Un$1(t,n,n.segments,e)}function Un$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!le$1(i,e)||n.hasChildren()||!dt$1(i,e,r))}else if(t.segments.length===e.length){if(!le$1(t.segments,e)||!dt$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!_n$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !le$1(t.segments,i)||!dt$1(t.segments,i,r)||!t.children[p]?false:Un$1(t.children[p],n,o,r)}}function dt$1(t,n,e){return n.every((r,i)=>Mn$1[e](t[i].parameters,r.parameters))}var T=class{root;queryParams;fragment;_queryParamMap;constructor(n=new m([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){return Ui.serialize(this)}},m=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft$1(this)}},ee$1=class ee{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=he$1(this.parameters),this._parameterMap}toString(){return Pn$1(this)}};function Di$1(t,n){return le$1(t,n)&&t.every((e,r)=>V(e.parameters,n[r].parameters))}function le$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function _i$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)));}),e}var ne=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>new Y})}return t})(),Y=class{parse(n){let e=new cr(n);return new T(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${je$1(n.root,true)}`,r=Li(n.queryParams),i=typeof n.fragment=="string"?`#${Oi(n.fragment)}`:"";return `${e}${r}${i}`}},Ui=new Y;function ft$1(t){return t.segments.map(n=>Pn$1(n)).join("/")}function je$1(t,n){if(!t.hasChildren())return ft$1(t);if(n){let e=t.children[p]?je$1(t.children[p],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${je$1(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=_i$1(t,(r,i)=>i===p?[je$1(t.children[p],false)]:[`${i}:${je$1(r,false)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${ft$1(t)}/${e[0]}`:`${ft$1(t)}/(${e.join("//")})`}}function On$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lt$1(t){return On$1(t).replace(/%3B/gi,";")}function Oi(t){return encodeURI(t)}function sr(t){return On$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pt$1(t){return decodeURIComponent(t)}function Rn$1(t){return pt$1(t.replace(/\+/g,"%20"))}function Pn$1(t){return `${sr(t.path)}${Pi$1(t.parameters)}`}function Pi$1(t){return Object.entries(t).map(([n,e])=>`;${sr(n)}=${sr(e)}`).join("")}function Li(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lt$1(e)}=${lt$1(i)}`).join("&"):`${lt$1(e)}=${lt$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var ji=/^[^\/()?;#]+/;function tr(t){let n=t.match(ji);return n?n[0]:""}var xi=/^[^\/()?;=#]+/;function ki$1(t){let n=t.match(xi);return n?n[0]:""}var $i=/^[^=?&#]+/;function zi(t){let n=t.match($i);return n?n[0]:""}var Hi=/^[^&#]+/;function Fi$1(t){let n=t.match(Hi);return n?n[0]:""}var cr=class{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new m([],{}):new m([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new m$2(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[p]=new m(e,r)),i}parseSegment(){let n=tr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new m$2(4009,false);return this.capture(n),new ee$1(pt$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ki$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=tr(this.remaining);i&&(r=i,this.capture(r));}n[pt$1(e)]=pt$1(r);}parseQueryParam(n){let e=zi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let a=Fi$1(this.remaining);a&&(r=a,this.capture(r));}let i=Rn$1(e),o=Rn$1(r);if(Object.hasOwn(n,i)){let a=n[i];Array.isArray(a)||(a=[a],n[i]=a),a.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=tr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new m$2(4010,false);let a;i.indexOf(":")>-1?(a=i.slice(0,i.indexOf(":")),this.capture(a),this.capture(":")):n&&(a=p);let c=this.parseChildren(e+1);r[a??p]=Object.keys(c).length===1&&c[p]?c[p]:new m([],c),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new m$2(4011,false)}};function Ln$1(t){return t.segments.length>0?new m([],{[p]:t}):t}function jn$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=jn$1(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[a,c]of Object.entries(o.children))n[a]=c;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new m(t.segments,n);return qi(e)}function qi(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new m(t.segments.concat(n.segments),n.children)}return t}function te$1(t){return t instanceof T}function xn$1(t,n,e=null,r=null,i=new Y){let o=kn$1(t);return $n$1(o,n,e,r,i)}function kn$1(t){let n;function e(o){let a={};for(let s of o.children){let u=e(s);a[s.outlet]=u;}let c=new m(o.url,a);return o===t&&(n=c),c}let r=e(t.root),i=Ln$1(r);return n??i}function $n$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return rr(o,o,o,e,r,i);let a=Bi(n);if(a.toRoot())return rr(o,o,new m([],{}),e,r,i);let c=Vi(a,o,t),s=c.processChildren?ke$1(c.segmentGroup,c.index,a.commands):Hn$1(c.segmentGroup,c.index,a.commands);return rr(o,c.segmentGroup,s,e,r,i)}function vt$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function He(t){return typeof t=="object"&&t!=null&&t.outlets}function Sn$1(t,n,e){t||="\u0275";let r=new T;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function rr(t,n,e,r,i,o){let a={};for(let[u,d]of Object.entries(r??{}))a[u]=Array.isArray(d)?d.map(v=>Sn$1(u,v,o)):Sn$1(u,d,o);let c;t===n?c=e:c=zn$1(t,n,e);let s=Ln$1(jn$1(c));return new T(s,a,i)}function zn$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=zn$1(o,n,e);}),new m(t.segments,r)}var mt$1=class mt{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&vt$1(r[0]))throw new m$2(4003,false);let i=r.find(He);if(i&&i!==Ei(r))throw new m$2(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Bi(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new mt$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,a)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let c={};return Object.entries(o.outlets).forEach(([s,u])=>{c[s]=typeof u=="string"?u.split("/"):u;}),[...i,{outlets:c}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:a===0?(o.split("/").forEach((c,s)=>{s==0&&c==="."||(s==0&&c===""?e=true:c===".."?n++:c!=""&&i.push(c));}),i):[...i,o]},[]);return new mt$1(e,n,r)}var Re$1=class Re{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Vi(t,n,e){if(t.isAbsolute)return new Re$1(n,true,0);if(!e)return new Re$1(n,false,NaN);if(e.parent===null)return new Re$1(e,true,0);let r=vt$1(t.commands[0])?0:1,i=e.segments.length-1+r;return Gi(e,i,t.numberOfDoubleDots)}function Gi(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new m$2(4005,false);i=r.segments.length;}return new Re$1(r,false,i-o)}function Wi(t){return He(t[0])?t[0].outlets:{[p]:t}}function Hn$1(t,n,e){if(t??=new m([],{}),t.segments.length===0&&t.hasChildren())return ke$1(t,n,e);let r=Qi(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new m(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new m(t.segments.slice(r.pathIndex),t.children),ke$1(o,0,i)}else return r.match&&i.length===0?new m(t.segments,{}):r.match&&!t.hasChildren()?ur(t,n,e):r.match?ke$1(t,0,i):ur(t,n,e)}function ke$1(t,n,e){if(e.length===0)return new m(t.segments,{});{let r=Wi(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=ke$1(t.children[p],n,e);return new m(t.segments,o.children)}return Object.entries(r).forEach(([o,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(i[o]=Hn$1(t.children[o],n,a));}),Object.entries(t.children).forEach(([o,a])=>{r[o]===void 0&&(i[o]=a);}),new m(t.segments,i)}}function Qi(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let a=t.segments[i],c=e[r];if(He(c))break;let s=`${c}`,u=r<e.length-1?e[r+1]:null;if(i>0&&s===void 0)break;if(s&&u&&typeof u=="object"&&u.outlets===void 0){if(!wn$1(s,u,a))return o;r+=2;}else {if(!wn$1(s,{},a))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ur(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(He(o)){let s=Ki(o.outlets);return new m(r,s)}if(i===0&&vt$1(e[0])){let s=t.segments[n];r.push(new ee$1(s.path,Cn$1(e[0]))),i++;continue}let a=He(o)?o.outlets[p]:`${o}`,c=i<e.length-1?e[i+1]:null;a&&c&&vt$1(c)?(r.push(new ee$1(a,Cn$1(c))),i+=2):(r.push(new ee$1(a,{})),i++);}return new m(r,{})}function Ki(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ur(new m([],{}),0,r));}),n}function Cn$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function wn$1(t,n,e){return t==e.path&&V(n,e.parameters)}var Se="imperative",S=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(S||{}),O=class{id;url;constructor(n,e){this.id=n,this.url=e;}},re$1=class re extends O{type=S.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},P=class extends O{urlAfterRedirects;type=S.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},A=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(A||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),$$1=class $ extends O{reason;code;type=S.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Fn$1(t){return t instanceof $$1&&(t.code===A.Redirect||t.code===A.SupersededByNewNavigation)}var G=class extends O{reason;code;type=S.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},de$1=class de extends O{error;target;type=S.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fe$1=class Fe extends O{urlAfterRedirects;state;type=S.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yt$1=class yt extends O{urlAfterRedirects;state;type=S.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rt=class extends O{urlAfterRedirects;state;shouldActivate;type=S.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},St$1=class St extends O{urlAfterRedirects;state;type=S.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ct$1=class Ct extends O{urlAfterRedirects;state;type=S.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wt$1=class wt{route;type=S.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},bt$1=class bt{route;type=S.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},It=class{snapshot;type=S.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},At$1=class At{snapshot;type=S.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Et$1=class Et{snapshot;type=S.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Tt$1=class Tt{snapshot;type=S.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},be=class{routerEvent;position;anchor;scrollBehavior;type=S.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ie$1=class Ie{},qe$1=class qe{},Ae$1=class Ae{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Yi(t){return !(t instanceof Ie$1)&&!(t instanceof Ae$1)&&!(t instanceof qe$1)}var Nt$1=class Nt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new pe$1(this.rootInjector);}},pe$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Nt$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(b$2(pe$4))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mt$1=class Mt{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=hr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return hr(n,this._root).map(e=>e.value)}};function lr(t,n){if(t===n.value)return n;for(let e of n.children){let r=lr(t,e);if(r)return r}return null}function hr(t,n){if(t===n.value)return [n];for(let e of n.children){let r=hr(t,e);if(r.length)return r.unshift(n),r}return []}var U$1=class U{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function ye$1(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Be$1=class Be extends Mt$1{snapshot;constructor(n,e){super(n),this.snapshot=e,wr(this,n);}toString(){return this.snapshot.toString()}};function qn$1(t,n){let e=Zi(t,n),r=new Tr$1([new ee$1("",{})]),i=new Tr$1({}),o=new Tr$1({}),a=new Tr$1({}),c=new Tr$1(""),s=new W$1(r,i,a,c,o,p,t,e.root);return s.snapshot=e.root,new Be$1(new U$1(s,[]),e)}function Zi(t,n){let e={},r={},i={},a=new Ee([],e,i,"",r,p,t,null,{},n);return new Ve$1("",new U$1(a,[]))}var W$1=class W{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,a,c,s){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=a,this.component=c,this._futureSnapshot=s,this.title=this.dataSubject?.pipe(ne$3(u=>u[Qe$1]))??br$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}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(ne$3(n=>he$1(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ne$3(n=>he$1(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ji="always";function Cr(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:w$1(w$1({},n.params),t.params),data:w$1(w$1({},n.data),t.data),resolve:w$1(w$1(w$1(w$1({},t.data),n.data),i?.data),t._resolvedData)}:r={params:w$1({},t.params),data:w$1({},t.data),resolve:w$1(w$1({},t.data),t._resolvedData??{})},i&&Vn$1(i)&&(r.resolve[Qe$1]=i.title),r}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Qe$1]}constructor(n,e,r,i,o,a,c,s,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=c,this.routeConfig=s,this._resolve=u,this._environmentInjector=d;}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??=he$1(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=he$1(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Ve$1=class Ve extends Mt$1{url;constructor(n,e){super(e),this.url=n,wr(this,e);}toString(){return Bn$1(this._root)}};function wr(t,n){n.value._routerState=t,n.children.forEach(e=>wr(t,e));}function Bn$1(t){let n=t.children.length>0?` { ${t.children.map(Bn$1).join(", ")} } `:"";return `${t.value}${n}`}function nr(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,V(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),V(n.params,e.params)||t.paramsSubject.next(e.params),Ai$1(n.url,e.url)||t.urlSubject.next(e.url),V(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function dr(t,n){let e=V(t.params,n.params)&&Di$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dr(t.parent,n.parent))}function Vn$1(t){return typeof t.title=="string"||t.title===null}var Gn$1=new T$4(""),br=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new yt$3;deactivateEvents=new yt$3;attachEvents=new yt$3;detachEvents=new yt$3;routerOutletData=RB();parentContexts=g(pe$1);location=g(gr$1);changeDetector=g(um);inputBinder=g(Ke$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new m$2(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new m$2(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new m$2(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new m$2(4013,false);this._activatedRoute=e;let i=this.location,a=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,s=new fr(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(a,{index:i.length,injector:s,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=ul({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Cu]})}return t})(),fr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===W$1?this.route:n===pe$1?this.childContexts:n===Gn$1?this.outletData:this.parent.get(n,e)}},Ke$1=new T$4(""),Wn$1=(()=>{class t{options;outletDataSubscriptions=new Map;outletSeenKeys=new Map;constructor(e){this.options=e,this.options.queryParams??=true;}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e);}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e),this.outletSeenKeys.delete(e);}subscribeToRouteData(e){let{activatedRoute:r}=e,i=by([this.options.queryParams?r.queryParams:br$1({}),r.params,r.data]).pipe(ma(([o,a,c],s)=>(c=w$1(w$1(w$1({},o),a),c),s===0?br$1(c):Promise.resolve(c)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let a=HB(r.component);if(!a){this.unsubscribeFromRouteData(e);return}let c=this.outletSeenKeys.get(e);c||(c=new Set,this.outletSeenKeys.set(e,c));for(let u of Object.keys(o))c.add(u);let s=this.options.unmatchedInputBehavior??"alwaysUndefined";for(let{templateName:u}of a.inputs){let d=o[u];(d!==void 0||s==="alwaysUndefined"||c.has(u))&&e.activatedComponentRef.setInput(u,d);}});this.outletDataSubscriptions.set(e,i);}static \u0275fac=function(r){BI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ir=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Iw({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&fg(0,"router-outlet");},dependencies:[br],encapsulation:2,changeDetection:1})}return t})();function Ar(t){let n=t.children&&t.children.map(Ar),e=n?x$1(w$1({},t),{children:n}):w$1({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=Ir),e}function Xi(t,n,e){let r=new Set,i=Ge(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Be$1(i,n)}}function Ge(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=eo(t,n,e,r);return new U$1(i,o)}else {if(t.shouldAttach(n.value)){let a=t.retrieve(n.value);if(a!==null){let c=a.route;return c.value._futureSnapshot=n.value,c.children=n.children.map(s=>Ge(t,s,void 0,r)),c}}let i=to(n.value);r.add(i);let o=n.children.map(a=>Ge(t,a,void 0,r));return new U$1(i,o)}}function eo(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Ge(t,i,o,r);return Ge(t,i,void 0,r)})}function to(t){return new W$1(new Tr$1(t.url),new Tr$1(t.params),new Tr$1(t.queryParams),new Tr$1(t.fragment),new Tr$1(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Qn$1="ngNavigationCancelingError";function Dt$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=te$1(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Kn$1(false,A.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Kn$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Qn$1]=true,e.cancellationCode=n,e}function ro(t){return Yn$1(t)&&te$1(t.url)}function Yn$1(t){return !!t&&t[Qn$1]}var pr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nr(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{let a=o.value.outlet;this.deactivateRoutes(o,i[a],r),delete i[a];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let a=r.getContext(i.outlet);a&&this.deactivateChildRoutes(n,e,a.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);if(r&&r.outlet){let a=r.outlet.detach(),c=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:c});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye$1(n);for(let a of Object.values(o))this.deactivateRouteAndItsChildren(a,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=ye$1(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Tt$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new At$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(nr(i),i===o)if(i.component){let a=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,a.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let a=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),a.children.onOutletReAttached(c.contexts),a.attachRef=c.componentRef,a.route=c.route.value,a.outlet&&a.outlet.attach(c.componentRef,c.route.value),nr(c.route.value),this.activateChildRoutes(n,null,a.children);}else a.attachRef=null,a.route=i,a.outlet&&a.outlet.activateWith(i,a.injector),this.activateChildRoutes(n,null,a.children);}else this.activateChildRoutes(n,null,r);}},_t$1=class _t{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},Ce$1=class Ce{component;route;constructor(n,e){this.component=n,this.route=e;}};function no(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function io(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function Me$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!nv(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye$1(n);return t.children.forEach(a=>{oo(a,o[a.value.outlet],e,r.concat([a.value]),i),delete o[a.value.outlet];}),Object.entries(o).forEach(([a,c])=>$e$1(c,e.getContext(a),i)),i}function oo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,a=n?n.value:null,c=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){let s=ao(a,o,o.routeConfig.runGuardsAndResolvers);s?i.canActivateChecks.push(new _t$1(r)):(o.data=a.data,o._resolvedData=a._resolvedData),o.component?xe(t,n,c?c.children:null,r,i):xe(t,n,e,r,i),s&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce$1(c.outlet.component,a));}else a&&$e$1(n,c,i),i.canActivateChecks.push(new _t$1(r)),o.component?xe(t,null,c?c.children:null,r,i):xe(t,null,e,r,i);return i}function ao(t,n,e){if(typeof e=="function")return Kn$3(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !le$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !le$1(t.url,n.url)||!V(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !dr(t,n)||!V(t.queryParams,n.queryParams);default:return !dr(t,n)}}function $e$1(t,n,e){let r=ye$1(t),i=t.value;Object.entries(r).forEach(([o,a])=>{i.component?n?$e$1(a,n.children.getContext(o),e):$e$1(a,null,e):$e$1(a,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ce$1(n.outlet.component,i)):e.canDeactivateChecks.push(new Ce$1(null,i)):e.canDeactivateChecks.push(new Ce$1(null,i));}function Ye(t){return typeof t=="function"}function so(t){return typeof t=="boolean"}function co(t){return t&&Ye(t.canLoad)}function uo(t){return t&&Ye(t.canActivate)}function lo(t){return t&&Ye(t.canActivateChild)}function ho(t){return t&&Ye(t.canDeactivate)}function fo(t){return t&&Ye(t.canMatch)}function Zn$1(t){return t instanceof sn$2||t?.name==="EmptyError"}var ht$1=Symbol("INITIAL_VALUE");function Ne$1(){return ma(t=>by(t.map(n=>n.pipe(cn$2(1),vd(ht$1)))).pipe(ne$3(n=>{for(let e of n)if(e!==true){if(e===ht$1)return ht$1;if(e===false||po(e))return e}return true}),Ot$1(n=>n!==ht$1),cn$2(1)))}function po(t){return te$1(t)||t instanceof Te}function Jn$1(t){return t.aborted?br$1(void 0).pipe(cn$2(1)):new R$2(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Xn$1(t){return Sd(Jn$1(t))}function go(t){return pt$4(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?br$1(x$1(w$1({},n),{guardsResult:true})):vo(o,e,r).pipe(pt$4(a=>a&&so(a)?mo(e,i,t):br$1(a)),ne$3(a=>x$1(w$1({},n),{guardsResult:a})))})}function vo(t,n,e){return Qe$3(t).pipe(pt$4(r=>wo(r.component,r.route,e,n)),Hy(r=>r!==true,true))}function mo(t,n,e){return Qe$3(n).pipe(pi$3(r=>kt$1(Ro(r.route.parent,e),yo(r.route,e),Co(t,r.path),So(t,r.route))),Hy(r=>r!==true,true))}function yo(t,n){return t!==null&&n&&n(new Et$1(t)),br$1(true)}function Ro(t,n){return t!==null&&n&&n(new It(t)),br$1(true)}function So(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return br$1(true);let r=e.map(i=>Oy(()=>{let o=n._environmentInjector,a=Me$1(i,o),c=uo(a)?a.canActivate(n,t):Kn$3(o,()=>a(n,t));return fe$1(c).pipe(Hy())}));return br$1(r).pipe(Ne$1())}function Co(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>io(o)).filter(o=>o!==null).map(o=>Oy(()=>{let a=o.guards.map(c=>{let s=o.node._environmentInjector,u=Me$1(c,s),d=lo(u)?u.canActivateChild(e,t):Kn$3(s,()=>u(e,t));return fe$1(d).pipe(Hy())});return br$1(a).pipe(Ne$1())}));return br$1(i).pipe(Ne$1())}function wo(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return br$1(true);let o=i.map(a=>{let c=n._environmentInjector,s=Me$1(a,c),u=ho(s)?s.canDeactivate(t,n,e,r):Kn$3(c,()=>s(t,n,e,r));return fe$1(u).pipe(Hy())});return br$1(o).pipe(Ne$1())}function bo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return br$1(true);let a=o.map(c=>{let s=Me$1(c,t),u=co(s)?s.canLoad(n,e):Kn$3(t,()=>s(n,e)),d=fe$1(u);return i?d.pipe(Xn$1(i)):d});return br$1(a).pipe(Ne$1(),ei$1(r))}function ei$1(t){return sy(Dd(n=>{if(typeof n!="boolean")throw Dt$1(t,n)}),ne$3(n=>n===true))}function Io(t,n,e,r,i,o){let a=n.canMatch;if(!a||a.length===0)return br$1(true);let c=a.map(s=>{let u=Me$1(s,t),d=fo(u)?u.canMatch(n,e,i):Kn$3(t,()=>u(n,e,i));return fe$1(d).pipe(Xn$1(o))});return br$1(c).pipe(Ne$1(),ei$1(r))}var K$1=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},We=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Ao(t){throw new m$2(4e3,false)}function Eo(t){throw Kn$1(false,A.GuardRejected)}var gr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}lineralizeSegments(n,e){return B$3(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw Ao(`${n.redirectTo}`);i=i.children[p];}})}applyRedirectCommands(n,e,r,i,o){return B$3(this,null,function*(){let a=yield To(e,i,o);if(a instanceof T)throw new We(a);let c=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),n,r);if(a[0]==="/")throw new We(c);return c})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new T(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let c=o.substring(1);r[i]=e[c];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),a=Object.create(null);return Object.entries(e.children).forEach(([c,s])=>{a[c]=this.createSegmentGroup(n,s,r,i);}),new m(o,a)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new m$2(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function To(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return gt$1(fe$1(Kn$3(e,()=>r(n))))}function No(t,n){return t.providers&&!t._injector&&(t._injector=tg(t.providers,n,`Route: ${t.path}`)),t._injector??n}function H(t){return t.outlet||p}function Mo(t,n){let e=t.filter(r=>H(r)===n);return e.push(...t.filter(r=>H(r)!==n)),e}var vr={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ti$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Do(t,n,e,r,i,o,a){let c=ri$1(t,n,e);if(!c.matched)return br$1(c);let s=ti$1(o(c));return r=No(n,r),Io(r,n,e,i,s,a).pipe(ne$3(u=>u===true?c:w$1({},vr)))}function ri$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?w$1({},vr):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||En$1)(e,t,n);if(!i)return w$1({},vr);let o={};Object.entries(i.posParams??{}).forEach(([c,s])=>{o[c]=s.path;});let a=i.consumed.length>0?w$1(w$1({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:a,positionalParamSegments:i.posParams??{}}}function bn(t,n,e,r,i){return e.length>0&&Oo(t,e,r,i)?{segmentGroup:new m(n,Uo(r,new m(e,t.children))),slicedSegments:[]}:e.length===0&&Po(t,e,r)?{segmentGroup:new m(t.segments,_o(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new m(t.segments,t.children),slicedSegments:e}}function _o(t,n,e,r){let i={};for(let o of e)if(Ot(t,n,o)&&!r[H(o)]){let a=new m([],{});i[H(o)]=a;}return w$1(w$1({},r),i)}function Uo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&H(r)!==p){let i=new m([],{});e[H(r)]=i;}return e}function Oo(t,n,e,r){return e.some(i=>!Ot(t,n,i)||!(H(i)!==p)?false:!(r!==void 0&&H(i)===r))}function Po(t,n,e){return e.some(r=>Ot(t,n,r))}function Ot(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Lo(t,n,e){return n.length===0&&!t.children[e]}var mr=class{};function jo(t,n,e,r,i,o,a,c){return B$3(this,null,function*(){return new yr(t,n,e,r,i,a,o,c).recognize()})}var xo=31,yr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,a,c,s){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=a,this.urlSerializer=c,this.abortSignal=s,this.applyRedirects=new gr(this.urlSerializer,this.urlTree);}noMatchError(n){return new m$2(4002,`'${n.segmentGroup}'`)}recognize(){return B$3(this,null,function*(){let n=bn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new U$1(r,e),o=new Ve$1("",i),a=xn$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(a),{state:o,tree:a}})}match(n){return B$3(this,null,function*(){let e=new Ee([],Object.freeze({}),Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return {children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof We)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof K$1?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return B$3(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let a=yield this.processSegment(n,e,r,r.segments,i,true,o);return a instanceof U$1?[a]:[]})}processChildren(n,e,r,i){return B$3(this,null,function*(){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);let a=[];for(let s of o){let u=r.children[s],d=Mo(e,s),v=yield this.processSegmentGroup(n,d,u,s,i);a.push(...v);}let c=ni$1(a);return ko(c),c})}processSegment(n,e,r,i,o,a,c){return B$3(this,null,function*(){for(let s of e)try{return yield this.processSegmentAgainstRoute(s._injector??n,e,s,r,i,o,a,c)}catch(u){if(u instanceof K$1||Zn$1(u))continue;throw u}if(Lo(r,i,o))return new mr;throw new K$1(r)})}processSegmentAgainstRoute(n,e,r,i,o,a,c,s){return B$3(this,null,function*(){if(H(r)!==a&&(a===p||!Ot(i,o,r)))throw new K$1(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,a,s);if(this.allowRedirects&&c)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,a,s);throw new K$1(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,a,c){return B$3(this,null,function*(){let{matched:s,parameters:u,consumedSegments:d,positionalParamSegments:v,remainingSegments:g}=ri$1(e,i,o);if(!s)throw new K$1(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xo&&(this.allowRedirects=false));let N=this.createSnapshot(n,i,o,u,c);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let z=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,v,ti$1(N),n),oe=yield this.applyRedirects.lineralizeSegments(i,z);return this.processSegment(n,r,e,oe.concat(g),a,false,c)})}createSnapshot(n,e,r,i,o){let a=new Ee(r,i,Object.freeze(w$1({},this.urlTree.queryParams)),this.urlTree.fragment,zo(e),H(e),e.component??e._loadedComponent??null,e,Ho(e),n),c=Cr(a,o,this.paramsInheritanceStrategy);return a.params=Object.freeze(c.params),a.data=Object.freeze(c.data),a}matchSegmentAgainstRoute(n,e,r,i,o,a){return B$3(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let c=ae=>this.createSnapshot(n,r,ae.consumedSegments,ae.parameters,a),s=yield gt$1(Do(e,r,i,n,this.urlSerializer,c,this.abortSignal));if(r.path==="**"&&(e.children={}),!s?.matched)throw new K$1(e);n=r._injector??n;let{routes:u}=yield this.getChildConfig(n,r,i),d=r._loadedInjector??n,{parameters:v,consumedSegments:g,remainingSegments:N}=s,z=this.createSnapshot(n,r,g,v,a),{segmentGroup:oe,slicedSegments:De}=bn(e,g,N,u,o);if(De.length===0&&oe.hasChildren()){let ae=yield this.processChildren(d,u,oe,z);return new U$1(z,ae)}if(u.length===0&&De.length===0)return new U$1(z,[]);let zt=H(r)===o,Xe=yield this.processSegment(d,u,oe,De,zt?p:o,true,z);return new U$1(z,Xe instanceof U$1?[Xe]:[])})}getChildConfig(n,e,r){return B$3(this,null,function*(){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield gt$1(bo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw Eo()}return {routes:[],injector:n}})}};function ko(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet));}function $o(t){let n=t.value.routeConfig;return n&&n.path===""}function ni$1(t){let n=[],e=new Set;for(let r of t){if(!$o(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=ni$1(r.children);n.push(new U$1(r.value,i));}return n.filter(r=>!e.has(r))}function zo(t){return t.data||{}}function Ho(t){return t.resolve||{}}function Fo(t,n,e,r,i,o,a){return pt$4(c=>B$3(null,null,function*(){let{state:s,tree:u}=yield jo(t,n,e,r,c.extractedUrl,i,o,a);return x$1(w$1({},c),{targetSnapshot:s,urlAfterRedirects:u})}))}function qo(t){return pt$4(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return br$1(n);let i=new Set(r.map(c=>c.route)),o=new Set;for(let c of i)if(!o.has(c))for(let s of ii$1(c))o.add(s);let a=0;return Qe$3(o).pipe(pi$3(c=>i.has(c)?Bo(c,e,t):(c.data=Cr(c,c.parent,t).resolve,br$1(void 0))),Dd(()=>a++),Uy(1),pt$4(c=>a===o.size?br$1(n):rn$2))})}function ii$1(t){let n=t.children.map(e=>ii$1(e)).flat();return [t,...n]}function Bo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Vn$1(r)&&(i[Qe$1]=r.title),Oy(()=>(t.data=Cr(t,t.parent,e).resolve,Vo(i,t,n).pipe(ne$3(o=>(t._resolvedData=o,t.data=w$1(w$1({},t.data),o),null)))))}function Vo(t,n,e){let r=or(t);if(r.length===0)return br$1({});let i={};return Qe$3(r).pipe(pt$4(o=>Go(t[o],n,e).pipe(Hy(),Dd(a=>{if(a instanceof Te)throw Dt$1(new Y,a);i[o]=a;}))),Uy(1),ne$3(()=>i),ga(o=>Zn$1(o)?rn$2:Ny(o)))}function Go(t,n,e){let r=n._environmentInjector,i=Me$1(t,r),o=i.resolve?i.resolve(n,e):Kn$3(r,()=>i(n,e));return fe$1(o)}function In$1(t){return ma(n=>{let e=t(n);return e?Qe$3(e).pipe(ne$3(()=>n)):br$1(n)})}var Er=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Qe$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(oi$1)})}return t})(),oi$1=(()=>{class t extends Er{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(b$2(BH))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ie=new T$4("",{factory:()=>({})}),ge$1=new T$4(""),Pt$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(iT);loadComponent(e,r){return B$3(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 i=B$3(this,null,function*(){try{let o=yield Nn$1(Kn$3(e,()=>r.loadComponent())),a=yield si$1(xB(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=a,a}finally{this.componentLoaders.delete(r);}});return this.componentLoaders.set(r,i),i})}loadChildren(e,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 i=B$3(this,null,function*(){try{let o=yield ai$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function ai$1(t,n,e,r){return B$3(this,null,function*(){let i=yield Nn$1(Kn$3(e,()=>t.loadChildren())),o=yield si$1(xB(i)),a;o instanceof eg||Array.isArray(o)?a=o:a=yield n.compileModuleAsync(o),r&&r(t);let c,s,d;return Array.isArray(a)?(s=a,true):(c=a.create(e).injector,d=a,s=c.get(ge$1,[],{optional:true,self:true}).flat()),{routes:s.map(Ar),injector:c,factory:d}})}function si$1(t){return B$3(this,null,function*(){return t})}var Lt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Wo)})}return t})(),Wo=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),Tr=new T$4(""),Nr=new T$4("");function ci$1(t,n,e){let r=t.get(Nr),i=t.get(U$5);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=false,new Promise(u=>setTimeout(u));let o,a=new Promise(u=>{o=u;}),c=i.startViewTransition(()=>(o(),Qo(t)));c.updateCallbackDone.catch(u=>{}),c.ready.catch(u=>{}),c.finished.catch(u=>{});let{onViewTransitionCreated:s}=r;return s&&Kn$3(t,()=>s({transition:c,from:n,to:e})),a}function Qo(t){return new Promise(n=>{vE({read:()=>setTimeout(n)},{injector:t});})}var ui$1=new T$4(""),Ko=()=>{},Mr=new T$4(""),jt=(()=>{class t{currentNavigation=zi$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=zi$2(null);events=new le$4;transitionAbortWithErrorSubject=new le$4;configLoader=g(Pt$1);environmentInjector=g(pe$4);destroyRef=g(we$3);urlSerializer=g(ne);rootContexts=g(pe$1);location=g(vm);inputBindingEnabled=g(Ke$1,{optional:true})!==null;titleStrategy=g(Er);options=g(ie,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ji;urlHandlingStrategy=g(Lt);createViewTransition=g(Tr,{optional:true});navigationErrorHandler=g(Mr,{optional:true});activatedRouteInjectorFeature=g(ui$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>br$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new wt$1(i)),r=i=>this.events.next(new bt$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;bo$1(()=>{this.transitions?.next(x$1(w$1({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new Tr$1(null),this.transitions.pipe(Ot$1(r=>r!==null),ma(r=>{let i=true,o=false,a=new AbortController,c=()=>!o&&this.currentTransition?.id===r.id;return br$1(r).pipe(ma(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),rn$2;this.currentTransition=r;let u=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:u?x$1(w$1({},u),{previousNavigation:null}):null,abort:()=>a.abort(),routesRecognizeHandler:s.routesRecognizeHandler,beforeActivateHandler:s.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),v=s.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&v!=="reload")return this.events.next(new G(s.id,this.urlSerializer.serialize(s.rawUrl),"",we.IgnoredSameUrlNavigation)),s.resolve(false),rn$2;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return br$1(s).pipe(ma(g=>(this.events.next(new re$1(g.id,this.urlSerializer.serialize(g.extractedUrl),g.source,g.restoredState)),g.id!==this.navigationId?rn$2:Promise.resolve(g))),Fo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,a.signal),Dd(g=>{r.targetSnapshot=g.targetSnapshot,r.urlAfterRedirects=g.urlAfterRedirects,this.currentNavigation.update(N=>(N.finalUrl=g.urlAfterRedirects,N)),this.events.next(new qe$1);}),ma(g=>Qe$3(r.routesRecognizeHandler.deferredHandle??br$1(void 0)).pipe(ne$3(()=>g))),Dd(()=>{let g=new Fe$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:g,extractedUrl:N,source:z,restoredState:oe,extras:De}=s,zt=new re$1(g,this.urlSerializer.serialize(N),z,oe);this.events.next(zt);let Xe=qn$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=x$1(w$1({},s),{targetSnapshot:Xe,urlAfterRedirects:N,extras:x$1(w$1({},De),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(ae=>(ae.finalUrl=N,ae)),br$1(r)}else return this.events.next(new G(s.id,this.urlSerializer.serialize(s.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),s.resolve(false),rn$2}),ne$3(s=>{let u=new yt$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);return this.events.next(u),this.currentTransition=r=x$1(w$1({},s),{guards:no(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r}),go(s=>this.events.next(s)),ma(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw Dt$1(this.urlSerializer,s.guardsResult);let u=new Rt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);if(this.events.next(u),!c())return rn$2;if(!s.guardsResult)return this.cancelNavigationTransition(s,"",A.GuardRejected),rn$2;if(s.guards.canActivateChecks.length===0)return br$1(s);let d=new St$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);if(this.events.next(d),!c())return rn$2;let v=false;return br$1(s).pipe(qo(this.paramsInheritanceStrategy),Dd({next:()=>{v=true;let g=new Ct$1(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(g);},complete:()=>{v||this.cancelNavigationTransition(s,"",A.NoDataFromResolver);}}))}),In$1(s=>{let u=v=>{let g=[];if(v.routeConfig?._loadedComponent)v.component=v.routeConfig?._loadedComponent;else if(v.routeConfig?.loadComponent){let N=v._environmentInjector;g.push(this.configLoader.loadComponent(N,v.routeConfig).then(z=>{v.component=z;}));}for(let N of v.children)g.push(...u(N));return g},d=u(s.targetSnapshot.root);return d.length===0?br$1(s):Qe$3(Promise.all(d).then(()=>s))}),ma(s=>{let{newlyCreatedRoutes:u,state:d}=Xi(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=s=x$1(w$1({},s),{targetRouterState:d,newlyCreatedRoutes:u}),this.currentNavigation.update(v=>(v.targetRouterState=d,v)),br$1(s)}),this.activatedRouteInjectorFeature?.operator()??(s=>s),In$1(()=>this.afterPreactivation()),ma(()=>{let{currentSnapshot:s,targetSnapshot:u}=r,d=this.createViewTransition?.(this.environmentInjector,s.root,u.root);return d?Qe$3(d).pipe(ne$3(()=>r)):br$1(r)}),cn$2(1),ma(s=>{i=false,this.events.next(new Ie$1);let u=r.beforeActivateHandler.deferredHandle;return u?Qe$3(u.then(()=>s)):br$1(s)}),Dd(s=>{new pr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s.newlyCreatedRoutes?.clear(),c()&&(o=true,this.currentNavigation.update(u=>(u.abort=Ko,u)),this.lastSuccessfulNavigation.set(bo$1(this.currentNavigation)),this.events.next(new P(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(true));}),Sd(Jn$1(a.signal).pipe(Ot$1(()=>!o&&i),Dd(()=>{this.cancelNavigationTransition(r,a.signal.reason+"",A.Aborted);}))),Dd({complete:()=>{o=true;}}),Sd(this.transitionAbortWithErrorSubject.pipe(Dd(s=>{throw s}))),di$3(()=>{a.abort(),o||this.cancelNavigationTransition(r,"",A.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ga(s=>{if(o=true,An$1(r),this.destroyed)return r.resolve(false),rn$2;if(Yn$1(s))this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),ro(s)?this.events.next(new Ae$1(s.url,s.navigationBehaviorOptions)):r.resolve(false);else {let u=new de$1(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let d=Kn$3(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof Te){let{message:v,cancellationCode:g}=Dt$1(this.urlSerializer,d);this.events.next(new $$1(r.id,this.urlSerializer.serialize(r.extractedUrl),v,g)),this.events.next(new Ae$1(d.redirectTo,d.navigationBehaviorOptions));}else throw this.events.next(u),s}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(d);}}return rn$2}))}))}cancelNavigationTransition(e,r,i){An$1(e);let o=new $$1(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=bo$1(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Yo(t){return t!==Se}function An$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var li$1=new T$4("");var hi$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Zo)})}return t})(),Ut=class{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Zo=(()=>{class t extends Ut{static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),xt=(()=>{class t{urlSerializer=g(ne);options=g(ie,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(vm);urlHandlingStrategy=g(Lt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new T;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,a=i??o;return a instanceof T?this.urlSerializer.serialize(a):a}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=qn$1(null,g(pe$4));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||t)};static \u0275prov=Ce$5({token:t,factory:()=>g(Jo)})}return t})(),Jo=(()=>{class t extends xt{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof re$1?this.updateStateMemento():e instanceof G?this.commitTransition(r):e instanceof Fe$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ie$1?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof $$1&&!Fn$1(e)?this.restoreHistory(r):e instanceof de$1?this.restoreHistory(r,true):e instanceof P&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:a,state:c}=i;if(this.location.isCurrentPathEqualTo(e)||a){let s=this.browserPageId,u=w$1(w$1({},c),this.generateNgRouterState(o,s,r));this.location.replaceState(e,"",u);}else {let s=w$1(w$1({},c),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",s);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?w$1({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):w$1({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function kt(t,n){t.events.pipe(Ot$1(e=>e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(e=>e instanceof P||e instanceof G?0:(e instanceof $$1?e.code===A.Redirect||e.code===A.SupersededByNewNavigation:false)?2:1),Ot$1(e=>e!==2),cn$2(1)).subscribe(()=>{n();});}var F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=g(cg);stateManager=g(xt);options=g(ie,{optional:true})||{};pendingTasks=g(Zt$2);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g(jt);urlSerializer=g(ne);location=g(vm);urlHandlingStrategy=g(Lt);injector=g(pe$4);_events=new le$4;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=g(hi$1);injectorCleanup=g(li$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(ge$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!g(Ke$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new ee$5;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=bo$1(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof $$1&&r.code!==A.Redirect&&r.code!==A.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof P)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae$1){let a=r.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),s=w$1({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yo(i.source)},a);this.scheduleNavigation(c,Se,null,s,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Yi(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),Se,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let a=i?.navigationId?i:null,c=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=x$1(w$1({},o),{browserUrl:e})),i){let u=w$1({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u);}let s=this.parseUrl(c);this.scheduleNavigation(s,r,a,o).catch(u=>{this.disposed||this.injector.get(it$3)(u);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return bo$1(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ar),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(e,r={}){let{relativeTo:i,queryParams:o,fragment:a,queryParamsHandling:c,preserveFragment:s}=r,u=s?this.currentUrlTree.fragment:a,d=null;switch(c??this.options.defaultQueryParamsHandling){case "merge":d=w$1(w$1({},this.currentUrlTree.queryParams),o);break;case "preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null;}d!==null&&(d=this.removeEmptyProps(d));let v;try{let g=i?i.snapshot:this.routerState.snapshot.root;v=kn$1(g);}catch(g){(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root;}return $n$1(v,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=te$1(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Se,null,r)}navigate(e,r={skipLocationChange:false}){return Xo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch(r){return this.console.warn(Je$3(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=w$1({},Rr):r===false?i=w$1({},ze$1):i=w$1(w$1({},ze$1),r),te$1(e))return ar(this.currentUrlTree,e,i);let o=this.parseUrl(e);return ar(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,a){if(this.disposed)return Promise.resolve(false);let c,s,u;a?(c=a.resolve,s=a.reject,u=a.promise):u=new Promise((v,g)=>{c=v,s=g;});let d=this.pendingTasks.add();return kt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:c,reject:s,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})();function Xo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new m$2(4008,false)}var ea=(()=>{class t{router=g(F);stateManager=g(xt);fragment=zi$2("");queryParams=zi$2({});path=zi$2("");serializer=g(ne);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof P&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new T(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=Ce$5({token:t,factory:t.\u0275fac})}return t})(),$t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new Xg("href"),{optional:true});reactiveHref=lT(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return bo$1(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return bo$1(this._target)}_target=zi$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return bo$1(this._queryParams)}_queryParams=zi$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return bo$1(this._fragment)}_fragment=zi$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return bo$1(this._queryParamsHandling)}_queryParamsHandling=zi$2(void 0);set state(e){this._state.set(e);}get state(){return bo$1(this._state)}_state=zi$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return bo$1(this._info)}_info=zi$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return bo$1(this._relativeTo)}_relativeTo=zi$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return bo$1(this._preserveFragment)}_preserveFragment=zi$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return bo$1(this._skipLocationChange)}_skipLocationChange=zi$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return bo$1(this._replaceUrl)}_replaceUrl=zi$2(false);browserUrl=RB(void 0);isAnchorElement;onChanges=new le$4;applicationErrorHandler=g(it$3);options=g(ie,{optional:true});reactiveRouterState=g(ea);constructor(e,r,i,o,a,c){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=a,this.locationStrategy=c;let s=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=s==="a"||s==="area"||!!(typeof customElements=="object"&&customElements.get(s)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=zi$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(te$1(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,a){let c=this._urlTree();if(c===null||this.isAnchorElement&&(e!==0||r||i||o||a||typeof this.target=="string"&&this.target!="_self"))return true;let s=this.browserUrl(),u=w$1({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},s!==void 0&&{browserUrl:s});return this.router.navigateByUrl(c,u)?.catch(d=>{this.applicationErrorHandler(d);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=cT(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:te$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:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return bo$1(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(Ge$3(F),Ge$3(W$1),bu("tabindex"),Ge$3(Ju),Ge$3(On$3),Ge$3(Dr$1))};static \u0275dir=ul({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&vg("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),r&2&&lg("href",i.reactiveHref(),eE)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",UT],skipLocationChange:[2,"skipLocationChange","skipLocationChange",UT],replaceUrl:[2,"replaceUrl","replaceUrl",UT],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Cu]})}return t})(),ta=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=false;get isActive(){return this._isActive}routerLinkActiveOptions={exact:false};ariaCurrentWhenActive;isActiveChange=new yt$3;link=g($t,{optional:true});constructor(e,r,i,o){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof P&&this.update();});}ngAfterContentInit(){br$1(this.links.changes,br$1(null)).pipe(Sr$1()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges();});}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Qe$3(e).pipe(Sr$1()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update();});}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i);}ngOnChanges(e){this.update();}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe();}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r);}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e));});}isLinkActive(e){let r=ra(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??false?w$1({},Rr):w$1({},ze$1);return i=>{let o=i.urlTree;return o?bo$1(Sr(o,e,r)):false}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(Ge$3(F),Ge$3(On$3),Ge$3(Ju),Ge$3(um))};static \u0275dir=ul({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&Ig(o,$t,5),r&2){let a;cC(a=uC())&&(i.links=a);}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Cu]})}return t})();function ra(t){let n=t;return !!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ze=class{};var di$1=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o;}setUpPreloading(){this.subscription=this.router.events.pipe(Ot$1(e=>e instanceof P),pi$3(()=>this.preload())).subscribe(()=>{});}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe();}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=tg(o.providers,e,""));let a=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(a).injector);let c=o._loadedInjector??a;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(a,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(c,o.children??o._loadedRoutes));}return Qe$3(i).pipe(Sr$1())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return br$1(null);let i;r.loadChildren&&r.canLoad===void 0?i=Qe$3(this.loader.loadChildren(e,r)):i=br$1(null);let o=i.pipe(pt$4(a=>a===null?br$1(void 0):(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,r._loadedNgModuleFactory=a.factory,this.processRoutes(a.injector??e,a.routes))));if(r.loadComponent&&!r._loadedComponent){let a=this.loader.loadComponent(e,r);return Qe$3([o,a]).pipe(Sr$1())}else return o})}static \u0275fac=function(r){return new(r||t)(b$2(F),b$2(pe$4),b$2(Ze),b$2(Pt$1))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fi$1=new T$4(""),na=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Se;restoredId=0;store={};isHydrating=g(ED,{optional:true})??false;urlSerializer=g(ne);zone=g(G$2);viewportScroller=g(f2);transitions=g(jt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(yr$1).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(e=>{e instanceof re$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof P?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof G&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof be)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=bo$1(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>B$3(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new be(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});}));}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){BI();};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();function ia(t,...n){return wt$3([{provide:ge$1,multi:true,useValue:t},{provide:W$1,useFactory:pi$1},{provide:pl,multi:true,useFactory:gi$1},n.map(e=>e.\u0275providers)])}function pi$1(){return g(F).routerState.root}function Je(t,n){return {\u0275kind:t,\u0275providers:n}}function gi$1(){let t=g(he$4);return n=>{let e=t.get(yr$1);if(n!==e.components[0])return;let r=t.get(F),i=t.get(vi$1);t.get(_r)===1&&r.initialNavigation(),t.get(Ri$1,null,{optional:true})?.setUpPreloading(),t.get(fi$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var vi$1=new T$4("",{factory:()=>new le$4}),_r=new T$4("",{factory:()=>1});function mi$1(){let t=[{provide:Wp,useValue:true},{provide:_r,useValue:0},Sw(()=>{let n=g(he$4);return n.get(GT,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(vi$1);kt(i,()=>{r(true);}),n.get(jt).afterPreactivation=()=>(r(true),o.closed?br$1(void 0):o),i.initialNavigation();}))})];return Je(2,t)}function yi$1(){let t=[Sw(()=>{g(F).setUpLocationChangeListener();}),{provide:_r,useValue:2}];return Je(3,t)}var Ri$1=new T$4("");function Si$1(t){return Je(0,[{provide:Ri$1,useExisting:di$1},{provide:Ze,useExisting:t}])}function Ci$1(t={}){return Je(8,[{provide:Ke$1,useFactory:()=>new Wn$1(t)}])}function wi$1(t){ze$2("NgRouterViewTransitions");let n=[{provide:Tr,useValue:ci$1},{provide:Nr,useValue:w$1({skipNextTransition:false},t)}];return Je(9,n)}var bi$1=[vm,{provide:ne,useClass:Y},F,pe$1,{provide:W$1,useFactory:pi$1},Pt$1],oa=(()=>{class t{constructor(){}static forRoot(e,r){return {ngModule:t,providers:[bi$1,[],{provide:ge$1,multi:true,useValue:e},[],r?.errorHandler?{provide:Mr,useValue:r.errorHandler}:[],{provide:ie,useValue:r||{}},r?.useHash?sa():ca(),aa(),r?.preloadingStrategy?Si$1(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?ua(r):[],r?.bindToComponentInputs?Ci$1(typeof r.bindToComponentInputs=="object"?r.bindToComponentInputs:{}).\u0275providers:[],r?.enableViewTransitions?wi$1().\u0275providers:[],la()]}}static forChild(e){return {ngModule:t,providers:[{provide:ge$1,multi:true,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Ps$1({type:t});static \u0275inj=Vr({})}return t})();function aa(){return {provide:fi$1,useFactory:()=>{let t=g(f2),n=g(ie);return n.scrollOffset&&t.setOffset(n.scrollOffset),new na(n)}}}function sa(){return {provide:Dr$1,useClass:YT}}function ca(){return {provide:Dr$1,useClass:ym}}function ua(t){return [t.initialNavigation==="disabled"?yi$1().\u0275providers:[],t.initialNavigation==="enabledBlocking"?mi$1().\u0275providers:[]]}var Dr=new T$4("");function la(){return [{provide:Dr,useFactory:gi$1},{provide:pl,multi:true,useExisting:Dr}]}
1253
- var _=(function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i})(_||{}),K="*";function _s(i,e=null){return {type:_.Sequence,steps:i,options:e}}function tt(i){return {type:_.Style,styles:i,offset:null}}var $=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(s=>s()),t.length=0;}},re=class{_onDoneFns=[];_onStartFns=[];_finished=false;_started=false;_destroyed=false;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,n=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish();}),o.onDestroy(()=>{++s==r&&this._onDestroy();}),o.onStart(()=>{++n==r&&this._onStart();});}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.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(s=>{let n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n);});}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s: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(s=>s()),t.length=0;}},he="!";function Ss(i){return new m$2(3e3,false)}function wn(){return new m$2(3100,false)}function An(){return new m$2(3101,false)}function Pn(i){return new m$2(3001,false)}function Nn(i){return new m$2(3003,false)}function Cn(i){return new m$2(3004,false)}function vs(i,e){return new m$2(3005,false)}function Ts(){return new m$2(3006,false)}function bs(){return new m$2(3007,false)}function ws(i,e){return new m$2(3008,false)}function As(i){return new m$2(3002,false)}function Ps(i,e,t,s,n){return new m$2(3010,false)}function Ns(){return new m$2(3011,false)}function Cs(){return new m$2(3012,false)}function Ms(){return new m$2(3200,false)}function Ds(){return new m$2(3202,false)}function Fs(){return new m$2(3013,false)}function ks(i){return new m$2(3014,false)}function Rs(i){return new m$2(3015,false)}function Os(i){return new m$2(3016,false)}function Is(i,e){return new m$2(3404,false)}function Mn(i){return new m$2(3502,false)}function Ls(i){return new m$2(3503,false)}function zs(){return new m$2(3300,false)}function Ks(i){return new m$2(3504,false)}function qs(i){return new m$2(3301,false)}function Bs(i,e){return new m$2(3302,false)}function Qs(i){return new m$2(3303,false)}function Vs(i,e){return new m$2(3400,false)}function Us(i){return new m$2(3401,false)}function $s(i){return new m$2(3402,false)}function js(i,e){return new m$2(3505,false)}function j(i){switch(i.length){case 0:return new $;case 1:return i[0];default:return new re(i)}}function rt(i,e,t=new Map,s=new Map){let n=[],r=[],o=-1,a=null;if(e.forEach(l=>{let u=l.get("offset"),h=u==o,c=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=i.normalizePropertyName(f,n),g){case he:g=t.get(y);break;case K:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}c.set(f,g);}),h||r.push(c),a=c,o=u;}),n.length)throw Mn();return r}function Ae(i,e,t,s){switch(e){case "start":i.onStart(()=>s(t&&st(t,"start",i)));break;case "done":i.onDone(()=>s(t&&st(t,"done",i)));break;case "destroy":i.onDestroy(()=>s(t&&st(t,"destroy",i)));break}}function st(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Pe(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Pe(i,e,t,s,n="",r=0,o){return {element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function k(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function ot(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return [t,s]}var Dn=typeof document>"u"?null:document.documentElement;function Ne(i){let e=i.parentNode||i.host||null;return e===Dn?null:e}function Fn(i){return i.substring(1,6)=="ebkit"}var Z=null,Es=false;function Gs(i){Z||(Z=kn()||{},Es=Z.style?"WebkitAppearance"in Z.style:false);let e=true;return Z.style&&!Fn(i)&&(e=i in Z.style,!e&&Es&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in Z.style)),e}function kn(){return typeof document<"u"?document.body:null}function at(i,e){for(;e;){if(e===i)return true;e=Ne(e);}return false}function lt(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Rn=1e3,ut="{{",On="}}",ct="ng-enter",Ce="ng-leave",de="ng-trigger",fe=".ng-trigger",ht="ng-animating",Me=".ng-animating";function U(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return !e||e.length<2?0:nt(parseFloat(e[1]),e[2])}function nt(i,e){return e==="s"?i*Rn:i}function me(i,e,t){return i.hasOwnProperty("duration")?i:Ln(i,e,t)}var In=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Ln(i,e,t){let s,n=0,r="";if(typeof i=="string"){let o=i.match(In);if(o===null)return e.push(Ss()),{duration:0,delay:0,easing:""};s=nt(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=nt(parseFloat(a),o[4]));let l=o[5];l&&(r=l);}else s=i;if(!t){let o=false,a=e.length;s<0&&(e.push(wn()),o=true),n<0&&(e.push(An()),o=true),o&&e.splice(a,0,Ss());}return {duration:s,delay:n,easing:r}}function xs(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function q(i,e,t){e.forEach((s,n)=>{let r=De(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s;});}function W(i,e){e.forEach((t,s)=>{let n=De(s);i.style[n]="";});}function oe(i){return Array.isArray(i)?i.length==1?i[0]:_s(i):i}function Ws(i,e,t){let s=e.params||{},n=dt(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pn());});}var it=new RegExp(`${ut}\\s*(.+?)\\s*${On}`,"g");function dt(i){let e=[];if(typeof i=="string"){let t;for(;t=it.exec(i);)e.push(t[1]);it.lastIndex=0;}return e}function ae(i,e,t){let s=`${i}`,n=s.replace(it,(r,o)=>{let a=e[o];return a==null&&(t.push(Nn()),a=""),a.toString()});return n==s?i:n}var zn=/-+([a-z0-9])/g;function De(i){return i.replace(zn,(...e)=>e[1].toUpperCase())}function Hs(i,e){return i===0||e===0}function Ys(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r);}),n.length)for(let r=1;r<e.length;r++){let o=e[r];n.forEach(a=>o.set(a,Fe(i,a)));}}return e}function R(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Cn(e.type)}}function Fe(i,e){return window.getComputedStyle(i)[e]}var Mt=(()=>{class i{validateStyleProperty(t){return Gs(t)}containsElement(t,s){return at(t,s)}getParentElement(t){return Ne(t)}query(t,s,n){return lt(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new $(n,r)}static \u0275fac=function(s){return new(s||i)};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})(),ee=class{static NOOP=new Mt},te=class{};var Kn=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"]),Le=class extends te{normalizePropertyName(e,t){return De(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(Kn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else {let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(vs());}return o+r}};var ze="*";function qn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>Bn(s,t,e)):t.push(i),t}function Bn(i,e,t){if(i[0]==":"){let l=Qn(i,t);if(typeof l=="function"){e.push(l);return}i=l;}let s=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(Rs()),e;let n=s[1],r=s[2],o=s[3];e.push(Xs(n,o));let a=n==ze&&o==ze;r[0]=="<"&&!a&&e.push(Xs(o,n));}function Qn(i,e){switch(i){case ":enter":return "void => *";case ":leave":return "* => void";case ":increment":return (t,s)=>parseFloat(s)>parseFloat(t);case ":decrement":return (t,s)=>parseFloat(s)<parseFloat(t);default:return e.push(Os()),"* => *"}}var ke=new Set(["true","1"]),Re=new Set(["false","0"]);function Xs(i,e){let t=ke.has(i)||Re.has(i),s=ke.has(e)||Re.has(e);return (n,r)=>{let o=i==ze||i==n,a=e==ze||e==r;return !o&&t&&typeof n=="boolean"&&(o=n?ke.has(i):Re.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?ke.has(e):Re.has(e)),o&&a}}var un=":self",Vn=new RegExp(`s*${un}s*,?`,"g");function cn(i,e,t,s){return new _t(i).build(e,t,s)}var Zs="",_t=class{_driver;constructor(e){this._driver=e;}build(e,t,s){let n=new St(t);return this._resetContextStyleTimingState(n),R(this,oe(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zs,e.collectedStyles=new Map,e.collectedStyles.set(Zs,new Map),e.currentTime=0;}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ts()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t));}),l.name=u;}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,n+=l.depCount,o.push(l);}else t.errors.push(bs());}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{dt(l).forEach(u=>{o.hasOwnProperty(u)||r.add(u);});});}),r.size&&t.errors.push(ws(e.name,[...r.values()]));}return {type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,oe(e.animation),t),n=qn(e.expr,t.errors);return {type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:J(e.options)}}visitSequence(e,t){return {type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:J(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=R(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:J(e.options)}}visitAnimate(e,t){let s=Gn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:tt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else {let o=e.styles,a=false;if(!o){a=true;let u={};s.easing&&(u.easing=s.easing),o=tt(u);}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l;}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===K?s.push(a):t.errors.push(As()):s.push(new Map(Object.entries(a)));let r=false,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(ut)>=0){r=true;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),h=u.get(l),c=true;h&&(r!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ps(l,h.startTime,h.endTime)),c=false),r=h.startTime),c&&u.set(l,{startTime:r,endTime:n}),t.options&&Ws(a,t.options,t.errors);});});}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ns()),s;let n=1,r=0,o=[],a=false,l=false,u=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),M=A.offset!=null?A.offset:jn(A.styles),N=0;return M!=null&&(r++,N=A.offset=M),l=l||N<0||N>1,a=a||N<u,u=N,o.push(N),A});l&&t.errors.push(Cs()),a&&t.errors.push(Ms());let c=e.steps.length,S=0;r>0&&r<c?t.errors.push(Ds()):r==0&&(S=n/(c-1));let y=c-1,f=t.currentTime,g=t.currentAnimateTimings,T=g.duration;return h.forEach((w,A)=>{let M=S>0?A==y?1:S*A:o[A],N=M*T;t.currentTime=f+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=M,s.styles.push(w);}),s}visitReference(e,t){return {type:_.Reference,animation:R(this,oe(e.animation),t),options:J(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:J(e.options)}}visitAnimateRef(e,t){return {type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:J(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Un(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,k(t.collectedStyles,t.currentQuerySelector,new Map);let a=R(this,oe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:J(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Fs());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:me(e.timings,t.errors,true);return {type:_.Stagger,animation:R(this,oe(e.animation),t),timings:s,options:null}}};function Un(i){let e=!!i.split(/\s*,\s*/).find(t=>t==un);return e&&(i=i.replace(Vn,"")),i=i.replace(/@\*/g,fe).replace(/@\w+/g,t=>fe+"-"+t.slice(1)).replace(/:animating/g,Me),[i,e]}function $n(i){return i?w$1({},i):null}var St=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 jn(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset");}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset");}return e}function Gn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=me(i,e).duration;return ft(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ft(0,0,"");return r.dynamic=true,r.strValue=t,r}let n=me(t,e);return ft(n.duration,n.delay,n.easing)}function J(i){return i?(i=w$1({},i),i.params&&(i.params=$n(i.params))):i={},i}function ft(i,e,t){return {duration:i,delay:e,easing:t}}function Dt(i,e,t,s,n,r,o=null,a=false){return {type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var ge=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t);}has(e){return this._map.has(e)}clear(){this._map.clear();}},xn=1,Wn=":enter",Hn=new RegExp(Wn,"g"),Yn=":leave",Xn=new RegExp(Yn,"g");function hn(i,e,t,s,n,r=new Map,o=new Map,a,l,u=[]){return new Et().buildKeyframes(i,e,t,s,n,r,o,a,l,u)}var Et=class{buildKeyframes(e,t,s,n,r,o,a,l,u,h=[]){u=u||new ge;let c=new vt(e,t,u,n,r,h,[]);c.options=l;let S=l.delay?U(l.delay):0;c.currentTimeline.delayNextStep(S),c.currentTimeline.setStyles([o],null,c.errors,l),R(this,s,c);let y=c.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,c.errors,l);}return y.length?y.map(f=>f.buildKeyframes()):[Dt(t,[],[],[],0,S,"",false)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.options);r!=o&&t.transformIntoNewTimeline(o);}t.previousNode=e;}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e;}_applyAnimationRefDelays(e,t,s){for(let n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:U(ae(r,n?.params??{},t.errors));s.delayNextStep(o);}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?U(s.duration):null,a=s.delay!=null?U(s.delay):null;return o!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,u.duration+u.delay);}),r}visitReference(e,t){t.updateOptions(e.options,true),R(this,e.animation,t),t.previousNode=e;}visitSequence(e,t){let s=t.subContextCount,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ke);let o=U(r.delay);n.delayNextStep(o);}e.steps.length&&(e.steps.forEach(o=>R(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e;}visitGroup(e,t){let s=[],n=t.currentTimeline.currentTime,r=e.options&&e.options.delay?U(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),R(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline);}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e;}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?ae(s,t.params,t.errors):s;return me(n,t.errors)}else return {duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e;}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e;}visitKeyframes(e,t){let s=t.currentAnimateTimings,n=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;a.forwardTime(u*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe();}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(n+r),t.previousNode=e;}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?U(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ke);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((u,h)=>{t.currentQueryIndex=h;let c=t.createSubContext(e.options,u);r&&c.delayNextStep(r),u===t.element&&(l=c.currentTimeline),R(this,e.animation,c),c.currentTimeline.applyStylesToKeyframe();let S=c.currentTimeline.currentTime;o=Math.max(o,S);}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e;}visitStagger(e,t){let s=t.parentContext,n=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case "reverse":l=a-l;break;case "full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let c=h.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=n.currentTime-c+(n.startTime-s.currentTimeline.startTime);}},Ke={},vt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ke;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.currentTimeline=l||new qe(this._driver,t,0),a.push(this.currentTimeline);}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=U(s.duration)),s.delay!=null&&(n.delay=U(s.delay));let r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=ae(r[a],o,this.errors));});}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(n=>{s[n]=t[n];});}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,s||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=Ke,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new Tt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e);}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e);}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Hn,"."+this._enterClassName),e=e.replace(Xn,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),a.push(...u);}return !r&&a.length==0&&o.push(ks()),a}},qe=class i{_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,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 i(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+=xn,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,s]of this._globalTimelineStyles)this._backFill.set(t,s||K),this._currentKeyframe.set(t,K);this._currentEmptyStepKeyframe=this._currentKeyframe;}setStyles(e,t,s,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Zn(e,this._globalTimelineStyles);for(let[a,l]of o){let u=ae(l,r,s);this._pendingStyles.set(a,u),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??K),this._updateStyle(a,u);}}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,s)=>{let n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value);});}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let u=new Map([...this._backFill,...a]);u.forEach((h,c)=>{h===he?e.add(c):h===K&&t.add(c);}),s||u.set("offset",l/this.duration),n.push(u);});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l];}return Dt(this.element,n,r,o,this.duration,this.startTime,this.easing,false)}},Tt=class extends qe{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,n,r,o,a=false){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing};}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:n}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",Js(a)),r.push(u);let h=e.length-1;for(let c=1;c<=h;c++){let S=new Map(e[c]),y=S.get("offset"),f=t+y*s;S.set("offset",Js(f/o)),r.push(S);}s=o,t=0,n="",e=r;}return Dt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,true)}};function Js(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Zn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,K);}else for(let[r,o]of n)t.set(r,o);}),t}function en(i,e,t,s,n,r,o,a,l,u,h,c,S){return {type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:h,totalTime:c,errors:S}}var mt={},Be=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s;}match(e,t,s,n){return Jn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,u,h){let c=[],S=this.ast.options&&this.ast.options.params||mt,y=a&&a.params||mt,f=this.buildStyles(s,y,c),g=l&&l.params||mt,T=this.buildStyles(n,g,c),w=new Set,A=new Map,M=new Map,N=n==="void",se={params:dn(g,S),delay:this.ast.options?.delay},Q=h?[]:hn(e,t,this.ast.animation,r,o,f,T,se,u,c),D=0;return Q.forEach(F=>{D=Math.max(F.duration+F.delay,D);}),c.length?en(t,this._triggerName,s,n,N,f,T,[],[],A,M,D,c):(Q.forEach(F=>{let H=F.element,ne=k(A,H,new Set);F.preStyleProps.forEach(Y=>ne.add(Y));let kt=k(M,H,new Set);F.postStyleProps.forEach(Y=>kt.add(Y)),H!==t&&w.add(H);}),en(t,this._triggerName,s,n,N,f,T,Q,[...w.values()],A,M,D))}};function Jn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function dn(i,e){let t=w$1({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n);}),t}var bt=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s;}buildStyles(e,t){let s=new Map,n=dn(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=ae(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o);});}),s}};function ei(i,e,t){return new wt(i,e,t)}var wt=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new bt(n.style,r,s));}),tn(this.states,"true","1"),tn(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new Be(e,n,this.states));}),this.fallbackTransition=ti(e,this.states);}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function ti(i,e,t){let s=[(o,a)=>true],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new Be(i,r,e)}function tn(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t));}var si=new ge,At=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s;}register(e,t){let s=[],n=[],r=cn(this._driver,t,s,n);if(s.length)throw Ls();this._animations.set(e,r);}_buildPlayer(e,t,s){let n=e.element,r=rt(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],true)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=hn(this._driver,t,r,ct,Ce,new Map,new Map,s,si,n),o.forEach(h=>{let c=k(a,h.element,new Map);h.postStyleProps.forEach(S=>c.set(S,null));})):(n.push(zs()),o=[]),n.length)throw Ks();a.forEach((h,c)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(c,y,K));});});let l=o.map(h=>{let c=a.get(h.element);return this._buildPlayer(h,new Map,c)}),u=j(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1);}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw qs();return t}listen(e,t,s,n){let r=Pe(t,"","","");return Ae(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){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(n[0]));break;case "destroy":this.destroy(e);break}}},sn="ng-animate-queued",ni=".ng-animate-queued",pt="ng-animate-disabled",ii=".ng-animate-disabled",ri="ng-star-inserted",oi=".ng-star-inserted",ai=[],fn={namespaceId:"",setForRemoval:false,setForMove:false,hasAnimation:false,removedBeforeQueried:false},li={namespaceId:"",setForMove:false,setForRemoval:false,hasAnimation:false,removedBeforeQueried:true},B="__ng_removed",ye=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=ci(n),s){let r=e,{value:o}=r,a=y$1(r,["value"]);this.options=a;}else this.options={};this.options.params||(this.options.params={});}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(n=>{s[n]==null&&(s[n]=t[n]);});}}},pe="void",gt=new ye(pe),Pt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,z(t,this._hostClassName);}listen(e,t,s,n){if(!this._triggers.has(t))throw Bs();if(s==null||s.length==0)throw Qs();if(!hi(s))throw Vs();let r=k(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=k(this._engine.statesByElement,e,new Map);return a.has(t)||(z(e,de),z(e,de+"-"+t),a.set(t,gt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.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 Us();return t}trigger(e,t,s,n=true){let r=this._getTrigger(t),o=new _e(this.id,t,e),a=this._engine.statesByElement.get(e);a||(z(e,de),z(e,de+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),u=new ye(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a.set(t,u),l||(l=gt),!(u.value===pe)&&l.value===u.value){if(!mi(l.params,u.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{W(e,T),q(e,w);});}return}let S=k(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy();});let y=r.matchTransition(l.value,u.value,e,u.params),f=false;if(!y){if(!n)return;y=r.fallbackTransition,f=true;}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:o,isFallbackTransition:f}),f||(z(e,sn),o.onStart(()=>{le(e,sn);})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1);}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(n=>n.name!=e));});}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e));}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,fe,true);s.forEach(n=>{if(n[B])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,false,true)):this.clearElementCache(n);}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)));}triggerLeaveAnimation(e,t,s,n){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,u)=>{if(o.set(u,l.value),this._triggers.has(u)){let h=this.trigger(e,u,pe,n);h&&a.push(h);}}),a.length)return this._engine.markElementAsRemoved(this.id,e,true,t,o),s&&j(a).onDone(()=>this._engine.processLeaveNode(e)),true}return false}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,u=s.get(o)||gt,h=new ye(pe),c=new _e(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:h,player:c,isFallbackTransition:true});});}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,true))return;let n=false;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=true;else {let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=true;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,false,t);else {let r=e[B];(!r||r===fn)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t));}}insertNode(e,t){z(e,this._hostClassName);}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Pe(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ae(s.player,a.phase,l,a.callback);}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy();}):t.push(s);}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e);}},Nt=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,s){this.bodyNode=e,this.driver=t,this._normalizer=s;}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s);});}),e}createNamespace(e,t){let s=new Pt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,n=this.namespacesByHostElement;if(s.length-1>=0){let o=false,a=this.driver.getParentElement(t);for(;a;){let l=n.get(a);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),o=true;break}a=this.driver.getParentElement(a);}o||s.unshift(e);}else s.push(e);return n.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++;}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,1),s.destroy(t),delete this._namespaceLookup[e];}));}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r);}}return t}trigger(e,t,s,n){if(Oe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),true}return false}insertNode(e,t,s,n){if(!Oe(t))return;let r=t[B];if(r&&r.setForRemoval){r.setForRemoval=false,r.setForMove=true;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1);}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s);}n&&this.collectEnterElement(t);}collectEnterElement(e){this.collectedEnterElements.push(e);}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),z(e,pt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),le(e,pt));}removeNode(e,t,s){if(Oe(t)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(t,s):this.markElementAsRemoved(e,t,false,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s);}else this._onRemovalComplete(t,s);}markElementAsRemoved(e,t,s,n,r){this.collectedLeaveElements.push(t),t[B]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:false,previousTriggersValues:r};}listen(e,t,s,n,r){return Oe(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,fe,true);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Me,true),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)));}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=true:s.destroy();});}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish());}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return j(this.players).onDone(()=>e());e();})}processLeaveNode(e){let t=e[B];if(t&&t.setForRemoval){if(e[B]=fn,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e);}this._onRemovalComplete(e,t.setForRemoval);}e.classList?.contains(pt)&&this.markElementAsDisabled(e,false),this.driver.query(e,ii,true).forEach(s=>{this.markElementAsDisabled(s,false);});}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;s<this.collectedEnterElements.length;s++){let n=this.collectedEnterElements[s];z(n,ri);}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let s=[];try{t=this._flushAnimations(s,e);}finally{for(let n=0;n<s.length;n++)s[n]();}}else for(let s=0;s<this.collectedLeaveElements.length;s++){let n=this.collectedLeaveElements[s];this.processLeaveNode(n);}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(s=>s()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?j(t).onDone(()=>{s.forEach(n=>n());}):s.forEach(n=>n());}}reportError(e){throw $s()}_flushAnimations(e,t){let s=new ge,n=[],r=new Map,o=[],a=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,ni,true);for(let p=0;p<m.length;p++)h.add(m[p]);});let c=this.bodyNode,S=Array.from(this.statesByElement.keys()),y=on(S,this.collectedEnterElements),f=new Map,g=0;y.forEach((d,m)=>{let p=ct+g++;f.set(m,p),d.forEach(E=>z(E,p));});let T=[],w=new Set,A=new Set;for(let d=0;d<this.collectedLeaveElements.length;d++){let m=this.collectedLeaveElements[d],p=m[B];p&&p.setForRemoval&&(T.push(m),w.add(m),p.hasAnimation?this.driver.query(m,oi,true).forEach(E=>w.add(E)):A.add(m));}let M=new Map,N=on(S,Array.from(w));N.forEach((d,m)=>{let p=Ce+g++;M.set(m,p),d.forEach(E=>z(E,p));}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>le(E,p));}),N.forEach((d,m)=>{let p=M.get(m);d.forEach(E=>le(E,p));}),T.forEach(d=>{this.processLeaveNode(d);});});let se=[],Q=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,P=p.element;if(se.push(E),this.collectedEnterElements.length){let C=P[B];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let X=C.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Se=I.get(p.triggerName);Se.value=X,I.set(p.triggerName,Se);}}E.destroy();return}}let V=!c||!this.driver.containsElement(c,P),O=M.get(P),G=f.get(P),b=this._buildInstruction(p,s,G,O,V);if(b.errors&&b.errors.length){Q.push(b);return}if(V){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>W(P,b.fromStyles)),E.onDestroy(()=>q(P,b.toStyles)),n.push(E);return}let It=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=true,this.disabledNodes.has(C.element)||It.push(C);}),b.timelines=It,s.append(P,b.timelines);let bn={instruction:b,player:E,element:P};o.push(bn),b.queriedElements.forEach(C=>k(a,C,[]).push(E)),b.preStyleProps.forEach((C,X)=>{if(C.size){let I=l.get(X);I||l.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));}}),b.postStyleProps.forEach((C,X)=>{let I=u.get(X);I||u.set(X,I=new Set),C.forEach((Se,xe)=>I.add(xe));});});if(Q.length){let d=[];Q.forEach(m=>{d.push(js(m.triggerName,m.errors));}),se.forEach(m=>m.destroy()),this.reportError(d);}let D=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,D));}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,false,d.namespaceId,d.triggerName,null).forEach(E=>{k(D,m,[]).push(E),E.destroy();});});let H=T.filter(d=>an(d,l,u)),ne=new Map;rn(ne,this.driver,A,u,K).forEach(d=>{an(d,l,u)&&H.push(d);});let Y=new Map;y.forEach((d,m)=>{rn(Y,this.driver,new Set(d),l,he);}),H.forEach(d=>{let m=ne.get(d),p=Y.get(d);ne.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]));});let Ge=[],Rt=[],Ot={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>q(m,E.toStyles)),p.disabled=true,p.overrideTotalTime(E.totalTime),n.push(p);return}let P=Ot;if(F.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=F.get(O);if(b){P=b;break}G.push(O);}G.forEach(b=>F.set(b,P));}let V=this._buildAnimation(p.namespaceId,E,D,r,Y,ne);if(p.setRealPlayer(V),P===Ot)Ge.push(p);else {let O=this.playersByElement.get(P);O&&O.length&&(p.parentPlayer=j(O)),n.push(p);}}else W(m,E.fromStyles),p.onDestroy(()=>q(m,E.toStyles)),Rt.push(p),h.has(m)&&n.push(p);}),Rt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=j(m);d.setRealPlayer(p);}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy();});for(let d=0;d<T.length;d++){let m=T[d],p=m[B];if(le(m,Ce),p&&p.hasAnimation)continue;let E=[];if(a.size){let V=a.get(m);V&&V.length&&E.push(...V);let O=this.driver.query(m,Me,true);for(let G=0;G<O.length;G++){let b=a.get(O[G]);b&&b.length&&E.push(...b);}}let P=E.filter(V=>!V.destroyed);P.length?di(this,m,P):this.processLeaveNode(m);}return T.length=0,Ge.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1);}),d.play();}),Ge}afterFlush(e){this._flushFns.push(e);}afterFlushAnimationsDone(e){this._whenQuietFns.push(e);}_getPreviousPlayers(e,t,s,n,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a);}else {let a=this.playersByElement.get(e);if(a){let l=!r||r==pe;a.forEach(u=>{u.queued||!l&&u.triggerName!=n||o.push(u);});}}return (s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;for(let l of t.timelines){let u=l.element,h=u!==r,c=k(s,u,[]);this._getPreviousPlayers(u,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),c.push(y);});}W(r,t.fromStyles);}_buildAnimation(e,t,s,n,r,o){let a=t.triggerName,l=t.element,u=[],h=new Set,c=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[B];if(T&&T.removedBeforeQueried)return new $(f.duration,f.delay);let w=g!==l,A=fi((s.get(g)||ai).map(D=>D.getRealPlayer())).filter(D=>{let F=D;return F.element?F.element===g:false}),M=r.get(g),N=o.get(g),se=rt(this._normalizer,f.keyframes,M,N),Q=this._buildPlayer(f,se,A);if(f.subTimeline&&n&&c.add(g),w){let D=new _e(e,a,g);D.setRealPlayer(Q),u.push(D);}return Q});u.forEach(f=>{k(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>ui(this.playersByQueriedElement,f.element,f));}),h.forEach(f=>z(f,ht));let y=j(S);return y.onDestroy(()=>{h.forEach(f=>le(f,ht)),q(l,t.toStyles);}),c.forEach(f=>{k(n,f,[]).push(y);}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},_e=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=false;_queuedCallbacks=new Map;destroyed=false;parentPlayer=null;markedForDestroy=false;disabled=false;queued=true;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s;}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(n=>Ae(e,s,void 0,n));}),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){k(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 ui(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1);}s.length==0&&i.delete(e);}return s}function ci(i){return i??null}function Oe(i){return i&&i.nodeType===1}function hi(i){return i=="start"||i=="done"}function nn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function rn(i,e,t,s,n){let r=[];t.forEach(l=>r.push(nn(l)));let o=[];s.forEach((l,u)=>{let h=new Map;l.forEach(c=>{let S=e.computeStyle(u,c,n);h.set(c,S),(!S||S.length==0)&&(u[B]=li,o.push(u));}),i.set(u,h);});let a=0;return t.forEach(l=>nn(l,r[a++])),o}function on(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let u=a.parentNode;return t.has(u)?l=u:n.has(u)?l=s:l=o(u),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a);}),t}function z(i,e){i.classList?.add(e);}function le(i,e){i.classList?.remove(e);}function di(i,e,t){j(t).onDone(()=>i.processLeaveNode(e));}function fi(i){let e=[];return mn(i,e),e}function mn(i,e){for(let t=0;t<i.length;t++){let s=i[t];s instanceof re?mn(s.players,e):e.push(s);}}function mi(i,e){let t=Object.keys(i),s=Object.keys(e);if(t.length!=s.length)return false;for(let n=0;n<t.length;n++){let r=t[n];if(!e.hasOwnProperty(r)||i[r]!==e[r])return false}return true}function an(i,e,t){let s=t.get(i);if(!s)return false;let n=e.get(i);return n?s.forEach(r=>n.add(r)):e.set(i,s),t.delete(i),true}var ue=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new At(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r);}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],u=[],h=cn(this._driver,r,l,u);if(l.length)throw Is();a=ei(n,h,this._normalizer),this._triggerCache[o]=a;}this._transitionEngine.registerTrigger(t,n,a);}register(e,t){this._transitionEngine.register(e,t);}destroy(e,t){this._transitionEngine.destroy(e,t);}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n);}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s);}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t);}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=ot(s),a=n;this._timelineEngine.command(r,t,o,a);}else this._transitionEngine.trigger(e,t,s,n);}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=ot(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,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 pi(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=yt(e[0]),e.length>1&&(s=yt(e[e.length-1]))):e instanceof Map&&(t=yt(e)),t||s?new gi(i,t,s):null}var gi=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,n){this._element=t,this._startStyles=s,this._endStyles=n;let r=i.initialStylesByElement.get(t);r||i.initialStylesByElement.set(t,r=new Map),this._initialStyles=r;}start(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1);}finish(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1);}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3);}}return i})();function yt(i){let e=null;return i.forEach((t,s)=>{yi(s)&&(e=e||new Map,e.set(s,t));}),e}function yi(i){return i==="display"||i==="position"}var Qe=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,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,this._duration=s.duration,this._delay=s.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 s=()=>this._onFinish();return t.addEventListener("finish",s),this.onDestroy(()=>{t.removeEventListener("finish",s);}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause();}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s));}),t}_triggerWebAnimation(e,t,s){let n=this._convertKeyframesToObject(t);try{return e.animate(n,s)}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((s,n)=>{n!=="offset"&&e.set(n,this._finished?s:Fe(this.element,n));}),this.currentSnapshot=e;}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0;}},Ve=class{validateStyleProperty(e){return true}validateAnimatableStyleProperty(e){return true}containsElement(e,t){return at(e,t)}getParentElement(e){return Ne(e)}query(e,t,s){return lt(e,t,s)}computeStyle(e,t,s){return Fe(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let u=new Map,h=o.filter(y=>y instanceof Qe);Hs(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>u.set(g,f));});let c=xs(t).map(y=>new Map(y));c=Ys(e,c,u);let S=pi(e,c);return new Qe(e,c,l,S)}};var Ie="@",pn="@.disabled",Ue=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n;}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,s,n=true){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n);}removeChild(e,t,s,n){if(n){this.delegate.removeChild(e,t,s,n);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,s,n){this.delegate.setAttribute(e,t,s,n);}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s);}addClass(e,t){this.delegate.addClass(e,t);}removeClass(e,t){this.delegate.removeClass(e,t);}setStyle(e,t,s,n){this.delegate.setStyle(e,t,s,n);}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s);}setProperty(e,t,s){t.charAt(0)==Ie&&t==pn?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s);}setValue(e,t){this.delegate.setValue(e,t);}listen(e,t,s,n){return this.delegate.listen(e,t,s,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t);}},Ct=class extends Ue{factory;constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t;}setProperty(e,t,s){t.charAt(0)==Ie?t.charAt(1)=="."&&t==pn?(s=s===void 0?true:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s);}listen(e,t,s,n){if(t.charAt(0)==Ie){let r=_i(e),o=t.slice(1),a="";return o.charAt(0)!=Ie&&([o,a]=Si(o)),this.engine.listen(this.namespaceId,r,o,a,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l);})}return this.delegate.listen(e,t,s,n)}};function _i(i){switch(i){case "body":return document.body;case "document":return document;case "window":return window;default:return i}}function Si(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return [t,s]}var $e=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(n,r)=>{r?.removeChild(null,n);};}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,h=u.get(n);if(!h){let c=()=>u.delete(n);h=new Ue("",n,this.engine,c),u.set(n,h);}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=u=>{Array.isArray(u)?u.forEach(a):this.engine.registerTrigger(r,o,e,u.name,u);};return t.data.animation.forEach(a),new Ct(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin();}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++;});}scheduleListenerCallback(e,t,s){if(e>=0&&e<this._microtaskId){this._zone.run(()=>t(s));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a);}),this._animationCallbacksBuffer=[];});}),n.push([t,s]);}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 vi=(()=>{class i extends ue{constructor(t,s,n){super(t,s,n);}ngOnDestroy(){this.flush();}static \u0275fac=function(s){return new(s||i)(b$2(U$5),b$2(ee),b$2(te))};static \u0275prov=x({token:i,factory:i.\u0275fac})}return i})();function Ti(){return new Le}function bi(){return new $e(g(Vl),g(ue),g(G$2))}var gn=[{provide:te,useFactory:Ti},{provide:ue,useClass:vi},{provide:Nn$3,useFactory:bi}],wi=[{provide:ee,useFactory:()=>new Ve},{provide:kv,useFactory:()=>"BrowserAnimations"},...gn];function yn(){return ze$2("NgEagerAnimations"),[...wi]}var Ai=i=>!!i&&i.mode==="unmanaged"&&i.setupEnabled&&!i.setupDone,Ft=false;var _n=()=>B$3(null,null,function*(){if(Ft)return true;let i=g(V$1),e=g(F),t=yield i.refreshStatus();return t?.setupDone&&(Ft=true),Ai(t)?e.parseUrl("/welcome"):true}),Sn=()=>B$3(null,null,function*(){return (yield g(V$1).refreshStatus())?.setupDone&&(Ft=true),true});var Pi=i=>i[0]?.path==="agentos"?{consumed:i}:null,Ni=(i,e)=>{let t=e.url.replace(/^\/agentos/,"");return g(F).parseUrl(t.startsWith("/")?t:`/${t}`)},En=[{matcher:Pi,canActivate:[Ni],children:[]},{path:"welcome",canActivate:[Sn],loadComponent:()=>import('./chunk-DNMiaqnS.js').then(i=>i.WelcomeComponent)},{path:"",pathMatch:"full",redirectTo:"welcome"},{path:"",canActivate:[_n],loadChildren:()=>import('./chunk-qF4-8qpt.js').then(function(n){return n.ad}).then(i=>i.AGENTOS_ROUTES)},{path:"**",redirectTo:""}];var Ci=5e3;function vn(t){return B$3(this,arguments,function*(i,e=Ci){yield yy(i.loadMe().pipe(Ay(e),ga(s=>(console.warn("Failed to load current user",s),br$1(null)))),{defaultValue:null});})}function Mi(i){return ()=>B$3(null,null,function*(){let{UserStateService:e}=yield import('./chunk-qF4-8qpt.js').then(function(n){return n.ad});yield vn(i.get(e));})}function Di(i){return ()=>B$3(null,null,function*(){try{let{CompanionStateService:e,GlobalStreamService:t,TabCoordinatorService:s}=yield import('./chunk-qF4-8qpt.js').then(function(n){return n.ad});Kn$3(i,()=>{i.get(s).start();}),i.get(t).start(),i.get(e).startSse();}catch(e){console.warn("Failed to start the companion notification stream",e);}})}var Tn={providers:[Rv(),jB({eventCoalescing:true}),ia(En),pS(),yn(),{provide:Ce$2,useValue:{duration:3e3}},{provide:ll,useFactory:Mi,deps:[he$4],multi:true},Ll({basePath:"/api/agentos"}),{provide:ll,useFactory:Di,deps:[he$4],multi:true},{provide:de$2,useValue:{width:"80vw",maxWidth:"80vw",maxHeight:"80vh"}}]};function Fi(i,e){i&1&&(Is$1(0,"div",0),fg(1,"div",2),Is$1(2,"p"),OC(3,"Loading Coday\u2026"),gl()());}function ki(i,e){if(i&1){let t=Xw();Is$1(0,"div",1)(1,"p"),OC(2,"Coday could not load this page."),gl(),Is$1(3,"button",3),vg("click",function(){hf(t);let n=rC();return gf(n.reload())}),OC(4,"Reload"),gl()();}}var Ri=i=>i instanceof re$1?"pending":i instanceof de$1?"failed":"idle",je=class i{title="client";phase=F$1(g(F).events.pipe(Ot$1(e=>e instanceof re$1||e instanceof P||e instanceof $$1||e instanceof de$1||e instanceof G),ne$3(Ri)),{initialValue:"pending"});reload(){window.location.reload();}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=Iw({type:i,selectors:[["app-root"]],decls:3,vars:1,consts:[["role","status","aria-live","polite",1,"app-loader"],["role","alert",1,"app-loader","app-loader--error"],[1,"spinner"],["type","button",3,"click"]],template:function(t,s){if(t&1&&(Hw(0,Fi,4,0,"div",0)(1,ki,5,0,"div",1),fg(2,"router-outlet")),t&2){let n;Uw((n=s.phase())==="pending"?0:n==="failed"?1:-1);}},dependencies:[oa,br],styles:[".app-loader[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;background:var(--color-bg);color:var(--color-text-secondary, #6e6e73);font-size:.9rem;opacity:0;pointer-events:none;animation:_ngcontent-%COMP%_app-loader-in .2s ease .3s forwards}.app-loader[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.app-loader--error[_ngcontent-%COMP%]{animation-delay:0ms;pointer-events:auto;color:var(--color-text)}.app-loader--error[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:6px 16px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);color:var(--color-text);cursor:pointer}.spinner[_ngcontent-%COMP%]{width:32px;height:32px;border:3px solid var(--color-border, rgba(0, 0, 0, .1));border-top-color:var(--color-primary, #007aff);border-radius:50%;animation:_ngcontent-%COMP%_app-loader-spin .8s linear infinite}@keyframes _ngcontent-%COMP%_app-loader-in{to{opacity:1}}@keyframes _ngcontent-%COMP%_app-loader-spin{to{transform:rotate(360deg)}}"],changeDetection:1})};Ub(je,Tn).catch(i=>console.error(i));"serviceWorker"in navigator&&true&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(i=>console.error("[SW] Registration failed:",i));});export{Tr$1 as $,A$1 as A,B$3 as B,y as C,Dg as D,El as E,Fg as F,Gw as G,Hw as H,Iw as I,J$1 as J,we$3 as K,U$2 as L,Mg as M,w$1 as N,OC as O,x$1 as P,dg as Q,vg as R,AI as S,OI as T,UE as U,V$1 as V,W$1 as W,Xw as X,br as Y,W$3 as Z,_g as _,Is$1 as a,xe$2 as a$,Be$2 as a0,ma as a1,ga as a2,rn$2 as a3,we$2 as a4,Dd as a5,x as a6,Ln$3 as a7,_$1 as a8,F$1 as a9,Me$2 as aA,ie$2 as aB,T$1 as aC,Gy as aD,X$1 as aE,an$2 as aF,Ot$1 as aG,cn$2 as aH,Pe$1 as aI,fe$4 as aJ,ue$3 as aK,dC as aL,di$3 as aM,Y$2 as aN,Tb as aO,Hg as aP,Vg as aQ,YC as aR,ZC as aS,rT as aT,BC as aU,D$1 as aV,yy as aW,L$2 as aX,Ue$1 as aY,A$3 as aZ,z$2 as a_,br$1 as aa,le$4 as ab,_y as ac,ne$3 as ad,Bw as ae,G$1 as af,U$4 as ag,Fe$2 as ah,ke$3 as ai,De$2 as aj,vd as ak,We$1 as al,$w as am,$e$3 as an,zw as ao,F$3 as ap,k$1 as aq,Ne$2 as ar,Pg as as,by as at,$t as au,eT as av,nT as aw,KD as ax,N$1 as ay,Q as az,gl as b,Sf as b$,On$3 as b0,Ju as b1,ul as b2,yt$3 as b3,wg as b4,cC as b5,uC as b6,RB as b7,UT as b8,iC as b9,$e$2 as bA,at$2 as bB,cs as bC,pt$3 as bD,xe$1 as bE,My as bF,en$1 as bG,ag as bH,WC as bI,Ig as bJ,U$5 as bK,we$1 as bL,L$1 as bM,Zn$2 as bN,Os$1 as bO,gt$2 as bP,_t$3 as bQ,og as bR,Ke$2 as bS,Mo$1 as bT,_t$4 as bU,Ce$5 as bV,Oe$1 as bW,si$2 as bX,Ny as bY,wa as bZ,b$2 as b_,sC as ba,AB as bb,Ni$2 as bc,di$2 as bd,kB as be,OB as bf,BB as bg,Tg as bh,lC as bi,gd as bj,Td as bk,T$4 as bl,Ps$1 as bm,Vr as bn,Ge$3 as bo,kp as bp,yr$1 as bq,um as br,vE as bs,Ea as bt,Se$2 as bu,ee$5 as bv,Xg as bw,qs$1 as bx,ri$2 as by,W$2 as bz,Uw as c,_f as c$,gr$1 as c0,mt$3 as c1,G$2 as c2,Sd as c3,Cn$2 as c4,Ht as c5,yn$1 as c6,Ft$1 as c7,BI as c8,v as c9,je$2 as cA,Ce$4 as cB,re$3 as cC,Mn$2 as cD,Ge$2 as cE,Cb as cF,_e$3 as cG,Ay as cH,md as cI,dn$1 as cJ,Vy as cK,zy as cL,Wy as cM,Ed as cN,$y as cO,me$3 as cP,FB as cQ,be$3 as cR,Py as cS,Ea$1 as cT,Db as cU,lT as cV,Qe$2 as cW,oe$2 as cX,ne$2 as cY,se$1 as cZ,Je$2 as c_,ht$3 as ca,wi$2 as cb,Ln$2 as cc,va as cd,Fy as ce,Fs$1 as cf,Qe$3 as cg,hn$1 as ch,Si$3 as ci,Cu as cj,_w as ck,hS as cl,lr$1 as cm,m$2 as cn,vb as co,sg as cp,gg as cq,oT as cr,He$1 as cs,ta as ct,Oy as cu,ya as cv,By as cw,pi$3 as cx,mr$1 as cy,de$4 as cz,mg as d,pe$4 as d0,VB as d1,ce as d2,pt$2 as d3,Le$1 as d4,Ye$1 as d5,wb as d6,R$2 as d7,Ve$2 as d8,ee$4 as d9,UC as da,$g as db,VC as dc,QC as dd,jg as de,HC as df,KC as dg,tE as dh,Bg as di,ah as dj,PB as dk,Cg as dl,le$3 as dm,Lg as dn,ee$3 as e,fg as f,g,he$4 as h,cT as i,Ww as j,f$1 as k,lg as l,ml as m,F as n,Of as o,pg as p,qC as q,bo$1 as r,rC as s,hf as t,gf as u,sh as v,wC as w,ty as x,yl as y,zi$2 as z};