From ea9d7f1f60d6422f86c722eb4c7de88ae95a34be Mon Sep 17 00:00:00 2001 From: bigBear713 <774326739@qq.com> Date: Sat, 31 Dec 2022 17:32:46 +0800 Subject: [PATCH] Update: deploy files --- docs/249.179c4a768e318e00.js | 1 + docs/404.html | 4 ++-- docs/index.html | 4 ++-- docs/main.3bb38a3889c1a1aa.js | 1 - docs/main.a728ddb9b41d1fde.js | 1 + docs/polyfills.0d1c48b529314817.js | 1 + docs/polyfills.81b5a0ac59214453.js | 1 - docs/runtime.1b581a2fa8e17068.js | 1 + docs/runtime.e967317e22394954.js | 1 - 9 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 docs/249.179c4a768e318e00.js delete mode 100644 docs/main.3bb38a3889c1a1aa.js create mode 100644 docs/main.a728ddb9b41d1fde.js create mode 100644 docs/polyfills.0d1c48b529314817.js delete mode 100644 docs/polyfills.81b5a0ac59214453.js create mode 100644 docs/runtime.1b581a2fa8e17068.js delete mode 100644 docs/runtime.e967317e22394954.js diff --git a/docs/249.179c4a768e318e00.js b/docs/249.179c4a768e318e00.js new file mode 100644 index 0000000..fb60379 --- /dev/null +++ b/docs/249.179c4a768e318e00.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[249],{1249:(g,s,o)=>{o.r(s),o.d(s,{Feature1Component:()=>i,routes:()=>u});var a=o(6895),r=o(4719),m=o(3324),f=o(929),e=o(6738);function _(l,n){if(1&l){const t=e.EpF();e.TgZ(0,"form",1)(1,"nb-field-item",2)(2,"span",3),e._uU(3),e.ALo(4,"nbTrans"),e.qZA(),e.TgZ(5,"input",4),e.NdJ("change",function(c){e.CHM(t);const p=e.oxw();return e.KtG(p.onChangeFile(c))}),e.qZA()()()}if(2&l){const t=e.oxw();e.Q6J("formGroup",t.form),e.xp6(1),e.Q6J("control",t.field1Ctrl)("errInfo",t.errInfo2),e.xp6(2),e.hij("",e.lcZ(4,4,"demoContent.field1"),"\uff1a")}}class i{constructor(n,t){this.fb=n,this.formService=t,this.errInfo2={[f.ti.FILE_MAX_SIZE]:"The file max size is 500kb!"},this.buildForm()}get field1Ctrl(){return this.form?.get("field1")}ngOnInit(){}onChangeFile(n){const t=n.target;t&&t.files?.length&&(this.field1Ctrl.markAsDirty(),this.field1Ctrl.setValue(t.files[0]))}buildForm(){this.form=this.fb.group({field1:[null,this.formService.getValidatorsFromControlConfig({fileType:["image/svg+xml","image/jpeg"],maxFileSize:5e5,minFileSize:1e5})]})}}i.\u0275fac=function(n){return new(n||i)(e.Y36(r.QS),e.Y36(f.LR))},i.\u0275cmp=e.Xpm({type:i,selectors:[["app-feature1"]],standalone:!0,features:[e.jDz],decls:3,vars:1,consts:[[3,"formGroup",4,"ngIf"],[3,"formGroup"],[3,"control","errInfo"],["field-label",""],["type","file",3,"change"]],template:function(n,t){1&n&&(e.TgZ(0,"h4"),e._uU(1,"standalone component"),e.qZA(),e.YNc(2,_,6,6,"form",0)),2&n&&(e.xp6(2),e.Q6J("ngIf",t.form))},dependencies:[f.XI,f.XX,m.pT,m.y6,a.ez,a.O5,r.u5,r._Y,r.JL,r.UX,r.sg]});const u=[{path:"",component:i}]}}]); \ No newline at end of file diff --git a/docs/404.html b/docs/404.html index d9eb0f9..e301553 100644 --- a/docs/404.html +++ b/docs/404.html @@ -1,4 +1,4 @@ - + NbForm @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index d9eb0f9..e301553 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ - + NbForm @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/docs/main.3bb38a3889c1a1aa.js b/docs/main.3bb38a3889c1a1aa.js deleted file mode 100644 index 6a608cd..0000000 --- a/docs/main.3bb38a3889c1a1aa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[179],{661:()=>{function cr(e){return"function"==typeof e}let qo=!1;const Tt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else qo&&console.log("RxJS: Back to a better error behavior. Thank you. <3");qo=e},get useDeprecatedSynchronousErrorHandling(){return qo}};function Hn(e){setTimeout(()=>{throw e},0)}const ps={closed:!0,next(e){},error(e){if(Tt.useDeprecatedSynchronousErrorHandling)throw e;Hn(e)},complete(){}},Wo=Array.isArray||(e=>e&&"number"==typeof e.length);function Uu(e){return null!==e&&"object"==typeof e}const gs=(()=>{function e(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return e.prototype=Object.create(Error.prototype),e})();class _e{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof _e)n.remove(this);else if(null!==n)for(let s=0;st.concat(n instanceof gs?n.errors:n),[])}_e.EMPTY=((e=new _e).closed=!0,e);const ms="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class ne extends _e{constructor(t,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ps;break;case 1:if(!t){this.destination=ps;break}if("object"==typeof t){t instanceof ne?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ph(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Ph(this,t,n,r)}}[ms](){return this}static create(t,n,r){const o=new ne(t,n,r);return o.syncErrorThrowable=!1,o}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Ph extends ne{constructor(t,n,r,o){super(),this._parentSubscriber=t;let i,s=this;cr(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==ps&&(s=Object.create(n),cr(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;Tt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=Tt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=t,n.syncErrorThrown=!0):Hn(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;Hn(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const n=()=>this._complete.call(this._context);Tt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,n){try{t.call(this._context,n)}catch(r){if(this.unsubscribe(),Tt.useDeprecatedSynchronousErrorHandling)throw r;Hn(r)}}__tryOrSetError(t,n,r){if(!Tt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return Tt.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=o,t.syncErrorThrown=!0,!0):(Hn(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const Ko="function"==typeof Symbol&&Symbol.observable||"@@observable";function ys(e){return e}function Oh(e){return 0===e.length?ys:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let de=(()=>{class e{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function Zw(e,t,n){if(e){if(e instanceof ne)return e;if(e[ms])return e[ms]()}return e||t||n?new ne(e,t,n):new ne(ps)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||Tt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Tt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){Tt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function Qw(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof ne?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=kh(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[Ko](){return this}pipe(...n){return 0===n.length?this:Oh(n)(this)}toPromise(n){return new(n=kh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function kh(e){if(e||(e=Tt.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const kr=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class Jw extends _e{constructor(t,n){super(),this.subject=t,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,n=t.observers;if(this.subject=null,!n||0===n.length||t.isStopped||t.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Vh extends ne{constructor(t){super(t),this.destination=t}}let rt=(()=>{class e extends de{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ms](){return new Vh(this)}lift(n){const r=new Lh(this,this);return r.operator=n,r}next(n){if(this.closed)throw new kr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew Lh(t,n),e})();class Lh extends rt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){const{destination:n}=this;n&&n.next&&n.next(t)}error(t){const{destination:n}=this;n&&n.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:n}=this;return n?this.source.subscribe(t):_e.EMPTY}}function Vr(e){return e&&"function"==typeof e.schedule}function $(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Xw(e,t))}}class Xw{constructor(t,n){this.project=t,this.thisArg=n}call(t,n){return n.subscribe(new eE(t,this.project,this.thisArg))}}class eE extends ne{constructor(t,n,r){super(t),this.project=n,this.count=0,this.thisArg=r||this}_next(t){let n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const jh=e=>t=>{for(let n=0,r=e.length;ne&&"number"==typeof e.length&&"function"!=typeof e;function Hh(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const $u=e=>{if(e&&"function"==typeof e[Ko])return(e=>t=>{const n=e[Ko]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)})(e);if(Bh(e))return jh(e);if(Hh(e))return(e=>t=>(e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Hn),t))(e);if(e&&"function"==typeof e[_s])return(e=>t=>{const n=e[_s]();for(;;){let r;try{r=n.next()}catch(o){return t.error(o),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t})(e);{const n=`You provided ${Uu(e)?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Gu(e,t){return new de(n=>{const r=new _e;let o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Se(e,t){return t?function cE(e,t){if(null!=e){if(function uE(e){return e&&"function"==typeof e[Ko]}(e))return function iE(e,t){return new de(n=>{const r=new _e;return r.add(t.schedule(()=>{const o=e[Ko]();r.add(o.subscribe({next(i){r.add(t.schedule(()=>n.next(i)))},error(i){r.add(t.schedule(()=>n.error(i)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Hh(e))return function sE(e,t){return new de(n=>{const r=new _e;return r.add(t.schedule(()=>e.then(o=>{r.add(t.schedule(()=>{n.next(o),r.add(t.schedule(()=>n.complete()))}))},o=>{r.add(t.schedule(()=>n.error(o)))}))),r})}(e,t);if(Bh(e))return Gu(e,t);if(function lE(e){return e&&"function"==typeof e[_s]}(e)||"string"==typeof e)return function aE(e,t){if(!e)throw new Error("Iterable cannot be null");return new de(n=>{const r=new _e;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(t.schedule(()=>{o=e[_s](),r.add(t.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof de?e:new de($u(e))}class vs extends ne{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ds extends ne{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Cs(e,t){if(t.closed)return;if(e instanceof de)return e.subscribe(t);let n;try{n=$u(e)(t)}catch(r){t.error(r)}return n}function qe(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(qe((o,i)=>Se(e(o,i)).pipe($((s,a)=>t(o,s,i,a))),n)):("number"==typeof t&&(n=t),r=>r.lift(new dE(e,n)))}class dE{constructor(t,n=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=n}call(t,n){return n.subscribe(new fE(t,this.project,this.concurrent))}}class fE extends Ds{constructor(t,n,r=Number.POSITIVE_INFINITY){super(t),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Lr(e=Number.POSITIVE_INFINITY){return qe(ys,e)}function zu(e,t){return t?Gu(e,t):new de(jh(e))}function bs(){return function(t){return t.lift(new pE(t))}}class pE{constructor(t){this.connectable=t}call(t,n){const{connectable:r}=this;r._refCount++;const o=new gE(t,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class gE extends ne{constructor(t,n){super(t),this.connectable=n}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const n=t._refCount;if(n<=0)return void(this.connection=null);if(t._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=t._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class qu extends de{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new _e,t.add(this.source.subscribe(new yE(this.getSubject(),this))),t.closed&&(this._connection=null,t=_e.EMPTY)),t}refCount(){return bs()(this)}}const mE=(()=>{const e=qu.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class yE extends Vh{constructor(t,n){super(t),this.connectable=n}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}}}class DE{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,o=this.subjectFactory(),i=r(o).subscribe(t);return i.add(n.subscribe(o)),i}}function CE(){return new rt}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function Wu(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(se).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Ku(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const wE=ie({__forward_ref__:ie});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return se(this())},e}function P(e){return Qu(e)?e():e}function Qu(e){return"function"==typeof e&&e.hasOwnProperty(wE)&&e.__forward_ref__===ue}class C extends Error{constructor(t,n){super(function ws(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function k(e){return"string"==typeof e?e:null==e?"":String(e)}function Es(e,t){throw new C(-201,!1)}function vt(e,t){null==e&&function J(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function A(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zu(e){return Uh(e,Ms)||Uh(e,Gh)}function Uh(e,t){return e.hasOwnProperty(t)?e[t]:null}function $h(e){return e&&(e.hasOwnProperty(Yu)||e.hasOwnProperty(NE))?e[Yu]:null}const Ms=ie({\u0275prov:ie}),Yu=ie({\u0275inj:ie}),Gh=ie({ngInjectableDef:ie}),NE=ie({ngInjectorDef:ie});var x=(()=>((x=x||{})[x.Default=0]="Default",x[x.Host=1]="Host",x[x.Self=2]="Self",x[x.SkipSelf=4]="SkipSelf",x[x.Optional=8]="Optional",x))();let Ju;function At(e){const t=Ju;return Ju=e,t}function zh(e,t,n){const r=Zu(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&x.Optional?null:void 0!==t?t:void Es(se(e))}function Un(e){return{toString:e}.toString()}var Lt=(()=>((Lt=Lt||{})[Lt.OnPush=0]="OnPush",Lt[Lt.Default=1]="Default",Lt))(),Zt=(()=>(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Zt||(Zt={})),Zt))();const re=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),jr={},Y=[],Ss=ie({\u0275cmp:ie}),Xu=ie({\u0275dir:ie}),el=ie({\u0275pipe:ie}),qh=ie({\u0275mod:ie}),dn=ie({\u0275fac:ie}),Qo=ie({__NG_ELEMENT_ID__:ie});let FE=0;function fn(e){return Un(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Lt.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Y,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Zt.Emulated,id:"c"+FE++,styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.dependencies,s=e.features;return o.inputs=Qh(e.inputs,r),o.outputs=Qh(e.outputs),s&&s.forEach(a=>a(o)),o.directiveDefs=i?()=>("function"==typeof i?i():i).map(Wh).filter(Kh):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(it).filter(Kh):null,o})}function Wh(e){return X(e)||ot(e)}function Kh(e){return null!==e}const OE={};function We(e){return Un(()=>{const t={type:e.type,bootstrap:e.bootstrap||Y,declarations:e.declarations||Y,imports:e.imports||Y,exports:e.exports||Y,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(OE[e.id]=e.type),t})}function Qh(e,t){if(null==e)return jr;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const R=fn;function ge(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function X(e){return e[Ss]||null}function ot(e){return e[Xu]||null}function it(e){return e[el]||null}function Dt(e,t){const n=e[qh]||null;if(!n&&!0===t)throw new Error(`Type ${se(e)} does not have '\u0275mod' property.`);return n}const U=11;function ht(e){return Array.isArray(e)&&"object"==typeof e[1]}function Bt(e){return Array.isArray(e)&&!0===e[1]}function rl(e){return 0!=(8&e.flags)}function xs(e){return 2==(2&e.flags)}function Ns(e){return 1==(1&e.flags)}function Ht(e){return null!==e.template}function BE(e){return 0!=(256&e[2])}function gr(e,t){return e.hasOwnProperty(dn)?e[dn]:null}class $E{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ze(){return Jh}function Jh(e){return e.type.prototype.ngOnChanges&&(e.setInput=zE),GE}function GE(){const e=ep(this),t=e?.current;if(t){const n=e.previous;if(n===jr)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zE(e,t,n,r){const o=ep(e)||function qE(e,t){return e[Xh]=t}(e,{previous:jr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new $E(u&&u.currentValue,t,s===jr),e[r]=t}Ze.ngInherit=!0;const Xh="__ngSimpleChanges__";function ep(e){return e[Xh]||null}function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function Rs(e,t){return Ie(t[e])}function Rt(e,t){return Ie(t[e.index])}function ul(e,t){return e.data[t]}function Gr(e,t){return e[t]}function bt(e,t){const n=t[e];return ht(n)?n:n[0]}function ll(e){return 64==(64&e[2])}function $n(e,t){return null==t?null:e[t]}function np(e){e[18]=0}function cl(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const O={lFrame:hp(null),bindingsEnabled:!0};function op(){return O.bindingsEnabled}function v(){return O.lFrame.lView}function K(){return O.lFrame.tView}function Pe(){let e=ap();for(;null!==e&&64===e.type;)e=e.parent;return e}function ap(){return O.lFrame.currentTNode}function Yt(e,t){const n=O.lFrame;n.currentTNode=e,n.isParent=t}function dl(){return O.lFrame.isParent}function fl(){O.lFrame.isParent=!1}function st(){const e=O.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function zr(){return O.lFrame.bindingIndex++}function sM(e,t){const n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,hl(t)}function hl(e){O.lFrame.currentDirectiveIndex=e}function gl(e){O.lFrame.currentQueryIndex=e}function uM(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function dp(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&x.Host||(o=uM(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=O.lFrame=fp();return r.currentTNode=t,r.lView=e,!0}function ml(e){const t=fp(),n=e[1];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function fp(){const e=O.lFrame,t=null===e?null:e.child;return null===t?hp(e):t}function hp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function pp(){const e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gp=pp;function yl(){const e=pp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function at(){return O.lFrame.selectedIndex}function Gn(e){O.lFrame.selectedIndex=e}function Ps(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[18]+=65536),(a>11>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class ei{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Vs(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Dl=!0;function js(e){const t=Dl;return Dl=e,t}let wM=0;const Jt={};function ni(e,t){const n=bl(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Cl(r.data,e),Cl(t,null),Cl(r.blueprint,null));const o=Bs(e,t),i=e.injectorIndex;if(Dp(o)){const s=qr(o),a=Wr(o,t),u=a[1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|u[s+l]}return t[i+8]=o,i}function Cl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Bs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Ap(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Hs(e,t,n){!function EM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Qo)&&(r=n[Qo]),null==r&&(r=n[Qo]=wM++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:TM:t}(n);if("function"==typeof i){if(!dp(t,e,r))return r&x.Host?wp(o,0,r):Ep(t,n,r,o);try{const s=i(r);if(null!=s||r&x.Optional)return s;Es()}finally{gp()}}else if("number"==typeof i){let s=null,a=bl(e,t),u=-1,l=r&x.Host?t[16][6]:null;for((-1===a||r&x.SkipSelf)&&(u=-1===a?Bs(e,t):t[a+8],-1!==u&&Tp(r,!1)?(s=t[1],a=qr(u),t=Wr(u,t)):a=-1);-1!==a;){const c=t[1];if(Ip(i,a,c.data)){const d=SM(a,t,n,s,r,l);if(d!==Jt)return d}u=t[a+8],-1!==u&&Tp(r,t[1].data[a+8]===l)&&Ip(i,a,t)?(s=c,a=qr(u),t=Wr(u,t)):a=-1}}return o}function SM(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function Us(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,u=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Ht(h)&&h.type===n)return u}return null}(a,s,n,null==r?xs(a)&&Dl:r!=s&&0!=(3&a.type),o&x.Host&&i===a);return null!==c?ri(t,s,c,a):Jt}function ri(e,t,n,r){let o=e[n];const i=t.data;if(function _M(e){return e instanceof ei}(o)){const s=o;s.resolving&&function EE(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Z(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():k(e)}(i[n]));const a=js(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?At(s.injectImpl):null;dp(e,r,x.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function mM(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Jh(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==u&&At(u),js(a),s.resolving=!1,gp()}}return o}function Ip(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[dn]||wl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[dn]||wl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wl(e){return Qu(e)?()=>{const t=wl(P(e));return t&&t()}:gr(e)}function Ap(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}const Zr="__parameters__";function Jr(e,t,n){return Un(()=>{const r=function El(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(Zr)?u[Zr]:Object.defineProperty(u,Zr,{value:[]})[Zr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class T{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const NM=new T("AnalyzeForEntryComponents");function gn(e,t){e.forEach(n=>Array.isArray(n)?gn(n,t):t(n))}function Np(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function $s(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ai(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function PM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Sl(e,t){const n=Xr(e,t);if(n>=0)return e[1|n]}function Xr(e,t){return function Pp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{const s=i;jl(s,n,[],r)&&(o||(o=[]),o.push(s))}),void 0!==o&&ag(o,n),n}function ag(e,t){for(let n=0;n{t.push(i)})}}function jl(e,t,n,r){if(!(e=P(e)))return!1;let o=null,i=$h(e);const s=!i&&X(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=$h(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of u)jl(l,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{gn(i.imports,c=>{jl(c,t,n,r)&&(l||(l=[]),l.push(c))})}finally{}void 0!==l&&ag(l,t)}if(!a){const l=gr(o)||(()=>new o);t.push({provide:o,useFactory:l,deps:Y},{provide:og,useValue:o,multi:!0},{provide:Ll,useValue:()=>M(o),multi:!0})}const u=i.providers;null==u||a||gn(u,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}const NS=ie({provide:String,useValue:ie});function Bl(e){return null!==e&&"object"==typeof e&&NS in e}function yr(e){return"function"==typeof e}const Hl=new T("Set Injector scope."),Xs={},FS={};let Ul;function ea(){return void 0===Ul&&(Ul=new ig),Ul}class Kn{}class cg extends Kn{constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Gl(t,s=>this.processProvider(s)),this.records.set(rg,ro(void 0,this)),o.has("environment")&&this.records.set(Kn,ro(void 0,this));const i=this.records.get(Hl);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(og.multi,Y,x.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=eo(this),r=At(void 0);try{return t()}finally{eo(n),At(r)}}get(t,n=ui,r=x.Default){this.assertNotDestroyed();const o=eo(this),i=At(void 0);try{if(!(r&x.SkipSelf)){let a=this.records.get(t);if(void 0===a){const u=function LS(e){return"function"==typeof e||"object"==typeof e&&e instanceof T}(t)&&Zu(t);a=u&&this.injectableDefInScope(u)?ro($l(t),Xs):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&x.Self?ea():this.parent).get(t,n=r&x.Optional&&n===ui?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[zs]=s[zs]||[]).unshift(se(t)),o)throw s;return function qM(e,t,n,r){const o=e[zs];throw t[Op]&&o.unshift(t[Op]),e.message=function WM(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=se(t);if(Array.isArray(t))o=t.map(se).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):se(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(UM,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[zs]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{At(i),eo(o)}}resolveInjectorInitializers(){const t=eo(this),n=At(void 0);try{const r=this.get(Ll.multi,Y,x.Self);for(const o of r)o()}finally{eo(t),At(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(se(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=yr(t=P(t))?t:P(t&&t.provide);const r=function OS(e){return Bl(e)?ro(void 0,e.useValue):ro(dg(e),Xs)}(t);if(yr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=ro(void 0,Xs,!0),o.factory=()=>Al(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===Xs&&(n.value=FS,n.value=n.factory()),"object"==typeof n.value&&n.value&&function VS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=P(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function $l(e){const t=Zu(e),n=null!==t?t.factory:gr(e);if(null!==n)return n;if(e instanceof T)throw new C(204,!1);if(e instanceof Function)return function PS(e){const t=e.length;if(t>0)throw ai(t,"?"),new C(204,!1);const n=function AE(e){const t=e&&(e[Ms]||e[Gh]);if(t){const n=function xE(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new C(204,!1)}function dg(e,t,n){let r;if(yr(e)){const o=P(e);return gr(o)||$l(o)}if(Bl(e))r=()=>P(e.useValue);else if(function lg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Al(e.deps||[]));else if(function ug(e){return!(!e||!e.useExisting)}(e))r=()=>M(P(e.useExisting));else{const o=P(e&&(e.useClass||e.provide));if(!function kS(e){return!!e.deps}(e))return gr(o)||$l(o);r=()=>new o(...Al(e.deps))}return r}function ro(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function jS(e){return!!e.\u0275providers}function Gl(e,t){for(const n of e)Array.isArray(n)?Gl(n,t):jS(n)?Gl(n.\u0275providers,t):t(n)}class fg{}class US{resolveComponentFactory(t){throw function HS(e){const t=Error(`No component factory found for ${se(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let yi=(()=>{class e{}return e.NULL=new US,e})();function $S(){return oo(Pe(),v())}function oo(e,t){return new pt(Rt(e,t))}let pt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=$S,e})();class pg{}let mn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function zS(){const e=v(),n=bt(Pe().index,e);return(ht(n)?n:e)[U]}(),e})(),qS=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>null}),e})();class _i{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const WS=new _i("14.1.0"),zl={};function Zl(e){return e.ngOriginalError}class io{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Zl(t);for(;n&&Zl(n);)n=Zl(n);return n||null}}const Yl=new Map;let sI=0;const Xl="__ngContext__";function Ye(e,t){ht(t)?(e[Xl]=t[20],function uI(e){Yl.set(e[20],e)}(t)):e[Xl]=t}function vi(e){const t=e[Xl];return"number"==typeof t?function vg(e){return Yl.get(e)||null}(t):t||null}function ec(e){const t=vi(e);return t?ht(t)?t:t.lView:null}const yI=(()=>(typeof requestAnimationFrame<"u"&&requestAnimationFrame||setTimeout).bind(re))();function yn(e){return e instanceof Function?e():e}var gt=(()=>((gt=gt||{})[gt.Important=1]="Important",gt[gt.DashCase=2]="DashCase",gt))();function nc(e,t){return undefined(e,t)}function Di(e){const t=e[3];return Bt(t)?t[3]:t}function rc(e){return Ig(e[13])}function oc(e){return Ig(e[4])}function Ig(e){for(;null!==e&&!Bt(e);)e=e[4];return e}function ao(e,t,n,r,o){if(null!=r){let i,s=!1;Bt(r)?i=r:ht(r)&&(s=!0,r=r[0]);const a=Ie(r);0===e&&null!==n?null==o?Fg(t,n,a):_r(t,n,a,o||null,!0):1===e&&null!==n?_r(t,n,a,o||null,!0):2===e?function Bg(e,t,n){const r=ta(e,t);r&&function OI(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function LI(e,t,n,r,o){const i=n[7];i!==Ie(n)&&ao(t,e,r,i,o);for(let a=10;a0&&(e[n-1][4]=r[4]);const i=$s(e,10+t);!function II(e,t){Ci(e,t,t[U],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function xg(e,t){if(!(128&t[2])){const n=t[U];n.destroyNode&&Ci(e,t,n,3,null,null),function xI(e){let t=e[13];if(!t)return uc(e[1],e);for(;t;){let n=null;if(ht(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)ht(t)&&uc(t[1],t),t=t[3];null===t&&(t=e),ht(t)&&uc(t[1],t),n=t&&t[4]}t=n}}(t)}}function uc(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function PI(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==$g(h,l,0)||2&r&&l!==f){if(Ut(r))return!1;s=!0}}}}else{if(!s&&!Ut(r)&&!Ut(u))return!1;if(s&&Ut(u))continue;s=!1,r=u|1&r}}return Ut(r)||s}function Ut(e){return 0==(1&e)}function $I(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ut(s)&&(t+=Wg(i,o),o=""),r=s,i=i||!Ut(r);n++}return""!==o&&(t+=Wg(i,o)),t}const V={};function j(e){Kg(K(),v(),at()+e,!1)}function Kg(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&Os(t,i,n)}else{const i=e.preOrderHooks;null!==i&&ks(t,i,0,n)}Gn(n)}function Jg(e,t=null,n=null,r){const o=Xg(e,t,n,r);return o.resolveInjectorInitializers(),o}function Xg(e,t=null,n=null,r,o=new Set){const i=[n||Y,xS(e)];return r=r||("object"==typeof e?void 0:se(e)),new cg(i,t||ea(),r||null,o)}let Mt=(()=>{class e{static create(n,r){if(Array.isArray(n))return Jg({name:""},r,n,"");{const o=n.name??"";return Jg({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=ui,e.NULL=new ig,e.\u0275prov=A({token:e,providedIn:"any",factory:()=>M(rg)}),e.__NG_ELEMENT_ID__=-1,e})();function m(e,t=x.Default){const n=v();return null===n?M(e,t):Mp(Pe(),n,P(e),t)}function yc(){throw new Error("invalid")}function ia(e,t){return e<<17|t<<2}function $t(e){return e>>17&32767}function _c(e){return 2|e}function _n(e){return(131068&e)>>2}function vc(e,t){return-131069&e|t<<2}function Dc(e){return 1|e}function mm(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&Kg(e,t,22,!1),n(r,o)}finally{Gn(i)}}function _m(e,t,n){if(rl(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function Mm(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Sm(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function H0(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Oc(n)}}function Oc(e){for(let r=rc(e);null!==r;r=oc(r))for(let o=10;o0&&Oc(i)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Oc(o)}}function K0(e,t){const n=bt(t,e),r=n[1];(function Q0(e,t){for(let n=t.length;nPromise.resolve(null))();function Rm(e){return e[7]||(e[7]=[])}function Fm(e){return e.cleanup||(e.cleanup=[])}function Om(e,t){const n=e[9],r=n?n.get(io,null):null;r&&r.handleError(t)}function jc(e,t,n,r,o){for(let i=0;i-1&&(ac(t,r),$s(n,r))}this._attachedToViewContainer=!1}xg(this._lView[1],this._lView)}onDestroy(t){!function Dm(e,t,n,r){const o=Rm(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Fm(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){kc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function Vc(e,t,n){const r=t[10];r.begin&&r.begin();try{bi(e,t,e.template,n)}catch(o){throw Om(t,o),o}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function AI(e,t){Ci(e,t,t[U],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class J0 extends wi{constructor(t){super(t),this._view=t}detectChanges(){Nm(this._view)}checkNoChanges(){}get context(){return null}}class Bc extends yi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=X(t);return new Ei(n,this.ngModule)}}function km(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class eT{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,zl,r);return o!==zl||n===zl?o:this.parentInjector.get(t,n,r)}}class Ei extends fg{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function QI(e){return e.map(KI).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return km(this.componentDef.inputs)}get outputs(){return km(this.componentDef.outputs)}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof Kn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new eT(t,i):t,a=s.get(pg,null);if(null===a)throw new C(407,!1);const u=s.get(qS,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",d=r?function N0(e,t,n){return e.selectRootElement(t,n===Zt.ShadowDom)}(l,r,this.componentDef.encapsulation):sc(a.createRenderer(null,this.componentDef),c,function X0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(c)),f=this.componentDef.onPush?288:272,h=function iT(e,t){return{components:[],scheduler:e||yI,clean:Y0,playerHandler:t||null,flags:0}}(),p=Rc(0,null,null,1,0,null,null,null,null,null),g=ua(null,p,h,f,null,null,a,l,u,s,null);let _,D;ml(g);try{const b=function rT(e,t,n,r,o,i){const s=n[1];n[22]=e;const u=lo(s,22,2,"#host",null),l=u.mergedAttrs=t.hostAttrs;null!==l&&(da(u,l,!0),null!==e&&(Vs(o,e,l),null!==u.classes&&fc(o,e,u.classes),null!==u.styles&&Ug(o,e,u.styles)));const c=r.createRenderer(e,t),d=ua(n,vm(t),null,t.onPush?32:16,n[22],u,r,c,i||null,null,null);return s.firstCreatePass&&(Hs(ni(u,n),s,t.type),Sm(s,u),Im(u,n.length,1)),ca(n,d),n[22]=d}(d,this.componentDef,g,a,l);if(d)if(r)Vs(l,d,["ng-version",WS.full]);else{const{attrs:y,classes:S}=function ZI(e){const t=[],n=[];let r=1,o=2;for(;r0&&fc(l,d,S.join(" "))}if(D=ul(p,22),void 0!==n){const y=D.projection=[];for(let S=0;S=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ls(o.hostAttrs,n=Ls(n,o.hostAttrs))}}(r)}function Hc(e){return e===jr?{}:e===Y?[]:e}function uT(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function lT(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function cT(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function tn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ee(e,t,n,r,o,i,s,a){const u=v(),l=K(),c=e+22,d=l.firstCreatePass?function vT(e,t,n,r,o,i,s,a,u){const l=t.consts,c=lo(t,e,4,s||null,$n(l,a));Fc(t,n,c,$n(l,u)),Ps(t,c);const d=c.tViews=Rc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,l,u,t,n,r,o,i,s):l.data[c];Yt(d,!1);const f=u[U].createComment("");na(l,u,f,d),Ye(f,u),ca(u,u[c]=Am(f,u,f,d)),Ns(d)&&xc(l,u,d),null!=s&&Nc(u,d,a)}function G(e,t,n){const r=v();return Je(r,zr(),t)&&function St(e,t,n,r,o,i,s,a){const u=Rt(t,n);let c,l=t.inputs;!a&&null!=l&&(c=l[r])?(jc(e,n,c,r,o),xs(t)&&wm(n,t.index)):3&t.type&&(r=function F0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(u,r,o))}(K(),function Ce(){const e=O.lFrame;return ul(e.tView,e.selectedIndex)}(),r,e,t,r[U],n,!1),G}function $c(e,t,n,r,o){const s=o?"class":"style";jc(e,n,t.inputs[s],s,r)}function te(e,t,n,r){const o=v(),i=K(),s=22+e,a=o[U],u=o[s]=sc(a,t,function gM(){return O.lFrame.currentNamespace}()),l=i.firstCreatePass?function CT(e,t,n,r,o,i,s){const a=t.consts,l=lo(t,e,2,o,$n(a,i));return Fc(t,n,l,$n(a,s)),null!==l.attrs&&da(l,l.attrs,!1),null!==l.mergedAttrs&&da(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,0,t,n,r):i.data[s];Yt(l,!0);const c=l.mergedAttrs;null!==c&&Vs(a,u,c);const d=l.classes;null!==d&&fc(a,u,d);const f=l.styles;return null!==f&&Ug(a,u,f),64!=(64&l.flags)&&na(i,o,u,l),0===function XE(){return O.lFrame.elementDepthCount}()&&Ye(u,o),function eM(){O.lFrame.elementDepthCount++}(),Ns(l)&&(xc(i,o,l),_m(i,l,o)),null!==r&&Nc(o,l),te}function Q(){let e=Pe();dl()?fl():(e=e.parent,Yt(e,!1));const t=e;!function tM(){O.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Ps(n,e),rl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function DM(e){return 0!=(16&e.flags)}(t)&&$c(n,t,v(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function CM(e){return 0!=(32&e.flags)}(t)&&$c(n,t,v(),t.stylesWithoutHost,!1),Q}function mt(e,t,n,r){return te(e,t,n,r),Q(),mt}function Dn(e,t,n){const r=v(),o=K(),i=e+22,s=o.firstCreatePass?function bT(e,t,n,r,o){const i=t.consts,s=$n(i,r),a=lo(t,e,8,"ng-container",s);return null!==s&&da(a,s,!0),Fc(t,n,a,$n(i,o)),null!==t.queries&&t.queries.elementStart(t,a),a}(i,o,r,t,n):o.data[i];Yt(s,!0);const a=r[i]=r[U].createComment("");return na(o,r,a,s),Ye(a,r),Ns(s)&&(xc(o,r,s),_m(o,s,r)),null!=n&&Nc(r,s),Dn}function Cn(){let e=Pe();const t=K();return dl()?fl():(e=e.parent,Yt(e,!1)),t.firstCreatePass&&(Ps(t,e),rl(e)&&t.queries.elementEnd(e)),Cn}function Ii(e){return!!e&&"function"==typeof e.then}function Km(e){return!!e&&"function"==typeof e.subscribe}const Gc=Km;function je(e,t,n,r){const o=v(),i=K(),s=Pe();return function Zm(e,t,n,r,o,i,s,a){const u=Ns(r),c=e.firstCreatePass&&Fm(e),d=t[8],f=Rm(t);let h=!0;if(3&r.type||a){const _=Rt(r,t),D=a?a(_):_,b=f.length,y=a?L=>a(Ie(L[r.index])):r.index;let S=null;if(!a&&u&&(S=function wT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,h=!1;else{i=Jm(r,t,d,i,!1);const L=n.listen(D,o,i);f.push(i,L),c&&c.push(o,y,b,b+1)}}else i=Jm(r,t,d,i,!1);const p=r.outputs;let g;if(h&&null!==p&&(g=p[o])){const _=g.length;if(_)for(let D=0;D<_;D+=2){const pe=t[g[D]][g[D+1]].subscribe(i),Or=f.length;f.push(i,pe),c&&c.push(o,r.index,Or,-(Or+1))}}}(i,o,o[U],s,e,t,0,r),je}function Ym(e,t,n,r){try{return!1!==n(r)}catch(o){return Om(e,o),!1}}function Jm(e,t,n,r,o){return function i(s){if(s===Function)return r;kc(2&e.flags?bt(e.index,t):t);let u=Ym(t,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=Ym(t,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Ae(e=1){return function lM(e){return(O.lFrame.contextLView=function cM(e,t){for(;e>0;)t=t[15],e--;return t}(e,O.lFrame.contextLView))[8]}(e)}function ET(e,t){let n=null;const r=function GI(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o=0}function ga(e,t){return function Gt(e,t,n,r){const o=v(),i=K(),s=function pn(e){const t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function _y(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[at()],s=function yy(e,t){return t>=e.expandoStartIndex}(e,n);(function by(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function kT(e,t,n,r){const o=function pl(e){const t=O.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ti(n=Wc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Wc(o,e,t,n,r),null===i){let u=function VT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==_n(r))return e[$t(r)]}(e,t,r);void 0!==u&&Array.isArray(u)&&(u=Wc(null,e,t,u[1],r),u=Ti(u,t.attrs,r),function LT(e,t,n,r){e[$t(n?t.classBindings:t.styleBindings)]=r}(e,t,r,u))}else i=function jT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=$t(e[a+1]);e[r+1]=ia(f,a),0!==f&&(e[f+1]=vc(e[f+1],r)),e[a+1]=function m0(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ia(a,0),0!==a&&(e[a+1]=vc(e[a+1],r)),a=r;else e[r+1]=ia(u,0),0===a?a=r:e[u+1]=vc(e[u+1],r),u=r;l&&(e[r+1]=_c(e[r+1])),ly(e,c,r,!0),ly(e,c,r,!1),function ST(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Xr(i,t)>=0&&(n[r+1]=Dc(n[r+1]))}(t,c,e,r,i),s=ia(a,u),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==V&&Je(o,s,t)&&function Dy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const u=e.data,l=u[a+1];ma(function um(e){return 1==(1&e)}(l)?Cy(u,t,n,o,_n(l),s):void 0)||(ma(i)||function am(e){return 2==(2&e)}(l)&&(i=Cy(u,null,n,o,a,s)),function jI(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:gt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=gt.Important),e.setStyle(n,r,o,i))}}(r,s,Rs(at(),n),o,i))}(i,i.data[at()],o,o[U],e,o[s+1]=function UT(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=se(function Wn(e){return e instanceof class Kp{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),ga}function Wc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=e[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===V&&(f=d?Y:void 0);let h=d?Sl(f,r):c===r?f:void 0;if(l&&!ma(h)&&(h=Sl(u,r)),ma(h)&&(a=h,s))return a;const p=e[o+1];o=s?$t(p):_n(p)}if(null!==t){let u=i?t.residualClasses:t.residualStyles;null!=u&&(a=Sl(u,r))}return a}function ma(e){return void 0!==e}function ae(e,t=""){const n=v(),r=K(),o=e+22,i=r.firstCreatePass?lo(r,o,1,t,null):r.data[o],s=n[o]=function ic(e,t){return e.createText(t)}(n[U],t);na(r,n,s,i),Yt(i,!1)}function $e(e){return wn("",e,""),$e}function wn(e,t,n){const r=v(),o=function ho(e,t,n,r){return Je(e,zr(),n)?t+k(n)+r:V}(r,e,t,n);return o!==V&&function vn(e,t,n){const r=Rs(t,e);!function Tg(e,t,n){e.setValue(t,n)}(e[U],r,n)}(r,at(),o),wn}const Eo="en-US";let $y=Eo;function Zc(e,t,n,r,o){if(e=P(e),Array.isArray(e))for(let i=0;i>20;if(yr(e)||!e.multi){const h=new ei(u,o,m),p=Jc(a,t,o?c:c+f,d);-1===p?(Hs(ni(l,s),i,a),Yc(i,e,t.length),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Jc(a,t,c+f,d),p=Jc(a,t,c,c+f),g=h>=0&&n[h],_=p>=0&&n[p];if(o&&!_||!o&&!g){Hs(ni(l,s),i,a);const D=function sx(e,t,n,r,o){const i=new ei(e,n,m);return i.multi=[],i.index=t,i.componentProviders=0,p_(i,o,r&&!n),i}(o?ix:ox,n.length,o,r,u);!o&&_&&(n[p].providerFactory=D),Yc(i,e,t.length,0),t.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Yc(i,e,h>-1?h:p,p_(n[o?p:h],u,!o&&r));!o&&r&&_&&n[p].componentProviders++}}}function Yc(e,t,n,r){const o=yr(t),i=function RS(e){return!!e.useClass}(t);if(o||i){const u=(i?P(t.useClass):t).prototype.ngOnDestroy;if(u){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function p_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Jc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function rx(e,t,n){const r=K();if(r.firstCreatePass){const o=Ht(e);Zc(n,r.data,r.blueprint,o,!0),Zc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class br{}class g_{}class m_ extends br{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bc(this);const r=Dt(t);this._bootstrapComponents=yn(r.bootstrap),this._r3Injector=Xg(t,n,[{provide:br,useValue:this},{provide:yi,useValue:this.componentFactoryResolver}],se(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ed extends g_{constructor(t){super(),this.moduleType=t}create(t){return new m_(this.moduleType,t)}}class ux extends br{constructor(t,n,r){super(),this.componentFactoryResolver=new Bc(this),this.instance=null;const o=new cg([...t,{provide:br,useValue:this},{provide:yi,useValue:this.componentFactoryResolver}],n||ea(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ba(e,t,n=null){return new ux(e,t,n).injector}function Fi(e,t){const n=e[t];return n===V?void 0:n}function M_(e,t,n,r,o,i,s){const a=t+n;return function Dr(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}(e,a,o,i)?tn(e,a+2,s?r.call(s,o,i):r(o,i)):Fi(e,a+2)}function oe(e,t){const n=K();let r;const o=e+22;n.firstCreatePass?(r=function Ix(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=gr(r.type)),s=At(m);try{const a=js(!1),u=i();return js(a),function DT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,v(),o,u),u}finally{At(s)}}function fe(e,t,n){const r=e+22,o=v(),i=Gr(o,r);return Pi(o,r)?function E_(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?tn(e,s+1,i?r.call(i,o):r(o)):Fi(e,s+1)}(o,st(),t,i.transform,n,i):i.transform(n)}function Pi(e,t){return e[1].data[t].pure}function nd(e){return t=>{setTimeout(e,void 0,t)}}const we=class Nx extends rt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const u=t;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=nd(i),o&&(o=nd(o)),s&&(s=nd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof _e&&t.add(a),a}};let sn=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ox,e})();const Fx=sn,Px=class extends Fx{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=ua(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(o[19]=s.createEmbeddedView(r)),la(r,o,t),new wi(o)}};function Ox(){return function Ea(e,t){return 4&e.type?new Px(t,e,oo(e,t)):null}(Pe(),v())}let qt=(()=>{class e{}return e.__NG_ELEMENT_ID__=kx,e})();function kx(){return function N_(e,t){let n;const r=t[e.index];if(Bt(r))n=r;else{let o;if(8&e.type)o=Ie(r);else{const i=t[U];o=i.createComment("");const s=Rt(e,t);_r(i,ta(i,s),o,function kI(e,t){return e.nextSibling(t)}(i,s),!1)}t[e.index]=n=Am(r,t,o,e),ca(t,n)}return new A_(n,e,t)}(Pe(),v())}const Vx=qt,A_=class extends Vx{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return oo(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bs(this._hostTNode,this._hostLView);if(Dp(t)){const n=Wr(t,this._hostLView),r=qr(t);return new Kr(n[1].data[r+8],n)}return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=x_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const s=t.createEmbeddedView(n||{},i);return this.insert(s,o),s}createComponent(t,n,r,o,i){const s=t&&!function si(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.environmentInjector||d.ngModuleRef}const u=s?t:new Ei(X(t)),l=r||this.parentInjector;if(!i&&null==u.ngModule){const f=(s?l:this.parentInjector).get(Kn,null);f&&(i=f)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(t,n){const r=t._lView,o=r[1];if(function JE(e){return Bt(e[3])}(r)){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new A_(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function NI(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r{class e{constructor(n){this.appInits=n,this.resolve=Sa,this.reject=Sa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(M(Ia,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Vi=new T("AppId",{providedIn:"root",factory:function tv(){return`${yd()}${yd()}${yd()}`}});function yd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nv=new T("Platform Initializer"),_d=new T("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),rv=new T("appBootstrapListener");let fN=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const En=new T("LocaleId",{providedIn:"root",factory:()=>qn(En,x.Optional|x.SkipSelf)||function hN(){return typeof $localize<"u"&&$localize.locale||Eo}()});class gN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let vd=(()=>{class e{compileModuleSync(n){return new ed(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=yn(Dt(n).declarations).reduce((s,a)=>{const u=X(a);return u&&s.push(new Ei(u)),s},[]);return new gN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const _N=(()=>Promise.resolve(0))();function Dd(e){typeof Zone>"u"?_N.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class xe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new we(!1),this.onMicrotaskEmpty=new we(!1),this.onStable=new we(!1),this.onError=new we(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;if(o._nesting=0,o._outer=o._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const i=Zone.AsyncStackTaggingZoneSpec;o._inner=o._inner.fork(new i("Angular"))}Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function vN(){let e=re.requestAnimationFrame,t=re.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function bN(e){const t=()=>{!function CN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(re,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,bd(e),e.isCheckStableRunning=!0,Cd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),bd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return sv(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),av(e)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return sv(e),n.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),av(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,bd(e),Cd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xe.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(xe.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,DN,Sa,Sa);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)}}const DN={};function Cd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function bd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function sv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function av(e){e._nesting--,Cd(e)}class wN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new we,this.onMicrotaskEmpty=new we,this.onStable=new we,this.onError=new we}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)}}const uv=new T(""),Aa=new T("");let Md,wd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Md||(function EN(e){Md=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xe.assertNotInAngularZone(),Dd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(M(xe),M(Ed),M(Aa))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Ed=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Md?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Yn=null;const lv=new T("AllowMultipleToken"),Sd=new T("PlatformDestroyListeners");class cv{constructor(t,n){this.name=t,this.token=n}}function fv(e,t,n=[]){const r=`Platform: ${t}`,o=new T(r);return(i=[])=>{let s=Id();if(!s||s.injector.get(lv,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function IN(e){if(Yn&&!Yn.get(lv,!1))throw new C(400,!1);Yn=e;const t=e.get(pv);(function dv(e){const t=e.get(nv,null);t&&t.forEach(n=>n())})(e)}(function hv(e=[],t){return Mt.create({name:t,providers:[{provide:Hl,useValue:"platform"},{provide:Sd,useValue:new Set([()=>Yn=null])},...e]})}(a,r))}return function AN(e){const t=Id();if(!t)throw new C(401,!1);return t}()}}function Id(){return Yn?.get(pv)??null}let pv=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function xN(e,t){let n;return n="noop"===e?new wN:("zone.js"===e?void 0:e)||new xe(t),n}(r?.ngZone,function gv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),i=[{provide:xe,useValue:o}];return o.run(()=>{const s=Mt.create({providers:i,parent:this.injector,name:n.moduleType.name}),a=n.create(s),u=a.injector.get(io,null);if(!u)throw new C(402,!1);return o.runOutsideAngular(()=>{const l=o.onError.subscribe({next:c=>{u.handleError(c)}});a.onDestroy(()=>{Na(this._modules,a),l.unsubscribe()})}),function mv(e,t,n){try{const r=n();return Ii(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(u,o,()=>{const l=a.injector.get(Ta);return l.runInitializers(),l.donePromise.then(()=>(function Gy(e){vt(e,"Expected localeId to be defined"),"string"==typeof e&&($y=e.toLowerCase().replace(/_/g,"-"))}(a.injector.get(En,Eo)||Eo),this._moduleDoBootstrap(a),a))})})}bootstrapModule(n,r=[]){const o=yv({},r);return function MN(e,t,n){const r=new ed(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Sd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(M(Mt))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function yv(e,t){return Array.isArray(t)?t.reduce(yv,e):{...e,...t}}let xa=(()=>{class e{constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new de(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new de(a=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{xe.assertNotInAngularZone(),Dd(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const l=this._zone.onUnstable.subscribe(()=>{xe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{u.unsubscribe(),l.unsubscribe()}});this.isStable=function hE(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return Vr(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof de?e[0]:Lr(t)(zu(e,n))}(i,s.pipe(function bE(){return e=>bs()(function vE(e,t){return function(r){let o;if(o="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new DE(o,t));const i=Object.create(r,mE);return i.source=r,i.subjectFactory=o,i}}(CE)(e))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof fg;if(!this._injector.get(Ta).done)throw!o&&function Io(e){const t=X(e)||ot(e)||it(e);return null!==t&&t.standalone}(n),new C(405,false);let s;s=o?n:this._injector.get(yi).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function SN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(br),l=s.create(Mt.NULL,[],r||s.selector,a),c=l.location.nativeElement,d=l.injector.get(uv,null);return d?.registerApplication(c),l.onDestroy(()=>{this.detachView(l.hostView),Na(this.components,l),d?.unregisterApplication(c)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Na(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(rv,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Na(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(M(xe),M(Kn),M(io))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Na(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let vv=!0,Sn=(()=>{class e{}return e.__NG_ELEMENT_ID__=FN,e})();function FN(e){return function PN(e,t,n){if(xs(e)&&!n){const r=bt(e.index,t);return new wi(r,r)}return 47&e.type?new wi(t[16],t):null}(Pe(),v(),16==(16&e))}const WN=fv(null,"core",[]);let KN=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(M(xa))},e.\u0275mod=We({type:e}),e.\u0275inj=He({}),e})(),Oa=null;function an(){return Oa}const dt=new T("DocumentToken");let ka=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return function JN(){return M(xv)}()},providedIn:"platform"}),e})();const XN=new T("Location Initialized");let xv=(()=>{class e extends ka{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return an().getBaseHref(this._doc)}onPopState(n){const r=an().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=an().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){Nv()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){Nv()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)(M(dt))},e.\u0275prov=A({token:e,factory:function(){return function eR(){return new xv(M(dt))}()},providedIn:"platform"}),e})();function Nv(){return!!window.history.pushState}function Rd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function Rv(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Tn(e){return e&&"?"!==e[0]?"?"+e:e}let Mr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return function tR(){const e=M(dt).location;return new Pv(M(ka),e&&e.origin||"")}()},providedIn:"root"}),e})();const Fv=new T("appBaseHref");let Pv=(()=>{class e extends Mr{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(n){return Rd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Tn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Tn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Tn(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)}}return e.\u0275fac=function(n){return new(n||e)(M(ka),M(Fv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),nR=(()=>{class e extends Mr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(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=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Rd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Tn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Tn(i));0==s.length&&(s=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)}}return e.\u0275fac=function(n){return new(n||e)(M(ka),M(Fv,8))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Fd=(()=>{class e{constructor(n){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._baseHref=Rv(Ov(r)),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Tn(r))}normalize(n){return e.stripTrailingSlash(function oR(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ov(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+Tn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Tn(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._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(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,complete:o})}}return e.normalizeQueryParams=Tn,e.joinWithSlash=Rd,e.stripTrailingSlash=Rv,e.\u0275fac=function(n){return new(n||e)(M(Mr))},e.\u0275prov=A({token:e,factory:function(){return function rR(){return new Fd(M(Mr))}()},providedIn:"root"}),e})();function Ov(e){return e.replace(/\/index.html$/,"")}function Gv(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}let qa=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new zR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Qv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Qv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(m(qt),m(sn))},e.\u0275dir=R({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class zR{constructor(){this.$implicit=null,this.ngIf=null}}function Qv(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${se(t)}'.`)}class $d{constructor(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ao=(()=>{class e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}_matchCase(n){const r=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(let r=0;r{class e{constructor(n,r,o){this.ngSwitch=o,o._addCase(),this._view=new $d(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return e.\u0275fac=function(n){return new(n||e)(m(qt),m(sn),m(Ao,9))},e.\u0275dir=R({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),e})(),Gd=(()=>{class e{constructor(n,r,o){o._addDefault(new $d(n,r))}}return e.\u0275fac=function(n){return new(n||e)(m(qt),m(sn),m(Ao,9))},e.\u0275dir=R({type:e,selectors:[["","ngSwitchDefault",""]],standalone:!0}),e})();class KR{createSubscription(t,n){return t.subscribe({next:n,error:r=>{throw r}})}dispose(t){t.unsubscribe()}}class QR{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}}const ZR=new QR,YR=new KR;let Yv=(()=>{class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Ii(n))return ZR;if(Km(n))return YR;throw function Qt(e,t){return new C(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return e.\u0275fac=function(n){return new(n||e)(m(Sn,16))},e.\u0275pipe=ge({name:"async",type:e,pure:!1,standalone:!0}),e})(),Ka=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({}),e})();let yF=(()=>{class e{}return e.\u0275prov=A({token:e,providedIn:"root",factory:()=>new _F(M(dt),window)}),e})();class _F{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function vF(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow)){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=eD(this.window.history)||eD(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function eD(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class tD{}class Kd extends class DF extends class YN{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function ZN(e){Oa||(Oa=e)}(new Kd)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).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"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function CF(){return Hi=Hi||document.querySelector("base"),Hi?Hi.getAttribute("href"):null}();return null==n?null:function bF(e){Qa=Qa||document.createElement("a"),Qa.setAttribute("href",e);const t=Qa.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Hi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Gv(document.cookie,t)}}let Qa,Hi=null;const nD=new T("TRANSITION_ID"),EF=[{provide:Ia,useFactory:function wF(e,t,n){return()=>{n.get(Ta).donePromise.then(()=>{const r=an(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Za=new T("EventManagerPlugins");let Ya=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),Ui=(()=>{class e extends oD{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(iD),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(iD))}}return e.\u0275fac=function(n){return new(n||e)(M(dt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function iD(e){an().remove(e)}const Qd={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/MathML/"},Zd=/%COMP%/g;function Ja(e,t,n){for(let r=0;r{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Yd=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Jd(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Zt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new RF(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Zt.ShadowDom:return new FF(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Ja(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(M(Ya),M(Ui),M(Vi))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class Jd{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?document.createElementNS(Qd[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){(cD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(cD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);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;const i=Qd[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=Qd[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&(gt.DashCase|gt.Important)?t.style.setProperty(n,r,o>.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r>.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,uD(r)):this.eventManager.addEventListener(t,n,uD(r))}}function cD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class RF extends Jd{constructor(t,n,r,o){super(t),this.component=r;const i=Ja(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function AF(e){return"_ngcontent-%COMP%".replace(Zd,e)}(o+"-"+r.id),this.hostAttr=function xF(e){return"_nghost-%COMP%".replace(Zd,e)}(o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class FF extends Jd{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ja(o.id,o.styles,[]);for(let s=0;s{class e extends rD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(M(dt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const dD=["alt","control","meta","shift"],kF={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fD={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},VF={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let LF=(()=>{class e extends rD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>an().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="";if(dD.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function jF(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&fD.hasOwnProperty(t)&&(t=fD[t]))}return kF[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),dD.forEach(i=>{i!=o&&(0,VF[i])(n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{e.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(M(dt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const hD=[{provide:_d,useValue:"browser"},{provide:nv,useValue:function BF(){Kd.makeCurrent()},multi:!0},{provide:dt,useFactory:function UF(){return function rS(e){Nl=e}(document),document},deps:[]}],$F=fv(WN,"browser",hD),pD=new T(""),gD=[{provide:Aa,useClass:class MF{addToWindow(t){re.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},re.getAllAngularTestabilities=()=>t.getAllTestabilities(),re.getAllAngularRootElements=()=>t.getAllRootElements(),re.frameworkStabilizers||(re.frameworkStabilizers=[]),re.frameworkStabilizers.push(r=>{const o=re.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?an().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:uv,useClass:wd,deps:[xe,Ed,Aa]},{provide:wd,useClass:wd,deps:[xe,Ed,Aa]}],mD=[{provide:Hl,useValue:"root"},{provide:io,useFactory:function HF(){return new io},deps:[]},{provide:Za,useClass:PF,multi:!0,deps:[dt,xe,_d]},{provide:Za,useClass:LF,multi:!0,deps:[dt]},{provide:Yd,useClass:Yd,deps:[Ya,Ui,Vi]},{provide:pg,useExisting:Yd},{provide:oD,useExisting:Ui},{provide:Ui,useClass:Ui,deps:[dt]},{provide:Ya,useClass:Ya,deps:[Za,xe]},{provide:tD,useClass:SF,deps:[]},[]];let GF=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Vi,useValue:n.appId},{provide:nD,useExisting:Vi},EF]}}}return e.\u0275fac=function(n){return new(n||e)(M(pD,12))},e.\u0275mod=We({type:e}),e.\u0275inj=He({providers:[...mD,...gD],imports:[Ka,KN]}),e})(),yD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(M(dt))},e.\u0275prov=A({token:e,factory:function(n){let r=null;return r=n?new n:function qF(){return new yD(M(dt))}(),r},providedIn:"root"}),e})();function Xa(e,t){return new de(n=>{const r=e.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(t?t.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}typeof window<"u"&&window;let DD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(m(mn),m(pt))},e.\u0275dir=R({type:e}),e})(),Sr=(()=>{class e extends DD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275dir=R({type:e,features:[ee]}),e})();const un=new T("NgValueAccessor"),r1={provide:un,useExisting:ue(()=>eu),multi:!0},i1=new T("CompositionEventMode");let eu=(()=>{class e extends DD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function o1(){const e=an()?an().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(m(mn),m(pt),m(i1,8))},e.\u0275dir=R({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&je("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ye([r1]),ee]}),e})();function Xn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function bD(e){return null!=e&&"number"==typeof e.length}const Xe=new T("NgValidators"),er=new T("NgAsyncValidators"),a1=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class xo{static min(t){return function wD(e){return t=>{if(Xn(t.value)||Xn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Xn(t.value)||Xn(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(t)}static required(t){return function MD(e){return Xn(e.value)?{required:!0}:null}(t)}static requiredTrue(t){return function SD(e){return!0===e.value?null:{required:!0}}(t)}static email(t){return function ID(e){return Xn(e.value)||a1.test(e.value)?null:{email:!0}}(t)}static minLength(t){return function TD(e){return t=>Xn(t.value)||!bD(t.value)?null:t.value.lengthbD(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}(t)}static pattern(t){return function xD(e){if(!e)return tu;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Xn(r.value))return null;const o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}(t)}static nullValidator(t){return null}static compose(t){return kD(t)}static composeAsync(t){return VD(t)}}function tu(e){return null}function ND(e){return null!=e}function RD(e){return Ii(e)?Se(e):e}function FD(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function PD(e,t){return t.map(n=>n(e))}function OD(e){return e.map(t=>function u1(e){return!e.validate}(t)?t:n=>t.validate(n))}function kD(e){if(!e)return null;const t=e.filter(ND);return 0==t.length?null:function(n){return FD(PD(n,t))}}function tf(e){return null!=e?kD(OD(e)):null}function VD(e){if(!e)return null;const t=e.filter(ND);return 0==t.length?null:function(n){return function t1(...e){if(1===e.length){const t=e[0];if(Wo(t))return Xa(t,null);if(Uu(t)&&Object.getPrototypeOf(t)===Object.prototype){const n=Object.keys(t);return Xa(n.map(r=>t[r]),n)}}if("function"==typeof e[e.length-1]){const t=e.pop();return Xa(e=1===e.length&&Wo(e[0])?e[0]:e,null).pipe($(n=>t(...n)))}return Xa(e,null)}(PD(n,t).map(RD)).pipe($(FD))}}function nf(e){return null!=e?VD(OD(e)):null}function LD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function jD(e){return e._rawValidators}function BD(e){return e._rawAsyncValidators}function rf(e){return e?Array.isArray(e)?e:[e]:[]}function nu(e,t){return Array.isArray(e)?e.includes(t):e===t}function HD(e,t){const n=rf(t);return rf(e).forEach(o=>{nu(n,o)||n.push(o)}),n}function UD(e,t){return rf(t).filter(n=>!nu(e,n))}class $D{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=tf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=nf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class ft extends $D{get formDirective(){return null}get path(){return null}}class tr extends $D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class GD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let zD=(()=>{class e extends GD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(tr,2))},e.\u0275dir=R({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ga("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ee]}),e})(),qD=(()=>{class e extends GD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(m(ft,10))},e.\u0275dir=R({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ga("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ee]}),e})();const $i="VALID",ou="INVALID",No="PENDING",Gi="DISABLED";function lf(e){return(iu(e)?e.validators:e)||null}function KD(e){return Array.isArray(e)?tf(e):e||null}function cf(e,t){return(iu(t)?t.asyncValidators:e)||null}function QD(e){return Array.isArray(e)?nf(e):e||null}function iu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ZD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")}function YD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,"")})}class su{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=KD(this._rawValidators),this._composedAsyncValidatorFn=QD(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===$i}get invalid(){return this.status===ou}get pending(){return this.status==No}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=KD(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=QD(t)}addValidators(t){this.setValidators(HD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(HD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(UD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(UD(t,this._rawAsyncValidators))}hasValidator(t){return nu(this._rawValidators,t)}hasAsyncValidator(t){return nu(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=No,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=$i,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===$i||this.status===No)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:$i}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=No,this._hasOwnPendingAsyncValidator=!0;const n=RD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new we,this.statusChanges=new we}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?ou:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(No)?No:this._anyControlsHaveStatus(ou)?ou:$i}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){iu(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class zi extends su{constructor(t,n,r){super(lf(n),cf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){YD(this,0,t),Object.keys(t).forEach(r=>{ZD(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const JD=zi;function qi(e,t){df(e,t),t.valueAccessor.writeValue(e.value),e.disabled&&t.valueAccessor.setDisabledState?.(!0),function y1(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&XD(e,t)})}(e,t),function v1(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function _1(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&XD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function m1(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function uu(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),cu(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function lu(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function df(e,t){const n=jD(e);null!==t.validator?e.setValidators(LD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=BD(e);null!==t.asyncValidator?e.setAsyncValidators(LD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();lu(t._rawValidators,o),lu(t._rawAsyncValidators,o)}function cu(e,t){let n=!1;if(null!==e){if(null!==t.validator){const o=jD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const o=BD(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}const r=()=>{};return lu(t._rawValidators,r),lu(t._rawAsyncValidators,r),n}function XD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ff(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function hf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===eu?n=i:function b1(e){return Object.getPrototypeOf(e.constructor)===Sr}(i)?r=i:o=i}),o||r||n||null}function rC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function oC(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Ro=class extends su{constructor(t=null,n,r){super(lf(n),cf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),iu(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=oC(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){rC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){rC(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){oC(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},M1=Ro;let lC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=R({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),dC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({}),e})();const gf=new T("NgModelWithFormControlWarning"),F1={provide:tr,useExisting:ue(()=>mf)};let mf=(()=>{class e extends tr{constructor(n,r,o,i){super(),this._ngModelWarningConfig=i,this.update=new we,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=hf(0,o)}set isDisabled(n){}ngOnChanges(n){if(this._isControlChanged(n)){const r=n.form.previousValue;r&&uu(r,this,!1),qi(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}ff(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&uu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(Xe,10),m(er,10),m(un,10),m(gf,8))},e.\u0275dir=R({type:e,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ye([F1]),ee,Ze]}),e})();const P1={provide:ft,useExisting:ue(()=>du)};let du=(()=>{class e extends ft{constructor(n,r){super(),this.validators=n,this.asyncValidators=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new we,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){const r=this.form.get(n.path);return qi(r,n),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){uu(n.control||null,n,!1),function w1(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this.submitted=!0,function nC(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{const r=n.control,o=this.form.get(n.path);r!==o&&(uu(r||null,n),(e=>e instanceof Ro)(o)&&(qi(o,n),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){const r=this.form.get(n.path);(function eC(e,t){df(e,t)})(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){const r=this.form.get(n.path);r&&function D1(e,t){return cu(e,t)}(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){df(this.form,this),this._oldForm&&cu(this._oldForm,this)}_checkFormPresent(){}}return e.\u0275fac=function(n){return new(n||e)(m(Xe,10),m(er,10))},e.\u0275dir=R({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,r){1&n&&je("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([P1]),ee,Ze]}),e})();const V1={provide:tr,useExisting:ue(()=>vf)};let vf=(()=>{class e extends tr{constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new we,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=hf(0,i)}set isDisabled(n){}ngOnChanges(n){this._added||this._setUpControl(),ff(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return function au(e,t){return[...t.path,e]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return e._ngModelWarningSentOnce=!1,e.\u0275fac=function(n){return new(n||e)(m(ft,13),m(Xe,10),m(er,10),m(un,10),m(gf,8))},e.\u0275dir=R({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[ye([V1]),ee,Ze]}),e})(),SC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[dC]}),e})(),J1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[SC]}),e})(),wf=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:gf,useValue:n.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[SC]}),e})();class Ef extends su{constructor(t,n,r){super(lf(n),cf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){YD(this,0,t),t.forEach((r,o)=>{ZD(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}const IC=Ef;function TC(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let X1=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const n=new e;return n.useNonNullable=!0,n}group(n,r=null){const o=this._reduceControls(n);let i={};return TC(r)?i=r:null!==r&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new zi(o,i)}control(n,r,o){let i={};return this.useNonNullable?(TC(r)?i=r:(i.validators=r,i.asyncValidators=o),new Ro(n,{...i,nonNullable:!0})):new Ro(n,r,o)}array(n,r,o){const i=n.map(s=>this._createControl(s));return new Ef(i,r,o)}_reduceControls(n){const r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){return n instanceof Ro||n instanceof su?n:Array.isArray(n)?this.control(n[0],n.length>1?n[1]:null,n.length>2?n[2]:null):this.control(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:wf}),e})(),eP=(()=>{class e extends X1{group(n,r=null){return super.group(n,r)}control(n,r,o){return super.control(n,r,o)}array(n,r,o){return super.array(n,r,o)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ue(e)))(r||e)}}(),e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:wf}),e})();const AC="object"==typeof global&&global&&global.Object===Object&&global;var nP="object"==typeof self&&self&&self.Object===Object&&self;const xn=AC||nP||Function("return this")(),nr=xn.Symbol;var xC=Object.prototype,iP=xC.hasOwnProperty,sP=xC.toString,Ki=nr?nr.toStringTag:void 0;var cP=Object.prototype.toString;var NC=nr?nr.toStringTag:void 0;const Nn=function gP(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":NC&&NC in Object(e)?function aP(e){var t=iP.call(e,Ki),n=e[Ki];try{e[Ki]=void 0;var r=!0}catch{}var o=sP.call(e);return r&&(t?e[Ki]=n:delete e[Ki]),o}(e):function dP(e){return cP.call(e)}(e)},Rn=function mP(e){return null!=e&&"object"==typeof e},rr=Array.isArray,RC=function MP(e){return"string"==typeof e||!rr(e)&&Rn(e)&&"[object String]"==Nn(e)};function Qi(e){return t=>t.lift(new SP(e))}class SP{constructor(t){this.notifier=t}call(t,n){const r=new IP(t),o=Cs(this.notifier,new vs(r));return o&&!r.seenValue?(r.add(o),n.subscribe(r)):r}}class IP extends Ds{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const TP=["nb-r-str",""];function AP(e,t){if(1&e&&(Dn(0),ae(1),oe(2,"async"),Cn()),2&e){const n=Ae();j(1),$e(fe(2,1,n.asyncContent))}}function xP(e,t){if(1&e&&(Dn(0),ae(1),Cn()),2&e){const n=Ae();j(1),$e(n.content)}}let Fn=(()=>{class e{constructor(){}isBoolean(n){return function _P(e){return!0===e||!1===e||Rn(e)&&"[object Boolean]"==Nn(e)}(n)}isNumber(n){return function CP(e){return"number"==typeof e||Rn(e)&&"[object Number]"==Nn(e)}(n)}isObservable(n){return n instanceof de}isPromise(n){return n instanceof Promise}isString(n){return RC(n)}isTemplateRef(n){return n instanceof sn}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),FC=(()=>{class e{constructor(n){this.valueTypeService=n}transform(n){return this.valueTypeService.isObservable(n)||this.valueTypeService.isPromise(n)}}return e.\u0275fac=function(n){return new(n||e)(m(Fn,16))},e.\u0275pipe=ge({name:"nbIsAsync",type:e,pure:!0}),e})(),PC=(()=>{class e{constructor(){this.content=""}get asyncContent(){return this.content}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fn({type:e,selectors:[["","nb-r-str",""]],inputs:{content:["nb-r-str","content"]},attrs:TP,decls:4,vars:4,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(n,r){1&n&&(Dn(0,0),oe(1,"nbIsAsync"),Ee(2,AP,3,3,"ng-container",1),Ee(3,xP,2,1,"ng-container",2),Cn()),2&n&&(G("ngSwitch",fe(1,2,r.content)),j(2),G("ngSwitchCase",!0))},dependencies:[Ao,Wa,Gd,Yv,FC],encapsulation:2,changeDetection:0}),e})();new T("default error image"),new T("default loading image");let kC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[Ka]}),e})();class It extends rt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return n&&!n.closed&&t.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new kr;return this._value}next(t){super.next(this._value=t)}}function I(...e){let t=e[e.length-1];return Vr(t)?(e.pop(),Gu(e,t)):zu(e)}class HP extends _e{constructor(t,n){super()}schedule(t,n=0){return this}}let VC=(()=>{class e{constructor(n,r=e.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,o){return new this.SchedulerAction(this,n).schedule(o,r)}}return e.now=()=>Date.now(),e})();class or extends VC{constructor(t,n=VC.now){super(t,()=>or.delegate&&or.delegate!==this?or.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,n=0,r){return or.delegate&&or.delegate!==this?or.delegate.schedule(t,n,r):super.schedule(t,n,r)}flush(t){const{actions:n}=this;if(this.active)return void n.push(t);let r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=n.shift());if(this.active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}}const $P=new or(class UP extends HP{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){if(this.closed)return this;this.state=t;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let o,r=!1;try{this.work(t)}catch(i){r=!0,o=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),o}_unsubscribe(){const t=this.id,n=this.scheduler,r=n.actions,o=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&r.splice(o,1),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null}});function LC(e){return!Wo(e)&&e-parseFloat(e)+1>=0}function zP(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function et(e,t){return"function"==typeof t?n=>n.pipe(et((r,o)=>Se(e(r,o)).pipe($((i,s)=>t(r,i,o,s))))):n=>n.lift(new qP(e))}class qP{constructor(t){this.project=t}call(t,n){return n.subscribe(new WP(t,this.project))}}class WP extends Ds{constructor(t,n){super(t),this.project=n,this.index=0}_next(t){let n;const r=this.index++;try{n=this.project(t,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(t){const n=this.innerSubscription;n&&n.unsubscribe();const r=new vs(this),o=this.destination;o.add(r),this.innerSubscription=Cs(t,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class QP{constructor(t){this.predicate=t}call(t,n){return n.subscribe(new ZP(t,this.predicate))}}class ZP extends ne{constructor(t,n){super(t),this.predicate=n,this.skipping=!0,this.index=0}_next(t){const n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)}tryCallPredicate(t){try{const n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(n){this.destination.error(n)}}}function ir(){}function Be(e,t,n){return function(o){return o.lift(new YP(e,t,n))}}class YP{constructor(t,n,r){this.nextOrObserver=t,this.error=n,this.complete=r}call(t,n){return n.subscribe(new JP(t,this.nextOrObserver,this.error,this.complete))}}class JP extends ne{constructor(t,n,r,o){super(t),this._tapNext=ir,this._tapError=ir,this._tapComplete=ir,this._tapError=r||ir,this._tapComplete=o||ir,cr(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||ir,this._tapError=n.error||ir,this._tapComplete=n.complete||ir)}_next(t){try{this._tapNext.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class eO{constructor(t,n){this.count=t,this.source=n}call(t,n){return n.subscribe(new tO(t,this.count,this.source))}}class tO extends ne{constructor(t,n,r){super(t),this.count=n,this.source=r}error(t){if(!this.isStopped){const{source:n,count:r}=this;if(0===r)return super.error(t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}}}function sr(e){return function(n){const r=new nO(e),o=n.lift(r);return r.caught=o}}class nO{constructor(t){this.selector=t}call(t,n){return n.subscribe(new rO(t,this.selector,this.caught))}}class rO extends Ds{constructor(t,n,r){super(t),this.selector=n,this.caught=r}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new vs(this);this.add(r);const o=Cs(n,r);o!==r&&this.add(o)}}}const Sf=function iO(e){return"symbol"==typeof e||Rn(e)&&"[object Symbol]"==Nn(e)};var sO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aO=/^\w*$/;const jC=function cO(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},If=function gO(e){if(!jC(e))return!1;var t=Nn(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Tf=xn["__core-js_shared__"];var BC=function(){var e=/[^.]+$/.exec(Tf&&Tf.keys&&Tf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var DO=Function.prototype.toString;const Tr=function CO(e){if(null!=e){try{return DO.call(e)}catch{}try{return e+""}catch{}}return""};var wO=/^\[object .+?Constructor\]$/,TO=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const xO=function AO(e){return!(!jC(e)||function yO(e){return!!BC&&BC in e}(e))&&(If(e)?TO:wO).test(Tr(e))},Fo=function FO(e,t){var n=function NO(e,t){return e?.[t]}(e,t);return xO(n)?n:void 0},Zi=Fo(Object,"create");var HO=Object.prototype.hasOwnProperty;var zO=Object.prototype.hasOwnProperty;function Po(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Oo.prototype.set=function lk(e,t){var n=this.__data__,r=fu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const hu=Oo,Yi=Fo(xn,"Map"),pu=function mk(e,t){var n=e.__data__;return function pk(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function ko(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ta))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,h=2&n?new cV:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991};var he={};he["[object Float32Array]"]=he["[object Float64Array]"]=he["[object Int8Array]"]=he["[object Int16Array]"]=he["[object Int32Array]"]=he["[object Uint8Array]"]=he["[object Uint8ClampedArray]"]=he["[object Uint16Array]"]=he["[object Uint32Array]"]=!0,he["[object Arguments]"]=he["[object Array]"]=he["[object ArrayBuffer]"]=he["[object Boolean]"]=he["[object DataView]"]=he["[object Date]"]=he["[object Error]"]=he["[object Function]"]=he["[object Map]"]=he["[object Number]"]=he["[object Object]"]=he["[object RegExp]"]=he["[object Set]"]=he["[object String]"]=he["[object WeakMap]"]=!1;var rb="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ji=rb&&"object"==typeof module&&module&&!module.nodeType&&module,Ff=Ji&&Ji.exports===rb&&AC.process,GL=function(){try{return Ji&&Ji.require&&Ji.require("util").types||Ff&&Ff.binding&&Ff.binding("util")}catch{}}(),ib=GL&&GL.isTypedArray;const sb=ib?function HL(e){return function(t){return e(t)}}(ib):function jL(e){return Rn(e)&&nb(e.length)&&!!he[Nn(e)]};var WL=Object.prototype.hasOwnProperty;const QL=function KL(e,t){var n=rr(e),r=!n&&rL(e),o=!n&&!r&&Rf(e),i=!n&&!r&&!o&&sb(e),s=n||r||o||i,a=s?function ZV(e,t){for(var n=-1,r=Array(e);++n1&&void 0!==arguments[1]?arguments[1]:0,n=(Ge[e[t+0]]+Ge[e[t+1]]+Ge[e[t+2]]+Ge[e[t+3]]+"-"+Ge[e[t+4]]+Ge[e[t+5]]+"-"+Ge[e[t+6]]+Ge[e[t+7]]+"-"+Ge[e[t+8]]+Ge[e[t+9]]+"-"+Ge[e[t+10]]+Ge[e[t+11]]+Ge[e[t+12]]+Ge[e[t+13]]+Ge[e[t+14]]+Ge[e[t+15]]).toLowerCase();if(!kj(n))throw TypeError("Stringified UUID is invalid");return n}(r)},nB=new T("nb-trans-default-lang");var Pn=(()=>(function(e){e.ZH_CN="zh-CN",e.ZH_TW="zh-TW",e.ZH_HK="zh-HK",e.EN="en",e.AR_EG="ar-EG",e.HY_AM="hy-AM",e.BG_BG="bg-BG",e.CA_ES="ca-ES",e.CS_CZ="cs-CZ",e.DA_DK="da-DK",e.DE_DE="de-DE",e.EL_GR="el-GR",e.EN_GB="en-GB",e.EN_US="en-US",e.ES_ES="es-ES",e.ET_EE="et-EE",e.FA_IR="fa-IR",e.FI_FI="fi-FI",e.FR_BE="fr-BE",e.FR_FR="fr-FR",e.HE_IL="he-IL",e.HI_IN="hi-IN",e.HR_HR="hr-HR",e.HU_HU="hu-HU",e.IS_IS="is-IS",e.ID_ID="id-ID",e.IT_IT="it-IT",e.JA_JP="ja-JP",e.KA_GE="ka-GE",e.KN_IN="kn-IN",e.KO_KR="ko-KR",e.KU_IQ="ku-IQ",e.LV_LV="lv-LV",e.MS_MY="ms-MY",e.MN_MN="mn-MN",e.NB_NO="nb-NO",e.NE_NP="ne-NP",e.NL_BE="nl-BE",e.NL_NL="nl-NL",e.PL_PL="pl-PL",e.PT_BR="pt-BR",e.PT_PT="pt-PT",e.SK_SK="sk-SK",e.SR_RS="sr-RS",e.SL_SI="sl-SI",e.SV_SE="sv-SE",e.TA_IN="ta-IN",e.TH_TH="th-TH",e.TR_TR="tr-TR",e.RO_RO="ro-RO",e.RU_RU="ru-RU",e.UK_UA="uk-UA",e.VI_VN="vi-VN"}(Pn||(Pn={})),Pn))();const vb=new T("nb-trans-loader"),rB=new T("nb-trans-max-retry");let Xi=(()=>{class e{constructor(n){this.valueType=n}static checkNavigator(){return e.checkWindow()&&typeof window.navigator<"u"}static checkWindow(){return typeof window<"u"}getFinalKey(n,r){return r?`${r}.${n}`:n}handleSentence(n,r,o){return n.replace(new RegExp(r,"g"),o)}handleSentenceWithParams(n,r){if(!r)return n;const o=Object.keys(r);if(!o.length)return n;const i=o.reduce((a,u)=>(a[u]=Bj(),a),{});let s=n;return o.forEach(a=>{s=this.handleSentence(s,`{{${a}}}`,i[a])}),n=s,o.forEach(a=>{n=this.handleSentence(n,i[a],r[a])}),n}handleTrans(n){const r=[];for(;n.length;){const o=n.search(/<\d+>/);if(o>0){const s=n.slice(0,o);r.push(s)}const i=this.handleCompStr(n);this.valueType.isString(i)?(r.push(i),n=""):(r.push({index:i.index,content:i.content,list:i.list}),n=i.otherContent)}return r}handleCompStr(n){const r=n.search(/<\d+>/);if(-1===r)return n;let o=[];const i=n.indexOf(">",r),s=Number(n.slice(r+1,i)),a=``,u=n.indexOf(a),l=n.slice(i+1,u);return l.search(/<\d+>/)>-1&&(o=this.handleTrans(l)),{index:s,content:l,list:o,otherContent:n.slice(u+a.length,n.length)}}}return e.\u0275fac=function(n){return new(n||e)(M(Fn))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Du=(()=>{class e{constructor(n,r,o,i){this.transDefaultLang=n,this.transLoader=r,this.maxRetry=o,this.transToolsService=i,this.lang$=new It(Pn.ZH_CN),this.loadDefaultOver$=new It(!1),this.loadLangTrans$=new rt,this.retry=5,this.translations={},this.retry=this.maxRetry??this.retry,this.transLoader=this.transLoader||{},this.lang$.next(n||Pn.ZH_CN),this.loadDefaultTrans()}get lang(){return this.lang$.value}get loadDefaultOver(){return this.loadDefaultOver$.value}static getBrowserLang(){if(Xi.checkNavigator())return window?.navigator?.language}static getBrowserLangs(){if(Xi.checkNavigator())return window?.navigator?.languages}changeLang(n){const r={curLang:n,result:!0},o={curLang:this.lang,result:!1};return this.translations[n]?(this.lang$.next(n),I(r)):this.transLoader[n]?this.loadLangTrans(n).pipe(et(i=>{let s=this.lang,a=o;return i&&(s=n,a=r),this.lang$.next(s),I(a)})):(function GP(e=0,t,n){let r=-1;return LC(t)?r=Number(t)<1?1:Number(t):Vr(t)&&(n=t),Vr(n)||(n=$P),new de(o=>{const i=LC(e)?e:+e-n.now();return n.schedule(zP,i,{index:0,period:r,subscriber:o})})}().subscribe(i=>this.loadLangTrans$.next(!1)),I(o))}changeLangSync(n){this.changeLang(n).subscribe()}getBrowserLang(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLang()!"),e.getBrowserLang()}getBrowserLangs(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLangs()!"),e.getBrowserLangs()}translationAsync(n,r){return this.lang$.pipe(et(o=>this.translations[this.lang]?I({trans:this.translations[this.lang],result:!0}):this.loadLangTrans$),$(o=>this.translationSync(n,r)))}translationSync(n,r){const o=this.transToolsService.getFinalKey(n,r?.prefix),i=!1===r?.returnKeyWhenEmpty?"":o;let s=qC(this.translations[this.lang],o);if(s||(s=qC(this.translations[this.transDefaultLang],o)),!s)return i;const a=r?.params;return s=this.transToolsService.handleSentenceWithParams(s,a),s||i}subscribeLangChange(){return this.lang$.asObservable()}subscribeLoadDefaultOver(){return this.loadDefaultOver?I(!0):this.loadDefaultOver$.asObservable().pipe(function KP(e){return t=>t.lift(new QP(e))}((n,r)=>!n&&0===r))}loadDefaultTrans(){this.loadTrans(this.lang).subscribe(n=>{const r=!!n;this.loadDefaultOver$.next(r),this.loadDefaultOver$.complete(),this.loadLangTrans$.next(r)})}loadLangTrans(n){return this.loadTrans(n).pipe($(r=>{const o=!!r;return this.loadLangTrans$.next(o),o}))}loadTrans(n){const r=this.transLoader[n];return r?(If(r)?I(null).pipe(et(()=>Se(r()))):I(r)).pipe(Be(i=>this.translations[n]=i),function XP(e=-1){return t=>t.lift(new eO(e,t))}(this.retry),sr(i=>I(null))):I(null)}}return e.\u0275fac=function(n){return new(n||e)(M(nB,8),M(vb,8),M(rB,8),M(Xi))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Db=(()=>{class e{constructor(n,r){this.changeDR=n,this.transService=r,this.latestValue="",this.destroy$=new rt,this.key="",this.subscribeLangChange()}transform(n,r){return(!this.latestValue||n!==this.key||!Lf(r,this.options))&&(this.latestValue=this.transService.translationSync(n,r),this.key=n,this.options=r),this.latestValue}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}subscribeLangChange(){this.transService.subscribeLangChange().pipe(et(n=>this.transService.translationAsync(this.key,this.options)),Qi(this.destroy$)).subscribe(n=>this.updateLatestValue(n))}updateLatestValue(n){this.latestValue=n,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(Sn,16),m(Du,16))},e.\u0275pipe=ge({name:"nbTrans",type:e,pure:!1}),e})(),uB=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[Ka,kC]}),e})();class lB extends ne{notifyNext(t,n,r,o,i){this.destination.next(n)}notifyError(t,n){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class cB extends ne{constructor(t,n,r){super(),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function dB(e,t,n,r,o=new cB(e,n,r)){if(!o.closed)return t instanceof de?t.subscribe(o):$u(t)(o)}const Cb={};function Bf(...e){let t,n;return Vr(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Wo(e[0])&&(e=e[0]),zu(e,n).lift(new fB(t))}class fB{constructor(t){this.resultSelector=t}call(t,n){return n.subscribe(new hB(t,this.resultSelector))}}class hB extends lB{constructor(t,n){super(t),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Cb),this.observables.push(t)}_complete(){const t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;rHf(e,n,t)):n=>Hf(e,n)}class mB{constructor(t,n){this.compare=t,this.keySelector=n}call(t,n){return n.subscribe(new yB(t,this.compare,this.keySelector))}}class yB extends ne{constructor(t,n,r){super(t),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}compare(t,n){return t===n}_next(t){let n;try{const{keySelector:o}=this;n=o?o(t):t}catch(o){return this.destination.error(o)}let r=!1;if(this.hasKey)try{const{compare:o}=this;r=o(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;r||(this.key=n,this.destination.next(t))}}function _B(e,t){if(1&e&&(mt(0,"div",1),oe(1,"nbErrInfo")),2&e){const n=Ae();G("nb-r-str",function wa(e,t,n,r){const o=e+22,i=v(),s=Gr(i,o);return Pi(i,o)?M_(i,st(),t,s.transform,n,r,s):s.transform(n,r)}(1,1,n.control.errors,n.allErrInfo))}}function vB(e,t){1&e&&(te(0,"span",4),ae(1,"*"),Q())}function DB(e,t){if(1&e&&mt(0,"nb-control-err",5),2&e){const n=Ae();G("control",n.control)("errInfo",n.errInfo)}}const CB=[[["","field-label",""]],"*"],bB=["[field-label]","*"],bb=new T("common errors information");var tt=(()=>(function(e){e.REQUIRED="required",e.FILE_MAX_SIZE="fileMaxSize",e.FILE_MIN_SIZE="fileMinSize",e.FILE_TYPE="fileType",e.EQUAL="equal",e.MAX_LENGTH="maxlength",e.MIN_LENGTH="minlength",e.ARR_MAX_LENGTH="arrMaxLength",e.ARR_MIN_LENGTH="arrMinLength",e.WHITESPACE="whitespace"}(tt||(tt={})),tt))();let wB=(()=>{class e{transform(n,r){const o=Object.keys(n||{})[0];return o&&r?.[o]||""}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275pipe=ge({name:"nbErrInfo",type:e,pure:!0}),e})(),$f=(()=>{class e{constructor(n={},r){this.commonErrInfo=n,this.changeDR=r,this.errInfo={},this.allErrInfo={},this.errControl=new M1,this.hasErr=!1,this.destroy$=new rt}ngOnChanges(n){const{control:r,errInfo:o}=n;r&&this.subscribeControlChange(),o&&this.updateAllErrInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllErrInfo(){this.allErrInfo={...this.commonErrInfo,...this.errInfo},this.changeDR.markForCheck()}subscribeControlChange(){this.updateHasErr(this.control),this.control.statusChanges.pipe(Qi(this.destroy$)).subscribe(n=>this.updateHasErr(this.control))}updateHasErr(n){this.hasErr=n.dirty&&"INVALID"===n.status,this.changeDR.markForCheck()}}return e.\u0275fac=function(n){return new(n||e)(m(bb,8),m(Sn))},e.\u0275cmp=fn({type:e,selectors:[["nb-control-err"]],inputs:{control:"control",errInfo:"errInfo"},features:[Ze],decls:1,vars:1,consts:[["class","err-info",3,"nb-r-str",4,"ngIf"],[1,"err-info",3,"nb-r-str"]],template:function(n,r){1&n&&Ee(0,_B,2,4,"div",0),2&n&&G("ngIf",r.control&&r.hasErr)},dependencies:[qa,PC,wB],styles:["[_nghost-%COMP%]{position:relative;top:100%;left:0;display:block;font-size:14px;color:red}.err-info[_ngcontent-%COMP%]{position:absolute;top:0;left:0;word-break:break-word}"],changeDetection:0}),e})(),wb=(()=>{class e{constructor(){this.errInfo={},this.required=!1}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fn({type:e,selectors:[["nb-field-item"]],inputs:{control:"control",errInfo:"errInfo",required:"required"},ngContentSelectors:bB,decls:6,vars:2,consts:[[1,"field-label"],["class","label-required",4,"ngIf"],[1,"field-content"],["class","nb-control-err",3,"control","errInfo",4,"ngIf"],[1,"label-required"],[1,"nb-control-err",3,"control","errInfo"]],template:function(n,r){1&n&&(function Xm(e){const t=v()[16][6];if(!t.projection){const r=t.projection=ai(e?e.length:1,null),o=r.slice();let i=t.child;for(;null!==i;){const s=e?ET(i,e):0;null!==s&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i),i=i.next}}}(CB),te(0,"label",0),Ee(1,vB,2,0,"span",1),zc(2),Q(),te(3,"div",2),zc(4,1),Ee(5,DB,1,2,"nb-control-err",3),Q()),2&n&&(j(1),G("ngIf",r.required),j(4),G("ngIf",r.control))},dependencies:[qa,$f],styles:["[_nghost-%COMP%]{display:flex;align-items:center;margin-bottom:24px}[_nghost-%COMP%]:last-child{margin-bottom:0}.field-label[_ngcontent-%COMP%]{flex:0 0 120px;display:flex;justify-content:flex-end;align-items:center;padding:0 8px 0 4px;word-break:break-word}.field-label[_ngcontent-%COMP%]:empty{flex-basis:0;padding:0}.label-required[_ngcontent-%COMP%]{color:red}.field-content[_ngcontent-%COMP%]{flex:1 1 auto;position:relative;display:flex;align-items:center}.nb-control-err[_ngcontent-%COMP%]{position:absolute;width:100%}"],changeDetection:0}),e})(),EB=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[Ka,kC]}),e})();const kt_arrLength=e=>t=>Array.isArray(t.value)?e.max&&t.value.length>e.max?{[tt.ARR_MAX_LENGTH]:!0}:e.min&&t.value.lengthn=>!t&&!e.dirty||Lf(n.value,e.value)?null:{[tt.EQUAL]:!0},kt_fileSize=e=>t=>{const n=t.value;return n instanceof File?e.max&&n.size>e.max?{[tt.FILE_MAX_SIZE]:!0}:e.min&&n.sizet=>e?xo.required(t):null,kt_whitespace=(e=!0)=>t=>e||!t.value||!RC(t.value)||t.value.trim()?null:{[tt.WHITESPACE]:!0};let MB=(()=>{class e{constructor(){}doFormArrayFn(n,r){n.controls.forEach(o=>r(o))}doFormGroupFn(n,r){Object.keys(n.controls).forEach(o=>r(n.get(o)))}getFormValidatorStrategies(){return{required:n=>kt_required(n.required),max:n=>{if(n.max)return xo.max(n.max)},min:n=>{if(n.min)return xo.min(n.min)},maxLength:n=>{if(n.maxLength)return xo.maxLength(n.maxLength)},minLength:n=>{if(n.minLength)return xo.minLength(n.minLength)},arrMaxLength:n=>{if(n.arrMaxLength)return kt_arrLength({max:n.arrMaxLength})},arrMinLength:n=>{if(n.arrMinLength)return kt_arrLength({min:n.arrMinLength})},maxFileSize:n=>{if(n.maxFileSize)return kt_fileSize({max:n.maxFileSize})},minFileSize:n=>{if(n.minFileSize)return kt_fileSize({min:n.minFileSize})},fileType:n=>{if(n.fileType?.length)return(e=>t=>{const n=t.value;return n instanceof File&&e.length&&!e.includes(n.type)?{[tt.FILE_TYPE]:!0}:null})(n.fileType)},pattern:n=>{if(n.pattern)return xo.pattern(n.pattern)},whitespace:n=>kt_whitespace(n.whitespace)}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),SB=(()=>{class e{constructor(n){this.formTools=n}getValidatorsFromControlConfig(n){const r=this.formTools.getFormValidatorStrategies(),o=[];return Object.keys(n).forEach(i=>{const s=r[i]?.(n);s&&o.push(s)}),o}markAllAsDirty(n,r){n?.markAsDirty(r);const o=i=>this.markAllAsDirty(i,r);n instanceof IC?this.formTools.doFormArrayFn(n,o):n instanceof JD&&this.formTools.doFormGroupFn(n,o)}showAllErrInfo(n,r){n?.markAllAsTouched(),this.markAllAsDirty(n,r),this.updateAllValueAndValidity(n,r)}updateAllValueAndValidity(n,r){n?.updateValueAndValidity(r);const o=i=>this.updateAllValueAndValidity(i,r);n instanceof IC?this.formTools.doFormArrayFn(n,o):n instanceof JD&&this.formTools.doFormGroupFn(n,o)}updateEqualControlsValidities(n,r){const{target:o,compared:i}=n;return Bf([o.statusChanges.pipe(Uf(o.status)),i.statusChanges.pipe(Uf(i.status))]).pipe(function gB(e,t){return n=>n.lift(new mB(e,t))}((s,a)=>Lf(s,a)),r?Qi(r):Be(()=>{})).subscribe(s=>{o.updateValueAndValidity(),i.updateValueAndValidity()})}}return e.\u0275fac=function(n){return new(n||e)(M(MB))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lo=new de(e=>e.complete());function Gf(e){return e?function IB(e){return new de(t=>e.schedule(()=>t.complete()))}(e):Lo}function Eb(e){return new de(t=>{let n;try{n=e()}catch(o){return void t.error(o)}return(n?Se(n):Gf()).subscribe(t)})}function es(e,t){return new de(t?n=>t.schedule(TB,0,{error:e,subscriber:n}):n=>n.error(e))}function TB({error:e,subscriber:t}){t.error(e)}const jo=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),Mb=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})();function ts(e){return t=>0===e?Gf():t.lift(new AB(e))}class AB{constructor(t){if(this.total=t,this.total<0)throw new Mb}call(t,n){return n.subscribe(new xB(t,this.total))}}class xB extends ne{constructor(t,n){super(t),this.total=n,this.count=0}_next(t){const n=this.total,r=++this.count;r<=n&&(this.destination.next(t),r===n&&(this.destination.complete(),this.unsubscribe()))}}function On(e,t){return function(r){return r.lift(new NB(e,t))}}class NB{constructor(t,n){this.predicate=t,this.thisArg=n}call(t,n){return n.subscribe(new RB(t,this.predicate,this.thisArg))}}class RB extends ne{constructor(t,n,r){super(t),this.predicate=n,this.thisArg=r,this.count=0}_next(t){let n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(t)}}function Cu(e=null){return t=>t.lift(new FB(e))}class FB{constructor(t){this.defaultValue=t}call(t,n){return n.subscribe(new PB(t,this.defaultValue))}}class PB extends ne{constructor(t,n){super(t),this.defaultValue=n,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Sb(e=VB){return t=>t.lift(new OB(e))}class OB{constructor(t){this.errorFactory=t}call(t,n){return n.subscribe(new kB(t,this.errorFactory))}}class kB extends ne{constructor(t,n){super(t),this.errorFactory=n,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)}}}function VB(){return new jo}function ar(e,t){const n=arguments.length>=2;return r=>r.pipe(e?On((o,i)=>e(o,i,r)):ys,ts(1),n?Cu(t):Sb(()=>new jo))}function ur(e,t){return qe(e,t,1)}function Ib(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new LB(e,t,n))}}class LB{constructor(t,n,r=!1){this.accumulator=t,this.seed=n,this.hasSeed=r}call(t,n){return n.subscribe(new jB(t,this.accumulator,this.seed,this.hasSeed))}}class jB extends ne{constructor(t,n,r,o){super(t),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const n=this.index++;let r;try{r=this.accumulator(this.seed,t,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function zf(e){return function(n){return 0===e?Gf():n.lift(new BB(e))}}class BB{constructor(t){if(this.total=t,this.total<0)throw new Mb}call(t,n){return n.subscribe(new HB(t,this.total))}}class HB extends ne{constructor(t,n){super(t),this.total=n,this.ring=new Array,this.count=0}_next(t){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;i=2;return r=>r.pipe(e?On((o,i)=>e(o,i,r)):ys,zf(1),n?Cu(t):Sb(()=>new jo))}class $B{constructor(t,n){this.predicate=t,this.inclusive=n}call(t,n){return n.subscribe(new GB(t,this.predicate,this.inclusive))}}class GB extends ne{constructor(t,n,r){super(t),this.predicate=n,this.inclusive=r,this.index=0}_next(t){const n=this.destination;let r;try{r=this.predicate(t,this.index++)}catch(o){return void n.error(o)}this.nextOrComplete(t,r)}nextOrComplete(t,n){const r=this.destination;Boolean(n)?r.next(t):(this.inclusive&&r.next(t),r.complete())}}class qB{constructor(t){this.value=t}call(t,n){return n.subscribe(new WB(t,this.value))}}class WB extends ne{constructor(t,n){super(t),this.value=n}_next(t){this.destination.next(this.value)}}function qf(e){return t=>t.lift(new KB(e))}class KB{constructor(t){this.callback=t}call(t,n){return n.subscribe(new QB(t,this.callback))}}class QB extends ne{constructor(t,n){super(t),this.add(new _e(n))}}const z="primary";class ZB{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Bo(e){return new ZB(e)}function YB(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function xb(e){return Array.prototype.concat.apply([],e)}function Nb(e){return e.length>0?e[e.length-1]:null}function ze(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function kn(e){return Gc(e)?e:Ii(e)?Se(Promise.resolve(e)):I(e)}const e2={exact:function Pb(e,t,n){if(!Rr(e.segments,t.segments)||!bu(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Pb(e.children[r],t.children[r],n))return!1;return!0},subset:Ob},Rb={exact:function t2(e,t){return ln(e,t)},subset:function n2(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Ab(e[n],t[n]))},ignored:()=>!0};function Fb(e,t,n){return e2[n.paths](e.root,t.root,n.matrixParams)&&Rb[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Ob(e,t,n){return kb(e,t,t.segments,n)}function kb(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Rr(o,n)||t.hasChildren()||!bu(o,n,r))}if(e.segments.length===n.length){if(!Rr(e.segments,n)||!bu(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!Ob(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Rr(e.segments,o)&&bu(e.segments,o,r)&&e.children[z])&&kb(e.children[z],t,i,r)}}function bu(e,t,n){return t.every((r,o)=>Rb[n](e[o].parameters,r.parameters))}class Nr{constructor(t,n,r){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bo(this.queryParams)),this._queryParamMap}toString(){return i2.serialize(this)}}class q{constructor(t,n){this.segments=t,this.children=n,this.parent=null,ze(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wu(this)}}class ns{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Bo(this.parameters)),this._parameterMap}toString(){return Hb(this)}}function Rr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}class Vb{}class Lb{parse(t){const n=new p2(t);return new Nr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${rs(t.root,!0)}`,r=function u2(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Eu(n)}=${Eu(o)}`).join("&"):`${Eu(n)}=${Eu(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams),o="string"==typeof t.fragment?`#${function s2(e){return encodeURI(e)}(t.fragment)}`:"";return`${n}${r}${o}`}}const i2=new Lb;function wu(e){return e.segments.map(t=>Hb(t)).join("/")}function rs(e,t){if(!e.hasChildren())return wu(e);if(t){const n=e.children[z]?rs(e.children[z],!1):"",r=[];return ze(e.children,(o,i)=>{i!==z&&r.push(`${i}:${rs(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function o2(e,t){let n=[];return ze(e.children,(r,o)=>{o===z&&(n=n.concat(t(r,o)))}),ze(e.children,(r,o)=>{o!==z&&(n=n.concat(t(r,o)))}),n}(e,(r,o)=>o===z?[rs(e.children[z],!1)]:[`${o}:${rs(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[z]?`${wu(e)}/${n[0]}`:`${wu(e)}/(${n.join("//")})`}}function jb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eu(e){return jb(e).replace(/%3B/gi,";")}function Kf(e){return jb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mu(e){return decodeURIComponent(e)}function Bb(e){return Mu(e.replace(/\+/g,"%20"))}function Hb(e){return`${Kf(e.path)}${function a2(e){return Object.keys(e).map(t=>`;${Kf(t)}=${Kf(e[t])}`).join("")}(e.parameters)}`}const l2=/^[^\/()?;=#]+/;function Su(e){const t=e.match(l2);return t?t[0]:""}const c2=/^[^=?&#]+/,f2=/^[^&#]+/;class p2{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[z]=new q(t,n)),r}parseSegment(){const t=Su(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new ns(Mu(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=Su(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Su(this.remaining);o&&(r=o,this.capture(r))}t[Mu(n)]=Mu(r)}parseQueryParam(t){const n=function d2(e){const t=e.match(c2);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function h2(e){const t=e.match(f2);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Bb(n),i=Bb(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Su(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=z);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[z]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function Qf(e){return e.segments.length>0?new q([],{[z]:e}):e}function Iu(e){const t={};for(const r of Object.keys(e.children)){const i=Iu(e.children[r]);(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function g2(e){if(1===e.numberOfChildren&&e.children[z]){const t=e.children[z];return new q(e.segments.concat(t.segments),t.children)}return e}(new q(e.segments,t))}function Fr(e){return e instanceof Nr}function _2(e,t,n,r,o){if(0===n.length)return Ho(t.root,t.root,t.root,r,o);const i=function Gb(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new $b(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return ze(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new $b(n,t,r)}(n);return i.toRoot()?Ho(t.root,t.root,new q([],{}),r,o):function s(u){const l=function D2(e,t,n,r){if(e.isAbsolute)return new Uo(t.root,!0,0);if(-1===r)return new Uo(n,n===t.root,0);return function zb(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new Uo(r,!1,o-i)}(n,r+(os(e.commands[0])?0:1),e.numberOfDoubleDots)}(i,t,e.snapshot?._urlSegment,u),c=l.processChildren?ss(l.segmentGroup,l.index,i.commands):Yf(l.segmentGroup,l.index,i.commands);return Ho(t.root,l.segmentGroup,c,r,o)}(e.snapshot?._lastPathIndex)}function os(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function is(e){return"object"==typeof e&&null!=e&&e.outlets}function Ho(e,t,n,r,o){let s,i={};r&&ze(r,(u,l)=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:Ub(e,t,n);const a=Qf(Iu(s));return new Nr(a,i,o)}function Ub(e,t,n){const r={};return ze(e.children,(o,i)=>{r[i]=o===t?n:Ub(o,t,n)}),new q(e.segments,r)}class $b{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&os(r[0]))throw new C(4003,!1);const o=r.find(is);if(o&&o!==Nb(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Uo{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Yf(e,t,n){if(e||(e=new q([],{})),0===e.segments.length&&e.hasChildren())return ss(e,t,n);const r=function b2(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(is(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!Wb(u,l,s))return i;r+=2}else{if(!Wb(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=Yf(e.children[s],t,i))}),ze(e.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new q(e.segments,o)}}function Jf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(t[r]=Jf(new q([],{}),0,n))}),t}function qb(e){const t={};return ze(e,(n,r)=>t[r]=`${n}`),t}function Wb(e,t,n){return e==n.path&&ln(t,n.parameters)}class Vn{constructor(t,n){this.id=t,this.url=n}}class Xf extends Vn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends Vn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Tu extends Vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Kb extends Vn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class E2 extends Vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class M2 extends Vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class S2 extends Vn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class I2 extends Vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class T2 extends Vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A2{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class x2{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class N2{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R2{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class F2{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class P2{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qb{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Zb{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=eh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=eh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=th(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return th(t,this._root).map(n=>n.value)}}function eh(e,t){if(e===t.value)return t;for(const n of t.children){const r=eh(e,n);if(r)return r}return null}function th(e,t){if(e===t.value)return[t];for(const n of t.children){const r=th(e,n);if(r.length)return r.unshift(t),r}return[]}class Ln{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function $o(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Yb extends Zb{constructor(t,n){super(t),this.snapshot=n,nh(this,t)}toString(){return this.snapshot.toString()}}function Jb(e,t){const n=function k2(e,t){const s=new Au([],{},{},"",{},z,t,null,e.root,-1,{});return new ew("",new Ln(s,[]))}(e,t),r=new It([new ns("",{})]),o=new It({}),i=new It({}),s=new It({}),a=new It(""),u=new Go(r,o,s,a,i,z,t,n.root);return u.snapshot=n.root,new Yb(new Ln(u,[]),n)}class Go{constructor(t,n,r,o,i,s,a,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=u}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._paramMap=this.params.pipe($(t=>Bo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe($(t=>Bo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xb(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function V2(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Au{constructor(t,n,r,o,i,s,a,u,l,c,d,f){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._correctedLastPathIndex=f??c,this._resolve=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||(this._paramMap=Bo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ew extends Zb{constructor(t,n){super(n),this.url=t,nh(this,n)}toString(){return tw(this._root)}}function nh(e,t){t.value._routerState=e,t.children.forEach(n=>nh(e,n))}function tw(e){const t=e.children.length>0?` { ${e.children.map(tw).join(", ")} } `:"";return`${e.value}${t}`}function rh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ln(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ln(t.params,n.params)||e.params.next(n.params),function JB(e,t){if(e.length!==t.length)return!1;for(let n=0;nln(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||oh(e.parent,t.parent))}function as(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function j2(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return as(e,r,o);return as(e,r)})}(e,t,n);return new Ln(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>as(e,a)),s}}const r=function B2(e){return new Go(new It(e.url),new It(e.params),new It(e.queryParams),new It(e.fragment),new It(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>as(e,i));return new Ln(r,o)}}const ih="ngNavigationCancelingError";function nw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Fr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=rw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function rw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[ih]=!0,r.cancellationCode=t,n&&(r.url=n),r}function ow(e){return iw(e)&&Fr(e.url)}function iw(e){return e&&e[ih]}class H2{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new us,this.attachRef=null}}class us{constructor(){this.contexts=new Map}onChildOutletCreated(t,n){const r=this.getOrCreateContext(t);r.outlet=n,this.contexts.set(t,r)}onChildOutletDestroyed(t){const n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new H2,this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}}const xu=!1;let sw=(()=>{class e{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.changeDetector=i,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.name=o||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,xu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,xu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,xu);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,xu);this._activatedRoute=n;const o=this.location,s=n._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new U2(n,a,o.injector);if(r&&function $2(e){return!!e.resolveComponentFactory}(r)){const l=r.resolveComponentFactory(s);this.activated=o.createComponent(l,o.length,u)}else this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)(m(us),m(qt),function oi(e){return function MM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=fn({type:e,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&mt(0,"router-outlet")},dependencies:[sw],encapsulation:2}),e})();function uw(e,t){return e.providers&&!e._injector&&(e._injector=ba(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ah(e){const t=e.children&&e.children.map(ah),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==z&&(n.component=aw),n}function Vt(e){return e.outlet||z}function lw(e,t){const n=e.filter(r=>Vt(r)===t);return n.push(...e.filter(r=>Vt(r)!==t)),n}function cw(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class K2{constructor(t,n,r,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),rh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=$o(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),ze(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=$o(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=$o(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(t,n,r){const o=$o(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new P2(i.value.snapshot))}),t.children.length&&this.forwardEvent(new R2(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(rh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),rh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=cw(o.snapshot),u=a?.get(yi)??null;s.attachRef=null,s.route=o,s.resolver=u,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class dw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nu{constructor(t,n){this.component=t,this.route=n}}function Q2(e,t,n){const r=e._root;return ls(r,t?t._root:null,n,[r.value])}function Ru(e,t,n){return(cw(t)??n).get(e)}function ls(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=$o(t);return e.children.forEach(s=>{(function Y2(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function J2(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Rr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Rr(e.url,t.url)||!ln(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!oh(e,t)||!ln(e.queryParams,t.queryParams);default:return!oh(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new dw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ls(e,t,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Nu(a.outlet.component,s))}else s&&cs(t,a,o),o.canActivateChecks.push(new dw(r)),ls(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),ze(i,(s,a)=>cs(s,n.getContext(a),o)),o}function cs(e,t,n){const r=$o(e),o=e.value;ze(r,(i,s)=>{cs(i,o.component?t?t.children.getContext(s):null:t,n)}),n.canDeactivateChecks.push(new Nu(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ds(e){return"function"==typeof e}const Fu=Symbol("INITIAL_VALUE");function zo(){return et(e=>Bf(e.map(t=>t.pipe(ts(1),Uf(Fu)))).pipe($(t=>{for(const n of t)if(!0!==n){if(n===Fu)return Fu;if(!1===n||n instanceof Nr)return n}return!0}),On(t=>t!==Fu),ts(1)))}function fw(e){return function Yw(...e){return Oh(e)}(Be(t=>{if(Fr(t))throw nw(0,t)}),$(t=>!0===t))}const uh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function hw(e,t,n,r,o){const i=lh(e,t,n);return i.matched?function gH(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?I(o.map(s=>{const a=e.get(s),u=function oH(e){return e&&ds(e.canMatch)}(a)?a.canMatch(t,n):a(t,n);return kn(u)})).pipe(zo(),fw()):I(!0)}(r=uw(t,r),t,n).pipe($(s=>!0===s?i:{...uh})):I(i)}function lh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...uh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||YB)(n,e,t);if(!o)return{...uh};const i={};ze(o.posParams,(a,u)=>{i[u]=a.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Pu(e,t,n,r,o="corrected"){if(n.length>0&&function _H(e,t,n){return n.some(r=>Ou(e,t,r)&&Vt(r)!==z)}(e,n,r)){const s=new q(t,function yH(e,t,n,r){const o={};o[z]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const i of n)if(""===i.path&&Vt(i)!==z){const s=new q([],{});s._sourceSegment=e,s._segmentIndexShift=t.length,o[Vt(i)]=s}return o}(e,t,r,new q(n,e.children)));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function vH(e,t,n){return n.some(r=>Ou(e,t,r))}(e,n,r)){const s=new q(e.segments,function mH(e,t,n,r,o,i){const s={};for(const a of r)if(Ou(e,n,a)&&!o[Vt(a)]){const u=new q([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===i?e.segments.length:t.length,s[Vt(a)]=u}return{...o,...s}}(e,t,n,r,e.children,o));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const i=new q(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function Ou(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function pw(e,t,n,r){return!!(Vt(e)===r||r!==z&&Ou(t,n,e))&&("**"===e.path||lh(t,e,n).matched)}function gw(e,t,n){return 0===t.length&&!e.children[n]}const ku=!1;class Vu{constructor(t){this.segmentGroup=t||null}}class mw{constructor(t){this.urlTree=t}}function fs(e){return es(new Vu(e))}function yw(e){return es(new mw(e))}class wH{constructor(t,n,r,o,i){this.injector=t,this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0}apply(){const t=Pu(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,n,z).pipe($(i=>this.createUrlTree(Iu(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(sr(i=>{if(i instanceof mw)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Vu?this.noMatchError(i):i}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,z).pipe($(o=>this.createUrlTree(Iu(o),t.queryParams,t.fragment))).pipe(sr(o=>{throw o instanceof Vu?this.noMatchError(o):o}))}noMatchError(t){return new C(4002,ku)}createUrlTree(t,n,r){const o=Qf(t);return new Nr(o,n,r)}expandSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(t,n,r).pipe($(i=>new q([],i))):this.expandSegment(t,r,n,r.segments,o,!0)}expandChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Se(o).pipe(ur(i=>{const s=r.children[i],a=lw(n,i);return this.expandSegmentGroup(t,a,s,i).pipe($(u=>({segment:u,outlet:i})))}),Ib((i,s)=>(i[s.outlet]=s.segment,i),{}),Tb())}expandSegment(t,n,r,o,i,s){return Se(r).pipe(ur(a=>this.expandSegmentAgainstRoute(t,n,r,a,o,i,s).pipe(sr(l=>{if(l instanceof Vu)return I(null);throw l}))),ar(a=>!!a),sr((a,u)=>{if(a instanceof jo||"EmptyError"===a.name)return gw(n,o,i)?I(new q([],{})):fs(n);throw a}))}expandSegmentAgainstRoute(t,n,r,o,i,s,a){return pw(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(t,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s):fs(n):fs(n)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?yw(i):this.lineralizeSegments(r,i).pipe(qe(s=>{const a=new q(s,{});return this.expandSegment(t,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:l,positionalParamSegments:c}=lh(n,o,i);if(!a)return fs(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?yw(d):this.lineralizeSegments(o,d).pipe(qe(f=>this.expandSegment(t,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i){return"**"===r.path?(t=uw(r,t),r.loadChildren?(r._loadedRoutes?I({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(t,r)).pipe($(a=>(r._loadedRoutes=a.routes,r._loadedInjector=a.injector,new q(o,{})))):I(new q(o,{}))):hw(n,r,o,t).pipe(et(({matched:s,consumedSegments:a,remainingSegments:u})=>s?this.getChildConfig(t=r._injector??t,r,o).pipe(qe(c=>{const d=c.injector??t,f=c.routes,{segmentGroup:h,slicedSegments:p}=Pu(n,a,u,f),g=new q(h.segments,h.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,f,g).pipe($(y=>new q(a,y)));if(0===f.length&&0===p.length)return I(new q(a,{}));const _=Vt(r)===i;return this.expandSegment(d,g,f,p,_?z:i,!0).pipe($(b=>new q(a.concat(b.segments),b.children)))})):fs(n)))}getChildConfig(t,n,r){return n.children?I({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?I({routes:n._loadedRoutes,injector:n._loadedInjector}):function pH(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?I(!0):I(o.map(s=>{const a=e.get(s),u=function eH(e){return e&&ds(e.canLoad)}(a)?a.canLoad(t,n):a(t,n);return kn(u)})).pipe(zo(),fw())}(t,n,r).pipe(qe(o=>o?this.configLoader.loadChildren(t,n).pipe(Be(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function CH(e){return es(rw(ku,3))}())):I({routes:[],injector:t})}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return I(r);if(o.numberOfChildren>1||!o.children[z])return es(new C(4e3,ku));o=o.children[z]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Nr(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return ze(t,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return ze(n.children,(a,u)=>{s[u]=this.createSegmentGroup(t,a,r,o)}),new q(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,ku);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}class MH{}class TH{constructor(t,n,r,o,i,s,a,u){this.injector=t,this.rootComponentType=n,this.config=r,this.urlTree=o,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=u}recognize(){const t=Pu(this.urlTree.root,[],[],this.config.filter(n=>void 0===n.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,z).pipe($(n=>{if(null===n)return null;const r=new Au([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new Ln(r,n),i=new ew(this.url,o);return this.inheritParamsAndData(i._root),i}))}inheritParamsAndData(t){const n=t.value,r=Xb(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o)}processChildren(t,n,r){return Se(Object.keys(r.children)).pipe(ur(o=>{const i=r.children[o],s=lw(n,o);return this.processSegmentGroup(t,s,i,o)}),Ib((o,i)=>o&&i?(o.push(...i),o):null),function UB(e,t=!1){return n=>n.lift(new $B(e,t))}(o=>null!==o),Cu(null),Tb(),$(o=>{if(null===o)return null;const i=_w(o);return function AH(e){e.sort((t,n)=>t.value.outlet===z?-1:n.value.outlet===z?1:t.value.outlet.localeCompare(n.value.outlet))}(i),i}))}processSegment(t,n,r,o,i){return Se(n).pipe(ur(s=>this.processSegmentAgainstRoute(s._injector??t,s,r,o,i)),ar(s=>!!s),sr(s=>{if(s instanceof jo)return gw(r,o,i)?I([]):I(null);throw s}))}processSegmentAgainstRoute(t,n,r,o,i){if(n.redirectTo||!pw(n,r,o,i))return I(null);let s;if("**"===n.path){const a=o.length>0?Nb(o).parameters:{},u=Dw(r)+o.length;s=I({snapshot:new Au(o,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(n),Vt(n),n.component??n._loadedComponent??null,n,vw(r),u,ww(n),u),consumedSegments:[],remainingSegments:[]})}else s=hw(r,n,o,t).pipe($(({matched:a,consumedSegments:u,remainingSegments:l,parameters:c})=>{if(!a)return null;const d=Dw(r)+u.length;return{snapshot:new Au(u,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(n),Vt(n),n.component??n._loadedComponent??null,n,vw(r),d,ww(n),d),consumedSegments:u,remainingSegments:l}}));return s.pipe(et(a=>{if(null===a)return I(null);const{snapshot:u,consumedSegments:l,remainingSegments:c}=a;t=n._injector??t;const d=n._loadedInjector??t,f=function xH(e){return e.children?e.children:e.loadChildren?e._loadedRoutes:[]}(n),{segmentGroup:h,slicedSegments:p}=Pu(r,l,c,f.filter(_=>void 0===_.redirectTo),this.relativeLinkResolution);if(0===p.length&&h.hasChildren())return this.processChildren(d,f,h).pipe($(_=>null===_?null:[new Ln(u,_)]));if(0===f.length&&0===p.length)return I([new Ln(u,[])]);const g=Vt(n)===i;return this.processSegment(d,f,h,p,g?z:i).pipe($(_=>null===_?null:[new Ln(u,_)]))}))}}function NH(e){const t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function _w(e){const t=[],n=new Set;for(const r of e){if(!NH(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=_w(r.children);t.push(new Ln(r.value,o))}return t.filter(r=>!n.has(r))}function vw(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Dw(e){let t=e,n=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift??0;return n-1}function bw(e){return e.data||{}}function ww(e){return e.resolve||{}}const ch=Symbol("RouteTitle");function Ew(e){return"string"==typeof e.title||null===e.title}function dh(e){return et(t=>{const n=e(t);return n?Se(n).pipe($(()=>t)):I(t)})}class HH extends class BH{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}{}const fh=new T("ROUTES");let hh=(()=>{class e{constructor(n,r){this.injector=n,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=kn(n.loadComponent()).pipe(Be(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),qf(()=>{this.componentLoaders.delete(n)})),o=new qu(r,()=>new rt).pipe(bs());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return I({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe($(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let u,l,c=!1;Array.isArray(a)?l=a:(u=a.create(n).injector,l=xb(u.get(fh,[],x.Self|x.Optional)));return{routes:l.map(ah),injector:u}}),qf(()=>{this.childrenLoaders.delete(r)})),s=new qu(i,()=>new rt).pipe(bs());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return kn(n()).pipe(qe(r=>r instanceof g_||Array.isArray(r)?I(r):Se(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)(M(Mt),M(vd))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class $H{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}}function GH(e){throw e}function zH(e,t,n){return t.parse("/")}const qH={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},WH={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let nt=(()=>{class e{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new rt,this.errorHandler=GH,this.malformedUriErrorHandler=zH,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>I(void 0),this.urlHandlingStrategy=new $H,this.routeReuseStrategy=new HH,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(hh),this.configLoader.onLoadEndListener=f=>this.triggerEvent(new x2(f)),this.configLoader.onLoadStartListener=f=>this.triggerEvent(new A2(f)),this.ngModule=s.get(br),this.console=s.get(fN);const d=s.get(xe);this.isNgZoneEnabled=d instanceof xe&&xe.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function XB(){return new Nr(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Jb(this.currentUrlTree,this.rootComponentType),this.transitions=new It({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(On(o=>0!==o.id),$(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),et(o=>{let i=!1,s=!1;return I(o).pipe(Be(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),et(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Sw(a.source)&&(this.browserUrlTree=a.extractedUrl),I(a).pipe(et(d=>{const f=this.transitions.getValue();return r.next(new Xf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?Lo:Promise.resolve(d)}),function EH(e,t,n,r){return et(o=>function bH(e,t,n,r,o){return new wH(e,t,n,r,o).apply()}(e,t,n,o.extractedUrl,r).pipe($(i=>({...o,urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Be(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},o.urlAfterRedirects=d.urlAfterRedirects}),function FH(e,t,n,r,o,i){return qe(s=>function IH(e,t,n,r,o,i,s="emptyOnly",a="legacy"){return new TH(e,t,n,r,o,s,a,i).recognize().pipe(et(u=>null===u?function SH(e){return new de(t=>t.error(e))}(new MH):I(u)))}(e,t,n,s.urlAfterRedirects,r.serialize(s.urlAfterRedirects),r,o,i).pipe($(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Be(d=>{if(o.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new E2(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:_}=a,D=new Xf(f,this.serializeUrl(h),p,g);r.next(D);const b=Jb(h,this.rootComponentType).snapshot;return I(o={...a,targetSnapshot:b,urlAfterRedirects:h,extras:{..._,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Lo}),Be(a=>{const u=new M2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),$(a=>o={...a,guards:Q2(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function sH(e,t){return qe(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?I({...n,guardsResult:!0}):function aH(e,t,n,r){return Se(e).pipe(qe(o=>function hH(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?I(i.map(a=>{const u=Ru(a,t,o);return kn(function rH(e){return e&&ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):u(e,t,n,r)).pipe(ar())})).pipe(zo()):I(!0)}(o.component,o.route,n,t,r)),ar(o=>!0!==o,!0))}(s,r,o,e).pipe(qe(a=>a&&function X2(e){return"boolean"==typeof e}(a)?function uH(e,t,n,r){return Se(t).pipe(ur(o=>Hf(function cH(e,t){return null!==e&&t&&t(new N2(e)),I(!0)}(o.route.parent,r),function lH(e,t){return null!==e&&t&&t(new F2(e)),I(!0)}(o.route,r),function fH(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Z2(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Eb(()=>I(s.guards.map(u=>{const l=Ru(u,s.node,n);return kn(function nH(e){return e&&ds(e.canActivateChild)}(l)?l.canActivateChild(r,e):l(r,e)).pipe(ar())})).pipe(zo())));return I(i).pipe(zo())}(e,o.path,n),function dH(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return I(!0);const o=r.map(i=>Eb(()=>{const s=Ru(i,t,n);return kn(function tH(e){return e&&ds(e.canActivate)}(s)?s.canActivate(t,e):s(t,e)).pipe(ar())}));return I(o).pipe(zo())}(e,o.route,n))),ar(o=>!0!==o,!0))}(r,i,e,t):I(a)),$(a=>({...n,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Be(a=>{if(o.guardsResult=a.guardsResult,Fr(a.guardsResult))throw nw(0,a.guardsResult);const u=new S2(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),On(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),dh(a=>{if(a.guards.canActivateChecks.length)return I(a).pipe(Be(u=>{const l=new I2(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),et(u=>{let l=!1;return I(u).pipe(function PH(e,t){return qe(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return I(n);let i=0;return Se(o).pipe(ur(s=>function OH(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Ew(o)&&(i[ch]=o.title),function kH(e,t,n,r){const o=function VH(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return I({});const i={};return Se(o).pipe(qe(s=>function LH(e,t,n,r){const o=Ru(e,t,r);return kn(o.resolve?o.resolve(t,n):o(t,n))}(e[s],t,n,r).pipe(ar(),Be(a=>{i[s]=a}))),zf(1),function zB(e){return t=>t.lift(new qB(e))}(i),sr(s=>s instanceof jo?Lo:es(s)))}(i,e,t,r).pipe($(s=>(e._resolvedData=s,e.data=Xb(e,n).resolve,o&&Ew(o)&&(e.data[ch]=o.title),null)))}(s.route,r,e,t)),Be(()=>i++),zf(1),qe(s=>i===o.length?I(n):Lo))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Be({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"",2))}}))}),Be(u=>{const l=new T2(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),dh(a=>{const u=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Be(d=>{l.component=d}),$(()=>{})));for(const d of l.children)c.push(...u(d));return c};return Bf(u(a.targetSnapshot.root)).pipe(Cu(),ts(1))}),dh(()=>this.afterPreactivation()),$(a=>{const u=function L2(e,t,n){const r=as(e,t._root,n?n._root:void 0);return new Yb(r,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return o={...a,targetRouterState:u}}),Be(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((e,t,n)=>$(r=>(new K2(t,r.targetRouterState,r.currentRouterState,n).activate(e),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Be({next(){i=!0},complete(){i=!0}}),qf(()=>{i||s||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),sr(a=>{if(s=!0,iw(a)){ow(a)||(this.navigated=!0,this.restoreHistory(o,!0));const u=new Tu(o.id,this.serializeUrl(o.extractedUrl),a.message,a.cancellationCode);if(r.next(u),ow(a)){const l=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),c={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sw(o.source)};this.scheduleNavigation(l,"imperative",null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}else o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new Kb(o.id,this.serializeUrl(o.extractedUrl),a,o.targetSnapshot??void 0);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return Lo}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next({...this.transitions.value,...n})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const o={replaceUrl:!0},i=n.state?.navigationId?n.state:null;if(i){const a={...i};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}const s=this.parseUrl(n.url);this.scheduleNavigation(s,r,i,o)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){this.config=n.map(ah),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...i};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),_2(l,this.currentUrlTree,n,d,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Fr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function KH(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new Pr(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,l;s?(a=s.resolve,u=s.reject,l=s.promise):l=new Promise((f,h)=>{a=f,u=h});const c=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),d=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:c,targetPageId:d,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===o?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r,o){const i=new Tu(n.id,this.serializeUrl(n.extractedUrl),r,o);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){yc()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();function Sw(e){return"imperative"!==e}let Iw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===z);return r}getResolvedTitleForRoute(n){return n.data[ch]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:function(){return qn(YH)},providedIn:"root"}),e})(),YH=(()=>{class e extends Iw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(M(yD))},e.\u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Tw{}let Aw=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(On(n=>n instanceof Pr),ur(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ba(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;i.loadChildren&&!i._loadedRoutes||i.loadComponent&&!i._loadedComponent?o.push(this.preloadConfig(s,i)):(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Se(o).pipe(Lr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):I(null);const i=o.pipe(qe(s=>null===s?I(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Se([i,this.loader.loadComponent(r)]).pipe(Lr()):i})}}return e.\u0275fac=function(n){return new(n||e)(M(nt),M(vd),M(Kn),M(Tw),M(hh))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const xw=new T("");let JH=(()=>{class e{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Xf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Pr&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Qb&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new Qb(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return e.\u0275fac=function(n){yc()},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const mh=new T("ROUTER_CONFIGURATION",{providedIn:"root",factory:()=>({})}),Nw=new T("ROUTER_FORROOT_GUARD"),Rw=new T(""),XH=[Fd,{provide:Vb,useClass:Lb},{provide:nt,useFactory:function iU(e,t,n,r,o,i,s,a={},u,l){const c=new nt(null,e,t,n,r,o,xb(i));return u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),c.titleStrategy=s,function sU(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy),e.canceledNavigationResolution&&(t.canceledNavigationResolution=e.canceledNavigationResolution)}(a,c),c},deps:[Vb,us,Fd,Mt,vd,fh,Iw,mh,[class UH{},new mr],[class jH{},new mr]]},us,{provide:Go,useFactory:function aU(e){return e.routerState.root},deps:[nt]},hh];function eU(){return new cv("Router",nt)}let Fw=(()=>{class e{constructor(n,r){}static forRoot(n,r){return{ngModule:e,providers:[XH,[],Pw(n),{provide:Nw,useFactory:oU,deps:[[nt,new mr,new di]]},{provide:mh,useValue:r||{}},r?.useHash?{provide:Mr,useClass:nR}:{provide:Mr,useClass:Pv},{provide:xw,useFactory:()=>{const e=qn(nt),t=qn(yF),n=qn(mh);return n.scrollOffset&&t.setOffset(n.scrollOffset),new JH(e,t,n)}},r?.preloadingStrategy?pU(r.preloadingStrategy):[],{provide:cv,multi:!0,useFactory:eU},r?.initialNavigation?lU(r):[],[{provide:Ow,useFactory:uU},{provide:rv,multi:!0,useExisting:Ow}]]}}static forChild(n){return{ngModule:e,providers:[Pw(n)]}}}return e.\u0275fac=function(n){return new(n||e)(M(Nw,8),M(nt,8))},e.\u0275mod=We({type:e}),e.\u0275inj=He({}),e})();function oU(e){return"guarded"}function Pw(e){return[{provide:NM,multi:!0,useValue:e},{provide:fh,multi:!0,useValue:e}]}function uU(){const e=qn(Mt);return t=>{const n=e.get(xa);if(t!==n.components[0])return;const r=e.get(nt),o=e.get(kw);null===e.get(yh,null,x.Optional)&&r.initialNavigation(),e.get(Rw,null,x.Optional)?.setUpPreloading(),e.get(xw,null,x.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.next(),o.complete()}}const Ow=new T("");function lU(e){return["disabled"===e.initialNavigation?[{provide:Ia,multi:!0,useFactory:()=>{const e=qn(nt);return()=>{e.setUpLocationChangeListener()}}},{provide:yh,useValue:"disabled"}]:[],"enabledBlocking"===e.initialNavigation?[{provide:yh,useValue:"enabledBlocking"},{provide:Ia,multi:!0,deps:[Mt],useFactory:e=>{const t=e.get(XN,Promise.resolve(null));let n=!1;return()=>t.then(()=>new Promise(o=>{const i=e.get(nt),s=e.get(kw);(function r(o){e.get(nt).events.pipe(On(s=>s instanceof Pr||s instanceof Tu||s instanceof Kb),$(s=>s instanceof Pr||s instanceof Tu&&(0===s.code||1===s.code)&&null),On(s=>null!==s),ts(1)).subscribe(()=>{o()})})(()=>{o(!0),n=!0}),i.afterPreactivation=()=>(o(!0),n||s.closed?I(void 0):s),i.initialNavigation()}))}}]:[]]}const kw=new T("",{factory:()=>new rt}),yh=new T("");function pU(e){return[Aw,{provide:Rw,useExisting:Aw},{provide:Tw,useExisting:e}]}const gU=[];let mU=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({imports:[Fw.forRoot(gU),Fw]}),e})();function yU(e,t){if(1&e){const n=function Wm(){return v()}();te(0,"form",6)(1,"nb-field-item",7)(2,"span",8),ae(3),oe(4,"nbTrans"),Q(),mt(5,"input",9),Q(),te(6,"nb-field-item",10)(7,"span",8),ae(8),oe(9,"nbTrans"),Q(),mt(10,"input",9),Q(),te(11,"nb-field-item",10)(12,"span",8),ae(13),oe(14,"nbTrans"),Q(),te(15,"input",11),je("change",function(o){return function ip(e){return O.lFrame.contextLView=e,e[8]}(n),function sp(e){return O.lFrame.contextLView=null,e}(Ae().onChangeFile(o))}),Q()(),te(16,"nb-field-item",12)(17,"span",8),ae(18),oe(19,"nbTrans"),Q(),mt(20,"input",9),Q(),te(21,"nb-field-item",12)(22,"span",8),ae(23),oe(24,"nbTrans"),Q(),mt(25,"input",9),Q(),te(26,"nb-field-item",10)(27,"span",8),ae(28),oe(29,"nbTrans"),Q(),mt(30,"input",9),Q()()}if(2&e){const n=Ae();G("formGroup",n.form),j(1),G("required",!0)("control",n.field1Ctrl)("errInfo",n.errInfo1),j(2),wn("",fe(4,23,"demoContent.field1"),"\uff1a"),j(2),G("formControl",n.field1Ctrl),j(1),G("control",n.field2Ctrl)("errInfo",n.errInfo1),j(2),wn("",fe(9,25,"demoContent.field2"),"\uff1a"),j(2),G("formControl",n.field2Ctrl),j(1),G("control",n.field3Ctrl)("errInfo",n.errInfo2),j(2),wn("",fe(14,27,"demoContent.field3"),"\uff1a"),j(3),G("control",n.field4Ctrl),j(2),wn("",fe(19,29,"demoContent.field4"),"\uff1a"),j(2),G("formControl",n.field4Ctrl),j(1),G("control",n.field5Ctrl),j(2),wn("",fe(24,31,"demoContent.field5"),"\uff1a"),j(2),G("formControl",n.field5Ctrl),j(1),G("control",n.field6Ctrl)("errInfo",n.errInfo1),j(2),wn("",fe(29,33,"demoContent.field6"),"\uff1a"),j(2),G("formControl",n.field6Ctrl)}}function _U(e,t){if(1&e&&(te(0,"form",13),mt(1,"input",14)(2,"nb-control-err",10),Q()),2&e){const n=Ae();G("formGroup",n.form),j(2),G("control",n.field1Ctrl)("errInfo",n.errInfo1)}}let vU=(()=>{class e{constructor(n,r,o){this.fb=n,this.formService=r,this.transService=o,this.errInfo1={[tt.REQUIRED]:this.transService.translationAsync("errors.required"),[tt.WHITESPACE]:this.transService.translationAsync("errors.required")},this.errInfo2={[tt.FILE_MAX_SIZE]:"The file max size is 500kb!"}}get field1Ctrl(){return this.form?.get("field1")}get field2Ctrl(){return this.form?.get("field2")}get field3Ctrl(){return this.form?.get("field3")}get field4Ctrl(){return this.form?.get("field4")}get field5Ctrl(){return this.form?.get("field5")}get field6Ctrl(){return this.form?.get("field6")}ngOnInit(){this.buildForm(),this.formService.updateEqualControlsValidities({target:this.field4Ctrl,compared:this.field5Ctrl})}changeLanguage(n){this.transService.changeLangSync("en"===n?Pn.EN:Pn.ZH_CN)}resetCtrl1(){this.field1Ctrl.reset()}onChangeFile(n){const r=n.target;r&&r.files?.length&&(this.field3Ctrl.markAsDirty(),this.field3Ctrl.setValue(r.files[0]))}onSubmit(){this.formService.showAllErrInfo(this.form)}buildForm(){this.form=this.fb.group({field1:[null,[kt_required(!0)]],field2:[null,[kt_whitespace(!1)]],field3:[void 0,this.formService.getValidatorsFromControlConfig({fileType:["image/svg+xml","image/jpeg"],maxFileSize:5e5,minFileSize:1e5})],field4:[""],field5:[null],field6:[null,[kt_required(!0)]]}),this.field4Ctrl.setValidators([kt_equal(this.field5Ctrl,!1)]),this.field5Ctrl.setValidators([kt_equal(this.field4Ctrl,!1)]),this.field6Ctrl.markAsDirty()}}return e.\u0275fac=function(n){return new(n||e)(m(eP),m(SB),m(Du))},e.\u0275cmp=fn({type:e,selectors:[["app-root"]],decls:49,vars:35,consts:[["href","https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md","target","_blank"],["href","https://github.com/bigBear713/nb-form/blob/master/CHANGELOG.md","target","_blank"],["type","button",3,"click"],[3,"formGroup",4,"ngIf"],["style","margin-bottom: 20px;width: 200px;",3,"formGroup",4,"ngIf"],[3,"click"],[3,"formGroup"],[3,"required","control","errInfo"],["field-label",""],["type","text",3,"formControl"],[3,"control","errInfo"],["type","file",3,"change"],[3,"control"],[2,"margin-bottom","20px","width","200px",3,"formGroup"],["type","text","formControlName","field1"]],template:function(n,r){1&n&&(te(0,"h2")(1,"a",0),ae(2," Document "),Q(),te(3,"a",1),ae(4," Changelog "),Q()(),mt(5,"hr"),te(6,"h3")(7,"button",2),je("click",function(){return r.changeLanguage("zh-CN")}),ae(8,"\u5207\u6362\u4e3a\u4e2d\u6587"),Q(),te(9,"button",2),je("click",function(){return r.changeLanguage("en")}),ae(10,"switch as English"),Q()(),Ee(11,yU,31,35,"form",3),mt(12,"hr"),te(13,"h5"),ae(14),oe(15,"nbTrans"),Q(),Ee(16,_U,3,3,"form",4),mt(17,"hr"),te(18,"button",2),je("click",function(){return r.onSubmit()}),ae(19),oe(20,"nbTrans"),Q(),te(21,"button",5),je("click",function(){return r.resetCtrl1()}),ae(22),oe(23,"nbTrans"),Q(),te(24,"div")(25,"p"),ae(26),oe(27,"nbTrans"),Q(),te(28,"p"),ae(29),oe(30,"nbTrans"),Q(),te(31,"p"),ae(32),oe(33,"nbTrans"),Q(),te(34,"p"),ae(35),oe(36,"nbTrans"),Q(),te(37,"p"),ae(38),oe(39,"nbTrans"),Q(),te(40,"p"),ae(41),oe(42,"nbTrans"),Q(),te(43,"p"),ae(44),oe(45,"nbTrans"),Q(),te(46,"p"),ae(47),oe(48,"nbTrans"),Q()()),2&n&&(j(11),G("ngIf",r.form),j(3),$e(fe(15,13,"demoContent.useComp")),j(2),G("ngIf",r.form),j(3),$e(fe(20,15,"demoContent.submit")),j(3),$e(fe(23,17,"demoContent.resetField1")),j(4),$e(fe(27,19,"demoContent.desc")),j(3),$e(fe(30,21,"demoContent.desc1")),j(3),$e(fe(33,23,"demoContent.desc2")),j(3),$e(fe(36,25,"demoContent.desc3")),j(3),$e(fe(39,27,"demoContent.desc4")),j(3),$e(fe(42,29,"demoContent.desc5")),j(3),$e(fe(45,31,"demoContent.desc6")),j(3),$e(fe(48,33,"demoContent.desc7")))},dependencies:[qa,lC,eu,zD,qD,mf,du,vf,$f,wb,Db],styles:["h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 8px}form[_ngcontent-%COMP%]{width:300px}"]}),e})();class Vw{}class Lw{}class Bn{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(n=>{let r=t[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const 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 Bn?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){const n=new Bn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Bn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class DU{encodeKey(t){return jw(t)}encodeValue(t){return jw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const bU=/%(\d[a-f0-9])/gi,wU={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jw(e){return encodeURIComponent(e).replace(bU,(t,n)=>wU[n]??t)}function Bu(e){return`${e}`}class lr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new DU,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function CU(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Bu):[Bu(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const 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){const n=[];return Object.keys(t).forEach(r=>{const 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=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new lr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Bu(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Bu(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class EU{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function Bw(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Hw(e){return typeof Blob<"u"&&e instanceof Blob}function Uw(e){return typeof FormData<"u"&&e instanceof FormData}class hs{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function MU(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Bn),this.context||(this.context=new EU),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),u)),t.setParams&&(l=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),l)),new hs(n,r,i,{params:l,headers:u,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Fe=(()=>((Fe=Fe||{})[Fe.Sent=0]="Sent",Fe[Fe.UploadProgress=1]="UploadProgress",Fe[Fe.ResponseHeader=2]="ResponseHeader",Fe[Fe.DownloadProgress=3]="DownloadProgress",Fe[Fe.Response=4]="Response",Fe[Fe.User=5]="User",Fe))();class _h{constructor(t,n=200,r="OK"){this.headers=t.headers||new Bn,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class vh extends _h{constructor(t={}){super(t),this.type=Fe.ResponseHeader}clone(t={}){return new vh({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Hu extends _h{constructor(t={}){super(t),this.type=Fe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Hu({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class $w extends _h{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Dh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Gw=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof hs)i=n;else{let u,l;u=o.headers instanceof Bn?o.headers:new Bn(o.headers),o.params&&(l=o.params instanceof lr?o.params:new lr({fromObject:o.params})),i=new hs(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=I(i).pipe(ur(u=>this.handler.handle(u)));if(n instanceof hs||"events"===o.observe)return s;const a=s.pipe(On(u=>u instanceof Hu));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe($(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe($(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe($(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe($(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}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 lr).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,Dh(o,r))}post(n,r,o={}){return this.request("POST",n,Dh(o,r))}put(n,r,o={}){return this.request("PUT",n,Dh(o,r))}}return e.\u0275fac=function(n){return new(n||e)(M(Vw))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();class zw{constructor(t,n){this.next=t,this.interceptor=n}handle(t){return this.interceptor.intercept(t,this.next)}}const qw=new T("HTTP_INTERCEPTORS");let IU=(()=>{class e{intercept(n,r){return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const TU=/^\)\]\}',?\n/;let Ww=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new de(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=o.statusText||"OK",p=new Bn(o.getAllResponseHeaders()),g=function AU(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new vh({headers:p,status:o.status,statusText:h,url:g}),s},u=()=>{let{headers:h,status:p,statusText:g,url:_}=a(),D=null;204!==p&&(D=typeof o.response>"u"?o.responseText:o.response),0===p&&(p=D?200:0);let b=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const y=D;D=D.replace(TU,"");try{D=""!==D?JSON.parse(D):null}catch(S){D=y,b&&(b=!1,D={error:S,text:D})}}b?(r.next(new Hu({body:D,headers:h,status:p,statusText:g,url:_||void 0})),r.complete()):r.error(new $w({error:D,headers:h,status:p,statusText:g,url:_||void 0}))},l=h=>{const{url:p}=a(),g=new $w({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(g)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:Fe.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:Fe.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:Fe.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return e.\u0275fac=function(n){return new(n||e)(M(tD))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})();const Ch=new T("XSRF_COOKIE_NAME"),bh=new T("XSRF_HEADER_NAME");class Kw{}let xU=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(M(dt),M(_d),M(Ch))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),wh=(()=>{class e{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(M(Kw),M(bh))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),NU=(()=>{class e{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(qw,[]);this.chain=r.reduceRight((o,i)=>new zw(o,i),this.backend)}return this.chain.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(M(Lw),M(Mt))},e.\u0275prov=A({token:e,factory:e.\u0275fac}),e})(),RU=(()=>{class e{static disable(){return{ngModule:e,providers:[{provide:wh,useClass:IU}]}}static withOptions(n={}){return{ngModule:e,providers:[n.cookieName?{provide:Ch,useValue:n.cookieName}:[],n.headerName?{provide:bh,useValue:n.headerName}:[]]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({providers:[wh,{provide:qw,useExisting:wh,multi:!0},{provide:Kw,useClass:xU},{provide:Ch,useValue:"XSRF-TOKEN"},{provide:bh,useValue:"X-XSRF-TOKEN"}]}),e})(),FU=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e}),e.\u0275inj=He({providers:[Gw,{provide:Vw,useClass:NU},Ww,{provide:Lw,useExisting:Ww}],imports:[RU.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),e})(),PU=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=We({type:e,bootstrap:[vU]}),e.\u0275inj=He({providers:[{provide:bb,useFactory:t=>({[tt.FILE_TYPE]:t.translationAsync("errors.fileType"),[tt.FILE_MIN_SIZE]:"The file min size is 100KB!",[tt.EQUAL]:"\u4e24\u4e2a\u63a7\u4ef6\u503c\u4e0d\u76f8\u7b49"}),deps:[Du]},{provide:vb,useFactory:t=>({[Pn.ZH_CN]:()=>t.get("./assets/localization/zh-CN/translations.json"),[Pn.EN]:()=>t.get("./assets/localization/en/translations.json")}),deps:[Gw]}],imports:[GF,FU,J1,wf,EB,uB,mU]}),e})();(function RN(){vv=!1})(),$F().bootstrapModule(PU).catch(e=>console.error(e))}},cr=>{cr(cr.s=661)}]); \ No newline at end of file diff --git a/docs/main.a728ddb9b41d1fde.js b/docs/main.a728ddb9b41d1fde.js new file mode 100644 index 0000000..8f75eb4 --- /dev/null +++ b/docs/main.a728ddb9b41d1fde.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[179],{9079:(Oe,ie,A)=>{var h=A(6895),p=A(6738);class X extends h.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ee extends X{static makeCurrent(){(0,h.HT)(new ee)}onAndCancel(s,i,c){return s.addEventListener(i,c,!1),()=>{s.removeEventListener(i,c,!1)}}dispatchEvent(s,i){s.dispatchEvent(i)}remove(s){s.parentNode&&s.parentNode.removeChild(s)}createElement(s,i){return(i=i||this.getDefaultDocument()).createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,i){return"window"===i?window:"document"===i?s:"body"===i?s.body:null}getBaseHref(s){const i=function Q(){return ae=ae||document.querySelector("base"),ae?ae.getAttribute("href"):null}();return null==i?null:function re(u){fe=fe||document.createElement("a"),fe.setAttribute("href",u);const s=fe.pathname;return"/"===s.charAt(0)?s:`/${s}`}(i)}resetBaseElement(){ae=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return(0,h.Mx)(document.cookie,s)}}let fe,ae=null;const Y=new p.OlP("TRANSITION_ID"),k=[{provide:p.ip1,useFactory:function L(u,s,i){return()=>{i.get(p.CZH).donePromise.then(()=>{const c=(0,h.q)(),d=s.querySelectorAll(`style[ng-transition="${u}"]`);for(let b=0;b{class u{build(){return new XMLHttpRequest}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();const q=new p.OlP("EventManagerPlugins");let ce=(()=>{class u{constructor(i,c){this._zone=c,this._eventNameToPlugin=new Map,i.forEach(d=>d.manager=this),this._plugins=i.slice().reverse()}addEventListener(i,c,d){return this._findPluginFor(c).addEventListener(i,c,d)}addGlobalEventListener(i,c,d){return this._findPluginFor(c).addGlobalEventListener(i,c,d)}getZone(){return this._zone}_findPluginFor(i){const c=this._eventNameToPlugin.get(i);if(c)return c;const d=this._plugins;for(let b=0;b{class u{constructor(){this._stylesSet=new Set}addStyles(i){const c=new Set;i.forEach(d=>{this._stylesSet.has(d)||(this._stylesSet.add(d),c.add(d))}),this.onStylesAdded(c)}onStylesAdded(i){}getAllStyles(){return Array.from(this._stylesSet)}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})(),Me=(()=>{class u extends he{constructor(i){super(),this._doc=i,this._hostNodes=new Map,this._hostNodes.set(i.head,[])}_addStylesToHost(i,c,d){i.forEach(b=>{const w=this._doc.createElement("style");w.textContent=b,d.push(c.appendChild(w))})}addHost(i){const c=[];this._addStylesToHost(this._stylesSet,i,c),this._hostNodes.set(i,c)}removeHost(i){const c=this._hostNodes.get(i);c&&c.forEach(Re),this._hostNodes.delete(i)}onStylesAdded(i){this._hostNodes.forEach((c,d)=>{this._addStylesToHost(i,d,c)})}ngOnDestroy(){this._hostNodes.forEach(i=>i.forEach(Re))}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.K0))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();function Re(u){(0,h.q)().remove(u)}const se={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/MathML/"},We=/%COMP%/g;function Ie(u,s){return s.flat(100).map(i=>i.replace(We,u))}function Fe(u){return s=>{if("__ngUnwrap__"===s)return u;!1===u(s)&&(s.preventDefault(),s.returnValue=!1)}}let Ce=(()=>{class u{constructor(i,c,d){this.eventManager=i,this.sharedStylesHost=c,this.appId=d,this.rendererByCompId=new Map,this.defaultRenderer=new Gt(i)}createRenderer(i,c){if(!i||!c)return this.defaultRenderer;switch(c.encapsulation){case p.ifc.Emulated:{let d=this.rendererByCompId.get(c.id);return d||(d=new fr(this.eventManager,this.sharedStylesHost,c,this.appId),this.rendererByCompId.set(c.id,d)),d.applyToHost(i),d}case 1:case p.ifc.ShadowDom:return new zt(this.eventManager,this.sharedStylesHost,i,c);default:if(!this.rendererByCompId.has(c.id)){const d=Ie(c.id,c.styles);this.sharedStylesHost.addStyles(d),this.rendererByCompId.set(c.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(ce),p.LFG(Me),p.LFG(p.AFp))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();class Gt{constructor(s){this.eventManager=s,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(s,i){return i?document.createElementNS(se[i]||i,s):document.createElement(s)}createComment(s){return document.createComment(s)}createText(s){return document.createTextNode(s)}appendChild(s,i){(bn(s)?s.content:s).appendChild(i)}insertBefore(s,i,c){s&&(bn(s)?s.content:s).insertBefore(i,c)}removeChild(s,i){s&&s.removeChild(i)}selectRootElement(s,i){let c="string"==typeof s?document.querySelector(s):s;if(!c)throw new Error(`The selector "${s}" did not match any elements`);return i||(c.textContent=""),c}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,i,c,d){if(d){i=d+":"+i;const b=se[d];b?s.setAttributeNS(b,i,c):s.setAttribute(i,c)}else s.setAttribute(i,c)}removeAttribute(s,i,c){if(c){const d=se[c];d?s.removeAttributeNS(d,i):s.removeAttribute(`${c}:${i}`)}else s.removeAttribute(i)}addClass(s,i){s.classList.add(i)}removeClass(s,i){s.classList.remove(i)}setStyle(s,i,c,d){d&(p.JOm.DashCase|p.JOm.Important)?s.style.setProperty(i,c,d&p.JOm.Important?"important":""):s.style[i]=c}removeStyle(s,i,c){c&p.JOm.DashCase?s.style.removeProperty(i):s.style[i]=""}setProperty(s,i,c){s[i]=c}setValue(s,i){s.nodeValue=i}listen(s,i,c){return"string"==typeof s?this.eventManager.addGlobalEventListener(s,i,Fe(c)):this.eventManager.addEventListener(s,i,Fe(c))}}function bn(u){return"TEMPLATE"===u.tagName&&void 0!==u.content}class fr extends Gt{constructor(s,i,c,d){super(s),this.component=c;const b=Ie(d+"-"+c.id,c.styles);i.addStyles(b),this.contentAttr=function mt(u){return"_ngcontent-%COMP%".replace(We,u)}(d+"-"+c.id),this.hostAttr=function _e(u){return"_nghost-%COMP%".replace(We,u)}(d+"-"+c.id)}applyToHost(s){super.setAttribute(s,this.hostAttr,"")}createElement(s,i){const c=super.createElement(s,i);return super.setAttribute(c,this.contentAttr,""),c}}class zt extends Gt{constructor(s,i,c,d){super(s),this.sharedStylesHost=i,this.hostEl=c,this.shadowRoot=c.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const b=Ie(d.id,d.styles);for(let w=0;w{class u extends J{constructor(i){super(i)}supports(i){return!0}addEventListener(i,c,d){return i.addEventListener(c,d,!1),()=>this.removeEventListener(i,c,d)}removeEventListener(i,c,d){return i.removeEventListener(c,d)}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.K0))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();const hr=["alt","control","meta","shift"],Ve={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$={alt:u=>u.altKey,control:u=>u.ctrlKey,meta:u=>u.metaKey,shift:u=>u.shiftKey};let B=(()=>{class u extends J{constructor(i){super(i)}supports(i){return null!=u.parseEventName(i)}addEventListener(i,c,d){const b=u.parseEventName(c),w=u.eventCallback(b.fullKey,d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,h.q)().onAndCancel(i,b.domEventName,w))}static parseEventName(i){const c=i.toLowerCase().split("."),d=c.shift();if(0===c.length||"keydown"!==d&&"keyup"!==d)return null;const b=u._normalizeKey(c.pop());let w="",N=c.indexOf("code");if(N>-1&&(c.splice(N,1),w="code."),hr.forEach(ve=>{const Se=c.indexOf(ve);Se>-1&&(c.splice(Se,1),w+=ve+".")}),w+=b,0!=c.length||0===b.length)return null;const W={};return W.domEventName=d,W.fullKey=w,W}static matchEventFullKeyCode(i,c){let d=Ve[i.key]||i.key,b="";return c.indexOf("code.")>-1&&(d=i.code,b="code."),!(null==d||!d)&&(d=d.toLowerCase()," "===d?d="space":"."===d&&(d="dot"),hr.forEach(w=>{w!==d&&(0,$[w])(i)&&(b+=w+".")}),b+=d,b===c)}static eventCallback(i,c,d){return b=>{u.matchEventFullKeyCode(b,i)&&d.runGuarded(()=>c(b))}}static _normalizeKey(i){return"esc"===i?"escape":i}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.K0))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();const go=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:h.bD},{provide:p.g9A,useValue:function Ar(){ee.makeCurrent()},multi:!0},{provide:h.K0,useFactory:function Xr(){return(0,p.RDi)(document),document},deps:[]}]),Nt=new p.OlP(""),ct=[{provide:p.rWj,useClass:class z{addToWindow(s){p.dqk.getAngularTestability=(c,d=!0)=>{const b=s.findTestabilityInTree(c,d);if(null==b)throw new Error("Could not find testability for element.");return b},p.dqk.getAllAngularTestabilities=()=>s.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>s.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(c=>{const d=p.dqk.getAllAngularTestabilities();let b=d.length,w=!1;const N=function(W){w=w||W,b--,0==b&&c(w)};d.forEach(function(W){W.whenStable(N)})})}findTestabilityInTree(s,i,c){return null==i?null:s.getTestability(i)??(c?(0,h.q)().isShadowRoot(i)?this.findTestabilityInTree(s,i.host,!0):this.findTestabilityInTree(s,i.parentElement,!0):null)}},deps:[]},{provide:p.lri,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b,p.eoX,p.rWj]}],Kn=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Vr(){return new p.qLn},deps:[]},{provide:q,useClass:rn,multi:!0,deps:[h.K0,p.R0b,p.Lbi]},{provide:q,useClass:B,multi:!0,deps:[h.K0]},{provide:Ce,useClass:Ce,deps:[ce,Me,p.AFp]},{provide:p.FYo,useExisting:Ce},{provide:he,useExisting:Me},{provide:Me,useClass:Me,deps:[h.K0]},{provide:ce,useClass:ce,deps:[q,p.R0b]},{provide:h.JF,useClass:le,deps:[]},[]];let mo=(()=>{class u{constructor(i){}static withServerTransition(i){return{ngModule:u,providers:[{provide:p.AFp,useValue:i.appId},{provide:Y,useExisting:p.AFp},k]}}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(Nt,12))},u.\u0275mod=p.oAB({type:u}),u.\u0275inj=p.cJS({providers:[...Kn,...ct],imports:[h.ez,p.hGG]}),u})(),qn=(()=>{class u{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.K0))},u.\u0275prov=p.Yz7({token:u,factory:function(i){let c=null;return c=i?new i:function Kt(){return new qn((0,p.LFG)(h.K0))}(),c},providedIn:"root"}),u})();typeof window<"u"&&window;var qt=A(4719),wt=A(3324),ft=A(929),Ot=A(5254),Te=A(1086),yt=A(591);const Be=(()=>{function u(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return u.prototype=Object.create(Error.prototype),u})();var Gn=A(3426),Hr=A(1221),vn=A(6498);const cn=new vn.y(u=>u.complete());function Lt(u){return u?function yr(u){return new vn.y(s=>u.schedule(()=>s.complete()))}(u):cn}function Nr(u){return new vn.y(s=>{let i;try{i=u()}catch(d){return void s.error(d)}return(i?(0,Ot.D)(i):Lt()).subscribe(s)})}var vr=A(4843);function Jn(u,s){return new vn.y(s?i=>s.schedule(Fn,0,{error:u,subscriber:i}):i=>i.error(u))}function Fn({error:u,subscriber:s}){s.error(u)}var Do=A(1762),wn=A(5529),Ge=A(4850),Sn=A(7545),Ln=A(3489);const Xe=(()=>{function u(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return u.prototype=Object.create(Error.prototype),u})();function Dt(u){return s=>0===u?Lt():s.lift(new kt(u))}class kt{constructor(s){if(this.total=s,this.total<0)throw new Xe}call(s,i){return i.subscribe(new nr(s,this.total))}}class nr extends Ln.L{constructor(s,i){super(s),this.total=i,this.count=0}_next(s){const i=this.total,c=++this.count;c<=i&&(this.destination.next(s),c===i&&(this.destination.complete(),this.unsubscribe()))}}var dn=A(1059);function Vt(u,s){return function(c){return c.lift(new T(u,s))}}class T{constructor(s,i){this.predicate=s,this.thisArg=i}call(s,i){return i.subscribe(new P(s,this.predicate,this.thisArg))}}class P extends Ln.L{constructor(s,i,c){super(s),this.predicate=i,this.thisArg=c,this.count=0}_next(s){let i;try{i=this.predicate.call(this.thisArg,s,this.count++)}catch(c){return void this.destination.error(c)}i&&this.destination.next(s)}}var x=A(1709);function U(u=null){return s=>s.lift(new ye(u))}class ye{constructor(s){this.defaultValue=s}call(s,i){return i.subscribe(new Ae(s,this.defaultValue))}}class Ae extends Ln.L{constructor(s,i){super(s),this.defaultValue=i,this.isEmpty=!0}_next(s){this.isEmpty=!1,this.destination.next(s)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function nt(u=kn){return s=>s.lift(new et(u))}class et{constructor(s){this.errorFactory=s}call(s,i){return i.subscribe(new _r(s,this.errorFactory))}}class _r extends Ln.L{constructor(s,i){super(s),this.errorFactory=i,this.hasValue=!1}_next(s){this.hasValue=!0,this.destination.next(s)}_complete(){if(this.hasValue)return this.destination.complete();{let s;try{s=this.errorFactory()}catch(i){s=i}this.destination.error(s)}}}function kn(){return new Be}var He=A(5379);function zn(u,s){const i=arguments.length>=2;return c=>c.pipe(u?Vt((d,b)=>u(d,b,c)):He.y,Dt(1),i?U(s):nt(()=>new Be))}function At(u,s){return(0,x.zg)(u,s,1)}var jt=A(2868),_n=A(7221);function Bt(u,s){let i=!1;return arguments.length>=2&&(i=!0),function(d){return d.lift(new Dr(u,s,i))}}class Dr{constructor(s,i,c=!1){this.accumulator=s,this.seed=i,this.hasSeed=c}call(s,i){return i.subscribe(new rr(s,this.accumulator,this.seed,this.hasSeed))}}class rr extends Ln.L{constructor(s,i,c,d){super(s),this.accumulator=i,this._seed=c,this.hasSeed=d,this.index=0}get seed(){return this._seed}set seed(s){this.hasSeed=!0,this._seed=s}_next(s){if(this.hasSeed)return this._tryNext(s);this.seed=s,this.destination.next(s)}_tryNext(s){const i=this.index++;let c;try{c=this.accumulator(this.seed,s,i)}catch(d){this.destination.error(d)}this.seed=c,this.destination.next(c)}}function Mn(u){return function(i){return 0===u?Lt():i.lift(new Fr(u))}}class Fr{constructor(s){if(this.total=s,this.total<0)throw new Xe}call(s,i){return i.subscribe(new ko(s,this.total))}}class ko extends Ln.L{constructor(s,i){super(s),this.total=i,this.ring=new Array,this.count=0}_next(s){const i=this.ring,c=this.total,d=this.count++;i.length0){const c=this.count>=this.total?this.total:this.count,d=this.ring;for(let b=0;b=2;return c=>c.pipe(u?Vt((d,b)=>u(d,b,c)):He.y,Mn(1),i?U(s):nt(()=>new Be))}class Co{constructor(s,i){this.predicate=s,this.inclusive=i}call(s,i){return i.subscribe(new bo(s,this.predicate,this.inclusive))}}class bo extends Ln.L{constructor(s,i,c){super(s),this.predicate=i,this.inclusive=c,this.index=0}_next(s){const i=this.destination;let c;try{c=this.predicate(s,this.index++)}catch(d){return void i.error(d)}this.nextOrComplete(s,c)}nextOrComplete(s,i){const c=this.destination;Boolean(i)?c.next(s):(this.inclusive&&c.next(s),c.complete())}}class $r{constructor(s){this.value=s}call(s,i){return i.subscribe(new or(s,this.value))}}class or extends Ln.L{constructor(s,i){super(s),this.value=i}_next(s){this.destination.next(this.value)}}var sn=A(2654);function eo(u){return s=>s.lift(new Dn(u))}class Dn{constructor(s){this.callback=s}call(s,i){return i.subscribe(new fn(s,this.callback))}}class fn extends Ln.L{constructor(s,i){super(s),this.add(new sn.w(i))}}var Gr=A(4327),Wn=A(9146);const ze="primary",Wt=Symbol("RouteTitle");class to{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){const i=this.params[s];return Array.isArray(i)?i[0]:i}return null}getAll(s){if(this.has(s)){const i=this.params[s];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}}function Cr(u){return new to(u)}function no(u,s,i){const c=i.path.split("/");if(c.length>u.length||"full"===i.pathMatch&&(s.hasChildren()||c.lengthc[b]===d)}return u===s}function wo(u){return Array.prototype.concat.apply([],u)}function ri(u){return u.length>0?u[u.length-1]:null}function Qt(u,s){for(const i in u)u.hasOwnProperty(i)&&s(u[i],i)}function ir(u){return(0,p.CqO)(u)?u:(0,p.QGY)(u)?(0,Ot.D)(Promise.resolve(u)):(0,Te.of)(u)}const oi=!1,So={exact:function In(u,s,i){if(!Er(u.segments,s.segments)||!oo(u.segments,s.segments,i)||u.numberOfChildren!==s.numberOfChildren)return!1;for(const c in s.children)if(!u.children[c]||!In(u.children[c],s.children[c],i))return!1;return!0},subset:Uo},Ci={exact:function ii(u,s){return Yn(u,s)},subset:function br(u,s){return Object.keys(s).length<=Object.keys(u).length&&Object.keys(s).every(i=>Vo(u[i],s[i]))},ignored:()=>!0};function ro(u,s,i){return So[i.paths](u.root,s.root,i.matrixParams)&&Ci[i.queryParams](u.queryParams,s.queryParams)&&!("exact"===i.fragment&&u.fragment!==s.fragment)}function Uo(u,s,i){return si(u,s,s.segments,i)}function si(u,s,i,c){if(u.segments.length>i.length){const d=u.segments.slice(0,i.length);return!(!Er(d,i)||s.hasChildren()||!oo(d,i,c))}if(u.segments.length===i.length){if(!Er(u.segments,i)||!oo(u.segments,i,c))return!1;for(const d in s.children)if(!u.children[d]||!Uo(u.children[d],s.children[d],c))return!1;return!0}{const d=i.slice(0,u.segments.length),b=i.slice(u.segments.length);return!!(Er(u.segments,d)&&oo(u.segments,d,c)&&u.children[ze])&&si(u.children[ze],s,b,c)}}function oo(u,s,i){return s.every((c,d)=>Ci[i](u[d].parameters,c.parameters))}class Jt{constructor(s=new Ke([],{}),i={},c=null){this.root=s,this.queryParams=i,this.fragment=c}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return wr.serialize(this)}}class Ke{constructor(s,i){this.segments=s,this.children=i,this.parent=null,Qt(i,(c,d)=>c.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ar(this)}}class Zn{constructor(s,i){this.path=s,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=Cr(this.parameters)),this._parameterMap}toString(){return Xt(this)}}function Er(u,s){return u.length===s.length&&u.every((i,c)=>i.path===s[c].path)}let Lr=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:function(){return new sr},providedIn:"root"}),u})();class sr{parse(s){const i=new D(s);return new Jt(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(s){const i=`/${io(s.root,!0)}`,c=function Bo(u){const s=Object.keys(u).map(i=>{const c=u[i];return Array.isArray(c)?c.map(d=>`${zr(i)}=${zr(d)}`).join("&"):`${zr(i)}=${zr(c)}`}).filter(i=>!!i);return s.length?`?${s.join("&")}`:""}(s.queryParams);return`${i}${c}${"string"==typeof s.fragment?`#${function so(u){return encodeURI(u)}(s.fragment)}`:""}`}}const wr=new sr;function ar(u){return u.segments.map(s=>Xt(s)).join("/")}function io(u,s){if(!u.hasChildren())return ar(u);if(s){const i=u.children[ze]?io(u.children[ze],!1):"",c=[];return Qt(u.children,(d,b)=>{b!==ze&&c.push(`${b}:${io(d,!1)}`)}),c.length>0?`${i}(${c.join("//")})`:i}{const i=function Io(u,s){let i=[];return Qt(u.children,(c,d)=>{d===ze&&(i=i.concat(s(c,d)))}),Qt(u.children,(c,d)=>{d!==ze&&(i=i.concat(s(c,d)))}),i}(u,(c,d)=>d===ze?[io(u.children[ze],!1)]:[`${d}:${io(c,!1)}`]);return 1===Object.keys(u.children).length&&null!=u.children[ze]?`${ar(u)}/${i[0]}`:`${ar(u)}/(${i.join("//")})`}}function an(u){return encodeURIComponent(u).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zr(u){return an(u).replace(/%3B/gi,";")}function Ht(u){return an(u).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wr(u){return decodeURIComponent(u)}function Yr(u){return Wr(u.replace(/\+/g,"%20"))}function Xt(u){return`${Ht(u.path)}${function ao(u){return Object.keys(u).map(s=>`;${Ht(s)}=${Ht(u[s])}`).join("")}(u.parameters)}`}const uo=/^[^\/()?;=#]+/;function Yt(u){const s=u.match(uo);return s?s[0]:""}const V=/^[^=?&#]+/,De=/^[^&#]+/;class D{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ke([],{}):new Ke([],this.parseChildren())}parseQueryParams(){const s={};if(this.consumeOptional("?"))do{this.parseQueryParam(s)}while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let c={};return this.peekStartsWith("(")&&(c=this.parseParens(!1)),(s.length>0||Object.keys(i).length>0)&&(c[ze]=new Ke(s,i)),c}parseSegment(){const s=Yt(this.remaining);if(""===s&&this.peekStartsWith(";"))throw new p.vHH(4009,oi);return this.capture(s),new Zn(Wr(s),this.parseMatrixParams())}parseMatrixParams(){const s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){const i=Yt(this.remaining);if(!i)return;this.capture(i);let c="";if(this.consumeOptional("=")){const d=Yt(this.remaining);d&&(c=d,this.capture(c))}s[Wr(i)]=Wr(c)}parseQueryParam(s){const i=function ue(u){const s=u.match(V);return s?s[0]:""}(this.remaining);if(!i)return;this.capture(i);let c="";if(this.consumeOptional("=")){const w=function Pe(u){const s=u.match(De);return s?s[0]:""}(this.remaining);w&&(c=w,this.capture(c))}const d=Yr(i),b=Yr(c);if(s.hasOwnProperty(d)){let w=s[d];Array.isArray(w)||(w=[w],s[d]=w),w.push(b)}else s[d]=b}parseParens(s){const i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const c=Yt(this.remaining),d=this.remaining[c.length];if("/"!==d&&")"!==d&&";"!==d)throw new p.vHH(4010,oi);let b;c.indexOf(":")>-1?(b=c.slice(0,c.indexOf(":")),this.capture(b),this.capture(":")):s&&(b=ze);const w=this.parseChildren();i[b]=1===Object.keys(w).length?w[ze]:new Ke([],w),this.consumeOptional("//")}return i}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return!!this.peekStartsWith(s)&&(this.remaining=this.remaining.substring(s.length),!0)}capture(s){if(!this.consumeOptional(s))throw new p.vHH(4011,oi)}}function y(u){return u.segments.length>0?new Ke([],{[ze]:u}):u}function g(u){const s={};for(const c of Object.keys(u.children)){const b=g(u.children[c]);(b.segments.length>0||b.hasChildren())&&(s[c]=b)}return function S(u){if(1===u.numberOfChildren&&u.children[ze]){const s=u.children[ze];return new Ke(u.segments.concat(s.segments),s.children)}return u}(new Ke(u.segments,s))}function j(u){return u instanceof Jt}function hn(u,s,i,c,d){if(0===i.length)return je(s.root,s.root,s.root,c,d);const b=function Ut(u){if("string"==typeof u[0]&&1===u.length&&"/"===u[0])return new Mr(!0,0,u);let s=0,i=!1;const c=u.reduce((d,b,w)=>{if("object"==typeof b&&null!=b){if(b.outlets){const N={};return Qt(b.outlets,(W,ve)=>{N[ve]="string"==typeof W?W.split("/"):W}),[...d,{outlets:N}]}if(b.segmentPath)return[...d,b.segmentPath]}return"string"!=typeof b?[...d,b]:0===w?(b.split("/").forEach((N,W)=>{0==W&&"."===N||(0==W&&""===N?i=!0:".."===N?s++:""!=N&&d.push(N))}),d):[...d,b]},[]);return new Mr(i,s,c)}(i);return b.toRoot()?je(s.root,s.root,new Ke([],{}),c,d):function w(W){const ve=function Kr(u,s,i,c){if(u.isAbsolute)return new Tn(s.root,!0,0);if(-1===c)return new Tn(i,i===s.root,0);return function ai(u,s,i){let c=u,d=s,b=i;for(;b>d;){if(b-=d,c=c.parent,!c)throw new p.vHH(4005,!1);d=c.segments.length}return new Tn(c,!1,d-b)}(i,c+(Pt(u.commands[0])?0:1),u.numberOfDoubleDots)}(b,s,u.snapshot?._urlSegment,W),Se=ve.processChildren?Yi(ve.segmentGroup,ve.index,b.commands):bs(ve.segmentGroup,ve.index,b.commands);return je(s.root,ve.segmentGroup,Se,c,d)}(u.snapshot?._lastPathIndex)}function Pt(u){return"object"==typeof u&&null!=u&&!u.outlets&&!u.segmentPath}function te(u){return"object"==typeof u&&null!=u&&u.outlets}function je(u,s,i,c,d){let w,b={};c&&Qt(c,(W,ve)=>{b[ve]=Array.isArray(W)?W.map(Se=>`${Se}`):`${W}`}),w=u===s?i:Sr(u,s,i);const N=y(g(w));return new Jt(N,b,d)}function Sr(u,s,i){const c={};return Qt(u.children,(d,b)=>{c[b]=d===s?i:Sr(d,s,i)}),new Ke(u.segments,c)}class Mr{constructor(s,i,c){if(this.isAbsolute=s,this.numberOfDoubleDots=i,this.commands=c,s&&c.length>0&&Pt(c[0]))throw new p.vHH(4003,!1);const d=c.find(te);if(d&&d!==ri(c))throw new p.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Tn{constructor(s,i,c){this.segmentGroup=s,this.processChildren=i,this.index=c}}function bs(u,s,i){if(u||(u=new Ke([],{})),0===u.segments.length&&u.hasChildren())return Yi(u,s,i);const c=function Es(u,s,i){let c=0,d=s;const b={match:!1,pathIndex:0,commandIndex:0};for(;d=i.length)return b;const w=u.segments[d],N=i[c];if(te(N))break;const W=`${N}`,ve=c0&&void 0===W)break;if(W&&ve&&"object"==typeof ve&&void 0===ve.outlets){if(!Ho(W,ve,w))return b;c+=2}else{if(!Ho(W,{},w))return b;c++}d++}return{match:!0,pathIndex:d,commandIndex:c}}(u,s,i),d=i.slice(c.commandIndex);if(c.match&&c.pathIndex{"string"==typeof b&&(b=[b]),null!==b&&(d[w]=bs(u.children[w],s,b))}),Qt(u.children,(b,w)=>{void 0===c[w]&&(d[w]=b)}),new Ke(u.segments,d)}}function pn(u,s,i){const c=u.segments.slice(0,s);let d=0;for(;d{"string"==typeof i&&(i=[i]),null!==i&&(s[c]=pn(new Ke([],{}),0,i))}),s}function ws(u){const s={};return Qt(u,(i,c)=>s[c]=`${i}`),s}function Ho(u,s,i){return u==i.path&&Yn(s,i.parameters)}class An{constructor(s,i){this.id=s,this.url=i}}class Ss extends An{constructor(s,i,c="imperative",d=null){super(s,i),this.type=0,this.navigationTrigger=c,this.restoredState=d}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class To extends An{constructor(s,i,c){super(s,i),this.urlAfterRedirects=c,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Zi extends An{constructor(s,i,c,d){super(s,i),this.reason=c,this.code=d,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class wa extends An{constructor(s,i,c,d){super(s,i),this.error=c,this.target=d,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ms extends An{constructor(s,i,c,d){super(s,i),this.urlAfterRedirects=c,this.state=d,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Is extends An{constructor(s,i,c,d){super(s,i),this.urlAfterRedirects=c,this.state=d,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ts extends An{constructor(s,i,c,d,b){super(s,i),this.urlAfterRedirects=c,this.state=d,this.shouldActivate=b,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class As extends An{constructor(s,i,c,d){super(s,i),this.urlAfterRedirects=c,this.state=d,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sa extends An{constructor(s,i,c,d){super(s,i),this.urlAfterRedirects=c,this.state=d,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xs{constructor(s){this.route=s,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Os{constructor(s){this.route=s,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ma{constructor(s){this.snapshot=s,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ia{constructor(s){this.snapshot=s,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ta{constructor(s){this.snapshot=s,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Aa{constructor(s){this.snapshot=s,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ki{constructor(s,i,c){this.routerEvent=s,this.position=i,this.anchor=c,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let m=(()=>{class u{createUrlTree(i,c,d,b,w,N){return hn(i||c.root,d,b,w,N)}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})(),v=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:function(s){return m.\u0275fac(s)},providedIn:"root"}),u})();class M{constructor(s){this._root=s}get root(){return this._root.value}parent(s){const i=this.pathFromRoot(s);return i.length>1?i[i.length-2]:null}children(s){const i=R(s,this._root);return i?i.children.map(c=>c.value):[]}firstChild(s){const i=R(s,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(s){const i=Z(s,this._root);return i.length<2?[]:i[i.length-2].children.map(d=>d.value).filter(d=>d!==s)}pathFromRoot(s){return Z(s,this._root).map(i=>i.value)}}function R(u,s){if(u===s.value)return s;for(const i of s.children){const c=R(u,i);if(c)return c}return null}function Z(u,s){if(u===s.value)return[s];for(const i of s.children){const c=Z(u,i);if(c.length)return c.unshift(s),c}return[]}class ne{constructor(s,i){this.value=s,this.children=i}toString(){return`TreeNode(${this.value})`}}function we(u){const s={};return u&&u.children.forEach(i=>s[i.value.outlet]=i),s}class ht extends M{constructor(s,i){super(s),this.snapshot=i,xn(this,s)}toString(){return this.snapshot.toString()}}function ot(u,s){const i=function ut(u,s){const w=new en([],{},{},"",{},ze,s,null,u.root,-1,{});return new Xn("",new ne(w,[]))}(u,s),c=new yt.X([new Zn("",{})]),d=new yt.X({}),b=new yt.X({}),w=new yt.X({}),N=new yt.X(""),W=new Ye(c,d,w,N,b,ze,s,i.root);return W.snapshot=i.root,new ht(new ne(W,[]),i)}class Ye{constructor(s,i,c,d,b,w,N,W){this.url=s,this.params=i,this.queryParams=c,this.fragment=d,this.data=b,this.outlet=w,this.component=N,this.title=this.data?.pipe((0,Ge.U)(ve=>ve[Wt]))??(0,Te.of)(void 0),this._futureSnapshot=W}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._paramMap=this.params.pipe((0,Ge.U)(s=>Cr(s)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(s=>Cr(s)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $t(u,s="emptyOnly"){const i=u.pathFromRoot;let c=0;if("always"!==s)for(c=i.length-1;c>=1;){const d=i[c],b=i[c-1];if(d.routeConfig&&""===d.routeConfig.path)c--;else{if(b.component)break;c--}}return function Mt(u){return u.reduce((s,i)=>({params:{...s.params,...i.params},data:{...s.data,...i.data},resolve:{...i.data,...s.resolve,...i.routeConfig?.data,...i._resolvedData}}),{params:{},data:{},resolve:{}})}(i.slice(c))}class en{constructor(s,i,c,d,b,w,N,W,ve,Se,tt){this.url=s,this.params=i,this.queryParams=c,this.fragment=d,this.data=b,this.outlet=w,this.component=N,this.routeConfig=W,this._urlSegment=ve,this._lastPathIndex=Se,this._resolve=tt}get title(){return this.data?.[Wt]}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._paramMap=Cr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Cr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(c=>c.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xn extends M{constructor(s,i){super(i),this.url=s,xn(this,i)}toString(){return co(this._root)}}function xn(u,s){s.value._routerState=u,s.children.forEach(i=>xn(u,i))}function co(u){const s=u.children.length>0?` { ${u.children.map(co).join(", ")} } `:"";return`${u.value}${s}`}function qr(u){if(u.snapshot){const s=u.snapshot,i=u._futureSnapshot;u.snapshot=i,Yn(s.queryParams,i.queryParams)||u.queryParams.next(i.queryParams),s.fragment!==i.fragment&&u.fragment.next(i.fragment),Yn(s.params,i.params)||u.params.next(i.params),function Di(u,s){if(u.length!==s.length)return!1;for(let i=0;iYn(i.parameters,s[c].parameters))}(u.url,s.url);return i&&!(!u.parent!=!s.parent)&&(!u.parent||fo(u.parent,s.parent))}function $o(u,s,i){if(i&&u.shouldReuseRoute(s.value,i.value.snapshot)){const c=i.value;c._futureSnapshot=s.value;const d=function tc(u,s,i){return s.children.map(c=>{for(const d of i.children)if(u.shouldReuseRoute(c.value,d.value.snapshot))return $o(u,c,d);return $o(u,c)})}(u,s,i);return new ne(c,d)}{if(u.shouldAttach(s.value)){const b=u.retrieve(s.value);if(null!==b){const w=b.route;return w.value._futureSnapshot=s.value,w.children=s.children.map(N=>$o(u,N)),w}}const c=function yf(u){return new Ye(new yt.X(u.url),new yt.X(u.params),new yt.X(u.queryParams),new yt.X(u.fragment),new yt.X(u.data),u.outlet,u.component,u)}(s.value),d=s.children.map(b=>$o(u,b));return new ne(c,d)}}const Vu="ngNavigationCancelingError";function Ns(u,s){const{redirectTo:i,navigationBehaviorOptions:c}=j(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,d=xa(!1,0,s);return d.url=i,d.navigationBehaviorOptions=c,d}function xa(u,s,i){const c=new Error("NavigationCancelingError: "+(u||""));return c[Vu]=!0,c.cancellationCode=s,i&&(c.url=i),c}function Oa(u){return Ei(u)&&j(u.url)}function Ei(u){return u&&u[Vu]}class ju{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new wi,this.attachRef=null}}let wi=(()=>{class u{constructor(){this.contexts=new Map}onChildOutletCreated(i,c){const d=this.getOrCreateContext(i);d.outlet=c,this.contexts.set(i,d)}onChildOutletDestroyed(i){const c=this.getContext(i);c&&(c.outlet=null,c.attachRef=null)}onOutletDeactivated(){const i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let c=this.getContext(i);return c||(c=new ju,this.contexts.set(i,c)),c}getContext(i){return this.contexts.get(i)||null}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const ui=!1;let Ra=(()=>{class u{constructor(){this.activated=null,this._activatedRoute=null,this.name=ze,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.parentContexts=(0,p.f3M)(wi),this.location=(0,p.f3M)(p.s_b),this.changeDetector=(0,p.f3M)(p.sBO),this.environmentInjector=(0,p.f3M)(p.lqb)}ngOnChanges(i){if(i.name){const{firstChange:c,previousValue:d}=i.name;if(c)return;this.isTrackedInParentContexts(d)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(d)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.vHH(4012,ui);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.vHH(4012,ui);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.vHH(4012,ui);this.location.detach();const i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,c){this.activated=i,this._activatedRoute=c,this.location.insert(i.hostView),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){const i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,c){if(this.isActivated)throw new p.vHH(4013,ui);this._activatedRoute=i;const d=this.location,w=i.snapshot.component,N=this.parentContexts.getOrCreateContext(this.name).children,W=new Ps(i,N,d.injector);if(c&&function Na(u){return!!u.resolveComponentFactory}(c)){const ve=c.resolveComponentFactory(w);this.activated=d.createComponent(ve,d.length,W)}else this.activated=d.createComponent(w,{index:d.length,injector:W,environmentInjector:c??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275dir=p.lG2({type:u,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[p.TTD]}),u})();class Ps{constructor(s,i,c){this.route=s,this.childContexts=i,this.parent=c}get(s,i){return s===Ye?this.route:s===wi?this.childContexts:this.parent.get(s,i)}}let Si=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275cmp=p.Xpm({type:u,selectors:[["ng-component"]],standalone:!0,features:[p.jDz],decls:1,vars:0,template:function(i,c){1&i&&p._UZ(0,"router-outlet")},dependencies:[Ra],encapsulation:2}),u})();function nc(u,s){return u.providers&&!u._injector&&(u._injector=(0,p.MMx)(u.providers,s,`Route: ${u.path}`)),u._injector??s}function qi(u){const s=u.children&&u.children.map(qi),i=s?{...u,children:s}:{...u};return!i.component&&!i.loadComponent&&(s||i.loadChildren)&&i.outlet&&i.outlet!==ze&&(i.component=Si),i}function ur(u){return u.outlet||ze}function Bu(u,s){const i=u.filter(c=>ur(c)===s);return i.push(...u.filter(c=>ur(c)!==s)),i}function Mi(u){if(!u)return null;if(u.routeConfig?._injector)return u.routeConfig._injector;for(let s=u.parent;s;s=s.parent){const i=s.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}class $u{constructor(s,i,c,d){this.routeReuseStrategy=s,this.futureState=i,this.currState=c,this.forwardEvent=d}activate(s){const i=this.futureState._root,c=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,c,s),qr(this.futureState.root),this.activateChildRoutes(i,c,s)}deactivateChildRoutes(s,i,c){const d=we(i);s.children.forEach(b=>{const w=b.value.outlet;this.deactivateRoutes(b,d[w],c),delete d[w]}),Qt(d,(b,w)=>{this.deactivateRouteAndItsChildren(b,c)})}deactivateRoutes(s,i,c){const d=s.value,b=i?i.value:null;if(d===b)if(d.component){const w=c.getContext(d.outlet);w&&this.deactivateChildRoutes(s,i,w.children)}else this.deactivateChildRoutes(s,i,c);else b&&this.deactivateRouteAndItsChildren(i,c)}deactivateRouteAndItsChildren(s,i){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,i):this.deactivateRouteAndOutlet(s,i)}detachAndStoreRouteSubtree(s,i){const c=i.getContext(s.value.outlet),d=c&&s.value.component?c.children:i,b=we(s);for(const w of Object.keys(b))this.deactivateRouteAndItsChildren(b[w],d);if(c&&c.outlet){const w=c.outlet.detach(),N=c.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:w,route:s,contexts:N})}}deactivateRouteAndOutlet(s,i){const c=i.getContext(s.value.outlet),d=c&&s.value.component?c.children:i,b=we(s);for(const w of Object.keys(b))this.deactivateRouteAndItsChildren(b[w],d);c&&c.outlet&&(c.outlet.deactivate(),c.children.onOutletDeactivated(),c.attachRef=null,c.resolver=null,c.route=null)}activateChildRoutes(s,i,c){const d=we(i);s.children.forEach(b=>{this.activateRoutes(b,d[b.value.outlet],c),this.forwardEvent(new Aa(b.value.snapshot))}),s.children.length&&this.forwardEvent(new Ia(s.value.snapshot))}activateRoutes(s,i,c){const d=s.value,b=i?i.value:null;if(qr(d),d===b)if(d.component){const w=c.getOrCreateContext(d.outlet);this.activateChildRoutes(s,i,w.children)}else this.activateChildRoutes(s,i,c);else if(d.component){const w=c.getOrCreateContext(d.outlet);if(this.routeReuseStrategy.shouldAttach(d.snapshot)){const N=this.routeReuseStrategy.retrieve(d.snapshot);this.routeReuseStrategy.store(d.snapshot,null),w.children.onOutletReAttached(N.contexts),w.attachRef=N.componentRef,w.route=N.route.value,w.outlet&&w.outlet.attach(N.componentRef,N.route.value),qr(N.route.value),this.activateChildRoutes(s,null,w.children)}else{const N=Mi(d.snapshot),W=N?.get(p._Vd)??null;w.attachRef=null,w.route=d,w.resolver=W,w.injector=N,w.outlet&&w.outlet.activateWith(d,w.injector),this.activateChildRoutes(s,null,w.children)}}else this.activateChildRoutes(s,null,c)}}class La{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}}class Ls{constructor(s,i){this.component=s,this.route=i}}function ks(u,s,i){const c=u._root;return Ti(c,s?s._root:null,i,[c.value])}function Ii(u,s){const i=Symbol(),c=s.get(u,i);return c===i?"function"!=typeof u||(0,p.Z0I)(u)?s.get(u):u:c}function Ti(u,s,i,c,d={canDeactivateChecks:[],canActivateChecks:[]}){const b=we(s);return u.children.forEach(w=>{(function Gu(u,s,i,c,d={canDeactivateChecks:[],canActivateChecks:[]}){const b=u.value,w=s?s.value:null,N=i?i.getContext(u.value.outlet):null;if(w&&b.routeConfig===w.routeConfig){const W=function Ai(u,s,i){if("function"==typeof i)return i(u,s);switch(i){case"pathParamsChange":return!Er(u.url,s.url);case"pathParamsOrQueryParamsChange":return!Er(u.url,s.url)||!Yn(u.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fo(u,s)||!Yn(u.queryParams,s.queryParams);default:return!fo(u,s)}}(w,b,b.routeConfig.runGuardsAndResolvers);W?d.canActivateChecks.push(new La(c)):(b.data=w.data,b._resolvedData=w._resolvedData),Ti(u,s,b.component?N?N.children:null:i,c,d),W&&N&&N.outlet&&N.outlet.isActivated&&d.canDeactivateChecks.push(new Ls(N.outlet.component,w))}else w&&Qi(s,N,d),d.canActivateChecks.push(new La(c)),Ti(u,null,b.component?N?N.children:null:i,c,d)})(w,b[w.value.outlet],i,c.concat([w.value]),d),delete b[w.value.outlet]}),Qt(b,(w,N)=>Qi(w,i.getContext(N),d)),d}function Qi(u,s,i){const c=we(u),d=u.value;Qt(c,(b,w)=>{Qi(b,d.component?s?s.children.getContext(w):null:s,i)}),i.canDeactivateChecks.push(new Ls(d.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,d))}function xi(u){return"function"==typeof u}function Xi(u){return u instanceof Be||"EmptyError"===u?.name}const xo=Symbol("INITIAL_VALUE");function es(){return(0,Sn.w)(u=>(0,Gn.aj)(u.map(s=>s.pipe(Dt(1),(0,dn.O)(xo)))).pipe((0,Ge.U)(s=>{for(const i of s)if(!0!==i){if(i===xo)return xo;if(!1===i||i instanceof Jt)return i}return!0}),Vt(s=>s!==xo),Dt(1)))}function Ni(u){return(0,vr.z)((0,jt.b)(s=>{if(j(s))throw Ns(0,s)}),(0,Ge.U)(s=>!0===s))}const Yu={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function gn(u,s,i,c,d){const b=ts(u,s,i);return b.matched?function Mf(u,s,i,c){const d=s.canMatch;if(!d||0===d.length)return(0,Te.of)(!0);const b=d.map(w=>{const N=Ii(w,u);return ir(function Ri(u){return u&&xi(u.canMatch)}(N)?N.canMatch(s,i):u.runInContext(()=>N(s,i)))});return(0,Te.of)(b).pipe(es(),Ni())}(c=nc(s,c),s,i).pipe((0,Ge.U)(w=>!0===w?b:{...Yu})):(0,Te.of)(b)}function ts(u,s,i){if(""===s.path)return"full"===s.pathMatch&&(u.hasChildren()||i.length>0)?{...Yu}:{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};const d=(s.matcher||no)(i,u,s);if(!d)return{...Yu};const b={};Qt(d.posParams,(N,W)=>{b[W]=N.path});const w=d.consumed.length>0?{...b,...d.consumed[d.consumed.length-1].parameters}:b;return{matched:!0,consumedSegments:d.consumed,remainingSegments:i.slice(d.consumed.length),parameters:w,positionalParamSegments:d.posParams??{}}}function Go(u,s,i,c){if(i.length>0&&function ci(u,s,i){return i.some(c=>di(u,s,c)&&ur(c)!==ze)}(u,i,c)){const b=new Ke(s,function kr(u,s,i,c){const d={};d[ze]=c,c._sourceSegment=u,c._segmentIndexShift=s.length;for(const b of i)if(""===b.path&&ur(b)!==ze){const w=new Ke([],{});w._sourceSegment=u,w._segmentIndexShift=s.length,d[ur(b)]=w}return d}(u,s,c,new Ke(i,u.children)));return b._sourceSegment=u,b._segmentIndexShift=s.length,{segmentGroup:b,slicedSegments:[]}}if(0===i.length&&function Zu(u,s,i){return i.some(c=>di(u,s,c))}(u,i,c)){const b=new Ke(u.segments,function ac(u,s,i,c,d){const b={};for(const w of c)if(di(u,i,w)&&!d[ur(w)]){const N=new Ke([],{});N._sourceSegment=u,N._segmentIndexShift=s.length,b[ur(w)]=N}return{...d,...b}}(u,s,i,c,u.children));return b._sourceSegment=u,b._segmentIndexShift=s.length,{segmentGroup:b,slicedSegments:i}}const d=new Ke(u.segments,u.children);return d._sourceSegment=u,d._segmentIndexShift=s.length,{segmentGroup:d,slicedSegments:i}}function di(u,s,i){return(!(u.hasChildren()||s.length>0)||"full"!==i.pathMatch)&&""===i.path}function Pi(u,s,i,c){return!!(ur(u)===c||c!==ze&&di(s,i,u))&&("**"===u.path||ts(s,u,i).matched)}function Ku(u,s,i){return 0===s.length&&!u.children[i]}const ja=!1;class Vs{constructor(s){this.segmentGroup=s||null}}class uc{constructor(s){this.urlTree=s}}function Vn(u){return Jn(new Vs(u))}function js(u){return Jn(new uc(u))}class lc{constructor(s,i,c,d,b){this.injector=s,this.configLoader=i,this.urlSerializer=c,this.urlTree=d,this.config=b,this.allowRedirects=!0}apply(){const s=Go(this.urlTree.root,[],[],this.config).segmentGroup,i=new Ke(s.segments,s.children);return this.expandSegmentGroup(this.injector,this.config,i,ze).pipe((0,Ge.U)(b=>this.createUrlTree(g(b),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,_n.K)(b=>{if(b instanceof uc)return this.allowRedirects=!1,this.match(b.urlTree);throw b instanceof Vs?this.noMatchError(b):b}))}match(s){return this.expandSegmentGroup(this.injector,this.config,s.root,ze).pipe((0,Ge.U)(d=>this.createUrlTree(g(d),s.queryParams,s.fragment))).pipe((0,_n.K)(d=>{throw d instanceof Vs?this.noMatchError(d):d}))}noMatchError(s){return new p.vHH(4002,ja)}createUrlTree(s,i,c){const d=y(s);return new Jt(d,i,c)}expandSegmentGroup(s,i,c,d){return 0===c.segments.length&&c.hasChildren()?this.expandChildren(s,i,c).pipe((0,Ge.U)(b=>new Ke([],b))):this.expandSegment(s,c,i,c.segments,d,!0)}expandChildren(s,i,c){const d=[];for(const b of Object.keys(c.children))"primary"===b?d.unshift(b):d.push(b);return(0,Ot.D)(d).pipe(At(b=>{const w=c.children[b],N=Bu(i,b);return this.expandSegmentGroup(s,N,w,b).pipe((0,Ge.U)(W=>({segment:W,outlet:b})))}),Bt((b,w)=>(b[w.outlet]=w.segment,b),{}),vt())}expandSegment(s,i,c,d,b,w){return(0,Ot.D)(c).pipe(At(N=>this.expandSegmentAgainstRoute(s,i,c,N,d,b,w).pipe((0,_n.K)(ve=>{if(ve instanceof Vs)return(0,Te.of)(null);throw ve}))),zn(N=>!!N),(0,_n.K)((N,W)=>{if(Xi(N))return Ku(i,d,b)?(0,Te.of)(new Ke([],{})):Vn(i);throw N}))}expandSegmentAgainstRoute(s,i,c,d,b,w,N){return Pi(d,i,b,w)?void 0===d.redirectTo?this.matchSegmentAgainstRoute(s,i,d,b,w):N&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(s,i,c,d,b,w):Vn(i):Vn(i)}expandSegmentAgainstRouteUsingRedirect(s,i,c,d,b,w){return"**"===d.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(s,c,d,w):this.expandRegularSegmentAgainstRouteUsingRedirect(s,i,c,d,b,w)}expandWildCardWithParamsAgainstRouteUsingRedirect(s,i,c,d){const b=this.applyRedirectCommands([],c.redirectTo,{});return c.redirectTo.startsWith("/")?js(b):this.lineralizeSegments(c,b).pipe((0,x.zg)(w=>{const N=new Ke(w,{});return this.expandSegment(s,N,i,w,d,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(s,i,c,d,b,w){const{matched:N,consumedSegments:W,remainingSegments:ve,positionalParamSegments:Se}=ts(i,d,b);if(!N)return Vn(i);const tt=this.applyRedirectCommands(W,d.redirectTo,Se);return d.redirectTo.startsWith("/")?js(tt):this.lineralizeSegments(d,tt).pipe((0,x.zg)(lt=>this.expandSegment(s,i,c,lt.concat(ve),w,!1)))}matchSegmentAgainstRoute(s,i,c,d,b){return"**"===c.path?(s=nc(c,s),c.loadChildren?(c._loadedRoutes?(0,Te.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):this.configLoader.loadChildren(s,c)).pipe((0,Ge.U)(N=>(c._loadedRoutes=N.routes,c._loadedInjector=N.injector,new Ke(d,{})))):(0,Te.of)(new Ke(d,{}))):gn(i,c,d,s).pipe((0,Sn.w)(({matched:w,consumedSegments:N,remainingSegments:W})=>w?this.getChildConfig(s=c._injector??s,c,d).pipe((0,x.zg)(Se=>{const tt=Se.injector??s,lt=Se.routes,{segmentGroup:bt,slicedSegments:It}=Go(i,N,W,lt),er=new Ke(bt.segments,bt.children);if(0===It.length&&er.hasChildren())return this.expandChildren(tt,lt,er).pipe((0,Ge.U)(yu=>new Ke(N,yu)));if(0===lt.length&&0===It.length)return(0,Te.of)(new Ke(N,{}));const cr=ur(c)===b;return this.expandSegment(tt,er,lt,It,cr?ze:b,!0).pipe((0,Ge.U)(mi=>new Ke(N.concat(mi.segments),mi.children)))})):Vn(i)))}getChildConfig(s,i,c){return i.children?(0,Te.of)({routes:i.children,injector:s}):i.loadChildren?void 0!==i._loadedRoutes?(0,Te.of)({routes:i._loadedRoutes,injector:i._loadedInjector}):function Sf(u,s,i,c){const d=s.canLoad;if(void 0===d||0===d.length)return(0,Te.of)(!0);const b=d.map(w=>{const N=Ii(w,u);return ir(function ic(u){return u&&xi(u.canLoad)}(N)?N.canLoad(s,i):u.runInContext(()=>N(s,i)))});return(0,Te.of)(b).pipe(es(),Ni())}(s,i,c).pipe((0,x.zg)(d=>d?this.configLoader.loadChildren(s,i).pipe((0,jt.b)(b=>{i._loadedRoutes=b.routes,i._loadedInjector=b.injector})):function If(u){return Jn(xa(ja,3))}())):(0,Te.of)({routes:[],injector:s})}lineralizeSegments(s,i){let c=[],d=i.root;for(;;){if(c=c.concat(d.segments),0===d.numberOfChildren)return(0,Te.of)(c);if(d.numberOfChildren>1||!d.children[ze])return Jn(new p.vHH(4e3,ja));d=d.children[ze]}}applyRedirectCommands(s,i,c){return this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),s,c)}applyRedirectCreateUrlTree(s,i,c,d){const b=this.createSegmentGroup(s,i.root,c,d);return new Jt(b,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(s,i){const c={};return Qt(s,(d,b)=>{if("string"==typeof d&&d.startsWith(":")){const N=d.substring(1);c[b]=i[N]}else c[b]=d}),c}createSegmentGroup(s,i,c,d){const b=this.createSegments(s,i.segments,c,d);let w={};return Qt(i.children,(N,W)=>{w[W]=this.createSegmentGroup(s,N,c,d)}),new Ke(b,w)}createSegments(s,i,c,d){return i.map(b=>b.path.startsWith(":")?this.findPosParam(s,b,d):this.findOrReturn(b,c))}findPosParam(s,i,c){const d=c[i.path.substring(1)];if(!d)throw new p.vHH(4001,ja);return d}findOrReturn(s,i){let c=0;for(const d of i){if(d.path===s.path)return i.splice(c),d;c++}return s}}class dc{}class Ua{constructor(s,i,c,d,b,w,N){this.injector=s,this.rootComponentType=i,this.config=c,this.urlTree=d,this.url=b,this.paramsInheritanceStrategy=w,this.urlSerializer=N}recognize(){const s=Go(this.urlTree.root,[],[],this.config.filter(i=>void 0===i.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,s,ze).pipe((0,Ge.U)(i=>{if(null===i)return null;const c=new en([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ze,this.rootComponentType,null,this.urlTree.root,-1,{}),d=new ne(c,i),b=new Xn(this.url,d);return this.inheritParamsAndData(b._root),b}))}inheritParamsAndData(s){const i=s.value,c=$t(i,this.paramsInheritanceStrategy);i.params=Object.freeze(c.params),i.data=Object.freeze(c.data),s.children.forEach(d=>this.inheritParamsAndData(d))}processSegmentGroup(s,i,c,d){return 0===c.segments.length&&c.hasChildren()?this.processChildren(s,i,c):this.processSegment(s,i,c,c.segments,d)}processChildren(s,i,c){return(0,Ot.D)(Object.keys(c.children)).pipe(At(d=>{const b=c.children[d],w=Bu(i,d);return this.processSegmentGroup(s,w,b,d)}),Bt((d,b)=>d&&b?(d.push(...b),d):null),function ni(u,s=!1){return i=>i.lift(new Co(u,s))}(d=>null!==d),U(null),vt(),(0,Ge.U)(d=>{if(null===d)return null;const b=Ha(d);return function Us(u){u.sort((s,i)=>s.value.outlet===ze?-1:i.value.outlet===ze?1:s.value.outlet.localeCompare(i.value.outlet))}(b),b}))}processSegment(s,i,c,d,b){return(0,Ot.D)(i).pipe(At(w=>this.processSegmentAgainstRoute(w._injector??s,w,c,d,b)),zn(w=>!!w),(0,_n.K)(w=>{if(Xi(w))return Ku(c,d,b)?(0,Te.of)([]):(0,Te.of)(null);throw w}))}processSegmentAgainstRoute(s,i,c,d,b){if(i.redirectTo||!Pi(i,c,d,b))return(0,Te.of)(null);let w;if("**"===i.path){const N=d.length>0?ri(d).parameters:{},W=$a(c)+d.length,ve=new en(d,N,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,os(i),ur(i),i.component??i._loadedComponent??null,i,Ju(c),W,Ga(i));w=(0,Te.of)({snapshot:ve,consumedSegments:[],remainingSegments:[]})}else w=gn(c,i,d,s).pipe((0,Ge.U)(({matched:N,consumedSegments:W,remainingSegments:ve,parameters:Se})=>{if(!N)return null;const tt=$a(c)+W.length;return{snapshot:new en(W,Se,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,os(i),ur(i),i.component??i._loadedComponent??null,i,Ju(c),tt,Ga(i)),consumedSegments:W,remainingSegments:ve}}));return w.pipe((0,Sn.w)(N=>{if(null===N)return(0,Te.of)(null);const{snapshot:W,consumedSegments:ve,remainingSegments:Se}=N;s=i._injector??s;const tt=i._loadedInjector??s,lt=function Ba(u){return u.children?u.children:u.loadChildren?u._loadedRoutes:[]}(i),{segmentGroup:bt,slicedSegments:It}=Go(c,ve,Se,lt.filter(cr=>void 0===cr.redirectTo));if(0===It.length&&bt.hasChildren())return this.processChildren(tt,lt,bt).pipe((0,Ge.U)(cr=>null===cr?null:[new ne(W,cr)]));if(0===lt.length&&0===It.length)return(0,Te.of)([new ne(W,[])]);const er=ur(i)===b;return this.processSegment(tt,lt,bt,It,er?ze:b).pipe((0,Ge.U)(cr=>null===cr?null:[new ne(W,cr)]))}))}}function ns(u){const s=u.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}function Ha(u){const s=[],i=new Set;for(const c of u){if(!ns(c)){s.push(c);continue}const d=s.find(b=>c.value.routeConfig===b.value.routeConfig);void 0!==d?(d.children.push(...c.children),i.add(d)):s.push(c)}for(const c of i){const d=Ha(c.children);s.push(new ne(c.value,d))}return s.filter(c=>!i.has(c))}function Ju(u){let s=u;for(;s._sourceSegment;)s=s._sourceSegment;return s}function $a(u){let s=u,i=s._segmentIndexShift??0;for(;s._sourceSegment;)s=s._sourceSegment,i+=s._segmentIndexShift??0;return i-1}function os(u){return u.data||{}}function Ga(u){return u.resolve||{}}function za(u){return"string"==typeof u.title||null===u.title}function Wa(u){return(0,Sn.w)(s=>{const i=u(s);return i?(0,Ot.D)(i).pipe((0,Ge.U)(()=>s)):(0,Te.of)(s)})}const ki=new p.OlP("ROUTES");let Ya=(()=>{class u{constructor(i,c){this.injector=i,this.compiler=c,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return(0,Te.of)(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);const c=ir(i.loadComponent()).pipe((0,Ge.U)(Za),(0,jt.b)(b=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=b}),eo(()=>{this.componentLoaders.delete(i)})),d=new Do.c(c,()=>new wn.xQ).pipe((0,Gr.x)());return this.componentLoaders.set(i,d),d}loadChildren(i,c){if(this.childrenLoaders.get(c))return this.childrenLoaders.get(c);if(c._loadedRoutes)return(0,Te.of)({routes:c._loadedRoutes,injector:c._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(c);const b=this.loadModuleFactoryOrRoutes(c.loadChildren).pipe((0,Ge.U)(N=>{this.onLoadEndListener&&this.onLoadEndListener(c);let W,ve,Se=!1;Array.isArray(N)?ve=N:(W=N.create(i).injector,ve=wo(W.get(ki,[],p.XFs.Self|p.XFs.Optional)));return{routes:ve.map(qi),injector:W}}),eo(()=>{this.childrenLoaders.delete(c)})),w=new Do.c(b,()=>new wn.xQ).pipe((0,Gr.x)());return this.childrenLoaders.set(c,w),w}loadModuleFactoryOrRoutes(i){return ir(i()).pipe((0,Ge.U)(Za),(0,x.zg)(d=>d instanceof p.YKP||Array.isArray(d)?(0,Te.of)(d):(0,Ot.D)(this.compiler.compileModuleAsync(d))))}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(p.zs3),p.LFG(p.Sil))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Za(u){return function Hs(u){return u&&"object"==typeof u&&"default"in u}(u)?u.default:u}let $s=(()=>{class u{constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new wn.xQ,this.configLoader=(0,p.f3M)(Ya),this.environmentInjector=(0,p.f3M)(p.lqb),this.urlSerializer=(0,p.f3M)(Lr),this.rootContexts=(0,p.f3M)(wi),this.navigationId=0,this.configLoader.onLoadEndListener=d=>this.events.next(new Os(d)),this.configLoader.onLoadStartListener=d=>this.events.next(new xs(d))}get hasRequestedNavigation(){return 0!==this.navigationId}complete(){this.transitions?.complete()}handleNavigationRequest(i){const c=++this.navigationId;this.transitions?.next({...this.transitions.value,...i,id:c})}setupNavigations(i){return this.transitions=new yt.X({id:0,targetPageId:0,currentUrlTree:i.currentUrlTree,currentRawUrl:i.currentUrlTree,extractedUrl:i.urlHandlingStrategy.extract(i.currentUrlTree),urlAfterRedirects:i.urlHandlingStrategy.extract(i.currentUrlTree),rawUrl:i.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:i.routerState.snapshot,targetSnapshot:null,currentRouterState:i.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Vt(c=>0!==c.id),(0,Ge.U)(c=>({...c,extractedUrl:i.urlHandlingStrategy.extract(c.rawUrl)})),(0,Sn.w)(c=>{let d=!1,b=!1;return(0,Te.of)(c).pipe((0,jt.b)(w=>{this.currentNavigation={id:w.id,initialUrl:w.rawUrl,extractedUrl:w.extractedUrl,trigger:w.source,extras:w.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Sn.w)(w=>{const N=i.browserUrlTree.toString(),W=!i.navigated||w.extractedUrl.toString()!==N||N!==i.currentUrlTree.toString();if(("reload"===i.onSameUrlNavigation||W)&&i.urlHandlingStrategy.shouldProcessUrl(w.rawUrl))return yc(w.source)&&(i.browserUrlTree=w.extractedUrl),(0,Te.of)(w).pipe((0,Sn.w)(Se=>{const tt=this.transitions?.getValue();return this.events.next(new Ss(Se.id,this.urlSerializer.serialize(Se.extractedUrl),Se.source,Se.restoredState)),tt!==this.transitions?.getValue()?cn:Promise.resolve(Se)}),function cc(u,s,i,c){return(0,Sn.w)(d=>function qu(u,s,i,c,d){return new lc(u,s,i,c,d).apply()}(u,s,i,d.extractedUrl,c).pipe((0,Ge.U)(b=>({...d,urlAfterRedirects:b}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,i.config),(0,jt.b)(Se=>{this.currentNavigation={...this.currentNavigation,finalUrl:Se.urlAfterRedirects},c.urlAfterRedirects=Se.urlAfterRedirects}),function pc(u,s,i,c,d){return(0,x.zg)(b=>function hc(u,s,i,c,d,b,w="emptyOnly"){return new Ua(u,s,i,c,d,w,b).recognize().pipe((0,Sn.w)(N=>null===N?function fc(u){return new vn.y(s=>s.error(u))}(new dc):(0,Te.of)(N)))}(u,s,i,b.urlAfterRedirects,c.serialize(b.urlAfterRedirects),c,d).pipe((0,Ge.U)(w=>({...b,targetSnapshot:w}))))}(this.environmentInjector,i.rootComponentType,i.config,this.urlSerializer,i.paramsInheritanceStrategy),(0,jt.b)(Se=>{if(c.targetSnapshot=Se.targetSnapshot,"eager"===i.urlUpdateStrategy){if(!Se.extras.skipLocationChange){const lt=i.urlHandlingStrategy.merge(Se.urlAfterRedirects,Se.rawUrl);i.setBrowserUrl(lt,Se)}i.browserUrlTree=Se.urlAfterRedirects}const tt=new Ms(Se.id,this.urlSerializer.serialize(Se.extractedUrl),this.urlSerializer.serialize(Se.urlAfterRedirects),Se.targetSnapshot);this.events.next(tt)}));if(W&&i.rawUrlTree&&i.urlHandlingStrategy.shouldProcessUrl(i.rawUrlTree)){const{id:tt,extractedUrl:lt,source:bt,restoredState:It,extras:er}=w,cr=new Ss(tt,this.urlSerializer.serialize(lt),bt,It);this.events.next(cr);const jn=ot(lt,i.rootComponentType).snapshot;return c={...w,targetSnapshot:jn,urlAfterRedirects:lt,extras:{...er,skipLocationChange:!1,replaceUrl:!1}},(0,Te.of)(c)}return i.rawUrlTree=w.rawUrl,w.resolve(null),cn}),(0,jt.b)(w=>{const N=new Is(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot);this.events.next(N)}),(0,Ge.U)(w=>c={...w,guards:ks(w.targetSnapshot,w.currentSnapshot,this.rootContexts)}),function sc(u,s){return(0,x.zg)(i=>{const{targetSnapshot:c,currentSnapshot:d,guards:{canActivateChecks:b,canDeactivateChecks:w}}=i;return 0===w.length&&0===b.length?(0,Te.of)({...i,guardsResult:!0}):function Ft(u,s,i,c){return(0,Ot.D)(u).pipe((0,x.zg)(d=>function wf(u,s,i,c,d){const b=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!b||0===b.length)return(0,Te.of)(!0);const w=b.map(N=>{const W=Mi(s)??d,ve=Ii(N,W);return ir(function Oi(u){return u&&xi(u.canDeactivate)}(ve)?ve.canDeactivate(u,s,i,c):W.runInContext(()=>ve(u,s,i,c))).pipe(zn())});return(0,Te.of)(w).pipe(es())}(d.component,d.route,i,s,c)),zn(d=>!0!==d,!0))}(w,c,d,u).pipe((0,x.zg)(N=>N&&function ka(u){return"boolean"==typeof u}(N)?function _f(u,s,i,c){return(0,Ot.D)(s).pipe(At(d=>(0,Hr.z)(function Cf(u,s){return null!==u&&s&&s(new Ma(u)),(0,Te.of)(!0)}(d.route.parent,c),function Df(u,s){return null!==u&&s&&s(new Ta(u)),(0,Te.of)(!0)}(d.route,c),function Ef(u,s,i){const c=s[s.length-1],b=s.slice(0,s.length-1).reverse().map(w=>function li(u){const s=u.routeConfig?u.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:u,guards:s}:null}(w)).filter(w=>null!==w).map(w=>Nr(()=>{const N=w.guards.map(W=>{const ve=Mi(w.node)??i,Se=Ii(W,ve);return ir(function Va(u){return u&&xi(u.canActivateChild)}(Se)?Se.canActivateChild(c,u):ve.runInContext(()=>Se(c,u))).pipe(zn())});return(0,Te.of)(N).pipe(es())}));return(0,Te.of)(b).pipe(es())}(u,d.path,i),function bf(u,s,i){const c=s.routeConfig?s.routeConfig.canActivate:null;if(!c||0===c.length)return(0,Te.of)(!0);const d=c.map(b=>Nr(()=>{const w=Mi(s)??i,N=Ii(b,w);return ir(function zu(u){return u&&xi(u.canActivate)}(N)?N.canActivate(s,u):w.runInContext(()=>N(s,u))).pipe(zn())}));return(0,Te.of)(d).pipe(es())}(u,d.route,i))),zn(d=>!0!==d,!0))}(c,b,u,s):(0,Te.of)(N)),(0,Ge.U)(N=>({...i,guardsResult:N})))})}(this.environmentInjector,w=>this.events.next(w)),(0,jt.b)(w=>{if(c.guardsResult=w.guardsResult,j(w.guardsResult))throw Ns(0,w.guardsResult);const N=new Ts(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(w.urlAfterRedirects),w.targetSnapshot,!!w.guardsResult);this.events.next(N)}),Vt(w=>!!w.guardsResult||(i.restoreHistory(w),this.cancelNavigationTransition(w,"",3,i),!1)),Wa(w=>{if(w.guards.canActivateChecks.length)return(0,Te.of)(w).pipe((0,jt.b)(N=>{const W=new As(N.id,this.urlSerializer.serialize(N.extractedUrl),this.urlSerializer.serialize(N.urlAfterRedirects),N.targetSnapshot);this.events.next(W)}),(0,Sn.w)(N=>{let W=!1;return(0,Te.of)(N).pipe(function gc(u,s){return(0,x.zg)(i=>{const{targetSnapshot:c,guards:{canActivateChecks:d}}=i;if(!d.length)return(0,Te.of)(i);let b=0;return(0,Ot.D)(d).pipe(At(w=>function Li(u,s,i,c){const d=u.routeConfig,b=u._resolve;return void 0!==d?.title&&!za(d)&&(b[Wt]=d.title),function is(u,s,i,c){const d=function mc(u){return[...Object.keys(u),...Object.getOwnPropertySymbols(u)]}(u);if(0===d.length)return(0,Te.of)({});const b={};return(0,Ot.D)(d).pipe((0,x.zg)(w=>function Tf(u,s,i,c){const d=Mi(s)??c,b=Ii(u,d);return ir(b.resolve?b.resolve(s,i):d.runInContext(()=>b(s,i)))}(u[w],s,i,c).pipe(zn(),(0,jt.b)(N=>{b[w]=N}))),Mn(1),function Eo(u){return s=>s.lift(new $r(u))}(b),(0,_n.K)(w=>Xi(w)?cn:Jn(w)))}(b,u,s,c).pipe((0,Ge.U)(w=>(u._resolvedData=w,u.data=$t(u,i).resolve,d&&za(d)&&(u.data[Wt]=d.title),null)))}(w.route,c,u,s)),(0,jt.b)(()=>b++),Mn(1),(0,x.zg)(w=>b===d.length?(0,Te.of)(i):cn))})}(i.paramsInheritanceStrategy,this.environmentInjector),(0,jt.b)({next:()=>W=!0,complete:()=>{W||(i.restoreHistory(N),this.cancelNavigationTransition(N,"",2,i))}}))}),(0,jt.b)(N=>{const W=new Sa(N.id,this.urlSerializer.serialize(N.extractedUrl),this.urlSerializer.serialize(N.urlAfterRedirects),N.targetSnapshot);this.events.next(W)}))}),Wa(w=>{const N=W=>{const ve=[];W.routeConfig?.loadComponent&&!W.routeConfig._loadedComponent&&ve.push(this.configLoader.loadComponent(W.routeConfig).pipe((0,jt.b)(Se=>{W.component=Se}),(0,Ge.U)(()=>{})));for(const Se of W.children)ve.push(...N(Se));return ve};return(0,Gn.aj)(N(w.targetSnapshot.root)).pipe(U(),Dt(1))}),Wa(()=>i.afterPreactivation()),(0,Ge.U)(w=>{const N=function Rs(u,s,i){const c=$o(u,s._root,i?i._root:void 0);return new ht(c,s)}(i.routeReuseStrategy,w.targetSnapshot,w.currentRouterState);return c={...w,targetRouterState:N}}),(0,jt.b)(w=>{i.currentUrlTree=w.urlAfterRedirects,i.rawUrlTree=i.urlHandlingStrategy.merge(w.urlAfterRedirects,w.rawUrl),i.routerState=w.targetRouterState,"deferred"===i.urlUpdateStrategy&&(w.extras.skipLocationChange||i.setBrowserUrl(i.rawUrlTree,w),i.browserUrlTree=w.urlAfterRedirects)}),((u,s,i)=>(0,Ge.U)(c=>(new $u(s,c.targetRouterState,c.currentRouterState,i).activate(u),c)))(this.rootContexts,i.routeReuseStrategy,w=>this.events.next(w)),(0,jt.b)({next:w=>{d=!0,this.lastSuccessfulNavigation=this.currentNavigation,i.navigated=!0,this.events.next(new To(w.id,this.urlSerializer.serialize(w.extractedUrl),this.urlSerializer.serialize(i.currentUrlTree))),i.titleStrategy?.updateTitle(w.targetRouterState.snapshot),w.resolve(!0)},complete:()=>{d=!0}}),eo(()=>{d||b||this.cancelNavigationTransition(c,"",1,i),this.currentNavigation?.id===c.id&&(this.currentNavigation=null)}),(0,_n.K)(w=>{if(b=!0,Ei(w)){Oa(w)||(i.navigated=!0,i.restoreHistory(c,!0));const N=new Zi(c.id,this.urlSerializer.serialize(c.extractedUrl),w.message,w.cancellationCode);if(this.events.next(N),Oa(w)){const W=i.urlHandlingStrategy.merge(w.url,i.rawUrlTree),ve={skipLocationChange:c.extras.skipLocationChange,replaceUrl:"eager"===i.urlUpdateStrategy||yc(c.source)};i.scheduleNavigation(W,"imperative",null,ve,{resolve:c.resolve,reject:c.reject,promise:c.promise})}else c.resolve(!1)}else{i.restoreHistory(c,!0);const N=new wa(c.id,this.urlSerializer.serialize(c.extractedUrl),w,c.targetSnapshot??void 0);this.events.next(N);try{c.resolve(i.errorHandler(w))}catch(W){c.reject(W)}}return cn}))}))}cancelNavigationTransition(i,c,d,b){const w=new Zi(i.id,this.urlSerializer.serialize(i.extractedUrl),c,d);this.events.next(w),i.resolve(!1)}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function yc(u){return"imperative"!==u}let Ka=(()=>{class u{buildTitle(i){let c,d=i.root;for(;void 0!==d;)c=this.getResolvedTitleForRoute(d)??c,d=d.children.find(b=>b.outlet===ze);return c}getResolvedTitleForRoute(i){return i.data[Wt]}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:function(){return(0,p.f3M)(xf)},providedIn:"root"}),u})(),xf=(()=>{class u extends Ka{constructor(i){super(),this.title=i}updateTitle(i){const c=this.buildTitle(i);void 0!==c&&this.title.setTitle(c)}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(qn))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})(),vc=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:function(){return(0,p.f3M)(qa)},providedIn:"root"}),u})();class _c{shouldDetach(s){return!1}store(s,i){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,i){return s.routeConfig===i.routeConfig}}let qa=(()=>{class u extends _c{}return u.\u0275fac=function(){let s;return function(c){return(s||(s=p.n5z(u)))(c||u)}}(),u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const Qa=new p.OlP("",{providedIn:"root",factory:()=>({})});let Ja=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:function(){return(0,p.f3M)(Rf)},providedIn:"root"}),u})(),Rf=(()=>{class u{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,c){return i}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();function Nf(u){throw u}function Pf(u,s,i){return s.parse("/")}const Ff={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Cc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lr=(()=>{class u{constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,p.f3M)(p.c2e),this.isNgZoneEnabled=!1,this.options=(0,p.f3M)(Qa,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Nf,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Pf,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>(0,Te.of)(void 0),this.urlHandlingStrategy=(0,p.f3M)(Ja),this.routeReuseStrategy=(0,p.f3M)(vc),this.urlCreationStrategy=(0,p.f3M)(v),this.titleStrategy=(0,p.f3M)(Ka),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=wo((0,p.f3M)(ki,{optional:!0})??[]),this.navigationTransitions=(0,p.f3M)($s),this.urlSerializer=(0,p.f3M)(Lr),this.location=(0,p.f3M)(h.Ye),this.rootComponentType=null,this.isNgZoneEnabled=(0,p.f3M)(p.R0b)instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Jt,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ot(this.currentUrlTree,this.rootComponentType),this.navigationTransitions.setupNavigations(this).subscribe(i=>{this.lastSuccessfulId=i.id,this.currentPageId=i.targetPageId},i=>{this.console.warn(`Unhandled Navigation Error: ${i}`)})}get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}resetRootComponentType(i){this.rootComponentType=i,this.routerState.root.component=this.rootComponentType}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(i=>{const c="popstate"===i.type?"popstate":"hashchange";"popstate"===c&&setTimeout(()=>{const d={replaceUrl:!0},b=i.state?.navigationId?i.state:null;if(i.state){const N={...i.state};delete N.navigationId,delete N.\u0275routerPageId,0!==Object.keys(N).length&&(d.state=N)}const w=this.parseUrl(i.url);this.scheduleNavigation(w,c,b,d)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(i){this.config=i.map(qi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(i,c={}){const{relativeTo:d,queryParams:b,fragment:w,queryParamsHandling:N,preserveFragment:W}=c,ve=W?this.currentUrlTree.fragment:w;let Se=null;switch(N){case"merge":Se={...this.currentUrlTree.queryParams,...b};break;case"preserve":Se=this.currentUrlTree.queryParams;break;default:Se=b||null}return null!==Se&&(Se=this.removeEmptyProps(Se)),this.urlCreationStrategy.createUrlTree(d,this.routerState,this.currentUrlTree,i,Se,ve??null)}navigateByUrl(i,c={skipLocationChange:!1}){const d=j(i)?i:this.parseUrl(i),b=this.urlHandlingStrategy.merge(d,this.rawUrlTree);return this.scheduleNavigation(b,"imperative",null,c)}navigate(i,c={skipLocationChange:!1}){return function Xa(u){for(let s=0;s{const b=i[d];return null!=b&&(c[d]=b),c},{})}scheduleNavigation(i,c,d,b,w){if(this.disposed)return Promise.resolve(!1);let N,W,ve,Se;return w?(N=w.resolve,W=w.reject,ve=w.promise):ve=new Promise((tt,lt)=>{N=tt,W=lt}),"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(d=this.location.getState()),Se=d&&d.\u0275routerPageId?d.\u0275routerPageId:b.replaceUrl||b.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):Se=0,this.navigationTransitions.handleNavigationRequest({targetPageId:Se,source:c,restoredState:d,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:b,resolve:N,reject:W,promise:ve,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ve.catch(tt=>Promise.reject(tt))}setBrowserUrl(i,c){const d=this.urlSerializer.serialize(i),b={...c.extras.state,...this.generateNgRouterState(c.id,c.targetPageId)};this.location.isCurrentPathEqualTo(d)||c.extras.replaceUrl?this.location.replaceState(d,"",b):this.location.go(d,"",b)}restoreHistory(i,c=!1){if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-i.targetPageId;"popstate"!==i.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===d?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===d&&(this.resetState(i),this.browserUrlTree=i.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(c&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=i.currentRouterState,this.currentUrlTree=i.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,c){return"computed"===this.canceledNavigationResolution?{navigationId:i,\u0275routerPageId:c}:{navigationId:i}}}return u.\u0275fac=function(i){return new(i||u)},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();class Qr{}let bc=(()=>{class u{constructor(i,c,d,b,w){this.router=i,this.injector=d,this.preloadingStrategy=b,this.loader=w}setUpPreloading(){this.subscription=this.router.events.pipe(Vt(i=>i instanceof To),At(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,c){const d=[];for(const b of c){b.providers&&!b._injector&&(b._injector=(0,p.MMx)(b.providers,i,`Route: ${b.path}`));const w=b._injector??i,N=b._loadedInjector??w;b.loadChildren&&!b._loadedRoutes&&void 0===b.canLoad||b.loadComponent&&!b._loadedComponent?d.push(this.preloadConfig(w,b)):(b.children||b._loadedRoutes)&&d.push(this.processRoutes(N,b.children??b._loadedRoutes))}return(0,Ot.D)(d).pipe((0,Wn.J)())}preloadConfig(i,c){return this.preloadingStrategy.preload(c,()=>{let d;d=c.loadChildren&&void 0===c.canLoad?this.loader.loadChildren(i,c):(0,Te.of)(null);const b=d.pipe((0,x.zg)(w=>null===w?(0,Te.of)(void 0):(c._loadedRoutes=w.routes,c._loadedInjector=w.injector,this.processRoutes(w.injector??i,w.routes))));if(c.loadComponent&&!c._loadedComponent){const w=this.loader.loadComponent(c);return(0,Ot.D)([b,w]).pipe((0,Wn.J)())}return b})}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(lr),p.LFG(p.Sil),p.LFG(p.lqb),p.LFG(Qr),p.LFG(Ya))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})();const zs=new p.OlP("");let Ws=(()=>{class u{constructor(i,c,d,b,w={}){this.urlSerializer=i,this.transitions=c,this.viewportScroller=d,this.zone=b,this.options=w,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},w.scrollPositionRestoration=w.scrollPositionRestoration||"disabled",w.anchorScrolling=w.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ss?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof To&&(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Ki&&(i.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(i.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,c){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Ki(i,"popstate"===this.lastSource?this.store[this.restoredId]:null,c))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return u.\u0275fac=function(i){p.$Z()},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();function fi(u,s){return{\u0275kind:u,\u0275providers:s}}function tu(){const u=(0,p.f3M)(p.zs3);return s=>{const i=u.get(p.z2F);if(s!==i.components[0])return;const c=u.get(lr),d=u.get(Ys);1===u.get(On)&&c.initialNavigation(),u.get(al,null,p.XFs.Optional)?.setUpPreloading(),u.get(zs,null,p.XFs.Optional)?.init(),c.resetRootComponentType(i.componentTypes[0]),d.closed||(d.next(),d.unsubscribe())}}const Ys=new p.OlP("",{factory:()=>new wn.xQ}),On=new p.OlP("",{providedIn:"root",factory:()=>1});const al=new p.OlP("");function ul(u){return fi(0,[{provide:al,useExisting:bc},{provide:Qr,useExisting:u}])}const nu=new p.OlP("ROUTER_FORROOT_GUARD"),wc=[h.Ye,{provide:Lr,useClass:sr},lr,wi,{provide:Ye,useFactory:function rl(u){return u.routerState.root},deps:[lr]},Ya,[]];function Sc(){return new p.PXZ("Router",lr)}let Zs=(()=>{class u{constructor(i){}static forRoot(i,c){return{ngModule:u,providers:[wc,[],{provide:ki,multi:!0,useValue:i},{provide:nu,useFactory:Ic,deps:[[lr,new p.FiY,new p.tp0]]},{provide:Qa,useValue:c||{}},c?.useHash?{provide:h.S$,useClass:h.Do}:{provide:h.S$,useClass:h.b0},{provide:zs,useFactory:()=>{const u=(0,p.f3M)(h.EM),s=(0,p.f3M)(p.R0b),i=(0,p.f3M)(Qa),c=(0,p.f3M)($s),d=(0,p.f3M)(Lr);return i.scrollOffset&&u.setOffset(i.scrollOffset),new Ws(d,c,u,s,i)}},c?.preloadingStrategy?ul(c.preloadingStrategy).\u0275providers:[],{provide:p.PXZ,multi:!0,useFactory:Sc},c?.initialNavigation?Tc(c):[],[{provide:Ks,useFactory:tu},{provide:p.tb,multi:!0,useExisting:Ks}]]}}static forChild(i){return{ngModule:u,providers:[{provide:ki,multi:!0,useValue:i}]}}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(nu,8))},u.\u0275mod=p.oAB({type:u}),u.\u0275inj=p.cJS({imports:[Si]}),u})();function Ic(u){return"guarded"}function Tc(u){return["disabled"===u.initialNavigation?fi(3,[{provide:p.ip1,multi:!0,useFactory:()=>{const s=(0,p.f3M)(lr);return()=>{s.setUpLocationChangeListener()}}},{provide:On,useValue:2}]).\u0275providers:[],"enabledBlocking"===u.initialNavigation?fi(2,[{provide:On,useValue:0},{provide:p.ip1,multi:!0,deps:[p.zs3],useFactory:s=>{const i=s.get(h.V_,Promise.resolve());return()=>i.then(()=>new Promise(d=>{const b=s.get(lr),w=s.get(Ys);(function c(d){s.get(lr).events.pipe(Vt(w=>w instanceof To||w instanceof Zi||w instanceof wa),(0,Ge.U)(w=>w instanceof To||w instanceof Zi&&(0===w.code||1===w.code)&&null),Vt(w=>null!==w),Dt(1)).subscribe(()=>{d()})})(()=>{d(!0)}),b.afterPreactivation=()=>(d(!0),w.closed?(0,Te.of)(void 0):w),b.initialNavigation()}))}}]).\u0275providers:[]]}const Ks=new p.OlP(""),Ui=[{path:"",loadChildren:()=>A.e(249).then(A.bind(A,1249)).then(u=>u.routes)}];class zo{}function ll(u,s){if(1&u){const i=p.EpF();p.TgZ(0,"form",6)(1,"nb-field-item",7)(2,"span",8),p._uU(3),p.ALo(4,"nbTrans"),p.qZA(),p._UZ(5,"input",9),p.qZA(),p.TgZ(6,"nb-field-item",10)(7,"span",8),p._uU(8),p.ALo(9,"nbTrans"),p.qZA(),p._UZ(10,"input",9),p.qZA(),p.TgZ(11,"nb-field-item",10)(12,"span",8),p._uU(13),p.ALo(14,"nbTrans"),p.qZA(),p.TgZ(15,"input",11),p.NdJ("change",function(d){p.CHM(i);const b=p.oxw();return p.KtG(b.onChangeFile(d))}),p.qZA()(),p.TgZ(16,"nb-field-item",12)(17,"span",8),p._uU(18),p.ALo(19,"nbTrans"),p.qZA(),p._UZ(20,"input",9),p.qZA(),p.TgZ(21,"nb-field-item",12)(22,"span",8),p._uU(23),p.ALo(24,"nbTrans"),p.qZA(),p._UZ(25,"input",9),p.qZA(),p.TgZ(26,"nb-field-item",10)(27,"span",8),p._uU(28),p.ALo(29,"nbTrans"),p.qZA(),p._UZ(30,"input",9),p.qZA()()}if(2&u){const i=p.oxw();p.Q6J("formGroup",i.form),p.xp6(1),p.Q6J("required",!0)("control",i.field1Ctrl)("errInfo",i.errInfo1),p.xp6(2),p.hij("",p.lcZ(4,23,"demoContent.field1"),"\uff1a"),p.xp6(2),p.Q6J("formControl",i.field1Ctrl),p.xp6(1),p.Q6J("control",i.field2Ctrl)("errInfo",i.errInfo1),p.xp6(2),p.hij("",p.lcZ(9,25,"demoContent.field2"),"\uff1a"),p.xp6(2),p.Q6J("formControl",i.field2Ctrl),p.xp6(1),p.Q6J("control",i.field3Ctrl)("errInfo",i.errInfo2),p.xp6(2),p.hij("",p.lcZ(14,27,"demoContent.field3"),"\uff1a"),p.xp6(3),p.Q6J("control",i.field4Ctrl),p.xp6(2),p.hij("",p.lcZ(19,29,"demoContent.field4"),"\uff1a"),p.xp6(2),p.Q6J("formControl",i.field4Ctrl),p.xp6(1),p.Q6J("control",i.field5Ctrl),p.xp6(2),p.hij("",p.lcZ(24,31,"demoContent.field5"),"\uff1a"),p.xp6(2),p.Q6J("formControl",i.field5Ctrl),p.xp6(1),p.Q6J("control",i.field6Ctrl)("errInfo",i.errInfo1),p.xp6(2),p.hij("",p.lcZ(29,33,"demoContent.field6"),"\uff1a"),p.xp6(2),p.Q6J("formControl",i.field6Ctrl)}}function xc(u,s){if(1&u&&(p.TgZ(0,"form",13),p._UZ(1,"input",14)(2,"nb-control-err",10),p.qZA()),2&u){const i=p.oxw();p.Q6J("formGroup",i.form),p.xp6(2),p.Q6J("control",i.field1Ctrl)("errInfo",i.errInfo1)}}zo.\u0275fac=function(s){return new(s||zo)},zo.\u0275mod=p.oAB({type:zo}),zo.\u0275inj=p.cJS({imports:[Zs.forRoot(Ui),Zs]});class hi{constructor(s,i,c){this.fb=s,this.formService=i,this.transService=c,this.errInfo1={[ft.ti.REQUIRED]:this.transService.translationAsync("errors.required"),[ft.ti.WHITESPACE]:this.transService.translationAsync("errors.required")},this.errInfo2={[ft.ti.FILE_MAX_SIZE]:"The file max size is 500kb!"}}get field1Ctrl(){return this.form?.get("field1")}get field2Ctrl(){return this.form?.get("field2")}get field3Ctrl(){return this.form?.get("field3")}get field4Ctrl(){return this.form?.get("field4")}get field5Ctrl(){return this.form?.get("field5")}get field6Ctrl(){return this.form?.get("field6")}ngOnInit(){this.buildForm(),this.formService.updateEqualControlsValidities({target:this.field4Ctrl,compared:this.field5Ctrl})}changeLanguage(s){this.transService.changeLangSync("en"===s?wt.TT.EN:wt.TT.ZH_CN)}resetCtrl1(){this.field1Ctrl.reset()}onChangeFile(s){const i=s.target;i&&i.files?.length&&(this.field3Ctrl.markAsDirty(),this.field3Ctrl.setValue(i.files[0]))}onSubmit(){this.formService.showAllErrInfo(this.form)}buildForm(){this.form=this.fb.group({field1:[null,[ft.aJ.required(!0)]],field2:[null,[ft.aJ.whitespace(!1)]],field3:[void 0,this.formService.getValidatorsFromControlConfig({fileType:["image/svg+xml","image/jpeg"],maxFileSize:5e5,minFileSize:1e5})],field4:[""],field5:[null],field6:[null,[ft.aJ.required(!0)]]}),this.field4Ctrl.setValidators([ft.aJ.equal(this.field5Ctrl,!1)]),this.field5Ctrl.setValidators([ft.aJ.equal(this.field4Ctrl,!1)]),this.field6Ctrl.markAsDirty()}}hi.\u0275fac=function(s){return new(s||hi)(p.Y36(qt.QS),p.Y36(ft.LR),p.Y36(wt.v6))},hi.\u0275cmp=p.Xpm({type:hi,selectors:[["app-root"]],decls:53,vars:35,consts:[["href","https://github.com/bigBear713/nb-form/blob/master/projects/nb-form/README.md","target","_blank"],["href","https://github.com/bigBear713/nb-form/blob/master/CHANGELOG.md","target","_blank"],["type","button",3,"click"],[3,"formGroup",4,"ngIf"],["style","margin-bottom: 20px;width: 200px;",3,"formGroup",4,"ngIf"],[3,"click"],[3,"formGroup"],[3,"required","control","errInfo"],["field-label",""],["type","text",3,"formControl"],[3,"control","errInfo"],["type","file",3,"change"],[3,"control"],[2,"margin-bottom","20px","width","200px",3,"formGroup"],["type","text","formControlName","field1"]],template:function(s,i){1&s&&(p.TgZ(0,"h2")(1,"a",0),p._uU(2," Document "),p.qZA(),p.TgZ(3,"a",1),p._uU(4," Changelog "),p.qZA()(),p._UZ(5,"hr"),p.TgZ(6,"h3")(7,"button",2),p.NdJ("click",function(){return i.changeLanguage("zh-CN")}),p._uU(8,"\u5207\u6362\u4e3a\u4e2d\u6587"),p.qZA(),p.TgZ(9,"button",2),p.NdJ("click",function(){return i.changeLanguage("en")}),p._uU(10,"switch as English"),p.qZA()(),p.YNc(11,ll,31,35,"form",3),p._UZ(12,"hr"),p.TgZ(13,"h5"),p._uU(14),p.ALo(15,"nbTrans"),p.qZA(),p.YNc(16,xc,3,3,"form",4),p._UZ(17,"hr"),p.TgZ(18,"button",2),p.NdJ("click",function(){return i.onSubmit()}),p._uU(19),p.ALo(20,"nbTrans"),p.qZA(),p.TgZ(21,"button",5),p.NdJ("click",function(){return i.resetCtrl1()}),p._uU(22),p.ALo(23,"nbTrans"),p.qZA(),p.TgZ(24,"div")(25,"p"),p._uU(26),p.ALo(27,"nbTrans"),p.qZA(),p.TgZ(28,"p"),p._uU(29),p.ALo(30,"nbTrans"),p.qZA(),p.TgZ(31,"p"),p._uU(32),p.ALo(33,"nbTrans"),p.qZA(),p.TgZ(34,"p"),p._uU(35),p.ALo(36,"nbTrans"),p.qZA(),p.TgZ(37,"p"),p._uU(38),p.ALo(39,"nbTrans"),p.qZA(),p.TgZ(40,"p"),p._uU(41),p.ALo(42,"nbTrans"),p.qZA(),p.TgZ(43,"p"),p._uU(44),p.ALo(45,"nbTrans"),p.qZA(),p.TgZ(46,"p"),p._uU(47),p.ALo(48,"nbTrans"),p.qZA()(),p._UZ(49,"hr"),p.TgZ(50,"h2"),p._uU(51,"children router component"),p.qZA(),p._UZ(52,"router-outlet")),2&s&&(p.xp6(11),p.Q6J("ngIf",i.form),p.xp6(3),p.Oqu(p.lcZ(15,13,"demoContent.useComp")),p.xp6(2),p.Q6J("ngIf",i.form),p.xp6(3),p.Oqu(p.lcZ(20,15,"demoContent.submit")),p.xp6(3),p.Oqu(p.lcZ(23,17,"demoContent.resetField1")),p.xp6(4),p.Oqu(p.lcZ(27,19,"demoContent.desc")),p.xp6(3),p.Oqu(p.lcZ(30,21,"demoContent.desc1")),p.xp6(3),p.Oqu(p.lcZ(33,23,"demoContent.desc2")),p.xp6(3),p.Oqu(p.lcZ(36,25,"demoContent.desc3")),p.xp6(3),p.Oqu(p.lcZ(39,27,"demoContent.desc4")),p.xp6(3),p.Oqu(p.lcZ(42,29,"demoContent.desc5")),p.xp6(3),p.Oqu(p.lcZ(45,31,"demoContent.desc6")),p.xp6(3),p.Oqu(p.lcZ(48,33,"demoContent.desc7")))},dependencies:[h.O5,qt._Y,qt.Fj,qt.JJ,qt.JL,qt.oH,qt.sg,qt.u,ft.Ik,ft.XX,Ra,wt.y6],styles:["h2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0 8px}form[_ngcontent-%COMP%]{width:300px}"]});class qs{}class iu{}class Oo{constructor(s){this.normalizedNames=new Map,this.lazyUpdate=null,s?this.lazyInit="string"==typeof s?()=>{this.headers=new Map,s.split("\n").forEach(i=>{const c=i.indexOf(":");if(c>0){const d=i.slice(0,c),b=d.toLowerCase(),w=i.slice(c+1).trim();this.maybeSetNormalizedName(d,b),this.headers.has(b)?this.headers.get(b).push(w):this.headers.set(b,[w])}})}:()=>{this.headers=new Map,Object.keys(s).forEach(i=>{let c=s[i];const d=i.toLowerCase();"string"==typeof c&&(c=[c]),c.length>0&&(this.headers.set(d,c),this.maybeSetNormalizedName(i,d))})}:this.headers=new Map}has(s){return this.init(),this.headers.has(s.toLowerCase())}get(s){this.init();const i=this.headers.get(s.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(s){return this.init(),this.headers.get(s.toLowerCase())||null}append(s,i){return this.clone({name:s,value:i,op:"a"})}set(s,i){return this.clone({name:s,value:i,op:"s"})}delete(s,i){return this.clone({name:s,value:i,op:"d"})}maybeSetNormalizedName(s,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,s)}init(){this.lazyInit&&(this.lazyInit instanceof Oo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(s=>this.applyUpdate(s)),this.lazyUpdate=null))}copyFrom(s){s.init(),Array.from(s.headers.keys()).forEach(i=>{this.headers.set(i,s.headers.get(i)),this.normalizedNames.set(i,s.normalizedNames.get(i))})}clone(s){const i=new Oo;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof Oo?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([s]),i}applyUpdate(s){const i=s.name.toLowerCase();switch(s.op){case"a":case"s":let c=s.value;if("string"==typeof c&&(c=[c]),0===c.length)return;this.maybeSetNormalizedName(s.name,i);const d=("a"===s.op?this.headers.get(i):void 0)||[];d.push(...c),this.headers.set(i,d);break;case"d":const b=s.value;if(b){let w=this.headers.get(i);if(!w)return;w=w.filter(N=>-1===b.indexOf(N)),0===w.length?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,w)}else this.headers.delete(i),this.normalizedNames.delete(i)}}forEach(s){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>s(this.normalizedNames.get(i),this.headers.get(i)))}}class Oc{encodeKey(s){return au(s)}encodeValue(s){return au(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}}const cl=/%(\d[a-f0-9])/gi,su={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function au(u){return encodeURIComponent(u).replace(cl,(s,i)=>su[i]??s)}function Bi(u){return`${u}`}class Wo{constructor(s={}){if(this.updates=null,this.cloneFrom=null,this.encoder=s.encoder||new Oc,s.fromString){if(s.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Rc(u,s){const i=new Map;return u.length>0&&u.replace(/^\?/,"").split("&").forEach(d=>{const b=d.indexOf("="),[w,N]=-1==b?[s.decodeKey(d),""]:[s.decodeKey(d.slice(0,b)),s.decodeValue(d.slice(b+1))],W=i.get(w)||[];W.push(N),i.set(w,W)}),i}(s.fromString,this.encoder)}else s.fromObject?(this.map=new Map,Object.keys(s.fromObject).forEach(i=>{const c=s.fromObject[i],d=Array.isArray(c)?c.map(Bi):[Bi(c)];this.map.set(i,d)})):this.map=null}has(s){return this.init(),this.map.has(s)}get(s){this.init();const i=this.map.get(s);return i?i[0]:null}getAll(s){return this.init(),this.map.get(s)||null}keys(){return this.init(),Array.from(this.map.keys())}append(s,i){return this.clone({param:s,value:i,op:"a"})}appendAll(s){const i=[];return Object.keys(s).forEach(c=>{const d=s[c];Array.isArray(d)?d.forEach(b=>{i.push({param:c,value:b,op:"a"})}):i.push({param:c,value:d,op:"a"})}),this.clone(i)}set(s,i){return this.clone({param:s,value:i,op:"s"})}delete(s,i){return this.clone({param:s,value:i,op:"d"})}toString(){return this.init(),this.keys().map(s=>{const i=this.encoder.encodeKey(s);return this.map.get(s).map(c=>i+"="+this.encoder.encodeValue(c)).join("&")}).filter(s=>""!==s).join("&")}clone(s){const i=new Wo({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(s),i}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(s=>this.map.set(s,this.cloneFrom.map.get(s))),this.updates.forEach(s=>{switch(s.op){case"a":case"s":const i=("a"===s.op?this.map.get(s.param):void 0)||[];i.push(Bi(s.value)),this.map.set(s.param,i);break;case"d":if(void 0===s.value){this.map.delete(s.param);break}{let c=this.map.get(s.param)||[];const d=c.indexOf(Bi(s.value));-1!==d&&c.splice(d,1),c.length>0?this.map.set(s.param,c):this.map.delete(s.param)}}}),this.cloneFrom=this.updates=null)}}class dl{constructor(){this.map=new Map}set(s,i){return this.map.set(s,i),this}get(s){return this.map.has(s)||this.map.set(s,s.defaultValue()),this.map.get(s)}delete(s){return this.map.delete(s),this}has(s){return this.map.has(s)}keys(){return this.map.keys()}}function Yo(u){return typeof ArrayBuffer<"u"&&u instanceof ArrayBuffer}function uu(u){return typeof Blob<"u"&&u instanceof Blob}function lu(u){return typeof FormData<"u"&&u instanceof FormData}class Qs{constructor(s,i,c,d){let b;if(this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase(),function fl(u){switch(u){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||d?(this.body=void 0!==c?c:null,b=d):b=c,b&&(this.reportProgress=!!b.reportProgress,this.withCredentials=!!b.withCredentials,b.responseType&&(this.responseType=b.responseType),b.headers&&(this.headers=b.headers),b.context&&(this.context=b.context),b.params&&(this.params=b.params)),this.headers||(this.headers=new Oo),this.context||(this.context=new dl),this.params){const w=this.params.toString();if(0===w.length)this.urlWithParams=i;else{const N=i.indexOf("?");this.urlWithParams=i+(-1===N?"?":Ntt.set(lt,s.setHeaders[lt]),W)),s.setParams&&(ve=Object.keys(s.setParams).reduce((tt,lt)=>tt.set(lt,s.setParams[lt]),ve)),new Qs(i,c,b,{params:ve,headers:W,context:Se,reportProgress:N,responseType:d,withCredentials:w})}}var Zt=(()=>((Zt=Zt||{})[Zt.Sent=0]="Sent",Zt[Zt.UploadProgress=1]="UploadProgress",Zt[Zt.ResponseHeader=2]="ResponseHeader",Zt[Zt.DownloadProgress=3]="DownloadProgress",Zt[Zt.Response=4]="Response",Zt[Zt.User=5]="User",Zt))();class cu{constructor(s,i=200,c="OK"){this.headers=s.headers||new Oo,this.status=void 0!==s.status?s.status:i,this.statusText=s.statusText||c,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}}class Js extends cu{constructor(s={}){super(s),this.type=Zt.ResponseHeader}clone(s={}){return new Js({headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class us extends cu{constructor(s={}){super(s),this.type=Zt.Response,this.body=void 0!==s.body?s.body:null}clone(s={}){return new us({body:void 0!==s.body?s.body:this.body,headers:s.headers||this.headers,status:void 0!==s.status?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}}class du extends cu{constructor(s){super(s,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${s.url||"(unknown url)"}`:`Http failure response for ${s.url||"(unknown url)"}: ${s.status} ${s.statusText}`,this.error=s.error||null}}function ls(u,s){return{body:s,headers:u.headers,context:u.context,observe:u.observe,params:u.params,reportProgress:u.reportProgress,responseType:u.responseType,withCredentials:u.withCredentials}}let fu=(()=>{class u{constructor(i){this.handler=i}request(i,c,d={}){let b;if(i instanceof Qs)b=i;else{let W,ve;W=d.headers instanceof Oo?d.headers:new Oo(d.headers),d.params&&(ve=d.params instanceof Wo?d.params:new Wo({fromObject:d.params})),b=new Qs(i,c,void 0!==d.body?d.body:null,{headers:W,context:d.context,params:ve,reportProgress:d.reportProgress,responseType:d.responseType||"json",withCredentials:d.withCredentials})}const w=(0,Te.of)(b).pipe(At(W=>this.handler.handle(W)));if(i instanceof Qs||"events"===d.observe)return w;const N=w.pipe(Vt(W=>W instanceof us));switch(d.observe||"body"){case"body":switch(b.responseType){case"arraybuffer":return N.pipe((0,Ge.U)(W=>{if(null!==W.body&&!(W.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return W.body}));case"blob":return N.pipe((0,Ge.U)(W=>{if(null!==W.body&&!(W.body instanceof Blob))throw new Error("Response is not a Blob.");return W.body}));case"text":return N.pipe((0,Ge.U)(W=>{if(null!==W.body&&"string"!=typeof W.body)throw new Error("Response is not a string.");return W.body}));default:return N.pipe((0,Ge.U)(W=>W.body))}case"response":return N;default:throw new Error(`Unreachable: unhandled observe type ${d.observe}}`)}}delete(i,c={}){return this.request("DELETE",i,c)}get(i,c={}){return this.request("GET",i,c)}head(i,c={}){return this.request("HEAD",i,c)}jsonp(i,c){return this.request("JSONP",i,{params:(new Wo).append(c,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,c={}){return this.request("OPTIONS",i,c)}patch(i,c,d={}){return this.request("PATCH",i,ls(d,c))}post(i,c,d={}){return this.request("POST",i,ls(d,c))}put(i,c,d={}){return this.request("PUT",i,ls(d,c))}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(qs))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();function cs(u,s){return s(u)}function Xs(u,s){return(i,c)=>s.intercept(i,{handle:d=>u(d,c)})}const hu=new p.OlP("HTTP_INTERCEPTORS"),pi=new p.OlP("HTTP_INTERCEPTOR_FNS");function pu(){let u=null;return(s,i)=>(null===u&&(u=((0,p.f3M)(hu,{optional:!0})??[]).reduceRight(Xs,cs)),u(s,i))}let Hi=(()=>{class u extends qs{constructor(i,c){super(),this.backend=i,this.injector=c,this.chain=null}handle(i){if(null===this.chain){const c=Array.from(new Set(this.injector.get(pi)));this.chain=c.reduceRight((d,b)=>function hl(u,s,i){return(c,d)=>i.runInContext(()=>s(c,b=>u(b,d)))}(d,b,this.injector),cs)}return this.chain(i,c=>this.backend.handle(c))}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(iu),p.LFG(p.lqb))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();const Lc=/^\)\]\}',?\n/;let gl=(()=>{class u{constructor(i){this.xhrFactory=i}handle(i){if("JSONP"===i.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new vn.y(c=>{const d=this.xhrFactory.build();if(d.open(i.method,i.urlWithParams),i.withCredentials&&(d.withCredentials=!0),i.headers.forEach((bt,It)=>d.setRequestHeader(bt,It.join(","))),i.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){const bt=i.detectContentTypeHeader();null!==bt&&d.setRequestHeader("Content-Type",bt)}if(i.responseType){const bt=i.responseType.toLowerCase();d.responseType="json"!==bt?bt:"text"}const b=i.serializeBody();let w=null;const N=()=>{if(null!==w)return w;const bt=d.statusText||"OK",It=new Oo(d.getAllResponseHeaders()),er=function Zf(u){return"responseURL"in u&&u.responseURL?u.responseURL:/^X-Request-URL:/m.test(u.getAllResponseHeaders())?u.getResponseHeader("X-Request-URL"):null}(d)||i.url;return w=new Js({headers:It,status:d.status,statusText:bt,url:er}),w},W=()=>{let{headers:bt,status:It,statusText:er,url:cr}=N(),jn=null;204!==It&&(jn=typeof d.response>"u"?d.responseText:d.response),0===It&&(It=jn?200:0);let mi=It>=200&&It<300;if("json"===i.responseType&&"string"==typeof jn){const yu=jn;jn=jn.replace(Lc,"");try{jn=""!==jn?JSON.parse(jn):null}catch(Dl){jn=yu,mi&&(mi=!1,jn={error:Dl,text:jn})}}mi?(c.next(new us({body:jn,headers:bt,status:It,statusText:er,url:cr||void 0})),c.complete()):c.error(new du({error:jn,headers:bt,status:It,statusText:er,url:cr||void 0}))},ve=bt=>{const{url:It}=N(),er=new du({error:bt,status:d.status||0,statusText:d.statusText||"Unknown Error",url:It||void 0});c.error(er)};let Se=!1;const tt=bt=>{Se||(c.next(N()),Se=!0);let It={type:Zt.DownloadProgress,loaded:bt.loaded};bt.lengthComputable&&(It.total=bt.total),"text"===i.responseType&&!!d.responseText&&(It.partialText=d.responseText),c.next(It)},lt=bt=>{let It={type:Zt.UploadProgress,loaded:bt.loaded};bt.lengthComputable&&(It.total=bt.total),c.next(It)};return d.addEventListener("load",W),d.addEventListener("error",ve),d.addEventListener("timeout",ve),d.addEventListener("abort",ve),i.reportProgress&&(d.addEventListener("progress",tt),null!==b&&d.upload&&d.upload.addEventListener("progress",lt)),d.send(b),c.next({type:Zt.Sent}),()=>{d.removeEventListener("error",ve),d.removeEventListener("abort",ve),d.removeEventListener("load",W),d.removeEventListener("timeout",ve),i.reportProgress&&(d.removeEventListener("progress",tt),null!==b&&d.upload&&d.upload.removeEventListener("progress",lt)),d.readyState!==d.DONE&&d.abort()}})}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.JF))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();const ds=new p.OlP("XSRF_ENABLED"),ml="XSRF-TOKEN",gu=new p.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ml}),fs="X-XSRF-TOKEN",na=new p.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>fs});class mu{}let yl=(()=>{class u{constructor(i,c,d){this.doc=i,this.platform=c,this.cookieName=d,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,h.Mx)(i,this.cookieName),this.lastCookieString=i),this.lastToken}}return u.\u0275fac=function(i){return new(i||u)(p.LFG(h.K0),p.LFG(p.Lbi),p.LFG(gu))},u.\u0275prov=p.Yz7({token:u,factory:u.\u0275fac}),u})();function vl(u,s){const i=u.url.toLowerCase();if(!(0,p.f3M)(ds)||"GET"===u.method||"HEAD"===u.method||i.startsWith("http://")||i.startsWith("https://"))return s(u);const c=(0,p.f3M)(mu).getToken(),d=(0,p.f3M)(na);return null!=c&&!u.headers.has(d)&&(u=u.clone({headers:u.headers.set(d,c)})),s(u)}var un=(()=>((un=un||{})[un.Interceptors=0]="Interceptors",un[un.LegacyInterceptors=1]="LegacyInterceptors",un[un.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",un[un.NoXsrfProtection=3]="NoXsrfProtection",un[un.JsonpSupport=4]="JsonpSupport",un[un.RequestsMadeViaParent=5]="RequestsMadeViaParent",un))();function $i(u,s){return{\u0275kind:u,\u0275providers:s}}function Vc(...u){const s=[fu,gl,Hi,{provide:qs,useExisting:Hi},{provide:iu,useExisting:gl},{provide:pi,useValue:vl,multi:!0},{provide:ds,useValue:!0},{provide:mu,useClass:yl}];for(const i of u)s.push(...i.\u0275providers);return(0,p.MR2)(s)}const _l=new p.OlP("LEGACY_INTERCEPTOR_FN");function hs({cookieName:u,headerName:s}){const i=[];return void 0!==u&&i.push({provide:gu,useValue:u}),void 0!==s&&i.push({provide:na,useValue:s}),$i(un.CustomXsrfConfiguration,i)}let Qf=(()=>{class u{}return u.\u0275fac=function(i){return new(i||u)},u.\u0275mod=p.oAB({type:u}),u.\u0275inj=p.cJS({providers:[Vc($i(un.LegacyInterceptors,[{provide:_l,useFactory:pu},{provide:pi,useExisting:_l,multi:!0}]),hs({cookieName:ml,headerName:fs}))]}),u})();class Gi{}Gi.\u0275fac=function(s){return new(s||Gi)},Gi.\u0275mod=p.oAB({type:Gi,bootstrap:[hi]}),Gi.\u0275inj=p.cJS({providers:[{provide:ft.Y6,useFactory:u=>({[ft.ti.FILE_TYPE]:u.translationAsync("errors.fileType"),[ft.ti.FILE_MIN_SIZE]:"The file min size is 100KB!!!!",[ft.ti.EQUAL]:"\u4e24\u4e2a\u63a7\u4ef6\u503c\u4e0d\u76f8\u7b49"}),deps:[wt.v6]},{provide:wt.x,useFactory:u=>({[wt.oi.ZH_CN]:()=>u.get("./assets/localization/zh-CN/translations.json"),[wt.oi.EN]:()=>u.get("./assets/localization/en/translations.json")}),deps:[fu]}],imports:[mo,Qf,qt.u5,qt.UX,ft.XI,wt.pT,zo]}),(0,p.G48)(),go().bootstrapModule(Gi).catch(u=>console.error(u))},591:(Oe,ie,A)=>{A.d(ie,{X:()=>X});var h=A(5529),p=A(5279);class X extends h.xQ{constructor(ae){super(),this._value=ae}get value(){return this.getValue()}_subscribe(ae){const Q=super._subscribe(ae);return Q&&!Q.closed&&ae.next(this._value),Q}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new p.N;return this._value}next(ae){super.next(this._value=ae)}}},6498:(Oe,ie,A)=>{A.d(ie,{y:()=>Y});var h=A(3489),X=A(7668),ee=A(3292),Q=A(3821),fe=A(4843),re=A(2830);let Y=(()=>{class k{constructor(le){this._isScalar=!1,le&&(this._subscribe=le)}lift(le){const q=new k;return q.source=this,q.operator=le,q}subscribe(le,q,ce){const{operator:J}=this,he=function ae(k,z,le){if(k){if(k instanceof h.L)return k;if(k[X.b])return k[X.b]()}return k||z||le?new h.L(k,z,le):new h.L(ee.c)}(le,q,ce);if(he.add(J?J.call(he,this.source):this.source||re.v.useDeprecatedSynchronousErrorHandling&&!he.syncErrorThrowable?this._subscribe(he):this._trySubscribe(he)),re.v.useDeprecatedSynchronousErrorHandling&&he.syncErrorThrowable&&(he.syncErrorThrowable=!1,he.syncErrorThrown))throw he.syncErrorValue;return he}_trySubscribe(le){try{return this._subscribe(le)}catch(q){re.v.useDeprecatedSynchronousErrorHandling&&(le.syncErrorThrown=!0,le.syncErrorValue=q),function p(k){for(;k;){const{closed:z,destination:le,isStopped:q}=k;if(z||q)return!1;k=le&&le instanceof h.L?le:null}return!0}(le)?le.error(q):console.warn(q)}}forEach(le,q){return new(q=L(q))((ce,J)=>{let he;he=this.subscribe(Me=>{try{le(Me)}catch(Re){J(Re),he&&he.unsubscribe()}},J,ce)})}_subscribe(le){const{source:q}=this;return q&&q.subscribe(le)}[Q.L](){return this}pipe(...le){return 0===le.length?this:(0,fe.U)(le)(this)}toPromise(le){return new(le=L(le))((q,ce)=>{let J;this.subscribe(he=>J=he,he=>ce(he),()=>q(J))})}}return k.create=z=>new k(z),k})();function L(k){if(k||(k=re.v.Promise||Promise),!k)throw new Error("no Promise impl found");return k}},3292:(Oe,ie,A)=>{A.d(ie,{c:()=>X});var h=A(2830),p=A(2782);const X={closed:!0,next(ee){},error(ee){if(h.v.useDeprecatedSynchronousErrorHandling)throw ee;(0,p.z)(ee)},complete(){}}},5529:(Oe,ie,A)=>{A.d(ie,{xQ:()=>re,Yc:()=>fe});var h=A(6498),p=A(3489),X=A(2654),ee=A(5279);class ae extends X.w{constructor(k,z){super(),this.subject=k,this.subscriber=z,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const k=this.subject,z=k.observers;if(this.subject=null,!z||0===z.length||k.isStopped||k.closed)return;const le=z.indexOf(this.subscriber);-1!==le&&z.splice(le,1)}}var Q=A(7668);class fe extends p.L{constructor(k){super(k),this.destination=k}}let re=(()=>{class L extends h.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Q.b](){return new fe(this)}lift(z){const le=new Y(this,this);return le.operator=z,le}next(z){if(this.closed)throw new ee.N;if(!this.isStopped){const{observers:le}=this,q=le.length,ce=le.slice();for(let J=0;Jnew Y(k,z),L})();class Y extends re{constructor(k,z){super(),this.destination=k,this.source=z}next(k){const{destination:z}=this;z&&z.next&&z.next(k)}error(k){const{destination:z}=this;z&&z.error&&this.destination.error(k)}complete(){const{destination:k}=this;k&&k.complete&&this.destination.complete()}_subscribe(k){const{source:z}=this;return z?this.source.subscribe(k):X.w.EMPTY}}},3489:(Oe,ie,A)=>{A.d(ie,{L:()=>fe});var h=A(7043),p=A(3292),X=A(2654),ee=A(7668),ae=A(2830),Q=A(2782);class fe extends X.w{constructor(L,k,z){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=p.c;break;case 1:if(!L){this.destination=p.c;break}if("object"==typeof L){L instanceof fe?(this.syncErrorThrowable=L.syncErrorThrowable,this.destination=L,L.add(this)):(this.syncErrorThrowable=!0,this.destination=new re(this,L));break}default:this.syncErrorThrowable=!0,this.destination=new re(this,L,k,z)}}[ee.b](){return this}static create(L,k,z){const le=new fe(L,k,z);return le.syncErrorThrowable=!1,le}next(L){this.isStopped||this._next(L)}error(L){this.isStopped||(this.isStopped=!0,this._error(L))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(L){this.destination.next(L)}_error(L){this.destination.error(L),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:L}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=L,this}}class re extends fe{constructor(L,k,z,le){super(),this._parentSubscriber=L;let q,ce=this;(0,h.m)(k)?q=k:k&&(q=k.next,z=k.error,le=k.complete,k!==p.c&&(ce=Object.create(k),(0,h.m)(ce.unsubscribe)&&this.add(ce.unsubscribe.bind(ce)),ce.unsubscribe=this.unsubscribe.bind(this))),this._context=ce,this._next=q,this._error=z,this._complete=le}next(L){if(!this.isStopped&&this._next){const{_parentSubscriber:k}=this;ae.v.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?this.__tryOrSetError(k,this._next,L)&&this.unsubscribe():this.__tryOrUnsub(this._next,L)}}error(L){if(!this.isStopped){const{_parentSubscriber:k}=this,{useDeprecatedSynchronousErrorHandling:z}=ae.v;if(this._error)z&&k.syncErrorThrowable?(this.__tryOrSetError(k,this._error,L),this.unsubscribe()):(this.__tryOrUnsub(this._error,L),this.unsubscribe());else if(k.syncErrorThrowable)z?(k.syncErrorValue=L,k.syncErrorThrown=!0):(0,Q.z)(L),this.unsubscribe();else{if(this.unsubscribe(),z)throw L;(0,Q.z)(L)}}}complete(){if(!this.isStopped){const{_parentSubscriber:L}=this;if(this._complete){const k=()=>this._complete.call(this._context);ae.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?(this.__tryOrSetError(L,k),this.unsubscribe()):(this.__tryOrUnsub(k),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(L,k){try{L.call(this._context,k)}catch(z){if(this.unsubscribe(),ae.v.useDeprecatedSynchronousErrorHandling)throw z;(0,Q.z)(z)}}__tryOrSetError(L,k,z){if(!ae.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{k.call(this._context,z)}catch(le){return ae.v.useDeprecatedSynchronousErrorHandling?(L.syncErrorValue=le,L.syncErrorThrown=!0,!0):((0,Q.z)(le),!0)}return!1}_unsubscribe(){const{_parentSubscriber:L}=this;this._context=null,this._parentSubscriber=null,L.unsubscribe()}}},2654:(Oe,ie,A)=>{A.d(ie,{w:()=>Q});var h=A(6688),p=A(7830),X=A(7043);const ae=(()=>{function re(Y){return Error.call(this),this.message=Y?`${Y.length} errors occurred during unsubscription:\n${Y.map((L,k)=>`${k+1}) ${L.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Y,this}return re.prototype=Object.create(Error.prototype),re})();class Q{constructor(Y){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,Y&&(this._ctorUnsubscribe=!0,this._unsubscribe=Y)}unsubscribe(){let Y;if(this.closed)return;let{_parentOrParents:L,_ctorUnsubscribe:k,_unsubscribe:z,_subscriptions:le}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,L instanceof Q)L.remove(this);else if(null!==L)for(let q=0;qY.concat(L instanceof ae?L.errors:L),[])}Q.EMPTY=((re=new Q).closed=!0,re)},2830:(Oe,ie,A)=>{A.d(ie,{v:()=>p});let h=!1;const p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(X){if(X){const ee=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ee.stack)}else h&&console.log("RxJS: Back to a better error behavior. Thank you. <3");h=X},get useDeprecatedSynchronousErrorHandling(){return h}}},1177:(Oe,ie,A)=>{A.d(ie,{Ds:()=>Q,IY:()=>ee,ft:()=>re});var h=A(3489),p=A(6498),X=A(9249);class ee extends h.L{constructor(L){super(),this.parent=L}_next(L){this.parent.notifyNext(L)}_error(L){this.parent.notifyError(L),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Q extends h.L{notifyNext(L){this.destination.next(L)}notifyError(L){this.destination.error(L)}notifyComplete(){this.destination.complete()}}function re(Y,L){if(L.closed)return;if(Y instanceof p.y)return Y.subscribe(L);let k;try{k=(0,X.s)(Y)(L)}catch(z){L.error(z)}return k}},1762:(Oe,ie,A)=>{A.d(ie,{N:()=>Q,c:()=>ae});var h=A(5529),p=A(6498),X=A(2654),ee=A(4327);class ae extends p.y{constructor(k,z){super(),this.source=k,this.subjectFactory=z,this._refCount=0,this._isComplete=!1}_subscribe(k){return this.getSubject().subscribe(k)}getSubject(){const k=this._subject;return(!k||k.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let k=this._connection;return k||(this._isComplete=!1,k=this._connection=new X.w,k.add(this.source.subscribe(new fe(this.getSubject(),this))),k.closed&&(this._connection=null,k=X.w.EMPTY)),k}refCount(){return(0,ee.x)()(this)}}const Q=(()=>{const L=ae.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:L._subscribe},_isComplete:{value:L._isComplete,writable:!0},getSubject:{value:L.getSubject},connect:{value:L.connect},refCount:{value:L.refCount}}})();class fe extends h.Yc{constructor(k,z){super(k),this.connectable=z}_error(k){this._unsubscribe(),super._error(k)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const k=this.connectable;if(k){this.connectable=null;const z=k._connection;k._refCount=0,k._subject=null,k._connection=null,z&&z.unsubscribe()}}}},3426:(Oe,ie,A)=>{A.d(ie,{aj:()=>k});var h=A(2866),p=A(6688),X=A(3489);class ee extends X.L{notifyNext(ce,J,he,Me,Re){this.destination.next(J)}notifyError(ce,J){this.destination.error(ce)}notifyComplete(ce){this.destination.complete()}}class ae extends X.L{constructor(ce,J,he){super(),this.parent=ce,this.outerValue=J,this.outerIndex=he,this.index=0}_next(ce){this.parent.notifyNext(this.outerValue,ce,this.outerIndex,this.index++,this)}_error(ce){this.parent.notifyError(ce,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Q=A(9249),fe=A(6498);function re(q,ce,J,he,Me=new ae(q,J,he)){if(!Me.closed)return ce instanceof fe.y?ce.subscribe(Me):(0,Q.s)(ce)(Me)}var Y=A(3009);const L={};function k(...q){let ce,J;return(0,h.K)(q[q.length-1])&&(J=q.pop()),"function"==typeof q[q.length-1]&&(ce=q.pop()),1===q.length&&(0,p.k)(q[0])&&(q=q[0]),(0,Y.n)(q,J).lift(new z(ce))}class z{constructor(ce){this.resultSelector=ce}call(ce,J){return J.subscribe(new le(ce,this.resultSelector))}}class le extends ee{constructor(ce,J){super(ce),this.resultSelector=J,this.active=0,this.values=[],this.observables=[]}_next(ce){this.values.push(L),this.observables.push(ce)}_complete(){const ce=this.observables,J=ce.length;if(0===J)this.destination.complete();else{this.active=J,this.toRespond=J;for(let he=0;he{A.d(ie,{z:()=>ee});var h=A(1086),p=A(9146);function ee(...ae){return function X(){return(0,p.J)(1)}()((0,h.of)(...ae))}},5254:(Oe,ie,A)=>{A.d(ie,{D:()=>ce});var h=A(6498),p=A(9249),X=A(2654),ee=A(3821),fe=A(6454),re=A(5430),k=A(8955),z=A(8515);function ce(J,he){return he?function q(J,he){if(null!=J){if(function L(J){return J&&"function"==typeof J[ee.L]}(J))return function ae(J,he){return new h.y(Me=>{const Re=new X.w;return Re.add(he.schedule(()=>{const se=J[ee.L]();Re.add(se.subscribe({next(We){Re.add(he.schedule(()=>Me.next(We)))},error(We){Re.add(he.schedule(()=>Me.error(We)))},complete(){Re.add(he.schedule(()=>Me.complete()))}}))})),Re})}(J,he);if((0,k.t)(J))return function Q(J,he){return new h.y(Me=>{const Re=new X.w;return Re.add(he.schedule(()=>J.then(se=>{Re.add(he.schedule(()=>{Me.next(se),Re.add(he.schedule(()=>Me.complete()))}))},se=>{Re.add(he.schedule(()=>Me.error(se)))}))),Re})}(J,he);if((0,z.z)(J))return(0,fe.r)(J,he);if(function le(J){return J&&"function"==typeof J[re.hZ]}(J)||"string"==typeof J)return function Y(J,he){if(!J)throw new Error("Iterable cannot be null");return new h.y(Me=>{const Re=new X.w;let se;return Re.add(()=>{se&&"function"==typeof se.return&&se.return()}),Re.add(he.schedule(()=>{se=J[re.hZ](),Re.add(he.schedule(function(){if(Me.closed)return;let We,Ze;try{const ke=se.next();We=ke.value,Ze=ke.done}catch(ke){return void Me.error(ke)}Ze?Me.complete():(Me.next(We),this.schedule())}))})),Re})}(J,he)}throw new TypeError((null!==J&&typeof J||J)+" is not observable")}(J,he):J instanceof h.y?J:new h.y((0,p.s)(J))}},3009:(Oe,ie,A)=>{A.d(ie,{n:()=>ee});var h=A(6498),p=A(3650),X=A(6454);function ee(ae,Q){return Q?(0,X.r)(ae,Q):new h.y((0,p.V)(ae))}},1086:(Oe,ie,A)=>{A.d(ie,{of:()=>ee});var h=A(2866),p=A(3009),X=A(6454);function ee(...ae){let Q=ae[ae.length-1];return(0,h.K)(Q)?(ae.pop(),(0,X.r)(ae,Q)):(0,p.n)(ae)}},7221:(Oe,ie,A)=>{A.d(ie,{K:()=>p});var h=A(1177);function p(ae){return function(fe){const re=new X(ae),Y=fe.lift(re);return re.caught=Y}}class X{constructor(Q){this.selector=Q}call(Q,fe){return fe.subscribe(new ee(Q,this.selector,this.caught))}}class ee extends h.Ds{constructor(Q,fe,re){super(Q),this.selector=fe,this.caught=re}error(Q){if(!this.isStopped){let fe;try{fe=this.selector(Q,this.caught)}catch(L){return void super.error(L)}this._unsubscribeAndRecycle();const re=new h.IY(this);this.add(re);const Y=(0,h.ft)(fe,re);Y!==re&&this.add(Y)}}}},4850:(Oe,ie,A)=>{A.d(ie,{U:()=>p});var h=A(3489);function p(ae,Q){return function(re){if("function"!=typeof ae)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return re.lift(new X(ae,Q))}}class X{constructor(Q,fe){this.project=Q,this.thisArg=fe}call(Q,fe){return fe.subscribe(new ee(Q,this.project,this.thisArg))}}class ee extends h.L{constructor(Q,fe,re){super(Q),this.project=fe,this.count=0,this.thisArg=re||this}_next(Q){let fe;try{fe=this.project.call(this.thisArg,Q,this.count++)}catch(re){return void this.destination.error(re)}this.destination.next(fe)}}},9146:(Oe,ie,A)=>{A.d(ie,{J:()=>X});var h=A(1709),p=A(5379);function X(ee=Number.POSITIVE_INFINITY){return(0,h.zg)(p.y,ee)}},1709:(Oe,ie,A)=>{A.d(ie,{zg:()=>ee});var h=A(4850),p=A(5254),X=A(1177);function ee(re,Y,L=Number.POSITIVE_INFINITY){return"function"==typeof Y?k=>k.pipe(ee((z,le)=>(0,p.D)(re(z,le)).pipe((0,h.U)((q,ce)=>Y(z,q,le,ce))),L)):("number"==typeof Y&&(L=Y),k=>k.lift(new ae(re,L)))}class ae{constructor(Y,L=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=L}call(Y,L){return L.subscribe(new Q(Y,this.project,this.concurrent))}}class Q extends X.Ds{constructor(Y,L,k=Number.POSITIVE_INFINITY){super(Y),this.project=L,this.concurrent=k,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next(Y.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Oe,ie,A)=>{A.d(ie,{x:()=>p});var h=A(3489);function p(){return function(Q){return Q.lift(new X(Q))}}class X{constructor(Q){this.connectable=Q}call(Q,fe){const{connectable:re}=this;re._refCount++;const Y=new ee(Q,re),L=fe.subscribe(Y);return Y.closed||(Y.connection=re.connect()),L}}class ee extends h.L{constructor(Q,fe){super(Q),this.connectable=fe}_unsubscribe(){const{connectable:Q}=this;if(!Q)return void(this.connection=null);this.connectable=null;const fe=Q._refCount;if(fe<=0)return void(this.connection=null);if(Q._refCount=fe-1,fe>1)return void(this.connection=null);const{connection:re}=this,Y=Q._connection;this.connection=null,Y&&(!re||Y===re)&&Y.unsubscribe()}}},1059:(Oe,ie,A)=>{A.d(ie,{O:()=>X});var h=A(1221),p=A(2866);function X(...ee){const ae=ee[ee.length-1];return(0,p.K)(ae)?(ee.pop(),Q=>(0,h.z)(ee,Q,ae)):Q=>(0,h.z)(ee,Q)}},7545:(Oe,ie,A)=>{A.d(ie,{w:()=>ee});var h=A(4850),p=A(5254),X=A(1177);function ee(fe,re){return"function"==typeof re?Y=>Y.pipe(ee((L,k)=>(0,p.D)(fe(L,k)).pipe((0,h.U)((z,le)=>re(L,z,k,le))))):Y=>Y.lift(new ae(fe))}class ae{constructor(re){this.project=re}call(re,Y){return Y.subscribe(new Q(re,this.project))}}class Q extends X.Ds{constructor(re,Y){super(re),this.project=Y,this.index=0}_next(re){let Y;const L=this.index++;try{Y=this.project(re,L)}catch(k){return void this.destination.error(k)}this._innerSub(Y)}_innerSub(re){const Y=this.innerSubscription;Y&&Y.unsubscribe();const L=new X.IY(this),k=this.destination;k.add(L),this.innerSubscription=(0,X.ft)(re,L),this.innerSubscription!==L&&k.add(this.innerSubscription)}_complete(){const{innerSubscription:re}=this;(!re||re.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(re){this.destination.next(re)}}},7625:(Oe,ie,A)=>{A.d(ie,{R:()=>p});var h=A(1177);function p(ae){return Q=>Q.lift(new X(ae))}class X{constructor(Q){this.notifier=Q}call(Q,fe){const re=new ee(Q),Y=(0,h.ft)(this.notifier,new h.IY(re));return Y&&!re.seenValue?(re.add(Y),fe.subscribe(re)):re}}class ee extends h.Ds{constructor(Q){super(Q),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},2868:(Oe,ie,A)=>{A.d(ie,{b:()=>ee});var h=A(3489);function p(){}var X=A(7043);function ee(fe,re,Y){return function(k){return k.lift(new ae(fe,re,Y))}}class ae{constructor(re,Y,L){this.nextOrObserver=re,this.error=Y,this.complete=L}call(re,Y){return Y.subscribe(new Q(re,this.nextOrObserver,this.error,this.complete))}}class Q extends h.L{constructor(re,Y,L,k){super(re),this._tapNext=p,this._tapError=p,this._tapComplete=p,this._tapError=L||p,this._tapComplete=k||p,(0,X.m)(Y)?(this._context=this,this._tapNext=Y):Y&&(this._context=Y,this._tapNext=Y.next||p,this._tapError=Y.error||p,this._tapComplete=Y.complete||p)}_next(re){try{this._tapNext.call(this._context,re)}catch(Y){return void this.destination.error(Y)}this.destination.next(re)}_error(re){try{this._tapError.call(this._context,re)}catch(Y){return void this.destination.error(Y)}this.destination.error(re)}_complete(){try{this._tapComplete.call(this._context)}catch(re){return void this.destination.error(re)}return this.destination.complete()}}},6454:(Oe,ie,A)=>{A.d(ie,{r:()=>X});var h=A(6498),p=A(2654);function X(ee,ae){return new h.y(Q=>{const fe=new p.w;let re=0;return fe.add(ae.schedule(function(){re!==ee.length?(Q.next(ee[re++]),Q.closed||fe.add(this.schedule())):Q.complete()})),fe})}},5430:(Oe,ie,A)=>{A.d(ie,{hZ:()=>p});const p=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Oe,ie,A)=>{A.d(ie,{L:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Oe,ie,A)=>{A.d(ie,{b:()=>h});const h="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},5279:(Oe,ie,A)=>{A.d(ie,{N:()=>p});const p=(()=>{function X(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return X.prototype=Object.create(Error.prototype),X})()},2782:(Oe,ie,A)=>{function h(p){setTimeout(()=>{throw p},0)}A.d(ie,{z:()=>h})},5379:(Oe,ie,A)=>{function h(p){return p}A.d(ie,{y:()=>h})},6688:(Oe,ie,A)=>{A.d(ie,{k:()=>h});const h=Array.isArray||(p=>p&&"number"==typeof p.length)},8515:(Oe,ie,A)=>{A.d(ie,{z:()=>h});const h=p=>p&&"number"==typeof p.length&&"function"!=typeof p},7043:(Oe,ie,A)=>{function h(p){return"function"==typeof p}A.d(ie,{m:()=>h})},7830:(Oe,ie,A)=>{function h(p){return null!==p&&"object"==typeof p}A.d(ie,{K:()=>h})},8955:(Oe,ie,A)=>{function h(p){return!!p&&"function"!=typeof p.subscribe&&"function"==typeof p.then}A.d(ie,{t:()=>h})},2866:(Oe,ie,A)=>{function h(p){return p&&"function"==typeof p.schedule}A.d(ie,{K:()=>h})},4843:(Oe,ie,A)=>{A.d(ie,{U:()=>X,z:()=>p});var h=A(5379);function p(...ee){return X(ee)}function X(ee){return 0===ee.length?h.y:1===ee.length?ee[0]:function(Q){return ee.reduce((fe,re)=>re(fe),Q)}}},9249:(Oe,ie,A)=>{A.d(ie,{s:()=>k});var h=A(3650),p=A(2782),ee=A(5430),Q=A(3821),re=A(8515),Y=A(8955),L=A(7830);const k=z=>{if(z&&"function"==typeof z[Q.L])return(z=>le=>{const q=z[Q.L]();if("function"!=typeof q.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return q.subscribe(le)})(z);if((0,re.z)(z))return(0,h.V)(z);if((0,Y.t)(z))return(z=>le=>(z.then(q=>{le.closed||(le.next(q),le.complete())},q=>le.error(q)).then(null,p.z),le))(z);if(z&&"function"==typeof z[ee.hZ])return(z=>le=>{const q=z[ee.hZ]();for(;;){let ce;try{ce=q.next()}catch(J){return le.error(J),le}if(ce.done){le.complete();break}if(le.next(ce.value),le.closed)break}return"function"==typeof q.return&&le.add(()=>{q.return&&q.return()}),le})(z);{const q=`You provided ${(0,L.K)(z)?"an invalid object":`'${z}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(q)}}},3650:(Oe,ie,A)=>{A.d(ie,{V:()=>h});const h=p=>X=>{for(let ee=0,ae=p.length;ee{A.d(ie,{Y6:()=>We,Ik:()=>yn,ti:()=>ke,XX:()=>bn,XI:()=>zt,LR:()=>hr,aJ:()=>Ce});var h=A(6895),p=A(6738),X=A(1198),ee=A(4719),ae=A(6789),Q=A(5689),fe=A(5529),re=A(3426),Y=A(7625),L=A(1059),k=A(3489);class le{constructor(B,G){this.compare=B,this.keySelector=G}call(B,G){return G.subscribe(new q(B,this.compare,this.keySelector))}}class q extends k.L{constructor(B,G,K){super(B),this.keySelector=K,this.hasKey=!1,"function"==typeof G&&(this.compare=G)}compare(B,G){return B===G}_next(B){let G;try{const{keySelector:Le}=this;G=Le?Le(B):B}catch(Le){return this.destination.error(Le)}let K=!1;if(this.hasKey)try{const{compare:Le}=this;K=Le(this.key,G)}catch(Le){return this.destination.error(Le)}else this.hasKey=!0;K||(this.key=G,this.destination.next(B))}}var ce=A(2868);function J($,B){if(1&$&&(p._UZ(0,"div",1),p.ALo(1,"nbErrInfo")),2&$){const G=p.oxw();p.Q6J("nb-r-str",p.xi3(1,1,G.control.errors,G.allErrInfo))}}function he($,B){1&$&&(p.TgZ(0,"span",4),p._uU(1,"*"),p.qZA())}function Me($,B){if(1&$&&p._UZ(0,"nb-control-err",5),2&$){const G=p.oxw();p.Q6J("control",G.control)("errInfo",G.errInfo)}}const Re=[[["","field-label",""]],"*"],se=["[field-label]","*"],We=new p.OlP("common errors information");var ke=(()=>{return($=ke||(ke={})).REQUIRED="required",$.FILE_MAX_SIZE="fileMaxSize",$.FILE_MIN_SIZE="fileMinSize",$.FILE_TYPE="fileType",$.EQUAL="equal",$.MAX_LENGTH="maxlength",$.MIN_LENGTH="minlength",$.ARR_MAX_LENGTH="arrMaxLength",$.ARR_MIN_LENGTH="arrMinLength",$.WHITESPACE="whitespace",ke;var $})();const Ce={arrLength:$=>B=>Array.isArray(B.value)?$.max&&B.value.length>$.max?{[ke.ARR_MAX_LENGTH]:!0}:$.min&&B.value.length<$.min?{[ke.ARR_MIN_LENGTH]:!0}:null:null,equal:($,B=!0)=>G=>!B&&!$.dirty||(0,ae.Z)(G.value,$.value)?null:{[ke.EQUAL]:!0},fileSize:$=>B=>{const G=B.value;return G instanceof File?$.max&&G.size>$.max?{[ke.FILE_MAX_SIZE]:!0}:$.min&&G.size<$.min?{[ke.FILE_MIN_SIZE]:!0}:null:null},fileType:$=>B=>{const G=B.value;return G instanceof File&&$.length&&!$.includes(G.type)?{[ke.FILE_TYPE]:!0}:null},required:($=!0)=>B=>$?ee.kI.required(B):null,whitespace:($=!0)=>B=>$||!B.value||!(0,Q.Z)(B.value)||B.value.trim()?null:{[ke.WHITESPACE]:!0}},Gt={required:$=>Ce.required($.required),max:$=>{if($.max)return ee.kI.max($.max)},min:$=>{if($.min)return ee.kI.min($.min)},maxLength:$=>{if($.maxLength)return ee.kI.maxLength($.maxLength)},minLength:$=>{if($.minLength)return ee.kI.minLength($.minLength)},arrMaxLength:$=>{if($.arrMaxLength)return Ce.arrLength({max:$.arrMaxLength})},arrMinLength:$=>{if($.arrMinLength)return Ce.arrLength({min:$.arrMinLength})},maxFileSize:$=>{if($.maxFileSize)return Ce.fileSize({max:$.maxFileSize})},minFileSize:$=>{if($.minFileSize)return Ce.fileSize({min:$.minFileSize})},fileType:$=>{if($.fileType?.length)return Ce.fileType($.fileType)},pattern:$=>{if($.pattern)return ee.kI.pattern($.pattern)},whitespace:$=>Ce.whitespace($.whitespace)};let rt=(()=>{class ${transform(G,K){const Le=Object.keys(G||{})[0];return Le&&K?.[Le]||""}}return $.\u0275fac=function(G){return new(G||$)},$.\u0275pipe=p.Yjl({name:"nbErrInfo",type:$,pure:!0}),$})(),yn=(()=>{class ${constructor(G={},K){this.commonErrInfo=G,this.changeDR=K,this.errInfo={},this.allErrInfo={},this.errControl=new ee.p4,this.hasErr=!1,this.destroy$=new fe.xQ}ngOnChanges(G){const{control:K,errInfo:Le}=G;K&&this.subscribeControlChange(),Le&&this.updateAllErrInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateAllErrInfo(){this.allErrInfo={...this.commonErrInfo,...this.errInfo},this.changeDR.markForCheck()}subscribeControlChange(){this.updateHasErr(this.control),this.control.statusChanges.pipe((0,Y.R)(this.destroy$)).subscribe(G=>this.updateHasErr(this.control))}updateHasErr(G){this.hasErr=G.dirty&&"INVALID"===G.status,this.changeDR.markForCheck()}}return $.\u0275fac=function(G){return new(G||$)(p.Y36(We,8),p.Y36(p.sBO))},$.\u0275cmp=p.Xpm({type:$,selectors:[["nb-control-err"]],inputs:{control:"control",errInfo:"errInfo"},features:[p.TTD],decls:1,vars:1,consts:[["class","err-info",3,"nb-r-str",4,"ngIf"],[1,"err-info",3,"nb-r-str"]],template:function(G,K){1&G&&p.YNc(0,J,2,4,"div",0),2&G&&p.Q6J("ngIf",K.control&&K.hasErr)},dependencies:[h.O5,X.dn,rt],styles:["[_nghost-%COMP%]{position:relative;top:100%;left:0;display:block;font-size:14px;color:red}.err-info[_ngcontent-%COMP%]{position:absolute;top:0;left:0;word-break:break-word}"],changeDetection:0}),$})(),bn=(()=>{class ${constructor(){this.errInfo={},this.required=!1}}return $.\u0275fac=function(G){return new(G||$)},$.\u0275cmp=p.Xpm({type:$,selectors:[["nb-field-item"]],inputs:{control:"control",errInfo:"errInfo",required:"required"},ngContentSelectors:se,decls:6,vars:2,consts:[[1,"field-label"],["class","label-required",4,"ngIf"],[1,"field-content"],["class","nb-control-err",3,"control","errInfo",4,"ngIf"],[1,"label-required"],[1,"nb-control-err",3,"control","errInfo"]],template:function(G,K){1&G&&(p.F$t(Re),p.TgZ(0,"label",0),p.YNc(1,he,2,0,"span",1),p.Hsn(2),p.qZA(),p.TgZ(3,"div",2),p.Hsn(4,1),p.YNc(5,Me,1,2,"nb-control-err",3),p.qZA()),2&G&&(p.xp6(1),p.Q6J("ngIf",K.required),p.xp6(4),p.Q6J("ngIf",K.control))},dependencies:[h.O5,yn],styles:["[_nghost-%COMP%]{display:flex;align-items:center;margin-bottom:24px}[_nghost-%COMP%]:last-child{margin-bottom:0}.field-label[_ngcontent-%COMP%]{flex:0 0 120px;display:flex;justify-content:flex-end;align-items:center;padding:0 8px 0 4px;word-break:break-word}.field-label[_ngcontent-%COMP%]:empty{flex-basis:0;padding:0}.label-required[_ngcontent-%COMP%]{color:red}.field-content[_ngcontent-%COMP%]{flex:1 1 auto;position:relative;display:flex;align-items:center}.nb-control-err[_ngcontent-%COMP%]{position:absolute;width:100%}"],changeDetection:0}),$})(),zt=(()=>{class ${}return $.\u0275fac=function(G){return new(G||$)},$.\u0275mod=p.oAB({type:$}),$.\u0275inj=p.cJS({imports:[h.ez,X.vw]}),$})(),rn=(()=>{class ${constructor(){}doFormArrayFn(G,K){G.controls.forEach(Le=>K(Le))}doFormGroupFn(G,K){Object.keys(G.controls).forEach(Le=>K(G.get(Le)))}}return $.\u0275fac=function(G){return new(G||$)},$.\u0275prov=p.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),hr=(()=>{class ${constructor(G){this.formTools=G}getValidatorsFromControlConfig(G){const K=Gt;return Object.keys(G).map(Le=>K[Le]?.(G)).filter(Le=>!!Le)}markAllAsDirty(G,K){G?.markAsDirty(K);const Le=pt=>this.markAllAsDirty(pt,K);G instanceof ee.vC?this.formTools.doFormArrayFn(G,Le):G instanceof ee.nJ&&this.formTools.doFormGroupFn(G,Le)}showAllErrInfo(G,K){G?.markAllAsTouched(),this.markAllAsDirty(G,K),this.updateAllValueAndValidity(G,K)}updateAllValueAndValidity(G,K){G?.updateValueAndValidity(K);const Le=pt=>this.updateAllValueAndValidity(pt,K);G instanceof ee.vC?this.formTools.doFormArrayFn(G,Le):G instanceof ee.nJ&&this.formTools.doFormGroupFn(G,Le)}updateEqualControlsValidities(G,K){const{target:Le,compared:pt}=G;return(0,re.aj)([Le.statusChanges.pipe((0,L.O)(Le.status)),pt.statusChanges.pipe((0,L.O)(pt.status))]).pipe(function z($,B){return G=>G.lift(new le($,B))}((Qe,Ar)=>(0,ae.Z)(Qe,Ar)),K?(0,Y.R)(K):(0,ce.b)(()=>{})).subscribe(Qe=>{Le.updateValueAndValidity(),pt.updateValueAndValidity()})}}return $.\u0275fac=function(G){return new(G||$)(p.LFG(rn))},$.\u0275prov=p.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})()},6895:(Oe,ie,A)=>{A.d(ie,{Do:()=>Re,ED:()=>Ae,EM:()=>ro,HT:()=>ee,JF:()=>si,K0:()=>Q,Mx:()=>Ge,O5:()=>Vt,Ov:()=>rr,RF:()=>U,S$:()=>J,V_:()=>Y,Ye:()=>se,b0:()=>Me,bD:()=>Vo,ez:()=>Yn,n9:()=>ye,q:()=>X,sg:()=>kt,tP:()=>He,w_:()=>ae});var h=A(6738);let p=null;function X(){return p}function ee(m){p||(p=m)}class ae{}const Q=new h.OlP("DocumentToken");let fe=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=h.Yz7({token:m,factory:function(){return function re(){return(0,h.LFG)(L)}()},providedIn:"platform"}),m})();const Y=new h.OlP("Location Initialized");let L=(()=>{class m extends fe{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return X().getBaseHref(this._doc)}onPopState(v){const M=X().getGlobalEventTarget(this._doc,"window");return M.addEventListener("popstate",v,!1),()=>M.removeEventListener("popstate",v)}onHashChange(v){const M=X().getGlobalEventTarget(this._doc,"window");return M.addEventListener("hashchange",v,!1),()=>M.removeEventListener("hashchange",v)}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(v){this.location.pathname=v}pushState(v,M,R){k()?this._history.pushState(v,M,R):this.location.hash=R}replaceState(v,M,R){k()?this._history.replaceState(v,M,R):this.location.hash=R}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(Q))},m.\u0275prov=h.Yz7({token:m,factory:function(){return function z(){return new L((0,h.LFG)(Q))}()},providedIn:"platform"}),m})();function k(){return!!window.history.pushState}function le(m,E){if(0==m.length)return E;if(0==E.length)return m;let v=0;return m.endsWith("/")&&v++,E.startsWith("/")&&v++,2==v?m+E.substring(1):1==v?m+E:m+"/"+E}function q(m){const E=m.match(/#|\?|$/),v=E&&E.index||m.length;return m.slice(0,v-("/"===m[v-1]?1:0))+m.slice(v)}function ce(m){return m&&"?"!==m[0]?"?"+m:m}let J=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=h.Yz7({token:m,factory:function(){return(0,h.f3M)(Me)},providedIn:"root"}),m})();const he=new h.OlP("appBaseHref");let Me=(()=>{class m extends J{constructor(v,M){super(),this._platformLocation=v,this._removeListenerFns=[],this._baseHref=M??this._platformLocation.getBaseHrefFromDOM()??(0,h.f3M)(Q).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return le(this._baseHref,v)}path(v=!1){const M=this._platformLocation.pathname+ce(this._platformLocation.search),R=this._platformLocation.hash;return R&&v?`${M}${R}`:M}pushState(v,M,R,Z){const ne=this.prepareExternalUrl(R+ce(Z));this._platformLocation.pushState(v,M,ne)}replaceState(v,M,R,Z){const ne=this.prepareExternalUrl(R+ce(Z));this._platformLocation.replaceState(v,M,ne)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(fe),h.LFG(he,8))},m.\u0275prov=h.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})(),Re=(()=>{class m extends J{constructor(v,M){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=M&&(this._baseHref=M)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let M=this._platformLocation.hash;return null==M&&(M="#"),M.length>0?M.substring(1):M}prepareExternalUrl(v){const M=le(this._baseHref,v);return M.length>0?"#"+M:M}pushState(v,M,R,Z){let ne=this.prepareExternalUrl(R+ce(Z));0==ne.length&&(ne=this._platformLocation.pathname),this._platformLocation.pushState(v,M,ne)}replaceState(v,M,R,Z){let ne=this.prepareExternalUrl(R+ce(Z));0==ne.length&&(ne=this._platformLocation.pathname),this._platformLocation.replaceState(v,M,ne)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(fe),h.LFG(he,8))},m.\u0275prov=h.Yz7({token:m,factory:m.\u0275fac}),m})(),se=(()=>{class m{constructor(v){this._subject=new h.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=v;const M=this._locationStrategy.getBaseHref();this._basePath=function nn(m){if(new RegExp("^(https?:)?//").test(m)){const[,v]=m.split(/\/\/[^\/]+/);return v}return m}(q(ke(M))),this._locationStrategy.onPopState(R=>{this._subject.emit({url:this.path(!0),pop:!0,state:R.state,type:R.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(v=!1){return this.normalize(this._locationStrategy.path(v))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(v,M=""){return this.path()==this.normalize(v+ce(M))}normalize(v){return m.stripTrailingSlash(function Ze(m,E){return m&&E.startsWith(m)?E.substring(m.length):E}(this._basePath,ke(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._locationStrategy.prepareExternalUrl(v)}go(v,M="",R=null){this._locationStrategy.pushState(R,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ce(M)),R)}replaceState(v,M="",R=null){this._locationStrategy.replaceState(R,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+ce(M)),R)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(v=0){this._locationStrategy.historyGo?.(v)}onUrlChange(v){return this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(M=>{this._notifyUrlChangeListeners(M.url,M.state)})),()=>{const M=this._urlChangeListeners.indexOf(v);this._urlChangeListeners.splice(M,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(v="",M){this._urlChangeListeners.forEach(R=>R(v,M))}subscribe(v,M,R){return this._subject.subscribe({next:v,error:M,complete:R})}}return m.normalizeQueryParams=ce,m.joinWithSlash=le,m.stripTrailingSlash=q,m.\u0275fac=function(v){return new(v||m)(h.LFG(J))},m.\u0275prov=h.Yz7({token:m,factory:function(){return function We(){return new se((0,h.LFG)(J))}()},providedIn:"root"}),m})();function ke(m){return m.replace(/\/index.html$/,"")}function Ge(m,E){E=encodeURIComponent(E);for(const v of m.split(";")){const M=v.indexOf("="),[R,Z]=-1==M?[v,""]:[v.slice(0,M),v.slice(M+1)];if(R.trim()===E)return decodeURIComponent(Z)}return null}class Dt{constructor(E,v,M,R){this.$implicit=E,this.ngForOf=v,this.index=M,this.count=R}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let kt=(()=>{class m{constructor(v,M,R){this._viewContainer=v,this._template=M,this._differs=R,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const M=this._viewContainer;v.forEachOperation((R,Z,ne)=>{if(null==R.previousIndex)M.createEmbeddedView(this._template,new Dt(R.item,this._ngForOf,-1,-1),null===ne?void 0:ne);else if(null==ne)M.remove(null===Z?void 0:Z);else if(null!==Z){const we=M.get(Z);M.move(we,ne),nr(we,R)}});for(let R=0,Z=M.length;R{nr(M.get(R.currentIndex),R)})}static ngTemplateContextGuard(v,M){return!0}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),m})();function nr(m,E){m.context.$implicit=E.item}let Vt=(()=>{class m{constructor(v,M){this._viewContainer=v,this._context=new T,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=M}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){P("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){P("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,M){return!0}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),m})();class T{constructor(){this.$implicit=null,this.ngIf=null}}function P(m,E){if(E&&!E.createEmbeddedView)throw new Error(`${m} must be a TemplateRef, but received '${(0,h.AaK)(E)}'.`)}class x{constructor(E,v){this._viewContainerRef=E,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(E){E&&!this._created?this.create():!E&&this._created&&this.destroy()}}let U=(()=>{class m{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(v){this._ngSwitch=v,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(v){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(v)}_matchCase(v){const M=v==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||M,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),M}_updateDefaultCases(v){if(this._defaultViews&&v!==this._defaultUsed){this._defaultUsed=v;for(let M=0;M{class m{constructor(v,M,R){this.ngSwitch=R,R._addCase(),this._view=new x(v,M)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(U,9))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),m})(),Ae=(()=>{class m{constructor(v,M,R){R._addDefault(new x(v,M))}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(U,9))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngSwitchDefault",""]],standalone:!0}),m})(),He=(()=>{class m{constructor(v){this._viewContainerRef=v,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(v){if(v.ngTemplateOutlet||v.ngTemplateOutletInjector){const M=this._viewContainerRef;if(this._viewRef&&M.remove(M.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:R,ngTemplateOutletContext:Z,ngTemplateOutletInjector:ne}=this;this._viewRef=M.createEmbeddedView(R,Z,ne?{injector:ne}:void 0)}else this._viewRef=null}else this._viewRef&&v.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.TTD]}),m})();class jt{createSubscription(E,v){return E.subscribe({next:v,error:M=>{throw M}})}dispose(E){E.unsubscribe()}}class _n{createSubscription(E,v){return E.then(v,M=>{throw M})}dispose(E){}}const Bt=new _n,Dr=new jt;let rr=(()=>{class m{constructor(v){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=v}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(v){return this._obj?v!==this._obj?(this._dispose(),this.transform(v)):this._latestValue:(v&&this._subscribe(v),this._latestValue)}_subscribe(v){this._obj=v,this._strategy=this._selectStrategy(v),this._subscription=this._strategy.createSubscription(v,M=>this._updateLatestValue(v,M))}_selectStrategy(v){if((0,h.QGY)(v))return Bt;if((0,h.F4k)(v))return Dr;throw function At(m,E){return new h.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(v,M){v===this._obj&&(this._latestValue=M,this._ref.markForCheck())}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.sBO,16))},m.\u0275pipe=h.Yjl({name:"async",type:m,pure:!1,standalone:!0}),m})(),Yn=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=h.oAB({type:m}),m.\u0275inj=h.cJS({}),m})();const Vo="browser";let ro=(()=>{class m{}return m.\u0275prov=(0,h.Yz7)({token:m,providedIn:"root",factory:()=>new ii((0,h.LFG)(Q),window)}),m})();class ii{constructor(E,v){this.document=E,this.window=v,this.offset=()=>[0,0]}setOffset(E){this.offset=Array.isArray(E)?()=>E:E}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(E){this.supportsScrolling()&&this.window.scrollTo(E[0],E[1])}scrollToAnchor(E){if(!this.supportsScrolling())return;const v=function br(m,E){const v=m.getElementById(E)||m.getElementsByName(E)[0];if(v)return v;if("function"==typeof m.createTreeWalker&&m.body&&(m.body.createShadowRoot||m.body.attachShadow)){const M=m.createTreeWalker(m.body,NodeFilter.SHOW_ELEMENT);let R=M.currentNode;for(;R;){const Z=R.shadowRoot;if(Z){const ne=Z.getElementById(E)||Z.querySelector(`[name="${E}"]`);if(ne)return ne}R=M.nextNode()}}return null}(this.document,E);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(E){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=E)}}scrollToElement(E){const v=E.getBoundingClientRect(),M=v.left+this.window.pageXOffset,R=v.top+this.window.pageYOffset,Z=this.offset();this.window.scrollTo(M-Z[0],R-Z[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const E=In(this.window.history)||In(Object.getPrototypeOf(this.window.history));return!(!E||!E.writable&&!E.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function In(m){return Object.getOwnPropertyDescriptor(m,"scrollRestoration")}class si{}},6738:(Oe,ie,A)=>{A.d(ie,{tb:()=>km,AFp:()=>Pm,ip1:()=>Nm,CZH:()=>Zl,hGG:()=>tE,z2F:()=>ql,sBO:()=>jb,Sil:()=>Db,_Vd:()=>_u,EJc:()=>vb,Xts:()=>Hc,SBq:()=>Du,lqb:()=>gs,qLn:()=>Cu,vpe:()=>Xo,XFs:()=>ge,OlP:()=>Ft,zs3:()=>ms,ZZ4:()=>gf,aQg:()=>mf,soG:()=>Kl,YKP:()=>Vg,h0i:()=>Ca,PXZ:()=>Nb,R0b:()=>po,FiY:()=>ns,Lbi:()=>gb,g9A:()=>Lm,Qsj:()=>ky,FYo:()=>fh,JOm:()=>Qr,tp0:()=>rs,Rgc:()=>Fu,dDg:()=>Ab,eoX:()=>Gm,GfV:()=>hh,s_b:()=>zl,ifc:()=>yt,MMx:()=>Hd,Lck:()=>hC,eFA:()=>Ym,G48:()=>Vb,Gpc:()=>Re,f3M:()=>mr,MR2:()=>by,_c5:()=>eE,c2e:()=>mb,zSh:()=>Wc,wAp:()=>Ue,vHH:()=>Ee,lri:()=>Hm,rWj:()=>$m,D6c:()=>nE,cg1:()=>Pd,kL8:()=>lg,dqk:()=>Et,Z0I:()=>Kn,sIi:()=>Su,CqO:()=>hp,QGY:()=>wd,QP$:()=>nr,F4k:()=>fp,RDi:()=>ml,AaK:()=>J,qOj:()=>md,TTD:()=>Zn,_Bn:()=>kg,jDz:()=>Ug,xp6:()=>Dh,uIk:()=>_d,ekj:()=>xd,Suo:()=>lm,Xpm:()=>vr,lG2:()=>Ln,Yz7:()=>Rt,cJS:()=>Nt,oAB:()=>wn,Yjl:()=>Pr,Y36:()=>aa,_UZ:()=>bd,GkF:()=>Ed,BQk:()=>Ll,ynx:()=>Fl,qZA:()=>Pl,TgZ:()=>Nl,EpF:()=>dp,n5z:()=>xi,Ikx:()=>Nd,LFG:()=>_t,$8M:()=>Va,$Z:()=>Nh,NdJ:()=>Sd,CRH:()=>cm,oxw:()=>vp,ALo:()=>em,lcZ:()=>tm,xi3:()=>nm,Hsn:()=>Dp,F$t:()=>_p,Q6J:()=>Dd,VKq:()=>Yg,WLB:()=>Zg,iGM:()=>um,MAs:()=>cp,KtG:()=>Mr,CHM:()=>Sr,LSH:()=>Bc,P3R:()=>eh,YNc:()=>lp,W1O:()=>pm,_uU:()=>Gp,Oqu:()=>Rd,hij:()=>jl});var h=A(5529),p=A(2654),X=A(6498),ee=A(2866),ae=A(9146),Q=A(3009),re=A(1762);class L{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,o=this.subjectFactory(),a=r(o).subscribe(t);return a.add(n.subscribe(o)),a}}var k=A(4327);function z(){return new h.xQ}function q(e){for(let t in e)if(e[t]===q)return t;throw Error("Could not find renamed property on target object.")}function ce(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function J(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(J).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function he(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Me=q({__forward_ref__:q});function Re(e){return e.__forward_ref__=Re,e.toString=function(){return J(this())},e}function se(e){return We(e)?e():e}function We(e){return"function"==typeof e&&e.hasOwnProperty(Me)&&e.__forward_ref__===Re}function Ze(e){return e&&!!e.\u0275providers}const nn="https://g.co/ng/security#xss";class Ee extends Error{constructor(t,n){super(function mt(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,n)),this.code=t}}function _e(e){return"string"==typeof e?e:null==e?"":String(e)}function Gt(e,t){throw new Ee(-201,!1)}function pt(e,t){null==e&&function Qe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Rt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ct(e){return mo(e,Kt)||mo(e,Tt)}function Kn(e){return null!==ct(e)}function mo(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ur(e){return e&&(e.hasOwnProperty(qn)||e.hasOwnProperty(Ne))?e[qn]:null}const Kt=q({\u0275prov:q}),qn=q({\u0275inj:q}),Tt=q({ngInjectableDef:q}),Ne=q({ngInjectorDef:q});var ge=(()=>((ge=ge||{})[ge.Default=0]="Default",ge[ge.Host=1]="Host",ge[ge.Self=2]="Self",ge[ge.SkipSelf=4]="SkipSelf",ge[ge.Optional=8]="Optional",ge))();let yo;function at(e){const t=yo;return yo=e,t}function Or(e,t,n){const r=ct(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ge.Optional?null:void 0!==t?t:void Gt(J(e))}const Et=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Qn={},Nn="__NG_DI_FLAG__",Rr="ngTempTokenPath",pr=/\n/gm,gt="__source";let on;function Hn(e){const t=on;return on=e,t}function ti(e,t=ge.Default){if(void 0===on)throw new Ee(-203,!1);return null===on?Or(e,void 0,t):on.get(e,t&ge.Optional?null:void 0,t)}function _t(e,t=ge.Default){return(function xr(){return yo}()||ti)(se(e),t)}function mr(e,t=ge.Default){return _t(e,$n(t))}function $n(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Br(e){const t=[];for(let n=0;n((ft=ft||{})[ft.OnPush=0]="OnPush",ft[ft.Default=1]="Default",ft))(),yt=(()=>{return(e=yt||(yt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",yt;var e})();const ln={},Be=[],Gn=q({\u0275cmp:q}),Hr=q({\u0275dir:q}),vn=q({\u0275pipe:q}),cn=q({\u0275mod:q}),Lt=q({\u0275fac:q}),yr=q({__NG_ELEMENT_ID__:q});let Nr=0;function vr(e){return wt(()=>{const n=!0===e.standalone,r={},o={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ft.OnPush,directiveDefs:null,pipeDefs:null,standalone:n,dependencies:n&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Be,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||yt.Emulated,id:"c"+Nr++,styles:e.styles||Be,_:null,setInput:null,schemas:e.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},a=e.dependencies,l=e.features;return o.inputs=Sn(e.inputs,r),o.outputs=Sn(e.outputs),l&&l.forEach(f=>f(o)),o.directiveDefs=a?()=>("function"==typeof a?a():a).map(Fn).filter(Do):null,o.pipeDefs=a?()=>("function"==typeof a?a():a).map(kt).filter(Do):null,o})}function Fn(e){return Xe(e)||Dt(e)}function Do(e){return null!==e}function wn(e){return wt(()=>({type:e.type,bootstrap:e.bootstrap||Be,declarations:e.declarations||Be,imports:e.imports||Be,exports:e.exports||Be,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Sn(e,t){if(null==e)return ln;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}const Ln=vr;function Pr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Xe(e){return e[Gn]||null}function Dt(e){return e[Hr]||null}function kt(e){return e[vn]||null}function nr(e){const t=Xe(e)||Dt(e)||kt(e);return null!==t&&t.standalone}function dn(e,t){const n=e[cn]||null;if(!n&&!0===t)throw new Error(`Type ${J(e)} does not have '\u0275mod' property.`);return n}function Dn(e){return Array.isArray(e)&&"object"==typeof e[1]}function fn(e){return Array.isArray(e)&&!0===e[1]}function Gr(e){return 0!=(4&e.flags)}function Wn(e){return e.componentOffset>-1}function ze(e){return 1==(1&e.flags)}function Wt(e){return null!==e.template}function to(e){return 0!=(256&e[2])}function Jt(e,t){return e.hasOwnProperty(Lt)?e[Lt]:null}class Ke{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Zn(){return Mo}function Mo(e){return e.type.prototype.ngOnChanges&&(e.setInput=Io),Er}function Er(){const e=sr(this),t=e?.current;if(t){const n=e.previous;if(n===ln)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Io(e,t,n,r){const o=this.declaredInputs[n],a=sr(e)||function wr(e,t){return e[Lr]=t}(e,{previous:ln,current:null}),l=a.current||(a.current={}),f=a.previous,_=f[o];l[o]=new Ke(_&&_.currentValue,t,f===ln),e[r]=t}Zn.ngInherit=!0;const Lr="__ngSimpleChanges__";function sr(e){return e[Lr]||null}function Ht(e){for(;Array.isArray(e);)e=e[0];return e}function Yr(e,t){return Ht(t[e])}function Xt(e,t){return Ht(t[e.index])}function Bo(e,t){return e.data[t]}function uo(e,t){return e[t]}function Yt(e,t){const n=t[e];return Dn(n)?n:n[0]}function ue(e){return 64==(64&e[2])}function Pe(e,t){return null==t?null:e[t]}function D(e){e[18]=0}function y(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const g={lFrame:Ia(null),bindingsEnabled:!0};function St(){return g.bindingsEnabled}function te(){return g.lFrame.lView}function je(){return g.lFrame.tView}function Sr(e){return g.lFrame.contextLView=e,e[8]}function Mr(e){return g.lFrame.contextLView=null,e}function Ut(){let e=Tn();for(;null!==e&&64===e.type;)e=e.parent;return e}function Tn(){return g.lFrame.currentTNode}function Kr(e,t){const n=g.lFrame;n.currentTNode=e,n.isParent=t}function ai(){return g.lFrame.isParent}function bi(){g.lFrame.isParent=!1}function pn(){const e=g.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ho(){return g.lFrame.bindingIndex++}function Zi(e,t){const n=g.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ms(t)}function Ms(e){g.lFrame.currentDirectiveIndex=e}function Ts(){return g.lFrame.currentQueryIndex}function As(e){g.lFrame.currentQueryIndex=e}function Sa(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function xs(e,t,n){if(n&ge.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&ge.Host||(o=Sa(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=g.lFrame=Ma();return r.currentTNode=t,r.lView=e,!0}function Os(e){const t=Ma(),n=e[1];g.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ma(){const e=g.lFrame,t=null===e?null:e.child;return null===t?Ia(e):t}function Ia(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Ta(){const e=g.lFrame;return g.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Aa=Ta;function Ki(){const e=Ta();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function m(){return g.lFrame.selectedIndex}function E(e){g.lFrame.selectedIndex=e}function v(){const e=g.lFrame;return Bo(e.tView,e.selectedIndex)}function ot(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[_]<0&&(e[18]+=65536),(f>11>16&&(3&e[2])===t){e[2]+=2048;try{a.call(f)}finally{}}}else try{a.call(f)}finally{}}class xn{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ns(e,t,n){let r=0;for(;rt){l=a-1;break}}}for(;a>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Na=!0;function Si(e){const t=Na;return Na=e,t}let vf=0;const Ao={};function Fs(e,t){const n=Uu(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Fa(r.data,e),Fa(t,null),Fa(r.blueprint,null));const o=qi(e,t),a=e.injectorIndex;if(wi(o)){const l=ui(o),f=Ps(o,t),_=f[1].data;for(let C=0;C<8;C++)t[a+C]=f[l+C]|_[l+C]}return t[a+8]=o,a}function Fa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Uu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qi(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=zu(o),null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ur(e,t,n){!function Pa(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(yr)&&(r=n[yr]),null==r&&(r=n[yr]=vf++);const o=255&r;t.data[e+(o>>5)]|=1<=0?255&t:Qi:t}(n);if("function"==typeof a){if(!xs(t,e,r))return r&ge.Host?Mi(o,0,r):Hu(t,n,r,o);try{const l=a(r);if(null!=l||r&ge.Optional)return l;Gt()}finally{Aa()}}else if("number"==typeof a){let l=null,f=Uu(e,t),_=-1,C=r&ge.Host?t[16][6]:null;for((-1===f||r&ge.SkipSelf)&&(_=-1===f?qi(e,t):t[f+8],-1!==_&&Gu(r,!1)?(l=t[1],f=ui(_),t=Ps(_,t)):f=-1);-1!==f;){const I=t[1];if(Ti(a,f,I.data)){const O=Ls(f,t,n,l,r,C);if(O!==Ao)return O}_=t[f+8],-1!==_&&Gu(r,t[1].data[f+8]===C)&&Ti(a,f,t)?(l=I,f=ui(_),t=Ps(_,t)):f=-1}}return o}function Ls(e,t,n,r,o,a){const l=t[1],f=l.data[e+8],I=ks(f,l,n,null==r?Wn(f)&&Na:r!=l&&0!=(3&f.type),o&ge.Host&&a===f);return null!==I?li(t,l,I,f):Ao}function ks(e,t,n,r,o){const a=e.providerIndexes,l=t.data,f=1048575&a,_=e.directiveStart,I=a>>20,F=o?f+I:e.directiveEnd;for(let H=r?f:f+I;H=_&&oe.type===n)return H}if(o){const H=l[_];if(H&&Wt(H)&&H.type===n)return _}return null}function li(e,t,n,r){let o=e[n];const a=t.data;if(function co(e){return e instanceof xn}(o)){const l=o;l.resolving&&function Fe(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Ee(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():_e(e)}(a[n]));const f=Si(l.canSeeViewProviders);l.resolving=!0;const _=l.injectImpl?at(l.injectImpl):null;xs(e,r,ge.Default);try{o=e[n]=l.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ht(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const l=Mo(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==_&&at(_),Si(f),l.resolving=!1,Aa()}}return o}function Ti(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Lt]||ka(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Lt]||ka(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function ka(e){return We(e)?()=>{const t=ka(se(e));return t&&t()}:Jt(e)}function zu(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[6]:null}function Va(e){return function Bu(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{const r=function Xi(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const l=new o(...a);return f.annotation=l,f;function f(_,C,I){const O=_.hasOwnProperty(Ri)?_[Ri]:Object.defineProperty(_,Ri,{value:[]})[Ri];for(;O.length<=I;)O.push(null);return(O[I]=O[I]||[]).push(l),_}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Ft{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Rt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ci(e,t){e.forEach(n=>Array.isArray(n)?ci(n,t):t(n))}function Zu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function di(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Pi(e,t){const n=[];for(let r=0;r=0?e[1|r]=n:(r=~r,function Vs(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function js(e,t){const n=Fi(e,t);if(n>=0)return e[1|n]}function Fi(e,t){return function qu(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),l=e[a<t?o=a:r=a+1}return~(o<((Qr=Qr||{})[Qr.Important=1]="Important",Qr[Qr.DashCase=2]="DashCase",Qr))();const Ws=new Map;let Vi=0;const Ys="__ngContext__";function On(e,t){Dn(t)?(e[Ys]=t[20],function rl(e){Ws.set(e[20],e)}(t)):e[Ys]=t}function ru(e,t){return undefined(e,t)}function as(e){const t=e[3];return fn(t)?t[3]:t}function Ks(e){return Ac(e[13])}function ou(e){return Ac(e[4])}function Ac(e){for(;null!==e&&!fn(e);)e=e[4];return e}function Ui(e,t,n,r,o){if(null!=r){let a,l=!1;fn(r)?a=r:Dn(r)&&(l=!0,r=r[0]);const f=Ht(r);0===e&&null!==n?null==o?uu(t,n,f):Yo(t,n,f,o||null,!0):1===e&&null!==n?Yo(t,n,f,o||null,!0):2===e?function pi(e,t,n){const r=Zt(e,t);r&&function Nc(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,f,l):3===e&&t.destroyNode(f),null!=a&&function Gf(e,t,n,r,o){const a=n[7];a!==Ht(n)&&Ui(t,e,r,a,o);for(let f=10;f0&&(e[n-1][4]=r[4]);const a=di(e,10+t);!function qs(e,t){Hi(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const l=a[19];null!==l&&l.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-65}return r}function au(e,t){if(!(128&t[2])){const n=t[11];n.destroyNode&&Hi(e,t,n,3,null,null),function Bf(e){let t=e[13];if(!t)return Bi(e[1],e);for(;t;){let n=null;if(Dn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Dn(t)&&Bi(t[1],t),t=t[3];null===t&&(t=e),Dn(t)&&Bi(t[1],t),n=t&&t[4]}t=n}}(t)}}function Bi(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function Hf(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),a+=2}else{const l=r[o=n[a+1]];n[a].call(l)}if(null!==r){for(let a=o+1;a-1){const{encapsulation:a}=e.data[r.directiveStart+o];if(a===yt.None||a===yt.Emulated)return null}return Xt(r,n)}}(e,t.parent,n)}function Yo(e,t,n,r,o){e.insertBefore(t,n,r,o)}function uu(e,t,n){e.appendChild(t,n)}function lu(e,t,n,r,o){null!==r?Yo(e,t,n,r,o):uu(e,t,n)}function Zt(e,t){return e.parentNode(t)}function Js(e,t,n){return du(e,t,n)}let ds,fs,du=function us(e,t,n){return 40&e.type?Xt(e,n):null};function cs(e,t,n,r){const o=dl(e,r,t),a=t[11],f=Js(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let _=0;_e,createScript:e=>e,createScriptURL:e=>e})}catch{}return fs}()?.createScriptURL(e)||e}class kc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${nn})`}}function Zo(e){return e instanceof kc?e.changingThisBreaksApplicationSecurity:e}function hs(e,t){const n=function qf(e){return e instanceof kc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${nn})`)}return n===t}const s=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;var Rn=(()=>((Rn=Rn||{})[Rn.NONE=0]="NONE",Rn[Rn.HTML=1]="HTML",Rn[Rn.STYLE=2]="STYLE",Rn[Rn.SCRIPT=3]="SCRIPT",Rn[Rn.URL=4]="URL",Rn[Rn.RESOURCE_URL=5]="RESOURCE_URL",Rn))();function Bc(e){const t=vu();return t?t.sanitize(Rn.URL,e)||"":hs(e,"URL")?Zo(e):function i(e){return(e=String(e)).match(s)?e:"unsafe:"+e}(_e(e))}function Xf(e){const t=vu();if(t)return vl(t.sanitize(Rn.RESOURCE_URL,e)||"");if(hs(e,"ResourceURL"))return vl(Zo(e));throw new Ee(904,!1)}function eh(e,t,n){return function Cy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Xf:Bc}(t,n)(e)}function vu(){const e=te();return e&&e[12]}const Hc=new Ft("ENVIRONMENT_INITIALIZER"),th=new Ft("INJECTOR",-1),nh=new Ft("INJECTOR_DEF_TYPES");class rh{get(t,n=Qn){if(n===Qn){const r=new Error(`NullInjectorError: No provider for ${J(t)}!`);throw r.name="NullInjectorError",r}return n}}function by(e){return{\u0275providers:e}}function Ey(...e){return{\u0275providers:oh(0,e),\u0275fromNgModule:!0}}function oh(e,...t){const n=[],r=new Set;let o;return ci(t,a=>{const l=a;$c(l,n,[],r)&&(o||(o=[]),o.push(l))}),void 0!==o&&ih(o,n),n}function ih(e,t){for(let n=0;n{t.push(a)})}}function $c(e,t,n,r){if(!(e=se(e)))return!1;let o=null,a=Ur(e);const l=!a&&Xe(e);if(a||l){if(l&&!l.standalone)return!1;o=e}else{const _=e.ngModule;if(a=Ur(_),!a)return!1;o=_}const f=r.has(o);if(l){if(f)return!1;if(r.add(o),l.dependencies){const _="function"==typeof l.dependencies?l.dependencies():l.dependencies;for(const C of _)$c(C,t,n,r)}}else{if(!a)return!1;{if(null!=a.imports&&!f){let C;r.add(o);try{ci(a.imports,I=>{$c(I,t,n,r)&&(C||(C=[]),C.push(I))})}finally{}void 0!==C&&ih(C,t)}if(!f){const C=Jt(o)||(()=>new o);t.push({provide:o,useFactory:C,deps:Be},{provide:nh,useValue:o,multi:!0},{provide:Hc,useValue:()=>_t(o),multi:!0})}const _=a.providers;null==_||f||Gc(_,I=>{t.push(I)})}}return o!==e&&void 0!==e.providers}function Gc(e,t){for(let n of e)Ze(n)&&(n=n.\u0275providers),Array.isArray(n)?Gc(n,t):t(n)}const wy=q({provide:String,useValue:q});function zc(e){return null!==e&&"object"==typeof e&&wy in e}function ps(e){return"function"==typeof e}const Wc=new Ft("Set Injector scope."),bl={},My={};let Yc;function El(){return void 0===Yc&&(Yc=new rh),Yc}class gs{}class uh extends gs{constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Kc(t,l=>this.processProvider(l)),this.records.set(th,ra(void 0,this)),o.has("environment")&&this.records.set(gs,ra(void 0,this));const a=this.records.get(Wc);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(nh.multi,Be,ge.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const n=Hn(this),r=at(void 0);try{return t()}finally{Hn(n),at(r)}}get(t,n=Qn,r=ge.Default){this.assertNotDestroyed(),r=$n(r);const o=Hn(this),a=at(void 0);try{if(!(r&ge.SkipSelf)){let f=this.records.get(t);if(void 0===f){const _=function Oy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ft}(t)&&ct(t);f=_&&this.injectableDefInScope(_)?ra(Zc(t),bl):null,this.records.set(t,f)}if(null!=f)return this.hydrate(t,f)}return(r&ge.Self?El():this.parent).get(t,n=r&ge.Optional&&n===Qn?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[Rr]=l[Rr]||[]).unshift(J(t)),o)throw l;return function _o(e,t,n,r){const o=e[Rr];throw t[gt]&&o.unshift(t[gt]),e.message=function qt(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=J(t);if(Array.isArray(t))o=t.map(J).join(" -> ");else if("object"==typeof t){let a=[];for(let l in t)if(t.hasOwnProperty(l)){let f=t[l];a.push(l+":"+("string"==typeof f?JSON.stringify(f):J(f)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(pr,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Rr]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{at(a),Hn(o)}}resolveInjectorInitializers(){const t=Hn(this),n=at(void 0);try{const r=this.get(Hc.multi,Be,ge.Self);for(const o of r)o()}finally{Hn(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(J(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ee(205,!1)}processProvider(t){let n=ps(t=se(t))?t:se(t&&t.provide);const r=function Ty(e){return zc(e)?ra(void 0,e.useValue):ra(lh(e),bl)}(t);if(ps(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=ra(void 0,bl,!0),o.factory=()=>Br(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===bl&&(n.value=My,n.value=n.factory()),"object"==typeof n.value&&n.value&&function xy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=se(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}}function Zc(e){const t=ct(e),n=null!==t?t.factory:Jt(e);if(null!==n)return n;if(e instanceof Ft)throw new Ee(204,!1);if(e instanceof Function)return function Iy(e){const t=e.length;if(t>0)throw Pi(t,"?"),new Ee(204,!1);const n=function ei(e){const t=e&&(e[Kt]||e[Tt]);if(t){const n=function jr(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Ee(204,!1)}function lh(e,t,n){let r;if(ps(e)){const o=se(e);return Jt(o)||Zc(o)}if(zc(e))r=()=>se(e.useValue);else if(function ah(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Br(e.deps||[]));else if(function sh(e){return!(!e||!e.useExisting)}(e))r=()=>_t(se(e.useExisting));else{const o=se(e&&(e.useClass||e.provide));if(!function Ay(e){return!!e.deps}(e))return Jt(o)||Zc(o);r=()=>new o(...Br(e.deps))}return r}function ra(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Kc(e,t){for(const n of e)Array.isArray(n)?Kc(n,t):n&&Ze(n)?Kc(n.\u0275providers,t):t(n)}class Ry{}class ch{}class Py{resolveComponentFactory(t){throw function Ny(e){const t=Error(`No component factory found for ${J(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let _u=(()=>{class e{}return e.NULL=new Py,e})();function Fy(){return oa(Ut(),te())}function oa(e,t){return new Du(Xt(e,t))}let Du=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=Fy,e})();function Ly(e){return e instanceof Du?e.nativeElement:e}class fh{}let ky=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Vy(){const e=te(),n=Yt(Ut().index,e);return(Dn(n)?n:e)[11]}(),e})(),jy=(()=>{class e{}return e.\u0275prov=Rt({token:e,providedIn:"root",factory:()=>null}),e})();class hh{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Uy=new hh("15.0.4"),qc={};function Jc(e){return e.ngOriginalError}class Cu{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Jc(t);for(;n&&Jc(n);)n=Jc(n);return n||null}}function yi(e){return e instanceof Function?e():e}function gh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===r||e.charCodeAt(o+a)<=32)return o}n=o+1}}const mh="ng-template";function Qy(e,t,n){let r=0;for(;ra?"":o[O+1].toLowerCase();const H=8&r?F:null;if(H&&-1!==gh(H,C,0)||2&r&&C!==F){if(Ro(r))return!1;l=!0}}}}else{if(!l&&!Ro(r)&&!Ro(_))return!1;if(l&&Ro(_))continue;l=!1,r=_|1&r}}return Ro(r)||l}function Ro(e){return 0==(1&e)}function ev(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&r?o+="."+l:4&r&&(o+=" "+l);else""!==o&&!Ro(l)&&(t+=_h(a,o),o=""),r=l,a=a||!Ro(r);n++}return""!==o&&(t+=_h(a,o)),t}const Je={};function Dh(e){Ch(je(),te(),m()+e,!1)}function Ch(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&ut(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ye(t,a,0,n)}E(n)}function Sh(e,t=null,n=null,r){const o=Mh(e,t,n,r);return o.resolveInjectorInitializers(),o}function Mh(e,t=null,n=null,r,o=new Set){const a=[n||Be,Ey(e)];return r=r||("object"==typeof e?void 0:J(e)),new uh(a,t||El(),r||null,o)}let ms=(()=>{class e{static create(n,r){if(Array.isArray(n))return Sh({name:""},r,n,"");{const o=n.name??"";return Sh({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Qn,e.NULL=new rh,e.\u0275prov=Rt({token:e,providedIn:"any",factory:()=>_t(th)}),e.__NG_ELEMENT_ID__=-1,e})();function aa(e,t=ge.Default){const n=te();return null===n?_t(e,t):$u(Ut(),n,se(e),t)}function Nh(){throw new Error("invalid")}function Ph(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r22&&Ch(e,t,22,!1),n(r,o)}finally{E(a)}}function id(e,t,n){if(Gr(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(l)!=f&&l.push(f),l.push(n,r,a)}}(e,t,r,bu(e,n,o.hostVars,Je),o)}function Ko(e,t,n,r,o,a){const l=Xt(e,t);!function dd(e,t,n,r,o,a,l){if(null==a)e.removeAttribute(t,o,n);else{const f=null==l?_e(a):l(a,r||"",o);e.setAttribute(t,o,f,n)}}(t[11],l,a,e.value,n,r,o)}function zv(e,t,n,r,o,a){const l=a[t];if(null!==l){const f=r.setInput;for(let _=0;_0&&fd(n)}}function fd(e){for(let r=Ks(e);null!==r;r=ou(r))for(let o=10;o0&&fd(a)}const n=e[1].components;if(null!==n)for(let r=0;r0&&fd(o)}}function qv(e,t){const n=Yt(t,e),r=n[1];(function Qv(e,t){for(let n=t.length;n-1&&(su(t,r),di(n,r))}this._attachedToViewContainer=!1}au(this._lView[1],this._lView)}onDestroy(t){kh(this._lView[1],this._lView,null,t)}markForCheck(){hd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Tl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Oo(e,t){Hi(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ee(902,!1);this._appRef=t}}class Jv extends Eu{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Tl(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class Zh extends _u{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Xe(t);return new wu(n,this.ngModule)}}function Kh(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class e_{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=$n(r);const o=this.injector.get(t,qc,r);return o!==qc||n===qc?o:this.parentInjector.get(t,n,r)}}class wu extends ch{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function sv(e){return e.map(iv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Kh(this.componentDef.inputs)}get outputs(){return Kh(this.componentDef.outputs)}create(t,n,r,o){let a=(o=o||this.ngModule)instanceof gs?o:o?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const l=a?new e_(t,a):t,f=l.get(fh,null);if(null===f)throw new Ee(407,!1);const _=l.get(jy,null),C=f.createRenderer(null,this.componentDef),I=this.componentDef.selectors[0][0]||"div",O=r?function xv(e,t,n){return e.selectRootElement(t,n===yt.ShadowDom)}(C,r,this.componentDef.encapsulation):hi(C,I,function Xv(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(I)),F=this.componentDef.onPush?288:272,H=ud(0,null,null,1,0,null,null,null,null,null),oe=Sl(null,H,null,F,null,null,f,C,_,l,null);let me,be;Os(oe);try{const xe=this.componentDef;let $e,de=null;xe.findHostDirectiveDefs?($e=[],de=new Map,xe.findHostDirectiveDefs(xe,$e,de),$e.push(xe)):$e=[xe];const qe=function n_(e,t){const n=e[1];return e[22]=t,ua(n,22,2,"#host",null)}(oe,O),tn=function r_(e,t,n,r,o,a,l,f){const _=o[1];!function o_(e,t,n,r){for(const o of e)t.mergedAttrs=Ei(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Al(t,t.mergedAttrs,!0),null!==n&&pl(r,n,t))}(r,e,t,l);const C=a.createRenderer(t,n),I=Sl(o,Lh(n),null,n.onPush?32:16,o[e.index],e,a,C,f||null,null,null);return _.firstCreatePass&&cd(_,e,r.length-1),Il(o,I),o[e.index]=I}(qe,O,xe,$e,oe,f,C);be=Bo(H,22),O&&function s_(e,t,n,r){if(r)Ns(e,n,["ng-version",Uy.full]);else{const{attrs:o,classes:a}=function av(e){const t=[],n=[];let r=1,o=2;for(;r0&&Fc(e,n,a.join(" "))}}(C,xe,O,r),void 0!==n&&function a_(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ei(o.hostAttrs,n=Ei(n,o.hostAttrs))}}(r)}function yd(e){return e===ln?{}:e===Be?[]:e}function c_(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function d_(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function f_(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}let Ol=null;function ys(){if(!Ol){const e=Et.Symbol;if(e&&e.iterator)Ol=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nl(Ht(qe[r.index])):r.index;let de=null;if(!l&&f&&(de=function M_(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a_?f[_]:null}"string"==typeof l&&(a+=2)}return null}(e,t,o,r.index)),null!==de)(de.__ngLastListenerFn__||de).__ngNextListenerFn__=a,de.__ngLastListenerFn__=a,F=!1;else{a=yp(r,t,I,a,!1);const qe=n.listen(be,o,a);O.push(a,qe),C&&C.push(o,$e,xe,xe+1)}}else a=yp(r,t,I,a,!1);const H=r.outputs;let oe;if(F&&null!==H&&(oe=H[o])){const me=oe.length;if(me)for(let be=0;be-1?Yt(e.index,t):t);let _=mp(t,0,r,l),C=a.__ngNextListenerFn__;for(;C;)_=mp(t,0,C,l)&&_,C=C.__ngNextListenerFn__;return o&&!1===_&&(l.preventDefault(),l.returnValue=!1),_}}function vp(e=1){return function ku(e){return(g.lFrame.contextLView=function ec(e,t){for(;e>0;)t=t[15],e--;return t}(e,g.lFrame.contextLView))[8]}(e)}function I_(e,t){let n=null;const r=function tv(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o>17&32767}function Id(e){return 2|e}function _s(e){return(131068&e)>>2}function Td(e,t){return-131069&e|t<<2}function Ad(e){return 1|e}function xp(e,t,n,r,o){const a=e[n+1],l=null===t;let f=r?zi(a):_s(a),_=!1;for(;0!==f&&(!1===_||l);){const I=e[f+1];N_(e[f],t)&&(_=!0,e[f+1]=r?Ad(I):Id(I)),f=r?zi(I):_s(I)}_&&(e[n+1]=r?Id(a):Ad(a))}function N_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fi(e,t)>=0}function xd(e,t){return function No(e,t,n,r){const o=te(),a=je(),l=function An(e){const t=g.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);a.firstUpdatePass&&function jp(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[m()],l=function Vp(e,t){return t>=e.expandoStartIndex}(e,n);(function $p(e,t){return 0!=(e.flags&(t?8:16))})(a,r)&&null===t&&!l&&(t=!1),t=function H_(e,t,n,r){const o=function Is(e){const t=g.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Iu(n=Od(null,e,t,n,r),t.attrs,r),a=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==o)if(n=Od(o,e,t,n,r),null===a){let _=function $_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==_s(r))return e[zi(r)]}(e,t,r);void 0!==_&&Array.isArray(_)&&(_=Od(null,e,t,_[1],r),_=Iu(_,t.attrs,r),function G_(e,t,n,r){e[zi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,_))}else a=function z_(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(C=!0)}else I=n;if(o)if(0!==_){const F=zi(e[f+1]);e[r+1]=kl(F,f),0!==F&&(e[F+1]=Td(e[F+1],r)),e[f+1]=function A_(e,t){return 131071&e|t<<17}(e[f+1],r)}else e[r+1]=kl(f,0),0!==f&&(e[f+1]=Td(e[f+1],r)),f=r;else e[r+1]=kl(_,0),0===f?f=r:e[_+1]=Td(e[_+1],r),_=r;C&&(e[r+1]=Id(e[r+1])),xp(e,I,r,!0),xp(e,I,r,!1),function R_(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Fi(a,t)>=0&&(n[r+1]=Ad(n[r+1]))}(t,I,e,r,a),l=kl(f,_),a?t.classBindings=l:t.styleBindings=l}(o,a,t,n,l,r)}}(a,e,l,r),t!==Je&&dr(o,l,t)&&function Bp(e,t,n,r,o,a,l,f){if(!(3&t.type))return;const _=e.data,C=_[f+1],I=function x_(e){return 1==(1&e)}(C)?Hp(_,t,n,o,_s(C),l):void 0;Vl(I)||(Vl(a)||function T_(e){return 2==(2&e)}(C)&&(a=Hp(_,null,n,o,f,l)),function zf(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let a=-1===r.indexOf("-")?void 0:Qr.DashCase;null==o?e.removeStyle(n,r,a):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),a|=Qr.Important),e.setStyle(n,r,o,a))}}(r,l,Yr(m(),n),o,a))}(a,a.data[m()],o,o[11],e,o[l+1]=function Z_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=J(Zo(e)))),e}(t,n),r,l)}(e,t,null,!0),xd}function Od(e,t,n,r,o){let a=null;const l=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const _=e[o],C=Array.isArray(_),I=C?_[1]:_,O=null===I;let F=n[o+1];F===Je&&(F=O?Be:void 0);let H=O?js(F,r):I===r?F:void 0;if(C&&!Vl(H)&&(H=js(_,r)),Vl(H)&&(f=H,l))return f;const oe=e[o+1];o=l?zi(oe):_s(oe)}if(null!==t){let _=a?t.residualClasses:t.residualStyles;null!=_&&(f=js(_,r))}return f}function Vl(e){return void 0!==e}function Gp(e,t=""){const n=te(),r=je(),o=e+22,a=r.firstCreatePass?ua(r,o,1,t,null):r.data[o],l=n[o]=function zo(e,t){return e.createText(t)}(n[11],t);cs(r,n,l,a),Kr(a,!1)}function Rd(e){return jl("",e,""),Rd}function jl(e,t,n){const r=te(),o=function ca(e,t,n,r){return dr(e,Ho(),n)?t+_e(n)+r:Je}(r,e,t,n);return o!==Je&&function vi(e,t,n){const r=Yr(t,e);!function ll(e,t,n){e.setValue(t,n)}(e[11],r,n)}(r,m(),o),jl}function Nd(e,t,n){const r=te();return dr(r,Ho(),t)&&Jr(je(),v(),r,e,t,r[11],n,!0),Nd}const Ds=void 0;var pD=["en",[["a","p"],["AM","PM"],Ds],[["AM","PM"],Ds,Ds],[["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"]],Ds,[["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"]],Ds,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ds,"{1} 'at' {0}",Ds],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function hD(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let _a={};function Pd(e){const t=function gD(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=cg(t);if(n)return n;const r=t.split("-")[0];if(n=cg(r),n)return n;if("en"===r)return pD;throw new Ee(701,!1)}function lg(e){return Pd(e)[Ue.PluralCase]}function cg(e){return e in _a||(_a[e]=Et.ng&&Et.ng.common&&Et.ng.common.locales&&Et.ng.common.locales[e]),_a[e]}var Ue=(()=>((Ue=Ue||{})[Ue.LocaleId=0]="LocaleId",Ue[Ue.DayPeriodsFormat=1]="DayPeriodsFormat",Ue[Ue.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ue[Ue.DaysFormat=3]="DaysFormat",Ue[Ue.DaysStandalone=4]="DaysStandalone",Ue[Ue.MonthsFormat=5]="MonthsFormat",Ue[Ue.MonthsStandalone=6]="MonthsStandalone",Ue[Ue.Eras=7]="Eras",Ue[Ue.FirstDayOfWeek=8]="FirstDayOfWeek",Ue[Ue.WeekendRange=9]="WeekendRange",Ue[Ue.DateFormat=10]="DateFormat",Ue[Ue.TimeFormat=11]="TimeFormat",Ue[Ue.DateTimeFormat=12]="DateTimeFormat",Ue[Ue.NumberSymbols=13]="NumberSymbols",Ue[Ue.NumberFormats=14]="NumberFormats",Ue[Ue.CurrencyCode=15]="CurrencyCode",Ue[Ue.CurrencySymbol=16]="CurrencySymbol",Ue[Ue.CurrencyName=17]="CurrencyName",Ue[Ue.Currencies=18]="Currencies",Ue[Ue.Directionality=19]="Directionality",Ue[Ue.PluralCase=20]="PluralCase",Ue[Ue.ExtraData=21]="ExtraData",Ue))();const Da="en-US";let dg=Da;function kd(e,t,n,r,o){if(e=se(e),Array.isArray(e))for(let a=0;a>20;if(ps(e)||!e.multi){const H=new xn(_,o,aa),oe=jd(f,t,o?I:I+F,O);-1===oe?(ur(Fs(C,l),a,f),Vd(a,e,t.length),t.push(f),C.directiveStart++,C.directiveEnd++,o&&(C.providerIndexes+=1048576),n.push(H),l.push(H)):(n[oe]=H,l[oe]=H)}else{const H=jd(f,t,I+F,O),oe=jd(f,t,I,I+F),me=H>=0&&n[H],be=oe>=0&&n[oe];if(o&&!be||!o&&!me){ur(Fs(C,l),a,f);const xe=function fC(e,t,n,r,o){const a=new xn(e,n,aa);return a.multi=[],a.index=t,a.componentProviders=0,Lg(a,o,r&&!n),a}(o?dC:cC,n.length,o,r,_);!o&&be&&(n[oe].providerFactory=xe),Vd(a,e,t.length,0),t.push(f),C.directiveStart++,C.directiveEnd++,o&&(C.providerIndexes+=1048576),n.push(xe),l.push(xe)}else Vd(a,e,H>-1?H:oe,Lg(n[o?oe:H],_,!o&&r));!o&&r&&be&&n[oe].componentProviders++}}}function Vd(e,t,n,r){const o=ps(t),a=function Sy(e){return!!e.useClass}(t);if(o||a){const _=(a?se(t.useClass):t).prototype.ngOnDestroy;if(_){const C=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const I=C.indexOf(n);-1===I?C.push(n,[r,_]):C[I+1].push(r,_)}else C.push(n,_)}}}function Lg(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function jd(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function lC(e,t,n){const r=je();if(r.firstCreatePass){const o=Wt(e);kd(n,r.data,r.blueprint,o,!0),kd(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Ca{}class Vg{}function hC(e,t){return new jg(e,t??null)}class jg extends Ca{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zh(this);const r=dn(t);this._bootstrapComponents=yi(r.bootstrap),this._r3Injector=Mh(t,n,[{provide:Ca,useValue:this},{provide:_u,useValue:this.componentFactoryResolver}],J(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Bd extends Vg{constructor(t){super(),this.moduleType=t}create(t){return new jg(this.moduleType,t)}}class pC extends Ca{constructor(t,n,r){super(),this.componentFactoryResolver=new Zh(this),this.instance=null;const o=new uh([...t,{provide:Ca,useValue:this},{provide:_u,useValue:this.componentFactoryResolver}],n||El(),r,new Set(["environment"]));this.injector=o,o.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Hd(e,t,n=null){return new pC(e,t,n).injector}let gC=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=oh(0,n.type),o=r.length>0?Hd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=Rt({token:e,providedIn:"environment",factory:()=>new e(_t(gs))}),e})();function Ug(e){e.getStandaloneInjector=t=>t.get(gC).getOrCreateStandaloneInjector(e)}function Yg(e,t,n,r){return Kg(te(),pn(),e,t,n,r)}function Zg(e,t,n,r,o){return qg(te(),pn(),e,t,n,r,o)}function Nu(e,t){const n=e[t];return n===Je?void 0:n}function Kg(e,t,n,r,o,a){const l=t+n;return dr(e,l,o)?qo(e,l+1,a?r.call(a,o):r(o)):Nu(e,l+1)}function qg(e,t,n,r,o,a,l){const f=t+n;return function vs(e,t,n,r){const o=dr(e,t,n);return dr(e,t+1,r)||o}(e,f,o,a)?qo(e,f+2,l?r.call(l,o,a):r(o,a)):Nu(e,f+2)}function em(e,t){const n=je();let r;const o=e+22;n.firstCreatePass?(r=function RC(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const a=r.factory||(r.factory=Jt(r.type)),l=at(aa);try{const f=Si(!1),_=a();return Si(f),function E_(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,te(),o,_),_}finally{at(l)}}function tm(e,t,n){const r=e+22,o=te(),a=uo(o,r);return Pu(o,r)?Kg(o,pn(),t,a.transform,n,a):a.transform(n)}function nm(e,t,n,r){const o=e+22,a=te(),l=uo(a,o);return Pu(a,o)?qg(a,pn(),t,l.transform,n,r,l):l.transform(n,r)}function Pu(e,t){return e[1].data[t].pure}function Gd(e){return t=>{setTimeout(e,void 0,t)}}const Xo=class LC extends h.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,a=n||(()=>null),l=r;if(t&&"object"==typeof t){const _=t;o=_.next?.bind(_),a=_.error?.bind(_),l=_.complete?.bind(_)}this.__isAsync&&(a=Gd(a),o&&(o=Gd(o)),l&&(l=Gd(l)));const f=super.subscribe({next:o,error:a,complete:l});return t instanceof p.w&&t.add(f),f}};function kC(){return this._results[ys()]()}class zd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ys(),r=zd.prototype;r[n]||(r[n]=kC)}get changes(){return this._changes||(this._changes=new Xo)}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){const r=this;r.dirty=!1;const o=function kr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function ac(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=UC,e})();const VC=Fu,jC=class extends VC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t,n){const r=this._declarationTContainer.tViews,o=Sl(this._declarationLView,r,t,16,null,r.declTNode,null,null,null,null,n||null);o[17]=this._declarationLView[this._declarationTContainer.index];const l=this._declarationLView[19];return null!==l&&(o[19]=l.createEmbeddedView(r)),od(r,o,t),new Eu(o)}};function UC(){return Gl(Ut(),te())}function Gl(e,t){return 4&e.type?new jC(t,e,oa(e,t)):null}let zl=(()=>{class e{}return e.__NG_ELEMENT_ID__=BC,e})();function BC(){return im(Ut(),te())}const HC=zl,rm=class extends HC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Ai(this._hostTNode,this._hostLView)}get parentInjector(){const t=qi(this._hostTNode,this._hostLView);if(wi(t)){const n=Ps(t,this._hostLView),r=ui(t);return new Ai(n[1].data[r+8],n)}return new Ai(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=om(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){let o,a;"number"==typeof r?o=r:null!=r&&(o=r.index,a=r.injector);const l=t.createEmbeddedView(n||{},a);return this.insert(l,o),l}createComponent(t,n,r,o,a){const l=t&&!function Go(e){return"function"==typeof e}(t);let f;if(l)f=n;else{const O=n||{};f=O.index,r=O.injector,o=O.projectableNodes,a=O.environmentInjector||O.ngModuleRef}const _=l?t:new wu(Xe(t)),C=r||this.parentInjector;if(!a&&null==_.ngModule){const F=(l?C:this.parentInjector).get(gs,null);F&&(a=F)}const I=_.create(C,o,void 0,a);return this.insert(I.hostView,f),I}insert(t,n){const r=t._lView,o=r[1];if(function De(e){return fn(e[3])}(r)){const I=this.indexOf(t);if(-1!==I)this.detach(I);else{const O=r[3],F=new rm(O,O[6],O[3]);F.detach(F.indexOf(t))}}const a=this._adjustIndex(n),l=this._lContainer;!function Oc(e,t,n,r){const o=10+r,a=n.length;r>0&&(n[o-1][4]=t),r0)r.push(l[f/2]);else{const C=a[f+1],I=t[-_];for(let O=10;O{class e{constructor(n){this.appInits=n,this.resolve=Yl,this.reject=Yl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{a.subscribe({complete:f,error:_})});n.push(l)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(_t(Nm,8))},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Pm=new Ft("AppId",{providedIn:"root",factory:function Fm(){return`${nf()}${nf()}${nf()}`}});function nf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Lm=new Ft("Platform Initializer"),gb=new Ft("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),km=new Ft("appBootstrapListener");let mb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Kl=new Ft("LocaleId",{providedIn:"root",factory:()=>mr(Kl,ge.Optional|ge.SkipSelf)||function yb(){return typeof $localize<"u"&&$localize.locale||Da}()}),vb=new Ft("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class _b{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Db=(()=>{class e{compileModuleSync(n){return new Bd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=yi(dn(n).declarations).reduce((l,f)=>{const _=Xe(f);return _&&l.push(new wu(_)),l},[]);return new _b(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Eb=(()=>Promise.resolve(0))();function rf(e){typeof Zone>"u"?Eb.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class po{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xo(!1),this.onMicrotaskEmpty=new Xo(!1),this.onStable=new Xo(!1),this.onError=new Xo(!1),typeof Zone>"u")throw new Ee(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function wb(){let e=Et.requestAnimationFrame,t=Et.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Ib(e){const t=()=>{!function Mb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Et,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,af(e),e.isCheckStableRunning=!0,sf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),af(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,l,f)=>{try{return Um(e),n.invokeTask(o,a,l,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Bm(e)}},onInvoke:(n,r,o,a,l,f,_)=>{try{return Um(e),n.invoke(o,a,l,f,_)}finally{e.shouldCoalesceRunChangeDetection&&t(),Bm(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,af(e),sf(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!po.isInAngularZone())throw new Ee(909,!1)}static assertNotInAngularZone(){if(po.isInAngularZone())throw new Ee(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,l=a.scheduleEventTask("NgZoneEvent: "+o,t,Sb,Yl,Yl);try{return a.runTask(l,n,r)}finally{a.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Sb={};function sf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function af(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Um(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Bm(e){e._nesting--,sf(e)}class Tb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xo,this.onMicrotaskEmpty=new Xo,this.onStable=new Xo,this.onError=new Xo}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)}}const Hm=new Ft(""),$m=new Ft("");let uf,Ab=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,uf||(function xb(e){uf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{po.assertNotInAngularZone(),rf(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())rf(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(_t(po),_t(Gm),_t($m))},e.\u0275prov=Rt({token:e,factory:e.\u0275fac}),e})(),Gm=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return uf?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Wi=null;const zm=new Ft("AllowMultipleToken"),lf=new Ft("PlatformDestroyListeners");class Nb{constructor(t,n){this.name=t,this.token=n}}function Ym(e,t,n=[]){const r=`Platform: ${t}`,o=new Ft(r);return(a=[])=>{let l=cf();if(!l||l.injector.get(zm,!1)){const f=[...n,...a,{provide:o,useValue:!0}];e?e(f):function Pb(e){if(Wi&&!Wi.get(zm,!1))throw new Ee(400,!1);Wi=e;const t=e.get(Km);(function Wm(e){const t=e.get(Lm,null);t&&t.forEach(n=>n())})(e)}(function Zm(e=[],t){return ms.create({name:t,providers:[{provide:Wc,useValue:"platform"},{provide:lf,useValue:new Set([()=>Wi=null])},...e]})}(f,r))}return function Lb(e){const t=cf();if(!t)throw new Ee(401,!1);return t}()}}function cf(){return Wi?.get(Km)??null}let Km=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function Qm(e,t){let n;return n="noop"===e?new Tb:("zone.js"===e?void 0:e)||new po(t),n}(r?.ngZone,function qm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}(r)),a=[{provide:po,useValue:o}];return o.run(()=>{const l=ms.create({providers:a,parent:this.injector,name:n.moduleType.name}),f=n.create(l),_=f.injector.get(Cu,null);if(!_)throw new Ee(402,!1);return o.runOutsideAngular(()=>{const C=o.onError.subscribe({next:I=>{_.handleError(I)}});f.onDestroy(()=>{Ql(this._modules,f),C.unsubscribe()})}),function Jm(e,t,n){try{const r=n();return wd(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(_,o,()=>{const C=f.injector.get(Zl);return C.runInitializers(),C.donePromise.then(()=>(function fg(e){pt(e,"Expected localeId to be defined"),"string"==typeof e&&(dg=e.toLowerCase().replace(/_/g,"-"))}(f.injector.get(Kl,Da)||Da),this._moduleDoBootstrap(f),f))})})}bootstrapModule(n,r=[]){const o=Xm({},r);return function Ob(e,t,n){const r=new Bd(n);return Promise.resolve(r)}(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(ql);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Ee(403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ee(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(lf,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(_t(ms))},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Xm(e,t){return Array.isArray(t)?t.reduce(Xm,e):{...e,...t}}let ql=(()=>{class e{constructor(n,r,o){this._zone=n,this._injector=r,this._exceptionHandler=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new X.y(f=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{f.next(this._stable),f.complete()})}),l=new X.y(f=>{let _;this._zone.runOutsideAngular(()=>{_=this._zone.onStable.subscribe(()=>{po.assertNotInAngularZone(),rf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,f.next(!0))})})});const C=this._zone.onUnstable.subscribe(()=>{po.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{f.next(!1)}))});return()=>{_.unsubscribe(),C.unsubscribe()}});this.isStable=function fe(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(0,ee.K)(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof X.y?e[0]:(0,ae.J)(t)((0,Q.n)(e,n))}(a,l.pipe(function le(){return e=>(0,k.x)()(function Y(e,t){return function(r){let o;if(o="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new L(o,t));const a=Object.create(r,re.N);return a.source=r,a.subjectFactory=o,a}}(z)(e))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ch;if(!this._injector.get(Zl).done)throw!o&&nr(n),new Ee(405,false);let l;l=o?n:this._injector.get(_u).resolveComponentFactory(n),this.componentTypes.push(l.componentType);const f=function Rb(e){return e.isBoundToModule}(l)?void 0:this._injector.get(Ca),C=l.create(ms.NULL,[],r||l.selector,f),I=C.location.nativeElement,O=C.injector.get(Hm,null);return O?.registerApplication(I),C.onDestroy(()=>{this.detachView(C.hostView),Ql(this.components,C),O?.unregisterApplication(I)}),this._loadComponent(C),C}tick(){if(this._runningTick)throw new Ee(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Ql(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(km,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ql(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Ee(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)(_t(po),_t(gs),_t(Cu))},e.\u0275prov=Rt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ql(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Vb(){}let jb=(()=>{class e{}return e.__NG_ELEMENT_ID__=Ub,e})();function Ub(e){return function Bb(e,t,n){if(Wn(e)&&!n){const r=Yt(e.index,t);return new Eu(r,r)}return 47&e.type?new Eu(t[16],t):null}(Ut(),te(),16==(16&e))}class oy{constructor(){}supports(t){return Su(t)}create(t){return new Yb(t)}}const Wb=(e,t)=>t;class Yb{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Wb}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const l=!r||n&&n.currentIndex{l=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,f,l,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,l,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new Zb(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new iy),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new iy),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Zb{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Kb{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class iy{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new Kb,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sy(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,l=o._next;return a&&(a._next=l),l&&(l._prev=a),o._next=null,o._prev=null,o}const r=new Qb(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Qb{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function uy(){return new gf([new oy])}let gf=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||uy()),deps:[[e,new rs,new ns]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Ee(901,!1)}}return e.\u0275prov=Rt({token:e,providedIn:"root",factory:uy}),e})();function ly(){return new mf([new ay])}let mf=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ly()),deps:[[e,new rs,new ns]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Ee(901,!1)}}return e.\u0275prov=Rt({token:e,providedIn:"root",factory:ly}),e})();const eE=Ym(null,"core",[]);let tE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(_t(ql))},e.\u0275mod=wn({type:e}),e.\u0275inj=Nt({}),e})();function nE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}},4719:(Oe,ie,A)=>{A.d(ie,{Fj:()=>Me,oH:()=>eo,u:()=>no,sg:()=>fn,u5:()=>Yr,JJ:()=>jr,JL:()=>Ur,UX:()=>Xt,vC:()=>Bo,QS:()=>De,p4:()=>Ae,nJ:()=>_o,kI:()=>Ee,_Y:()=>rr});var h=A(6738),p=A(6895),X=A(5254),ee=A(6498),ae=A(6688),Q=A(4850),fe=A(7830);function Y(D,y){return new ee.y(g=>{const S=D.length;if(0===S)return void g.complete();const j=new Array(S);let pe=0,st=0;for(let Ct=0;Ct{hn||(hn=!0,st++),j[Ct]=Pt},error:Pt=>g.error(Pt),complete:()=>{pe++,(pe===S||!hn)&&(st===S&&g.next(y?y.reduce((Pt,te,je)=>(Pt[te]=j[je],Pt),{}):j),g.complete())}}))}})}let L=(()=>{class D{constructor(g,S){this._renderer=g,this._elementRef=S,this.onChange=j=>{},this.onTouched=()=>{}}setProperty(g,S){this._renderer.setProperty(this._elementRef.nativeElement,g,S)}registerOnTouched(g){this.onTouched=g}registerOnChange(g){this.onChange=g}setDisabledState(g){this.setProperty("disabled",g)}}return D.\u0275fac=function(g){return new(g||D)(h.Y36(h.Qsj),h.Y36(h.SBq))},D.\u0275dir=h.lG2({type:D}),D})(),k=(()=>{class D extends L{}return D.\u0275fac=function(){let y;return function(S){return(y||(y=h.n5z(D)))(S||D)}}(),D.\u0275dir=h.lG2({type:D,features:[h.qOj]}),D})();const z=new h.OlP("NgValueAccessor"),ce={provide:z,useExisting:(0,h.Gpc)(()=>Me),multi:!0},he=new h.OlP("CompositionEventMode");let Me=(()=>{class D extends L{constructor(g,S,j){super(g,S),this._compositionMode=j,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function J(){const D=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(g){this.setProperty("value",g??"")}_handleInput(g){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(g)}_compositionStart(){this._composing=!0}_compositionEnd(g){this._composing=!1,this._compositionMode&&this.onChange(g)}}return D.\u0275fac=function(g){return new(g||D)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(he,8))},D.\u0275dir=h.lG2({type:D,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(g,S){1&g&&h.NdJ("input",function(pe){return S._handleInput(pe.target.value)})("blur",function(){return S.onTouched()})("compositionstart",function(){return S._compositionStart()})("compositionend",function(pe){return S._compositionEnd(pe.target.value)})},features:[h._Bn([ce]),h.qOj]}),D})();function se(D){return null==D||("string"==typeof D||Array.isArray(D))&&0===D.length}function We(D){return null!=D&&"number"==typeof D.length}const Ze=new h.OlP("NgValidators"),ke=new h.OlP("NgAsyncValidators"),nn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ee{static min(y){return function mt(D){return y=>{if(se(y.value)||se(D))return null;const g=parseFloat(y.value);return!isNaN(g)&&g{if(se(y.value)||se(D))return null;const g=parseFloat(y.value);return!isNaN(g)&&g>D?{max:{max:D,actual:y.value}}:null}}(y)}static required(y){return function Ie(D){return se(D.value)?{required:!0}:null}(y)}static requiredTrue(y){return function Fe(D){return!0===D.value?null:{required:!0}}(y)}static email(y){return function it(D){return se(D.value)||nn.test(D.value)?null:{email:!0}}(y)}static minLength(y){return function Ce(D){return y=>se(y.value)||!We(y.value)?null:y.value.lengthWe(y.value)&&y.value.length>D?{maxlength:{requiredLength:D,actualLength:y.value.length}}:null}(y)}static pattern(y){return function rt(D){if(!D)return yn;let y,g;return"string"==typeof D?(g="","^"!==D.charAt(0)&&(g+="^"),g+=D,"$"!==D.charAt(D.length-1)&&(g+="$"),y=new RegExp(g)):(g=D.toString(),y=D),S=>{if(se(S.value))return null;const j=S.value;return y.test(j)?null:{pattern:{requiredPattern:g,actualValue:j}}}}(y)}static nullValidator(y){return null}static compose(y){return $(y)}static composeAsync(y){return G(y)}}function yn(D){return null}function bn(D){return null!=D}function fr(D){return(0,h.QGY)(D)?(0,X.D)(D):D}function zt(D){let y={};return D.forEach(g=>{y=null!=g?{...y,...g}:y}),0===Object.keys(y).length?null:y}function rn(D,y){return y.map(g=>g(D))}function Ve(D){return D.map(y=>function hr(D){return!D.validate}(y)?y:g=>y.validate(g))}function $(D){if(!D)return null;const y=D.filter(bn);return 0==y.length?null:function(g){return zt(rn(g,y))}}function B(D){return null!=D?$(Ve(D)):null}function G(D){if(!D)return null;const y=D.filter(bn);return 0==y.length?null:function(g){return function re(...D){if(1===D.length){const y=D[0];if((0,ae.k)(y))return Y(y,null);if((0,fe.K)(y)&&Object.getPrototypeOf(y)===Object.prototype){const g=Object.keys(y);return Y(g.map(S=>y[S]),g)}}if("function"==typeof D[D.length-1]){const y=D.pop();return Y(D=1===D.length&&(0,ae.k)(D[0])?D[0]:D,null).pipe((0,Q.U)(g=>y(...g)))}return Y(D,null)}(rn(g,y).map(fr)).pipe((0,Q.U)(zt))}}function K(D){return null!=D?G(Ve(D)):null}function Le(D,y){return null===D?[y]:Array.isArray(D)?[...D,y]:[D,y]}function pt(D){return D._rawValidators}function Qe(D){return D._rawAsyncValidators}function Ar(D){return D?Array.isArray(D)?D:[D]:[]}function Vr(D,y){return Array.isArray(D)?D.includes(y):D===y}function Xr(D,y){const g=Ar(y);return Ar(D).forEach(j=>{Vr(g,j)||g.push(j)}),g}function Rt(D,y){return Ar(y).filter(g=>!Vr(D,g))}class go{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(y){this._rawValidators=y||[],this._composedValidatorFn=B(this._rawValidators)}_setAsyncValidators(y){this._rawAsyncValidators=y||[],this._composedAsyncValidatorFn=K(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(y){this._onDestroyCallbacks.push(y)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(y=>y()),this._onDestroyCallbacks=[]}reset(y){this.control&&this.control.reset(y)}hasError(y,g){return!!this.control&&this.control.hasError(y,g)}getError(y,g){return this.control?this.control.getError(y,g):null}}class Nt extends go{get formDirective(){return null}get path(){return null}}class ct extends go{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Kn{constructor(y){this._cd=y}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let jr=(()=>{class D extends Kn{constructor(g){super(g)}}return D.\u0275fac=function(g){return new(g||D)(h.Y36(ct,2))},D.\u0275dir=h.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(g,S){2&g&&h.ekj("ng-untouched",S.isUntouched)("ng-touched",S.isTouched)("ng-pristine",S.isPristine)("ng-dirty",S.isDirty)("ng-valid",S.isValid)("ng-invalid",S.isInvalid)("ng-pending",S.isPending)},features:[h.qOj]}),D})(),Ur=(()=>{class D extends Kn{constructor(g){super(g)}}return D.\u0275fac=function(g){return new(g||D)(h.Y36(Nt,10))},D.\u0275dir=h.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(g,S){2&g&&h.ekj("ng-untouched",S.isUntouched)("ng-touched",S.isTouched)("ng-pristine",S.isPristine)("ng-dirty",S.isDirty)("ng-valid",S.isValid)("ng-invalid",S.isInvalid)("ng-pending",S.isPending)("ng-submitted",S.isSubmitted)},features:[h.qOj]}),D})();const pr="VALID",gr="INVALID",gt="PENDING",on="DISABLED";function Hn(D){return(mr(D)?D.validators:D)||null}function _t(D,y){return(mr(y)?y.asyncValidators:D)||null}function mr(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}function $n(D,y,g){const S=D.controls;if(!(y?Object.keys(S):S).length)throw new h.vHH(1e3,"");if(!S[g])throw new h.vHH(1001,"")}function Br(D,y,g){D._forEachChild((S,j)=>{if(void 0===g[j])throw new h.vHH(1002,"")})}class Pn{constructor(y,g){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(y),this._assignAsyncValidators(g)}get validator(){return this._composedValidatorFn}set validator(y){this._rawValidators=this._composedValidatorFn=y}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(y){this._rawAsyncValidators=this._composedAsyncValidatorFn=y}get parent(){return this._parent}get valid(){return this.status===pr}get invalid(){return this.status===gr}get pending(){return this.status==gt}get disabled(){return this.status===on}get enabled(){return this.status!==on}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(y){this._assignValidators(y)}setAsyncValidators(y){this._assignAsyncValidators(y)}addValidators(y){this.setValidators(Xr(y,this._rawValidators))}addAsyncValidators(y){this.setAsyncValidators(Xr(y,this._rawAsyncValidators))}removeValidators(y){this.setValidators(Rt(y,this._rawValidators))}removeAsyncValidators(y){this.setAsyncValidators(Rt(y,this._rawAsyncValidators))}hasValidator(y){return Vr(this._rawValidators,y)}hasAsyncValidator(y){return Vr(this._rawAsyncValidators,y)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(y={}){this.touched=!0,this._parent&&!y.onlySelf&&this._parent.markAsTouched(y)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(y=>y.markAllAsTouched())}markAsUntouched(y={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(g=>{g.markAsUntouched({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}markAsDirty(y={}){this.pristine=!1,this._parent&&!y.onlySelf&&this._parent.markAsDirty(y)}markAsPristine(y={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(g=>{g.markAsPristine({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}markAsPending(y={}){this.status=gt,!1!==y.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!y.onlySelf&&this._parent.markAsPending(y)}disable(y={}){const g=this._parentMarkedDirty(y.onlySelf);this.status=on,this.errors=null,this._forEachChild(S=>{S.disable({...y,onlySelf:!0})}),this._updateValue(),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...y,skipPristineCheck:g}),this._onDisabledChange.forEach(S=>S(!0))}enable(y={}){const g=this._parentMarkedDirty(y.onlySelf);this.status=pr,this._forEachChild(S=>{S.enable({...y,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent}),this._updateAncestors({...y,skipPristineCheck:g}),this._onDisabledChange.forEach(S=>S(!1))}_updateAncestors(y){this._parent&&!y.onlySelf&&(this._parent.updateValueAndValidity(y),y.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(y){this._parent=y}getRawValue(){return this.value}updateValueAndValidity(y={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pr||this.status===gt)&&this._runAsyncValidator(y.emitEvent)),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!y.onlySelf&&this._parent.updateValueAndValidity(y)}_updateTreeValidity(y={emitEvent:!0}){this._forEachChild(g=>g._updateTreeValidity(y)),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?on:pr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(y){if(this.asyncValidator){this.status=gt,this._hasOwnPendingAsyncValidator=!0;const g=fr(this.asyncValidator(this));this._asyncValidationSubscription=g.subscribe(S=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(S,{emitEvent:y})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(y,g={}){this.errors=y,this._updateControlsErrors(!1!==g.emitEvent)}get(y){let g=y;return null==g||(Array.isArray(g)||(g=g.split(".")),0===g.length)?null:g.reduce((S,j)=>S&&S._find(j),this)}getError(y,g){const S=g?this.get(g):this;return S&&S.errors?S.errors[y]:null}hasError(y,g){return!!this.getError(y,g)}get root(){let y=this;for(;y._parent;)y=y._parent;return y}_updateControlsErrors(y){this.status=this._calculateStatus(),y&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(y)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?on:this.errors?gr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(gt)?gt:this._anyControlsHaveStatus(gr)?gr:pr}_anyControlsHaveStatus(y){return this._anyControls(g=>g.status===y)}_anyControlsDirty(){return this._anyControls(y=>y.dirty)}_anyControlsTouched(){return this._anyControls(y=>y.touched)}_updatePristine(y={}){this.pristine=!this._anyControlsDirty(),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}_updateTouched(y={}){this.touched=this._anyControlsTouched(),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}_registerOnCollectionChange(y){this._onCollectionChange=y}_setUpdateStrategy(y){mr(y)&&null!=y.updateOn&&(this._updateOn=y.updateOn)}_parentMarkedDirty(y){return!y&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(y){return null}_assignValidators(y){this._rawValidators=Array.isArray(y)?y.slice():y,this._composedValidatorFn=function ti(D){return Array.isArray(D)?B(D):D||null}(this._rawValidators)}_assignAsyncValidators(y){this._rawAsyncValidators=Array.isArray(y)?y.slice():y,this._composedAsyncValidatorFn=function vo(D){return Array.isArray(D)?K(D):D||null}(this._rawAsyncValidators)}}class tr extends Pn{constructor(y,g,S){super(Hn(g),_t(S,g)),this.controls=y,this._initObservables(),this._setUpdateStrategy(g),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(y,g){return this.controls[y]?this.controls[y]:(this.controls[y]=g,g.setParent(this),g._registerOnCollectionChange(this._onCollectionChange),g)}addControl(y,g,S={}){this.registerControl(y,g),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}removeControl(y,g={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],this.updateValueAndValidity({emitEvent:g.emitEvent}),this._onCollectionChange()}setControl(y,g,S={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],g&&this.registerControl(y,g),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}contains(y){return this.controls.hasOwnProperty(y)&&this.controls[y].enabled}setValue(y,g={}){Br(this,0,y),Object.keys(y).forEach(S=>{$n(this,!0,S),this.controls[S].setValue(y[S],{onlySelf:!0,emitEvent:g.emitEvent})}),this.updateValueAndValidity(g)}patchValue(y,g={}){null!=y&&(Object.keys(y).forEach(S=>{const j=this.controls[S];j&&j.patchValue(y[S],{onlySelf:!0,emitEvent:g.emitEvent})}),this.updateValueAndValidity(g))}reset(y={},g={}){this._forEachChild((S,j)=>{S.reset(y[j],{onlySelf:!0,emitEvent:g.emitEvent})}),this._updatePristine(g),this._updateTouched(g),this.updateValueAndValidity(g)}getRawValue(){return this._reduceChildren({},(y,g,S)=>(y[S]=g.getRawValue(),y))}_syncPendingControls(){let y=this._reduceChildren(!1,(g,S)=>!!S._syncPendingControls()||g);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){Object.keys(this.controls).forEach(g=>{const S=this.controls[g];S&&y(S,g)})}_setUpControls(){this._forEachChild(y=>{y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(y){for(const[g,S]of Object.entries(this.controls))if(this.contains(g)&&y(S))return!0;return!1}_reduceValue(){return this._reduceChildren({},(g,S,j)=>((S.enabled||this.disabled)&&(g[j]=S.value),g))}_reduceChildren(y,g){let S=y;return this._forEachChild((j,pe)=>{S=g(S,j,pe)}),S}_allControlsDisabled(){for(const y of Object.keys(this.controls))if(this.controls[y].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(y){return this.controls.hasOwnProperty(y)?this.controls[y]:null}}const _o=tr;class wt extends tr{}const Ot=new h.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Te}),Te="always";function ln(D,y,g=Te){vn(D,y),y.valueAccessor.writeValue(D.value),(D.disabled||"always"===g)&&y.valueAccessor.setDisabledState?.(D.disabled),function Lt(D,y){y.valueAccessor.registerOnChange(g=>{D._pendingValue=g,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&Nr(D,y)})}(D,y),function vr(D,y){const g=(S,j)=>{y.valueAccessor.writeValue(S),j&&y.viewToModelUpdate(S)};D.registerOnChange(g),y._registerOnDestroy(()=>{D._unregisterOnChange(g)})}(D,y),function yr(D,y){y.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&Nr(D,y),"submit"!==D.updateOn&&D.markAsTouched()})}(D,y),function Hr(D,y){if(y.valueAccessor.setDisabledState){const g=S=>{y.valueAccessor.setDisabledState(S)};D.registerOnDisabledChange(g),y._registerOnDestroy(()=>{D._unregisterOnDisabledChange(g)})}}(D,y)}function Be(D,y,g=!0){const S=()=>{};y.valueAccessor&&(y.valueAccessor.registerOnChange(S),y.valueAccessor.registerOnTouched(S)),cn(D,y),D&&(y._invokeOnDestroyCallbacks(),D._registerOnCollectionChange(()=>{}))}function Gn(D,y){D.forEach(g=>{g.registerOnValidatorChange&&g.registerOnValidatorChange(y)})}function vn(D,y){const g=pt(D);null!==y.validator?D.setValidators(Le(g,y.validator)):"function"==typeof g&&D.setValidators([g]);const S=Qe(D);null!==y.asyncValidator?D.setAsyncValidators(Le(S,y.asyncValidator)):"function"==typeof S&&D.setAsyncValidators([S]);const j=()=>D.updateValueAndValidity();Gn(y._rawValidators,j),Gn(y._rawAsyncValidators,j)}function cn(D,y){let g=!1;if(null!==D){if(null!==y.validator){const j=pt(D);if(Array.isArray(j)&&j.length>0){const pe=j.filter(st=>st!==y.validator);pe.length!==j.length&&(g=!0,D.setValidators(pe))}}if(null!==y.asyncValidator){const j=Qe(D);if(Array.isArray(j)&&j.length>0){const pe=j.filter(st=>st!==y.asyncValidator);pe.length!==j.length&&(g=!0,D.setAsyncValidators(pe))}}}const S=()=>{};return Gn(y._rawValidators,S),Gn(y._rawAsyncValidators,S),g}function Nr(D,y){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),y.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function Pr(D,y){if(!D.hasOwnProperty("model"))return!1;const g=D.model;return!!g.isFirstChange()||!Object.is(y,g.currentValue)}function kt(D,y){if(!y)return null;let g,S,j;return Array.isArray(y),y.forEach(pe=>{pe.constructor===Me?g=pe:function Xe(D){return Object.getPrototypeOf(D.constructor)===k}(pe)?S=pe:j=pe}),j||S||g||null}function x(D,y){const g=D.indexOf(y);g>-1&&D.splice(g,1)}function U(D){return"object"==typeof D&&null!==D&&2===Object.keys(D).length&&"value"in D&&"disabled"in D}const ye=class extends Pn{constructor(y=null,g,S){super(Hn(g),_t(S,g)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(y),this._setUpdateStrategy(g),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),mr(g)&&(g.nonNullable||g.initialValueIsDefault)&&(this.defaultValue=U(y)?y.value:y)}setValue(y,g={}){this.value=this._pendingValue=y,this._onChange.length&&!1!==g.emitModelToViewChange&&this._onChange.forEach(S=>S(this.value,!1!==g.emitViewToModelChange)),this.updateValueAndValidity(g)}patchValue(y,g={}){this.setValue(y,g)}reset(y=this.defaultValue,g={}){this._applyFormState(y),this.markAsPristine(g),this.markAsUntouched(g),this.setValue(this.value,g),this._pendingChange=!1}_updateValue(){}_anyControls(y){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(y){this._onChange.push(y)}_unregisterOnChange(y){x(this._onChange,y)}registerOnDisabledChange(y){this._onDisabledChange.push(y)}_unregisterOnDisabledChange(y){x(this._onDisabledChange,y)}_forEachChild(y){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(y){U(y)?(this.value=this._pendingValue=y.value,y.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=y}},Ae=ye;let rr=(()=>{class D{}return D.\u0275fac=function(g){return new(g||D)},D.\u0275dir=h.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})(),ni=(()=>{class D{}return D.\u0275fac=function(g){return new(g||D)},D.\u0275mod=h.oAB({type:D}),D.\u0275inj=h.cJS({}),D})();const or=new h.OlP("NgModelWithFormControlWarning"),sn={provide:ct,useExisting:(0,h.Gpc)(()=>eo)};let eo=(()=>{class D extends ct{constructor(g,S,j,pe,st){super(),this._ngModelWarningConfig=pe,this.callSetDisabledState=st,this.update=new h.vpe,this._ngModelWarningSent=!1,this._setValidators(g),this._setAsyncValidators(S),this.valueAccessor=kt(0,j)}set isDisabled(g){}ngOnChanges(g){if(this._isControlChanged(g)){const S=g.form.previousValue;S&&Be(S,this,!1),ln(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Pr(g,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Be(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(g){this.viewModel=g,this.update.emit(g)}_isControlChanged(g){return g.hasOwnProperty("form")}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(g){return new(g||D)(h.Y36(Ze,10),h.Y36(ke,10),h.Y36(z,10),h.Y36(or,8),h.Y36(Ot,8))},D.\u0275dir=h.lG2({type:D,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h._Bn([sn]),h.qOj,h.TTD]}),D})();const Dn={provide:Nt,useExisting:(0,h.Gpc)(()=>fn)};let fn=(()=>{class D extends Nt{constructor(g,S,j){super(),this.callSetDisabledState=j,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(g),this._setAsyncValidators(S)}ngOnChanges(g){this._checkFormPresent(),g.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(g){const S=this.form.get(g.path);return ln(S,g,this.callSetDisabledState),S.updateValueAndValidity({emitEvent:!1}),this.directives.push(g),S}getControl(g){return this.form.get(g.path)}removeControl(g){Be(g.control||null,g,!1),function nr(D,y){const g=D.indexOf(y);g>-1&&D.splice(g,1)}(this.directives,g)}addFormGroup(g){this._setUpFormContainer(g)}removeFormGroup(g){this._cleanUpFormContainer(g)}getFormGroup(g){return this.form.get(g.path)}addFormArray(g){this._setUpFormContainer(g)}removeFormArray(g){this._cleanUpFormContainer(g)}getFormArray(g){return this.form.get(g.path)}updateModel(g,S){this.form.get(g.path).setValue(S)}onSubmit(g){return this.submitted=!0,function Dt(D,y){D._syncPendingControls(),y.forEach(g=>{const S=g.control;"submit"===S.updateOn&&S._pendingChange&&(g.viewToModelUpdate(S._pendingValue),S._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(g),"dialog"===g?.target?.method}onReset(){this.resetForm()}resetForm(g){this.form.reset(g),this.submitted=!1}_updateDomValue(){this.directives.forEach(g=>{const S=g.control,j=this.form.get(g.path);S!==j&&(Be(S||null,g),(D=>D instanceof ye)(j)&&(ln(j,g,this.callSetDisabledState),g.control=j))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(g){const S=this.form.get(g.path);(function Jn(D,y){vn(D,y)})(S,g),S.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(g){if(this.form){const S=this.form.get(g.path);S&&function Fn(D,y){return cn(D,y)}(S,g)&&S.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){vn(this.form,this),this._oldForm&&cn(this._oldForm,this)}_checkFormPresent(){}}return D.\u0275fac=function(g){return new(g||D)(h.Y36(Ze,10),h.Y36(ke,10),h.Y36(Ot,8))},D.\u0275dir=h.lG2({type:D,selectors:[["","formGroup",""]],hostBindings:function(g,S){1&g&&h.NdJ("submit",function(pe){return S.onSubmit(pe)})("reset",function(){return S.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([Dn]),h.qOj,h.TTD]}),D})();const Cr={provide:ct,useExisting:(0,h.Gpc)(()=>no)};let no=(()=>{class D extends ct{constructor(g,S,j,pe,st){super(),this._ngModelWarningConfig=st,this._added=!1,this.update=new h.vpe,this._ngModelWarningSent=!1,this._parent=g,this._setValidators(S),this._setAsyncValidators(j),this.valueAccessor=kt(0,pe)}set isDisabled(g){}ngOnChanges(g){this._added||this._setUpControl(),Pr(g,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(g){this.viewModel=g,this.update.emit(g)}get path(){return function yt(D,y){return[...y.path,D]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return D._ngModelWarningSentOnce=!1,D.\u0275fac=function(g){return new(g||D)(h.Y36(Nt,13),h.Y36(Ze,10),h.Y36(ke,10),h.Y36(z,10),h.Y36(or,8))},D.\u0275dir=h.lG2({type:D,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[h._Bn([Cr]),h.qOj,h.TTD]}),D})(),Wr=(()=>{class D{}return D.\u0275fac=function(g){return new(g||D)},D.\u0275mod=h.oAB({type:D}),D.\u0275inj=h.cJS({imports:[ni]}),D})(),Yr=(()=>{class D{static withConfig(g){return{ngModule:D,providers:[{provide:Ot,useValue:g.callSetDisabledState??Te}]}}}return D.\u0275fac=function(g){return new(g||D)},D.\u0275mod=h.oAB({type:D}),D.\u0275inj=h.cJS({imports:[Wr]}),D})(),Xt=(()=>{class D{static withConfig(g){return{ngModule:D,providers:[{provide:or,useValue:g.warnOnNgModelWithFormControl??"always"},{provide:Ot,useValue:g.callSetDisabledState??Te}]}}}return D.\u0275fac=function(g){return new(g||D)},D.\u0275mod=h.oAB({type:D}),D.\u0275inj=h.cJS({imports:[Wr]}),D})();class ao extends Pn{constructor(y,g,S){super(Hn(g),_t(S,g)),this.controls=y,this._initObservables(),this._setUpdateStrategy(g),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(y){return this.controls[this._adjustIndex(y)]}push(y,g={}){this.controls.push(y),this._registerControl(y),this.updateValueAndValidity({emitEvent:g.emitEvent}),this._onCollectionChange()}insert(y,g,S={}){this.controls.splice(y,0,g),this._registerControl(g),this.updateValueAndValidity({emitEvent:S.emitEvent})}removeAt(y,g={}){let S=this._adjustIndex(y);S<0&&(S=0),this.controls[S]&&this.controls[S]._registerOnCollectionChange(()=>{}),this.controls.splice(S,1),this.updateValueAndValidity({emitEvent:g.emitEvent})}setControl(y,g,S={}){let j=this._adjustIndex(y);j<0&&(j=0),this.controls[j]&&this.controls[j]._registerOnCollectionChange(()=>{}),this.controls.splice(j,1),g&&(this.controls.splice(j,0,g),this._registerControl(g)),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(y,g={}){Br(this,0,y),y.forEach((S,j)=>{$n(this,!1,j),this.at(j).setValue(S,{onlySelf:!0,emitEvent:g.emitEvent})}),this.updateValueAndValidity(g)}patchValue(y,g={}){null!=y&&(y.forEach((S,j)=>{this.at(j)&&this.at(j).patchValue(S,{onlySelf:!0,emitEvent:g.emitEvent})}),this.updateValueAndValidity(g))}reset(y=[],g={}){this._forEachChild((S,j)=>{S.reset(y[j],{onlySelf:!0,emitEvent:g.emitEvent})}),this._updatePristine(g),this._updateTouched(g),this.updateValueAndValidity(g)}getRawValue(){return this.controls.map(y=>y.getRawValue())}clear(y={}){this.controls.length<1||(this._forEachChild(g=>g._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:y.emitEvent}))}_adjustIndex(y){return y<0?y+this.length:y}_syncPendingControls(){let y=this.controls.reduce((g,S)=>!!S._syncPendingControls()||g,!1);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){this.controls.forEach((g,S)=>{y(g,S)})}_updateValue(){this.value=this.controls.filter(y=>y.enabled||this.disabled).map(y=>y.value)}_anyControls(y){return this.controls.some(g=>g.enabled&&y(g))}_setUpControls(){this._forEachChild(y=>this._registerControl(y))}_allControlsDisabled(){for(const y of this.controls)if(y.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(y){y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)}_find(y){return this.at(y)??null}}const Bo=ao;function Yt(D){return!!D&&(void 0!==D.asyncValidators||void 0!==D.validators||void 0!==D.updateOn)}let V=(()=>{class D{constructor(){this.useNonNullable=!1}get nonNullable(){const g=new D;return g.useNonNullable=!0,g}group(g,S=null){const j=this._reduceControls(g);let pe={};return Yt(S)?pe=S:null!==S&&(pe.validators=S.validator,pe.asyncValidators=S.asyncValidator),new tr(j,pe)}record(g,S=null){const j=this._reduceControls(g);return new wt(j,S)}control(g,S,j){let pe={};return this.useNonNullable?(Yt(S)?pe=S:(pe.validators=S,pe.asyncValidators=j),new ye(g,{...pe,nonNullable:!0})):new ye(g,S,j)}array(g,S,j){const pe=g.map(st=>this._createControl(st));return new ao(pe,S,j)}_reduceControls(g){const S={};return Object.keys(g).forEach(j=>{S[j]=this._createControl(g[j])}),S}_createControl(g){return g instanceof ye||g instanceof Pn?g:Array.isArray(g)?this.control(g[0],g.length>1?g[1]:null,g.length>2?g[2]:null):this.control(g)}}return D.\u0275fac=function(g){return new(g||D)},D.\u0275prov=h.Yz7({token:D,factory:D.\u0275fac,providedIn:Xt}),D})(),De=(()=>{class D extends V{group(g,S=null){return super.group(g,S)}control(g,S,j){return super.control(g,S,j)}array(g,S,j){return super.array(g,S,j)}}return D.\u0275fac=function(){let y;return function(S){return(y||(y=h.n5z(D)))(S||D)}}(),D.\u0275prov=h.Yz7({token:D,factory:D.\u0275fac,providedIn:Xt}),D})()},1198:(Oe,ie,A)=>{A.d(ie,{vw:()=>zt,H1:()=>Gt,dn:()=>Ze,vG:()=>rt,B_:()=>se});var h=A(6895),p=A(6738),X=A(7079),ee=A(214);var k=A(5689),z=A(6498);A(5529),A(7625);const ce=["nb-r-str",""];function J(B,G){if(1&B&&(p.ynx(0),p._uU(1),p.ALo(2,"async"),p.BQk()),2&B){const K=p.oxw();p.xp6(1),p.Oqu(p.lcZ(2,1,K.asyncContent))}}function he(B,G){if(1&B&&(p.ynx(0),p._uU(1),p.BQk()),2&B){const K=p.oxw();p.xp6(1),p.Oqu(K.content)}}let se=(()=>{class B{constructor(){}isBoolean(K){return function Q(B){return!0===B||!1===B||(0,ee.Z)(B)&&"[object Boolean]"==(0,X.Z)(B)}(K)}isNumber(K){return function Y(B){return"number"==typeof B||(0,ee.Z)(B)&&"[object Number]"==(0,X.Z)(B)}(K)}isObservable(K){return K instanceof z.y}isPromise(K){return K instanceof Promise}isString(K){return(0,k.Z)(K)}isTemplateRef(K){return K instanceof p.Rgc}}return B.\u0275fac=function(K){return new(K||B)},B.\u0275prov=p.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})(),We=(()=>{class B{constructor(K){this.valueTypeService=K}transform(K){return this.valueTypeService.isObservable(K)||this.valueTypeService.isPromise(K)}}return B.\u0275fac=function(K){return new(K||B)(p.Y36(se,16))},B.\u0275pipe=p.Yjl({name:"nbIsAsync",type:B,pure:!0}),B})(),Ze=(()=>{class B{constructor(){this.content=""}get asyncContent(){return this.content}}return B.\u0275fac=function(K){return new(K||B)},B.\u0275cmp=p.Xpm({type:B,selectors:[["","nb-r-str",""]],inputs:{content:["nb-r-str","content"]},attrs:ce,decls:4,vars:4,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"]],template:function(K,Le){1&K&&(p.ynx(0,0),p.ALo(1,"nbIsAsync"),p.YNc(2,J,3,3,"ng-container",1),p.YNc(3,he,2,1,"ng-container",2),p.BQk()),2&K&&(p.Q6J("ngSwitch",p.lcZ(1,2,Le.content)),p.xp6(2),p.Q6J("ngSwitchCase",!0))},dependencies:[h.RF,h.n9,h.ED,h.Ov,We],encapsulation:2,changeDetection:0}),B})();new p.OlP("default error image"),new p.OlP("default loading image");let Gt=(()=>{class B{constructor(K){this.valueTypeService=K}transform(K){return this.valueTypeService.isString(K)}}return B.\u0275fac=function(K){return new(K||B)(p.Y36(se,16))},B.\u0275pipe=p.Yjl({name:"nbIsString",type:B,pure:!0}),B})(),rt=(()=>{class B{constructor(K){this.valueTypeService=K}transform(K){return this.valueTypeService.isTemplateRef(K)?K:null}}return B.\u0275fac=function(K){return new(K||B)(p.Y36(se,16))},B.\u0275pipe=p.Yjl({name:"nbTplContent",type:B,pure:!0}),B})(),zt=(()=>{class B{}return B.\u0275fac=function(K){return new(K||B)},B.\u0275mod=p.oAB({type:B}),B.\u0275inj=p.cJS({imports:[h.ez]}),B})()},3324:(Oe,ie,A)=>{A.d(ie,{x:()=>Nr,oi:()=>Lt,TT:()=>yr,pT:()=>dn,y6:()=>Dt,v6:()=>Ge});var h=A(6738),p=A(6895),X=A(1198),ee=A(591),ae=A(5529),Q=A(1086),fe=A(6498),re=A(2654);class Y extends re.w{constructor(P,x){super()}schedule(P,x=0){return this}}let k=(()=>{class T{constructor(x,U=T.now){this.SchedulerAction=x,this.now=U}schedule(x,U=0,ye){return new this.SchedulerAction(this,x).schedule(ye,U)}}return T.now=()=>Date.now(),T})();class z extends k{constructor(P,x=k.now){super(P,()=>z.delegate&&z.delegate!==this?z.delegate.now():x()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(P,x=0,U){return z.delegate&&z.delegate!==this?z.delegate.schedule(P,x,U):super.schedule(P,x,U)}flush(P){const{actions:x}=this;if(this.active)return void x.push(P);let U;this.active=!0;do{if(U=P.execute(P.state,P.delay))break}while(P=x.shift());if(this.active=!1,U){for(;P=x.shift();)P.unsubscribe();throw U}}}const q=new z(class L extends Y{constructor(P,x){super(P,x),this.scheduler=P,this.work=x,this.pending=!1}schedule(P,x=0){if(this.closed)return this;this.state=P;const U=this.id,ye=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId(ye,U,x)),this.pending=!0,this.delay=x,this.id=this.id||this.requestAsyncId(ye,this.id,x),this}requestAsyncId(P,x,U=0){return setInterval(P.flush.bind(P,this),U)}recycleAsyncId(P,x,U=0){if(null!==U&&this.delay===U&&!1===this.pending)return x;clearInterval(x)}execute(P,x){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const U=this._execute(P,x);if(U)return U;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(P,x){let ye,U=!1;try{this.work(P)}catch(Ae){U=!0,ye=!!Ae&&Ae||new Error(Ae)}if(U)return this.unsubscribe(),ye}_unsubscribe(){const P=this.id,x=this.scheduler,U=x.actions,ye=U.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==ye&&U.splice(ye,1),null!=P&&(this.id=this.recycleAsyncId(x,P,null)),this.delay=null}});var ce=A(6688);function J(T){return!(0,ce.k)(T)&&T-parseFloat(T)+1>=0}var he=A(2866);function Re(T){const{index:P,period:x,subscriber:U}=T;if(U.next(P),!U.closed){if(-1===x)return U.complete();T.index=P+1,this.schedule(T,x)}}var se=A(5254),We=A(7545),Ze=A(4850),ke=A(3489);class Ee{constructor(P){this.predicate=P}call(P,x){return x.subscribe(new mt(P,this.predicate))}}class mt extends ke.L{constructor(P,x){super(P),this.predicate=x,this.skipping=!0,this.index=0}_next(P){const x=this.destination;this.skipping&&this.tryCallPredicate(P),this.skipping||x.next(P)}tryCallPredicate(P){try{const x=this.predicate(P,this.index++);this.skipping=Boolean(x)}catch(x){this.destination.error(x)}}}var _e=A(2868);class Fe{constructor(P,x){this.count=P,this.source=x}call(P,x){return x.subscribe(new it(P,this.count,this.source))}}class it extends ke.L{constructor(P,x,U){super(P),this.count=x,this.source=U}error(P){if(!this.isStopped){const{source:x,count:U}=this;if(0===U)return super.error(P);U>-1&&(this.count=U-1),x.subscribe(this._unsubscribeAndRecycle())}}}var Ce=A(7221),Gt=A(7625),rt=A(4177),yn=A(7079),bn=A(214);const rn=function zt(T){return"symbol"==typeof T||(0,bn.Z)(T)&&"[object Symbol]"==(0,yn.Z)(T)};var hr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ve=/^\w*$/;var G=A(3639);function Le(T,P){if("function"!=typeof T||null!=P&&"function"!=typeof P)throw new TypeError("Expected a function");var x=function(){var U=arguments,ye=P?P.apply(this,U):U[0],Ae=x.cache;if(Ae.has(ye))return Ae.get(ye);var nt=T.apply(this,U);return x.cache=Ae.set(ye,nt)||Ae,nt};return x.cache=new(Le.Cache||G.Z),x}Le.Cache=G.Z;const pt=Le;var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rt=/\\(\\)?/g;const Nt=function Ar(T){var P=pt(T,function(U){return 500===x.size&&x.clear(),U}),x=P.cache;return P}(function(T){var P=[];return 46===T.charCodeAt(0)&&P.push(""),T.replace(Xr,function(x,U,ye,Ae){P.push(ye?Ae.replace(Rt,"$1"):U||x)}),P});var ct=A(8492);var jr=ct.Z?ct.Z.prototype:void 0,Ur=jr?jr.toString:void 0;const qn=function Kt(T){if("string"==typeof T)return T;if((0,rt.Z)(T))return function Kn(T,P){for(var x=-1,U=null==T?0:T.length,ye=Array(U);++x{return(T=Lt||(Lt={})).ZH_CN="zh-CN",T.ZH_TW="zh-TW",T.ZH_HK="zh-HK",T.EN="en",T.AR_EG="ar-EG",T.HY_AM="hy-AM",T.BG_BG="bg-BG",T.CA_ES="ca-ES",T.CS_CZ="cs-CZ",T.DA_DK="da-DK",T.DE_DE="de-DE",T.EL_GR="el-GR",T.EN_GB="en-GB",T.EN_US="en-US",T.ES_ES="es-ES",T.ET_EE="et-EE",T.FA_IR="fa-IR",T.FI_FI="fi-FI",T.FR_BE="fr-BE",T.FR_FR="fr-FR",T.HE_IL="he-IL",T.HI_IN="hi-IN",T.HR_HR="hr-HR",T.HU_HU="hu-HU",T.IS_IS="is-IS",T.ID_ID="id-ID",T.IT_IT="it-IT",T.JA_JP="ja-JP",T.KA_GE="ka-GE",T.KN_IN="kn-IN",T.KO_KR="ko-KR",T.KU_IQ="ku-IQ",T.LV_LV="lv-LV",T.MS_MY="ms-MY",T.MN_MN="mn-MN",T.NB_NO="nb-NO",T.NE_NP="ne-NP",T.NL_BE="nl-BE",T.NL_NL="nl-NL",T.PL_PL="pl-PL",T.PT_BR="pt-BR",T.PT_PT="pt-PT",T.SK_SK="sk-SK",T.SR_RS="sr-RS",T.SL_SI="sl-SI",T.SV_SE="sv-SE",T.TA_IN="ta-IN",T.TH_TH="th-TH",T.TR_TR="tr-TR",T.RO_RO="ro-RO",T.RU_RU="ru-RU",T.UK_UA="uk-UA",T.VI_VN="vi-VN",Lt;var T})();const yr=Lt,Nr=new h.OlP("nb-trans-loader"),vr=new h.OlP("nb-trans-max-retry");let wn=(()=>{class T{constructor(x){this.valueType=x}static checkNavigator(){return T.checkWindow()&&typeof window.navigator<"u"}static checkWindow(){return typeof window<"u"}getFinalKey(x,U){return U?`${U}.${x}`:x}handleSentence(x,U,ye){return x.replace(new RegExp(U,"g"),ye)}handleSentenceWithParams(x,U){if(!U)return x;const ye=Object.keys(U);if(!ye.length)return x;const Ae=this.getParamsKeyUuid(ye),nt=this.replaceParamsKeysAsUuidKey(x,{keys:ye,keysUUID:Ae});return this.replaceUuidKeyAsParamsValue(nt,{params:U,keys:ye,keysUUID:Ae})}handleTrans(x){const U=[];for(;x.length;){const ye=x.search(/<\d+>/);if(ye>0){const nt=x.slice(0,ye);U.push(nt)}const Ae=this.handleCompStr(x);this.valueType.isString(Ae)?(U.push(Ae),x=""):(U.push({index:Ae.index,content:Ae.content,list:Ae.list}),x=Ae.otherContent)}return U}getParamsKeyUuid(x){return x.reduce((U,ye)=>(U[ye]=vo(),U),{})}handleCompStr(x){const U=x.search(/<\d+>/);if(-1===U)return x;let ye=[];const Ae=x.indexOf(">",U),nt=Number(x.slice(U+1,Ae)),et=``,_r=x.indexOf(et),kn=x.slice(Ae+1,_r);return kn.search(/<\d+>/)>-1&&(ye=this.handleTrans(kn)),{index:nt,content:kn,list:ye,otherContent:x.slice(_r+et.length,x.length)}}replaceParamsKeysAsUuidKey(x,U){const{keys:ye,keysUUID:Ae}=U;return ye.forEach(nt=>{x=this.handleSentence(x,`{{${nt}}}`,Ae[nt])}),x}replaceUuidKeyAsParamsValue(x,U){const{params:ye,keys:Ae,keysUUID:nt}=U;return Ae.forEach(et=>{x=this.handleSentence(x,nt[et],ye[et])}),x}}return T.\u0275fac=function(x){return new(x||T)(h.LFG(X.B_))},T.\u0275prov=h.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),Ge=(()=>{class T{constructor(x,U,ye,Ae){this.transDefaultLang=x,this.transLoader=U,this.maxRetry=ye,this.transToolsService=Ae,this.lang$=new ee.X(Lt.ZH_CN),this.loadDefaultOver$=new ee.X(!1),this.loadLangTrans$=new ae.xQ,this.retry=5,this.translations={},this.retry=null==this.maxRetry?this.retry:this.maxRetry,this.transLoader=this.transLoader||{},this.lang$.next(x||Lt.ZH_CN),this.loadDefaultTrans()}get lang(){return this.lang$.value}get loadDefaultOver(){return this.loadDefaultOver$.value}static getBrowserLang(){if(wn.checkNavigator())return window?.navigator?.language}static getBrowserLangs(){if(wn.checkNavigator())return window?.navigator?.languages}changeLang(x){const U={curLang:x,result:!0},ye={curLang:this.lang,result:!1};return this.translations[x]?(this.lang$.next(x),(0,Q.of)(U)):this.transLoader[x]?this.loadLangTrans(x).pipe((0,We.w)(Ae=>{let nt=this.lang,et=ye;return Ae&&(nt=x,et=U),this.lang$.next(nt),(0,Q.of)(et)})):(function Me(T=0,P,x){let U=-1;return J(P)?U=Number(P)<1?1:Number(P):(0,he.K)(P)&&(x=P),(0,he.K)(x)||(x=q),new fe.y(ye=>{const Ae=J(T)?T:+T-x.now();return x.schedule(Re,Ae,{index:0,period:U,subscriber:ye})})}().subscribe(Ae=>this.loadLangTrans$.next(!1)),(0,Q.of)(ye))}changeLangSync(x){this.changeLang(x).subscribe()}getBrowserLang(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLang()!"),T.getBrowserLang()}getBrowserLangs(){return console.warn("The function will be deprecated in the future, we recommend using NbTransService.getBrowserLangs()!"),T.getBrowserLangs()}translationAsync(x,U){return this.lang$.pipe((0,We.w)(ye=>this.translations[this.lang]?(0,Q.of)({trans:this.translations[this.lang],result:!0}):this.loadLangTrans$),(0,Ze.U)(ye=>this.translationSync(x,U)))}translationSync(x,U){const ye=this.transToolsService.getFinalKey(x,U?.prefix),Ae=!1===U?.returnKeyWhenEmpty?"":ye;let nt=Lo(this.translations[this.lang],ye);if(nt||(nt=Lo(this.translations[this.transDefaultLang],ye)),!nt)return Ae;const et=U?.params;return nt=this.transToolsService.handleSentenceWithParams(nt,et),nt||Ae}subscribeLangChange(){return this.lang$.asObservable()}subscribeLoadDefaultOver(){return this.loadDefaultOver?(0,Q.of)(!0):this.loadDefaultOver$.asObservable().pipe(function nn(T){return P=>P.lift(new Ee(T))}((x,U)=>!x&&0===U))}loadDefaultTrans(){this.loadTrans(this.lang).pipe((0,Ze.U)(x=>!!x)).subscribe(x=>{this.loadDefaultOver$.next(x),this.loadDefaultOver$.complete(),this.loadLangTrans$.next(x)})}loadLangTrans(x){return this.loadTrans(x).pipe((0,Ze.U)(U=>!!U),(0,_e.b)(U=>this.loadLangTrans$.next(U)))}loadTrans(x){const U=this.transLoader[x];return U?((0,dt.Z)(U)?(0,Q.of)(null).pipe((0,We.w)(()=>(0,se.D)(U()))):(0,Q.of)(U)).pipe((0,_e.b)(Ae=>this.translations[x]=Ae),function Ie(T=-1){return P=>P.lift(new Fe(T,P))}(this.retry),(0,Ce.K)(Ae=>(0,Q.of)(null))):(0,Q.of)(null)}}return T.\u0275fac=function(x){return new(x||T)(h.LFG(cn,8),h.LFG(Nr,8),h.LFG(vr,8),h.LFG(wn))},T.\u0275prov=h.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"}),T})(),Dt=(()=>{class T{constructor(x,U){this.changeDR=x,this.transService=U,this.latestValue="",this.destroy$=new ae.xQ,this.key="",this.subscribeLangChange()}transform(x,U){return(!this.latestValue||x!==this.key||!(0,Qn.Z)(U,this.options))&&(this.latestValue=this.transService.translationSync(x,U),this.key=x,this.options=U),this.latestValue}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}subscribeLangChange(){this.transService.subscribeLangChange().pipe((0,We.w)(x=>this.transService.translationAsync(this.key,this.options)),(0,Gt.R)(this.destroy$)).subscribe(x=>this.updateLatestValue(x))}updateLatestValue(x){this.latestValue=x,this.changeDR.markForCheck()}}return T.\u0275fac=function(x){return new(x||T)(h.Y36(h.sBO,16),h.Y36(Ge,16))},T.\u0275pipe=h.Yjl({name:"nbTrans",type:T,pure:!1}),T})(),dn=(()=>{class T{}return T.\u0275fac=function(x){return new(x||T)},T.\u0275mod=h.oAB({type:T}),T.\u0275inj=h.cJS({imports:[p.ez,X.vw]}),T})()},2622:(Oe,ie,A)=>{A.d(ie,{Z:()=>he});var X=A(3093);const ae=function ee(Me,Re){for(var se=Me.length;se--;)if((0,X.Z)(Me[se][0],Re))return se;return-1};var fe=Array.prototype.splice;function J(Me){var Re=-1,se=null==Me?0:Me.length;for(this.clear();++Re-1},J.prototype.set=function q(Me,Re){var se=this.__data__,We=ae(se,Me);return We<0?(++this.size,se.push([Me,Re])):se[We][1]=Re,this};const he=J},9329:(Oe,ie,A)=>{A.d(ie,{Z:()=>ee});var h=A(3858),p=A(5946);const ee=(0,h.Z)(p.Z,"Map")},3639:(Oe,ie,A)=>{A.d(ie,{Z:()=>hr});const X=(0,A(3858).Z)(Object,"create");var L=Object.prototype.hasOwnProperty;var q=Object.prototype.hasOwnProperty;function se(Ve){var $=-1,B=null==Ve?0:Ve.length;for(this.clear();++${A.d(ie,{Z:()=>X});const X=A(5946).Z.Symbol},7079:(Oe,ie,A)=>{A.d(ie,{Z:()=>J});var h=A(8492),p=Object.prototype,X=p.hasOwnProperty,ee=p.toString,ae=h.Z?h.Z.toStringTag:void 0;var Y=Object.prototype.toString;var q=h.Z?h.Z.toStringTag:void 0;const J=function ce(he){return null==he?void 0===he?"[object Undefined]":"[object Null]":q&&q in Object(he)?function Q(he){var Me=X.call(he,ae),Re=he[ae];try{he[ae]=void 0;var se=!0}catch{}var We=ee.call(he);return se&&(Me?he[ae]=Re:delete he[ae]),We}(he):function L(he){return Y.call(he)}(he)}},8346:(Oe,ie,A)=>{A.d(ie,{Z:()=>p});const p="object"==typeof global&&global&&global.Object===Object&&global},3858:(Oe,ie,A)=>{A.d(ie,{Z:()=>Ze});var ke,h=A(2089),X=A(5946).Z["__core-js_shared__"],ae=(ke=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+ke:"";var re=A(1999),Y=A(4407),k=/^\[object .+?Constructor\]$/,J=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Me=function he(ke){return!(!(0,re.Z)(ke)||function Q(ke){return!!ae&&ae in ke}(ke))&&((0,h.Z)(ke)?J:k).test((0,Y.Z)(ke))},Ze=function We(ke,nn){var Ee=function Re(ke,nn){return ke?.[nn]}(ke,nn);return Me(Ee)?Ee:void 0}},5946:(Oe,ie,A)=>{A.d(ie,{Z:()=>ee});var h=A(8346),p="object"==typeof self&&self&&self.Object===Object&&self;const ee=h.Z||p||Function("return this")()},4407:(Oe,ie,A)=>{A.d(ie,{Z:()=>ee});var p=Function.prototype.toString;const ee=function X(ae){if(null!=ae){try{return p.call(ae)}catch{}try{return ae+""}catch{}}return""}},3093:(Oe,ie,A)=>{A.d(ie,{Z:()=>p});const p=function h(X,ee){return X===ee||X!=X&&ee!=ee}},4177:(Oe,ie,A)=>{A.d(ie,{Z:()=>p});const p=Array.isArray},6789:(Oe,ie,A)=>{A.d(ie,{Z:()=>Yt});var h=A(2622);var L=A(9329),k=A(3639);function ce(V){var ue=this.__data__=new h.Z(V);this.size=ue.size}ce.prototype.clear=function p(){this.__data__=new h.Z,this.size=0},ce.prototype.delete=function ee(V){var ue=this.__data__,De=ue.delete(V);return this.size=ue.size,De},ce.prototype.get=function Q(V){return this.__data__.get(V)},ce.prototype.has=function re(V){return this.__data__.has(V)},ce.prototype.set=function le(V,ue){var De=this.__data__;if(De instanceof h.Z){var Pe=De.__data__;if(!L.Z||Pe.length<199)return Pe.push([V,ue]),this.size=++De.size,this;De=this.__data__=new k.Z(Pe)}return De.set(V,ue),this.size=De.size,this};const J=ce;function Ze(V){var ue=-1,De=null==V?0:V.length;for(this.__data__=new k.Z;++ueS))return!1;var pe=y.get(V),st=y.get(ue);if(pe&&st)return pe==ue&&st==V;var Ct=-1,St=!0,hn=2&De?new ke:void 0;for(y.set(V,ue),y.set(ue,V);++Ct-1&&V%1==0&&V-1&&V%1==0&&V<=9007199254740991};var x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Arguments]"]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object Boolean]"]=x["[object DataView]"]=x["[object Date]"]=x["[object Error]"]=x["[object Function]"]=x["[object Map]"]=x["[object Number]"]=x["[object Object]"]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object WeakMap]"]=!1;var et=A(8346),_r="object"==typeof exports&&exports&&!exports.nodeType&&exports,kn=_r&&"object"==typeof module&&module&&!module.nodeType&&module,zn=kn&&kn.exports===_r&&et.Z.process,At=function(){try{return kn&&kn.require&&kn.require("util").types||zn&&zn.binding&&zn.binding("util")}catch{}}(),_n=At&&At.isTypedArray;const Dr=_n?function Ae(V){return function(ue){return V(ue)}}(_n):function U(V){return(0,Nn.Z)(V)&&Be(V.length)&&!!x[(0,Qn.Z)(V)]};var Mn=Object.prototype.hasOwnProperty;const ko=function Fr(V,ue){var De=(0,Kt.Z)(V),Pe=!De&&ti(V),D=!De&&!Pe&&qt(V),y=!De&&!Pe&&!D&&Dr(V),g=De||Pe||D||y,S=g?function Lo(V,ue){for(var De=-1,Pe=Array(V);++De{A.d(ie,{Z:()=>re});var h=A(7079),p=A(1999);const re=function fe(Y){if(!(0,p.Z)(Y))return!1;var L=(0,h.Z)(Y);return"[object Function]"==L||"[object GeneratorFunction]"==L||"[object AsyncFunction]"==L||"[object Proxy]"==L}},1999:(Oe,ie,A)=>{A.d(ie,{Z:()=>p});const p=function h(X){var ee=typeof X;return null!=X&&("object"==ee||"function"==ee)}},214:(Oe,ie,A)=>{A.d(ie,{Z:()=>p});const p=function h(X){return null!=X&&"object"==typeof X}},5689:(Oe,ie,A)=>{A.d(ie,{Z:()=>Q});var h=A(7079),p=A(4177),X=A(214);const Q=function ae(fe){return"string"==typeof fe||!(0,p.Z)(fe)&&(0,X.Z)(fe)&&"[object String]"==(0,h.Z)(fe)}}},Oe=>{Oe(Oe.s=9079)}]); \ No newline at end of file diff --git a/docs/polyfills.0d1c48b529314817.js b/docs/polyfills.0d1c48b529314817.js new file mode 100644 index 0000000..aab91d3 --- /dev/null +++ b/docs/polyfills.0d1c48b529314817.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[429],{7435:(ie,Ee,de)=>{de(8583)},8583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=m;C&&t._transitionTo(m,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,m):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,m,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,m);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class p{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[P]&&p.removeEventListener(d,We),y&&y.call(p,null),p[P]=v,"function"==typeof v&&p.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const p=v[P];if(p)return p;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(y,d){const P=i(y,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(y,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],P=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),K=y("parentPromiseValue"),x=y("parentPromiseState"),j=null,m=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===m&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const T=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;T&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:T})}for(let T=0;T{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(T,void 0,O&&T!==J&&T!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),m,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let T of u)f++,s.push(t.resolve(T))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const b=[];return new t((T,D)=>{for(let O=0;O{g||(g=!0,T(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new E(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function T(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,T);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),T=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,T--,0===T&&f(O)},F=>{s?(O[V]=s.errorCallback(F),T--,0===T&&f(O)):g(F)})}catch(F){g(F)}T++,D++}return T-=2,0===T&&f(O),b}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{const f=w();u&&u(f(I(s,m)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||t);const b=new g(M),T=n.current;return this[q]==j?this[R].push(T,b,u,s):ee(this,T,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=t);const g=new f(M);g[_]=_;const b=n.current;return this[q]==j?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,b){return new t((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=m=>x.handleEvent(m),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(m){X=m}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const m=Z(X[0],x,_);m&&j.push(m)}else{const m=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let m=R;for(;m&&!m.hasOwnProperty(c);)m=de(m);if(!m&&R[c]&&(m=R),!m||m[P])return!1;const G=_&&_.eventNameToString,h={},I=m[P]=m[c],w=m[A(a)]=m[a],Q=m[A(y)]=m[y],oe=m[A(d)]=m[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=m[A(_.prepend)]=m[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let T=0;Tfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(p){const L=`${i}.${o}::`+p,Z=P.prototype;try{if(Z.hasOwnProperty(p)){const N=e.ObjectGetOwnPropertyDescriptor(Z,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(P.prototype,p,N)):Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],L))}else Z[p]&&(Z[p]=e.wrapWithCurrentZone(Z[p],L))}catch{}}),y.call(n,d,P,v)},e.attachOriginToPatched(n[o],y)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function me(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function P(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(p,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete y[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(p,L){const Z=L[0];let N;"number"==typeof Z?N=y[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete y[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";me(e,n,i,"Timeout"),me(e,n,i,"Interval"),me(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{me(e,"request","cancel","AnimationFrame"),me(e,"mozRequest","mozCancel","AnimationFrame"),me(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(P,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function pt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let P=0;P{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function P(v){const p=v.XMLHttpRequest;if(!p)return;const L=p.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),m=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return m.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),y=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(P)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=7435)}]); \ No newline at end of file diff --git a/docs/polyfills.81b5a0ac59214453.js b/docs/polyfills.81b5a0ac59214453.js deleted file mode 100644 index 1879131..0000000 --- a/docs/polyfills.81b5a0ac59214453.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunknb_form_demo=self.webpackChunknb_form_demo||[]).push([[429],{435:(ie,Ee,de)=>{de(583)},583:()=>{!function(e){const n=e.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,E){n&&n.measure&&n.measure(M,E)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const T=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(T||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class M{constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=M.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&T)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=y;C&&t._transitionTo(y,j),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(j,y):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,y,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(j,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||K).name+"; Execution: "+this.name+")");t._transitionTo(G,j,y);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CM.hasTask(t,r),onScheduleTask:(M,E,t,r)=>M.scheduleTask(t,r),onInvokeTask:(M,E,t,r,k,C)=>M.invokeTask(t,r,k,C),onCancelTask:(M,E,t,r)=>M.cancelTask(t,r)};class v{constructor(E,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=E,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=E,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(E,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,E,t):new d(E,t)}intercept(E,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,E,t,r):t}invoke(E,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,E,t,r,k,C):t.apply(r,k)}handleError(E,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,E,t)}scheduleTask(E,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,E,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(E,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,E,t,r,k):t.callback.apply(r,k)}cancelTask(E,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,E,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(E,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,E,t)}catch(r){this.handleError(E,r)}}_updateTaskCount(E,t){const r=this._taskCounts,k=r[E],C=r[E]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:E})}}class m{constructor(E,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=E,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=E===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(E,t,r){E||(E=this),ee++;try{return E.runCount++,E.zone.runTask(E,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(E,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${E}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=E,E==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let E=J[N];E||(E=J.then),E.call(J,M)}else e[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let E=0;EU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const A=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Fe(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),je=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(e){if(!(e=e||Y.event))return;let n=Re[e.type];n||(n=Re[e.type]=A("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;if(je&&i===Te&&"error"===e.type){const a=e;c=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error),!0===c&&e.preventDefault()}else c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault();return c};function qe(e,n,i){let o=ie(e,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,T=o.set,d=n.substr(2);let b=Re[d];b||(b=Re[d]=A("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,We),T&&T.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(e,n,o),e[c]=!0}function Xe(e,n,i){if(n)for(let o=0;ofunction(T,d){const b=i(T,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(T,d)})}function ue(e,n){e[A("OriginalDelegate")]=n}let ze=!1,Ae=!1;function ft(){if(ze)return Ae;ze=!0;try{const e=Te.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ae=!0)}catch{}return Ae}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,T=i.symbol,d=[],b=!0===e[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=T("Promise"),m=T("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=T("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return t.reject(l)}const q=T("state"),R=T("value"),_=T("finally"),K=T("parentPromiseValue"),x=T("parentPromiseState"),j=null,y=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const oe=T("currentTaskTrace");function z(l,u,s){const f=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}}();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===j){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==j)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===y&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=w);const S=u.run(p,void 0,O&&p!==J&&p!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},E=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),y,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new E([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(t.resolve(p))}catch{return Promise.reject(new E([],"All promises were rejected"))}if(0===f)return Promise.reject(new E([],"All promises were rejected"));let g=!1;const w=[];return new t((p,D)=>{for(let O=0;O{g||(g=!0,p(S))},S=>{w.push(S),f--,0===f&&(g=!0,D(new E(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function w(D){s(D)}function p(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(w,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((S,V)=>{f=S,g=V}),p=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,p--,0===p&&f(O)},F=>{s?(O[V]=s.errorCallback(F),p--,0===p&&f(O)):g(F)})}catch(F){g(F)}p++,D++}return p-=2,0===p&&f(O),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=j,s[R]=[];try{u&&u(I(s,y),I(s,G))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(M),w=n.current;return this[q]==j?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(M);f[_]=_;const g=n.current;return this[q]==j?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=T("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,w){return new t((D,O)=>{f.call(this,D,O)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=A("OriginalDelegate"),o=A("Promise"),c=A("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}});let ye=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=A("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ae,o=(n?n(e):e)+ce,c=ke+i,a=ke+o;te[e]={},te[e][ae]=c,te[e][ce]=a}function dt(e,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,T=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=A(c),v="."+c+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=y=>x.handleEvent(y),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(y){X=y}const j=R.options;return j&&"object"==typeof j&&j.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,j),X};function N(R,_,K){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][K?ce:ae]];if(X){const j=[];if(1===X.length){const y=Z(X[0],x,_);y&&j.push(y)}else{const y=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let j=!1;_&&void 0!==_.rt&&(j=_.rt);let y=R;for(;y&&!y.hasOwnProperty(c);)y=de(y);if(!y&&R[c]&&(y=R),!y||y[b])return!1;const G=_&&_.eventNameToString,h={},I=y[b]=y[c],P=y[A(a)]=y[a],Q=y[A(T)]=y[T],oe=y[A(d)]=y[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=y[A(_.prepend)]=y[_.prepend]);const t=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const w=g&&s.target[g];if(w)for(let p=0;pfunction(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const T=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=b.prototype;if(Z.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,L),e._redefineProperty(b.prototype,m,N)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],L))}),T.call(n,d,b,v)},e.attachOriginToPatched(n[o],T)}function et(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(e,n,i,o){e&&Xe(e,et(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:je,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=A("zoneTask");function me(e,n,i,o){let c=null,a=null;i+=o;const T={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function b(v){return a.call(e,v.data.handleId)}c=le(e,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete T[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?T[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,L)}),a=le(e,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=T[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete T[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(e,L)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{i.patchMethod(e,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",e=>{const n="set",i="clear";me(e,n,i,"Timeout"),me(e,n,i,"Interval"),me(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{me(e,"request","cancel","AnimationFrame"),me(e,"mozRequest","mozCancel","AnimationFrame"),me(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function pt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:T}=n.getGlobalObjects();for(let b=0;b{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Ue||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(je){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=Te.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Ze],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===J){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[T]=I[1],K.apply(h,I)}),X=A("fetchTaskAborting"),j=A("fetchTaskScheduling"),y=le(L,"send",()=>function(h,I){if(!0===n.current[j]||h[o])return y.apply(h,I);{const P={target:h,url:h[T],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const P=function Z(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=A("xhrTask"),o=A("xhrSync"),c=A("xhrListener"),a=A("xhrScheduled"),T=A("xhrURL"),d=A("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Qe(e,o).forEach(T=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});T.invoke(b)}})}}e.PromiseRejectionEvent&&(n[A("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[A("rejectionHandledHandler")]=i("rejectionhandled"))})}},ie=>{ie(ie.s=435)}]); \ No newline at end of file diff --git a/docs/runtime.1b581a2fa8e17068.js b/docs/runtime.1b581a2fa8e17068.js new file mode 100644 index 0000000..8eaf4cb --- /dev/null +++ b/docs/runtime.1b581a2fa8e17068.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(n,t,i,f)=>{if(!t){var a=1/0;for(o=0;o=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,f0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,i,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+".179c4a768e318e00.js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="nb-form-demo:";r.l=(t,i,f,o)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==f)for(var u=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(h=>h(b)),_)return _(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var o=r.o(e,i)?e[i]:void 0;if(0!==o)if(o)f.push(o[2]);else if(666!=i){var a=new Promise((d,c)=>o=e[i]=[d,c]);f.push(o[2]=a);var s=r.p+r.u(i),u=new Error;r.l(s,d=>{if(r.o(e,i)&&(0!==(o=e[i])&&(e[i]=void 0),o)){var c=d&&("load"===d.type?"missing":d.type),p=d&&d.target&&d.target.src;u.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,o[1](u)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,f)=>{var u,l,[o,a,s]=f,d=0;if(o.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(i&&i(f);d{"use strict";var e,v={},b={};function n(e){var a=b[e];if(void 0!==a)return a.exports;var r=b[e]={exports:{}};return v[e](r,r.exports,n),r.exports}n.m=v,e=[],n.O=(a,r,t,o)=>{if(!r){var c=1/0;for(f=0;f=o)&&Object.keys(n.O).every(i=>n.O[i](r[l]))?r.splice(l--,1):(s=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,t,o]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=t=>0===e[t];var a=(t,o)=>{var l,u,[f,c,s]=o,_=0;if(f.some(h=>0!==e[h])){for(l in c)n.o(c,l)&&(n.m[l]=c[l]);if(s)var d=s(n)}for(t&&t(o);_