1 line
1.3 MiB

(self.webpackChunkDigitalData_UserManager_NgWebUI=self.webpackChunkDigitalData_UserManager_NgWebUI||[]).push([[792],{426:(ba,Vo,Fi)=>{"use strict";function Ii(t,n,e,i,r,o,s){try{var a=t[o](s),c=a.value}catch(l){return void e(l)}a.done?n(c):Promise.resolve(c).then(i,r)}function Zi(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function s(c){Ii(o,i,r,s,a,"next",c)}function a(c){Ii(o,i,r,s,a,"throw",c)}s(void 0)})}}let yn=null,bs=1;const no=Symbol("SIGNAL");function Je(t){const n=yn;return yn=t,n}function _s(t){if((!ws(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==bs)){if(!t.producerMustRecompute(t)&&!ys(t))return t.dirty=!1,void(t.lastCleanEpoch=bs);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=bs}}function ys(t){Cs(t);for(let n=0;n<t.producerNode.length;n++){const e=t.producerNode[n],i=t.producerLastReadVersion[n];if(i!==e.version||(_s(e),i!==e.version))return!0}return!1}function lc(t,n){if(function vl(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}(t),Cs(t),1===t.liveConsumerNode.length)for(let i=0;i<t.producerNode.length;i++)lc(t.producerNode[i],t.producerIndexOfThis[i]);const e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const i=t.liveConsumerIndexOfThis[n],r=t.liveConsumerNode[n];Cs(r),r.producerIndexOfThis[i]=n}}function ws(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Cs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Zu=null;function ue(t){return"function"==typeof t}function pn(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Ot=pn(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function et(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class Ge{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(ue(i))try{i()}catch(o){n=o instanceof Ot?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Mr(o)}catch(s){n=n??[],s instanceof Ot?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Ot(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Mr(n);else{if(n instanceof Ge){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&et(e,n)}remove(n){const{_finalizers:e}=this;e&&et(e,n),n instanceof Ge&&n._removeParent(this)}}Ge.EMPTY=(()=>{const t=new Ge;return t.closed=!0,t})();const wn=Ge.EMPTY;function bt(t){return t instanceof Ge||t&&"closed"in t&&ue(t.remove)&&ue(t.add)&&ue(t.unsubscribe)}function Mr(t){ue(t)?t():t.unsubscribe()}const kr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ii={setTimeout(t,n,...e){const{delegate:i}=ii;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=ii;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Uo(t){ii.setTimeout(()=>{const{onUnhandledError:n}=kr;if(!n)throw t;n(t)})}function Jt(){}const jo=io("C",void 0,void 0);function io(t,n,e){return{kind:t,value:n,error:e}}let Qi=null;function Xu(t){if(kr.useDeprecatedSynchronousErrorHandling){const n=!Qi;if(n&&(Qi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Qi;if(Qi=null,e)throw i}}else t()}class _a extends Ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,bt(n)&&n.add(this)):this.destination=Jw}static create(n,e,i){return new wl(n,e,i)}next(n){this.isStopped?mc(function gr(t){return io("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?mc(function hc(t){return io("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?mc(jo,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Cb=Function.prototype.bind;function pc(t,n){return Cb.call(t,n)}class xg{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){fc(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){fc(i)}else fc(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){fc(e)}}}class wl extends _a{constructor(n,e,i){let r;if(super(),ue(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&kr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&pc(n.next,o),error:n.error&&pc(n.error,o),complete:n.complete&&pc(n.complete,o)}):r=n}this.destination=new xg(r)}}function fc(t){kr.useDeprecatedSynchronousErrorHandling?function gc(t){kr.useDeprecatedSynchronousErrorHandling&&Qi&&(Qi.errorThrown=!0,Qi.error=t)}(t):Uo(t)}function mc(t,n){const{onStoppedNotification:e}=kr;e&&ii.setTimeout(()=>e(t,n))}const Jw={closed:!0,next:Jt,error:function Ig(t){throw t},complete:Jt},Ti="function"==typeof Symbol&&Symbol.observable||"@@observable";function ri(t){return t}function Xi(t){return 0===t.length?ri:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let rt=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function Dt(t){return t&&t instanceof _a||function Db(t){return t&&ue(t.next)&&ue(t.error)&&ue(t.complete)}(t)&&bt(t)}(e)?e:new wl(e,i,r);return Xu(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Tg(i))((r,o)=>{const s=new wl({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Ti](){return this}pipe(...e){return Xi(e)(this)}toPromise(e){return new(e=Tg(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function Tg(t){var n;return null!==(n=t??kr.Promise)&&void 0!==n?n:Promise}const ro=pn(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let se=(()=>{class t extends rt{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Ds(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new ro}next(e){Xu(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Xu(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Xu(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?wn:(this.currentObservers=null,o.push(e),new Ge(()=>{this.currentObservers=null,et(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new rt;return e.source=this,e}}return t.create=(n,e)=>new Ds(n,e),t})();class Ds extends se{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:wn}}class dt extends se{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function oi(t){return ue(t?.lift)}function qt(t){return n=>{if(oi(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Mt(t,n,e,i,r){return new Cl(t,n,e,i,r)}class Cl extends _a{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=r?function(a){try{r(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Me(t,n){return qt((e,i)=>{let r=0;e.subscribe(Mt(i,o=>{i.next(t.call(n,o,r++))}))})}const Mg="https://g.co/ng/security#xss";class H extends Error{constructor(n,e){super(function Es(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function Go(t){return{toString:t}.toString()}const vc="__parameters__";function yc(t,n,e){return Go(()=>{const i=function Dl(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(c,l,u){const h=c.hasOwnProperty(vc)?c[vc]:Object.defineProperty(c,vc,{value:[]})[vc];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),c}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const vt=globalThis;function Bt(t){for(let n in t)if(t[n]===Bt)return n;throw Error("Could not find renamed property on target object.")}function Ag(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Nn(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Nn).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Rg(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const tC=Bt({__forward_ref__:Bt});function _t(t){return t.__forward_ref__=_t,t.toString=function(){return Nn(this())},t}function _e(t){return ed(t)?t():t}function ed(t){return"function"==typeof t&&t.hasOwnProperty(tC)&&t.__forward_ref__===_t}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ie(t){return{providers:t.providers||[],imports:t.imports||[]}}function nd(t){return xb(t,id)||xb(t,Ib)}function xb(t,n){return t.hasOwnProperty(n)?t[n]:null}function El(t){return t&&(t.hasOwnProperty(rd)||t.hasOwnProperty(lC))?t[rd]:null}const id=Bt({\u0275prov:Bt}),rd=Bt({\u0275inj:Bt}),Ib=Bt({ngInjectableDef:Bt}),lC=Bt({ngInjectorDef:Bt});class W{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Is(t){return t&&!!t.\u0275providers}const Sl=Bt({\u0275cmp:Bt}),cd=Bt({\u0275dir:Bt}),ld=Bt({\u0275pipe:Bt}),Tb=Bt({\u0275mod:Bt}),$o=Bt({\u0275fac:Bt}),xl=Bt({__NG_ELEMENT_ID__:Bt}),Mb=Bt({__NG_ENV_ID__:Bt});function Ze(t){return"string"==typeof t?t:null==t?"":String(t)}function Pg(t,n){throw new H(-201,!1)}var tt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(tt||{});let Lg;function Bg(){return Lg}function qn(t){const n=Lg;return Lg=t,n}function Ab(t,n,e){const i=nd(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&tt.Optional?null:void 0!==n?n:void Pg()}const Cc={},Ts="__NG_DI_FLAG__",ud="ngTempTokenPath",gC=/\n/gm,Rb="__source";let Dc;function Ms(t){const n=Dc;return Dc=t,n}function mC(t,n=tt.Default){if(void 0===Dc)throw new H(-203,!1);return null===Dc?Ab(t,void 0,n):Dc.get(t,n&tt.Optional?null:void 0,n)}function I(t,n=tt.Default){return(Bg()||mC)(_e(t),n)}function x(t,n=tt.Default){return I(t,ya(n))}function ya(t){return typeof t>"u"||"number"==typeof t?t:(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Hg(t){const n=[];for(let e=0;e<t.length;e++){const i=_e(t[e]);if(Array.isArray(i)){if(0===i.length)throw new H(900,!1);let r,o=tt.Default;for(let s=0;s<i.length;s++){const a=i[s],c=bC(a);"number"==typeof c?-1===c?r=a.token:o|=c:r=a}n.push(I(r,o))}else n.push(I(i))}return n}function Il(t,n){return t[Ts]=n,t.prototype[Ts]=n,t}function bC(t){return t[Ts]}const ks=Il(yc("Optional"),8),wa=Il(yc("SkipSelf"),4);function Ca(t,n){return t.hasOwnProperty($o)?t[$o]:null}function Da(t,n){t.forEach(e=>Array.isArray(e)?Da(e,n):n(e))}function jg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Tl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function er(t,n,e){let i=Ec(t,n);return i>=0?t[1|i]=e:(i=~i,function Gg(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function $g(t,n){const e=Ec(t,n);if(e>=0)return t[1|e]}function Ec(t,n){return function zg(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<<e];if(n===s)return o<<e;s>n?r=o:i=o+1}return~(r<<e)}(t,n,1)}const Ar={},Et=[],Ea=new W(""),Pb=new W("",-1),Wg=new W("");class Al{get(n,e=Cc){if(e===Cc){const i=new Error(`NullInjectorError: No provider for ${Nn(n)}!`);throw i.name="NullInjectorError",i}return e}}var gd=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(gd||{}),pr=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(pr||{}),ee=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ee||{});function Lb(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}function Rl(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],s=e[i++],a=e[i++];t.setAttribute(n,s,a,o)}else{const o=r,s=e[++i];Vb(o)?t.setProperty(n,o,s):t.setAttribute(n,o,s),i++}}return i}function Bb(t){return 3===t||4===t||6===t}function Vb(t){return 64===t.charCodeAt(0)}function Nl(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||Hb(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function Hb(t,n,e,i,r){let o=0,s=t.length;if(-1===n)s=-1;else for(;o<t.length;){const a=t[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<t.length;){const a=t[o];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,n),o=s+1),t.splice(o++,0,e),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}const Ol="ng-template";function wC(t,n,e,i){let r=0;if(i){for(;r<n.length&&"string"==typeof n[r];r+=2)if("class"===n[r]&&-1!==Lb(n[r+1].toLowerCase(),e,0))return!0}else if(qg(t))return!1;if(r=n.indexOf(1,r),r>-1){let o;for(;++r<n.length&&"string"==typeof(o=n[r]);)if(o.toLowerCase()===e)return!0}return!1}function qg(t){return 4===t.type&&t.value!==Ol}function CC(t,n,e){return n===(4!==t.type||e?t.value:Ol)}function DC(t,n,e){let i=4;const r=t.attrs,o=null!==r?function xC(t){for(let n=0;n<t.length;n++)if(Bb(t[n]))return n;return t.length}(r):0;let s=!1;for(let a=0;a<n.length;a++){const c=n[a];if("number"!=typeof c){if(!s)if(4&i){if(i=2|1&i,""!==c&&!CC(t,c,e)||""===c&&1===n.length){if(fr(i))return!1;s=!0}}else if(8&i){if(null===r||!wC(t,r,c,e)){if(fr(i))return!1;s=!0}}else{const l=n[++a],u=EC(c,r,qg(t),e);if(-1===u){if(fr(i))return!1;s=!0;continue}if(""!==l){let h;if(h=u>o?"":r[u+1].toLowerCase(),2&i&&l!==h){if(fr(i))return!1;s=!0}}}}else{if(!s&&!fr(i)&&!fr(c))return!1;if(s&&fr(c))continue;s=!1,i=c|1&i}}return fr(i)||s}function fr(t){return!(1&t)}function EC(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){const s=n[r];if(s===t)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function jb(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function Ub(t,n,e=!1){for(let i=0;i<n.length;i++)if(DC(t,n[i],e))return!0;return!1}function Gb(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function $b(t,n){return t?":not("+n.trim()+")":n}function IC(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let s=t[e];if("string"==typeof s)if(2&i){const a=t[++e];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!fr(s)&&(n+=$b(o,r),r=""),i=s,o=o||!fr(i);e++}return""!==r&&(n+=$b(o,r)),n}function V(t){return Go(()=>{const n=qb(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===gd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||pr.Emulated,styles:t.styles||Et,_:null,schemas:t.schemas||null,tView:null,id:""};Yb(e);const i=t.dependencies;return e.directiveDefs=pd(i,!1),e.pipeDefs=pd(i,!0),e.id=function Kb(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const r of e)n=Math.imul(31,n)+r.charCodeAt(0)|0;return n+=2147483648,"c"+n}(e),e})}function MC(t){return ht(t)||On(t)}function kC(t){return null!==t}function re(t){return Go(()=>({type:t.type,bootstrap:t.bootstrap||Et,declarations:t.declarations||Et,imports:t.imports||Et,exports:t.exports||Et,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Wb(t,n){if(null==t)return Ar;const e={};for(const i in t)if(t.hasOwnProperty(i)){const r=t[i];let o,s,a=ee.None;Array.isArray(r)?(a=r[0],o=r[1],s=r[2]??o):(o=r,s=r),n?(e[o]=a!==ee.None?[i,a]:i,n[o]=s):e[o]=i}return e}function N(t){return Go(()=>{const n=qb(t);return Yb(n),n})}function Yn(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function ht(t){return t[Sl]||null}function On(t){return t[cd]||null}function si(t){return t[ld]||null}function vi(t,n){const e=t[Tb]||null;if(!e&&!0===n)throw new Error(`Type ${Nn(t)} does not have '\u0275mod' property.`);return e}function qb(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Ar,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Et,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Wb(t.inputs,n),outputs:Wb(t.outputs),debugInfo:null}}function Yb(t){t.features?.forEach(n=>n(t))}function pd(t,n){if(!t)return null;const e=n?si:MC;return()=>("function"==typeof t?t():t).map(i=>e(i)).filter(kC)}function AC(...t){return{\u0275providers:Yg(0,t),\u0275fromNgModule:!0}}function Yg(t,...n){const e=[],i=new Set;let r;const o=s=>{e.push(s)};return Da(n,s=>{const a=s;fd(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Zb(r,o),e}function Zb(t,n){for(let e=0;e<t.length;e++){const{ngModule:i,providers:r}=t[e];Kg(r,o=>{n(o,i)})}}function fd(t,n,e,i){if(!(t=_e(t)))return!1;let r=null,o=El(t);const s=!o&&ht(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const c=t.ngModule;if(o=El(c),!o)return!1;r=c}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)fd(l,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let l;i.add(r);try{Da(o.imports,u=>{fd(u,n,e,i)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Zb(l,n)}if(!a){const l=Ca(r)||(()=>new r);n({provide:r,useFactory:l,deps:Et},r),n({provide:Wg,useValue:r,multi:!0},r),n({provide:Ea,useValue:()=>I(r),multi:!0},r)}const c=o.providers;if(null!=c&&!a){const l=t;Kg(c,u=>{n(u,l)})}}}return r!==t&&void 0!==t.providers}function Kg(t,n){for(let e of t)Is(e)&&(e=e.\u0275providers),Array.isArray(e)?Kg(e,n):n(e)}const NC=Bt({provide:String,useValue:Bt});function Zg(t){return null!==t&&"object"==typeof t&&NC in t}function Gt(t){return"function"==typeof t}const Qg=new W(""),md={},FC={};let Xg;function bd(){return void 0===Xg&&(Xg=new Al),Xg}class _i{}class xa extends _i{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ce(n,s=>this.processProvider(s)),this.records.set(Pb,p(void 0,this)),r.has("environment")&&this.records.set(_i,p(void 0,this));const o=this.records.get(Qg);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Wg,Et,tt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=Je(null);try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Je(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const e=Ms(this),i=qn(void 0);try{return n()}finally{Ms(e),qn(i)}}get(n,e=Cc,i=tt.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Mb))return n[Mb](this);i=ya(i);const o=Ms(this),s=qn(void 0);try{if(!(i&tt.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function Z(t){return"function"==typeof t||"object"==typeof t&&t instanceof W}(n)&&nd(n);c=l&&this.injectableDefInScope(l)?p(vd(n),md):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(i&tt.Self?bd():this.parent).get(n,e=i&tt.Optional&&e===Cc?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[ud]=a[ud]||[]).unshift(Nn(n)),o)throw a;return function Nb(t,n,e,i){const r=t[ud];throw n[Rb]&&r.unshift(n[Rb]),t.message=function vC(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=Nn(n);if(Array.isArray(n))r=n.map(Nn).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Nn(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(gC,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[ud]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{qn(s),Ms(o)}}resolveInjectorInitializers(){const n=Je(null),e=Ms(this),i=qn(void 0);try{const o=this.get(Ea,Et,tt.Self);for(const s of o)s()}finally{Ms(e),qn(i),Je(n)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Nn(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new H(205,!1)}processProvider(n){let e=Gt(n=_e(n))?n:_e(n&&n.provide);const i=function b(t){return Zg(t)?p(void 0,t.useValue):p(d(t),md)}(n);if(!Gt(n)&&!0===n.multi){let r=this.records.get(e);r||(r=p(void 0,md,!0),r.factory=()=>Hg(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){const i=Je(null);try{return e.value===md&&(e.value=FC,e.value=e.factory()),"object"==typeof e.value&&e.value&&function T(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Je(i)}}injectableDefInScope(n){if(!n.providedIn)return!1;const e=_e(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function vd(t){const n=nd(t),e=null!==n?n.factory:Ca(t);if(null!==e)return e;if(t instanceof W)throw new H(204,!1);if(t instanceof Function)return function _d(t){if(t.length>0)throw new H(204,!1);const e=function cC(t){return t&&(t[id]||t[Ib])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new H(204,!1)}function d(t,n,e){let i;if(Gt(t)){const r=_e(t);return Ca(r)||vd(r)}if(Zg(t))i=()=>_e(t.useValue);else if(function Pl(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Hg(t.deps||[]));else if(function Rr(t){return!(!t||!t.useExisting)}(t))i=()=>I(_e(t.useExisting));else{const r=_e(t&&(t.useClass||t.provide));if(!function m(t){return!!t.deps}(t))return Ca(r)||vd(r);i=()=>new r(...Hg(t.deps))}return i}function p(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Ce(t,n){for(const e of t)Array.isArray(e)?Ce(e,n):e&&Is(e)?Ce(e.\u0275providers,n):n(e)}function ze(t,n){t instanceof xa&&t.assertNotDestroyed();const i=Ms(t),r=qn(void 0);try{return n()}finally{Ms(i),qn(r)}}function pt(){return void 0!==Bg()||null!=function fC(){return Dc}()}const fn=0,le=1,Be=2,Fn=3,zo=4,Li=5,Nr=6,yd=7,nn=8,ki=9,Wo=10,We=11,ep=12,Jk=13,wd=14,Dn=15,tp=16,Cd=17,Ia=18,np=19,eA=20,Sc=21,Xb=22,Ll=23,ot=25,LC=1,Rs=7,Dd=9,Pn=10;var BC=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(BC||{});function Bi(t){return Array.isArray(t)&&"object"==typeof t[LC]}function Vi(t){return Array.isArray(t)&&!0===t[LC]}function VC(t){return!!(4&t.flags)}function Bl(t){return t.componentOffset>-1}function ev(t){return!(1&~t.flags)}function qo(t){return!!t.template}function HC(t){return!!(512&t[Be])}class s6{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function rA(t,n,e,i){null!==n?n.applyValueToInputSignal(n,i):t[e]=i}function we(){return oA}function oA(t){return t.type.prototype.ngOnChanges&&(t.setInput=c6),a6}function a6(){const t=aA(this),n=t?.current;if(n){const e=t.previous;if(e===Ar)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function c6(t,n,e,i,r){const o=this.declaredInputs[i],s=aA(t)||function l6(t,n){return t[sA]=n}(t,{previous:Ar,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new s6(l&&l.currentValue,e,c===Ar),rA(t,n,r,e)}we.ngInherit=!0;const sA="__ngSimpleChanges__";function aA(t){return t[sA]||null}const Ns=function(t,n,e){};let uA=!1;function Kt(t){for(;Array.isArray(t);)t=t[fn];return t}function rp(t,n){return Kt(n[t])}function tr(t,n){return Kt(n[t.index])}function op(t,n){return t.data[n]}function Ed(t,n){return t[n]}function Or(t,n){const e=n[t];return Bi(e)?e:e[fn]}function zC(t){return!(128&~t[Be])}function Os(t,n){return null==n?null:t[n]}function dA(t){t[Cd]=0}function f6(t){1024&t[Be]||(t[Be]|=1024,zC(t)&&sp(t))}function WC(t){return!!(9216&t[Be]||t[Ll]?.dirty)}function qC(t){t[Wo].changeDetectionScheduler?.notify(1),WC(t)?sp(t):64&t[Be]&&(function d6(){return uA}()?(t[Be]|=1024,sp(t)):t[Wo].changeDetectionScheduler?.notify())}function sp(t){t[Wo].changeDetectionScheduler?.notify();let n=Vl(t);for(;null!==n&&!(8192&n[Be])&&(n[Be]|=8192,zC(n));)n=Vl(n)}function tv(t,n){if(!(256&~t[Be]))throw new H(911,!1);null===t[Sc]&&(t[Sc]=[]),t[Sc].push(n)}function Vl(t){const n=t[Fn];return Vi(n)?n[Fn]:n}const qe={lFrame:wA(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function pA(){return qe.bindingsEnabled}function Sd(){return null!==qe.skipHydrationRootTNode}function Q(){return qe.lFrame.lView}function wt(){return qe.lFrame.tView}function $(t){return qe.lFrame.contextLView=t,t[nn]}function z(t){return qe.lFrame.contextLView=null,t}function $t(){let t=fA();for(;null!==t&&64===t.type;)t=t.parent;return t}function fA(){return qe.lFrame.currentTNode}function Fs(t,n){const e=qe.lFrame;e.currentTNode=t,e.isParent=n}function KC(){return qe.lFrame.isParent}function ZC(){qe.lFrame.isParent=!1}function nr(){const t=qe.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Yo(){return qe.lFrame.bindingIndex++}function Ma(t){const n=qe.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function x6(t,n){const e=qe.lFrame;e.bindingIndex=e.bindingRootIndex=t,QC(n)}function QC(t){qe.lFrame.currentDirectiveIndex=t}function JC(){return qe.lFrame.currentQueryIndex}function nv(t){qe.lFrame.currentQueryIndex=t}function T6(t){const n=t[le];return 2===n.type?n.declTNode:1===n.type?t[Li]:null}function _A(t,n,e){if(e&tt.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&tt.Host||(r=T6(o),null===r||(o=o[wd],10&r.type))););if(null===r)return!1;n=r,t=o}const i=qe.lFrame=yA();return i.currentTNode=n,i.lView=t,!0}function eD(t){const n=yA(),e=t[le];qe.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function yA(){const t=qe.lFrame,n=null===t?null:t.child;return null===n?wA(t):n}function wA(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function CA(){const t=qe.lFrame;return qe.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const DA=CA;function tD(){const t=CA();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Hi(){return qe.lFrame.selectedIndex}function Hl(t){qe.lFrame.selectedIndex=t}function rn(){const t=qe.lFrame;return op(t.tView,t.selectedIndex)}function Ln(){qe.lFrame.currentNamespace="svg"}function Ps(){!function A6(){qe.lFrame.currentNamespace=null}()}let SA=!0;function cp(){return SA}function Ls(t){SA=t}function iv(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-e,s),a&&((t.contentHooks??=[]).push(e,a),(t.contentCheckHooks??=[]).push(e,a)),c&&(t.viewHooks??=[]).push(-e,c),l&&((t.viewHooks??=[]).push(e,l),(t.viewCheckHooks??=[]).push(e,l)),null!=u&&(t.destroyHooks??=[]).push(e,u)}}function rv(t,n,e){xA(t,n,3,e)}function ov(t,n,e,i){(3&t[Be])===e&&xA(t,n,e,i)}function nD(t,n){let e=t[Be];(3&e)===n&&(e&=16383,e+=1,t[Be]=e)}function xA(t,n,e,i){const o=i??-1,s=n.length-1;let a=0;for(let c=void 0!==i?65535&t[Cd]:0;c<s;c++)if("number"==typeof n[c+1]){if(a=n[c],null!=i&&a>=i)break}else n[c]<0&&(t[Cd]+=65536),(a<o||-1==o)&&(N6(t,e,n,c),t[Cd]=(4294901760&t[Cd])+c+2),c++}function IA(t,n){Ns(4,t,n);const e=Je(null);try{n.call(t)}finally{Je(e),Ns(5,t,n)}}function N6(t,n,e,i){const r=e[i]<0,o=e[i+1],a=t[r?-e[i]:e[i]];r?t[Be]>>14<t[Cd]>>16&&(3&t[Be])===n&&(t[Be]+=16384,IA(a,o)):IA(a,o)}const xd=-1;class lp{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function rD(t){return t!==xd}function up(t){return 32767&t}function dp(t,n){let e=function B6(t){return t>>16}(t),i=n;for(;e>0;)i=i[wd],e--;return i}let oD=!0;function sv(t){const n=oD;return oD=t,n}const TA=255,MA=5;let V6=0;const Bs={};function av(t,n){const e=kA(t,n);if(-1!==e)return e;const i=n[le];i.firstCreatePass&&(t.injectorIndex=n.length,sD(i.data,t),sD(n,null),sD(i.blueprint,null));const r=cv(t,n),o=t.injectorIndex;if(rD(r)){const s=up(r),a=dp(r,n),c=a[le].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=r,o}function sD(t,n){t.push(0,0,0,0,0,0,0,0,n)}function kA(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function cv(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=LA(r),null===i)return xd;if(e++,r=r[wd],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return xd}function aD(t,n,e){!function H6(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(xl)&&(i=e[xl]),null==i&&(i=e[xl]=V6++);const r=i&TA;n.data[t+(r>>MA)]|=1<<r}(t,n,e)}function AA(t,n,e){if(e&tt.Optional||void 0!==t)return t;Pg()}function RA(t,n,e,i){if(e&tt.Optional&&void 0===i&&(i=null),!(e&(tt.Self|tt.Host))){const r=t[ki],o=qn(void 0);try{return r?r.get(n,i,e&tt.Optional):Ab(n,i,e&tt.Optional)}finally{qn(o)}}return AA(i,0,e)}function NA(t,n,e,i=tt.Default,r){if(null!==t){if(2048&n[Be]&&!(i&tt.Self)){const s=function z6(t,n,e,i,r){let o=t,s=n;for(;null!==o&&null!==s&&2048&s[Be]&&!(512&s[Be]);){const a=OA(o,s,e,i|tt.Self,Bs);if(a!==Bs)return a;let c=o.parent;if(!c){const l=s[eA];if(l){const u=l.get(e,Bs,i);if(u!==Bs)return u}c=LA(s),s=s[wd]}o=c}return r}(t,n,e,i,Bs);if(s!==Bs)return s}const o=OA(t,n,e,i,Bs);if(o!==Bs)return o}return RA(n,e,i,r)}function OA(t,n,e,i,r){const o=function G6(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(xl)?t[xl]:void 0;return"number"==typeof n?n>=0?n&TA:$6:n}(e);if("function"==typeof o){if(!_A(n,t,i))return i&tt.Host?AA(r,0,i):RA(n,e,i,r);try{let s;if(s=o(i),null!=s||i&tt.Optional)return s;Pg()}finally{DA()}}else if("number"==typeof o){let s=null,a=kA(t,n),c=xd,l=i&tt.Host?n[Dn][Li]:null;for((-1===a||i&tt.SkipSelf)&&(c=-1===a?cv(t,n):n[a+8],c!==xd&&PA(i,!1)?(s=n[le],a=up(c),n=dp(c,n)):a=-1);-1!==a;){const u=n[le];if(FA(o,a,u.data)){const h=j6(a,n,e,s,i,l);if(h!==Bs)return h}c=n[a+8],c!==xd&&PA(i,n[le].data[a+8]===l)&&FA(o,a,n)?(s=u,a=up(c),n=dp(c,n)):a=-1}}return r}function j6(t,n,e,i,r,o){const s=n[le],a=s.data[t+8],u=lv(a,s,e,null==i?Bl(a)&&oD:i!=s&&!!(3&a.type),r&tt.Host&&o===a);return null!==u?Ul(n,s,u,a):Bs}function lv(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,c=t.directiveStart,u=o>>20,f=r?a+u:t.directiveEnd;for(let v=i?a:a+u;v<f;v++){const y=s[v];if(v<c&&e===y||v>=c&&y.type===e)return v}if(r){const v=s[c];if(v&&qo(v)&&v.type===e)return c}return null}function Ul(t,n,e,i){let r=t[e];const o=n.data;if(function O6(t){return t instanceof lp}(r)){const s=r;s.resolving&&function dC(t,n){throw n&&n.join(" > "),new H(-200,t)}(function kt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ze(t)}(o[e]));const a=sv(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?qn(s.injectImpl):null;_A(t,i,tt.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function R6(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=oA(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}r&&(e.preOrderHooks??=[]).push(0-t,r),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}(e,o[e],n)}finally{null!==l&&qn(l),sv(a),s.resolving=!1,DA()}}return r}function FA(t,n,e){return!!(e[n+(t>>MA)]&1<<t)}function PA(t,n){return!(t&tt.Self||t&tt.Host&&n)}class ci{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return NA(this._tNode,this._lView,n,ya(i),e)}}function $6(){return new ci($t(),Q())}function Ne(t){return Go(()=>{const n=t.prototype.constructor,e=n[$o]||cD(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[$o]||cD(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function cD(t){return ed(t)?()=>{const n=cD(_e(t));return n&&n()}:Ca(t)}function LA(t){const n=t[le],e=n.type;return 2===e?n.declTNode:1===e?t[Li]:null}function so(t){return function U6(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if(Bb(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===n)return e[r+1];r+=2}}}return null}($t(),t)}function jA(t,n=null,e=null,i){const r=GA(t,n,e,i);return r.resolveInjectorInitializers(),r}function GA(t,n=null,e=null,i,r=new Set){const o=[e||Et,AC(t)];return i=i||("object"==typeof t?void 0:Nn(t)),new xa(o,n||bd(),i||null,r)}let He=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Cc;static#t=this.NULL=new Al;static create(e,i){if(Array.isArray(e))return jA({name:""},i,e,"");{const r=e.name??"";return jA({name:r},e.parent,e.providers,r)}}static#n=this.\u0275prov=R({token:t,providedIn:"any",factory:()=>I(Pb)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function uD(t){return t.ngOriginalError}class ao{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&uD(n);for(;e&&uD(e);)e=uD(e);return e||null}}const zA=new W("",{providedIn:"root",factory:()=>x(ao).handleError.bind(void 0)});let Vs=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=eW;static#t=this.__NG_ENV_ID__=e=>e}return t})();class J6 extends Vs{constructor(n){super(),this._lView=n}onDestroy(n){return tv(this._lView,n),()=>function YC(t,n){if(null===t[Sc])return;const e=t[Sc].indexOf(n);-1!==e&&t[Sc].splice(e,1)}(this._lView,n)}}function eW(){return new J6(Q())}function tW(){return Md($t(),Q())}function Md(t,n){return new F(tr(t,n))}let F=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=tW}return t})();function qA(t){return t instanceof F?t.nativeElement:t}function dD(t){return n=>{setTimeout(t,void 0,n)}}const X=class nW extends se{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,pt()&&(this.destroyRef=x(Vs,{optional:!0})??void 0)}emit(n){const e=Je(null);try{super.next(n)}finally{Je(e)}}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const c=n;r=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=dD(o),r&&(r=dD(r)),s&&(s=dD(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof Ge&&n.add(a),a}};function iW(){return this._results[Symbol.iterator]()}class kd{static#e=Symbol.iterator;get changes(){return this._changes??=new X}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const e=kd.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=iW)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;const i=function Mi(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Fb(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function dv(t){return!(128&~t.flags)}let hD;function xc(){if(void 0!==hD)return hD;if(typeof document<"u")return document;throw new H(210,!1)}const gv=new W("",{providedIn:"root",factory:()=>sW}),sW="ng",ZA=new W(""),Kn=new W("",{providedIn:"platform",factory:()=>"unknown"}),Hs=new W(""),gD=new W("",{providedIn:"root",factory:()=>xc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let QA=()=>null;function wD(t,n,e=!1){return QA(t,n,e)}const iR=new W("",{providedIn:"root",factory:()=>!1});let yv,wv;function Od(t){return function SD(){if(void 0===yv&&(yv=null,vt.trustedTypes))try{yv=vt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return yv}()?.createHTML(t)||t}function xD(){if(void 0===wv&&(wv=null,vt.trustedTypes))try{wv=vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return wv}function oR(t){return xD()?.createHTML(t)||t}function aR(t){return xD()?.createScriptURL(t)||t}class jl{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mg})`}}class _W extends jl{getTypeName(){return"HTML"}}class yW extends jl{getTypeName(){return"Style"}}class wW extends jl{getTypeName(){return"Script"}}class CW extends jl{getTypeName(){return"URL"}}class DW extends jl{getTypeName(){return"ResourceURL"}}function Fr(t){return t instanceof jl?t.changingThisBreaksApplicationSecurity:t}function Us(t,n){const e=function EW(t){return t instanceof jl&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Mg})`)}return e===n}class kW{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(Od(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class AW{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=Od(n),e}}const NW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cv(t){return(t=String(t)).match(NW)?t:"unsafe:"+t}function ka(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function mp(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const lR=ka("area,br,col,hr,img,wbr"),uR=ka("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dR=ka("rp,rt"),ID=mp(lR,mp(uR,ka("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),mp(dR,ka("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),mp(dR,uR)),TD=ka("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),hR=mp(TD,ka("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ka("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),OW=ka("script,style,template");class FW{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)r.push(e),e=BW(e);else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=LW(e);if(o){e=o;break}e=r.pop()}return this.buf.join("")}startElement(n){const e=gR(n).toLowerCase();if(!ID.hasOwnProperty(e))return this.sanitizedSomething=!0,!OW.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!hR.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;TD[a]&&(c=Cv(c)),this.buf.push(" ",s,'="',fR(c),'"')}return this.buf.push(">"),!0}endElement(n){const e=gR(n).toLowerCase();ID.hasOwnProperty(e)&&!lR.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(fR(n))}}function LW(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw pR(n);return n}function BW(t){const n=t.firstChild;if(n&&function PW(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw pR(n);return n}function gR(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function pR(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const VW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,HW=/([^\#-~ |!])/g;function fR(t){return t.replace(/&/g,"&amp;").replace(VW,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(HW,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Dv;function mR(t,n){let e=null;try{Dv=Dv||function cR(t){const n=new AW(t);return function RW(){try{return!!(new window.DOMParser).parseFromString(Od(""),"text/html")}catch{return!1}}()?new kW(n):n}(t);let i=n?String(n):"";e=Dv.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Dv.getInertBodyElement(i)}while(i!==o);return Od((new FW).sanitizeChildren(MD(e)||e))}finally{if(e){const i=MD(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function MD(t){return"content"in t&&function UW(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ai=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Ai||{});function Gl(t){const n=vp();return n?oR(n.sanitize(Ai.HTML,t)||""):Us(t,"HTML")?oR(Fr(t)):mR(xc(),Ze(t))}function bp(t){const n=vp();return n?n.sanitize(Ai.URL,t)||"":Us(t,"URL")?Fr(t):Cv(Ze(t))}function bR(t){const n=vp();if(n)return aR(n.sanitize(Ai.RESOURCE_URL,t)||"");if(Us(t,"ResourceURL"))return aR(Fr(t));throw new H(904,!1)}function vp(){const t=Q();return t&&t[Wo].sanitizer}const qW=/^>|^->|<!--|-->|--!>|<!-$/g,YW=/(<|>)/g,KW="\u200b$1\u200b";const kD=new Map;let e7=0;const RD="__ngContext__";function Ui(t,n){Bi(n)?(t[RD]=n[np],function n7(t){kD.set(t[np],t)}(n)):t[RD]=n}function MR(t){return t.ownerDocument.defaultView}function yp(t){return t.ownerDocument}function Pr(t){return t instanceof Function?t():t}var Tc=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Tc||{});let PD;function LD(t,n){return PD(t,n)}function Pd(t,n,e,i,r){if(null!=i){let o,s=!1;Vi(i)?o=i:Bi(i)&&(s=!0,i=i[fn]);const a=Kt(i);0===t&&null!==e?null==r?BR(n,e,a):$l(n,e,a,r||null,!0):1===t&&null!==e?$l(n,e,a,r||null,!0):2===t?function Dp(t,n,e){const i=Tv(t,n);i&&function C7(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function S7(t,n,e,i,r){const o=e[Rs];o!==Kt(e)&&Pd(n,t,i,o,r);for(let a=Pn;a<e.length;a++){const c=e[a];kv(c[le],c,t,n,i,o)}}(n,t,o,e,r)}}function VD(t,n){return t.createComment(function _R(t){return t.replace(qW,n=>n.replace(YW,KW))}(n))}function xv(t,n,e){return t.createElement(n,e)}function FR(t,n){n[Wo].changeDetectionScheduler?.notify(1),kv(t,n,n[We],2,null,null)}function PR(t,n){const e=t[Dd],i=e.indexOf(n);e.splice(i,1)}function wp(t,n){if(t.length<=Pn)return;const e=Pn+n,i=t[e];if(i){const r=i[tp];null!==r&&r!==t&&PR(r,i),n>0&&(t[e-1][zo]=i[zo]);const o=Tl(t,Pn+n);!function f7(t,n){FR(t,n),n[fn]=null,n[Li]=null}(i[le],i);const s=o[Ia];null!==s&&s.detachView(o[le]),i[Fn]=null,i[zo]=null,i[Be]&=-129}return i}function Iv(t,n){if(!(256&n[Be])){const e=n[We];e.destroyNode&&kv(t,n,e,3,null,null),function b7(t){let n=t[ep];if(!n)return HD(t[le],t);for(;n;){let e=null;if(Bi(n))e=n[ep];else{const i=n[Pn];i&&(e=i)}if(!e){for(;n&&!n[zo]&&n!==t;)Bi(n)&&HD(n[le],n),n=n[Fn];null===n&&(n=t),Bi(n)&&HD(n[le],n),e=n&&n[zo]}n=e}}(n)}}function HD(t,n){if(256&n[Be])return;const e=Je(null);try{n[Be]&=-129,n[Be]|=256,n[Ll]&&function cc(t){if(Cs(t),ws(t))for(let n=0;n<t.producerNode.length;n++)lc(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}(n[Ll]),function w7(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof lp)){const o=e[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],c=o[s+1];Ns(4,a,c);try{c.call(a)}finally{Ns(5,a,c)}}else{Ns(4,r,o);try{o.call(r)}finally{Ns(5,r,o)}}}}}(t,n),function y7(t,n){const e=t.cleanup,i=n[yd];if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const s=e[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else e[o].call(i[e[o+1]]);null!==i&&(n[yd]=null);const r=n[Sc];if(null!==r){n[Sc]=null;for(let o=0;o<r.length;o++)(0,r[o])()}}(t,n),1===n[le].type&&n[We].destroy();const i=n[tp];if(null!==i&&Vi(n[Fn])){i!==n[Fn]&&PR(i,n);const r=n[Ia];null!==r&&r.detachView(t)}!function i7(t){kD.delete(t[np])}(n)}finally{Je(e)}}function UD(t,n,e){return function LR(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[fn];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===pr.None||o===pr.Emulated)return null}return tr(i,e)}}(t,n.parent,e)}function $l(t,n,e,i,r){t.insertBefore(n,e,i,r)}function BR(t,n,e){t.appendChild(n,e)}function VR(t,n,e,i,r){null!==i?$l(t,n,e,i,r):BR(t,n,e)}function Tv(t,n){return t.parentNode(n)}function HR(t,n,e){return jR(t,n,e)}let jD,jR=function UR(t,n,e){return 40&t.type?tr(t,e):null};function Mv(t,n,e,i){const r=UD(t,i,n),o=n[We],a=HR(i.parent||n[Li],i,n);if(null!=r)if(Array.isArray(e))for(let c=0;c<e.length;c++)VR(o,r,e[c],a,!1);else VR(o,r,e,a,!1);void 0!==jD&&jD(o,i,n,e,r)}function Cp(t,n){if(null!==n){const e=n.type;if(3&e)return tr(n,t);if(4&e)return GD(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return Cp(t,i);{const r=t[n.index];return Vi(r)?GD(-1,r):Kt(r)}}if(32&e)return LD(n,t)()||Kt(t[n.index]);{const i=$R(t,n);return null!==i?Array.isArray(i)?i[0]:Cp(Vl(t[Dn]),i):Cp(t,n.next)}}return null}function $R(t,n){return null!==n?t[Dn][Li].projection[n.projection]:null}function GD(t,n){const e=Pn+t+1;if(e<n.length){const i=n[e],r=i[le].firstChild;if(null!==r)return Cp(i,r)}return n[Rs]}function $D(t,n,e,i,r,o,s){for(;null!=e;){const a=i[e.index],c=e.type;if(s&&0===n&&(a&&Ui(Kt(a),i),e.flags|=2),32&~e.flags)if(8&c)$D(t,n,e.child,i,r,o,!1),Pd(n,t,r,a,o);else if(32&c){const l=LD(e,i);let u;for(;u=l();)Pd(n,t,r,u,o);Pd(n,t,r,a,o)}else 16&c?WR(t,n,i,e,r,o):Pd(n,t,r,a,o);e=s?e.projectionNext:e.next}}function kv(t,n,e,i,r,o){$D(e,i,t.firstChild,n,r,o,!1)}function WR(t,n,e,i,r,o){const s=e[Dn],c=s[Li].projection[i.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++)Pd(n,t,r,c[l],o);else{let l=c;const u=s[Fn];dv(i)&&(l.flags|=128),$D(t,n,l,u,r,o,!0)}}function qR(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function YR(t,n,e){const{mergedAttrs:i,classes:r,styles:o}=e;null!==i&&Rl(t,n,i),null!==r&&qR(t,n,r),null!==o&&function I7(t,n,e){t.setAttribute(n,"style",e)}(t,n,o)}const ct={};function _(t=1){KR(wt(),Q(),Hi()+t,!1)}function KR(t,n,e,i){if(!i)if(3&~n[Be]){const o=t.preOrderHooks;null!==o&&ov(n,o,0,e)}else{const o=t.preOrderCheckHooks;null!==o&&rv(n,o,e)}Hl(e)}function g(t,n=tt.Default){const e=Q();return null===e?I(t,n):NA($t(),e,_e(t),n)}function QR(t,n,e,i,r,o){const s=Je(null);try{let a=null;r&ee.SignalBased&&(a=n[i][no]),null!==a&&void 0!==a.transformFn&&(o=a.transformFn(o)),r&ee.HasDecoratorInputTransform&&(o=t.inputTransforms[i].call(n,o)),null!==t.setInput?t.setInput(n,a,o,e,i):rA(n,a,i,o)}finally{Je(s)}}function Av(t,n,e,i,r,o,s,a,c,l,u){const h=n.blueprint.slice();return h[fn]=r,h[Be]=204|i,(null!==l||t&&2048&t[Be])&&(h[Be]|=2048),dA(h),h[Fn]=h[wd]=t,h[nn]=e,h[Wo]=s||t&&t[Wo],h[We]=a||t&&t[We],h[ki]=c||t&&t[ki]||null,h[Li]=o,h[np]=function t7(){return e7++}(),h[Nr]=u,h[eA]=l,h[Dn]=2==n.type?t[Dn]:h,h}function Ld(t,n,e,i,r){let o=t.data[n];if(null===o)o=function zD(t,n,e,i,r){const o=fA(),s=KC(),c=t.data[n]=function F7(t,n,e,i,r,o){let s=n?n.injectorIndex:-1,a=0;return Sd()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=c),null!==o&&(s?null==o.child&&null!==c.parent&&(o.child=c):null===o.next&&(o.next=c,c.prev=o)),c}(t,n,e,i,r),function S6(){return qe.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const s=function ap(){const t=qe.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Fs(o,!0),o}function Ep(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function XR(t,n,e,i,r){const o=Hi(),s=2&i;try{Hl(-1),s&&n.length>ot&&KR(t,n,ot,!1),Ns(s?2:0,r),e(i,r)}finally{Hl(o),Ns(s?3:1,r)}}function WD(t,n,e){if(VC(n)){const i=Je(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;s<o;s++){const a=t.data[s];a.contentQueries&&a.contentQueries(1,e[s],s)}}finally{Je(i)}}}function qD(t,n,e){pA()&&(function j7(t,n,e,i){const r=e.directiveStart,o=e.directiveEnd;Bl(e)&&function K7(t,n,e){const i=tr(n,t),r=JR(e);let s=16;e.signals?s=4096:e.onPush&&(s=64);const a=Rv(t,Av(t,r,null,s,i,n,null,t[Wo].rendererFactory.createRenderer(i,e),null,null,null));t[n.index]=a}(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||av(e,n),Ui(i,n);const s=e.initialInputs;for(let a=r;a<o;a++){const c=t.data[a],l=Ul(n,t,a,e);Ui(l,n),null!==s&&Z7(0,a-r,l,c,0,s),qo(c)&&(Or(e.index,n)[nn]=Ul(n,t,a,e))}}(t,n,e,tr(e,n)),!(64&~e.flags)&&rN(t,n,e))}function YD(t,n,e=tr){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?e(n,t):t[s];t[r++]=a}}}function JR(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=KD(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function KD(t,n,e,i,r,o,s,a,c,l,u){const h=ot+i,f=h+r,v=function M7(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:ct);return e}(h,f),y="function"==typeof l?l():l;return v[le]={type:t,blueprint:v,template:e,queries:null,viewQuery:a,declTNode:n,data:v.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:y,incompleteFirstPass:!1,ssrId:u}}let eN=()=>null;function tN(t,n,e,i,r){for(let o in n){if(!n.hasOwnProperty(o))continue;const s=n[o];if(void 0===s)continue;i??={};let a,c=ee.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(null!==r){if(!r.hasOwnProperty(o))continue;l=r[o]}0===t?nN(i,e,l,a,c):nN(i,e,l,a)}return i}function nN(t,n,e,i,r){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,i):o=t[e]=[n,i],void 0!==r&&o.push(r)}function br(t,n,e,i,r,o,s,a){const c=tr(n,e);let u,l=n.inputs;!a&&null!=l&&(u=l[i])?(e1(t,e,u,i,r),Bl(n)&&function B7(t,n){const e=Or(n,t);16&e[Be]||(e[Be]|=64)}(e,n.index)):3&n.type&&(i=function L7(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(c,i,r))}function ZD(t,n,e,i){if(pA()){const r=null===i?null:{"":-1},o=function $7(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o<e.length;o++){const s=e[o];if(Ub(n,s.selectors,!1))if(i||(i=[]),qo(s))if(null!==s.findHostDirectiveDefs){const a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s),QD(t,n,a.length)}else i.unshift(s),QD(t,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return null===i?null:[i,r]}(t,e);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&iN(t,n,e,s,r,a),r&&function z7(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const o=e[n[r+1]];if(null==o)throw new H(-301,!1);i.push(n[r],o)}}}(e,i,r)}e.mergedAttrs=Nl(e.mergedAttrs,e.attrs)}function iN(t,n,e,i,r,o){for(let l=0;l<i.length;l++)aD(av(e,n),t,i[l].type);!function q7(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}(e,t.data.length,i.length);for(let l=0;l<i.length;l++){const u=i[l];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,c=Ep(t,n,i.length,null);for(let l=0;l<i.length;l++){const u=i[l];e.mergedAttrs=Nl(e.mergedAttrs,u.hostAttrs),Y7(t,e,n,c,u),W7(c,u,r),null!==u.contentQueries&&(e.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(e.flags|=64);const h=u.type.prototype;!s&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),s=!0),!a&&(h.ngOnChanges||h.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),a=!0),c++}!function P7(t,n,e){const r=n.directiveEnd,o=t.data,s=n.attrs,a=[];let c=null,l=null;for(let u=n.directiveStart;u<r;u++){const h=o[u],f=e?e.get(h):null,y=f?f.outputs:null;c=tN(0,h.inputs,u,c,f?f.inputs:null),l=tN(1,h.outputs,u,l,y);const D=null===c||null===s||qg(n)?null:Q7(c,u,s);a.push(D)}null!==c&&(c.hasOwnProperty("class")&&(n.flags|=8),c.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=c,n.outputs=l}(t,e,o)}function rN(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,s=function I6(){return qe.lFrame.currentDirectiveIndex}();try{Hl(o);for(let a=i;a<r;a++){const c=t.data[a],l=n[a];QC(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&G7(c,l)}}finally{Hl(-1),QC(s)}}function G7(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function QD(t,n,e){n.componentOffset=e,(t.components??=[]).push(n.index)}function W7(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;qo(n)&&(e[""]=t)}}function Y7(t,n,e,i,r){t.data[i]=r;const o=r.factory||(r.factory=Ca(r.type)),s=new lp(o,qo(r),g);t.blueprint[i]=s,e[i]=s,function H7(t,n,e,i,r){const o=r.hostBindings;if(o){let s=t.hostBindingOpCodes;null===s&&(s=t.hostBindingOpCodes=[]);const a=~n.index;(function U7(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,i,o)}}(t,n,i,Ep(t,e,r.hostVars,ct),r)}function js(t,n,e,i,r,o){const s=tr(t,n);!function XD(t,n,e,i,r,o,s){if(null==o)t.removeAttribute(n,r,e);else{const a=null==s?Ze(o):s(o,i||"",r);t.setAttribute(n,r,a,e)}}(n[We],s,o,t.value,e,i,r)}function Z7(t,n,e,i,r,o){const s=o[n];if(null!==s)for(let a=0;a<s.length;)QR(i,e,s[a++],s[a++],s[a++],s[a++])}function Q7(t,n,e){let i=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(t.hasOwnProperty(o)){null===i&&(i=[]);const s=t[o];for(let a=0;a<s.length;a+=3)if(s[a]===n){i.push(o,s[a+1],s[a+2],e[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function oN(t,n,e,i){return[t,!0,0,n,null,i,null,e,null,null]}function sN(t,n){const e=t.contentQueries;if(null!==e){const i=Je(null);try{for(let r=0;r<e.length;r+=2){const s=e[r+1];if(-1!==s){const a=t.data[s];nv(e[r]),a.contentQueries(2,n[s],s)}}}finally{Je(i)}}}function Rv(t,n){return t[ep]?t[Jk][zo]=n:t[ep]=n,t[Jk]=n,n}function JD(t,n,e){nv(0);const i=Je(null);try{n(t,e)}finally{Je(i)}}function aN(t){return t[yd]||(t[yd]=[])}function cN(t){return t.cleanup||(t.cleanup=[])}function Nv(t,n){const e=t[ki],i=e?e.get(ao,null):null;i&&i.handleError(n)}function e1(t,n,e,i,r){for(let o=0;o<e.length;){const s=e[o++],a=e[o++],c=e[o++];QR(t.data[s],n[s],i,a,c,r)}}function X7(t,n){const e=Or(n,t),i=e[le];!function J7(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])}(i,e);const r=e[fn];null!==r&&null===e[Nr]&&(e[Nr]=wD(r,e[ki])),t1(i,e,e[nn])}function t1(t,n,e){eD(n);try{const i=t.viewQuery;null!==i&&JD(1,i,e);const r=t.template;null!==r&&XR(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),n[Ia]?.finishViewCreation(t),t.staticContentQueries&&sN(t,n),t.staticViewQueries&&JD(2,t.viewQuery,e);const o=t.components;null!==o&&function e9(t,n){for(let e=0;e<n.length;e++)X7(t,n[e])}(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[Be]&=-5,tD()}}function Sp(t,n,e,i){const r=Je(null);try{const o=n.tView,c=Av(t,o,e,4096&t[Be]?4096:16,null,n,null,null,null,i?.injector??null,i?.dehydratedView??null);c[tp]=t[n.index];const u=t[Ia];return null!==u&&(c[Ia]=u.createEmbeddedView(o)),t1(o,c,e),c}finally{Je(r)}}function uN(t,n){const e=Pn+n;if(e<t.length)return t[e]}function Bd(t,n){return!n||null===n.firstChild||dv(t)}function xp(t,n,e,i=!0){const r=n[le];if(function v7(t,n,e,i){const r=Pn+i,o=e.length;i>0&&(e[r-1][zo]=n),i<o-Pn?(n[zo]=e[r],jg(e,Pn+i,n)):(e.push(n),n[zo]=null),n[Fn]=e;const s=n[tp];null!==s&&e!==s&&function _7(t,n){const e=t[Dd];n[Dn]!==n[Fn][Fn][Dn]&&(t[Be]|=BC.HasTransplantedViews),null===e?t[Dd]=[n]:e.push(n)}(s,n);const a=n[Ia];null!==a&&a.insertView(t),qC(n),n[Be]|=128}(r,n,t,e),i){const s=GD(e,t),a=n[We],c=Tv(a,t[Rs]);null!==c&&function m7(t,n,e,i,r,o){i[fn]=r,i[Li]=n,kv(t,i,e,1,r,o)}(r,t[Li],a,n,c,s)}const o=n[Nr];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function n1(t,n){const e=wp(t,n);return void 0!==e&&Iv(e[le],e),e}function Ip(t,n,e,i,r=!1){for(;null!==e;){const o=n[e.index];null!==o&&i.push(Kt(o)),Vi(o)&&dN(o,i);const s=e.type;if(8&s)Ip(t,n,e.child,i);else if(32&s){const a=LD(e,n);let c;for(;c=a();)i.push(c)}else if(16&s){const a=$R(n,e);if(Array.isArray(a))i.push(...a);else{const c=Vl(n[Dn]);Ip(c[le],c,a,i,!0)}}e=r?e.projectionNext:e.next}return i}function dN(t,n){for(let e=Pn;e<t.length;e++){const i=t[e],r=i[le].firstChild;null!==r&&Ip(i[le],i,r,n)}t[Rs]!==t[fn]&&n.push(t[Rs])}let hN=[];const r9={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{sp(t.lView)},consumerOnSignalRead(){this.lView[Ll]=this}};function gN(t){return fN(t[ep])}function pN(t){return fN(t[zo])}function fN(t){for(;null!==t&&!Vi(t);)t=t[zo];return t}const mN=100;function Ov(t,n=!0,e=0){const i=t[Wo],r=i.rendererFactory;r.begin?.();try{!function a9(t,n){r1(t,n);let e=0;for(;WC(t);){if(e===mN)throw new H(103,!1);e++,r1(t,1)}}(t,e)}catch(s){throw n&&Nv(t,s),s}finally{r.end?.(),i.inlineEffectRunner?.flush()}}function c9(t,n,e,i){const r=n[Be];if(!(256&~r))return;n[Wo].inlineEffectRunner?.flush(),eD(n);let s=null,a=null;(function l9(t){return 2!==t.type})(t)&&(a=function t9(t){return t[Ll]??function n9(t){const n=hN.pop()??Object.create(r9);return n.lView=t,n}(t)}(n),s=function Ho(t){return t&&(t.nextProducerIndex=0),Je(t)}(a));try{dA(n),function bA(t){return qe.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&XR(t,n,e,2,i);const c=!(3&~r);if(c){const h=t.preOrderCheckHooks;null!==h&&rv(n,h,null)}else{const h=t.preOrderHooks;null!==h&&ov(n,h,0,null),nD(n,0)}if(function u9(t){for(let n=gN(t);null!==n;n=pN(n)){if(!(n[Be]&BC.HasTransplantedViews))continue;const e=n[Dd];for(let i=0;i<e.length;i++){f6(e[i])}}}(n),bN(n,0),null!==t.contentQueries&&sN(t,n),c){const h=t.contentCheckHooks;null!==h&&rv(n,h)}else{const h=t.contentHooks;null!==h&&ov(n,h,1),nD(n,1)}!function T7(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Hl(~r);else{const o=r,s=e[++i],a=e[++i];x6(s,o),a(2,n[o])}}}finally{Hl(-1)}}(t,n);const l=t.components;null!==l&&_N(n,l,0);const u=t.viewQuery;if(null!==u&&JD(2,u,i),c){const h=t.viewCheckHooks;null!==h&&rv(n,h)}else{const h=t.viewHooks;null!==h&&ov(n,h,2),nD(n,2)}if(!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[Xb]){for(const h of n[Xb])h();n[Xb]=null}n[Be]&=-73}catch(c){throw sp(n),c}finally{null!==a&&(function Ku(t,n){if(Je(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(ws(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)lc(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(a,s),function i9(t){t.lView[Ll]!==t&&(t.lView=null,hN.push(t))}(a)),tD()}}function bN(t,n){for(let e=gN(t);null!==e;e=pN(e))for(let i=Pn;i<e.length;i++)vN(e[i],n)}function d9(t,n,e){vN(Or(n,t),e)}function vN(t,n){zC(t)&&r1(t,n)}function r1(t,n){const i=t[le],r=t[Be],o=t[Ll];let s=!!(0===n&&16&r);if(s||=!!(64&r&&0===n),s||=!!(1024&r),s||=!(!o?.dirty||!ys(o)),o&&(o.dirty=!1),t[Be]&=-9217,s)c9(i,t,i.template,t[nn]);else if(8192&r){bN(t,1);const a=i.components;null!==a&&_N(t,a,1)}}function _N(t,n,e){for(let i=0;i<n.length;i++)d9(t,n[i],e)}function Tp(t){for(t[Wo].changeDetectionScheduler?.notify();t;){t[Be]|=64;const n=Vl(t);if(HC(t)&&!n)return t;t=n}return null}class Mp{get rootNodes(){const n=this._lView,e=n[le];return Ip(e,n,e.firstChild,[])}constructor(n,e,i=!0){this._lView=n,this._cdRefInjectingView=e,this.notifyErrorHandler=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[nn]}set context(n){this._lView[nn]=n}get destroyed(){return!(256&~this._lView[Be])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Fn];if(Vi(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(wp(n,i),Tl(e,i))}this._attachedToViewContainer=!1}Iv(this._lView[le],this._lView)}onDestroy(n){tv(this._lView,n)}markForCheck(){Tp(this._cdRefInjectingView||this._lView)}detach(){this._lView[Be]&=-129}reattach(){qC(this._lView),this._lView[Be]|=128}detectChanges(){this._lView[Be]|=1024,Ov(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new H(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,FR(this._lView[le],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new H(902,!1);this._appRef=n,qC(this._lView)}}let Re=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=p9}return t})();const h9=Re,g9=class extends h9{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,i){const r=Sp(this._declarationLView,this._declarationTContainer,n,{injector:e,dehydratedView:i});return new Mp(r)}};function p9(){return Fv($t(),Q())}function Fv(t,n){return 4&t.type?new g9(n,t,Md(t,n)):null}let SN=()=>null;function Vd(t,n){return SN(t,n)}class Hv{}class B9{}class xN{}class H9{resolveComponentFactory(n){throw function V9(t){const n=Error(`No component factory found for ${Nn(t)}.`);return n.ngComponent=t,n}(n)}}let mn=(()=>{class t{static#e=this.NULL=new H9}return t})();class Uv{}let on=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function U9(){const t=Q(),e=Or($t().index,t);return(Bi(e)?e:t)[We]}()}return t})(),j9=(()=>{class t{static#e=this.\u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();const u1={},TN=new Set;function Gs(t){TN.has(t)||(TN.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function MN(...t){}class xe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new H(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function G9(){const t="function"==typeof vt.requestAnimationFrame;let n=vt[t?"requestAnimationFrame":"setTimeout"],e=vt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&e){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function W9(t){const n=()=>{!function z9(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(vt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,h1(t),t.isCheckStableRunning=!0,d1(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),h1(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{if(function q9(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(a))return e.invokeTask(r,o,s,a);try{return kN(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),AN(t)}},onInvoke:(e,i,r,o,s,a,c)=>{try{return kN(t),e.invoke(r,o,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&n(),AN(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,h1(t),d1(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xe.isInAngularZone())throw new H(909,!1)}static assertNotInAngularZone(){if(xe.isInAngularZone())throw new H(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,$9,MN,MN);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const $9={};function d1(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function h1(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function kN(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function AN(t){t._nesting--,d1(t)}class RN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}var zl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(zl||{});const NN={destroy(){}};function ON(t,n){!n&&function Yt(t){if(!pt())throw new H(-203,!1)}();const e=n?.injector??x(He);if(!function Ic(t){return"browser"===(t??x(He)).get(Kn)}(e))return NN;Gs("NgAfterNextRender");const i=e.get(Op),r=i.handler??=new PN,o=n?.phase??zl.MixedReadWrite,s=()=>{r.unregister(c),a()},a=e.get(Vs).onDestroy(s),c=ze(e,()=>new FN(o,()=>{s(),t()}));return r.register(c),{destroy:s}}class FN{constructor(n,e){this.phase=n,this.callbackFn=e,this.zone=x(xe),this.errorHandler=x(ao,{optional:!0}),x(Hv,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class PN{constructor(){this.executingCallbacks=!1,this.buckets={[zl.EarlyRead]:new Set,[zl.Write]:new Set,[zl.MixedReadWrite]:new Set,[zl.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const e of n)e.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Op=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const i of e)i()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function Gv(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?r=Rg(r,a):2==o&&(i=Rg(i,a+": "+n[++s]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}class VN extends mn{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=ht(n);return new Lp(e,this.ngModule)}}function HN(t){const n=[];for(const e in t){if(!t.hasOwnProperty(e))continue;const i=t[e];void 0!==i&&n.push({propName:Array.isArray(i)?i[0]:i,templateName:e})}return n}class J9{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=ya(i);const r=this.injector.get(n,u1,i);return r!==u1||e===u1?r:this.parentInjector.get(n,e,i)}}class Lp extends xN{get inputs(){const n=this.componentDef,e=n.inputTransforms,i=HN(n.inputs);if(null!==e)for(const r of i)e.hasOwnProperty(r.propName)&&(r.transform=e[r.propName]);return i}get outputs(){return HN(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function TC(t){return t.map(IC).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){const o=Je(null);try{let s=(r=r||this.ngModule)instanceof _i?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const a=s?new J9(n,s):n,c=a.get(Uv,null);if(null===c)throw new H(407,!1);const l=a.get(j9,null),f={rendererFactory:c,sanitizer:l,inlineEffectRunner:null,afterRenderEventManager:a.get(Op,null),changeDetectionScheduler:a.get(Hv,null)},v=c.createRenderer(null,this.componentDef),y=this.componentDef.selectors[0][0]||"div",D=i?function k7(t,n,e,i){const o=i.get(iR,!1)||e===pr.ShadowDom,s=t.selectRootElement(n,o);return function A7(t){eN(t)}(s),s}(v,i,this.componentDef.encapsulation,a):xv(v,y,function X9(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(y));let S=512;this.componentDef.signals?S|=4096:this.componentDef.onPush||(S|=16);let k=null;null!==D&&(k=wD(D,a,!0));const A=KD(0,null,null,1,0,null,null,null,null,null,null),K=Av(null,A,null,S,null,null,f,v,a,null,k);let J,de;eD(K);try{const ve=this.componentDef;let ke,Ve=null;ve.findHostDirectiveDefs?(ke=[],Ve=new Map,ve.findHostDirectiveDefs(ve,ke,Ve),ke.push(ve)):ke=[ve];const Nt=function tq(t,n){const e=t[le],i=ot;return t[i]=n,Ld(e,i,2,"#host",null)}(K,D),Pt=function nq(t,n,e,i,r,o,s){const a=r[le];!function iq(t,n,e,i){for(const r of t)n.mergedAttrs=Nl(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(Gv(n,n.mergedAttrs,!0),null!==e&&YR(i,e,n))}(i,t,n,s);let c=null;null!==n&&(c=wD(n,r[ki]));const l=o.rendererFactory.createRenderer(n,e);let u=16;e.signals?u=4096:e.onPush&&(u=64);const h=Av(r,JR(e),null,u,r[t.index],t,o,l,null,null,c);return a.firstCreatePass&&QD(a,t,i.length-1),Rv(r,h),r[t.index]=h}(Nt,D,ve,ke,K,f,v);de=op(A,ot),D&&function oq(t,n,e,i){if(i)Rl(t,e,["ng-version","17.3.0"]);else{const{attrs:r,classes:o}=function zb(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let o=t[i];if("string"==typeof o)2===r?""!==o&&n.push(o,t[++i]):8===r&&e.push(o);else{if(!fr(r))break;r=o}i++}return{attrs:n,classes:e}}(n.selectors[0]);r&&Rl(t,e,r),o&&o.length>0&&qR(t,e,o.join(" "))}}(v,ve,D,i),void 0!==e&&function sq(t,n,e){const i=t.projection=[];for(let r=0;r<n.length;r++){const o=e[r];i.push(null!=o?Array.from(o):null)}}(de,this.ngContentSelectors,e),J=function rq(t,n,e,i,r,o){const s=$t(),a=r[le],c=tr(s,r);iN(a,r,s,e,null,i);for(let u=0;u<e.length;u++)Ui(Ul(r,a,s.directiveStart+u,s),r);rN(a,r,s),c&&Ui(c,r);const l=Ul(r,a,s.directiveStart+s.componentOffset,s);if(t[nn]=r[nn]=l,null!==o)for(const u of o)u(l,n);return WD(a,s,r),l}(Pt,ve,ke,Ve,K,[aq]),t1(A,K,null)}finally{tD()}return new eq(this.componentType,J,Md(de,K),K,de)}finally{Je(o)}}}class eq extends B9{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new Mp(r,void 0,!1),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;const o=this._rootLView;e1(o[le],o,r,n,e),this.previousInputValues.set(n,e),Tp(Or(this._tNode.index,o))}}get injector(){return new ci(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function aq(){const t=$t();iv(Q()[le],t)}let zt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=cq}return t})();function cq(){return GN($t(),Q())}const lq=zt,UN=class extends lq{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return Md(this._hostTNode,this._hostLView)}get injector(){return new ci(this._hostTNode,this._hostLView)}get parentInjector(){const n=cv(this._hostTNode,this._hostLView);if(rD(n)){const e=dp(n,this._hostLView),i=up(n);return new ci(e[le].data[i+8],e)}return new ci(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=jN(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Pn}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=Vd(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,r,Bd(this._hostTNode,s)),a}createComponent(n,e,i,r,o){const s=n&&!function Jg(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const y=e||{};a=y.index,i=y.injector,r=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}const c=s?n:new Lp(ht(n)),l=i||this.parentInjector;if(!o&&null==c.ngModule){const D=(s?l:this.parentInjector).get(_i,null);D&&(o=D)}const u=ht(c.componentType??{}),h=Vd(this._lContainer,u?.id??null),v=c.create(l,r,h?.firstChild??null,o);return this.insertImpl(v.hostView,a,Bd(this._hostTNode,h)),v}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){const r=n._lView;if(function p6(t){return Vi(t[Fn])}(r)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=r[Fn],l=new UN(c,c[Li],c[Fn]);l.detach(l.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;return xp(s,r,o,i),n.attachToViewContainerRef(),jg(m1(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=jN(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=wp(this._lContainer,e);i&&(Tl(m1(this._lContainer),e),Iv(i[le],i))}detach(n){const e=this._adjustIndex(n,-1),i=wp(this._lContainer,e);return i&&null!=Tl(m1(this._lContainer),e)?new Mp(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function jN(t){return t[8]}function m1(t){return t[8]||(t[8]=[])}function GN(t,n){let e;const i=n[t.index];return Vi(i)?e=i:(e=oN(i,n,null,t),n[t.index]=e,Rv(n,e)),$N(e,n,t,i),new UN(e,t,n)}let $N=function WN(t,n,e,i){if(t[Rs])return;let r;r=8&e.type?Kt(i):function uq(t,n){const e=t[We],i=e.createComment(""),r=tr(n,t);return $l(e,Tv(e,r),i,function D7(t,n){return t.nextSibling(n)}(e,r),!1),i}(n,e),t[Rs]=r},b1=()=>!1;class v1{constructor(n){this.queryList=n,this.matches=null}clone(){return new v1(this.queryList)}setDirty(){this.queryList.setDirty()}}class _1{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const s=e.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new _1(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}finishViewCreation(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==E1(n,e).matches&&this.queries[e].setDirty()}}class qN{constructor(n,e,i=null){this.flags=e,this.read=i,this.predicate="string"==typeof n?function vq(t){return t.split(",").map(n=>n.trim())}(n):n}}class y1{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new y1(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class w1{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new w1(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1&~this.metadata.flags){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,e,pq(e,o)),this.matchTNodeWithReadOption(n,e,lv(e,n,o,!1,!1))}else i===Re?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,lv(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===F||r===zt||r===Re&&4&e.type)this.addMatch(e.index,-2);else{const o=lv(e,n,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function pq(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function mq(t,n,e,i){return-1===e?function fq(t,n){return 11&t.type?Md(t,n):4&t.type?Fv(t,n):null}(n,t):-2===e?function bq(t,n,e){return e===F?Md(n,t):e===Re?Fv(n,t):e===zt?GN(n,t):void 0}(t,n,i):Ul(t,t[le],e,n)}function YN(t,n,e,i){const r=n[Ia].queries[i];if(null===r.matches){const o=t.data,s=e.matches,a=[];for(let c=0;null!==s&&c<s.length;c+=2){const l=s[c];a.push(l<0?null:mq(n,o[l],s[c+1],e.metadata.read))}r.matches=a}return r.matches}function C1(t,n,e,i){const r=t.queries.getByIndex(e),o=r.matches;if(null!==o){const s=YN(t,n,r,e);for(let a=0;a<o.length;a+=2){const c=o[a];if(c>0)i.push(s[a/2]);else{const l=o[a+1],u=n[-c];for(let h=Pn;h<u.length;h++){const f=u[h];f[tp]===f[Fn]&&C1(f[le],f,l,i)}if(null!==u[Dd]){const h=u[Dd];for(let f=0;f<h.length;f++){const v=h[f];C1(v[le],v,l,i)}}}}}return i}function KN(t,n,e){const i=new kd(!(4&~e));return function O7(t,n,e,i){const r=aN(n);r.push(e),t.firstCreatePass&&cN(t).push(i,r.length-1)}(t,n,i,i.destroy),(n[Ia]??=new _1).queries.push(new v1(i))-1}function XN(t,n,e){null===t.queries&&(t.queries=new y1),t.queries.track(new w1(n,e))}function E1(t,n){return t.queries.getByIndex(n)}function JN(t,n){const e=t[le],i=E1(e,n);return i.crossesNgTemplate?C1(e,t,n,[]):YN(e,t,i,n)}function nO(t){return function eO(t){return"function"==typeof t&&void 0!==t[no]}(t)&&"function"==typeof t.set}function O(t){let n=function gO(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(qo(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new H(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const s=t;s.inputs=zv(t.inputs),s.inputTransforms=zv(t.inputTransforms),s.declaredInputs=zv(t.declaredInputs),s.outputs=zv(t.outputs);const a=r.hostBindings;a&&Oq(t,a);const c=r.viewQuery,l=r.contentQueries;if(c&&Rq(t,c),l&&Nq(t,l),kq(t,r),Ag(t.outputs,r.outputs),qo(r)&&r.data.animation){const u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(t),a===O&&(e=!1)}}n=Object.getPrototypeOf(n)}!function Aq(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Nl(r.hostAttrs,e=Nl(e,r.hostAttrs))}}(i)}function kq(t,n){for(const e in n.inputs){if(!n.inputs.hasOwnProperty(e)||t.inputs.hasOwnProperty(e))continue;const i=n.inputs[e];if(void 0!==i&&(t.inputs[e]=i,t.declaredInputs[e]=n.declaredInputs[e],null!==n.inputTransforms)){const r=Array.isArray(i)?i[0]:i;if(!n.inputTransforms.hasOwnProperty(r))continue;t.inputTransforms??={},t.inputTransforms[r]=n.inputTransforms[r]}}}function zv(t){return t===Ar?{}:t===Et?[]:t}function Rq(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function Nq(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function Oq(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}function Bn(t){const n=t.inputConfig,e={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[3]&&(e[i]=r[3])}t.inputTransforms=e}class Wl{}class bO{}class I1 extends Wl{constructor(n,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new VN(this);const r=vi(n);this._bootstrapComponents=Pr(r.bootstrap),this._r3Injector=GA(n,e,[{provide:Wl,useValue:this},{provide:mn,useValue:this.componentFactoryResolver},...i],Nn(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class T1 extends bO{constructor(n){super(),this.moduleType=n}create(n){return new I1(this.moduleType,n,[])}}class vO extends Wl{constructor(n){super(),this.componentFactoryResolver=new VN(this),this.instance=null;const e=new xa([...n.providers,{provide:Wl,useValue:this},{provide:mn,useValue:this.componentFactoryResolver}],n.parent||bd(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Wv(t,n,e=null){return new vO({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let Ac=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yv(t){return!!M1(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function M1(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function $s(t,n,e){return t[n]=e}function Vn(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ql(t,n,e,i){const r=Vn(t,n,e);return Vn(t,n+1,i)||r}function j(t,n,e,i,r,o,s,a){const c=Q(),l=wt(),u=t+ot,h=l.firstCreatePass?function Wq(t,n,e,i,r,o,s,a,c){const l=n.consts,u=Ld(n,t,4,s||null,Os(l,a));ZD(n,e,u,Os(l,c)),iv(n,u);const h=u.tView=KD(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,e,i,r,o,s):l.data[u];Fs(h,!1);const f=_O(l,c,h,t);cp()&&Mv(l,c,f,h),Ui(f,c);const v=oN(f,c,f,h);return c[u]=v,Rv(c,v),function zN(t,n,e){return b1(t,n,e)}(v,h,c),ev(h)&&qD(l,c,h),null!=s&&YD(c,h,a),j}let _O=function yO(t,n,e,i){return Ls(!0),n[We].createComment("")};function st(t,n,e,i){const r=Q();return Vn(r,Yo(),n)&&(wt(),js(rn(),r,t,n,e,i)),st}function Yd(t,n,e,i){return Vn(t,Yo(),e)?n+Ze(e)+i:ct}function t_(t,n){return t<<17|n<<2}function Nc(t){return t>>17&32767}function V1(t){return 2|t}function Kl(t){return(131068&t)>>2}function H1(t,n){return-131069&t|n<<2}function U1(t){return 1|t}function QO(t,n,e,i){const r=t[e+1],o=null===n;let s=i?Nc(r):Kl(r),a=!1;for(;0!==s&&(!1===a||o);){const l=t[s+1];kY(t[s],n)&&(a=!0,t[s+1]=i?U1(l):V1(l)),s=i?Nc(l):Kl(l)}a&&(t[e+1]=i?V1(r):U1(r))}function kY(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Ec(t,n)>=0}const li={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function XO(t){return t.substring(li.key,li.keyEnd)}function AY(t){return t.substring(li.value,li.valueEnd)}function JO(t,n){const e=li.textEnd;return e===n?-1:(n=li.keyEnd=function OY(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,li.key=n,e),nh(t,n,e))}function e2(t,n){const e=li.textEnd;let i=li.key=nh(t,n,e);return e===i?-1:(i=li.keyEnd=function FY(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=n2(t,i,e),i=li.value=nh(t,i,e),i=li.valueEnd=function PY(t,n,e){let i=-1,r=-1,o=-1,s=n,a=s;for(;s<e;){const c=t.charCodeAt(s++);if(59===c)return a;34===c||39===c?a=s=r2(t,c,s,e):n===s-4&&85===o&&82===r&&76===i&&40===c?a=s=r2(t,41,s,e):c>32&&(a=s),o=r,r=i,i=-33&c}return a}(t,i,e),n2(t,i,e))}function t2(t){li.key=0,li.keyEnd=0,li.value=0,li.valueEnd=0,li.textEnd=t.length}function nh(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function n2(t,n,e,i){return(n=nh(t,n,e))<e&&n++,n}function r2(t,n,e,i){let r=-1,o=e;for(;o<i;){const s=t.charCodeAt(o++);if(s==n&&92!==r)return o;r=92==s&&92===r?0:s}throw new Error}function C(t,n,e){const i=Q();return Vn(i,Yo(),n)&&br(wt(),rn(),i,t,n,i[We],e,!1),C}function j1(t,n,e,i,r){const s=r?"class":"style";e1(t,e,n.inputs[s],s,i)}function Ut(t,n,e){return Zo(t,n,e,!1),Ut}function ae(t,n){return Zo(t,n,null,!0),ae}function LY(t,n){for(let e=function NY(t){return t2(t),e2(t,nh(t,0,li.textEnd))}(n);e>=0;e=e2(n,e))a2(t,XO(n),AY(n))}function Oc(t){Qo(GY,zs,t,!0)}function zs(t,n){for(let e=function RY(t){return t2(t),JO(t,nh(t,0,li.textEnd))}(n);e>=0;e=JO(n,e))er(t,XO(n),!0)}function Zo(t,n,e,i){const r=Q(),o=wt(),s=Ma(2);o.firstUpdatePass&&s2(o,t,s,i),n!==ct&&Vn(r,s,n)&&c2(o,o.data[Hi()],r,r[We],t,r[s+1]=function zY(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Nn(Fr(t)))),t}(n,e),i,s)}function Qo(t,n,e,i){const r=wt(),o=Ma(2);r.firstUpdatePass&&s2(r,null,o,i);const s=Q();if(e!==ct&&Vn(s,o,e)){const a=r.data[Hi()];if(u2(a,i)&&!o2(r,o)){let c=i?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(e=Rg(c,e||"")),j1(r,a,s,e,i)}else!function $Y(t,n,e,i,r,o,s,a){r===ct&&(r=Et);let c=0,l=0,u=0<r.length?r[0]:null,h=0<o.length?o[0]:null;for(;null!==u||null!==h;){const f=c<r.length?r[c+1]:void 0,v=l<o.length?o[l+1]:void 0;let D,y=null;u===h?(c+=2,l+=2,f!==v&&(y=h,D=v)):null===h||null!==u&&u<h?(c+=2,y=u):(l+=2,y=h,D=v),null!==y&&c2(t,n,e,i,y,D,s,a),u=c<r.length?r[c]:null,h=l<o.length?o[l]:null}}(r,a,s,s[We],s[o+1],s[o+1]=function jY(t,n,e){if(null==e||""===e)return Et;const i=[],r=Fr(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,o)}}function o2(t,n){return n>=t.expandoStartIndex}function s2(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[Hi()],s=o2(t,e);u2(o,i)&&null===n&&!s&&(n=!1),n=function BY(t,n,e,i){const r=function XC(t){const n=qe.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=$p(e=G1(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=G1(r,t,n,e,i),null===o){let c=function VY(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Kl(i))return t[Nc(i)]}(t,n,i);void 0!==c&&Array.isArray(c)&&(c=G1(null,t,n,c[1],i),c=$p(c,n.attrs,i),function HY(t,n,e,i){t[Nc(e?n.classBindings:n.styleBindings)]=i}(t,n,i,c))}else o=function UY(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=$p(i,t[o].hostAttrs,e);return $p(i,n.attrs,e)}(t,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),e}(r,o,n,i),function TY(t,n,e,i,r,o){let s=o?n.classBindings:n.styleBindings,a=Nc(s),c=Kl(s);t[i]=e;let u,l=!1;if(Array.isArray(e)?(u=e[1],(null===u||Ec(e,u)>0)&&(l=!0)):u=e,r)if(0!==c){const f=Nc(t[a+1]);t[i+1]=t_(f,a),0!==f&&(t[f+1]=H1(t[f+1],i)),t[a+1]=function xY(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=t_(a,0),0!==a&&(t[a+1]=H1(t[a+1],i)),a=i;else t[i+1]=t_(c,0),0===a?a=i:t[c+1]=H1(t[c+1],i),c=i;l&&(t[i+1]=V1(t[i+1])),QO(t,u,i,!0),QO(t,u,i,!1),function MY(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Ec(o,n)>=0&&(e[i+1]=U1(e[i+1]))}(n,u,t,i,o),s=t_(a,c),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function G1(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<s&&(o=n[a],i=$p(i,o.hostAttrs,r),o!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function $p(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),er(t,s,!!e||n[++o]))}return void 0===t?null:t}function a2(t,n,e){er(t,n,Fr(e))}function GY(t,n,e){const i=String(n);""!==i&&!i.includes(" ")&&er(t,i,e)}function c2(t,n,e,i,r,o,s,a){if(!(3&n.type))return;const c=t.data,l=c[a+1],u=function IY(t){return!(1&~t)}(l)?l2(c,n,e,r,Kl(l),s):void 0;n_(u)||(n_(o)||function SY(t){return!(2&~t)}(l)&&(o=l2(c,null,e,r,a,s)),function x7(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:Tc.DashCase;null==r?t.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=Tc.Important),t.setStyle(e,i,r,o))}}(i,s,rp(Hi(),e),r,o))}function l2(t,n,e,i,r,o){const s=null===n;let a;for(;r>0;){const c=t[r],l=Array.isArray(c),u=l?c[1]:c,h=null===u;let f=e[r+1];f===ct&&(f=h?Et:void 0);let v=h?$g(f,i):u===i?f:void 0;if(l&&!n_(v)&&(v=$g(c,i)),n_(v)&&(a=v,s))return a;const y=t[r+1];r=s?Nc(y):Kl(y)}if(null!==n){let c=o?n.residualClasses:n.residualStyles;null!=c&&(a=$g(c,i))}return a}function n_(t){return void 0!==t}function u2(t,n){return!!(t.flags&(n?8:16))}class nK{destroy(n){}updateValue(n,e){}swap(n,e){const i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){const s=this.detach(i);this.attach(i,o),this.attach(r,s)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}}function $1(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function z1(t,n,e,i){return!(void 0===n||!n.has(i)||(t.attach(e,n.get(i)),n.delete(i),0))}function d2(t,n,e,i,r){if(z1(t,n,i,e(i,r)))t.updateValue(i,r);else{const o=t.create(i,r);t.attach(i,o)}}function h2(t,n,e,i){const r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}class g2{constructor(){this.kvMap=new Map,this._vMap=void 0}has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const e=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),void 0!==this._vMap){const r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}}function bn(t,n,e){Gs("NgControlFlow");const i=Q(),r=Yo(),o=W1(i,ot+t);if(Vn(i,r,n)){const a=Je(null);try{if(n1(o,0),-1!==n){const c=q1(i[le],ot+n),l=Vd(o,c.tView.ssrId);xp(o,Sp(i,c,e,{dehydratedView:l}),0,Bd(c,l))}}finally{Je(a)}}else{const a=uN(o,0);void 0!==a&&(a[nn]=e)}}class rK{constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Pn}}function lo(t,n){return n}class sK{constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}}function uo(t,n,e,i,r,o,s,a,c,l,u,h,f){Gs("NgControlFlow");const v=void 0!==c,y=Q(),D=a?s.bind(y[Dn][nn]):s,S=new sK(v,D);y[ot+t]=S,j(t+1,n,e,i,r,o),v&&j(t+2,c,l,u,h,f)}class aK extends nK{constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Pn}at(n){return this.getLView(n)[nn].$implicit}attach(n,e){const i=e[Nr];this.needsIndexUpdate||=n!==this.length,xp(this.lContainer,e,n,Bd(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function cK(t,n){return wp(t,n)}(this.lContainer,n)}create(n,e){const i=Vd(this.lContainer,this.templateTNode.tView.ssrId);return Sp(this.hostLView,this.templateTNode,new rK(this.lContainer,e,n),{dehydratedView:i})}destroy(n){Iv(n[le],n)}updateValue(n,e){this.getLView(n)[nn].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n<this.length;n++)this.getLView(n)[nn].$index=n}getLView(n){return function lK(t,n){return uN(t,n)}(this.lContainer,n)}}function ho(t){const n=Je(null),e=Hi();try{const i=Q(),r=i[le],o=i[e];if(void 0===o.liveCollection){const a=e+1,c=W1(i,a),l=q1(r,a);o.liveCollection=new aK(c,i,l)}else o.liveCollection.reset();const s=o.liveCollection;if(function iK(t,n,e){let i,r,o=0,s=t.length-1;if(Array.isArray(n)){let a=n.length-1;for(;o<=s&&o<=a;){const c=t.at(o),l=n[o],u=$1(o,c,o,l,e);if(0!==u){u<0&&t.updateValue(o,l),o++;continue}const h=t.at(s),f=n[a],v=$1(s,h,a,f,e);if(0!==v){v<0&&t.updateValue(s,f),s--,a--;continue}const y=e(o,c),D=e(s,h),S=e(o,l);if(Object.is(S,D)){const k=e(a,f);Object.is(k,y)?(t.swap(o,s),t.updateValue(s,f),a--,s--):t.move(s,o),t.updateValue(o,l),o++}else if(i??=new g2,r??=h2(t,o,s,e),z1(t,i,o,S))t.updateValue(o,l),o++,s++;else if(r.has(S))i.set(y,t.detach(o)),s--;else{const k=t.create(o,n[o]);t.attach(o,k),o++,s++}}for(;o<=a;)d2(t,i,e,o,n[o]),o++}else if(null!=n){const a=n[Symbol.iterator]();let c=a.next();for(;!c.done&&o<=s;){const l=t.at(o),u=c.value,h=$1(o,l,o,u,e);if(0!==h)h<0&&t.updateValue(o,u),o++,c=a.next();else{i??=new g2,r??=h2(t,o,s,e);const f=e(o,u);if(z1(t,i,o,f))t.updateValue(o,u),o++,s++,c=a.next();else if(r.has(f)){const v=e(o,l);i.set(v,t.detach(o)),s--}else t.attach(o,t.create(o,u)),o++,s++,c=a.next()}}for(;!c.done;)d2(t,i,e,t.length,c.value),c=a.next()}for(;o<=s;)t.destroy(t.detach(s--));i?.forEach(a=>{t.destroy(a)})}(s,t,o.trackByFn),s.updateIndexes(),o.hasEmptyBlock){const a=Yo(),c=0===s.length;if(Vn(i,a,c)){const l=e+2,u=W1(i,l);if(c){const h=q1(r,l),f=Vd(u,h.tView.ssrId);xp(u,Sp(i,h,void 0,{dehydratedView:f}),0,Bd(h,f))}else n1(u,0)}}}finally{Je(n)}}function W1(t,n){return t[n]}function q1(t,n){return op(t,n)}function w(t,n,e,i){const r=Q(),o=wt(),s=ot+t,a=r[We],c=o.firstCreatePass?function uK(t,n,e,i,r,o){const s=n.consts,c=Ld(n,t,2,i,Os(s,r));return ZD(n,e,c,Os(s,o)),null!==c.attrs&&Gv(c,c.attrs,!1),null!==c.mergedAttrs&&Gv(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,o,r,n,e,i):o.data[s],l=p2(o,r,c,a,n,t);r[s]=l;const u=ev(c);return Fs(c,!0),YR(a,l,c),!function Hp(t){return!(32&~t.flags)}(c)&&cp()&&Mv(o,r,l,c),0===function m6(){return qe.lFrame.elementDepthCount}()&&Ui(l,r),function b6(){qe.lFrame.elementDepthCount++}(),u&&(qD(o,r,c),WD(o,c,r)),null!==i&&YD(r,c),w}function E(){let t=$t();KC()?ZC():(t=t.parent,Fs(t,!1));const n=t;(function _6(t){return qe.skipHydrationRootTNode===t})(n)&&function D6(){qe.skipHydrationRootTNode=null}(),function v6(){qe.lFrame.elementDepthCount--}();const e=wt();return e.firstCreatePass&&(iv(e,t),VC(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function P6(t){return!!(8&t.flags)}(n)&&j1(e,n,Q(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function L6(t){return!!(16&t.flags)}(n)&&j1(e,n,Q(),n.stylesWithoutHost,!1),E}function L(t,n,e,i){return w(t,n,e,i),E(),L}let p2=(t,n,e,i,r,o)=>(Ls(!0),xv(i,r,function EA(){return qe.lFrame.currentNamespace}()));function Qe(t,n,e){const i=Q(),r=wt(),o=t+ot,s=r.firstCreatePass?function gK(t,n,e,i,r){const o=n.consts,s=Os(o,i),a=Ld(n,t,8,"ng-container",s);return null!==s&&Gv(a,s,!0),ZD(n,e,a,Os(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,e):r.data[o];Fs(s,!0);const a=f2(r,i,s,t);return i[o]=a,cp()&&Mv(r,i,a,s),Ui(a,i),ev(s)&&(qD(r,i,s),WD(r,s,i)),null!=e&&YD(i,s),Qe}function nt(){let t=$t();const n=wt();return KC()?ZC():(t=t.parent,Fs(t,!1)),n.firstCreatePass&&(iv(n,t),VC(t)&&n.queries.elementEnd(t)),nt}function In(t,n,e){return Qe(t,n,e),nt(),In}let f2=(t,n,e,i)=>(Ls(!0),VD(n[We],""));function he(){return Q()}function ji(t,n,e){const i=Q();return Vn(i,Yo(),n)&&br(wt(),rn(),i,t,n,i[We],e,!0),ji}const Zl=void 0;var bK=["en",[["a","p"],["AM","PM"],Zl],[["AM","PM"],Zl,Zl],[["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"]],Zl,[["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"]],Zl,[["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}",Zl,"{1} 'at' {0}",Zl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function mK(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ih={};function ir(t){const n=function vK(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=v2(n);if(e)return e;const i=n.split("-")[0];if(e=v2(i),e)return e;if("en"===i)return bK;throw new H(701,!1)}function v2(t){return t in ih||(ih[t]=vt.ng&&vt.ng.common&&vt.ng.common.locales&&vt.ng.common.locales[t]),ih[t]}var sn=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(sn||{});const rh="en-US";let _2=rh;function B(t,n,e,i){const r=Q(),o=wt(),s=$t();return Z1(o,r,r[We],s,t,n,i),B}function Z1(t,n,e,i,r,o,s){const a=ev(i),l=t.firstCreatePass&&cN(t),u=n[nn],h=aN(n);let f=!0;if(3&i.type||s){const D=tr(i,n),S=s?s(D):D,k=h.length,A=s?J=>s(Kt(J[i.index])):i.index;let K=null;if(!s&&a&&(K=function gZ(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===e&&r[o+1]===i){const a=n[yd],c=r[o+2];return a.length>c?a[c]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==K)(K.__ngLastListenerFn__||K).__ngNextListenerFn__=o,K.__ngLastListenerFn__=o,f=!1;else{o=q2(i,n,u,o,!1);const J=e.listen(S,r,o);h.push(o,J),l&&l.push(r,A,k,k+1)}}else o=q2(i,n,u,o,!1);const v=i.outputs;let y;if(f&&null!==v&&(y=v[r])){const D=y.length;if(D)for(let S=0;S<D;S+=2){const de=n[y[S]][y[S+1]].subscribe(o),ve=h.length;h.push(o,de),l&&l.push(r,i.index,ve,-(ve+1))}}}function W2(t,n,e,i){const r=Je(null);try{return Ns(6,n,e),!1!==e(i)}catch(o){return Nv(t,o),!1}finally{Ns(7,n,e),Je(r)}}function q2(t,n,e,i,r){return function o(s){if(s===Function)return i;Tp(t.componentOffset>-1?Or(t.index,n):n);let c=W2(n,e,i,s),l=o.__ngNextListenerFn__;for(;l;)c=W2(n,e,l,s)&&c,l=l.__ngNextListenerFn__;return r&&!1===c&&s.preventDefault(),c}}function M(t=1){return function M6(t){return(qe.lFrame.contextLView=function hA(t,n){for(;t>0;)n=n[wd],t--;return n}(t,qe.lFrame.contextLView))[nn]}(t)}function pZ(t,n){let e=null;const i=function SC(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?Ub(t,o,!0):Gb(i,o))return r}else e=r}return e}function jn(t){const n=Q()[Dn][Li];if(!n.projection){const i=n.projection=function Ml(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}(t?t.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){const s=t?pZ(o,t):0;null!==s&&(r[s]?r[s].projectionNext=o:i[s]=o,r[s]=o),o=o.next}}}function an(t,n=0,e){const i=Q(),r=wt(),o=Ld(r,ot+t,16,null,e||null);null===o.projection&&(o.projection=n),ZC(),(!i[Nr]||Sd())&&32&~o.flags&&function E7(t,n,e){WR(n[We],0,n,e,UD(t,e,n),HR(e.parent||n[Li],e,n))}(r,i,o)}function oh(t,n,e){return Q1(t,"",n,"",e),oh}function Q1(t,n,e,i,r){const o=Q(),s=Yd(o,n,e,i);return s!==ct&&br(wt(),rn(),o,t,s,o[We],r,!1),Q1}function It(t,n,e,i){!function QN(t,n,e,i){const r=wt();if(r.firstCreatePass){const o=$t();XN(r,new qN(n,e,i),o.index),function _q(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),!(2&~e)&&(r.staticContentQueries=!0)}return KN(r,Q(),e)}(t,n,e,i)}function pe(t,n,e){!function ZN(t,n,e){const i=wt();return i.firstCreatePass&&(XN(i,new qN(t,n,e),-1),!(2&~n)&&(i.staticViewQueries=!0)),KN(i,Q(),n)}(t,n,e)}function te(t){const n=Q(),e=wt(),i=JC();nv(i+1);const r=E1(e,i);if(t.dirty&&function g6(t){return!(4&~t[Be])}(n)===!(2&~r.metadata.flags)){if(null===r.matches)t.reset([]);else{const o=JN(n,i);t.reset(o,qA),t.notifyOnChanges()}return!0}return!1}function ne(){return function D1(t,n){return t[Ia].queries[n].queryList}(Q(),JC())}function Gi(t){return Ed(function E6(){return qe.lFrame.contextLView}(),ot+t)}function U(t,n=""){const e=Q(),i=wt(),r=t+ot,o=i.firstCreatePass?Ld(i,r,1,n,null):i.data[r],s=dF(i,e,o,n,t);e[r]=s,cp()&&Mv(i,e,s,o),Fs(o,!1)}let dF=(t,n,e,i,r)=>(Ls(!0),function BD(t,n){return t.createText(n)}(n[We],i));function ft(t){return Fe("",t,""),ft}function Fe(t,n,e){const i=Q(),r=Yd(i,t,n,e);return r!==ct&&function Aa(t,n,e){const i=rp(n,t);!function OR(t,n,e){t.setValue(n,e)}(t[We],i,e)}(i,Hi(),r),Fe}function a_(t,n,e){nO(n)&&(n=n());const i=Q();return Vn(i,Yo(),n)&&br(wt(),rn(),i,t,n,i[We],e,!1),a_}function X1(t,n){const e=nO(t);return e&&t.set(n),e}function c_(t,n){const e=Q(),i=wt(),r=$t();return Z1(i,e,e[We],r,t,n),c_}function J1(t,n,e,i,r){if(t=_e(t),Array.isArray(t))for(let o=0;o<t.length;o++)J1(t[o],n,e,i,r);else{const o=wt(),s=Q(),a=$t();let c=Gt(t)?t:_e(t.provide);const l=d(t),u=1048575&a.providerIndexes,h=a.directiveStart,f=a.providerIndexes>>20;if(Gt(t)||!t.multi){const v=new lp(l,r,g),y=tE(c,n,r?u:u+f,h);-1===y?(aD(av(a,s),o,c),eE(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(v),s.push(v)):(e[y]=v,s[y]=v)}else{const v=tE(c,n,u+f,h),y=tE(c,n,u,u+f),S=y>=0&&e[y];if(r&&!S||!r&&!(v>=0&&e[v])){aD(av(a,s),o,c);const k=function NZ(t,n,e,i,r){const o=new lp(t,e,g);return o.multi=[],o.index=n,o.componentProviders=0,yF(o,r,i&&!e),o}(r?RZ:AZ,e.length,r,i,l);!r&&S&&(e[y].providerFactory=k),eE(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),e.push(k),s.push(k)}else eE(o,t,v>-1?v:y,yF(e[r?y:v],l,!r&&i));!r&&i&&S&&e[y].componentProviders++}}}function eE(t,n,e,i){const r=Gt(n),o=function OC(t){return!!t.useClass}(n);if(r||o){const c=(o?_e(n.useClass):n).prototype.ngOnDestroy;if(c){const l=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const u=l.indexOf(e);-1===u?l.push(e,[i,c]):l[u+1].push(i,c)}else l.push(e,c)}}}function yF(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function tE(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function AZ(t,n,e,i){return nE(this.multi,[])}function RZ(t,n,e,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Ul(e,e[le],this.providerFactory.index,i);o=a.slice(0,s),nE(r,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],nE(r,o);return o}function nE(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function ye(t,n=[]){return e=>{e.providersResolver=(i,r)=>function kZ(t,n,e){const i=wt();if(i.firstCreatePass){const r=qo(t);J1(e,i.data,i.blueprint,r,!0),J1(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}let OZ=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const i=Yg(0,e.type),r=i.length>0?Wv([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(I(_i))})}return t})();function Ft(t){Gs("NgStandalone"),t.getStandaloneInjector=n=>n.get(OZ).getOrCreateStandaloneInjector(t)}function ui(t,n,e){const i=nr()+t,r=Q();return r[i]===ct?$s(r,i,e?n.call(e):n()):function Vp(t,n){return t[n]}(r,i)}function Br(t,n,e,i){return MF(Q(),nr(),t,n,e,i)}function Ql(t,n,e,i,r){return kF(Q(),nr(),t,n,e,i,r)}function oE(t,n,e,i,r,o,s){return function RF(t,n,e,i,r,o,s,a,c){const l=n+e;return function co(t,n,e,i,r,o){const s=ql(t,n,e,i);return ql(t,n+2,r,o)||s}(t,l,r,o,s,a)?$s(t,l+4,c?i.call(c,r,o,s,a):i(r,o,s,a)):Xp(t,l+4)}(Q(),nr(),t,n,e,i,r,o,s)}function Xp(t,n){const e=t[n];return e===ct?void 0:e}function MF(t,n,e,i,r,o){const s=n+e;return Vn(t,s,r)?$s(t,s+1,o?i.call(o,r):i(r)):Xp(t,s+1)}function kF(t,n,e,i,r,o,s){const a=n+e;return ql(t,a,r,o)?$s(t,a+2,s?i.call(s,r,o):i(r,o)):Xp(t,a+2)}function je(t,n){const e=wt();let i;const r=t+ot;e.firstCreatePass?(i=function KZ(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks??=[]).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=Ca(i.type)),a=qn(g);try{const c=sv(!1),l=o();return sv(c),function vZ(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Q(),r,l),l}finally{qn(a)}}function Ye(t,n,e){const i=t+ot,r=Q(),o=Ed(r,i);return Jp(r,i)?MF(r,nr(),n,o.transform,e,o):o.transform(e)}function sh(t,n,e,i){const r=t+ot,o=Q(),s=Ed(o,r);return Jp(o,r)?kF(o,nr(),n,s.transform,e,i,s):s.transform(e,i)}function Jp(t,n){return t[le].data[n].pure}function Ct(t,n){return Fv(t,n)}let KF=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const eP=new W(""),h_=new W("");let gE,dE=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,gE||(function zQ(t){gE=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}static#e=this.\u0275fac=function(i){return new(i||t)(I(xe),I(hE),I(h_))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),hE=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return gE?.findTestabilityInTree(this,e,i)??null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function nf(t){return!!t&&"function"==typeof t.then}function tP(t){return!!t&&"function"==typeof t.subscribe}const pE=new W("");let fE=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i}),this.appInits=x(pE,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const r of this.appInits){const o=r();if(nf(o))e.push(o);else if(tP(o)){const s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const mE=new W("");function rP(t,n){return Array.isArray(n)?n.reduce(rP,t):{...t,...n}}let yi=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=x(zA),this.afterRenderEffectManager=x(Op),this.externalTestViews=new Set,this.beforeRender=new se,this.afterTick=new se,this.componentTypes=[],this.components=[],this.isStable=x(Ac).hasPendingTasks.pipe(Me(e=>!e)),this._injector=x(_i)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof xN;if(!this._injector.get(fE).done)throw!r&&function As(t){const n=ht(t)||On(t)||si(t);return null!==n&&n.standalone}(e),new H(405,!1);let s;s=r?e:this._injector.get(mn).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function WQ(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Wl),l=s.create(He.NULL,[],i||s.selector,a),u=l.location.nativeElement,h=l.injector.get(eP,null);return h?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),g_(this.components,l),h?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(e){if(this._runningTick)throw new H(101,!1);const i=Je(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(e)}catch(r){this.internalErrorHandler(r)}finally{this.afterTick.next(),this._runningTick=!1,Je(i)}}detectChangesInAttachedViews(e){let i=0;const r=this.afterRenderEffectManager;for(;;){if(i===mN)throw new H(103,!1);if(e){const o=0===i;this.beforeRender.next(o);for(let{_lView:s,notifyErrorHandler:a}of this._views)YQ(s,o,a)}if(i++,r.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>bE(o))&&(r.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:o})=>bE(o))))break}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;g_(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(mE,[]);[...this._bootstrapListeners,...i].forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>g_(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new H(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function g_(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function YQ(t,n,e){!n&&!bE(t)||function KQ(t,n,e){let i;e?(i=0,t[Be]|=1024):i=64&t[Be]?0:1,Ov(t,n,i)}(t,e,n)}function bE(t){return WC(t)}class ZQ{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let oP=(()=>{class t{compileModuleSync(e){return new T1(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Pr(vi(e).declarations).reduce((s,a)=>{const c=ht(a);return c&&s.push(new Lp(c)),s},[]);return new ZQ(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JQ=(()=>{class t{constructor(){this.zone=x(xe),this.applicationRef=x(yi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eX(){const t=x(xe),n=x(ao);return e=>t.runOutsideAngular(()=>n.handleError(e))}let nX=(()=>{class t{constructor(){this.subscription=new Ge,this.initialized=!1,this.zone=x(xe),this.pendingTasks=x(Ac)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{xe.assertNotInAngularZone(),queueMicrotask(()=>{null!==e&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{xe.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Xo=new W("",{providedIn:"root",factory:()=>x(Xo,tt.Optional|tt.SkipSelf)||function iX(){return typeof $localize<"u"&&$localize.locale||rh}()}),vE=new W("");let lP=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function Y9(t="zone.js",n){return"noop"===t?new RN:"zone.js"===t?new xe(n):t}(i?.ngZone,function cP(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function Hq(t,n,e){return new I1(t,n,e)}(e.moduleType,this.injector,function aP(t){return[{provide:xe,useFactory:t},{provide:Ea,multi:!0,useFactory:()=>{const n=x(JQ,{optional:!0});return()=>n.initialize()}},{provide:Ea,multi:!0,useFactory:()=>{const n=x(nX);return()=>{n.initialize()}}},{provide:zA,useFactory:eX}]}(()=>r)),s=o.injector.get(ao,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:c=>{s.handleError(c)}});o.onDestroy(()=>{g_(this._modules,o),a.unsubscribe()})}),function iP(t,n,e){try{const i=e();return nf(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(fE);return a.runInitializers(),a.donePromise.then(()=>(function y2(t){"string"==typeof t&&(_2=t.toLowerCase().replace(/_/g,"-"))}(o.injector.get(Xo,rh)||rh),this._moduleDoBootstrap(o),o))})})}bootstrapModule(e,i=[]){const r=rP({},i);return function XQ(t,n,e){const i=new T1(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(yi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new H(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new H(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(vE,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||t)(I(He))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Fc=null;const uP=new W("");function dP(t,n,e=[]){const i=`Platform: ${n}`,r=new W(i);return(o=[])=>{let s=_E();if(!s||s.injector.get(uP,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function sX(t){if(Fc&&!Fc.get(uP,!1))throw new H(400,!1);(function nP(){!function _l(t){Zu=t}(()=>{throw new H(600,!1)})})(),Fc=t;const n=t.get(lP);(function gP(t){t.get(ZA,null)?.forEach(e=>e())})(t)}(function hP(t=[],n){return He.create({name:n,providers:[{provide:Qg,useValue:"platform"},{provide:vE,useValue:new Set([()=>Fc=null])},...t]})}(a,i))}return function aX(t){const n=_E();if(!n)throw new H(401,!1);return n}()}}function _E(){return Fc?.get(lP)??null}let me=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=lX}return t})();function lX(t){return function uX(t,n,e){if(Bl(t)&&!e){const i=Or(t.index,n);return new Mp(i,i)}return 47&t.type?new Mp(n[Dn],n):null}($t(),Q(),!(16&~t))}class vP{constructor(){}supports(n){return Yv(n)}create(n){return new fX(n)}}const pX=(t,n)=>n;class fX{constructor(n){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=n||pX}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex<yP(i,r,o)?e:i,a=yP(s,r,o),c=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(e=e._next,null==s.previousIndex)r++;else{o||(o=[]);const l=a-r,u=c-r;if(l!=u){for(let f=0;f<l;f++){const v=f<o.length?o[f]:o[f]=0,y=v+f;u<=y&&y<l&&(o[f]=v+1)}o[s.previousIndex]=u-l}}a!==c&&n(s,a,c)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!Yv(n))throw new H(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,s,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,o,s,a)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,s,a),i=!0),e=e._next}else r=0,function $q(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[Symbol.iterator]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new mX(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new _P),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _P),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class mX{constructor(n,e){this.item=n,this.trackById=e,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 bX{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class _P{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new bX,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yP(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class wP{constructor(){}supports(n){return n instanceof Map||M1(n)}create(){return new vX}}class vX{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||M1(n)))throw new H(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new _X(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class _X{constructor(n){this.key=n,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 CP(){return new Pc([new vP])}let Pc=(()=>{class t{static#e=this.\u0275prov=R({token:t,providedIn:"root",factory:CP});constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||CP()),deps:[[t,new wa,new ks]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new H(901,!1)}}return t})();function DP(){return new b_([new wP])}let b_=(()=>{class t{static#e=this.\u0275prov=R({token:t,providedIn:"root",factory:DP});constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||DP()),deps:[[t,new wa,new ks]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new H(901,!1)}}return t})();const CX=dP(null,"core",[]);let DX=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(i){return new(i||t)(I(yi))};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();function yt(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function D_(t,n=NaN){return isNaN(parseFloat(t))||isNaN(Number(t))?n:Number(t)}function xE(t,n){const e=ht(t),i=n.elementInjector||bd();return new Lp(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}let WP=null;function Lc(){return WP}class sJ{}const Pe=new W("");let IE=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(cJ),providedIn:"platform"})}return t})();const aJ=new W("");let cJ=(()=>{class t extends IE{constructor(){super(),this._doc=x(Pe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Lc().getBaseHref(this._doc)}onPopState(e){const i=Lc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Lc().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function TE(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function qP(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Ra(t){return t&&"?"!==t[0]?"?"+t:t}let eu=(()=>{class t{historyGo(e){throw new Error("")}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(KP),providedIn:"root"})}return t})();const YP=new W("");let KP=(()=>{class t extends eu{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??x(Pe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return TE(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Ra(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Ra(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Ra(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(I(IE),I(YP,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lJ=(()=>{class t extends eu{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=TE(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Ra(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Ra(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static#e=this.\u0275fac=function(i){return new(i||t)(I(IE),I(YP,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),tu=(()=>{class t{constructor(e){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function hJ(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(qP(ZP(i))),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(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Ra(i))}normalize(e){return t.stripTrailingSlash(function dJ(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,ZP(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ra(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Ra(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}static#e=this.normalizeQueryParams=Ra;static#t=this.joinWithSlash=TE;static#n=this.stripTrailingSlash=qP;static#i=this.\u0275fac=function(i){return new(i||t)(I(eu))};static#r=this.\u0275prov=R({token:t,factory:()=>function uJ(){return new tu(I(eu))}(),providedIn:"root"})}return t})();function ZP(t){return t.replace(/\/index.html$/,"")}var wi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(wi||{}),At=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(At||{}),Vr=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Vr||{});const Zn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function S_(t,n){return po(ir(t)[sn.DateFormat],n)}function x_(t,n){return po(ir(t)[sn.TimeFormat],n)}function I_(t,n){return po(ir(t)[sn.DateTimeFormat],n)}function go(t,n){const e=ir(t),i=e[sn.NumberSymbols][n];if(typeof i>"u"){if(n===Zn.CurrencyDecimal)return e[sn.NumberSymbols][Zn.Decimal];if(n===Zn.CurrencyGroup)return e[sn.NumberSymbols][Zn.Group]}return i}function JP(t){if(!t[sn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[sn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function po(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function AE(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const EJ=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,T_={},SJ=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Na=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Na||{}),Vt=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}(Vt||{}),Ht=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(Ht||{});function eL(t,n,e,i){let r=function OJ(t){if(iL(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,o=1,s=1]=t.split("-").map(a=>+a);return M_(r,o-1,s)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(EJ))return function FJ(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-e,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return o.call(n,s,a,c,l),n}(i)}const n=new Date(t);if(!iL(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=Oa(e,n)||n;let a,s=[];for(;n;){if(a=SJ.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let c=r.getTimezoneOffset();i&&(c=nL(i,c),r=function NJ(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function RJ(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(nL(n,r)-r))}(r,i,!0));let l="";return s.forEach(u=>{const h=function AJ(t){if(NE[t])return NE[t];let n;switch(t){case"G":case"GG":case"GGG":n=cn(Ht.Eras,At.Abbreviated);break;case"GGGG":n=cn(Ht.Eras,At.Wide);break;case"GGGGG":n=cn(Ht.Eras,At.Narrow);break;case"y":n=Qn(Vt.FullYear,1,0,!1,!0);break;case"yy":n=Qn(Vt.FullYear,2,0,!0,!0);break;case"yyy":n=Qn(Vt.FullYear,3,0,!1,!0);break;case"yyyy":n=Qn(Vt.FullYear,4,0,!1,!0);break;case"Y":n=N_(1);break;case"YY":n=N_(2,!0);break;case"YYY":n=N_(3);break;case"YYYY":n=N_(4);break;case"M":case"L":n=Qn(Vt.Month,1,1);break;case"MM":case"LL":n=Qn(Vt.Month,2,1);break;case"MMM":n=cn(Ht.Months,At.Abbreviated);break;case"MMMM":n=cn(Ht.Months,At.Wide);break;case"MMMMM":n=cn(Ht.Months,At.Narrow);break;case"LLL":n=cn(Ht.Months,At.Abbreviated,wi.Standalone);break;case"LLLL":n=cn(Ht.Months,At.Wide,wi.Standalone);break;case"LLLLL":n=cn(Ht.Months,At.Narrow,wi.Standalone);break;case"w":n=RE(1);break;case"ww":n=RE(2);break;case"W":n=RE(1,!0);break;case"d":n=Qn(Vt.Date,1);break;case"dd":n=Qn(Vt.Date,2);break;case"c":case"cc":n=Qn(Vt.Day,1);break;case"ccc":n=cn(Ht.Days,At.Abbreviated,wi.Standalone);break;case"cccc":n=cn(Ht.Days,At.Wide,wi.Standalone);break;case"ccccc":n=cn(Ht.Days,At.Narrow,wi.Standalone);break;case"cccccc":n=cn(Ht.Days,At.Short,wi.Standalone);break;case"E":case"EE":case"EEE":n=cn(Ht.Days,At.Abbreviated);break;case"EEEE":n=cn(Ht.Days,At.Wide);break;case"EEEEE":n=cn(Ht.Days,At.Narrow);break;case"EEEEEE":n=cn(Ht.Days,At.Short);break;case"a":case"aa":case"aaa":n=cn(Ht.DayPeriods,At.Abbreviated);break;case"aaaa":n=cn(Ht.DayPeriods,At.Wide);break;case"aaaaa":n=cn(Ht.DayPeriods,At.Narrow);break;case"b":case"bb":case"bbb":n=cn(Ht.DayPeriods,At.Abbreviated,wi.Standalone,!0);break;case"bbbb":n=cn(Ht.DayPeriods,At.Wide,wi.Standalone,!0);break;case"bbbbb":n=cn(Ht.DayPeriods,At.Narrow,wi.Standalone,!0);break;case"B":case"BB":case"BBB":n=cn(Ht.DayPeriods,At.Abbreviated,wi.Format,!0);break;case"BBBB":n=cn(Ht.DayPeriods,At.Wide,wi.Format,!0);break;case"BBBBB":n=cn(Ht.DayPeriods,At.Narrow,wi.Format,!0);break;case"h":n=Qn(Vt.Hours,1,-12);break;case"hh":n=Qn(Vt.Hours,2,-12);break;case"H":n=Qn(Vt.Hours,1);break;case"HH":n=Qn(Vt.Hours,2);break;case"m":n=Qn(Vt.Minutes,1);break;case"mm":n=Qn(Vt.Minutes,2);break;case"s":n=Qn(Vt.Seconds,1);break;case"ss":n=Qn(Vt.Seconds,2);break;case"S":n=Qn(Vt.FractionalSeconds,1);break;case"SS":n=Qn(Vt.FractionalSeconds,2);break;case"SSS":n=Qn(Vt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=A_(Na.Short);break;case"ZZZZZ":n=A_(Na.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=A_(Na.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=A_(Na.Long);break;default:return null}return NE[t]=n,n}(u);l+=h?h(r,e,c):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function M_(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Oa(t,n){const e=function pJ(t){return ir(t)[sn.LocaleId]}(t);if(T_[e]??={},T_[e][n])return T_[e][n];let i="";switch(n){case"shortDate":i=S_(t,Vr.Short);break;case"mediumDate":i=S_(t,Vr.Medium);break;case"longDate":i=S_(t,Vr.Long);break;case"fullDate":i=S_(t,Vr.Full);break;case"shortTime":i=x_(t,Vr.Short);break;case"mediumTime":i=x_(t,Vr.Medium);break;case"longTime":i=x_(t,Vr.Long);break;case"fullTime":i=x_(t,Vr.Full);break;case"short":const r=Oa(t,"shortTime"),o=Oa(t,"shortDate");i=k_(I_(t,Vr.Short),[r,o]);break;case"medium":const s=Oa(t,"mediumTime"),a=Oa(t,"mediumDate");i=k_(I_(t,Vr.Medium),[s,a]);break;case"long":const c=Oa(t,"longTime"),l=Oa(t,"longDate");i=k_(I_(t,Vr.Long),[c,l]);break;case"full":const u=Oa(t,"fullTime"),h=Oa(t,"fullDate");i=k_(I_(t,Vr.Full),[u,h])}return i&&(T_[e][n]=i),i}function k_(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Jo(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=e));let s=String(t);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),o+s}function Qn(t,n,e=0,i=!1,r=!1){return function(o,s){let a=function IJ(t,n){switch(t){case Vt.FullYear:return n.getFullYear();case Vt.Month:return n.getMonth();case Vt.Date:return n.getDate();case Vt.Hours:return n.getHours();case Vt.Minutes:return n.getMinutes();case Vt.Seconds:return n.getSeconds();case Vt.FractionalSeconds:return n.getMilliseconds();case Vt.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((e>0||a>-e)&&(a+=e),t===Vt.Hours)0===a&&-12===e&&(a=12);else if(t===Vt.FractionalSeconds)return function xJ(t,n){return Jo(t,3).substring(0,n)}(a,n);const c=go(s,Zn.MinusSign);return Jo(a,n,c,i,r)}}function cn(t,n,e=wi.Format,i=!1){return function(r,o){return function TJ(t,n,e,i,r,o){switch(e){case Ht.Months:return function ME(t,n,e){const i=ir(t),o=po([i[sn.MonthsFormat],i[sn.MonthsStandalone]],n);return po(o,e)}(n,r,i)[t.getMonth()];case Ht.Days:return function XP(t,n,e){const i=ir(t),o=po([i[sn.DaysFormat],i[sn.DaysStandalone]],n);return po(o,e)}(n,r,i)[t.getDay()];case Ht.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const l=function _J(t){const n=ir(t);return JP(n),(n[sn.ExtraData][2]||[]).map(i=>"string"==typeof i?AE(i):[AE(i[0]),AE(i[1])])}(n),u=function yJ(t,n,e){const i=ir(t);JP(i);const o=po([i[sn.ExtraData][0],i[sn.ExtraData][1]],n)||[];return po(o,e)||[]}(n,r,i),h=l.findIndex(f=>{if(Array.isArray(f)){const[v,y]=f,D=s>=v.hours&&a>=v.minutes,S=s<y.hours||s===y.hours&&a<y.minutes;if(v.hours<y.hours){if(D&&S)return!0}else if(D||S)return!0}else if(f.hours===s&&f.minutes===a)return!0;return!1});if(-1!==h)return u[h]}return function fJ(t,n,e){const i=ir(t),o=po([i[sn.DayPeriodsFormat],i[sn.DayPeriodsStandalone]],n);return po(o,e)}(n,r,i)[s<12?0:1];case Ht.Eras:return function mJ(t,n){return po(ir(t)[sn.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,o,t,n,e,i)}}function A_(t){return function(n,e,i){const r=-1*i,o=go(e,Zn.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case Na.Short:return(r>=0?"+":"")+Jo(s,2,o)+Jo(Math.abs(r%60),2,o);case Na.ShortGMT:return"GMT"+(r>=0?"+":"")+Jo(s,1,o);case Na.Long:return"GMT"+(r>=0?"+":"")+Jo(s,2,o)+":"+Jo(Math.abs(r%60),2,o);case Na.Extended:return 0===i?"Z":(r>=0?"+":"")+Jo(s,2,o)+":"+Jo(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}const MJ=0,R_=4;function tL(t){const n=t.getDay(),e=0===n?-3:R_-n;return M_(t.getFullYear(),t.getMonth(),t.getDate()+e)}function RE(t,n=!1){return function(e,i){let r;if(n){const o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();r=1+Math.floor((s+o)/7)}else{const o=tL(e),s=function kJ(t){const n=M_(t,MJ,1).getDay();return M_(t,0,1+(n<=R_?R_:R_+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return Jo(r,t,go(i,Zn.MinusSign))}}function N_(t,n=!1){return function(e,i){return Jo(tL(e).getFullYear(),t,go(i,Zn.MinusSign),n)}}const NE={};function nL(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function iL(t){return t instanceof Date&&!isNaN(t.valueOf())}function aL(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const VE=/\s+/,cL=[];let Hr=(()=>{class t{constructor(e,i){this._ngEl=e,this._renderer=i,this.initialClasses=cL,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(VE):cL}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(VE):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(VE).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(on))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngClass",""]],inputs:{klass:[ee.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class YJ{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,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 hi=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new YJ(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),uL(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{uL(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(Re),g(Pc))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function uL(t,n){t.context.$implicit=n.item}let ln=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new KJ,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){dL("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){dL("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class KJ{constructor(){this.$implicit=null,this.ngIf=null}}function dL(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Nn(n)}'.`)}class HE{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let F_=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e===this._ngSwitch;return this._lastCasesMatched||=i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=N({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),hL=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new HE(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(Re),g(F_,9))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),pL=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Tc.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(b_),g(on))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),Ws=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,i,r),get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[we]})}return t})();const lee=new W(""),uee=new W("");let UE=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(null==e||""===e||e!=e)return null;try{return eL(e,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function es(t,n){return new H(2100,!1)}()}}static#e=this.\u0275fac=function(i){return new(i||t)(g(Xo,16),g(lee,24),g(uee,24))};static#t=this.\u0275pipe=Yn({name:"date",type:t,pure:!0,standalone:!0})}return t})(),Oe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();const mL="browser";function fo(t){return t===mL}function bL(t){return"server"===t}let Dee=(()=>{class t{static#e=this.\u0275prov=R({token:t,providedIn:"root",factory:()=>fo(x(Kn))?new Eee(x(Pe),window):new xee})}return t})();class Eee{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const e=function See(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}}class xee{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class vL{}class ete extends sJ{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zE extends ete{static makeCurrent(){!function oJ(t){WP??=t}(new zE)}onAndCancel(n,e,i){return n.addEventListener(e,i),()=>{n.removeEventListener(e,i)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function tte(){return uf=uf||document.querySelector("base"),uf?uf.getAttribute("href"):null}();return null==e?null:function nte(t){return new URL(t,document.baseURI).pathname}(e)}resetBaseElement(){uf=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return aL(document.cookie,n)}}let uf=null,rte=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const WE=new W("");let IL=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new H(5101,!1);return this._eventNameToPlugin.set(e,i),i}static#e=this.\u0275fac=function(i){return new(i||t)(I(WE),I(xe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class TL{constructor(n){this._doc=n}}const qE="ng-app-id";let ML=(()=>{class t{constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=bL(o),this.resetHostNodes()}addStyles(e){for(const i of e)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(e){for(const i of e)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(i=>i.remove()),e.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const i of this.getAllStyles())this.addStyleToHost(e,i)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const i of this.hostNodes)this.addStyleToHost(i,e)}onStyleRemoved(e){const i=this.styleRef;i.get(e)?.elements?.forEach(r=>r.remove()),i.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${qE}="${this.appId}"]`);if(e?.length){const i=new Map;return e.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(e,i){const r=this.styleRef;if(r.has(e)){const o=r.get(e);return o.usage+=i,o.usage}return r.set(e,{usage:i,elements:[]}),i}getStyleElement(e,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===e)return r.delete(i),o.removeAttribute(qE),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(qE,this.appId),e.appendChild(s),s}}addStyleToHost(e,i){const r=this.getStyleElement(e,i),o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(gv),I(gD,8),I(Kn))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const YE={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/"},KE=/%COMP%/g,cte=new W("",{providedIn:"root",factory:()=>!0});function AL(t,n){return n.map(e=>e.replace(KE,t))}let ZE=(()=>{class t{constructor(e,i,r,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=bL(a),this.defaultRenderer=new QE(e,s,c,this.platformIsServer)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===pr.ShadowDom&&(i={...i,encapsulation:pr.Emulated});const r=this.getOrCreateRenderer(e,i);return r instanceof NL?r.applyToHost(e):r instanceof XE&&r.applyStyles(),r}getOrCreateRenderer(e,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(i.encapsulation){case pr.Emulated:o=new NL(c,l,i,this.appId,u,s,a,h);break;case pr.ShadowDom:return new hte(c,l,e,i,s,a,this.nonce,h);default:o=new XE(c,l,i,u,s,a,h)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(I(IL),I(ML),I(gv),I(cte),I(Pe),I(Kn),I(xe),I(gD))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class QE{constructor(n,e,i,r){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(YE[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(RL(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(RL(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new H(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=YE[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=YE[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Tc.DashCase|Tc.Important)?n.style.setProperty(e,i,r&Tc.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Tc.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){null!=n&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i){if("string"==typeof n&&!(n=Lc().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(i))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function RL(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class hte extends QE{constructor(n,e,i,r,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=AL(r.id,r.styles);for(const u of l){const h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=u,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class XE extends QE{constructor(n,e,i,r,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=c?AL(c,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class NL extends XE{constructor(n,e,i,r,o,s,a,c){const l=r+"-"+i.id;super(n,e,i,o,s,a,c,l),this.contentAttr=function lte(t){return"_ngcontent-%COMP%".replace(KE,t)}(l),this.hostAttr=function ute(t){return"_nghost-%COMP%".replace(KE,t)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}let gte=(()=>{class t extends TL{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const OL=["alt","control","meta","shift"],pte={"\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"},fte={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let mte=(()=>{class t extends TL{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Lc().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),OL.forEach(l=>{const u=i.indexOf(l);u>-1&&(i.splice(u,1),s+=l+".")}),s+=o,0!=i.length||0===o.length)return null;const c={};return c.domEventName=r,c.fullKey=s,c}static matchEventFullKeyCode(e,i){let r=pte[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),OL.forEach(s=>{s!==r&&(0,fte[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const yte=dP(CX,"browser",[{provide:Kn,useValue:mL},{provide:ZA,useValue:function bte(){zE.makeCurrent()},multi:!0},{provide:Pe,useFactory:function _te(){return function oW(t){hD=t}(document),document},deps:[]}]),wte=new W(""),LL=[{provide:h_,useClass:class ite{addToWindow(n){vt.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new H(5103,!1);return o},vt.getAllAngularTestabilities=()=>n.getAllTestabilities(),vt.getAllAngularRootElements=()=>n.getAllRootElements(),vt.frameworkStabilizers||(vt.frameworkStabilizers=[]),vt.frameworkStabilizers.push(i=>{const r=vt.getAllAngularTestabilities();let o=r.length;const s=function(){o--,0==o&&i()};r.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?Lc().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:eP,useClass:dE,deps:[xe,hE,h_]},{provide:dE,useClass:dE,deps:[xe,hE,h_]}],BL=[{provide:Qg,useValue:"root"},{provide:ao,useFactory:function vte(){return new ao},deps:[]},{provide:WE,useClass:gte,multi:!0,deps:[Pe,xe,Kn]},{provide:WE,useClass:mte,multi:!0,deps:[Pe]},ZE,ML,IL,{provide:Uv,useExisting:ZE},{provide:vL,useClass:rte,deps:[]},[]];let VL=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:gv,useValue:e.appId}]}}static#e=this.\u0275fac=function(i){return new(i||t)(I(wte,12))};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({providers:[...BL,...LL],imports:[Oe,DX]})}return t})(),Cte=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nu=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:function(i){let r=null;return r=i?new(i||t):I(xte),r},providedIn:"root"})}return t})(),xte=(()=>{class t extends nu{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case Ai.NONE:return i;case Ai.HTML:return Us(i,"HTML")?Fr(i):mR(this._doc,String(i)).toString();case Ai.STYLE:return Us(i,"Style")?Fr(i):i;case Ai.SCRIPT:if(Us(i,"Script"))return Fr(i);throw new H(5200,!1);case Ai.URL:return Us(i,"URL")?Fr(i):Cv(String(i));case Ai.RESOURCE_URL:if(Us(i,"ResourceURL"))return Fr(i);throw new H(5201,!1);default:throw new H(5202,!1)}}bypassSecurityTrustHtml(e){return function SW(t){return new _W(t)}(e)}bypassSecurityTrustStyle(e){return function xW(t){return new yW(t)}(e)}bypassSecurityTrustScript(e){return function IW(t){return new wW(t)}(e)}bypassSecurityTrustUrl(e){return function TW(t){return new CW(t)}(e)}bypassSecurityTrustResourceUrl(e){return function MW(t){return new DW(t)}(e)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dh(t,n,e,i){var s,r=arguments.length,o=r<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(r<3?s(o):r>3?s(n,e,o):s(n,e))||o);return r>3&&o&&Object.defineProperty(n,e,o),o}function Bc(t){return this instanceof Bc?(this.v=t,this):new Bc(t)}function WL(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function nS(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){!function r(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}(a,c,(s=t[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const iS=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function qL(t){return ue(t?.then)}function YL(t){return ue(t[Ti])}function KL(t){return Symbol.asyncIterator&&ue(t?.[Symbol.asyncIterator])}function ZL(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const QL=function qte(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function XL(t){return ue(t?.[QL])}function JL(t){return function zL(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(f){i[f]&&(r[f]=function(v){return new Promise(function(y,D){o.push([f,v,y,D])>1||a(f,v)})})}function a(f,v){try{!function c(f){f.value instanceof Bc?Promise.resolve(f.value.v).then(l,u):h(o[0][2],f)}(i[f](v))}catch(y){h(o[0][3],y)}}function l(f){a("next",f)}function u(f){a("throw",f)}function h(f,v){f(v),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield Bc(e.read());if(r)return yield Bc(void 0);yield yield Bc(i)}}finally{e.releaseLock()}})}function eB(t){return ue(t?.getReader)}function Gn(t){if(t instanceof rt)return t;if(null!=t){if(YL(t))return function Yte(t){return new rt(n=>{const e=t[Ti]();if(ue(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(iS(t))return function Kte(t){return new rt(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(qL(t))return function Zte(t){return new rt(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Uo)})}(t);if(KL(t))return tB(t);if(XL(t))return function Qte(t){return new rt(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(eB(t))return function Xte(t){return tB(JL(t))}(t)}throw ZL(t)}function tB(t){return new rt(n=>{(function Jte(t,n){var e,i,r,o;return function GL(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(u){try{l(i.next(u))}catch(h){s(h)}}function c(u){try{l(i.throw(u))}catch(h){s(h)}}function l(u){u.done?o(u.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(u.value).then(a,c)}l((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=WL(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Fa(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function nB(t,n=0){return qt((e,i)=>{e.subscribe(Mt(i,r=>Fa(i,t,()=>i.next(r),n),()=>Fa(i,t,()=>i.complete(),n),r=>Fa(i,t,()=>i.error(r),n)))})}function iB(t,n=0){return qt((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function rB(t,n){if(!t)throw new Error("Iterable cannot be null");return new rt(e=>{Fa(e,n,()=>{const i=t[Symbol.asyncIterator]();Fa(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $n(t,n){return n?function one(t,n){if(null!=t){if(YL(t))return function ene(t,n){return Gn(t).pipe(iB(n),nB(n))}(t,n);if(iS(t))return function nne(t,n){return new rt(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(qL(t))return function tne(t,n){return Gn(t).pipe(iB(n),nB(n))}(t,n);if(KL(t))return rB(t,n);if(XL(t))return function ine(t,n){return new rt(e=>{let i;return Fa(e,n,()=>{i=t[QL](),Fa(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>ue(i?.return)&&i.return()})}(t,n);if(eB(t))return function rne(t,n){return rB(JL(t),n)}(t,n)}throw ZL(t)}(t,n):Gn(t)}const{isArray:sne}=Array,{getPrototypeOf:ane,prototype:cne,keys:lne}=Object;function oB(t){if(1===t.length){const n=t[0];if(sne(n))return{args:n,keys:null};if(function une(t){return t&&"object"==typeof t&&ane(t)===cne}(n)){const e=lne(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function sB(t){return t&&ue(t.schedule)}function rS(t){return t[t.length-1]}function B_(t){return ue(rS(t))?t.pop():void 0}function hf(t){return sB(rS(t))?t.pop():void 0}const{isArray:hne}=Array;function oS(t){return Me(n=>function gne(t,n){return hne(n)?t(...n):t(n)}(t,n))}function aB(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function V_(...t){const n=B_(t),{args:e,keys:i}=oB(t),r=new rt(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u<s;u++){let h=!1;Gn(e[u]).subscribe(Mt(o,f=>{h||(h=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!h)&&(l||o.next(i?aB(i,a):a),o.complete())}))}});return n?r.pipe(oS(n)):r}let cB=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(on),g(F))};static#t=this.\u0275dir=N({type:t})}return t})(),iu=(()=>{class t extends cB{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,features:[O]})}return t})();const Ur=new W(""),fne={provide:Ur,useExisting:_t(()=>qs),multi:!0},bne=new W("");let qs=(()=>{class t extends cB{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function mne(){const t=Lc()?Lc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(on),g(F),g(bne,8))};static#t=this.\u0275dir=N({type:t,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(i,r){1&i&&B("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[ye([fne]),O]})}return t})();const gi=new W(""),Hc=new W("");function gB(t){return function Vc(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}(t.value)?{required:!0}:null}function H_(t){return null}function _B(t){return null!=t}function yB(t){return nf(t)?$n(t):t}function wB(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function CB(t,n){return n.map(e=>e(t))}function DB(t){return t.map(n=>function _ne(t){return!t.validate}(n)?n:e=>n.validate(e))}function sS(t){return null!=t?function EB(t){if(!t)return null;const n=t.filter(_B);return 0==n.length?null:function(e){return wB(CB(e,n))}}(DB(t)):null}function aS(t){return null!=t?function SB(t){if(!t)return null;const n=t.filter(_B);return 0==n.length?null:function(e){return V_(CB(e,n).map(yB)).pipe(Me(wB))}}(DB(t)):null}function xB(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function IB(t){return t._rawValidators}function TB(t){return t._rawAsyncValidators}function cS(t){return t?Array.isArray(t)?t:[t]:[]}function U_(t,n){return Array.isArray(t)?t.includes(n):t===n}function MB(t,n){const e=cS(n);return cS(t).forEach(r=>{U_(e,r)||e.push(r)}),e}function kB(t,n){return cS(n).filter(e=>!U_(t,e))}class AB{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(n){this._rawValidators=n||[],this._composedValidatorFn=sS(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=aS(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class or extends AB{get formDirective(){return null}get path(){return null}}class Uc extends AB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class RB{constructor(n){this._cd=n}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 jc=(()=>{class t extends RB{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(Uc,2))};static#t=this.\u0275dir=N({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&ae("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:[O]})}return t})(),Ys=(()=>{class t extends RB{constructor(e){super(e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(or,10))};static#t=this.\u0275dir=N({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&ae("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:[O]})}return t})();const gf="VALID",G_="INVALID",hh="PENDING",pf="DISABLED";function dS(t){return($_(t)?t.validators:t)||null}function hS(t,n){return($_(n)?n.asyncValidators:t)||null}function $_(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function OB(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new H(1e3,"");if(!i[e])throw new H(1001,"")}function FB(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new H(1002,"")})}class z_{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===gf}get invalid(){return this.status===G_}get pending(){return this.status==hh}get disabled(){return this.status===pf}get enabled(){return this.status!==pf}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(MB(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(MB(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(kB(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(kB(n,this._rawAsyncValidators))}hasValidator(n){return U_(this._rawValidators,n)}hasAsyncValidator(n){return U_(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=hh,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=pf,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=gf,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gf||this.status===hh)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pf:gf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=hh,this._hasOwnPendingAsyncValidator=!0;const e=yB(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?pf:this.errors?G_:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(hh)?hh:this._anyControlsHaveStatus(G_)?G_:gf}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){$_(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Dne(t){return Array.isArray(t)?sS(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Ene(t){return Array.isArray(t)?aS(t):t||null}(this._rawAsyncValidators)}}class ff extends z_{constructor(n,e,i){super(dS(e),hS(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){FB(this,0,n),Object.keys(n).forEach(i=>{OB(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class PB extends ff{}const ru=new W("CallSetDisabledState",{providedIn:"root",factory:()=>mf}),mf="always";function W_(t,n){return[...n.path,t]}function bf(t,n,e=mf){gS(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function xne(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&LB(t,n)})}(t,n),function Tne(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Ine(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&LB(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Sne(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function q_(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),K_(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Y_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function gS(t,n){const e=IB(t);null!==n.validator?t.setValidators(xB(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=TB(t);null!==n.asyncValidator?t.setAsyncValidators(xB(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Y_(n._rawValidators,r),Y_(n._rawAsyncValidators,r)}function K_(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=IB(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=TB(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Y_(n._rawValidators,i),Y_(n._rawAsyncValidators,i),e}function LB(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function BB(t,n){gS(t,n)}function fS(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function VB(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function mS(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===qs?e=o:function Ane(t){return Object.getPrototypeOf(t.constructor)===iu}(o)?i=o:r=o}),r||i||e||null}const Nne={provide:or,useExisting:_t(()=>gh)},vf=Promise.resolve();let gh=(()=>{class t extends or{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new X,this.form=new ff({},sS(e),aS(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){vf.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),bf(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){vf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){vf.then(()=>{const i=this._findContainer(e.path),r=new ff({});BB(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){vf.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){vf.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,VB(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static#e=this.\u0275fac=function(i){return new(i||t)(g(gi,10),g(Hc,10),g(ru,8))};static#t=this.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&B("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:[ee.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([Nne]),O]})}return t})();function HB(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function UB(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const _f=class extends z_{constructor(n=null,e,i){super(dS(e),hS(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=UB(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){HB(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){HB(this._onDisabledChange,n)}_forEachChild(n){}_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(n){UB(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Pne={provide:Uc,useExisting:_t(()=>bS)},$B=Promise.resolve();let bS=(()=>{class t extends Uc{constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new _f,this._registered=!1,this.name="",this.update=new X,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=mS(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),fS(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bf(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){$B.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&yt(i);$B.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?W_(e,this._parent):[e]}static#e=this.\u0275fac=function(i){return new(i||t)(g(or,9),g(gi,10),g(Hc,10),g(Ur,10),g(me,8),g(ru,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ee.None,"disabled","isDisabled"],model:[ee.None,"ngModel","model"],options:[ee.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ye([Pne]),O,we]})}return t})(),Ks=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=N({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const Lne={provide:Ur,useExisting:_t(()=>Z_),multi:!0};let Z_=(()=>{class t extends iu{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=i=>{e(""==i?null:parseFloat(i))}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&B("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[ye([Lne]),O]})}return t})();const vS=new W(""),jne={provide:or,useExisting:_t(()=>Pa)};let Pa=(()=>{class t extends or{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(K_(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return bf(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){q_(e.control||null,e,!1),function Rne(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,VB(this.form,this.directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(q_(i||null,e),(t=>t instanceof _f)(r)&&(bf(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);BB(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function Mne(t,n){return K_(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gS(this.form,this),this._oldForm&&K_(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(i){return new(i||t)(g(gi,10),g(Hc,10),g(ru,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&B("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:[ee.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([jne]),O,we]})}return t})();const zne={provide:Uc,useExisting:_t(()=>Gc)};let Gc=(()=>{class t extends Uc{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=mS(0,o)}ngOnChanges(e){this._added||this._setUpControl(),fS(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return W_(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}static#t=this.\u0275fac=function(i){return new(i||t)(g(or,13),g(gi,10),g(Hc,10),g(Ur,10),g(vS,8))};static#n=this.\u0275dir=N({type:t,selectors:[["","formControlName",""]],inputs:{name:[ee.None,"formControlName","name"],isDisabled:[ee.None,"disabled","isDisabled"],model:[ee.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[ye([zne]),O,we]})}return t})();let ou=(()=>{class t{constructor(){this._validator=H_}ngOnChanges(e){if(this.inputName in e){const i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):H_,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=N({type:t,features:[we]})}return t})();const eie={provide:gi,useExisting:_t(()=>Q_),multi:!0};let Q_=(()=>{class t extends ou{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=yt,this.createValidator=e=>gB}enabled(e){return e}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){2&i&&st("required",r._enabled?"":null)},inputs:{required:"required"},features:[ye([eie]),O]})}return t})();const rie={provide:gi,useExisting:_t(()=>ES),multi:!0};let ES=(()=>{class t extends ou{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=e=>function QB(t){return"number"==typeof t?t:parseInt(t,10)}(e),this.createValidator=e=>function bB(t){return n=>function uB(t){return null!=t&&"number"==typeof t.length}(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(e)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){2&i&&st("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ye([rie]),O]})}return t})(),rV=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();class oV extends z_{constructor(n,e,i){super(dS(e),hS(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){FB(this,0,n),n.forEach((i,r)=>{OB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function sV(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let su=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return sV(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new ff(r,o)}record(e,i=null){const r=this._reduceControls(e);return new PB(r,i)}control(e,i,r){let o={};return this.useNonNullable?(sV(i)?o=i:(o.validators=i,o.asyncValidators=r),new _f(e,{...o,nonNullable:!0})):new _f(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new oV(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof _f||e instanceof z_?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sie=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ru,useValue:e.callSetDisabledState??mf}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[rV]})}return t})(),ph=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:vS,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:ru,useValue:e.callSetDisabledState??mf}]}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[rV]})}return t})();function Ee(...t){return $n(t,hf(t))}function pi(t,n,e=1/0){return ue(n)?pi((i,r)=>Me((o,s)=>n(i,o,r,s))(Gn(t(i,r))),e):("number"==typeof n&&(e=n),qt((i,r)=>function aie(t,n,e,i,r,o,s,a){const c=[];let l=0,u=0,h=!1;const f=()=>{h&&!c.length&&!l&&n.complete()},v=D=>l<i?y(D):c.push(D),y=D=>{o&&n.next(D),l++;let S=!1;Gn(e(D,u++)).subscribe(Mt(n,k=>{r?.(k),o?v(k):n.next(k)},()=>{S=!0},void 0,()=>{if(S)try{for(l--;c.length&&l<i;){const k=c.shift();s?Fa(n,s,()=>y(k)):y(k)}f()}catch(k){n.error(k)}}))};return t.subscribe(Mt(n,v,()=>{h=!0,f()})),()=>{a?.()}}(i,r,t,e)))}function fh(t,n){return ue(n)?pi(t,n,1):pi(t,1)}function Wt(t,n){return qt((e,i)=>{let r=0;e.subscribe(Mt(i,o=>t.call(n,o,r++)&&i.next(o)))})}function $c(t){return qt((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function _r(t,n){return qt((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(Mt(i,c=>{r?.unsubscribe();let l=0;const u=o++;Gn(t(c,u)).subscribe(r=Mt(i,h=>i.next(n?n(c,h,u,l++):h),()=>{r=null,a()}))},()=>{s=!0,a()}))})}class X_{}class J_{}class mo{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof mo?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new mo;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof mo?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(n,e){const i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class cie{encodeKey(n){return aV(n)}encodeValue(n){return aV(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const uie=/%(\d[a-f0-9])/gi,die={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function aV(t){return encodeURIComponent(t).replace(uie,(n,e)=>die[e]??n)}function ey(t){return`${t}`}class ts{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new cie,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function lie(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(ey):[ey(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new ts({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(ey(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(ey(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class hie{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function cV(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function lV(t){return typeof Blob<"u"&&t instanceof Blob}function uV(t){return typeof FormData<"u"&&t instanceof FormData}class yf{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function gie(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new mo,this.context??=new hie,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+s}}else this.params=new ts,this.urlWithParams=e}serializeBody(){return null===this.body?null:cV(this.body)||lV(this.body)||uV(this.body)||function pie(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ts?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||uV(this.body)?null:lV(this.body)?this.body.type||null:cV(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ts?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let c=n.headers||this.headers,l=n.params||this.params;const u=n.context??this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce((h,f)=>h.set(f,n.setHeaders[f]),c)),n.setParams&&(l=Object.keys(n.setParams).reduce((h,f)=>h.set(f,n.setParams[f]),l)),new yf(e,i,o,{params:l,headers:c,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var zc=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(zc||{});class SS{constructor(n,e=wf.Ok,i="OK"){this.headers=n.headers||new mo,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class ty extends SS{constructor(n={}){super(n),this.type=zc.ResponseHeader}clone(n={}){return new ty({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class au extends SS{constructor(n={}){super(n),this.type=zc.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new au({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class mh extends SS{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var wf=function(t){return t[t.Continue=100]="Continue",t[t.SwitchingProtocols=101]="SwitchingProtocols",t[t.Processing=102]="Processing",t[t.EarlyHints=103]="EarlyHints",t[t.Ok=200]="Ok",t[t.Created=201]="Created",t[t.Accepted=202]="Accepted",t[t.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",t[t.NoContent=204]="NoContent",t[t.ResetContent=205]="ResetContent",t[t.PartialContent=206]="PartialContent",t[t.MultiStatus=207]="MultiStatus",t[t.AlreadyReported=208]="AlreadyReported",t[t.ImUsed=226]="ImUsed",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.Unused=306]="Unused",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.LengthRequired=411]="LengthRequired",t[t.PreconditionFailed=412]="PreconditionFailed",t[t.PayloadTooLarge=413]="PayloadTooLarge",t[t.UriTooLong=414]="UriTooLong",t[t.UnsupportedMediaType=415]="UnsupportedMediaType",t[t.RangeNotSatisfiable=416]="RangeNotSatisfiable",t[t.ExpectationFailed=417]="ExpectationFailed",t[t.ImATeapot=418]="ImATeapot",t[t.MisdirectedRequest=421]="MisdirectedRequest",t[t.UnprocessableEntity=422]="UnprocessableEntity",t[t.Locked=423]="Locked",t[t.FailedDependency=424]="FailedDependency",t[t.TooEarly=425]="TooEarly",t[t.UpgradeRequired=426]="UpgradeRequired",t[t.PreconditionRequired=428]="PreconditionRequired",t[t.TooManyRequests=429]="TooManyRequests",t[t.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",t[t.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported",t[t.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",t[t.InsufficientStorage=507]="InsufficientStorage",t[t.LoopDetected=508]="LoopDetected",t[t.NotExtended=510]="NotExtended",t[t.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",t}(wf||{});function xS(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}let jr=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof yf)o=e;else{let c,l;c=r.headers instanceof mo?r.headers:new mo(r.headers),r.params&&(l=r.params instanceof ts?r.params:new ts({fromObject:r.params})),o=new yf(e,i,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:l,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}const s=Ee(o).pipe(fh(c=>this.handler.handle(c)));if(e instanceof yf||"events"===r.observe)return s;const a=s.pipe(Wt(c=>c instanceof au));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Me(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(Me(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(Me(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(Me(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new ts).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,xS(r,i))}post(e,i,r={}){return this.request("POST",e,xS(r,i))}put(e,i,r={}){return this.request("PUT",e,xS(r,i))}static#e=this.\u0275fac=function(i){return new(i||t)(I(X_))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function hV(t,n){return n(t)}function _ie(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const wie=new W(""),Cf=new W(""),gV=new W(""),pV=new W("");function Cie(){let t=null;return(n,e)=>{null===t&&(t=(x(wie,{optional:!0})??[]).reduceRight(_ie,hV));const i=x(Ac),r=i.add();return t(n,e).pipe($c(()=>i.remove(r)))}}let fV=(()=>{class t extends X_{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null,this.pendingTasks=x(Ac);const r=x(pV,{optional:!0});this.backend=r??e}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Cf),...this.injector.get(gV,[])]));this.chain=r.reduceRight((o,s)=>function yie(t,n,e){return(i,r)=>ze(e,()=>n(i,o=>t(o,r)))}(o,s,this.injector),hV)}const i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe($c(()=>this.pendingTasks.remove(i)))}static#e=this.\u0275fac=function(i){return new(i||t)(I(J_),I(_i))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const Iie=/^\)\]\}',?\n/;let bV=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new H(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?$n(i.\u0275loadImpl()):Ee(null)).pipe(_r(()=>new rt(o=>{const s=i.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((D,S)=>s.setRequestHeader(D,S.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const D=e.detectContentTypeHeader();null!==D&&s.setRequestHeader("Content-Type",D)}if(e.responseType){const D=e.responseType.toLowerCase();s.responseType="json"!==D?D:"text"}const a=e.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const D=s.statusText||"OK",S=new mo(s.getAllResponseHeaders()),k=function Tie(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return c=new ty({headers:S,status:s.status,statusText:D,url:k}),c},u=()=>{let{headers:D,status:S,statusText:k,url:A}=l(),K=null;S!==wf.NoContent&&(K=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=K?wf.Ok:0);let J=S>=200&&S<300;if("json"===e.responseType&&"string"==typeof K){const de=K;K=K.replace(Iie,"");try{K=""!==K?JSON.parse(K):null}catch(ve){K=de,J&&(J=!1,K={error:ve,text:K})}}J?(o.next(new au({body:K,headers:D,status:S,statusText:k,url:A||void 0})),o.complete()):o.error(new mh({error:K,headers:D,status:S,statusText:k,url:A||void 0}))},h=D=>{const{url:S}=l(),k=new mh({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});o.error(k)};let f=!1;const v=D=>{f||(o.next(l()),f=!0);let S={type:zc.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(S.total=D.total),"text"===e.responseType&&s.responseText&&(S.partialText=s.responseText),o.next(S)},y=D=>{let S={type:zc.UploadProgress,loaded:D.loaded};D.lengthComputable&&(S.total=D.total),o.next(S)};return s.addEventListener("load",u),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",v),null!==a&&s.upload&&s.upload.addEventListener("progress",y)),s.send(a),o.next({type:zc.Sent}),()=>{s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",u),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",v),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(i){return new(i||t)(I(vL))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const MS=new W(""),vV=new W("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_V=new W("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class yV{}let Aie=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=aL(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(Kn),I(vV))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Rie(t,n){const e=t.url.toLowerCase();if(!x(MS)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=x(yV).getToken(),r=x(_V);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Wc=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Wc||{});function Nie(...t){const n=[jr,bV,fV,{provide:X_,useExisting:fV},{provide:J_,useExisting:bV},{provide:Cf,useValue:Rie,multi:!0},{provide:MS,useValue:!0},{provide:yV,useClass:Aie}];for(const e of t)n.push(...e.\u0275providers);return function Fl(t){return{\u0275providers:t}}(n)}const wV=new W("");function Oie(){return function cu(t,n){return{\u0275kind:t,\u0275providers:n}}(Wc.LegacyInterceptors,[{provide:wV,useFactory:Cie},{provide:Cf,useExisting:wV,multi:!0}])}let Fie=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({providers:[Nie(Oie())]})}return t})();function kS(t){return!!t&&(t instanceof rt||ue(t.lift)&&ue(t.subscribe))}function La(...t){const n=hf(t),e=B_(t),{args:i,keys:r}=oB(t);if(0===i.length)return $n([],n);const o=new rt(function Uie(t,n,e=ri){return i=>{TV(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let c=0;c<r;c++)TV(n,()=>{const l=$n(t[c],n);let u=!1;l.subscribe(Mt(i,h=>{o[c]=h,u||(u=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>aB(r,s):ri));return e?o.pipe(oS(e)):o}function TV(t,n,e){t?Fa(e,t,n):n()}const iy=pn(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function bh(t=1/0){return pi(ri,t)}function vh(...t){return function jie(){return bh(1)}()($n(t,hf(t)))}function ry(t){return new rt(n=>{Gn(t()).subscribe(n)})}function Df(t,n){const e=ue(t)?t:()=>t,i=r=>r.error(e());return new rt(n?r=>n.schedule(i,0,r):i)}const yr=new rt(t=>t.complete());function AS(){return qt((t,n)=>{let e=null;t._refCount++;const i=Mt(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class RS extends rt{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,oi(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Ge;const e=this.getSubject();n.add(this.source.subscribe(Mt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Ge.EMPTY)}return n}refCount(){return AS()(this)}}function Zt(t){return t<=0?()=>yr:qt((n,e)=>{let i=0;n.subscribe(Mt(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function Zs(...t){const n=hf(t);return qt((e,i)=>{(n?vh(t,e,n):vh(t,e)).subscribe(i)})}function oy(t){return qt((n,e)=>{let i=!1;n.subscribe(Mt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function MV(t=$ie){return qt((n,e)=>{let i=!1;n.subscribe(Mt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function $ie(){return new iy}function lu(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((r,o)=>t(r,o,i)):ri,Zt(1),e?oy(n):MV(()=>new iy))}function Tn(t,n,e){const i=ue(t)||n||e?{next:t,error:n,complete:e}:t;return i?qt((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(Mt(o,c=>{var l;null===(l=i.next)||void 0===l||l.call(i,c),o.next(c)},()=>{var c;a=!1,null===(c=i.complete)||void 0===c||c.call(i),o.complete()},c=>{var l;a=!1,null===(l=i.error)||void 0===l||l.call(i,c),o.error(c)},()=>{var c,l;a&&(null===(c=i.unsubscribe)||void 0===c||c.call(i)),null===(l=i.finalize)||void 0===l||l.call(i)}))}):ri}function Ba(t){return qt((n,e)=>{let o,i=null,r=!1;i=n.subscribe(Mt(e,void 0,void 0,s=>{o=Gn(t(s,Ba(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function NS(t){return t<=0?()=>yr:qt((n,e)=>{let i=[];n.subscribe(Mt(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function De(t){return qt((n,e)=>{Gn(t).subscribe(Mt(e,()=>e.complete(),Jt)),!e.closed&&n.subscribe(e)})}const gt="primary",Ef=Symbol("RouteTitle");class Yie{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _h(t){return new Yie(t)}function Kie(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=t[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function Qs(t,n){const e=t?OS(t):void 0,i=n?OS(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!AV(t[r],n[r]))return!1;return!0}function OS(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function AV(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}return t===n}function RV(t){return t.length>0?t[t.length-1]:null}function qc(t){return kS(t)?t:nf(t)?$n(Promise.resolve(t)):Ee(t)}const Qie={exact:function FV(t,n,e){if(!uu(t.segments,n.segments)||!sy(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!FV(t.children[i],n.children[i],e))return!1;return!0},subset:PV},NV={exact:function Xie(t,n){return Qs(t,n)},subset:function Jie(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>AV(t[e],n[e]))},ignored:()=>!0};function OV(t,n,e){return Qie[e.paths](t.root,n.root,e.matrixParams)&&NV[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function PV(t,n,e){return LV(t,n,n.segments,e)}function LV(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!uu(r,e)||n.hasChildren()||!sy(r,e,i))}if(t.segments.length===e.length){if(!uu(t.segments,e)||!sy(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!PV(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(uu(t.segments,r)&&sy(t.segments,r,i)&&t.children[gt])&&LV(t.children[gt],n,o,i)}}function sy(t,n,e){return n.every((i,r)=>NV[e](t[r].parameters,i.parameters))}class yh{constructor(n=new Qt([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=_h(this.queryParams),this._queryParamMap}toString(){return nre.serialize(this)}}class Qt{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ay(this)}}class Sf{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=_h(this.parameters),this._parameterMap}toString(){return HV(this)}}function uu(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let wh=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>new FS,providedIn:"root"})}return t})();class FS{parse(n){const e=new gre(n);return new yh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${xf(n.root,!0)}`,i=function ore(t){const n=Object.entries(t).map(([e,i])=>Array.isArray(i)?i.map(r=>`${cy(e)}=${cy(r)}`).join("&"):`${cy(e)}=${cy(i)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function ire(t){return encodeURI(t)}(n.fragment)}`:""}`}}const nre=new FS;function ay(t){return t.segments.map(n=>HV(n)).join("/")}function xf(t,n){if(!t.hasChildren())return ay(t);if(n){const e=t.children[gt]?xf(t.children[gt],!1):"",i=[];return Object.entries(t.children).forEach(([r,o])=>{r!==gt&&i.push(`${r}:${xf(o,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function tre(t,n){let e=[];return Object.entries(t.children).forEach(([i,r])=>{i===gt&&(e=e.concat(n(r,i)))}),Object.entries(t.children).forEach(([i,r])=>{i!==gt&&(e=e.concat(n(r,i)))}),e}(t,(i,r)=>r===gt?[xf(t.children[gt],!1)]:[`${r}:${xf(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[gt]?`${ay(t)}/${e[0]}`:`${ay(t)}/(${e.join("//")})`}}function BV(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function cy(t){return BV(t).replace(/%3B/gi,";")}function PS(t){return BV(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ly(t){return decodeURIComponent(t)}function VV(t){return ly(t.replace(/\+/g,"%20"))}function HV(t){return`${PS(t.path)}${function rre(t){return Object.entries(t).map(([n,e])=>`;${PS(n)}=${PS(e)}`).join("")}(t.parameters)}`}const sre=/^[^\/()?;#]+/;function LS(t){const n=t.match(sre);return n?n[0]:""}const are=/^[^\/()?;=#]+/,lre=/^[^=?&#]+/,dre=/^[^&#]+/;class gre{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qt([],{}):new Qt([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[gt]=new Qt(n,e)),i}parseSegment(){const n=LS(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new H(4009,!1);return this.capture(n),new Sf(ly(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function cre(t){const n=t.match(are);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=LS(this.remaining);r&&(i=r,this.capture(i))}n[ly(e)]=ly(i)}parseQueryParam(n){const e=function ure(t){const n=t.match(lre);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function hre(t){const n=t.match(dre);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=VV(e),o=VV(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=LS(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new H(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=gt);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[gt]:new Qt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new H(4011,!1)}}function UV(t){return t.segments.length>0?new Qt([],{[gt]:t}):t}function jV(t){const n={};for(const[i,r]of Object.entries(t.children)){const o=jV(r);if(i===gt&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function pre(t){if(1===t.numberOfChildren&&t.children[gt]){const n=t.children[gt];return new Qt(t.segments.concat(n.segments),n.children)}return t}(new Qt(t.segments,n))}function Ch(t){return t instanceof yh}function GV(t){let n;const r=UV(function e(o){const s={};for(const c of o.children){const l=e(c);s[c.outlet]=l}const a=new Qt(o.url,s);return o===t&&(n=a),a}(t.root));return n??r}function $V(t,n,e,i){let r=t;for(;r.parent;)r=r.parent;if(0===n.length)return BS(r,r,r,e,i);const o=function mre(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new WV(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new WV(e,n,i)}(n);if(o.toRoot())return BS(r,r,new Qt([],{}),e,i);const s=function bre(t,n,e){if(t.isAbsolute)return new dy(n,!0,0);if(!e)return new dy(n,!1,NaN);if(null===e.parent)return new dy(e,!0,0);const i=uy(t.commands[0])?0:1;return function vre(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new H(4005,!1);r=i.segments.length}return new dy(i,!1,r-o)}(e,e.segments.length-1+i,t.numberOfDoubleDots)}(o,r,t),a=s.processChildren?Tf(s.segmentGroup,s.index,o.commands):qV(s.segmentGroup,s.index,o.commands);return BS(r,s.segmentGroup,a,e,i)}function uy(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function If(t){return"object"==typeof t&&null!=t&&t.outlets}function BS(t,n,e,i,r){let s,o={};i&&Object.entries(i).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=t===n?e:zV(t,n,e);const a=UV(jV(s));return new yh(a,o,r)}function zV(t,n,e){const i={};return Object.entries(t.children).forEach(([r,o])=>{i[r]=o===n?e:zV(o,n,e)}),new Qt(t.segments,i)}class WV{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&uy(i[0]))throw new H(4003,!1);const r=i.find(If);if(r&&r!==RV(i))throw new H(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dy{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function qV(t,n,e){if(t??=new Qt([],{}),0===t.segments.length&&t.hasChildren())return Tf(t,n,e);const i=function yre(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;const s=t.segments[r],a=e[i];if(If(a))break;const c=`${a}`,l=i<e.length-1?e[i+1]:null;if(r>0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!KV(c,l,s))return o;i+=2}else{if(!KV(c,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const o=new Qt(t.segments.slice(0,i.pathIndex),{});return o.children[gt]=new Qt(t.segments.slice(i.pathIndex),t.children),Tf(o,0,r)}return i.match&&0===r.length?new Qt(t.segments,{}):i.match&&!t.hasChildren()?VS(t,n,e):i.match?Tf(t,0,r):VS(t,n,e)}function Tf(t,n,e){if(0===e.length)return new Qt(t.segments,{});{const i=function _re(t){return If(t[0])?t[0].outlets:{[gt]:t}}(e),r={};if(Object.keys(i).some(o=>o!==gt)&&t.children[gt]&&1===t.numberOfChildren&&0===t.children[gt].segments.length){const o=Tf(t.children[gt],n,e);return new Qt(t.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=qV(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new Qt(t.segments,r)}}function VS(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const o=e[r];if(If(o)){const c=wre(o.outlets);return new Qt(i,c)}if(0===r&&uy(e[0])){i.push(new Sf(t.segments[n].path,YV(e[0]))),r++;continue}const s=If(o)?o.outlets[gt]:`${o}`,a=r<e.length-1?e[r+1]:null;s&&a&&uy(a)?(i.push(new Sf(s,YV(a))),r+=2):(i.push(new Sf(s,{})),r++)}return new Qt(i,{})}function wre(t){const n={};return Object.entries(t).forEach(([e,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[e]=VS(new Qt([],{}),0,i))}),n}function YV(t){const n={};return Object.entries(t).forEach(([e,i])=>n[e]=`${i}`),n}function KV(t,n,e){return t==e.path&&Qs(n,e.parameters)}const Mf="imperative";var St=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(St||{});class Xs{constructor(n,e){this.id=n,this.url=e}}class hy extends Xs{constructor(n,e,i="imperative",r=null){super(n,e),this.type=St.NavigationStart,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Va extends Xs{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=St.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Gr=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Gr||{}),gy=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(gy||{});class Dh extends Xs{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=St.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Eh extends Xs{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=St.NavigationSkipped}}class py extends Xs{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=St.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ZV extends Xs{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=St.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Cre extends Xs{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=St.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dre extends Xs{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=St.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ere extends Xs{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=St.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sre extends Xs{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=St.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xre{constructor(n){this.route=n,this.type=St.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ire{constructor(n){this.route=n,this.type=St.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Tre{constructor(n){this.snapshot=n,this.type=St.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mre{constructor(n){this.snapshot=n,this.type=St.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kre{constructor(n){this.snapshot=n,this.type=St.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Are{constructor(n){this.snapshot=n,this.type=St.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class QV{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=St.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class HS{}class US{constructor(n){this.url=n}}class Rre{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new kf,this.attachRef=null}}let kf=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new Rre,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class XV{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=jS(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=jS(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=GS(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return GS(n,this._root).map(e=>e.value)}}function jS(t,n){if(t===n.value)return n;for(const e of n.children){const i=jS(t,e);if(i)return i}return null}function GS(t,n){if(t===n.value)return[n];for(const e of n.children){const i=GS(t,e);if(i.length)return i.unshift(n),i}return[]}class ns{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Sh(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class JV extends XV{constructor(n,e){super(n),this.snapshot=e,WS(this,n)}toString(){return this.snapshot.toString()}}function e3(t){const n=function Nre(t){const o=new zS([],{},{},"",{},gt,t,null,{});return new t3("",new ns(o,[]))}(t),e=new dt([new Sf("",{})]),i=new dt({}),r=new dt({}),o=new dt({}),s=new dt(""),a=new xh(e,i,o,s,r,gt,t,n.root);return a.snapshot=n.root,new JV(new ns(a,[]),n)}class xh{constructor(n,e,i,r,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(Me(l=>l[Ef]))??Ee(void 0),this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Me(n=>_h(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Me(n=>_h(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $S(t,n,e="emptyOnly"){let i;const{routeConfig:r}=t;return i=null===n||"always"!==e&&""!==r?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...t.params},data:{...t.data},resolve:{...t.data,...t._resolvedData??{}}}:{params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.data,...r?.data,...t._resolvedData}},r&&r3(r)&&(i.resolve[Ef]=r.title),i}class zS{get title(){return this.data?.[Ef]}constructor(n,e,i,r,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=_h(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_h(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class t3 extends XV{constructor(n,e){super(e),this.url=n,WS(this,e)}toString(){return n3(this._root)}}function WS(t,n){n.value._routerState=t,n.children.forEach(e=>WS(t,e))}function n3(t){const n=t.children.length>0?` { ${t.children.map(n3).join(", ")} } `:"";return`${t.value}${n}`}function qS(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Qs(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Qs(n.params,e.params)||t.paramsSubject.next(e.params),function Zie(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Qs(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.urlSubject.next(e.url),Qs(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function YS(t,n){const e=Qs(t.params,n.params)&&function ere(t,n){return uu(t,n)&&t.every((e,i)=>Qs(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||YS(t.parent,n.parent))}function r3(t){return"string"==typeof t.title||null===t.title}let KS=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=gt,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=x(kf),this.location=x(zt),this.changeDetector=x(me),this.environmentInjector=x(_i),this.inputBinder=x(fy,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new H(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new H(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new H(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new H(4013,!1);this._activatedRoute=e;const r=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Ore(e,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=N({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[we]})}return t})();class Ore{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===xh?this.route:n===kf?this.childContexts:this.parent.get(n,e)}}const fy=new W("");let o3=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:i}=e,r=La([i.queryParams,i.params,i.data]).pipe(_r(([o,s,a],c)=>(a={...o,...s,...a},0===c?Ee(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(e);const s=function rJ(t){const n=ht(t);if(!n)return null;const e=new Lp(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,r)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Af(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function Pre(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Af(t,i,r);return Af(t,i)})}(t,n,e);return new ns(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Af(t,a)),s}}const i=function Lre(t){return new xh(new dt(t.url),new dt(t.params),new dt(t.queryParams),new dt(t.fragment),new dt(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>Af(t,o));return new ns(i,r)}}const s3="ngNavigationCancelingError";function a3(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Ch(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=c3(!1,Gr.Redirect);return r.url=e,r.navigationBehaviorOptions=i,r}function c3(t,n){const e=new Error(`NavigationCancelingError: ${t||""}`);return e[s3]=!0,e.cancellationCode=n,e}function l3(t){return!!t&&t[s3]}let u3=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ft],decls:1,vars:0,template:function(i,r){1&i&&L(0,"router-outlet")},dependencies:[KS],encapsulation:2})}return t})();function ZS(t){const n=t.children&&t.children.map(ZS),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==gt&&(e.component=u3),e}function Js(t){return t.outlet||gt}function Rf(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class zre{constructor(n,e,i,r,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),qS(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Sh(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sh(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=Sh(n);for(const s of Object.values(o))this.deactivateRouteAndItsChildren(s,r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,e,i){const r=Sh(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new Are(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Mre(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(qS(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),qS(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Rf(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class d3{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class my{constructor(n,e){this.component=n,this.route=e}}function Wre(t,n,e){const i=t._root;return Nf(i,n?n._root:null,e,[i.value])}function Ih(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function aC(t){return null!==nd(t)}(t)?n.get(t):t:i}function Nf(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Sh(n);return t.children.forEach(s=>{(function Yre(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const c=function Kre(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!uu(t.url,n.url);case"pathParamsOrQueryParamsChange":return!uu(t.url,n.url)||!Qs(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!YS(t,n)||!Qs(t.queryParams,n.queryParams);default:return!YS(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new d3(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Nf(t,n,o.component?a?a.children:null:e,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new my(a.outlet.component,s))}else s&&Of(n,a,r),r.canActivateChecks.push(new d3(i)),Nf(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Of(a,e.getContext(s),r)),r}function Of(t,n,e){const i=Sh(t),r=t.value;Object.entries(i).forEach(([o,s])=>{Of(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new my(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function Ff(t){return"function"==typeof t}function h3(t){return t instanceof iy||"EmptyError"===t?.name}const by=Symbol("INITIAL_VALUE");function Th(){return _r(t=>La(t.map(n=>n.pipe(Zt(1),Zs(by)))).pipe(Me(n=>{for(const e of n)if(!0!==e){if(e===by)return by;if(!1===e||e instanceof yh)return e}return!0}),Wt(n=>n!==by),Zt(1)))}function g3(t){return function eC(...t){return Xi(t)}(Tn(n=>{if(Ch(n))throw a3(0,n)}),Me(n=>!0===n))}class QS{constructor(n){this.segmentGroup=n||null}}class XS extends Error{constructor(n){super(),this.urlTree=n}}function Mh(t){return Df(new QS(t))}class poe{constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Ee(i);if(r.numberOfChildren>1||!r.children[gt])return Df(new H(4e3,!1));r=r.children[gt]}}applyRedirectCommands(n,e,i){const r=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i);if(e.startsWith("/"))throw new XS(r);return r}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new yh(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=e[a]}else i[r]=o}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,i,r)}),new Qt(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new H(4001,!1);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}const JS={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function foe(t,n,e,i,r){const o=ex(t,n,e);return o.matched?(i=function Vre(t,n){return t.providers&&!t._injector&&(t._injector=Wv(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,i),function doe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Ee(r.map(s=>{const a=Ih(s,t);return qc(function toe(t){return t&&Ff(t.canMatch)}(a)?a.canMatch(n,e):ze(t,()=>a(n,e)))})).pipe(Th(),g3()):Ee(!0)}(i,n,e).pipe(Me(s=>!0===s?o:{...JS}))):Ee(o)}function ex(t,n,e){if("**"===n.path)return function moe(t){return{matched:!0,parameters:t.length>0?RV(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}(e);if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...JS}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||Kie)(e,t,n);if(!r)return{...JS};const o={};Object.entries(r.posParams??{}).forEach(([a,c])=>{o[a]=c.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function p3(t,n,e,i){return e.length>0&&function _oe(t,n,e){return e.some(i=>vy(t,n,i)&&Js(i)!==gt)}(t,e,i)?{segmentGroup:new Qt(n,voe(i,new Qt(e,t.children))),slicedSegments:[]}:0===e.length&&function yoe(t,n,e){return e.some(i=>vy(t,n,i))}(t,e,i)?{segmentGroup:new Qt(t.segments,boe(t,e,i,t.children)),slicedSegments:e}:{segmentGroup:new Qt(t.segments,t.children),slicedSegments:e}}function boe(t,n,e,i){const r={};for(const o of e)if(vy(t,n,o)&&!i[Js(o)]){const s=new Qt([],{});r[Js(o)]=s}return{...i,...r}}function voe(t,n){const e={};e[gt]=n;for(const i of t)if(""===i.path&&Js(i)!==gt){const r=new Qt([],{});e[Js(i)]=r}return e}function vy(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class Doe{}class xoe{constructor(n,e,i,r,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new poe(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new H(4002,`'${n.segmentGroup}'`)}recognize(){const n=p3(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(Me(e=>{const i=new zS([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},gt,this.rootComponentType,null,{}),r=new ns(i,e),o=new t3("",r),s=function fre(t,n,e=null,i=null){return $V(GV(t),n,e,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,gt).pipe(Ba(i=>{if(i instanceof XS)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof QS?this.noMatchError(i):i}))}inheritParamsAndData(n,e){const i=n.value,r=$S(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(r.params),i.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o,i))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r,!0).pipe(Me(o=>o instanceof ns?[o]:[]))}processChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return $n(r).pipe(fh(o=>{const s=i.children[o],a=function Gre(t,n){const e=t.filter(i=>Js(i)===n);return e.push(...t.filter(i=>Js(i)!==n)),e}(e,o);return this.processSegmentGroup(n,a,s,o)}),function Wie(t,n){return qt(function zie(t,n,e,i,r){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(Mt(s,u=>{const h=l++;c=a?t(c,u,h):(a=!0,u),i&&s.next(c)},r&&(()=>{a&&s.next(c),s.complete()})))}}(t,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),oy(null),function qie(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Wt((r,o)=>t(r,o,i)):ri,NS(1),e?oy(n):MV(()=>new iy))}(),pi(o=>{if(null===o)return Mh(i);const s=f3(o);return function Ioe(t){t.sort((n,e)=>n.value.outlet===gt?-1:e.value.outlet===gt?1:n.value.outlet.localeCompare(e.value.outlet))}(s),Ee(s)}))}processSegment(n,e,i,r,o,s){return $n(e).pipe(fh(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,i,r,o,s).pipe(Ba(c=>{if(c instanceof QS)return Ee(null);throw c}))),lu(a=>!!a),Ba(a=>{if(h3(a))return function Coe(t,n,e){return 0===n.length&&!t.children[e]}(i,r,o)?Ee(new Doe):Mh(i);throw a}))}processSegmentAgainstRoute(n,e,i,r,o,s,a){return function woe(t,n,e,i){return!!(Js(t)===i||i!==gt&&vy(n,e,t))&&ex(n,t,e).matched}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,r,e,i,o,s):Mh(r):Mh(r)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=ex(e,r,o);if(!a)return Mh(e);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const h=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,h).pipe(pi(f=>this.processSegment(n,i,e,f.concat(u),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){const s=foe(e,i,r,n);return"**"===i.path&&(e.children={}),s.pipe(_r(a=>a.matched?this.getChildConfig(n=i._injector??n,i,r).pipe(_r(({routes:c})=>{const l=i._loadedInjector??n,{consumedSegments:u,remainingSegments:h,parameters:f}=a,v=new zS(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Moe(t){return t.data||{}}(i),Js(i),i.component??i._loadedComponent??null,i,function koe(t){return t.resolve||{}}(i)),{segmentGroup:y,slicedSegments:D}=p3(e,u,h,c);if(0===D.length&&y.hasChildren())return this.processChildren(l,c,y).pipe(Me(k=>null===k?null:new ns(v,k)));if(0===c.length&&0===D.length)return Ee(new ns(v,[]));const S=Js(i)===o;return this.processSegment(l,c,y,D,S?gt:o,!0).pipe(Me(k=>new ns(v,k instanceof ns?[k]:[])))})):Mh(e)))}getChildConfig(n,e,i){return e.children?Ee({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Ee({routes:e._loadedRoutes,injector:e._loadedInjector}):function uoe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Ee(!0):Ee(r.map(s=>{const a=Ih(s,t);return qc(function Qre(t){return t&&Ff(t.canLoad)}(a)?a.canLoad(n,e):ze(t,()=>a(n,e)))})).pipe(Th(),g3())}(n,e,i).pipe(pi(r=>r?this.configLoader.loadChildren(n,e).pipe(Tn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function goe(t){return Df(c3(!1,Gr.GuardRejected))}())):Ee({routes:[],injector:n})}}function Toe(t){const n=t.value.routeConfig;return n&&""===n.path}function f3(t){const n=[],e=new Set;for(const i of t){if(!Toe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=f3(i.children);n.push(new ns(i.value,r))}return n.filter(i=>!e.has(i))}function Roe(t,n){return pi(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Ee(e);const o=new Set(r.map(c=>c.route)),s=new Set;for(const c of o)if(!s.has(c))for(const l of m3(c))s.add(l);let a=0;return $n(s).pipe(fh(c=>o.has(c)?function Noe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!r3(r)&&(o[Ef]=r.title),function Ooe(t,n,e,i){const r=OS(t);if(0===r.length)return Ee({});const o={};return $n(r).pipe(pi(s=>function Foe(t,n,e,i){const r=Rf(n)??i,o=Ih(t,r);return qc(o.resolve?o.resolve(n,e):ze(r,()=>o(n,e)))}(t[s],n,e,i).pipe(lu(),Tn(a=>{o[s]=a}))),NS(1),function kV(t){return Me(()=>t)}(o),Ba(s=>h3(s)?yr:Df(s)))}(o,t,n,i).pipe(Me(s=>(t._resolvedData=s,t.data=$S(t,t.parent,e).resolve,null)))}(c,i,t,n):(c.data=$S(c,c.parent,t).resolve,Ee(void 0))),Tn(()=>a++),NS(1),pi(c=>a===s.size?Ee(e):yr))})}function m3(t){const n=t.children.map(e=>m3(e)).flat();return[t,...n]}function tx(t){return _r(n=>{const e=t(n);return e?$n(e).pipe(Me(()=>n)):Ee(n)})}let b3=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===gt);return i}getResolvedTitleForRoute(e){return e.data[Ef]}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(Poe),providedIn:"root"})}return t})(),Poe=(()=>{class t extends b3{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Cte))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const kh=new W("",{providedIn:"root",factory:()=>({})}),Ah=new W("");let nx=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=x(oP)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Ee(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=qc(e.loadComponent()).pipe(Me(v3),Tn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),$c(()=>{this.componentLoaders.delete(e)})),r=new RS(i,()=>new se).pipe(AS());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Ee({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function Loe(t,n,e,i){return qc(t.loadChildren()).pipe(Me(v3),pi(r=>r instanceof bO||Array.isArray(r)?Ee(r):$n(n.compileModuleAsync(r))),Me(r=>{i&&i(t);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(e).injector,s=o.get(Ah,[],{optional:!0,self:!0}).flat()),{routes:s.map(ZS),injector:o}}))}(i,this.compiler,e,this.onLoadEndListener).pipe($c(()=>{this.childrenLoaders.delete(i)})),s=new RS(o,()=>new se).pipe(AS());return this.childrenLoaders.set(i,s),s}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function v3(t){return function Boe(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let ix=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(Voe),providedIn:"root"})}return t})(),Voe=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _3=new W(""),y3=new W("");function Hoe(t,n,e){const i=t.get(y3),r=t.get(Pe);return t.get(xe).runOutsideAngular(()=>{if(!r.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let o;const s=new Promise(l=>{o=l}),a=r.startViewTransition(()=>(o(),function Uoe(t){return new Promise(n=>{ON(n,{injector:t})})}(t))),{onViewTransitionCreated:c}=i;return c&&ze(t,()=>c({transition:a,from:n,to:e})),s})}let _y=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new se,this.transitionAbortSubject=new se,this.configLoader=x(nx),this.environmentInjector=x(_i),this.urlSerializer=x(wh),this.rootContexts=x(kf),this.location=x(tu),this.inputBindingEnabled=null!==x(fy,{optional:!0}),this.titleStrategy=x(b3),this.options=x(kh,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=x(ix),this.createViewTransition=x(_3,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Ee(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Ire(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new xre(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e,i,r){return this.transitions=new dt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mf,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Wt(o=>0!==o.id),Me(o=>({...o,extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),_r(o=>{let s=!1,a=!1;return Ee(o).pipe(_r(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",Gr.SupersededByNewNavigation),yr;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const h="";return this.events.next(new Eh(c.id,this.urlSerializer.serialize(c.rawUrl),h,gy.IgnoredSameUrlNavigation)),c.resolve(null),yr}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return Ee(c).pipe(_r(h=>{const f=this.transitions?.getValue();return this.events.next(new hy(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions?.getValue()?yr:Promise.resolve(h)}),function Aoe(t,n,e,i,r,o){return pi(s=>function Eoe(t,n,e,i,r,o,s="emptyOnly"){return new xoe(t,n,e,i,r,s,o).recognize()}(t,n,e,i,s.extractedUrl,r,o).pipe(Me(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Tn(h=>{o.targetSnapshot=h.targetSnapshot,o.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:h.urlAfterRedirects};const f=new ZV(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:h,extractedUrl:f,source:v,restoredState:y,extras:D}=c,S=new hy(h,this.urlSerializer.serialize(f),v,y);this.events.next(S);const k=e3(this.rootComponentType).snapshot;return this.currentTransition=o={...c,targetSnapshot:k,urlAfterRedirects:f,extras:{...D,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,Ee(o)}{const h="";return this.events.next(new Eh(c.id,this.urlSerializer.serialize(c.extractedUrl),h,gy.IgnoredByUrlHandlingStrategy)),c.resolve(null),yr}}),Tn(c=>{const l=new Cre(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),Me(c=>(this.currentTransition=o={...c,guards:Wre(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},o)),function noe(t,n){return pi(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?Ee({...e,guardsResult:!0}):function ioe(t,n,e,i){return $n(t).pipe(pi(r=>function loe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Ee(o.map(a=>{const c=Rf(n)??r,l=Ih(a,c);return qc(function eoe(t){return t&&Ff(t.canDeactivate)}(l)?l.canDeactivate(t,n,e,i):ze(c,()=>l(t,n,e,i))).pipe(lu())})).pipe(Th()):Ee(!0)}(r.component,r.route,e,n,i)),lu(r=>!0!==r,!0))}(s,i,r,t).pipe(pi(a=>a&&function Zre(t){return"boolean"==typeof t}(a)?function roe(t,n,e,i){return $n(n).pipe(fh(r=>vh(function soe(t,n){return null!==t&&n&&n(new Tre(t)),Ee(!0)}(r.route.parent,i),function ooe(t,n){return null!==t&&n&&n(new kre(t)),Ee(!0)}(r.route,i),function coe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function qre(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>ry(()=>Ee(s.guards.map(c=>{const l=Rf(s.node)??e,u=Ih(c,l);return qc(function Jre(t){return t&&Ff(t.canActivateChild)}(u)?u.canActivateChild(i,t):ze(l,()=>u(i,t))).pipe(lu())})).pipe(Th())));return Ee(o).pipe(Th())}(t,r.path,e),function aoe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Ee(!0);const r=i.map(o=>ry(()=>{const s=Rf(n)??e,a=Ih(o,s);return qc(function Xre(t){return t&&Ff(t.canActivate)}(a)?a.canActivate(n,t):ze(s,()=>a(n,t))).pipe(lu())}));return Ee(r).pipe(Th())}(t,r.route,e))),lu(r=>!0!==r,!0))}(i,o,t,n):Ee(a)),Me(a=>({...e,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),Tn(c=>{if(o.guardsResult=c.guardsResult,Ch(c.guardsResult))throw a3(0,c.guardsResult);const l=new Dre(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),Wt(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",Gr.GuardRejected),!1)),tx(c=>{if(c.guards.canActivateChecks.length)return Ee(c).pipe(Tn(l=>{const u=new Ere(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),_r(l=>{let u=!1;return Ee(l).pipe(Roe(this.paramsInheritanceStrategy,this.environmentInjector),Tn({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",Gr.NoDataFromResolver)}}))}),Tn(l=>{const u=new Sre(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),tx(c=>{const l=u=>{const h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(Tn(f=>{u.component=f}),Me(()=>{})));for(const f of u.children)h.push(...l(f));return h};return La(l(c.targetSnapshot.root)).pipe(oy(null),Zt(1))}),tx(()=>this.afterPreactivation()),_r(()=>{const{currentSnapshot:c,targetSnapshot:l}=o,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?$n(u).pipe(Me(()=>o)):Ee(o)}),Me(c=>{const l=function Fre(t,n,e){const i=Af(t,n._root,e?e._root:void 0);return new JV(i,n)}(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,o}),Tn(()=>{this.events.next(new HS)}),((t,n,e,i)=>Me(r=>(new zre(n,r.targetRouterState,r.currentRouterState,e,i).activate(t),r)))(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Zt(1),Tn({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Va(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),De(this.transitionAbortSubject.pipe(Tn(c=>{throw c}))),$c(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",Gr.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Ba(c=>{if(a=!0,l3(c))this.events.next(new Dh(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),function Bre(t){return l3(t)&&Ch(t.url)}(c)?this.events.next(new US(c.url)):o.resolve(!1);else{this.events.next(new py(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0));try{o.resolve(e.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return yr}))}))}cancelNavigationTransition(e,i,r){const o=new Dh(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function joe(t){return t!==Mf}let Goe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(zoe),providedIn:"root"})}return t})();class $oe{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let zoe=(()=>{class t extends $oe{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),w3=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:()=>x(Woe),providedIn:"root"})}return t})(),Woe=(()=>{class t extends w3{constructor(){super(...arguments),this.location=x(tu),this.urlSerializer=x(wh),this.options=x(kh,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=x(ix),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new yh,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=e3(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{"popstate"===i.type&&e(i.url,i.state)})}handleRouterEvent(e,i){if(e instanceof hy)this.stateMemento=this.createStateMemento();else if(e instanceof Eh)this.rawUrlTree=i.initialUrl;else if(e instanceof ZV){if("eager"===this.urlUpdateStrategy&&!i.extras.skipLocationChange){const r=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(r,i)}}else e instanceof HS?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,"deferred"===this.urlUpdateStrategy&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):e instanceof Dh&&(e.code===Gr.GuardRejected||e.code===Gr.NoDataFromResolver)?this.restoreHistory(i):e instanceof py?this.restoreHistory(i,!0):e instanceof Va&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&0===o&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Pf=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Pf||{});function C3(t,n){t.events.pipe(Wt(e=>e instanceof Va||e instanceof Dh||e instanceof py||e instanceof Eh),Me(e=>e instanceof Va||e instanceof Eh?Pf.COMPLETE:e instanceof Dh&&(e.code===Gr.Redirect||e.code===Gr.SupersededByNewNavigation)?Pf.REDIRECTING:Pf.FAILED),Wt(e=>e!==Pf.REDIRECTING),Zt(1)).subscribe(()=>{n()})}function qoe(t){throw t}const Yoe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Koe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let wr=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=x(KF),this.stateManager=x(w3),this.options=x(kh,{optional:!0})||{},this.pendingTasks=x(Ac),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=x(_y),this.urlSerializer=x(wh),this.location=x(tu),this.urlHandlingStrategy=x(ix),this._events=new se,this.errorHandler=this.options.errorHandler||qoe,this.navigated=!1,this.routeReuseStrategy=x(Goe),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=x(Ah,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!x(fy,{optional:!0}),this.eventsSubscription=new Ge,this.isNgZoneEnabled=x(xe)instanceof xe&&xe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(i=>{try{const r=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(null!==r&&null!==o)if(this.stateManager.handleRouterEvent(i,o),i instanceof Dh&&i.code!==Gr.Redirect&&i.code!==Gr.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Va)this.navigated=!0;else if(i instanceof US){const s=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),a={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||joe(r.source)};this.scheduleNavigation(s,Mf,null,a,{resolve:r.resolve,reject:r.reject,promise:r.promise})}(function Qoe(t){return!(t instanceof HS||t instanceof US)})(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Mf,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",i)},0)})}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const c={...r};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(o.state=c)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(ZS),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:s;let h,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{h=GV(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),h=this.currentUrlTree.root}return $V(h,e,u,l??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Ch(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Mf,null,i)}navigate(e,i={skipLocationChange:!1}){return function Zoe(t){for(let n=0;n<t.length;n++)if(null==t[n])throw new H(4008,!1)}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,i){let r;if(r=!0===i?{...Yoe}:!1===i?{...Koe}:i,Ch(e))return OV(this.currentUrlTree,e,r);const o=this.parseUrl(e);return OV(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.entries(e).reduce((i,[r,o])=>(null!=o&&(i[r]=o),i),{})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((h,f)=>{a=h,c=f});const u=this.pendingTasks.add();return C3(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(h=>Promise.reject(h))}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lf=(()=>{class t{constructor(e,i,r,o,s,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new se,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Va&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==e||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const i=null===this.href?null:function vR(t,n,e){return function WW(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?bR:bp}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(i){return new(i||t)(g(wr),g(xh),so("tabindex"),g(on),g(F),g(eu))};static#t=this.\u0275dir=N({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&B("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&st("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[ee.HasDecoratorInputTransform,"preserveFragment","preserveFragment",yt],skipLocationChange:[ee.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",yt],replaceUrl:[ee.HasDecoratorInputTransform,"replaceUrl","replaceUrl",yt],routerLink:"routerLink"},standalone:!0,features:[Bn,we]})}return t})(),rx=(()=>{class t{get isActive(){return this._isActive}constructor(e,i,r,o,s){this.router=e,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Va&&this.update()})}ngAfterContentInit(){Ee(this.links.changes,Ee(null)).pipe(bh()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=$n(e).pipe(bh()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const e=this.hasActiveLinks();this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function Xoe(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>{const o=r.urlTree;return!!o&&e.isActive(o,i)}}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(wr),g(F),g(on),g(me),g(Lf,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(1&i&&It(o,Lf,5),2&i){let s;te(s=ne())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[we]})}return t})();class D3{}let Joe=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Wt(e=>e instanceof Va),fh(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Wv(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return $n(r).pipe(bh())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Ee(null);const o=r.pipe(pi(s=>null===s?Ee(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?$n([o,this.loader.loadComponent(i)]).pipe(bh()):o})}static#e=this.\u0275fac=function(i){return new(i||t)(I(wr),I(oP),I(_i),I(D3),I(nx))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const ox=new W("");let E3=(()=>{class t{constructor(e,i,r,o,s={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.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(e=>{e instanceof hy?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Va?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Eh&&e.code===gy.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof QV&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new QV(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){!function ZR(){throw new Error("invalid")}()};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function ea(t,n){return{\u0275kind:t,\u0275providers:n}}function x3(){const t=x(He);return n=>{const e=t.get(yi);if(n!==e.components[0])return;const i=t.get(wr),r=t.get(I3);1===t.get(sx)&&i.initialNavigation(),t.get(T3,null,tt.Optional)?.setUpPreloading(),t.get(ox,null,tt.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const I3=new W("",{factory:()=>new se}),sx=new W("",{providedIn:"root",factory:()=>1}),T3=new W("");function ise(t){return ea(0,[{provide:T3,useExisting:Joe},{provide:D3,useExisting:t}])}function ose(t){return ea(9,[{provide:_3,useValue:Hoe},{provide:y3,useValue:{skipNextTransition:!!t?.skipInitialTransition,...t}}])}const M3=new W("ROUTER_FORROOT_GUARD"),sse=[tu,{provide:wh,useClass:FS},wr,kf,{provide:xh,useFactory:function S3(t){return t.routerState.root},deps:[wr]},nx,[]];let k3=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[sse,[],{provide:Ah,multi:!0,useValue:e},{provide:M3,useFactory:use,deps:[[wr,new ks,new wa]]},{provide:kh,useValue:i||{}},i?.useHash?{provide:eu,useClass:lJ}:{provide:eu,useClass:KP},{provide:ox,useFactory:()=>{const t=x(Dee),n=x(xe),e=x(kh),i=x(_y),r=x(wh);return e.scrollOffset&&t.setOffset(e.scrollOffset),new E3(r,i,t,n,e)}},i?.preloadingStrategy?ise(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?dse(i):[],i?.bindToComponentInputs?ea(8,[o3,{provide:fy,useExisting:o3}]).\u0275providers:[],i?.enableViewTransitions?ose().\u0275providers:[],[{provide:A3,useFactory:x3},{provide:mE,multi:!0,useExisting:A3}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ah,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(i){return new(i||t)(I(M3,8))};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();function use(t){return"guarded"}function dse(t){return["disabled"===t.initialNavigation?ea(3,[{provide:pE,multi:!0,useFactory:()=>{const n=x(wr);return()=>{n.setUpLocationChangeListener()}}},{provide:sx,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?ea(2,[{provide:sx,useValue:0},{provide:pE,multi:!0,deps:[He],useFactory:n=>{const e=n.get(aJ,Promise.resolve());return()=>e.then(()=>new Promise(i=>{const r=n.get(wr),o=n.get(I3);C3(r,()=>{i(!0)}),n.get(_y).afterPreactivation=()=>(i(!0),o.closed?Ee(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const A3=new W("");var Ke=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(Ke||{});const Ha="*";function R3(t,n){return{type:Ke.Trigger,name:t,definitions:n,options:{}}}function Bf(t,n=null){return{type:Ke.Animate,styles:n,timings:t}}function is(t){return{type:Ke.Style,styles:t,offset:null}}function Vf(t,n,e){return{type:Ke.State,name:t,styles:n,options:e}}function Hf(t,n,e=null){return{type:Ke.Transition,expr:t,animation:n,options:e}}class Uf{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class P3{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function L3(t){return new H(3e3,!1)}function Yc(t){switch(t.length){case 0:return new Uf;case 1:return t[0];default:return new P3(t)}}function B3(t,n,e=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(c=>{const l=c.get("offset"),u=l==s,h=u&&a||new Map;c.forEach((f,v)=>{let y=v,D=f;if("offset"!==v)switch(y=t.normalizePropertyName(y,r),D){case"!":D=e.get(v);break;case Ha:D=i.get(v);break;default:D=t.normalizeStyleValue(v,y,D,r)}h.set(y,D)}),u||o.push(h),a=h,s=l}),r.length)throw function Hse(t){return new H(3502,!1)}();return o}function cx(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&lx(e,"start",t)));break;case"done":t.onDone(()=>i(e&&lx(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&lx(e,"destroy",t)))}}function lx(t,n,e){const o=ux(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function ux(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function $r(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function V3(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}const Xse=typeof document>"u"?null:document.documentElement;function dx(t){const n=t.parentNode||t.host||null;return n===Xse?null:n}let du=null,H3=!1;function U3(t,n){for(;n;){if(n===t)return!0;n=dx(n)}return!1}function j3(t,n,e){if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]}let hx=(()=>{class t{validateStyleProperty(e){return function eae(t){du||(du=function tae(){return typeof document<"u"?document.body:null}()||{},H3=!!du.style&&"WebkitAppearance"in du.style);let n=!0;return du.style&&!function Jse(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in du.style,!n&&H3&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in du.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return U3(e,i)}getParentElement(e){return dx(e)}query(e,i,r){return j3(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],c){return new Uf(r,o)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class gx{static#e=this.NOOP=new hx}class px{}const iae=1e3,fx="ng-enter",yy="ng-leave",wy="ng-trigger",Cy=".ng-trigger",$3="ng-animating",mx=".ng-animating";function Ua(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:bx(parseFloat(n[1]),n[2])}function bx(t,n){return"s"===n?t*iae:t}function Dy(t,n,e){return t.hasOwnProperty("duration")?t:function oae(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(L3()),{duration:0,delay:0,easing:""};r=bx(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(o=bx(parseFloat(c),a[4]));const l=a[5];l&&(s=l)}else r=t;if(!e){let a=!1,c=n.length;r<0&&(n.push(function vse(){return new H(3100,!1)}()),a=!0),o<0&&(n.push(function _se(){return new H(3101,!1)}()),a=!0),a&&n.splice(c,0,L3())}return{duration:r,delay:o,easing:s}}(t,n,e)}function ta(t,n,e){n.forEach((i,r)=>{const o=_x(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function hu(t,n){n.forEach((e,i)=>{const r=_x(i);t.style[r]=""})}function jf(t){return Array.isArray(t)?1==t.length?t[0]:function gse(t,n=null){return{type:Ke.Sequence,steps:t,options:n}}(t):t}const vx=new RegExp("{{\\s*(.+?)\\s*}}","g");function W3(t){let n=[];if("string"==typeof t){let e;for(;e=vx.exec(t);)n.push(e[1]);vx.lastIndex=0}return n}function Gf(t,n,e){const i=`${t}`,r=i.replace(vx,(o,s)=>{let a=n[s];return null==a&&(e.push(function wse(t){return new H(3003,!1)}()),a=""),a.toString()});return r==i?t:r}const cae=/-+([a-z0-9])/g;function _x(t){return t.replace(cae,(...n)=>n[1].toUpperCase())}function zr(t,n,e){switch(n.type){case Ke.Trigger:return t.visitTrigger(n,e);case Ke.State:return t.visitState(n,e);case Ke.Transition:return t.visitTransition(n,e);case Ke.Sequence:return t.visitSequence(n,e);case Ke.Group:return t.visitGroup(n,e);case Ke.Animate:return t.visitAnimate(n,e);case Ke.Keyframes:return t.visitKeyframes(n,e);case Ke.Style:return t.visitStyle(n,e);case Ke.Reference:return t.visitReference(n,e);case Ke.AnimateChild:return t.visitAnimateChild(n,e);case Ke.AnimateRef:return t.visitAnimateRef(n,e);case Ke.Query:return t.visitQuery(n,e);case Ke.Stagger:return t.visitStagger(n,e);default:throw function Cse(t){return new H(3004,!1)}()}}function yx(t,n){return window.getComputedStyle(t)[n]}const dae=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class q3 extends px{normalizePropertyName(n,e){return _x(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(dae.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Dse(t,n){return new H(3005,!1)}())}return s+o}}const Ey="*";const Sy=new Set(["true","1"]),xy=new Set(["false","0"]);function Y3(t,n){const e=Sy.has(t)||xy.has(t),i=Sy.has(n)||xy.has(n);return(r,o)=>{let s=t==Ey||t==r,a=n==Ey||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?Sy.has(t):xy.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Sy.has(n):xy.has(n)),s&&a}}const fae=new RegExp("s*:selfs*,?","g");function wx(t,n,e,i){return new mae(t).build(n,e,i)}class mae{constructor(n){this._driver=n}build(n,e,i){const r=new _ae(e);return this._resetContextStyleTimingState(r),zr(this,jf(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function Ese(){return new H(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Ke.State){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,o.push(this.visitState(c,e))}),c.name=l}else if(a.type==Ke.Transition){const c=this.visitTransition(a,e);i+=c.queryCount,r+=c.depCount,s.push(c)}else e.errors.push(function Sse(){return new H(3007,!1)}())}),{type:Ke.Trigger,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(c=>{W3(c).forEach(l=>{s.hasOwnProperty(l)||o.add(l)})})}),o.size&&e.errors.push(function xse(t,n){return new H(3008,!1)}(0,o.values()))}return{type:Ke.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=zr(this,jf(n.animation),e),r=function hae(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function gae(t,n,e){if(":"==t[0]){const c=function pae(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return n.push(function Pse(t){return new H(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof c)return void n.push(c);t=c}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Fse(t){return new H(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(Y3(r,s)),"<"==o[0]&&(r!=Ey||s!=Ey)&&n.push(Y3(s,r))}(i,e,n)):e.push(t),e}(n.expr,e.errors);return{type:Ke.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:gu(n.options)}}visitSequence(n,e){return{type:Ke.Sequence,steps:n.steps.map(i=>zr(this,i,e)),options:gu(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=zr(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:Ke.Group,steps:o,options:gu(n.options)}}visitAnimate(n,e){const i=function wae(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Cx(Dy(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Cx(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Dy(e,n);return Cx(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:is({});if(o.type==Ke.Keyframes)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const l={};i.easing&&(l.easing=i.easing),s=is(l)}e.currentTime+=i.duration+i.delay;const c=this.visitStyle(s,e);c.isEmptyStep=a,r=c}return e.currentAnimateTimings=null,{type:Ke.Animate,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Ha?i.push(a):e.errors.push(new H(3002,!1)):i.push(new Map(Object.entries(a)));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let c of a.values())if(c.toString().indexOf("{{")>=0){o=!0;break}}),{type:Ke.Style,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,c)=>{const l=e.collectedStyles.get(e.currentQuerySelector),u=l.get(c);let h=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function Tse(t,n,e,i,r){return new H(3010,!1)}()),h=!1),o=u.startTime),h&&l.set(c,{startTime:o,endTime:r}),e.options&&function aae(t,n,e){const i=n.params||{},r=W3(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function yse(t){return new H(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:Ke.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Mse(){return new H(3011,!1)}()),i;let o=0;const s=[];let a=!1,c=!1,l=0;const u=n.steps.map(k=>{const A=this._makeStyleAst(k,e);let K=null!=A.offset?A.offset:function yae(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(A.styles),J=0;return null!=K&&(o++,J=A.offset=K),c=c||J<0||J>1,a=a||J<l,l=J,s.push(J),A});c&&e.errors.push(function kse(){return new H(3012,!1)}()),a&&e.errors.push(function Ase(){return new H(3200,!1)}());const h=n.steps.length;let f=0;o>0&&o<h?e.errors.push(function Rse(){return new H(3202,!1)}()):0==o&&(f=1/(h-1));const v=h-1,y=e.currentTime,D=e.currentAnimateTimings,S=D.duration;return u.forEach((k,A)=>{const K=f>0?A==v?1:f*A:s[A],J=K*S;e.currentTime=y+D.delay+J,D.duration=J,this._validateStyleAst(k,e),k.offset=K,i.styles.push(k)}),i}visitReference(n,e){return{type:Ke.Reference,animation:zr(this,jf(n.animation),e),options:gu(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:Ke.AnimateChild,options:gu(n.options)}}visitAnimateRef(n,e){return{type:Ke.AnimateRef,animation:this.visitReference(n.animation,e),options:gu(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function bae(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(fae,"")),t=t.replace(/@\*/g,Cy).replace(/@\w+/g,e=>Cy+"-"+e.slice(1)).replace(/:animating/g,mx),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,$r(e.collectedStyles,e.currentQuerySelector,new Map);const a=zr(this,jf(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Ke.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:gu(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function Nse(){return new H(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Dy(n.timings,e.errors,!0);return{type:Ke.Stagger,animation:zr(this,jf(n.animation),e),timings:i,options:null}}}class _ae{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function gu(t){return t?(t={...t}).params&&(t.params=function vae(t){return t?{...t}:null}(t.params)):t={},t}function Cx(t,n,e){return{duration:t,delay:n,easing:e}}function Dx(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Iy{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Eae=new RegExp(":enter","g"),xae=new RegExp(":leave","g");function Ex(t,n,e,i,r,o=new Map,s=new Map,a,c,l=[]){return(new Iae).buildKeyframes(t,n,e,i,r,o,s,a,c,l)}class Iae{buildKeyframes(n,e,i,r,o,s,a,c,l,u=[]){l=l||new Iy;const h=new Sx(n,e,l,r,o,u,[]);h.options=c;const f=c.delay?Ua(c.delay):0;h.currentTimeline.delayNextStep(f),h.currentTimeline.setStyles([s],null,h.errors,c),zr(this,i,h);const v=h.timelines.filter(y=>y.containsAnimation());if(v.length&&a.size){let y;for(let D=v.length-1;D>=0;D--){const S=v[D];if(S.element===e){y=S;break}}y&&!y.allowOnlyTimelineStyles()&&y.setStyles([a],null,h.errors,c)}return v.length?v.map(y=>y.buildKeyframes()):[Dx(e,[],[],[],0,f,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Ua(Gf(o,r?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?Ua(i.duration):null,a=null!=i.delay?Ua(i.delay):null;return 0!==s&&n.forEach(c=>{const l=e.appendInstructionToTimeline(c,s,a);o=Math.max(o,l.duration+l.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),zr(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){r.previousNode.type==Ke.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Ty);const s=Ua(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>zr(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?Ua(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),zr(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Dy(e.params?Gf(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;o.type==Ke.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(c=>{a.forwardTime((c.offset||0)*o),a.setStyles(c.styles,c.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ua(r.delay):0;o&&(e.previousNode.type===Ke.Style||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Ty);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(n.options,l);o&&h.delayNextStep(o),l===e.element&&(c=h.currentTimeline),zr(this,n.animation,h),h.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let c=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":c=a-c;break;case"full":c=i.currentStaggerTime}const u=e.currentTimeline;c&&u.delayNextStep(c);const h=u.currentTime;zr(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-h+(r.startTime-i.currentTimeline.startTime)}}const Ty={};class Sx{constructor(n,e,i,r,o,s,a,c){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ty,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new My(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Ua(i.duration)),null!=i.delay&&(r.delay=Ua(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Gf(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new Sx(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Ty,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Tae(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(Eae,"."+this._enterClassName)).replace(xae,"."+this._leaveClassName);let l=this._driver.query(this.element,n,1!=i);0!==i&&(l=i<0?l.slice(l.length+i,l.length):l.slice(0,i)),a.push(...l)}return!o&&0==a.length&&s.push(function Ose(t){return new H(3014,!1)}()),a}}class My{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new My(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ha),this._currentKeyframe.set(e,Ha);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function Mae(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i??=n.keys();for(let o of i)e.set(o,Ha)}else for(let[o,s]of r)e.set(o,s)}),e}(n,this._globalTimelineStyles);for(let[a,c]of s){const l=Gf(c,o,i);this._pendingStyles.set(a,l),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ha),this._updateStyle(a,l)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,c)=>{const l=new Map([...this._backFill,...a]);l.forEach((u,h)=>{"!"===u?n.add(h):u===Ha&&e.add(h)}),i||l.set("offset",c/this.duration),r.push(l)});const o=[...n.values()],s=[...e.values()];if(i){const a=r[0],c=new Map(a);a.set("offset",0),c.set("offset",1),r=[a,c]}return Dx(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Tae extends My{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,c=new Map(n[0]);c.set("offset",0),o.push(c);const l=new Map(n[0]);l.set("offset",Q3(a)),o.push(l);const u=n.length-1;for(let h=1;h<=u;h++){let f=new Map(n[h]);const v=f.get("offset");f.set("offset",Q3((e+v*i)/s)),o.push(f)}i=s,e=0,r="",n=o}return Dx(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function Q3(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}function X3(t,n,e,i,r,o,s,a,c,l,u,h,f){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:f}}const xx={};class J3{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function kae(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,c,l,u){const h=[],f=this.ast.options&&this.ast.options.params||xx,y=this.buildStyles(i,a&&a.params||xx,h),D=c&&c.params||xx,S=this.buildStyles(r,D,h),k=new Set,A=new Map,K=new Map,J="void"===r,de={params:eH(D,f),delay:this.ast.options?.delay},ve=u?[]:Ex(n,e,this.ast.animation,o,s,y,S,de,l,h);let ke=0;return ve.forEach(Ve=>{ke=Math.max(Ve.duration+Ve.delay,ke)}),h.length?X3(e,this._triggerName,i,r,J,y,S,[],[],A,K,ke,h):(ve.forEach(Ve=>{const Nt=Ve.element,Pt=$r(A,Nt,new Set);Ve.preStyleProps.forEach(An=>Pt.add(An));const kn=$r(K,Nt,new Set);Ve.postStyleProps.forEach(An=>kn.add(An)),Nt!==e&&k.add(Nt)}),X3(e,this._triggerName,i,r,J,y,S,ve,[...k.values()],A,K,ke))}}function eH(t,n){const e={...n};return Object.entries(t).forEach(([i,r])=>{null!=r&&(e[i]=r)}),e}class Aae{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=eH(n,this.defaultParams);return this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Gf(s,r,e));const c=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,c,s,e),i.set(a,s)})}),i}}class Nae{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Aae(r.style,r.options&&r.options.params||{},i))}),tH(this.states,"true","1"),tH(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new J3(n,r,this.states))}),this.fallbackTransition=function Oae(t,n,e){return new J3(t,{type:Ke.Transition,animation:{type:Ke.Sequence,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function tH(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const Fae=new Iy;class Pae{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=wx(this._driver,e,i,[]);if(i.length)throw function Use(t){return new H(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=B3(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=Ex(this._driver,e,o,fx,yy,new Map,new Map,i,Fae,r),s.forEach(u=>{const h=$r(a,u.element,new Map);u.postStyleProps.forEach(f=>h.set(f,null))})):(r.push(function jse(){return new H(3300,!1)}()),s=[]),r.length)throw function Gse(t){return new H(3504,!1)}();a.forEach((u,h)=>{u.forEach((f,v)=>{u.set(v,this._driver.computeStyle(h,v,Ha))})});const l=Yc(s.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,new Map,h)}));return this._playersById.set(n,l),l.onDestroy(()=>this.destroy(n)),this.players.push(l),l}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function $se(t){return new H(3301,!1)}();return e}listen(n,e,i,r){const o=ux(e,"","","");return cx(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const nH="ng-animate-queued",Ix="ng-animate-disabled",Uae=[],iH={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jae={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},rs="__ng_removed";class Tx{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function Wae(t){return t??null}(i?n.value:n),i){const{value:o,...s}=n;this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const $f="void",Mx=new Tx($f);class Gae{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,bo(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function zse(t,n){return new H(3302,!1)}();if(null==i||0==i.length)throw function Wse(t){return new H(3303,!1)}();if(!function qae(t){return"start"==t||"done"==t}(i))throw function qse(t,n){return new H(3400,!1)}();const o=$r(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=$r(this._engine.statesByElement,n,new Map);return a.has(e)||(bo(n,wy),bo(n,wy+"-"+e),a.set(e,Mx)),()=>{this._engine.afterFlush(()=>{const c=o.indexOf(s);c>=0&&o.splice(c,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function Yse(t){return new H(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new kx(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(bo(n,wy),bo(n,wy+"-"+e),this._engine.statesByElement.set(n,a=new Map));let c=a.get(e);const l=new Tx(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a.set(e,l),c||(c=Mx),l.value!==$f&&c.value===l.value){if(!function Zae(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const o=e[r];if(!n.hasOwnProperty(o)||t[o]!==n[o])return!1}return!0}(c.params,l.params)){const D=[],S=o.matchStyles(c.value,c.params,D),k=o.matchStyles(l.value,l.params,D);D.length?this._engine.reportError(D):this._engine.afterFlush(()=>{hu(n,S),ta(n,k)})}return}const f=$r(this._engine.playersByElement,n,[]);f.forEach(D=>{D.namespaceId==this.id&&D.triggerName==e&&D.queued&&D.destroy()});let v=o.matchTransition(c.value,l.value,n,l.params),y=!1;if(!v){if(!r)return;v=o.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:v,fromState:c,toState:l,player:s,isFallbackTransition:y}),y||(bo(n,nH),s.onStart(()=>{Rh(n,nH)})),s.onDone(()=>{let D=this.players.indexOf(s);D>=0&&this.players.splice(D,1);const S=this._engine.playersByElement.get(n);if(S){let k=S.indexOf(s);k>=0&&S.splice(k,1)}}),this.players.push(s),f.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Cy,!0);i.forEach(r=>{if(r[rs])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((c,l)=>{if(s.set(l,c.value),this._triggers.has(l)){const u=this.trigger(n,l,$f,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&Yc(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const c=this._triggers.get(s).fallbackTransition,l=i.get(s)||Mx,u=new Tx($f),h=new kx(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:c,fromState:l,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[rs];(!o||o===iH)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){bo(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const c=ux(o,i.triggerName,i.fromState.value,i.toState.value);c._data=n,cx(i.player,a.phase,c,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class $ae{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i,r){this.bodyNode=n,this.driver=e,this._normalizer=i,this.scheduler=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(o,s)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new Gae(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const c=r.get(a);if(c){const l=i.indexOf(c);i.splice(l+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(ky(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!ky(e))return;const o=e[rs];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),bo(n,Ix)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Rh(n,Ix))}removeNode(n,e,i){if(ky(e)){this.scheduler?.notify();const r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[rs]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return ky(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Cy,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,mx,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Yc(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[rs];if(e&&e.setForRemoval){if(n[rs]=iH,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Ix)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)bo(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Yc(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Kse(t){return new H(3402,!1)}()}_flushAnimations(n,e){const i=new Iy,r=[],o=new Map,s=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(be=>{u.add(be);const Se=this.driver.query(be,".ng-animate-queued",!0);for(let Le=0;Le<Se.length;Le++)u.add(Se[Le])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),v=sH(f,this.collectedEnterElements),y=new Map;let D=0;v.forEach((be,Se)=>{const Le=fx+D++;y.set(Se,Le),be.forEach(lt=>bo(lt,Le))});const S=[],k=new Set,A=new Set;for(let be=0;be<this.collectedLeaveElements.length;be++){const Se=this.collectedLeaveElements[be],Le=Se[rs];Le&&Le.setForRemoval&&(S.push(Se),k.add(Se),Le.hasAnimation?this.driver.query(Se,".ng-star-inserted",!0).forEach(lt=>k.add(lt)):A.add(Se))}const K=new Map,J=sH(f,Array.from(k));J.forEach((be,Se)=>{const Le=yy+D++;K.set(Se,Le),be.forEach(lt=>bo(lt,Le))}),n.push(()=>{v.forEach((be,Se)=>{const Le=y.get(Se);be.forEach(lt=>Rh(lt,Le))}),J.forEach((be,Se)=>{const Le=K.get(Se);be.forEach(lt=>Rh(lt,Le))}),S.forEach(be=>{this.processLeaveNode(be)})});const de=[],ve=[];for(let be=this._namespaceList.length-1;be>=0;be--)this._namespaceList[be].drainQueuedTransitions(e).forEach(Le=>{const lt=Le.player,hn=Le.element;if(de.push(lt),this.collectedEnterElements.length){const Wn=hn[rs];if(Wn&&Wn.setForMove){if(Wn.previousTriggersValues&&Wn.previousTriggersValues.has(Le.triggerName)){const hr=Wn.previousTriggersValues.get(Le.triggerName),Ki=this.statesByElement.get(Le.element);if(Ki&&Ki.has(Le.triggerName)){const yg=Ki.get(Le.triggerName);yg.value=hr,Ki.set(Le.triggerName,yg)}}return void lt.destroy()}}const Yi=!h||!this.driver.containsElement(h,hn),zn=K.get(hn),dr=y.get(hn),Lt=this._buildInstruction(Le,i,dr,zn,Yi);if(Lt.errors&&Lt.errors.length)return void ve.push(Lt);if(Yi)return lt.onStart(()=>hu(hn,Lt.fromStyles)),lt.onDestroy(()=>ta(hn,Lt.toStyles)),void r.push(lt);if(Le.isFallbackTransition)return lt.onStart(()=>hu(hn,Lt.fromStyles)),lt.onDestroy(()=>ta(hn,Lt.toStyles)),void r.push(lt);const Tr=[];Lt.timelines.forEach(Wn=>{Wn.stretchStartingKeyframe=!0,this.disabledNodes.has(Wn.element)||Tr.push(Wn)}),Lt.timelines=Tr,i.append(hn,Lt.timelines),s.push({instruction:Lt,player:lt,element:hn}),Lt.queriedElements.forEach(Wn=>$r(a,Wn,[]).push(lt)),Lt.preStyleProps.forEach((Wn,hr)=>{if(Wn.size){let Ki=c.get(hr);Ki||c.set(hr,Ki=new Set),Wn.forEach((yg,Wu)=>Ki.add(Wu))}}),Lt.postStyleProps.forEach((Wn,hr)=>{let Ki=l.get(hr);Ki||l.set(hr,Ki=new Set),Wn.forEach((yg,Wu)=>Ki.add(Wu))})});if(ve.length){const be=[];ve.forEach(Se=>{be.push(function Zse(t,n){return new H(3505,!1)}())}),de.forEach(Se=>Se.destroy()),this.reportError(be)}const ke=new Map,Ve=new Map;s.forEach(be=>{const Se=be.element;i.has(Se)&&(Ve.set(Se,Se),this._beforeAnimationBuild(be.player.namespaceId,be.instruction,ke))}),r.forEach(be=>{const Se=be.element;this._getPreviousPlayers(Se,!1,be.namespaceId,be.triggerName,null).forEach(lt=>{$r(ke,Se,[]).push(lt),lt.destroy()})});const Nt=S.filter(be=>cH(be,c,l)),Pt=new Map;oH(Pt,this.driver,A,l,Ha).forEach(be=>{cH(be,c,l)&&Nt.push(be)});const An=new Map;v.forEach((be,Se)=>{oH(An,this.driver,new Set(be),c,"!")}),Nt.forEach(be=>{const Se=Pt.get(be),Le=An.get(be);Pt.set(be,new Map([...Se?.entries()??[],...Le?.entries()??[]]))});const Rn=[],Lo=[],Bo={};s.forEach(be=>{const{element:Se,player:Le,instruction:lt}=be;if(i.has(Se)){if(u.has(Se))return Le.onDestroy(()=>ta(Se,lt.toStyles)),Le.disabled=!0,Le.overrideTotalTime(lt.totalTime),void r.push(Le);let hn=Bo;if(Ve.size>1){let zn=Se;const dr=[];for(;zn=zn.parentNode;){const Lt=Ve.get(zn);if(Lt){hn=Lt;break}dr.push(zn)}dr.forEach(Lt=>Ve.set(Lt,hn))}const Yi=this._buildAnimation(Le.namespaceId,lt,ke,o,An,Pt);if(Le.setRealPlayer(Yi),hn===Bo)Rn.push(Le);else{const zn=this.playersByElement.get(hn);zn&&zn.length&&(Le.parentPlayer=Yc(zn)),r.push(Le)}}else hu(Se,lt.fromStyles),Le.onDestroy(()=>ta(Se,lt.toStyles)),Lo.push(Le),u.has(Se)&&r.push(Le)}),Lo.forEach(be=>{const Se=o.get(be.element);if(Se&&Se.length){const Le=Yc(Se);be.setRealPlayer(Le)}}),r.forEach(be=>{be.parentPlayer?be.syncPlayerEvents(be.parentPlayer):be.destroy()});for(let be=0;be<S.length;be++){const Se=S[be],Le=Se[rs];if(Rh(Se,yy),Le&&Le.hasAnimation)continue;let lt=[];if(a.size){let Yi=a.get(Se);Yi&&Yi.length&&lt.push(...Yi);let zn=this.driver.query(Se,mx,!0);for(let dr=0;dr<zn.length;dr++){let Lt=a.get(zn[dr]);Lt&&Lt.length&&lt.push(...Lt)}}const hn=lt.filter(Yi=>!Yi.destroyed);hn.length?Yae(this,Se,hn):this.processLeaveNode(Se)}return S.length=0,Rn.forEach(be=>{this.players.push(be),be.onDone(()=>{be.destroy();const Se=this.players.indexOf(be);this.players.splice(Se,1)}),be.play()}),Rn}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const c=!o||o==$f;a.forEach(l=>{l.queued||!c&&l.triggerName!=r||s.push(l)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const c of e.timelines){const l=c.element,u=l!==o,h=$r(i,l,[]);this._getPreviousPlayers(l,u,s,a,e.toState).forEach(v=>{const y=v.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),v.destroy(),h.push(v)})}hu(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,c=e.element,l=[],u=new Set,h=new Set,f=e.timelines.map(y=>{const D=y.element;u.add(D);const S=D[rs];if(S&&S.removedBeforeQueried)return new Uf(y.duration,y.delay);const k=D!==c,A=function Kae(t){const n=[];return aH(t,n),n}((i.get(D)||Uae).map(ke=>ke.getRealPlayer())).filter(ke=>!!ke.element&&ke.element===D),K=o.get(D),J=s.get(D),de=B3(this._normalizer,y.keyframes,K,J),ve=this._buildPlayer(y,de,A);if(y.subTimeline&&r&&h.add(D),k){const ke=new kx(n,a,D);ke.setRealPlayer(ve),l.push(ke)}return ve});l.forEach(y=>{$r(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function zae(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,y.element,y))}),u.forEach(y=>bo(y,$3));const v=Yc(f);return v.onDestroy(()=>{u.forEach(y=>Rh(y,$3)),ta(c,e.toStyles)}),h.forEach(y=>{$r(r,y,[]).push(v)}),v}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Uf(n.duration,n.delay)}}class kx{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new Uf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>cx(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){$r(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function ky(t){return t&&1===t.nodeType}function rH(t,n){const e=t.style.display;return t.style.display=n??"none",e}function oH(t,n,e,i,r){const o=[];e.forEach(c=>o.push(rH(c)));const s=[];i.forEach((c,l)=>{const u=new Map;c.forEach(h=>{const f=n.computeStyle(l,h,r);u.set(h,f),(!f||0==f.length)&&(l[rs]=jae,s.push(l))}),t.set(l,u)});let a=0;return e.forEach(c=>rH(c,o[a++])),s}function sH(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let c=o.get(a);if(c)return c;const l=a.parentNode;return c=e.has(l)?l:r.has(l)?1:s(l),o.set(a,c),c}return n.forEach(a=>{const c=s(a);1!==c&&e.get(c).push(a)}),e}function bo(t,n){t.classList?.add(n)}function Rh(t,n){t.classList?.remove(n)}function Yae(t,n,e){Yc(e).onDone(()=>t.processLeaveNode(n))}function aH(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof P3?aH(i.players,n):n.push(i)}}function cH(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(o=>r.add(o)):n.set(t,i),e.delete(t),!0}class zf{constructor(n,e,i,r){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new $ae(n.body,e,i,r),this._timelineEngine=new Pae(n.body,e,i),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const c=[],u=wx(this._driver,o,c,[]);if(c.length)throw function Vse(t,n){return new H(3404,!1)}();a=function Rae(t,n,e){return new Nae(t,n,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=V3(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=V3(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}class Wf{static#e=this.initialStylesByElement=new WeakMap;constructor(n,e,i){this._element=n,this._startStyles=e,this._endStyles=i,this._state=0;let r=Wf.initialStylesByElement.get(n);r||Wf.initialStylesByElement.set(n,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ta(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ta(this._element,this._initialStyles),this._endStyles&&(ta(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Wf.initialStylesByElement.delete(this._element),this._startStyles&&(hu(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(hu(this._element,this._endStyles),this._endStyles=null),ta(this._element,this._initialStyles),this._state=3)}}function Ax(t){let n=null;return t.forEach((e,i)=>{(function Xae(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class lH{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:yx(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class uH{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return U3(n,e)}getParentElement(n){return dx(n)}query(n,e,i){return j3(n,e,i)}computeStyle(n,e,i){return yx(n,e)}animate(n,e,i,r,o,s=[]){const c={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(c.easing=o);const l=new Map,u=s.filter(v=>v instanceof lH);(function lae(t,n){return 0===t||0===n})(i,r)&&u.forEach(v=>{v.currentSnapshot.forEach((y,D)=>l.set(D,y))});let h=function sae(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}(e).map(v=>new Map(v));h=function uae(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,yx(t,a)))}}return n}(n,h,l);const f=function Qae(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Ax(n[0]),n.length>1&&(i=Ax(n[n.length-1]))):n instanceof Map&&(e=Ax(n)),e||i?new Wf(t,e,i):null}(n,h);return new lH(n,h,c,f)}}const dH="@.disabled";class hH{constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==dH?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Jae extends hH{constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==dH?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function ece(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function tce(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}class nce{constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(r,o)=>{const s=o?.parentNode(r);s&&o.removeChild(s,r)}}createRenderer(n,e){const r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){const l=this._rendererCache;let u=l.get(r);return u||(u=new hH("",r,this.engine,()=>l.delete(r)),l.set(r,u)),u}const o=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,n);const a=l=>{Array.isArray(l)?l.forEach(a):this.engine.registerTrigger(o,s,n,l.name,l)};return e.data.animation.forEach(a),new Jae(this,s,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&n<this._microtaskId)return void this._zone.run(()=>e(i));const r=this._animationCallbacksBuffer;0==r.length&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const gH=[{provide:px,useFactory:function rce(){return new q3}},{provide:zf,useClass:(()=>{class t extends zf{constructor(e,i,r){super(e,i,r,x(Hv,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(gx),I(px))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})()},{provide:Uv,useFactory:function oce(t,n,e){return new nce(t,n,e)},deps:[ZE,zf,xe]}],Rx=[{provide:gx,useFactory:()=>new uH},{provide:Hs,useValue:"BrowserAnimations"},...gH],pH=[{provide:gx,useClass:hx},{provide:Hs,useValue:"NoopAnimations"},...gH];let sce=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?pH:Rx}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({providers:Rx,imports:[VL]})}return t})();class Ry{token;stringKey;constructor(n){this.token=n,this.stringKey=this.generateStringKey()}static from(n){return new Ry(n)}toString(){return this.stringKey}generateStringKey(){return"string"!=typeof this.token?this.token.toString().split(" ")[1]||"":this.token}}class Nx extends Ry{constructor(n){super(n)}getError(){return"string"==typeof this.token?"Key not found for the token: "+this.token:"Key not found for the token: "+this.token.toString()}}class ace{records=new Map;getKey(n){return this.records.get(n)||new Nx(n)}getKeyAndTryRegister(n,e){return this.has(n)||this.set(n,e),this.getKey(n)}has(n){return this.records.has(n)}set(n,e){this.records.set(n,Ry.from(n))}clear(){this.records.clear()}}class cce{providers=new Map;get(n){const e=this.providers.get(n);if(!e)throw new Error(`There is no provider for ${n.toString()}.`);return e}has(n){return this.providers.has(n)}set(n,e){this.providers.set(n,e)}clear(){this.providers.clear()}}class Ny{serviceToken;constructor(n){this.serviceToken=n}getToken(){return"object"==typeof this.serviceToken?this.serviceToken.inject:this.serviceToken}isOptional(){return"string"!=typeof this.serviceToken&&"object"==typeof this.serviceToken&&void 0!==this.serviceToken.optional&&this.serviceToken.optional}isCollection(){return!("string"==typeof this.serviceToken||"object"!=typeof this.serviceToken||!this.serviceToken.collection)&&this.serviceToken.collection}}class Ox{provider;constructor(n){this.provider=n}getDeps(){return(this.provider.services||[]).map(n=>new Ny(n))}}class lce extends Ox{constructor(n){super(n)}create(n){return new this.provider(...n)}}class uce extends Ox{constructor(n){super(n)}getDeps(){return[]}create(n){return this.provider}}class dce extends Ox{constructor(n){super(n)}getDeps(){return(this.provider.deps||[]).map(n=>new Ny(n))}create(n){return this.provider.create(...n)}}class Fx{}class hce extends Fx{providers=[];getDeps(){return this.providers.map(n=>(n.services||[]).map(e=>new Ny(e)))}create(n){return n.map((e,i)=>new this.providers[i](...e))}addProvider(n){this.providers.push(n)}}class gce extends Fx{providers=[];getDeps(){return this.providers.map(n=>(n.deps||[]).map(e=>new Ny(e)))}create(n){return n.map((e,i)=>this.providers[i].create(...e))}addProvider(n){this.providers.push(n)}}class pce extends Fx{providers=[];getDeps(){return[]}create(n){return[...this.providers]}addProvider(n){this.providers.push(n)}}class fce{keyRegister;providerManager=new cce;collectionProviders=new Map;constructor(n){this.keyRegister=n}provide(n,e){return void 0===e?this.provide(n,n):this.provideClass(n,e)}provideClass(n,e){return this.addProvider(n,e,i=>new lce(i))}provideValue(n,e){return this.addProvider(n,e,i=>new uce(i))}provideFactory(n,e){return this.addProvider(n,e,i=>new dce(i))}provideCollection(n,e){return this.addCollectionProvider(n,e,()=>new hce)}provideFactoryCollection(n,e){return this.addCollectionProvider(n,e,()=>new gce)}provideValueCollection(n,e){return this.addCollectionProvider(n,e,()=>new pce)}clear(){this.providerManager.clear(),this.collectionProviders.clear()}getRecordFactory(n){return this.providerManager.get(n)}getCollectionRecordFactory(n){return this.collectionProviders.get(n)}addProvider(n,e,i){const r=this.keyRegister.getKeyAndTryRegister(n,e);this.providerManager.set(r,i(e))}addCollectionProvider(n,e,i){const r=this.keyRegister.getKeyAndTryRegister(n,e);if(this.collectionProviders.has(r)){const o=this.collectionProviders.get(r);o&&o.addProvider(e)}else{const o=i();o.addProvider(e),this.collectionProviders.set(r,o)}}}class mce{records=new Map;get(n){return this.records.get(n)}has(n){return this.records.has(n)}set(n,e){this.records.set(n,e)}clear(){this.records.clear()}}class bce{keyRegister;containerProvider;recordManager=new mce;collectionRecords=new Map;constructor(n,e){this.keyRegister=n,this.containerProvider=e}resolve(n){return this.innerResolve(n)}resolveCollection(n){return this.innerResolveCollection(n)}clear(){this.recordManager.clear(),this.collectionRecords.clear()}resolveDependencies(n){return n.getDeps().map(i=>i.isCollection()?this.innerResolveCollection(i.getToken(),i.isOptional()):this.resolveDependency(i))}resolveDependency(n){return this.innerResolve(n.getToken(),n.isOptional())}innerResolve(n,e){const i=this.keyRegister.getKey(n);if(i instanceof Nx){if(e)return null;throw new Error(i.getError())}if(!this.recordManager.has(i)){const r=this.containerProvider.getRecordFactory(i),o=this.resolveDependencies(r),s=r.create(o);this.recordManager.set(i,s)}return this.recordManager.get(i)}innerResolveCollection(n,e=!1){const i=this.keyRegister.getKey(n);if(i instanceof Nx){if(e)return null;throw new Error(i.getError())}if(!this.collectionRecords.has(i)){const r=this.containerProvider.getCollectionRecordFactory(i);if(r){const o=r.getDeps().map(a=>a.map(c=>c.isCollection()?this.innerResolveCollection(c.getToken(),c.isOptional()):this.resolveDependency(c))),s=r.create(o);this.collectionRecords.set(i,s)}}return this.collectionRecords.get(i)}}class vce{keyRegister=new ace;containerProvider=new fce(this.keyRegister);containerRecord=new bce(this.keyRegister,this.containerProvider);resolve(n){return this.containerRecord.resolve(n)}resolveCollection(n){return this.containerRecord.resolveCollection(n)}provide(n,e){return this.containerProvider.provide(n,e),this}provideClass(n,e){return this.containerProvider.provideClass(n,e),this}provideValue(n,e){return this.containerProvider.provideValue(n,e),this}provideFactory(n,e){return this.containerProvider.provideFactory(n,e),this}provideCollection(n,e){return this.containerProvider.provideCollection(n,e),this}provideFactoryCollection(n,e){return this.containerProvider.provideFactoryCollection(n,e),this}provideValueCollection(n,e){return this.containerProvider.provideValueCollection(n,e),this}clear(){this.keyRegister.clear(),this.containerProvider.clear(),this.containerRecord.clear()}clearOnlyRecords(){this.containerRecord.clear()}}function fH(){return new vce}class mH{subscriber;closed=!1;constructor(n,e){this.subscriber=n,null!=e&&(this.closed=e)}unsubscribe(){this.closed||(this.closed=!0,this.subscriber.unsubscribe())}getFinalize(){return this.subscriber.getFinalize()}}class vo{observer;finalize=()=>{};completed=!1;closed=!1;constructor(n){this.observer=n}next(n){this.isCompleted()||this.observer&&this.observer.next&&this.observer.next(n)}error(n){this.completed||(this.observer&&this.observer.error&&this.observer.error(n),this.unsubscribe())}complete(){this.completed||(this.completed=!0,this.observer&&this.observer.complete&&this.observer.complete(),this.unsubscribe())}unsubscribe(){this.closed||(this.closed=!0,this.completed=!0,this.finalize())}setFinalize(n){n&&"function"==typeof n&&(this.finalize=n)}getFinalize(){return this.finalize}isCompleted(){return this.completed}isClosed(){return this.closed}getObserver(){return this.observer}}class En{generatorFn;source;generatorFinalize;constructor(n){this.generatorFn=n}pipe(...n){this.source=this;for(const e of n)this.source=this.innerPipe(e,this.source);return this.source}subscribe(n){let e;if(n instanceof vo)e=n;else if(null!==n&&this.isObserver(n)){const{next:i,error:r,complete:o}=n;e=this.createSubscriber(i,r,o)}else e=this.createSubscriber(arguments[0],arguments[1],arguments[2]);return this.generatorFn&&(this.generatorFinalize=this.generatorFn(e),e.setFinalize(this.generatorFinalize)),this.getSubscription(e)}createSubscriber(n,e,i){return new vo({next:n,error:e,complete:i})}getSubscription(n){return new mH(n)}innerPipe(n,e){return n(e)}isObserver(n){return"object"==typeof n}}function bH(){return new mH(new vo({}),!0)}class Ci extends En{thrownError=null;isCompleted=!1;isClosed=!1;subscribers=[];constructor(){super()}next(n){if(this.verifyNotClosed(),!this.isCompleted&&null===this.thrownError)for(const e of this.subscribers)e.next(n)}error(n){if(this.verifyNotClosed(),!this.isCompleted){this.thrownError=n;for(const e of this.subscribers)e.error(n);this.subscribers.length=0}}complete(){if(this.verifyNotClosed(),!this.isCompleted){this.isCompleted=!0;for(const n of this.subscribers)n.complete();this.subscribers.length=0}}subscribe(n){let e;return this.verifyNotClosed(),e=n instanceof vo?n:this.createSubscriber(arguments[0],arguments[1],arguments[2]),null!==this.thrownError?(e.error(this.thrownError),bH()):this.isCompleted?(e.complete(),bH()):(this.subscribers.push(e),this.getSubscription(e))}unsubscribe(){this.isCompleted=!0,this.isClosed=!0,this.subscribers.length=0}toObservable(){return new En(n=>{const e=this.subscribe(i=>n.next(i),i=>n.error(i),()=>n.complete());return()=>e.unsubscribe()})}verifyNotClosed(){if(this.isClosed)throw new Error("Observable already closed")}}class Oy extends Ci{constructor(){super()}}let pu=(()=>{class t{static index=0;static generate(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)+""+t.index++}}return t})();class vH{aggregateId;messageType;messageId;constructor(n,e,i=pu.generate()){this.aggregateId=n,this.messageType=e,this.messageId=i}getMessageType(){return this.messageType}getAggregateId(){return this.aggregateId}getMessageId(){return this.messageId}toString(){return this.messageType}equalsByType(n){return this.getMessageType()===n.getMessageType()}equals(n){return this.getMessageType()===n.getMessageType()&&this.messageId===n.messageId}ofMessageType(n){return Array.isArray(n)?!!n.find(i=>this.isMessageType(i)):this.isMessageType(n)}isMessageType(n){return this.getMessageType()===n}}class Nh extends vH{payload;constructor(n,e,i){super(n,i),this.payload=e}isSameType(n){return this.constructor.name===n.constructor.name}getPayload(){return this.payload}}function _H(){return new En(t=>{t.complete()})}function Oh(t){return n=>0===t?_H():new En(e=>{let i=0;const r=new vo({next:()=>{},error:s=>e.error(s),complete:()=>e.complete()});return r.observer.next=function(s){i<t&&(e.next(s),i++,i===t&&r.complete())},n.subscribe(r).getFinalize()})}function fu(t,n,e){return new vo({next:n||(o=>{t.next(o)}),error:o=>t.error(o),complete:e||(()=>{t.complete()})})}function Tt(t){return n=>new En(e=>{const i=fu(e,r=>{t(r)&&e.next(r)});return n.subscribe(i).getFinalize()})}class yH{domainEvents=[];domainEvents$=new Ci;next(n){this.domainEvents.push(n),this.domainEvents$.next(n)}findEventByType(n){return this.getEvents().reverse().find(i=>i.constructor.name===n)}waitForEvent(n){const e=this.findEventByType(n);return e?function _ce(...t){return new En(n=>{t.forEach(e=>{n.next(e)}),n.complete()})}(e):this.waitForNextEventOccurrence(n)}waitForNextEventOccurrence(n){let e;if(n instanceof Nh)e=n.constructor.name;else{if("string"!=typeof n)return new En(i=>{i.error(new Error("Unsupported argument type."))});e=n}return this.domainEvents$.toObservable().pipe(Tt(i=>i.constructor.name===e),Oh(1))}getEvents(){return this.domainEvents}}class Px extends Ci{constructor(){super()}}let qf=(()=>class t extends En{commandsStream;constructor(e){super(),this.commandsStream=e}static services=[Px];subscribe(){return this.commandsStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofCommandHandler(...e){return this.commandsStream.toObservable().pipe(Tt(i=>e.some(r=>r.forCommand(i))))}ofCreateAggregateHandler(...e){return this.commandsStream.toObservable().pipe(Tt(i=>e.some(r=>r.forCommand(i))))}ofNullHandler(e,i){return this.commandsStream.toObservable().pipe(Tt(r=>{if(!e&&!i)return!0;let o=!0;return e&&(o=!e.some(s=>s.forCommand(r))),i&&(o=o&&!i.some(s=>s.forCommand(r))),o}))}})();class Xt{value;constructor(n){return this.value=Xt.isValueEmpty(n)?null:n,this}static empty(){return new Xt(null)}static of(n){return new Xt(n)}static isValueEmpty(n){return typeof n>"u"||null===n}isEmpty(){return Xt.isValueEmpty(this.value)}isPresent(){return!this.isEmpty()}filter(n){return this.isPresent()&&n(this.value)?this:Xt.empty()}forEach(n){this.isPresent()&&n(this.value)}map(n){return this.isPresent()?new Xt(n(this.value)):Xt.empty()}getValueOrNullOrThrowError(){return this.value}getOrThrow(){if(this.isEmpty())throw new Error("Called getOrThrow on an empty Optional");return this.value}getOrElse(n){return this.isPresent()?this.value:n()}ifPresent(n){this.isPresent()&&n(this.value)}ifEmpty(n){this.isEmpty()&&n()}orElse(n){return this.isPresent()?this:n()}}class Fy{map=new Map;constructor(){}add(n,e){this.map.set(n,e)}get(n){return Xt.of(this.map.get(n))}has(n){return this.map.has(n)}}class Py{map=new Map;constructor(){}add(n,e){this.map.set(n,e)}get(n){return Xt.of(this.map.get(n))}has(n){return this.map.has(n)}}class Lx{aggregateFactoryArchive=Y.resolve(Fy);aggregateRepositoryArchive=Y.resolve(Py);constructor(){}register(n){if(n){const e=new Set,i=[];n.filter(r=>{e.has(r.key)||(e.add(r.key),i.push(r))}),i.forEach(r=>{const o=Y.resolve(r.factory),s=Y.resolve(r.repository);this.aggregateFactoryArchive.has(r.key)||this.aggregateFactoryArchive.add(r.key,o),this.aggregateRepositoryArchive.has(r.key)||this.aggregateRepositoryArchive.add(r.key,s)})}}}function Wr(t){return n=>new En(e=>{const i=function yce(t){return new vo({next:n=>t.next(n),error:n=>t.error(n),complete:()=>t.complete()})}(e),r=new vo({next:()=>i.complete()});return t.subscribe(r),n.subscribe(i).getFinalize()})}function Kc(t){return new rt(n=>{const e=t.subscribe(i=>n.next(i),i=>n.error(i),()=>n.complete());return()=>e.unsubscribe()})}class Cr{hermesUnsubscribe$=new Ci;constructor(){}onDestroy(){this.hermesUnsubscribe()}takeUntil(){return De(Kc(this.hermesUnsubscribe$))}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Wr(this.hermesUnsubscribe$)}isNotStopped(){return!this.hermesUnsubscribe$.isCompleted}}class Bx extends Cr{commandBus=Y.resolve(qf);constructor(){super()}register(n){if(n){const e=new Set,i=[];n.filter(r=>{e.has(r.commandHandler)||(e.add(r.commandHandler),i.push(r))}),i.forEach(r=>{this.commandBus.ofCommandHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}registerAggregateCommandHandlers(n){if(n){const e=new Set,i=[];n.filter(r=>{e.has(r.createAggregateCommandHandler)||(e.add(r.createAggregateCommandHandler),i.push(r))}),i.forEach(r=>{this.commandBus.ofCreateAggregateHandler(r).pipe(this.hermesTakeUntil()).subscribe(o=>{r.handleCommand(o)})})}}}let _o=(()=>class t extends En{eventStream;constructor(e){super(),this.eventStream=e}static services=[Oy];subscribe(){return this.eventStream.toObservable().subscribe(arguments[0],arguments[1],arguments[2])}ofEvents(e){return this.eventStream.toObservable().pipe(Tt(i=>e.some(r=>this.createEventInstance(r).equalsByType(i))))}ofEventHandlers(e){return this.eventStream.toObservable().pipe(Tt(i=>e.some(r=>r.forEvents([i]))))}createEventInstance(e){const i=[];if(i.fill(void 0,0,e.constructor.length),0===i.length)return new e;if(1===i.length)return new e(i[0]);if(2===i.length)return new e(i[0],i[1]);if(3===i.length)return new e(i[0],i[1],i[2]);if(4===i.length)return new e(i[0],i[1],i[2],i[3]);if(5===i.length)return new e(i[0],i[1],i[2],i[3],i[4]);throw new Error("DomainEventBus constructor out of arguments")}})(),Vx=(()=>class t extends Cr{domainEventBus;unsub$=new Ci;constructor(e){super(),this.domainEventBus=e}static services=[_o];init(e){if(e){const i=new Set,r=[];e.filter(o=>{i.has(o.domainEventHandler)||(i.add(o.domainEventHandler),r.push(o))}),r.forEach(o=>{this.domainEventBus.ofEventHandlers([o]).pipe(Wr(this.unsub$),this.hermesTakeUntil()).subscribe(s=>{o.handleEvent(s)})})}}reinit(e){this.stop(),this.init(e)}stop(){this.unsub$.next(),this.unsub$.complete(),this.unsub$=new Ci}})();const Hx="GUI - COMMAND_LOGGER_ENABLED",Ux="GUI - EVENT_LOGGER_ENABLED";class wH{domainName;setDomain(n){this.domainName=n}log(n){this.shouldPrint(n)&&this.print(n)}shouldPrint(n){return!this.domainName||n.toString().includes(this.domainName)}}class Ly extends wH{}class CH extends Ly{enabled=!1;unsubscribe$=new Ci;commandBus=Y.resolve(qf);constructor(){super(),this.commandBus.pipe(Tt(()=>this.enabled),Wr(this.unsubscribe$)).subscribe(n=>{this.log(n)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(n){console.log(n.toString(),n)}}class DH extends Ly{start(){}stop(){}print(n){}}class By extends wH{constructor(){super()}}class EH extends By{constructor(){super()}start(){}stop(){}print(n){}}class Vy{stores=[];register(n){this.stores.push(n)}captureAggregatesSnapshot(n){if(!n)return{};const e={};return this.stores.forEach(i=>{const r=i.findById(n);r&&(e[r.constructor.name]=r)}),this.cloneAggregates(e)}cloneAggregates(n){return n}}class SH extends By{enabled=!1;unsubscribe$=new Ci;eventBus=Y.resolve(_o);aggregateStoreRegister=Y.resolve(Vy);constructor(){super(),this.eventBus.pipe(Tt(()=>this.enabled),Wr(this.unsubscribe$)).subscribe(n=>{this.log(n)})}onDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}start(){this.enabled=!0}stop(){this.enabled=!1}print(n){const e=n.getAggregateId(),i=this.aggregateStoreRegister.captureAggregatesSnapshot(e);console.log(n.toString(),n,i)}}const xH="Hermes - aggregateDefinitionToken",jx="HERMES - DOMAIN_EVENT_HANDLERS_TOKEN",IH="HERMES - CREATE_AGGREGATE_COMMAND_HANDLERS",TH="HERMES - COMMAND_HANDLERS_TOKEN";let MH=(()=>class t extends Cr{aggregateDefinitionInitializer;commandHandlerInitializer;domainEventHandlerInitializer;commandBus;definedAggregate;eventHandlers;aggregateCommandHandlers;commandHandlers;started=!1;constructor(e,i,r,o,s,a,c,l){super(),this.aggregateDefinitionInitializer=e,this.commandHandlerInitializer=i,this.domainEventHandlerInitializer=r,this.commandBus=o,this.definedAggregate=s,this.eventHandlers=a,this.aggregateCommandHandlers=c,this.commandHandlers=l,null===this.eventHandlers&&(this.eventHandlers=[]),null===this.aggregateCommandHandlers&&(this.aggregateCommandHandlers=[]),null===this.commandHandlers&&(this.commandHandlers=[])}static services=[Lx,Bx,Vx,qf,{inject:xH,collection:!0},{inject:jx,collection:!0,optional:!0},{inject:IH,collection:!0,optional:!0},{inject:TH,collection:!0,optional:!0}];run(){this.started||(this.checkNullCommand(this.commandHandlers,this.aggregateCommandHandlers),this.checkCommandHandlerIsCollection(this.commandHandlers),this.checkDomainEventHandlerIsCollection(this.eventHandlers),this.aggregateDefinitionInitializer.register(this.definedAggregate),this.commandHandlerInitializer.register(this.commandHandlers),this.commandHandlerInitializer.registerAggregateCommandHandlers(this.aggregateCommandHandlers),this.domainEventHandlerInitializer.init(this.eventHandlers),this.started=!0)}destroy(){this.commandHandlerInitializer.onDestroy(),this.domainEventHandlerInitializer.onDestroy()}checkNullCommand(e,i){this.commandBus.ofNullHandler(e,i).pipe(this.hermesTakeUntil()).subscribe(r=>{console.error(`Command ${r.toString()} was not intercepted by any CommandHandler.`)})}checkCommandHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided commandHandler without specifying "multi: true".')}checkDomainEventHandlerIsCollection(e){e&&!Array.isArray(e)&&console.warn('You might provided eventHandler without specifying "multi: true".')}})();class sr{commandStream=Y.resolve(Px);dispatch(n){this.commandStream.next(n)}}let xt=(()=>class t{eventStream;constructor(e){this.eventStream=e}static services=[Oy];publish(e){if(Array.isArray(e))for(const i of e)this.publishEvent(i);else this.publishEvent(e)}publishFromAggregate(e){[...e.getEvents()].forEach(r=>{this.publish(r.toDomainEvent())})}publishEvent(e){e||console.error(`${e} is not defined`),e instanceof Nh||console.error(`${e} is not a DomainEvent`),this.eventStream.next(e)}})();const Y=fH();Y.provideValue(Ux,!0),Y.provideValue(Hx,!0),Y.provide(CH),Y.provide(DH),Y.provide(EH),Y.provide(SH),Y.provide(_o),Y.provide(Vy),Y.provideFactory(Ly,{create:function wce(t,n,e){return t?n:e},deps:[Hx,CH,DH]}),Y.provideFactory(By,{create:function Cce(t,n,e){return t?n:e},deps:[Ux,SH,EH]}),Y.provide(Fy,Fy),Y.provide(xt),Y.provide(Py),Y.provide(Oy,Oy),Y.provide(yH,yH),Y.provide(qf,qf),Y.provide(Px),Y.provide(sr),Y.provide(Lx,Lx),Y.provide(Bx,Bx),Y.provide(Vx,Vx),Y.provide(MH);class Yf extends vH{}class Hy{}class Uy{aggregateId;type;constructor(n,e){this.aggregateId=n,this.type=e}getAggregateId(){return this.aggregateId}getType(){return this.type}equals(n){return this.equalsByType(n)&&this.getAggregateId().equals(n.getAggregateId())}equalsByType(n){return this.getType()===n.getType()}}class jy{}class kH{}class Gy{type;aggregateId;events;constructor(n,e){this.type=e,this.aggregateId=n,this.events=[]}getId(){return this.aggregateId}getType(){return this.type}getEvents(){return this.events}addEvent(n){if(Array.isArray(n))for(const e of n)this.events.push(e);else this.events.push(n)}clearEvents(){this.events.length=0}equals(n){return n.getId().toString()===this.getId().toString()}}class $y{uid;constructor(n){this.uid=n}getId(){return this.uid}equals(n){return this.uid===n.getId()}}class zy extends $y{constructor(n){super(n)}toString(){return super.getId()}}class AH extends Cr{constructor(){super()}onDestroy(){this.hermesUnsubscribe()}}class Gx{keys=new Map;values=new WeakMap;find(n){const e=this.getInternalKey(n);return void 0!==e?Xt.of(this.values.get(e)):Xt.empty()}has(n){const e=this.getInternalKey(n);return this.values.has(e)}set(n,e){this.keys.set(n.toString(),n),this.values.set(n,e)}size(){return this.keys.size}remove(n){this.hasInternalKey(n)&&(this.keys.delete(n.toString()),this.values.delete(n))}removeAll(){this.keys.forEach(n=>{this.values.delete(n)}),this.keys.clear()}getInternalKey(n){return this.keys.get(n.toString())}hasInternalKey(n){return this.keys.has(n.toString())}}function ge(t){return n=>new En(e=>{let i=0;const r=fu(e,o=>{e.next(t(o,i++))});return n.subscribe(r).getFinalize()})}function os(t){const n=t||Ece;return e=>new En(i=>{let r=null;const o=fu(i,s=>{(null===r||!n(r,s))&&(r=s,i.next(s))});return e.subscribe(o).getFinalize()})}function Ece(t,n){return t===n}class Sce extends Ci{lastValue;constructor(n){super(),this.lastValue=n}next(n){this.lastValue=n,super.next(n)}subscribe(){const n=super.subscribe(arguments[0],arguments[1],arguments[2]);return super.next(this.lastValue),n}}class ss extends Ci{bufferSize;values=[];constructor(n=1){super(),this.bufferSize=n}pipe(...n){return super.pipe(...n)}next(n){this.values.push(n),this.bufferSize<this.values.length&&this.values.shift(),super.next(n)}subscribe(){let n;n=arguments[0]instanceof vo?arguments[0]:this.createSubscriber(arguments[0],arguments[1],arguments[2]);const e=super.subscribe(n);for(const i of this.values)n.next(i);return e}}class RH extends Ci{constructor(){super()}static of(n){return void 0!==n?new Sce(n):new ss(1)}}class xce extends vo{next(n){if(this.isCompleted())return;const e=this.getObserver();e&&e.next&&(e.next(n),this.complete())}}class Ice extends En{createSubscriber(n,e,i){return new xce({next:n,error:e,complete:i})}}function Fh(t){return new Ice(n=>{const e=new vo({next:r=>n.next(r),error:r=>n.error(r),complete:()=>{}});return t.subscribe(e).getFinalize()})}class Tce extends AH{archive=new Gx;archive$;defaultValue=Xt.empty();constructor(n){super(),this.archive$=RH.of(),null!=n&&(this.defaultValue=Xt.of(n))}on(n){return this.tryToInitDefault(n),this.archive$.toObservable().pipe(Tt(()=>this.isNotStopped()),ge(e=>e.find(n)),Tt(e=>e.isPresent()),ge(e=>e.getValueOrNullOrThrowError()),os(this.equals),this.hermesTakeUntil())}once(n){return Fh(this.on(n))}find(n){return this.tryToInitDefault(n),this.archive.find(n)}next(n,e){this.archive.set(n,e),this.archive$.next(this.archive)}equals(n,e){return n===e}createDefaultValue(n){return n}tryToInitDefault(n){this.defaultValue.ifPresent(e=>{this.archive.has(n)||this.next(n,e)})}}class dn extends Tce{constructor(n){super(n)}}class Zc extends dn{constructor(n){super(n)}handle(n){this.next(n.getAggregateId(),n.getPayload())}}class Mce{entityId;constructor(n){this.entityId=n}getId(){return this.entityId}}class kce{uid;constructor(n){this.uid=n}toString(){return this.uid}getId(){return this.uid}equals(n){return this.uid===n.getId()}}class NH{rootId;constructor(n){this.rootId=n}getId(){return this.rootId}}class Wy{uid;constructor(n){this.uid=n}toString(){return this.uid}getId(){return this.uid}equals(n){return this.uid===n.getId()}}class Ace extends Cr{domainEventBus=Y.resolve(_o);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(n=>{try{this.subscribe(n)}catch(e){console.error(e)}})}}class OH{}class mu extends AH{domainEventBus=Y.resolve(_o);constructor(){super()}onEvent(n,e){return this.domainEventBus.ofEvents([e]).pipe(Tt(i=>i.getAggregateId().toString()===n.toString()))}}class qy{entityId;constructor(n){this.entityId=n}getId(){return this.entityId}equals(n){return this.entityId.equals(n.getId())}}class Ph extends $y{}function FH(t){}function $x(t){}class $i{}function PH(t){return new En(n=>{const e=setTimeout(()=>{n.next(0)},t);return()=>{clearTimeout(e),n.complete()}})}function Yy(t,n){return new En(e=>{const i=r=>{e.next(r)};return t.addEventListener(n,i),()=>{t.removeEventListener(n,i)}})}function yo(t){return n=>new En(e=>{let i=!1,r=null;const o=function(){i&&!r&&e.complete()},s=fu(e,a=>{r&&r.unsubscribe();const c=new vo({next:u=>e.next(u),error:u=>e.error(u),complete:()=>{r=null,o()}});return r=c,t(a).subscribe(c).getFinalize()},()=>{i=!0,o()});return n.subscribe(s).getFinalize()})}function bu(t){return new En(n=>{const e=t.subscribe(i=>n.next(i),i=>n.error(i),()=>n.complete());return()=>e.unsubscribe()})}class na{archive$;constructor(n){this.archive$=RH.of(n)}on(){return this.archive$.toObservable().pipe(os(this.compare))}next(n){this.archive$.next(n)}compare(n,e){return n===e}}let Rce=(()=>{class t{static index=0;static generate(){return t.index++,t.index}}return t})();class Ky extends kH{inMemoryStore;aggregateStoreRegister=Y.resolve(Vy);constructor(n){super(),this.inMemoryStore=n,this.aggregateStoreRegister.register(this)}save(n){Array.isArray(n)?n.forEach(e=>{this.inMemoryStore.set(e)}):this.inMemoryStore.set(n)}findById(n){const e=this.inMemoryStore.get(n);return e.ifPresent(i=>i.clearEvents()),e}remove(n){this.inMemoryStore.delete(n)}}class LH extends OH{inMemoryStore;constructor(n){super(),this.inMemoryStore=n}getById(n){return this.getValue(n)}getValue(n){return this.inMemoryStore.get(n).map(this.toReadModel.bind(this))}}class Zy{state=new Map;set(n){this.state.set(n.getId().toString(),n)}setMany(n){n.forEach(e=>{this.set(e)})}get(n){return Xt.of(this.state.get(n.toString()))}getAll(){return Array.from(this.state.values()).map(n=>Xt.of(n))}has(n){return this.state.has(n.toString())}delete(n){this.state.delete(n.toString())}clear(){this.state.clear()}}class BH extends Yf{constructor(n,e){super(n,e)}}const Lh="hermesApi";function Pce(t,n){return new Lce(t,n)}class Lce{createAggregateCommandHandler;aggregateType;aggregateFactoryArchive=Y.resolve(Fy);aggregateRepositoryArchive=Y.resolve(Py);domainEventPublisher=Y.resolve(xt);commandType;constructor(n,e){this.createAggregateCommandHandler=n,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}handleCommand(n){const e=n.getAggregateId();this.aggregateFactoryArchive.get(this.aggregateType).ifPresent(r=>{const o=r.create(e),s=o.getType(),c=new(o.createEvent())(e,s);o.addEvent(c),this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(u=>{u.save(o),this.domainEventPublisher.publishFromAggregate(o)})})}forCommand(n){return this.commandType===n.getMessageType()}createCommandInstance(){const n=[],e=this.createAggregateCommandHandler.forCommand().constructor.length;if(n.fill(void 0,0,e),0===n.length)return new(this.createAggregateCommandHandler.forCommand());if(1===n.length)return new(this.createAggregateCommandHandler.forCommand())(n[0]);if(2===n.length)return new(this.createAggregateCommandHandler.forCommand())(n[0],n[1]);if(3===n.length)return new(this.createAggregateCommandHandler.forCommand())(n[0],n[1],n[2]);if(4===n.length)return new(this.createAggregateCommandHandler.forCommand())(n[0],n[1],n[2],n[3]);if(5===n.length)return new(this.createAggregateCommandHandler.forCommand())(n[0],n[1],n[2],n[3],n[4]);throw new Error("CreateAggregateCommandHandlerImpl constructor out of arguments")}}function Bce(t,n){return new Vce(t,n)}class Vce{commandHandler;aggregateType;aggregateRepositoryArchive=Y.resolve(Py);domainEventPublisher=Y.resolve(xt);commandType;constructor(n,e){this.commandHandler=n,this.aggregateType=e,this.commandType=this.createCommandInstance().getMessageType()}publishDomainEvents(n,e){this.commandHandler.publish?this.commandHandler.publish(n,e):this.domainEventPublisher.publishFromAggregate(n)}handleCommand(n){const e=n.getAggregateId();this.aggregateRepositoryArchive.get(this.aggregateType).ifPresent(r=>{r.findById(e).ifPresent(s=>{this.commandHandler.handle(s,n),this.publishDomainEvents(s,n)})})}forCommand(n){return this.commandType===n.getMessageType()}createCommandInstance(){const n=[],e=this.commandHandler.forCommand().constructor.length;if(n.fill(void 0,0,e),0===n.length)return new(this.commandHandler.forCommand());if(1===n.length)return new(this.commandHandler.forCommand())(n[0]);if(2===n.length)return new(this.commandHandler.forCommand())(n[0],n[1]);if(3===n.length)return new(this.commandHandler.forCommand())(n[0],n[1],n[2]);if(4===n.length)return new(this.commandHandler.forCommand())(n[0],n[1],n[2],n[3]);if(5===n.length)return new(this.commandHandler.forCommand())(n[0],n[1],n[2],n[3],n[4]);throw new Error("CommandHandlerImpl constructor out of arguments")}}function Hce(t){return new VH(t,[t.forEvent()])}function Uce(t){return new VH(t,t.forEvents())}class VH{domainEventHandler;events;eventTypes;constructor(n,e){this.domainEventHandler=n,this.events=e,this.eventTypes=this.createDomainEventTypes()}handleEvent(n){this.domainEventHandler.handle(n)}forEvents(n){return n.some(e=>this.eventTypes.some(i=>i===e.getMessageType()))}createDomainEventTypes(){const n=[];for(const e of this.events){const i=this.createDomainEventInstance(e);n.push(i.getMessageType())}return n}createDomainEventInstance(n){const e=[];if(e.fill(void 0,0,n.constructor.length),0===e.length)return new n;if(1===e.length)return new n(e[0]);if(2===e.length)return new n(e[0],e[1]);if(3===e.length)return new n(e[0],e[1],e[2]);if(4===e.length)return new n(e[0],e[1],e[2],e[3]);if(5===e.length)return new n(e[0],e[1],e[2],e[3],e[4]);throw new Error("DomainEventHandler constructor out of arguments")}}class qr{api;domain;container=Y;initialized=!1;constructor(n,e){this.api=n,this.domain=e}init(){this.initialized||(this.defineAggregate(),this.registerApiProviders(),this.registerDomainProviders(),this.registerCommandHandlers(),this.registerEventHandlers(),this.registerMultiEventHandlers(),this.initialized=!0)}defineAggregate(){const n=this.domain.defineAggregate();n&&(this.container.provide(n.factory),this.container.provide(n.repository),this.container.provideValue(n.aggregateKey,n.aggregateKey),this.container.provideValueCollection(xH,{key:n.aggregateKey,factory:n.factory,repository:n.repository}),this.container.provide(n.createCommandHandler),this.container.provideFactoryCollection(IH,{create:Pce,deps:[n.createCommandHandler,n.aggregateKey]}))}registerApiProviders(){this.api.registerProviders(this.container)}registerDomainProviders(){this.domain.registerProviders(this.container)}registerCommandHandlers(){this.domain.registerCommandHandlers().forEach(n=>{this.container.provide(n),this.container.provideFactoryCollection(TH,{create:Bce,deps:[n,this.domain.registerKey(this.container)]})})}registerEventHandlers(){this.domain.registerDomainEventHandler().forEach(n=>{this.container.provide(n),this.container.provideFactoryCollection(jx,{create:Hce,deps:[n]})})}registerMultiEventHandlers(){this.domain.registerMultiDomainEventHandler().forEach(n=>{this.container.provide(n),this.container.provideFactoryCollection(jx,{create:Uce,deps:[n]})})}}function Qy(t,n=ri){return t=t??jce,qt((e,i)=>{let r,o=!0;e.subscribe(Mt(i,s=>{const a=n(s);(o||!t(r,a))&&(o=!1,r=a,i.next(s))}))})}function jce(t,n){return t===n}function Bh(t){return Wt((n,e)=>t<=e)}class Gce extends Ge{constructor(n,e){super()}schedule(n,e=0){return this}}const Xy={setInterval(t,n,...e){const{delegate:i}=Xy;return i?.setInterval?i.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Xy;return(n?.clearInterval||clearInterval)(t)},delegate:void 0};class zx extends Gce{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,e),this}requestAsyncId(n,e,i=0){return Xy.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&Xy.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,et(i,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}}const Wx={now:()=>(Wx.delegate||Date).now(),delegate:void 0};class Kf{constructor(n,e=Kf.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,i){return new this.schedulerActionCtor(this,n).schedule(i,e)}}Kf.now=Wx.now;class qx extends Kf{constructor(n,e=Kf.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Vh=new qx(zx),$ce=Vh;function Dr(t=0,n,e=$ce){let i=-1;return null!=n&&(sB(n)?e=n:i=n),new rt(r=>{let o=function zce(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;o<0&&(o=0);let s=0;return e.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}const Wce=["addListener","removeListener"],qce=["addEventListener","removeEventListener"],Yce=["on","off"];function en(t,n,e,i){if(ue(e)&&(i=e,e=void 0),i)return en(t,n,e).pipe(oS(i));const[r,o]=function Qce(t){return ue(t.addEventListener)&&ue(t.removeEventListener)}(t)?qce.map(s=>a=>t[s](n,a,e)):function Kce(t){return ue(t.addListener)&&ue(t.removeListener)}(t)?Wce.map(HH(t,n)):function Zce(t){return ue(t.on)&&ue(t.off)}(t)?Yce.map(HH(t,n)):[];if(!r&&iS(t))return pi(s=>en(s,n,e))(Gn(t));if(!r)throw new TypeError("Invalid event target");return new rt(s=>{const a=(...c)=>s.next(1<c.length?c:c[0]);return r(a),()=>o(a)})}function HH(t,n){return e=>i=>t[e](n,i)}class UH extends se{constructor(n=1/0,e=1/0,i=Wx){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:s}=this;e||(i.push(n),!r&&i.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let s=0;s<o.length&&!n.closed;s+=i?1:2)n.next(o[s]);return this._checkFinalizedStatuses(n),e}_trimBuffer(){const{_bufferSize:n,_timestampProvider:e,_buffer:i,_infiniteTimeWindow:r}=this,o=(r?1:2)*n;if(n<1/0&&o<i.length&&i.splice(0,i.length-o),!r){const s=e.now();let a=0;for(let c=1;c<i.length&&i[c]<=s;c+=2)a=c;a&&i.splice(0,a+1)}}}const ja=["*"],Xce=["gui-button",""],ele=["input"];function tle(t,n){if(1&t&&(w(0,"div"),U(1),E()),2&t){const e=n.$implicit;_(),ft(e)}}function nle(t,n){if(1&t){const e=he();w(0,"div",6),B("click",function(){const r=$(e).$implicit;return z(M(2).selectDate(r))}),U(1),E()}if(2&t){const e=n.$implicit,i=M(2);ae("gui-date-picker-current-day",i.isDate(i.currentDay,e))("gui-date-picker-selected-day",i.isDate(i.selectedDate,e))("gui-date-picker-selected-month",i.displayMonthDays(e.getMonth())),_(),Fe(" ",e.getDate()," ")}}function ile(t,n){if(1&t&&(w(0,"div",4),j(1,nle,2,7,"div",5),E()),2&t){const e=n.$implicit;_(),C("ngForOf",e)}}function rle(t,n){if(1&t){const e=he();w(0,"div",4),B("click",function(){const r=$(e).$implicit;return z(M(2).selectMonth(r.nr))}),U(1),E()}if(2&t){const e=n.$implicit,i=M(2);ae("gui-date-picker-current-month",i.isMonth(i.currentDay,e.nr))("gui-date-picker-selected-month",i.isMonth(i.selectedDate,e.nr)),_(),Fe(" ",e.name," ")}}function ole(t,n){if(1&t&&(w(0,"div",2),j(1,rle,2,5,"div",3),E()),2&t){const e=n.$implicit;_(),C("ngForOf",e)}}function sle(t,n){if(1&t){const e=he();w(0,"div",4),B("click",function(){const r=$(e).$implicit;return z(M(2).selectYear(r))}),U(1),E()}if(2&t){const e=n.$implicit,i=M(2);ae("gui-date-picker-current-year",i.isYear(i.currentDay,e))("gui-date-picker-selected-year",i.isYear(i.selectedDate,e)),_(),Fe(" ",e," ")}}function ale(t,n){if(1&t&&(w(0,"div",2),j(1,sle,2,5,"div",3),E()),2&t){const e=n.$implicit;_(),C("ngForOf",e)}}const cle=["gui-input",""];function lle(t,n){if(1&t){const e=he();w(0,"div",4)(1,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("hours",r.steps))}),E(),L(2,"input",6),w(3,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("hours",-r.steps))}),E()()}if(2&t){const e=M();_(),C("direction",e.Direction.TOP),_(2),C("direction",e.Direction.BOTTOM)}}function ule(t,n){if(1&t){const e=he();w(0,"div",4)(1,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("minutes",r.steps))}),E(),L(2,"input",7),w(3,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("minutes",-r.steps))}),E()()}if(2&t){const e=M();_(),C("direction",e.Direction.TOP),_(2),C("direction",e.Direction.BOTTOM)}}function dle(t,n){if(1&t){const e=he();w(0,"div",4)(1,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("seconds",r.steps))}),E(),L(2,"input",8),w(3,"gui-arrow-icon",5),B("click",function(){$(e);const r=M();return z(r.changeTimeItem("seconds",-r.steps))}),E()()}if(2&t){const e=M();_(),C("direction",e.Direction.TOP),_(2),C("direction",e.Direction.BOTTOM)}}function hle(t,n){if(1&t&&L(0,"gui-date-picker-days-view",7),2&t){const e=M(2);C("activeMonth",e.activeMonth)("selectedDate",e.selectedDate)("weeks",e.weeks)}}function gle(t,n){if(1&t&&L(0,"gui-date-picker-months-view",8),2&t){const e=M(2);C("activeYear",e.activeYear)("selectedDate",e.selectedDate)}}function ple(t,n){if(1&t&&L(0,"gui-date-picker-years-view",9),2&t){const e=M(2);C("selectedDate",e.selectedDate)("years",e.years)}}function fle(t,n){if(1&t&&(Qe(0),L(1,"gui-date-picker-view-panel",2),Qe(2,3),j(3,hle,1,3,"gui-date-picker-days-view",4)(4,gle,1,2,"gui-date-picker-months-view",5)(5,ple,1,2,"gui-date-picker-years-view",6),nt()()),2&t){const e=M();_(),C("activeMonth",e.activeMonth)("activeYear",e.activeYear)("fabricCalendarView",e.fabricCalendarView)("selectedDate",e.selectedDate)("years",e.years),_(),C("ngSwitch",e.getCalendarView()),_(),C("ngSwitchCase",e.FabricCalendarView.DAYS),_(),C("ngSwitchCase",e.FabricCalendarView.MONTHS),_(),C("ngSwitchCase",e.FabricCalendarView.YEARS)}}function mle(t,n){if(1&t&&L(0,"gui-time-picker",10),2&t){const e=M();C("datePickerComposition",e.datePickerComposition)("selectedDate",e.selectedDate)}}const Zf=["container"];function ble(t,n){}const vle=["datePicker"];function _le(t,n){}const yle=["dropdownMenu"];function wle(t,n){if(1&t&&(w(0,"div"),L(1,"gui-arrow-icon",6),E()),2&t){const e=M();ae("gui-dropdown-arrow",e.isArrowEnabled),_(),C("direction",e.arrowDirection)}}function Cle(t,n){}const Dle=["guiNotification"];function Ele(t,n){if(1&t){const e=he();w(0,"gui-notification",1),B("onNotificationClose",function(r){return $(e),z(M().emitClosedNotification(r))}),E()}2&t&&C("notification",n.$implicit)}function Sle(t,n){if(1&t){const e=he();w(0,"gui-notifications-container",1),B("onNotificationClose",function(r){return $(e),z(M().removeNotification(r))}),E()}if(2&t){const e=M();C("notifications",e.notificationsTopRight)("position",e.FabricNotificationPosition.TOP_RIGHT)}}function xle(t,n){if(1&t){const e=he();w(0,"gui-notifications-container",1),B("onNotificationClose",function(r){return $(e),z(M().removeNotification(r))}),E()}if(2&t){const e=M();C("notifications",e.notificationsTopLeft)("position",e.FabricNotificationPosition.TOP_LEFT)}}function Ile(t,n){if(1&t){const e=he();w(0,"gui-notifications-container",1),B("onNotificationClose",function(r){return $(e),z(M().removeNotification(r))}),E()}if(2&t){const e=M();C("notifications",e.notificationsBottomRight)("position",e.FabricNotificationPosition.BOTTOM_RIGHT)}}function Tle(t,n){if(1&t){const e=he();w(0,"gui-notifications-container",1),B("onNotificationClose",function(r){return $(e),z(M().removeNotification(r))}),E()}if(2&t){const e=M();C("notifications",e.notificationsBottomLeft)("position",e.FabricNotificationPosition.BOTTOM_LEFT)}}const Mle=["svgEl"],kle=["tab"],Ale=["tabItem"],Rle=["tabMenuList"];function Nle(t,n){if(1&t){const e=he();w(0,"div",8),B("click",function(){return $(e),z(M().scrollTabList(!1))}),L(1,"gui-arrow-icon",9),E()}if(2&t){const e=M();_(),C("direction",e.Direction.LEFT)}}function Ole(t,n){if(1&t&&(w(0,"span"),U(1),E()),2&t){const e=M().$implicit;_(),ft(e)}}function Fle(t,n){if(1&t&&(Qe(0),L(1,"gui-svg-template",12),nt()),2&t){const e=M().$implicit;_(),C("svg",e.svg)}}function Ple(t,n){if(1&t){const e=he();w(0,"div",10,2),B("click",function(){const r=$(e).$implicit;return z(M().toggleTab(r))}),j(2,Ole,2,1,"span",11)(3,Fle,2,1,"ng-container",11),E()}if(2&t){const e=n.$implicit,i=M();st("data-tab",i.getTabName(e)),_(2),C("ngIf",!i.isSvg(e)),_(),C("ngIf",i.isSvg(e))}}function Lle(t,n){if(1&t){const e=he();w(0,"div",8),B("click",function(){return $(e),z(M().scrollTabList(!0))}),L(1,"gui-arrow-icon"),E()}}const Ble=["optionList"];function Vle(t,n){if(1&t){const e=he();w(0,"div",3),B("click",function(){const r=$(e).$implicit;return z(M().selectOption(r))}),U(1),E()}if(2&t){const e=n.$implicit,i=M();Ut("width",i.width,"px"),ae("gui-option-selected",i.isOptionSelected(e)),_(),Fe(" ",i.getOptionValue(e)," ")}}var Rt=function(t){return t.FABRIC="FABRIC",t.MATERIAL="MATERIAL",t.GENERIC="GENERIC",t.LIGHT="LIGHT",t.DARK="DARK",t}(Rt||{});let jH=(()=>{class t{elementRef;renderer;static PRIMARY_CLASS_NAME="gui-primary";static SECONDARY_CLASS_NAME="gui-secondary";static OUTLINE_CLASS_NAME="gui-outline";primary=!1;secondary=!1;outline=!1;constructor(e,i){this.elementRef=e,this.renderer=i}ngOnChanges(e){e.primary&&(this.primary?this.addClass(t.PRIMARY_CLASS_NAME):this.removeClass(t.PRIMARY_CLASS_NAME)),e.secondary&&(this.secondary?this.addClass(t.SECONDARY_CLASS_NAME):this.removeClass(t.SECONDARY_CLASS_NAME)),e.outline&&(this.outline?this.addClass(t.OUTLINE_CLASS_NAME):this.removeClass(t.OUTLINE_CLASS_NAME))}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275dir=N({type:t,inputs:{primary:"primary",secondary:"secondary",outline:"outline"},features:[we]})}return t})(),Jy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),Ga=(()=>{class t extends jH{link=!1;text=!1;constructor(e,i){super(e,i)}ngOnChanges(e){super.ngOnChanges(e),e.link&&(this.link?this.addClass("gui-link"):this.removeClass("gui-link")),e.text&&(this.text?this.addClass("gui-text"):this.removeClass("gui-text"))}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["button","gui-button",""],["a","gui-button",""]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-button",!0)},inputs:{link:"link",text:"text"},features:[O,we],attrs:Xce,ngContentSelectors:ja,decls:1,vars:0,template:function(i,r){1&i&&(jn(),an(0))},styles:[".gui-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-align:start;align-items:flex-start;background:#e6e6e6;border-radius:4px;border-style:none;box-sizing:border-box;color:#595959;cursor:pointer;display:inline-block;font-family:Arial;font-size:13.3333px;letter-spacing:normal;outline:none;padding:10px 20px;text-align:center;text-indent:0;text-rendering:auto;text-shadow:none;text-transform:none;transition:background .2s;word-spacing:normal;-ms-writing-mode:lr-tb!important;writing-mode:horizontal-tb!important}.gui-button.gui-outline:focus{box-shadow:0 0 0 2px #d6d6d6}.gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #439de1}.gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #5ac88b}.gui-button.gui-primary{background:#2185d0;color:#fff}.gui-button.gui-primary.gui-outline{color:#2185d0}.gui-button.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-button.gui-primary:active{background:#1a69a4;color:#fff}.gui-button.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-button.gui-primary.gui-badge{background:#439de1}.gui-button.gui-secondary{background:#3cb371;color:#fff}.gui-button.gui-secondary.gui-outline{color:#3cb371}.gui-button.gui-secondary.gui-button:hover{background:#36a065}.gui-button.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-button.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-button.gui-secondary.gui-badge{background:#5ac88b}.gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-button.gui-link:focus{text-decoration:underline}.gui-button.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-button.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-button.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-button.gui-outline.gui-badge{background:#fff}.gui-button.gui-outline.gui-primary{border-color:#439de1}.gui-button.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-button.gui-outline.gui-secondary{border-color:#5ac88b}.gui-button.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}.gui-button.gui-text{background:transparent;border:0}.gui-button.gui-text:hover{background:#e6e6e6}.gui-button.gui-text:focus{background:#e6e6e6}.gui-button.gui-text.gui-primary{color:#2185d0}.gui-button.gui-text.gui-primary:hover{background:#2185d0;color:#fff}.gui-button.gui-text.gui-primary:focus{background:#2185d0;color:#fff}.gui-button.gui-text.gui-secondary{color:#3cb371}.gui-button.gui-text.gui-secondary:hover{background:#3cb371;color:#fff}.gui-button.gui-text.gui-secondary:focus{background:#3cb371;color:#fff}.gui-button.gui-text.gui-button:disabled{background:transparent}.gui-button.gui-text.gui-button:disabled .gui-text-disabled{display:inline-block}.gui-button:hover{background:#cccccc;color:#333}.gui-button:active{background:#999;color:#333}.gui-button:disabled{color:#ccc;cursor:default;pointer-events:none}\n",".gui-dark .gui-button{background:#424242;color:#bdbdbd}.gui-dark .gui-button.gui-outline:focus{box-shadow:0 0 0 2px #616161}.gui-dark .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 2px #ce93d8}.gui-dark .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 2px #80cbc4}.gui-dark .gui-button.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-button.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-button.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-button.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-button.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-button.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-button.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-button.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-button.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-button.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-button.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-button.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-dark .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-dark .gui-button.gui-link:focus{text-decoration:underline}.gui-dark .gui-button.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-button.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-button.gui-outline.gui-badge{background:#121212}.gui-dark .gui-button.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-button.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-button.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-button.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}.gui-dark .gui-button:hover{background:#616161}.gui-dark .gui-button:active{background:#212121}.gui-dark .gui-button:disabled{opacity:.36}\n",".gui-light .gui-button{background:#f6f5f4;border-color:#d8d7d6;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-button.gui-link{background:transparent;border:0;color:#2185d0}.gui-light .gui-button.gui-link:hover{background:none;color:#1e77ba;text-decoration:underline}.gui-light .gui-button.gui-link:focus{text-decoration:underline}.gui-light .gui-button:hover{background:#ecebeb}.gui-light .gui-button:active{background:#f6f5f4}.gui-light .gui-button:disabled{opacity:.5}\n",".gui-material .gui-button{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-button.gui-outline:focus{box-shadow:0 0 0 1px #5262c5}.gui-material .gui-button.gui-outline.gui-primary:focus{box-shadow:0 0 0 1px #6200ee}.gui-material .gui-button.gui-outline.gui-secondary:focus{box-shadow:0 0 0 1px #0097a7}.gui-material .gui-button.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-button.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-button.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-button.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-button.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-button.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-button.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-button.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-button.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-button.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-button.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-button.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-button.gui-link{background:transparent;border:0;color:#3949ab}.gui-material .gui-button.gui-link:hover{color:#4051bf}.gui-material .gui-button.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-button.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-button.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-button.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-button.gui-outline.gui-badge{background:#fff}.gui-material .gui-button.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-button.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-button.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-button.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-button.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}.gui-material .gui-button:hover{background:#5262c5}.gui-material .gui-button:active{background:#4051bf}.gui-material .gui-button:disabled{background:#c5cae9;color:#7885d2}\n"],encapsulation:2,changeDetection:0})}return t})(),as=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),Hle=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-button-group"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-button-group",!0)},ngContentSelectors:ja,decls:1,vars:0,template:function(i,r){1&i&&(jn(),an(0))},styles:[".gui-button-group{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-button-group .gui-button{border-radius:0}.gui-button-group .gui-button:not(:last-child){border-right:none;margin:0}.gui-button-group .gui-button:last-child{border-radius:0 4px 4px 0}.gui-button-group .gui-button:first-child{border-radius:4px 0 0 4px}.gui-button-group .gui-button-toggle .gui-button{border-radius:0}.gui-button-group .gui-button-toggle:not(:last-child) .gui-button{border-right:none;margin:0}.gui-button-group .gui-button-toggle:last-child .gui-button{border-radius:0 4px 4px 0}.gui-button-group .gui-button-toggle:first-child .gui-button{border-radius:4px 0 0 4px}\n"],encapsulation:2,changeDetection:0})}return t})(),e0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),GH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),vu=(()=>{class t{elementRef;renderer;inputRef;name="";inputChecked=!1;disabled=!1;readonly=!1;indeterminate=!1;changed=new X;checked=!1;constructor(e,i){this.elementRef=e,this.renderer=i}ngOnChanges(e){this.checked=this.inputChecked,e.disabled&&(this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")),e.readonly&&(this.readonly?this.renderer.addClass(this.elementRef.nativeElement,"gui-readonly"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-readonly")),e.indeterminate&&this.inputRef&&(this.indeterminate?this.inputRef.nativeElement.indeterminate=!0:(this.inputRef.nativeElement.indeterminate=!1,this.inputRef.nativeElement.checked=this.checked))}ngAfterViewInit(){this.inputRef&&(this.inputRef.nativeElement.indeterminate=this.indeterminate)}check(e){e.stopPropagation(),this.checked=!this.checked,this.changed.emit(this.checked)}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["gui-checkbox"]],viewQuery:function(i,r){if(1&i&&pe(ele,5,F),2&i){let o;te(o=ne())&&(r.inputRef=o.first)}},hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-checkbox",!0)},inputs:{name:"name",inputChecked:[ee.None,"checked","inputChecked"],disabled:"disabled",readonly:"readonly",indeterminate:"indeterminate"},outputs:{changed:"changed"},features:[we],ngContentSelectors:ja,decls:5,vars:3,consts:[["input",""],["type","checkbox",3,"click","checked","disabled"],[1,"gui-checkmark"]],template:function(i,r){if(1&i){const o=he();jn(),w(0,"label")(1,"input",1,0),B("click",function(a){return $(o),z(r.check(a))}),E(),L(3,"span",2),an(4),E()}2&i&&(_(),C("checked",r.checked)("disabled",r.disabled),st("name",r.name))},styles:['.gui-checkbox{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:24px;padding-left:32px;position:relative}.gui-checkbox label{cursor:pointer}.gui-checkbox label:hover .gui-checkmark{border-color:#999}.gui-checkbox input{height:0;opacity:0;position:absolute;width:0}.gui-checkbox .gui-checkmark{border-color:#575757;border-radius:4px;border-style:solid;border-width:2px;box-sizing:content-box;height:20px;left:0;position:absolute;width:20px}.gui-checkbox input:checked+.gui-checkmark{border-color:#575757}.gui-checkbox.gui-disabled.gui-checkbox{color:#ccc;pointer-events:none}.gui-checkbox.gui-readonly.gui-checkbox{pointer-events:none}.gui-checkbox .gui-checkmark:after{content:" ";display:none;left:6px;position:absolute;-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-checkbox input:checked+.gui-checkmark:after{box-sizing:content-box;display:block}.gui-checkbox .gui-checkmark:after{border-color:#575757;border-style:solid;border-width:0 3.2px 3.2px 0;height:12px;width:5.2px}.gui-checkbox input:indeterminate+.gui-checkmark:after{display:block;height:10px;left:9px;top:4px;-ms-transform:rotate(90deg);transform:rotate(90deg);width:0}\n',".gui-material .gui-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.gui-material .gui-checkbox input:focus+.gui-checkmark{border-color:#3949ab}.gui-material .gui-checkbox label:hover .gui-checkmark{border-color:#575757}.gui-material .gui-checkbox .gui-checkmark{border-color:#999}.gui-material .gui-checkbox input:checked+.gui-checkmark{background:#3949ab;border-color:#3949ab}.gui-material .gui-checkbox .gui-checkmark:after{border-color:#fff}.gui-material .gui-checkbox.gui-indeterminate .gui-checkmark{background:#3949ab;border-color:#3949ab}\n",".gui-dark .gui-checkbox{color:#bdbdbd}.gui-dark .gui-checkbox .gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox input:checked+.gui-checkmark{border-color:#878787}.gui-dark .gui-checkbox .gui-checkmark:after{border-color:#878787}.gui-dark .gui-checkbox.gui-disabled.gui-checkbox{opacity:.36}\n"],encapsulation:2,changeDetection:0})}return t})(),Qc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),$H=(()=>{class t extends jH{constructor(e,i){super(e,i)}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["gui-chip"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-chip",!0)},features:[O],ngContentSelectors:ja,decls:1,vars:0,template:function(i,r){1&i&&(jn(),an(0))},styles:[".gui-chip{background:#e6e6e6;border-radius:4px;box-sizing:border-box;color:#595959;display:inline-block;font-family:Arial;font-size:14px;font-weight:700;margin:0 2px;padding:9.6px 12px}.gui-chip.gui-primary{background:#2185d0;color:#fff}.gui-chip.gui-primary.gui-outline{color:#2185d0}.gui-chip.gui-primary:hover:not(.gui-chip,.gui-badge){background:#1e77ba}.gui-chip.gui-primary:active{background:#1a69a4;color:#fff}.gui-chip.gui-primary:disabled{background:#6fb4e8;color:#439de1}.gui-chip.gui-primary.gui-badge{background:#439de1}.gui-chip.gui-secondary{background:#3cb371;color:#fff}.gui-chip.gui-secondary.gui-outline{color:#3cb371}.gui-chip.gui-secondary.gui-button:hover{background:#36a065}.gui-chip.gui-secondary.gui-button:active{background:#32945e;color:#fff}.gui-chip.gui-secondary.gui-button:disabled{background:#80d5a6;color:#5ac88b}.gui-chip.gui-secondary.gui-badge{background:#5ac88b}.gui-chip.gui-outline{background:transparent;color:#999;border-color:#d6d6d6;border-style:solid;border-width:1px}.gui-chip.gui-outline.gui-button:hover{background:#cccccc;color:#fff}.gui-chip.gui-outline.gui-button:disabled{border-color:#ccc;color:#ccc}.gui-chip.gui-outline.gui-badge{background:#fff}.gui-chip.gui-outline.gui-primary{border-color:#439de1}.gui-chip.gui-outline.gui-primary.gui-button:hover{background:#2185d0;border-color:#2185d0}.gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#6fb4e8;color:#6fb4e8}.gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#439de1;color:#439de1}.gui-chip.gui-outline.gui-secondary{border-color:#5ac88b}.gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#3cb371;border-color:#3cb371}.gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#80d5a6;color:#80d5a6}.gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#5ac88b;color:#5ac88b}\n",".gui-material .gui-chip{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500;padding:10px 16px}.gui-material .gui-chip.gui-primary{background:#6200ee;color:#fff}.gui-material .gui-chip.gui-primary.gui-outline{color:#6200ee}.gui-material .gui-chip.gui-primary.gui-button:hover{background:#974dff}.gui-material .gui-chip.gui-primary.gui-button:active{background:#791aff;color:#fff}.gui-material .gui-chip.gui-primary.gui-button:disabled{background:#d1c4e9;color:#7d22ff}.gui-material .gui-chip.gui-primary.gui-badge{background:#6200ee}.gui-material .gui-chip.gui-secondary{background:#0097a7;color:#fff}.gui-material .gui-chip.gui-secondary.gui-outline{color:#0097a7}.gui-material .gui-chip.gui-secondary.gui-button:hover{background:#00a1b3}.gui-material .gui-chip.gui-secondary.gui-button:active{background:#00808e;color:#fff}.gui-material .gui-chip.gui-secondary.gui-button:disabled{background:#b2ebf2;color:#00c5da}.gui-material .gui-chip.gui-secondary.gui-badge{background:#0097a7}.gui-material .gui-chip.gui-outline{background:transparent;color:#3949ab;border-color:#5262c5}.gui-material .gui-chip.gui-outline.gui-button:hover{background:#e8eaf6;color:#3949ab}.gui-material .gui-chip.gui-outline.gui-button:active{background:#c5cae9}.gui-material .gui-chip.gui-outline.gui-button:disabled{border-color:#c5cae9;color:#c5cae9}.gui-material .gui-chip.gui-outline.gui-badge{background:#fff}.gui-material .gui-chip.gui-outline.gui-primary{border-color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ede7f6;border-color:#6200ee;color:#6200ee}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:active{background:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#d1c4e9;color:#d1c4e9}.gui-material .gui-chip.gui-outline.gui-primary.gui-badge{background:#fff;border-color:#6200ee;color:#7d22ff}.gui-material .gui-chip.gui-outline.gui-secondary{border-color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#e0f7fa;border-color:#0097a7;color:#0097a7}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:active{background:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-material .gui-chip.gui-outline.gui-secondary.gui-badge{background:#fff;border-color:#0097a7;color:#0097a7}\n",".gui-dark .gui-chip{background:#333;color:#bdbdbd}.gui-dark .gui-chip.gui-primary{background:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-primary.gui-outline{color:#ce93d8}.gui-dark .gui-chip.gui-primary.gui-button:hover{background:#c680d1}.gui-dark .gui-chip.gui-primary.gui-button:active{background:#b55bc4;color:#212121}.gui-dark .gui-chip.gui-primary.gui-button:disabled{background:#ce93d8;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-primary.gui-badge{background:#dfb8e6}.gui-dark .gui-chip.gui-secondary{background:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-outline{color:#80cbc4}.gui-dark .gui-chip.gui-secondary.gui-button:hover{background:#6ec4bc}.gui-dark .gui-chip.gui-secondary.gui-button:active{background:#26a69a;color:#212121}.gui-dark .gui-chip.gui-secondary.gui-button:disabled{background:#80cbc4;color:#212121;opacity:.5}.gui-dark .gui-chip.gui-secondary.gui-badge{background:#a4dad5}.gui-dark .gui-chip.gui-outline{background:transparent;color:#bdbdbd;border-color:#616161;border-style:solid;border-width:1px}.gui-dark .gui-chip.gui-outline.gui-button:hover{background:#616161;color:#bdbdbd}.gui-dark .gui-chip.gui-outline.gui-badge{background:#121212}.gui-dark .gui-chip.gui-outline.gui-primary{border-color:#ce93d8}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:hover{background:#ce93d8;border-color:#ce93d8;color:#212121}.gui-dark .gui-chip.gui-outline.gui-primary.gui-button:disabled{background:transparent;border-color:#f0def3;color:#f0def3}.gui-dark .gui-chip.gui-outline.gui-primary.gui-badge{background:#121212;border-color:#ce93d8;color:#dfb8e6}.gui-dark .gui-chip.gui-outline.gui-secondary{border-color:#80cbc4}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:hover{background:#80cbc4;border-color:#80cbc4;color:#212121}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-button:disabled{background:transparent;border-color:#b2ebf2;color:#b2ebf2}.gui-dark .gui-chip.gui-outline.gui-secondary.gui-badge{background:#121212;border-color:#80cbc4;color:#80cbc4}\n",".gui-light .gui-chip{background:#f6f5f4;border-color:#333;border-style:solid;border-width:1px;color:#333}\n"],encapsulation:2,changeDetection:0})}return t})(),_u=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),$a=(()=>{class t{unsubscribe$=new se;constructor(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.unsubscribe$.isStopped||(this.unsubscribe$.next(),this.unsubscribe$.complete())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=N({type:t})}return t})();var Di=function(t){return t[t.DAYS=0]="DAYS",t[t.MONTHS=1]="MONTHS",t[t.YEARS=2]="YEARS",t}(Di||{}),Ei=function(t){return t[t.NONE=0]="NONE",t[t.DATE_PICKER=1]="DATE_PICKER",t[t.TIME_PICKER=2]="TIME_PICKER",t[t.TIME_PICKER_HOURS=4]="TIME_PICKER_HOURS",t[t.TIME_PICKER_MINUTES=8]="TIME_PICKER_MINUTES",t[t.TIME_PICKER_SECONDS=16]="TIME_PICKER_SECONDS",t[t.TIME_PICKER_MERIDIAN=32]="TIME_PICKER_MERIDIAN",t[t.ALL=63]="ALL",t}(Ei||{});const Yx=(new Date).getMonth(),Kx=(new Date).getFullYear();let Qf=(()=>{class t{selectedDate=new Date;selectedTime;selectedDate$=new dt(this.selectedDate);observeSelectedDate(){return this.selectedDate$.asObservable()}dateSelected(e){this.selectedDate=new Date(e.getTime()),this.setSelectedDateTime(),this.selectedDate$.next(this.selectedDate)}changeTime(e,i){this.selectedTime=e,this.selectedDate||(this.selectedDate=i),this.setSelectedDateTime()}next(){this.dateSelected(this.selectedDate)}setSelectedDateTime(){this.selectedTime&&(this.selectedDate.setHours(this.selectedTime.hours),this.selectedDate.setMinutes(this.selectedTime.minutes),this.selectedDate.setSeconds(this.selectedTime.seconds))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Zx=(()=>{class t{datePickerFormat$=new dt(Ei.DATE_PICKER);onComposition(){return this.datePickerFormat$.asObservable()}next(e){this.datePickerFormat$.next(this.getComposition(e))}getComposition(e){const a=e.split(":").join(" ").split("/").join(" ").split(".").join(" ").split(",").join(" ").split(" ");let c=Ei.NONE;return a.forEach(l=>{const u=l.toLowerCase().includes("d"),h=l.includes("M"),f=l.toLowerCase().includes("y"),v=l.toLowerCase().includes("h"),y=l.includes("m"),D=l.toLowerCase().includes("s"),S=l.includes("h");(u||h||f)&&(c|=Ei.DATE_PICKER),(v||y||D)&&(c|=Ei.TIME_PICKER),S&&(c|=Ei.TIME_PICKER_MERIDIAN),v&&(c|=Ei.TIME_PICKER_HOURS),y&&(c|=Ei.TIME_PICKER_MINUTES),D&&(c|=Ei.TIME_PICKER_SECONDS)}),c}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),zH=(()=>{class t{weeks=[];getDaysInMonths(e,i){this.resetWeeks();const r=new Date(e,i+1,0).getDate();for(let o=1;o<=r;o++)this.createWeeks(new Date(e,i,o));return this.weeks}createWeeks(e){const i=e.getDate();for(let o=0;o<6;o++)1===i?this.addDaysToWeek(o,e):this.canAddDaysToWeek(o,i)&&this.addDaysToWeek(o,this.getLastDayDate(this.weeks[o-1]));this.weeks=[this.weeks[0],this.weeks[1],this.weeks[2],this.weeks[3],this.weeks[4],this.weeks[5]]}addDaysToWeek(e,i){const r=this.weeks[e];for(let o=1;o<=7;o++){let a;a=0===i.getDay()&&0===this.weeks[0].length?i.getDate()-6:i.getDate()-i.getDay()+o;const c=new Date(i.setDate(a));r.length<7&&r.push(c)}}getLastDayNumber(e){return 7===e.length?e[e.length-1].getDate():0}getLastDayDate(e){const i=e[e.length-1].getDate();return new Date(e[e.length-1].setDate(i))}canAddDaysToWeek(e,i){return 0===this.weeks[e].length&&7===this.weeks[e-1].length&&i>this.getLastDayNumber(this.weeks[e-1])}resetWeeks(){this.weeks=[],this.weeks[0]=[],this.weeks[1]=[],this.weeks[2]=[],this.weeks[3]=[],this.weeks[4]=[],this.weeks[5]=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Qx=(()=>{class t{rowsForDisplay=[];minYear=0;maxYear=0;selectedYear=0;inc=10;getYears(e){this.minYear=e-50,this.maxYear=e+50;let r=[],o=[];return r=this.createYearsPool(this.minYear,this.maxYear-this.minYear,r),o=this.divideYearsPool(r,o),this.rowsForDisplay=this.createRowsForDisplay(o,e)}prevYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear>this.minYear&&(this.selectedYear-=this.inc),this.selectedYear>this.minYear?this.getYears(this.selectedYear):this.rowsForDisplay}nextYearRange(e){return this.selectedYear||(this.selectedYear=e),this.selectedYear<this.maxYear&&(this.selectedYear+=this.inc),this.selectedYear<this.maxYear?this.getYears(this.selectedYear):this.rowsForDisplay}createYearsPool(e,i,r){for(let o=0;o<=i;o++)r.push(e+o);return r}divideYearsPool(e,i){for(let r=0;r<e.length;r+=5)i.push(e.slice(r,r+5));return i}createRowsForDisplay(e,i){if(i>=this.minYear||i<=this.maxYear)for(let r=0;r<e.length;r++)if(e[r].indexOf(i)>-1)return e[r-1]?e[r-2]?e[r+1]?e[r+2]?this.rowsForDisplay=[e[r-2],e[r-1],e[r],e[r+1],e[r+2]]:[e[r-3],e[r-2],e[r-1],e[r],e[r+1]]:[e[r-4],e[r-3],e[r-2],e[r-1],e[r]]:[e[r-1],e[r],e[r+1],e[r+2],e[r+3]]:[e[r],e[r+1],e[r+2],e[r+3],e[r+4]];return[[]]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Xx=(()=>{class t{years$=new se;onYears(){return this.years$.asObservable()}next(e){this.years$.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Xf=(()=>{class t{activeMonth$=new se;activeYear$=new se;onActiveMonth(){return this.activeMonth$.asObservable()}onActiveYear(){return this.activeYear$.asObservable()}nextMonth(e,i){11===i?(this.activeYear$.next(e+1),this.selectMonth(0)):this.selectMonth(i+1)}prevMonth(e,i){0===i?(this.activeYear$.next(e-1),this.selectMonth(11)):this.selectMonth(i-1)}selectYear(e){this.activeYear$.next(e)}selectMonth(e){this.activeMonth$.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Jf=(()=>{class t{activeView$=new se;onActiveView(){return this.activeView$.asObservable()}switchView(e){this.activeView$.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const Ule=["Mo","Tu","We","Th","Fr","Sa","Su"];class Jx{static areDatesSame(n,e){return n&&e&&n.getDate()===e.getDate()&&n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear()}static isMonth(n,e,i){return n.getMonth()===e&&n.getFullYear()===i}}let jle=(()=>{class t{datePickerService;selectedDate;activeMonth=Yx;weeks=[];daysOfTheWeek=Ule;currentDay=new Date;constructor(e){this.datePickerService=e}selectDate(e){this.datePickerService.dateSelected(e)}isDate(e,i){return Jx.areDatesSame(e,i)}displayMonthDays(e){return e===this.activeMonth}static \u0275fac=function(i){return new(i||t)(g(Qf))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-days-view"]],inputs:{selectedDate:"selectedDate",activeMonth:"activeMonth",weeks:"weeks"},decls:4,vars:2,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6"],[1,"gui-display-grid","gui-grid-cols-7","gui-py-4","gui-date-picker-header"],[4,"ngFor","ngForOf"],["class","gui-display-grid gui-grid-cols-7",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-7"],["class","gui-date-picker-cell gui-date-picker-day",3,"gui-date-picker-current-day","gui-date-picker-selected-day","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-day",3,"click"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1),j(2,tle,2,1,"div",2),E(),j(3,ile,2,1,"div",3),E()),2&i&&(_(2),C("ngForOf",r.daysOfTheWeek),_(),C("ngForOf",r.weeks))},dependencies:[hi],encapsulation:2,changeDetection:0})}return t})();const Gle=[[{nr:0,name:"Jan"},{nr:1,name:"Feb"},{nr:2,name:"Mar"}],[{nr:3,name:"Apr"},{nr:4,name:"May"},{nr:5,name:"Jun"}],[{nr:6,name:"Jul"},{nr:7,name:"Aug"},{nr:8,name:"Sep"}],[{nr:9,name:"Oct"},{nr:10,name:"Nov"},{nr:11,name:"Dec"}]];let $le=(()=>{class t{calendarService;calendarViewService;selectedDate;activeYear=Kx;currentDay=new Date;monthsPerQuarters=Gle;constructor(e,i){this.calendarService=e,this.calendarViewService=i}isMonth(e,i){return Jx.isMonth(e,i,this.activeYear)}selectMonth(e){this.calendarService.selectMonth(e),this.calendarViewService.switchView(Di.DAYS)}static \u0275fac=function(i){return new(i||t)(g(Xf),g(Jf))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-months-view"]],inputs:{selectedDate:"selectedDate",activeYear:"activeYear"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-3",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-3"],["class","gui-date-picker-cell gui-date-picker-month",3,"gui-date-picker-current-month","gui-date-picker-selected-month","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-month",3,"click"]],template:function(i,r){1&i&&(w(0,"div",0),j(1,ole,2,1,"div",1),E()),2&i&&(_(),C("ngForOf",r.monthsPerQuarters))},dependencies:[hi],encapsulation:2,changeDetection:0})}return t})(),zle=(()=>{class t{calendarService;calendarViewService;selectedDate;years=[];currentDay=new Date;constructor(e,i){this.calendarService=e,this.calendarViewService=i}selectYear(e){this.calendarService.selectYear(e),this.calendarViewService.switchView(Di.MONTHS)}isYear(e,i){return!!e&&e.getFullYear()===i}static \u0275fac=function(i){return new(i||t)(g(Xf),g(Jf))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-years-view"]],inputs:{selectedDate:"selectedDate",years:"years"},decls:2,vars:1,consts:[[1,"gui-display-grid","gui-grid-rows-gap-8","gui-py-6","gui-date-picker-view-border-top"],["class","gui-display-grid gui-grid-cols-5",4,"ngFor","ngForOf"],[1,"gui-display-grid","gui-grid-cols-5"],["class","gui-date-picker-cell gui-date-picker-year",3,"gui-date-picker-current-year","gui-date-picker-selected-year","click",4,"ngFor","ngForOf"],[1,"gui-date-picker-cell","gui-date-picker-year",3,"click"]],template:function(i,r){1&i&&(w(0,"div",0),j(1,ale,2,1,"div",1),E()),2&i&&(_(),C("ngForOf",r.years))},dependencies:[hi],encapsulation:2,changeDetection:0})}return t})();var eI=function(t){return t[t.NEXT=0]="NEXT",t[t.PREV=1]="PREV",t}(eI||{}),za=function(t){return t[t.TOP=-90]="TOP",t[t.BOTTOM=90]="BOTTOM",t[t.LEFT=180]="LEFT",t[t.RIGHT=0]="RIGHT",t}(za||{});const WH=["January","February","March","April","May","June","July","August","September","October","November","December"];let t0=(()=>{class t{direction=za.RIGHT;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-arrow-icon"]],hostVars:4,hostBindings:function(i,r){2&i&&ae("gui-arrow-icon",!0)("gui-icon",!0)},inputs:{direction:"direction"},decls:2,vars:2,consts:[["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"path",1),E()),2&i&&Ut("transform","rotate("+r.direction+"deg)")},styles:[".gui-arrow-icon{cursor:pointer}.gui-arrow-icon svg path{stroke:#aaa;transition:stroke .2s ease-in-out}.gui-arrow-icon:hover svg path{stroke:#464646}\n"],encapsulation:2,changeDetection:0})}return t})(),Wle=(()=>{class t{calendarViewService;calendarService;datePickerYearsService;datePickerYears;fabricCalendarView=Di.DAYS;selectedDate;activeMonth=Yx;activeYear=Kx;years=[];Direction=za;FabricCalendarCardView=eI;constructor(e,i,r,o){this.calendarViewService=e,this.calendarService=i,this.datePickerYearsService=r,this.datePickerYears=o}getDisplayedDate(){switch(this.fabricCalendarView){case Di.DAYS:case Di.MONTHS:return`${WH[this.activeMonth]} ${this.activeYear}`;case Di.YEARS:return`${this.getDisplayedYearRange()}`;default:return""}}switchCalendarView(){switch(this.fabricCalendarView){case Di.DAYS:this.calendarViewService.switchView(Di.YEARS);break;case Di.MONTHS:case Di.YEARS:this.calendarViewService.switchView(Di.DAYS)}}switchCard(e){const i=e===eI.NEXT,o=this.activeYear+(i?1:-1),s=i?this.datePickerYears.nextYearRange(this.activeYear):this.datePickerYears.prevYearRange(this.activeYear);switch(this.fabricCalendarView){case Di.DAYS:this.handleMonthChange(i);break;case Di.MONTHS:this.calendarService.selectYear(o);break;case Di.YEARS:this.datePickerYearsService.next(s)}}getDisplayedYearRange(){return this.years[0][0].toString()+"-"+this.years[4][this.years[4].length-1].toString()}handleMonthChange(e){e?this.calendarService.nextMonth(this.activeYear,this.activeMonth):this.calendarService.prevMonth(this.activeYear,this.activeMonth)}static \u0275fac=function(i){return new(i||t)(g(Jf),g(Xf),g(Xx),g(Qx))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-view-panel"]],inputs:{fabricCalendarView:"fabricCalendarView",selectedDate:"selectedDate",activeMonth:"activeMonth",activeYear:"activeYear",years:"years"},decls:6,vars:3,consts:[[1,"gui-date-picker-view-panel"],[1,"gui-date-picker-view-panel-date",3,"click"],[1,"gui-date-picker-arrows"],[1,"gui-date-picker-arrow",3,"click","direction"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1),B("click",function(){return r.switchCalendarView()}),U(2),E(),w(3,"div",2)(4,"gui-arrow-icon",3),B("click",function(){return r.switchCard(r.FabricCalendarCardView.PREV)}),E(),w(5,"gui-arrow-icon",3),B("click",function(){return r.switchCard(r.FabricCalendarCardView.NEXT)}),E()()()),2&i&&(_(2),Fe(" ",r.getDisplayedDate()," "),_(2),C("direction",r.Direction.LEFT),_(),C("direction",r.Direction.RIGHT))},dependencies:[t0],encapsulation:2,changeDetection:0})}return t})();class qle{hours;minutes;seconds;constructor(n,e,i){this.hours=n,this.minutes=e,this.seconds=i}}let tI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["input","gui-input",""]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-input",!0)},attrs:cle,decls:0,vars:0,template:function(i,r){},styles:[".gui-input{background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;color:#333;font:14px Arial;margin:0;max-width:100%;outline:0;padding:8px 12px;text-align:left;transition:border-color .3s ease-in-out}.gui-input:hover{border-color:#999}.gui-input:focus{border-color:#6fb4e8}.gui-input:disabled{color:#ccc;cursor:default;pointer-events:none}.gui-input:disabled::-moz-placeholder{color:#ccc}.gui-input:disabled:-ms-input-placeholder{color:#ccc}.gui-input:disabled::placeholder{color:#ccc}\n",".gui-material .gui-input{border-color:#ccc;border-radius:0;border-style:solid;border-width:0 0 1px 0;font-family:Roboto,Helvetica Neue,sans-serif;padding-left:0;transition:border-color .3s ease-in-out}.gui-material .gui-input:not(:-moz-placeholder-shown){border-color:#6200ee}.gui-material .gui-input:not(:-ms-input-placeholder){border-color:#6200ee}.gui-material .gui-input:not(:placeholder-shown){border-color:#6200ee}.gui-material .gui-input:focus{border-color:#6200ee}\n",".gui-dark .gui-input{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-input:hover{border-color:#757575}.gui-dark .gui-input:focus{border-color:#ce93d8}.gui-dark .gui-input:disabled{opacity:.36}\n"],encapsulation:2,changeDetection:0})}return t})(),Yle=(()=>{class t extends $a{formBuilder;datePickerService;selectedDate;datePickerComposition=Ei.NONE;steps=1;form;Direction=za;FabricDatePickerComposition=Ei;constructor(e,i){super(),this.formBuilder=e,this.datePickerService=i,this.form=this.formBuilder.group({hours:[""],minutes:[""],seconds:[""]})}ngOnChanges(e){}ngOnInit(){this.isActive(this.datePickerComposition,Ei.TIME_PICKER_HOURS)&&this.form.controls.hours.valueChanges.pipe(De(this.unsubscribe$)).subscribe(i=>{const r=this.isMeridian()?1:0;(i>(this.isMeridian()?12:23)||i<r)&&this.form.controls.hours.setValue(r),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,Ei.TIME_PICKER_MINUTES)&&this.form.controls.minutes.valueChanges.pipe(De(this.unsubscribe$)).subscribe(e=>{this.controlFormItemValue(e,"minutes","hours"),this.changeSelectedDate()}),this.isActive(this.datePickerComposition,Ei.TIME_PICKER_SECONDS)&&this.form.controls.seconds.valueChanges.pipe(De(this.unsubscribe$)).subscribe(e=>{this.controlFormItemValue(e,"seconds","minutes"),this.changeSelectedDate()}),this.setTimeFromSelectedDate()}changeTimeItem(e,i){this.form.controls[e].setValue(this.form.controls[e].value+i)}changeSelectedDateTime(){this.datePickerService.next()}isActive(e,i){return!!(e&i)}isMeridian(){return this.isActive(this.datePickerComposition,Ei.TIME_PICKER_MERIDIAN)}isOnlyTimePicker(){return!(this.datePickerComposition&Ei.DATE_PICKER)}changeSelectedDate(){if(this.selectedDate){const o=new qle(this.form.controls.hours.value,this.form.controls.minutes.value,this.form.controls.seconds.value);this.datePickerService.changeTime(o,this.selectedDate)}}controlFormItemValue(e,i,r){e>59?(this.form.controls[r].setValue(this.form.controls[r].value+1),this.form.controls[i].setValue(0)):e<0&&this.form.controls[i].setValue(0)}setTimeFromSelectedDate(){if(this.selectedDate){const e=this.selectedDate.getHours(),i=this.selectedDate.getMinutes(),r=this.selectedDate.getSeconds();this.form.controls.hours.setValue(e),this.form.controls.minutes.setValue(i),this.form.controls.seconds.setValue(r)}}static \u0275fac=function(i){return new(i||t)(g(su),g(Qf))};static \u0275cmp=V({type:t,selectors:[["gui-time-picker"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("only-time-picker",r.isOnlyTimePicker())},inputs:{selectedDate:"selectedDate",datePickerComposition:"datePickerComposition"},features:[O,we],decls:7,vars:5,consts:[[3,"formGroup"],["class","gui-time-picker-item",4,"ngIf"],[1,"gui-time-picker-button-wrapper",3,"click"],["gui-button","",3,"outline"],[1,"gui-time-picker-item"],[1,"gui-date-picker-arrow",3,"click","direction"],["formControlName","hours","gui-input","","maxlength","2"],["formControlName","minutes","gui-input","","maxlength","2","type","number"],["formControlName","seconds","gui-input","","maxlength","2","type","number"]],template:function(i,r){1&i&&(w(0,"form",0),j(1,lle,4,2,"div",1)(2,ule,4,2,"div",1)(3,dle,4,2,"div",1),E(),w(4,"div",2),B("click",function(){return r.changeSelectedDateTime()}),w(5,"button",3),U(6," Ok "),E()()),2&i&&(C("formGroup",r.form),_(),C("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_HOURS)),_(),C("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_MINUTES)),_(),C("ngIf",r.isActive(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER_SECONDS)),_(2),C("outline",!0))},dependencies:[ln,Ks,qs,Z_,jc,Ys,ES,Pa,Gc,tI,Ga,t0],encapsulation:2,changeDetection:0})}return t})(),Kle=(()=>{class t extends $a{datePickerService;datePickerFormatService;datePickerWeeks;datePickerYears;datePickerYearsService;calendarService;calendarViewService;changeDetectorRef;weeks=[];years=[];selectedDate;activeMonth=Yx;activeYear=Kx;datePickerComposition=Ei.NONE;FabricDatePickerComposition=Ei;FabricCalendarView=Di;fabricCalendarView=Di.DAYS;constructor(e,i,r,o,s,a,c,l){super(),this.datePickerService=e,this.datePickerFormatService=i,this.datePickerWeeks=r,this.datePickerYears=o,this.datePickerYearsService=s,this.calendarService=a,this.calendarViewService=c,this.changeDetectorRef=l}ngOnInit(){this.datePickerFormatService.onComposition().pipe(De(this.unsubscribe$)).subscribe(e=>{this.datePickerComposition=e}),this.calendarService.onActiveMonth().pipe(De(this.unsubscribe$)).subscribe(e=>{this.activeMonth=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.calendarService.onActiveYear().pipe(De(this.unsubscribe$)).subscribe(e=>{this.activeYear=e,this.calculateDatePickerData(),this.changeDetectorRef.detectChanges()}),this.datePickerService.observeSelectedDate().pipe(De(this.unsubscribe$)).subscribe(e=>{this.selectedDate=e,this.activeYear=e.getFullYear(),this.activeMonth=e.getMonth()}),this.datePickerYearsService.onYears().pipe(De(this.unsubscribe$)).subscribe(e=>{this.years=e,this.changeDetectorRef.detectChanges()}),this.calendarViewService.onActiveView().pipe(De(this.unsubscribe$)).subscribe(e=>{this.fabricCalendarView=e,this.changeDetectorRef.detectChanges()}),this.calculateDatePickerData()}getCalendarView(){return event&&event.stopPropagation(),this.fabricCalendarView}isVisible(e,i){return!!(e&i)}calculateDatePickerData(){this.weeks=this.datePickerWeeks.getDaysInMonths(this.activeYear,this.activeMonth),this.years=this.datePickerYears.getYears(this.activeYear)}static \u0275fac=function(i){return new(i||t)(g(Qf),g(Zx),g(zH),g(Qx),g(Xx),g(Xf),g(Jf),g(me))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-toggle"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-date-picker-calendar",!0)},features:[O],decls:2,vars:2,consts:[[4,"ngIf"],[3,"datePickerComposition","selectedDate",4,"ngIf"],[3,"activeMonth","activeYear","fabricCalendarView","selectedDate","years"],[3,"ngSwitch"],[3,"activeMonth","selectedDate","weeks",4,"ngSwitchCase"],[3,"activeYear","selectedDate",4,"ngSwitchCase"],[3,"selectedDate","years",4,"ngSwitchCase"],[3,"activeMonth","selectedDate","weeks"],[3,"activeYear","selectedDate"],[3,"selectedDate","years"],[3,"datePickerComposition","selectedDate"]],template:function(i,r){1&i&&j(0,fle,6,9,"ng-container",0)(1,mle,1,2,"gui-time-picker",1),2&i&&(C("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.DATE_PICKER)),_(),C("ngIf",r.isVisible(r.datePickerComposition,r.FabricDatePickerComposition.TIME_PICKER)))},dependencies:[ln,F_,hL,jle,$le,zle,Wle,Yle],styles:['.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-date-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;font-family:Roboto,Helvetica Neue,sans-serif;border-radius:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:0 0 12px;width:268px}.gui-date-picker-header{font-size:13px;font-weight:400;text-align:center;border-top:1px solid #999}.gui-date-picker-cell{border-radius:4px;border-color:transparent;border-style:solid;border-width:1px;padding:2px 4px;position:relative;text-align:center;font-size:13px;z-index:0}.gui-date-picker-cell:before{border:1px solid #999;border-radius:50%;box-sizing:border-box;content:"";display:none;height:36px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:36px;z-index:-1}.gui-date-picker-cell:after{background:transparent;border-radius:50%;box-sizing:border-box;content:"";display:block;height:32px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:32px;z-index:-1}.gui-date-picker-cell:hover:after{background:#e6e6e6}.gui-date-picker-day{color:#333;cursor:pointer;opacity:.2}.gui-date-picker-day.gui-date-picker-selected-month{opacity:1}.gui-date-picker-month,.gui-date-picker-year{cursor:pointer}.gui-date-picker-year{font-size:13px}.gui-date-picker-day.gui-date-picker-current-day:before,.gui-date-picker-month.gui-date-picker-current-month:before,.gui-date-picker-year.gui-date-picker-current-year:before{display:block}.gui-date-picker-day.gui-date-picker-selected-day{pointer-events:none}.gui-date-picker-day.gui-date-picker-selected-day,.gui-date-picker-month.gui-date-picker-selected-month,.gui-date-picker-year.gui-date-picker-selected-year{color:#fff}.gui-date-picker-day.gui-date-picker-selected-day:after,.gui-date-picker-month.gui-date-picker-selected-month:after,.gui-date-picker-year.gui-date-picker-selected-year:after{background:#2185d0}.gui-date-picker-arrows{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:32px}.gui-date-picker-view-padding{padding:0 8px}.gui-date-picker-view-border-top{border-top:1px solid #999}gui-time-picker{border-top:1px solid #999;margin:6px 0 0;padding:12px 0 2.6666666667px}gui-time-picker form{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}gui-time-picker.only-time-picker{border-top:none}.gui-time-picker-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-right:8px}.gui-time-picker-button-wrapper .gui-button{font-size:12px}.gui-time-picker-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:0 8px;position:relative}.gui-time-picker-item input{box-sizing:border-box;max-width:24px;text-align:center}.gui-time-picker-item input::-webkit-outer-spin-button,.gui-time-picker-item input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.gui-time-picker-item input[type=number]{-moz-appearance:textfield}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(1){margin-bottom:2px}.gui-time-picker-item .gui-date-picker-arrow:nth-of-type(2){margin-top:6px}.gui-date-picker-view-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 18px}.gui-date-picker-view-panel .gui-date-picker-view-panel-date{cursor:pointer;font-size:14px;font-weight:700;margin:0;pointer-events:auto}.gui-date-picker-arrow{position:relative;z-index:0}.gui-date-picker-arrow:hover:after{background:#e6e6e6;border-radius:50%;box-sizing:border-box;content:"";display:block;height:24px;left:50%;position:absolute;top:50%;-ms-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%);width:24px;z-index:-1}\n'],encapsulation:2,changeDetection:0})}return t})();var Wa=function(t){return t[t.TOP=1]="TOP",t[t.BOTTOM=2]="BOTTOM",t[t.BEFORE=3]="BEFORE",t[t.AFTER=4]="AFTER",t}(Wa||{});const Hh=new W("Theme token");let cs=(()=>{class t{fabricTheme$=new dt(Rt.FABRIC);onTheme(){return this.fabricTheme$.asObservable()}changeTheme(e){const i="string"==typeof e?this.convertToTheme(e):e;this.fabricTheme$.next(i)}convertToTheme(e){switch(e.toLowerCase()){case"fabric":default:return Rt.FABRIC;case"material":return Rt.MATERIAL;case"generic":return Rt.GENERIC;case"light":return Rt.LIGHT;case"dark":return Rt.DARK}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),em=(()=>{class t extends $a{elementRef;renderer;themeService;static CSS_CLASS_PREFIX="gui-";constructor(e,i,r){super(),this.elementRef=e,this.renderer=i,this.themeService=r}ngAfterViewInit(){this.themeService.onTheme().pipe(Qy(),De(this.unsubscribe$)).subscribe(e=>{this.addTheme(e)})}addTheme(e){this.removeThemes();const i=t.CSS_CLASS_PREFIX+e.toLowerCase();this.renderer.addClass(this.elementRef.nativeElement,i)}removeThemes(){Object.keys(Rt).map(i=>Rt[i].toLowerCase()).filter(i=>!Number.isInteger(i)).forEach(i=>{this.renderer.removeClass(this.elementRef.nativeElement,t.CSS_CLASS_PREFIX+i)})}getElementRef(){return this.elementRef}getRenderer(){return this.renderer}static \u0275fac=function(i){return new(i||t)(g(F),g(on),g(cs))};static \u0275dir=N({type:t,features:[O]})}return t})();class Zle{elementRef;containerClassName;constructor(n,e){this.elementRef=n,this.containerClassName=e}getHeight(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetHeight}getWidth(){return this.elementRef.nativeElement.querySelector(`.${this.containerClassName}`).offsetWidth}}class Qle extends Zle{verticalPosition=0;horizontalPosition=0;constructor(n,e,i,r,o,s){super(i,r),this.calculateCords(n,e,s,o)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}calculateCords(n,e,i,r){const o=e.nativeElement.getBoundingClientRect(),s=n.pageYOffset+o.bottom,a=n.pageXOffset+o.left,c=n.pageXOffset+o.right,u=n.pageYOffset+o.top+i-this.getHeight();switch(r){case Wa.BOTTOM:this.horizontalPosition=a,this.verticalPosition=s+i;break;case Wa.TOP:this.horizontalPosition=a,this.verticalPosition=u;break;case Wa.BEFORE:this.horizontalPosition=c+i-this.getWidth(),this.verticalPosition=s;break;case Wa.AFTER:this.horizontalPosition=a+i,this.verticalPosition=s;break;default:this.horizontalPosition=a,this.verticalPosition=s+i}this.calculateDirection(e,n,u)}calculateDirection(n,e,i){const r=e.innerHeight+e.pageYOffset,o=e.innerWidth+e.pageXOffset,s=n.nativeElement.offsetWidth,a=this.getHeight(),c=this.getWidth(),u=r-this.verticalPosition-a<0;o-this.horizontalPosition-c<0&&(this.horizontalPosition-=c-s),u&&(this.verticalPosition=i)}}let Xle=(()=>{class t extends Qle{static defaultInlineDialogOffset=8;constructor(e,i,r,o,s=t.defaultInlineDialogOffset){super(r,e,i,"gui-inline-dialog-wrapper",o,s)}}return t})(),nI=(()=>{class t{platformId;inlineDialogGeometry;inlineDialogState$=new se;constructor(e){this.platformId=e}observeInlineDialogCords(){return this.inlineDialogState$.asObservable()}changeGeometry(e){this.inlineDialogGeometry=e}getInlineDialogCords(e,i,r){if(fo(this.platformId)){const o=new Xle(e,this.inlineDialogGeometry,window,i,r);this.inlineDialogState$.next(o)}}static \u0275fac=function(i){return new(i||t)(I(Kn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Jle=(()=>{class t extends em{componentFactoryResolver;changeDetectorRef;inlineDialogService;elRef;inlineDialogGeometryService;container;customClass="";inlineDialogNestedComponent;inlineDialogNestedInjector;dialogTopAttribute;dialogLeftAttribute;visible=!1;width="400px";constructor(e,i,r,o,s,a,c,l){super(o,a,c),this.componentFactoryResolver=e,this.changeDetectorRef=i,this.inlineDialogService=r,this.elRef=o,this.inlineDialogGeometryService=s}ngOnInit(){this.inlineDialogGeometryService.observeInlineDialogCords().pipe(De(this.unsubscribe$)).subscribe(e=>{this.dialogTopAttribute=e.getVerticalPosition(),this.dialogLeftAttribute=e.getHorizontalPosition(),this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(this.inlineDialogNestedComponent),this.inlineDialogGeometryService.changeGeometry(this.elRef),this.changeDetectorRef.detectChanges(),Dr(0).pipe(De(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}ngOnDestroy(){this.unsubscribe()}clickOutside(e){this.isContainerClicked(e)&&this.inlineDialogService.close()}isContainerClicked(e){return!this.elRef.nativeElement.contains(e.target)}createNestedComponent(e){if(this.container&&e){const i=this.componentFactoryResolver.resolveComponentFactory(e);this.inlineDialogNestedInjector?this.container.createComponent(i,void 0,this.inlineDialogNestedInjector):this.container.createComponent(i),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(i){return new(i||t)(g(mn),g(me),g(_t(()=>tm)),g(F),g(nI),g(on),g(cs),g(Hh))};static \u0275cmp=V({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&pe(Zf,5,zt),2&i){let o;te(o=ne())&&(r.container=o.first)}},features:[O],decls:4,vars:9,consts:[["container",""],[1,"gui-inline-dialog-wrapper",3,"ngClass"],[1,"gui-inline-dialog-content",3,"click"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1)(1,"div",2),B("click",function(a){return $(o),z(r.clickOutside(a))},0,yp),j(2,ble,0,0,"ng-template",null,0,Ct),E()()}2&i&&(Ut("left",r.dialogLeftAttribute,"px")("top",r.dialogTopAttribute,"px"),C("ngClass",r.customClass),_(),Ut("max-width",r.width),ae("gui-inline-dialog-visible",r.visible))},dependencies:[Hr],styles:[".gui-inline-dialog-wrapper{box-sizing:border-box;position:absolute;z-index:1}.gui-inline-dialog-wrapper .gui-inline-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;box-sizing:border-box;display:block;z-index:1000;opacity:0;transition:opacity .2s ease-in-out}.gui-inline-dialog-wrapper .gui-inline-dialog-content.gui-inline-dialog-visible{opacity:1}\n",".gui-dark .gui-inline-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}\n"],encapsulation:2,changeDetection:0})}return t})(),tm=(()=>{class t{componentFactoryResolver;applicationRef;injector;document;inlineDialogGeometryService;inlineDialogRef=null;opened=!1;opened$=new dt(!1);destroy$=new se;constructor(e,i,r,o,s){this.componentFactoryResolver=e,this.applicationRef=i,this.injector=r,this.document=o,this.inlineDialogGeometryService=s}ngOnDestroy(){this.removeInlineDialog()}open(e,i,r){if(event&&event.stopPropagation(),this.inlineDialogRef)this.close();else{let o=this.injector,s=Wa.BOTTOM,a=0,c=Rt.FABRIC,l="";r&&r.injector&&(o=r.injector),r&&r.placement&&(s=r.placement),r&&r.offset&&(a=r.offset),r&&r.theme&&(c=r.theme),r&&r.customClass&&(l=r.customClass);const u=He.create({providers:[{provide:Hh,useValue:c}],parent:o});this.setOpened(!0),this.appendInlineDialogToElement(i,u,l),this.inlineDialogGeometryService.getInlineDialogCords(e,s,a),this.closeOnEscKey()}}close(){this.removeInlineDialog(),this.destroy$.next(void 0),this.destroy$.complete(),this.setOpened(!1)}isOpened(){return this.opened}onOpened(){return this.opened$.asObservable()}appendInlineDialogToElement(e,i,r){const o=this.componentFactoryResolver.resolveComponentFactory(Jle).create(i);r&&(o.instance.customClass=r),o.instance.inlineDialogNestedComponent=e,o.changeDetectorRef.detectChanges(),this.applicationRef.attachView(o.hostView),this.document.body.appendChild(o.hostView.rootNodes[0]),this.inlineDialogRef=o}removeInlineDialog(){this.inlineDialogRef&&(this.applicationRef.detachView(this.inlineDialogRef.hostView),this.inlineDialogRef.destroy(),this.inlineDialogRef=null)}setOpened(e){this.opened=e,this.opened$.next(this.opened)}closeOnEscKey(){en(this.document,"keyup").pipe(Wt(i=>"Escape"===i.code),De(this.destroy$)).subscribe(()=>this.close())}static \u0275fac=function(i){return new(i||t)(I(mn),I(yi),I(He),I(Pe),I(nI))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),qH=(()=>{class t{fabricInlineDialogService;constructor(e){this.fabricInlineDialogService=e}open(e,i,r){let o=Rt.FABRIC;r&&(o=r),this.fabricInlineDialogService.open(e,i,{placement:Wa.BOTTOM,offset:0,theme:o})}close(){this.fabricInlineDialogService.close()}isOpened(){return this.fabricInlineDialogService.isOpened()}onOpened(){return this.fabricInlineDialogService.onOpened()}static \u0275fac=function(i){return new(i||t)(I(tm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),eue=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-date-picker-icon"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-date-picker-icon",!0)},decls:8,vars:0,consts:[["height","9.82","viewBox","0 0 8.76 9.82","width","8.76","xmlns","http://www.w3.org/2000/svg"],["d","M401.41,308.63l-.46.15h-.15a.34.34,0,0,1-.08-.67l.68-.22a1.539,1.539,0,0,1,.38-.07h0a.39.39,0,0,1,.39.39V312a.38.38,0,0,1-.39.39.39.39,0,0,1-.39-.39Z","fill","#8c8b8b","transform","translate(-397.19 -304.36)"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 9.32)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.64 2.16)","x1","7.39"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(0.5 0.5)","y2","8.82"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(3.09 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(5.68 0.5)","y2","1.66"],["fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1","transform","translate(8.26 0.5)","y2","8.82"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"path",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6)(7,"line",7),E())},styles:[".gui-date-picker-icon svg{height:16px;width:16px}.gui-date-picker-icon svg line,.gui-date-picker-icon svg path{transition:all .3s ease-in-out}.gui-date-picker-icon svg line{stroke:#aaa}.gui-date-picker-icon svg path{fill:#aaa}.gui-date-picker-icon svg:hover line{stroke:#464646}.gui-date-picker-icon svg:hover path{fill:#464646}\n",".gui-dark .gui-date-picker-icon svg line{stroke:#bdbdbd}.gui-dark .gui-date-picker-icon svg path{fill:#bdbdbd}.gui-dark .gui-date-picker-icon svg:hover line{stroke:#616161}.gui-dark .gui-date-picker-icon svg:hover path{fill:#616161}\n"],encapsulation:2})}return t})(),tue=(()=>{class t extends $a{fabricDatePickerInlineDialogService;datePickerService;datePickerCompositionService;changeDetectorRef;datePickerRef;parentElement;theme;selectDate;name="";openDialog=!1;onlyDialog=!1;datePipeOptions="dd/MM/yyyy";dateSelected=new X;dialogOpened=new X;datePickerForm;pickedDate=new Date;inputDisabled="";constructor(e,i,r,o,s){super(),this.fabricDatePickerInlineDialogService=e,this.datePickerService=i,this.datePickerCompositionService=r,this.changeDetectorRef=s,this.datePickerForm=o.group({date:[""]})}ngOnChanges(e){e.selectDate&&this.selectDate&&(!this.pickedDate||!Jx.areDatesSame(this.selectDate,this.pickedDate))&&this.datePickerService.dateSelected(this.selectDate),e.onlyDialog&&(this.inputDisabled=this.onlyDialog?"disabled":""),e.datePipeOptions&&this.datePickerCompositionService.next(this.datePipeOptions)}ngOnInit(){this.datePickerService.observeSelectedDate().pipe(Bh(1),De(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges(),this.closeDatePicker()}),this.fabricDatePickerInlineDialogService.onOpened().pipe(Bh(1),De(this.unsubscribe$)).subscribe(e=>{this.dialogOpened.emit(e)})}ngAfterViewInit(){this.datePickerService.observeSelectedDate().pipe(Zt(1),De(this.unsubscribe$)).subscribe(e=>{this.pickedDate=e,this.emitSelectedDate(e),this.changeDetectorRef.detectChanges()}),this.openDialog&&this.openDatePicker()}ngOnDestroy(){super.ngOnDestroy(),this.fabricDatePickerInlineDialogService.close()}openDatePicker(){const i=!this.parentElement&&this.datePickerRef?this.datePickerRef:this.parentElement;i&&this.fabricDatePickerInlineDialogService.open(i,Kle,this.theme)}closeDatePicker(){this.fabricDatePickerInlineDialogService.close()}emitSelectedDate(e){this.dateSelected.emit(e)}static \u0275fac=function(i){return new(i||t)(g(qH),g(Qf),g(Zx),g(su),g(me))};static \u0275cmp=V({type:t,selectors:[["gui-date-picker"]],viewQuery:function(i,r){if(1&i&&pe(vle,5,F),2&i){let o;te(o=ne())&&(r.datePickerRef=o.first)}},inputs:{parentElement:"parentElement",theme:"theme",selectDate:"selectDate",name:"name",openDialog:"openDialog",onlyDialog:"onlyDialog",datePipeOptions:"datePipeOptions"},outputs:{dateSelected:"dateSelected",dialogOpened:"dialogOpened"},features:[O,we],decls:6,vars:7,consts:[["datePicker",""],[1,"gui-date-picker"],[3,"formGroup"],["formControlName","date","gui-input","","readonly","",1,"gui-date-picker-input",3,"name","value"],[1,"gui-date-picker-icon",3,"click"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1,0)(2,"form",2),L(3,"input",3),je(4,"date"),E(),w(5,"gui-date-picker-icon",4),B("click",function(){return $(o),z(r.openDatePicker())}),E()()}2&i&&(_(2),C("formGroup",r.datePickerForm),_(),C("name",r.name)("value",sh(4,4,r.pickedDate,r.datePipeOptions)),st("disabled",r.inputDisabled))},dependencies:[Ks,qs,jc,Ys,Pa,Gc,tI,eue,UE],styles:[".gui-date-picker{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;position:relative}.gui-date-picker .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}.gui-date-picker input,.gui-date-picker-calendar input{background:transparent;border-radius:0;border-width:0 0 1px 0;font-family:Arial;font-size:14px;padding:4px}.gui-date-picker input:disabled,.gui-date-picker-calendar input:disabled{color:#333}.gui-date-picker .gui-date-picker-icon,.gui-date-picker-calendar .gui-date-picker-icon{cursor:pointer;position:absolute;right:0}\n",".gui-dark .gui-input{background:transparent;color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-arrow-icon:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell{color:#bdbdbd}.gui-dark .gui-date-picker-calendar .gui-date-picker-cell:hover:after{background:#757575}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year{color:#333}.gui-dark .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-dark .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#dfb8e6}\n",".gui-material .gui-date-picker-calendar .gui-date-picker-day.gui-date-picker-selected-day:after,.gui-material .gui-date-picker-calendar .gui-date-picker-month.gui-date-picker-selected-month:after,.gui-material .gui-date-picker-calendar .gui-date-picker-year.gui-date-picker-selected-year:after{background:#6200ee}\n"],encapsulation:2,changeDetection:0})}return t})(),nm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[tm,nI],imports:[Oe]})}return t})(),Xc=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),iI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),nue=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),rI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[Qf,Zx,Xf,Jf,Xx,zH,Qx,qH],imports:[Oe,nm,ph,Xc,as,nue,iI]})}return t})(),im=(()=>{class t extends $a{componentFactoryResolver;applicationRef;injector;document;componentRef="destroyed";constructor(e,i,r,o){super(),this.componentFactoryResolver=e,this.applicationRef=i,this.injector=r,this.document=o}ngOnDestroy(){this.removeComponent()}createAndAppend(e){const i=e?.injector?e.injector:this.injector;this.componentRef=this.componentFactoryResolver.resolveComponentFactory(this.getComponent()).create(i),this.applicationRef.attachView(this.componentRef.hostView);const r=this.componentRef.hostView.rootNodes[0];this.getElement(e?.appendToElement).appendChild(r),e?.afterCompCreation&&e?.afterCompCreation(),this.componentRef.changeDetectorRef.detectChanges()}removeComponent(){"destroyed"!==this.componentRef&&(this.applicationRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef="destroyed",this.unsubscribe())}getComponentRef(){return this.componentRef}getInjector(){return this.injector}getDocument(){return this.document}onCloseOnEsc(){return en(this.getDocument(),"keyup").pipe(Wt(i=>"Escape"===i.code),De(this.unsubscribe$))}isComponentCreated(){return"destroyed"!==this.componentRef}getElement(e){return e?e.nativeElement:this.document.body}static \u0275fac=function(i){return new(i||t)(g(mn),g(yi),g(He),g(Pe))};static \u0275dir=N({type:t,features:[O]})}return t})(),oI=(()=>{class t extends im{inProgress=!1;constructor(e,i,r,o){super(e,i,r,o)}getComponent(){return iue}open(e){event&&event.stopPropagation(),(!this.isComponentCreated()||!e?.preventReopeningDrawer)&&(!this.isComponentCreated()||this.inProgress||e?.preventReopeningDrawer?this.createDrawer(e):this.waitAndCreateNewDrawer(e))}close(){if(this.isComponentCreated()){const e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Dr(300).pipe(De(this.unsubscribe$)).subscribe(()=>{this.removeComponent(),this.inProgress=!1})}}createDrawer(e){this.isComponentCreated()&&this.removeComponent();let i=Rt.FABRIC,r=this.getInjector();e&&e.theme&&(i=e.theme),e&&e.injector&&(r=e.injector);const o=He.create({providers:[{provide:Hh,useValue:i}],parent:r});this.createAndAppend({injector:o,afterCompCreation:()=>this.applyInstanceVars(e),appendToElement:e?.appendToElement}),this.closeOnEscKey()}waitAndCreateNewDrawer(e){this.inProgress=!0,this.close(),Dr(400).pipe(De(this.unsubscribe$)).subscribe(()=>{this.createDrawer(e)})}applyInstanceVars(e){if(this.isComponentCreated()){const i=this.getComponentRef();e?.width&&(i.instance.width=e.width),e?.closeOnClickOutside&&(i.instance.closeOnClickOutside=e.closeOnClickOutside),i.instance.dialogNestedComponent=e?.component,i.instance.isFixed=!e?.appendToElement}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}static \u0275fac=function(i){return new(i||t)(I(mn),I(yi),I(He),I(Pe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),sI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-close-icon"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-close-icon-wrapper",!0)},decls:1,vars:0,consts:[[1,"gui-close-icon"]],template:function(i,r){1&i&&L(0,"span",0)},styles:['.gui-close-icon-wrapper .gui-close-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:8px;width:16px}.gui-close-icon-wrapper .gui-close-icon:before,.gui-close-icon-wrapper .gui-close-icon:after{background-color:#aaa;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-close-icon-wrapper .gui-close-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-close-icon-wrapper .gui-close-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-close-icon-wrapper .gui-close-icon:hover:before,.gui-close-icon-wrapper .gui-close-icon:hover:after{background-color:#464646}\n'],encapsulation:2,changeDetection:0})}return t})(),iue=(()=>{class t extends em{componentFactoryResolver;changeDetectorRef;elRef;dialogService;container;width="400px";closeOnClickOutside=!1;dialogNestedComponent;visible=!1;isFixed=!1;constructor(e,i,r,o,s,a){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=i,this.elRef=r,this.dialogService=o}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Dr(50).pipe(De(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.changeDetectorRef.detectChanges()})}closeDrawer(){this.dialogService.close()}clickOutside(e){this.closeOnClickOutside&&this.isContainerClicked(e)&&this.closeDrawer()}detectChanges(){this.changeDetectorRef.detectChanges()}isContainerClicked(e){const i=this.elRef.nativeElement.querySelector(".gui-drawer-content");return!!i&&!i.contains(e.target)}createNestedComponent(){if(this.container){const e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.changeDetectorRef.detectChanges()}}static \u0275fac=function(i){return new(i||t)(g(mn),g(me),g(F),g(oI),g(cs),g(on))};static \u0275cmp=V({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&pe(Zf,5,zt),2&i){let o;te(o=ne())&&(r.container=o.first)}},features:[O],decls:5,vars:6,consts:[["container",""],[1,"gui-drawer-wrapper",3,"click"],[1,"gui-drawer-content"],[3,"click"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1),B("click",function(a){return $(o),z(r.clickOutside(a))},0,yp),w(1,"div",2)(2,"gui-close-icon",3),B("click",function(){return $(o),z(r.closeDrawer())}),E(),j(3,_le,0,0,"ng-template",null,0,Ct),E()()}2&i&&(Ut("max-width",r.width),ae("gui-drawer-fixed",r.isFixed)("gui-drawer-visible",r.visible))},dependencies:[sI],styles:[".gui-drawer-wrapper{display:-ms-flexbox;display:flex;font-family:Arial;height:100%;width:auto;position:absolute;padding-left:50px;right:0;top:0;overflow:hidden;z-index:1000}.gui-drawer-wrapper .gui-drawer-content{background-color:#fff;height:100%;position:relative;margin-left:auto;-ms-transform:translateX(100%);transform:translate(100%);transition:all .3s ease-in-out}.gui-drawer-wrapper.gui-drawer-visible .gui-drawer-content{-ms-transform:translateX(0);transform:translate(0);box-shadow:-6px 0 16px -8px #00000014,-9px 0 28px #0000000d,-12px 0 48px 16px #00000008}.gui-drawer-wrapper.gui-drawer-fixed{position:fixed;height:100vh}\n",".gui-dark .gui-drawer-wrapper .gui-drawer-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}\n"],encapsulation:2,changeDetection:0})}return t})(),aI=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),n0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[oI],imports:[Oe,aI]})}return t})();class rue{container;menu;windowSize;containerHeight=0;containerWidth=0;availableBottomSpace=0;availableTopSpace=0;constructor(n,e,i){this.container=n,this.menu=e,this.windowSize=i,this.calculate(this.menu,this.windowSize)}getContainerHeight(){return this.containerHeight}getContainerWidth(){return this.containerWidth}canOpenDownward(){return this.availableBottomSpace>0}canOpenUpward(){return this.availableTopSpace>0}calculate(n,e){const i=this.container.nativeElement,r=n.nativeElement.offsetHeight,o=i.getBoundingClientRect().bottom;this.containerHeight=i.offsetHeight,this.containerWidth=i.offsetWidth,this.availableBottomSpace=e-o-r,this.availableTopSpace=o-r-this.containerHeight}}let YH=(()=>{class t{geometryResults$=new se;watchGeometry(){return this.geometryResults$.asObservable()}changeGeometry(e,i,r){const o=new rue(e,i,r);this.geometryResults$.next(o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Uh=function(t){return t[t.Right=0]="Right",t[t.Left=1]="Left",t}(Uh||{});let oue=(()=>{class t extends $a{platformId;elementRef;renderer;changeDetectorRef;geometryService;dropdownMenuRef;containerRef;onResize(){fo(this.platformId)&&(this.windowSize=window.innerHeight)}disabled=!1;dropdownText="Dropdown";isArrowEnabled=!0;placement;width=120;showOnHover=!1;containerWidth=0;containerHeight=0;windowSize=0;horizontalPosition=0;bottomPosition=0;topPosition=0;arrowDirection=za.BOTTOM;canOpenDownward=!1;canOpenUpward=!1;open=!1;topBorderWidth=1;constructor(e,i,r,o,s){super(),this.platformId=e,this.elementRef=i,this.renderer=r,this.changeDetectorRef=o,this.geometryService=s,this.onResize()}ngOnChanges(e){e.placement&&this.changePlacement()}ngOnInit(){this.geometryService.watchGeometry().pipe(De(this.unsubscribe$)).subscribe(e=>{this.containerHeight=e.getContainerHeight(),this.containerWidth=e.getContainerWidth(),this.canOpenUpward=e.canOpenUpward(),this.canOpenDownward=e.canOpenDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}tryToOpenOnHover(){this.showOnHover&&(this.openMenu(!this.open),this.changeDetectorRef.detectChanges())}hideOnHover(){this.showOnHover&&(this.hideItems(),this.open=!1)}clickOutside(e){this.isContainerClicked(e)&&this.openMenu(!1)}isDirectionLeft(){return this.isArrowEnabled&&this.arrowDirection===za.LEFT}openMenu(e){this.open=e,this.open?this.showItems():this.hideItems()}showItems(){this.containerRef&&this.dropdownMenuRef&&(this.addClass(this.elementRef.nativeElement,"gui-menu-opened"),this.geometryService.changeGeometry(this.containerRef,this.dropdownMenuRef,this.windowSize),this.canOpenDownward||!this.canOpenUpward?this.openDownward():this.openUpward(),this.placement===Uh.Right&&this.openRight(),this.placement===Uh.Left&&this.openLeft())}openDownward(){this.topPosition=null,this.bottomPosition=this.containerHeight}openUpward(){this.bottomPosition=null,this.topPosition=this.containerHeight}openRight(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=this.containerWidth}openLeft(){this.bottomPosition=-this.topBorderWidth,this.topPosition=null,this.horizontalPosition=-(this.containerWidth+1)}changePlacement(){if(this.dropdownMenuRef)switch(this.placement){case Uh.Right:this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.arrowDirection=za.RIGHT;break;case Uh.Left:this.removeClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-right"),this.addClass(this.dropdownMenuRef.nativeElement,"gui-dropdown-left"),this.arrowDirection=za.LEFT}}hideItems(){this.elementRef.nativeElement.classList.contains("gui-menu-opened")&&this.removeClass(this.elementRef.nativeElement,"gui-menu-opened")}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e,i){this.renderer.addClass(e,i)}removeClass(e,i){this.renderer.removeClass(e,i)}static \u0275fac=function(i){return new(i||t)(g(Kn),g(F),g(on),g(me),g(YH))};static \u0275cmp=V({type:t,selectors:[["gui-dropdown"]],viewQuery:function(i,r){if(1&i&&(pe(yle,7,F),pe(Zf,7,F)),2&i){let o;te(o=ne())&&(r.dropdownMenuRef=o.first),te(o=ne())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(i,r){1&i&&B("resize",function(){return r.onResize()},0,MR),2&i&&ae("gui-dropdown",!0)},inputs:{disabled:"disabled",dropdownText:"dropdownText",isArrowEnabled:"isArrowEnabled",placement:"placement",width:"width",showOnHover:"showOnHover"},features:[ye([YH]),O,we],ngContentSelectors:ja,decls:8,vars:14,consts:[["container",""],["dropdownMenu",""],[1,"gui-dropdown-container",3,"click","mouseenter","mouseleave"],[1,"gui-dropdown-text"],[3,"gui-dropdown-arrow",4,"ngIf"],[1,"gui-dropdown-menu"],[3,"direction"]],template:function(i,r){if(1&i){const o=he();jn(),w(0,"div",2,0),B("click",function(a){return $(o),z(r.tryToOpen(a))})("click",function(a){return $(o),z(r.clickOutside(a))},!1,yp)("mouseenter",function(){return $(o),z(r.tryToOpenOnHover())})("mouseleave",function(){return $(o),z(r.hideOnHover())}),w(2,"div",3),U(3),E(),j(4,wle,2,3,"div",4),w(5,"div",5,1),an(7),E()()}2&i&&(Ut("width",r.width,"px"),ae("gui-arrow-left",r.isDirectionLeft())("gui-disabled",r.disabled),_(3),ft(r.dropdownText),_(),C("ngIf",r.isArrowEnabled),_(),Ut("bottom",r.topPosition,"px")("left",r.horizontalPosition,"px")("top",r.bottomPosition,"px"))},dependencies:[ln,t0],styles:[".gui-dropdown .gui-dropdown-container{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 12px;position:relative;width:auto}.gui-dropdown .gui-dropdown-container:hover{border-color:#999}.gui-dropdown .gui-dropdown-container:hover .gui-arrow-icon svg path{stroke:#464646}.gui-dropdown .gui-dropdown-container .gui-dropdown-arrow{cursor:pointer;position:absolute;right:12px;top:8px}.gui-dropdown .gui-dropdown-container .gui-dropdown-right.gui-dropdown-menu,.gui-dropdown .gui-dropdown-container .gui-dropdown-left.gui-dropdown-menu{margin:0}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{background:inherit;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:border-box;display:none;left:-1px;overflow:hidden;position:absolute;width:inherit;z-index:2}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{list-style-type:none;padding:8px 12px;width:inherit}.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#cccccc}.gui-dropdown .gui-dropdown-container.gui-arrow-left{padding:8px 12px 8px 32px}.gui-dropdown .gui-dropdown-container.gui-arrow-left .gui-dropdown-arrow{left:12px;right:initial}.gui-dropdown.gui-menu-opened .gui-dropdown-container{border-color:#999}.gui-dropdown.gui-menu-opened .gui-dropdown-menu{display:block}.gui-dropdown .gui-disabled{color:#ccc;pointer-events:none}\n",".gui-material .gui-dropdown .gui-dropdown-container{font-family:Roboto,Helvetica Neue,sans-serif}\n",".gui-dark .gui-dropdown .gui-dropdown-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-dropdown .gui-dropdown-container:hover{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow svg path{stroke:#ce93d8}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#616161}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item{border-top-color:#757575}.gui-dark .gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover{background:#616161}.gui-dark .gui-dropdown.gui-options-opened .gui-dropdown-container{border-color:#ce93d8}.gui-dark .gui-dropdown .gui-disabled{opacity:.36}\n"],encapsulation:2,changeDetection:0})}return t})(),sue=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-dropdown-item"]],ngContentSelectors:ja,decls:2,vars:0,consts:[[1,"gui-item"]],template:function(i,r){1&i&&(jn(),w(0,"div",0),an(1),E())},encapsulation:2,changeDetection:0})}return t})(),r0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,iI]})}return t})(),jh=(()=>{class t extends im{constructor(e,i,r,o){super(e,i,r,o)}getComponent(){return aue}open(e){if(this.isComponentCreated())return;let i=Rt.FABRIC,r=this.getInjector();e&&e.theme&&(i=e.theme),e&&e.injector&&(r=e.injector);const o=He.create({providers:[{provide:Hh,useValue:i}],parent:r});this.createAndAppend({afterCompCreation:()=>this.afterComponentCreation(e),injector:o}),this.closeOnEscKey()}close(){if(this.isComponentCreated()){const e=this.getComponentRef();e.instance.visible=!1,e.instance.detectChanges(),Dr(400).pipe(De(this.unsubscribe$)).subscribe(()=>{this.removeComponent()})}}closeOnEscKey(){this.onCloseOnEsc().subscribe(()=>this.close())}afterComponentCreation(e){if(this.isComponentCreated()){const i=this.getComponentRef();i.instance.dialogNestedComponent=e.component,e?.width&&(i.instance.width=e.width),e?.height&&(i.instance.height=e.height),i.instance.setTransformOrigin(event)}}static \u0275fac=function(i){return new(i||t)(I(mn),I(yi),I(He),I(Pe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),aue=(()=>{class t extends em{componentFactoryResolver;changeDetectorRef;elRef;platformId;dialogService;container;dialogNestedComponent;visible=!1;width="400px";height="90vh";triggerPosition="";constructor(e,i,r,o,s,a,c){super(r,a,s),this.componentFactoryResolver=e,this.changeDetectorRef=i,this.elRef=r,this.platformId=o,this.dialogService=c}ngAfterViewInit(){super.ngAfterViewInit(),this.createNestedComponent(),Dr(0).pipe(De(this.unsubscribe$)).subscribe(()=>{this.visible=!0,this.detectChanges()})}detectChanges(){this.changeDetectorRef.detectChanges()}closeDialog(){this.dialogService.close()}clickOutside(e){this.isContainerClicked(e)&&this.dialogService.close()}setTransformOrigin(e){if(fo(this.platformId)&&e){const i=e.clientX-window.innerWidth/2,r=e.clientY-window.innerHeight/2;this.triggerPosition=`${i}px ${r}px`}}isContainerClicked(e){const i=this.elRef.nativeElement.querySelector(".gui-dialog-content");return!!i&&!i.contains(e.target)}createNestedComponent(){if(this.dialogNestedComponent&&this.container){const e=this.componentFactoryResolver.resolveComponentFactory(this.dialogNestedComponent);this.container.createComponent(e),this.detectChanges()}}static \u0275fac=function(i){return new(i||t)(g(mn),g(me),g(F),g(Kn),g(cs),g(on),g(_t(()=>jh)))};static \u0275cmp=V({type:t,selectors:[["gui-fabric-dialog"]],viewQuery:function(i,r){if(1&i&&pe(Zf,5,zt),2&i){let o;te(o=ne())&&(r.container=o.first)}},hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-fabric-dialog",!0)},features:[O],decls:6,vars:8,consts:[["container",""],[1,"gui-dialog-blanket"],[1,"gui-dialog-wrapper",3,"click"],[1,"gui-dialog-content"],[3,"click"]],template:function(i,r){if(1&i){const o=he();L(0,"div",1),w(1,"div",2),B("click",function(a){return $(o),z(r.clickOutside(a))}),w(2,"div",3),j(3,Cle,0,0,"ng-template",null,0,Ct),w(5,"gui-close-icon",4),B("click",function(){return $(o),z(r.closeDialog())}),E()()()}2&i&&(_(2),Ut("max-height",r.height)("max-width",r.width)("transform-origin",r.triggerPosition),ae("gui-dialog-visible",r.visible))},dependencies:[sI],styles:[".gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-italic{font-style:italic}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-fabric-dialog *,.gui-fabric-dialog *:after,.gui-fabric-dialog *:before{box-sizing:border-box}.gui-fabric-dialog input{font-size:13px;outline:0}.gui-dialog-blanket{background:rgba(0,0,0,.32);height:100%;left:0;pointer-events:none;position:fixed;top:0;width:100%;z-index:1000}.gui-dialog-wrapper{font-family:Arial;height:100%;width:100%;position:fixed;pointer-events:auto;left:0;top:0;z-index:1000}.gui-dialog-content{background-color:#fff;border-radius:4px;box-shadow:0 3px 7px #999;padding:24px 16px;position:fixed;left:50%;top:50%;transform:scale3d(0,0,0) translate(-50%) translateY(-50%);opacity:0;transition:all .4s;overflow:auto;z-index:1000}.gui-dialog-content.gui-dialog-visible{transform:scaleZ(1) translate(-50%) translateY(-50%);opacity:1}\n",".gui-dark .gui-dialog-wrapper .gui-dialog-content{background:#424242;box-shadow:0 1px 2px #424242;color:#bdbdbd}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:before,.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-dialog-close:after{background:#bdbdbd}\n"],encapsulation:2,changeDetection:0})}return t})(),cue=(()=>{class t{theme$=new se;onTheme(){return this.theme$.asObservable()}nextTheme(e){this.theme$.next(this.toTheme(e))}toTheme(e){switch(e.toLowerCase()){case"fabric":default:return Rt.FABRIC;case"material":return Rt.MATERIAL;case"generic":return Rt.GENERIC;case"light":return Rt.LIGHT;case"dark":return Rt.DARK}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),o0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[jh,cue],imports:[Oe,aI]})}return t})(),s0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),lue=(()=>{class t{elementRef;renderer;width=5;diameter=90;primary=!1;secondary=!1;r=0;circumference=0;croppedCircle=0;circleSize=0;constructor(e,i){this.elementRef=e,this.renderer=i}ngOnChanges(e){this.calculateCircle(),e.primary&&(this.primary?this.addClass("gui-primary"):this.removeClass("gui-primary")),e.secondary&&(this.secondary?this.addClass("gui-secondary"):this.removeClass("gui-secondary"))}ngOnInit(){this.calculateCircle()}calculateCircle(){this.circumference=this.calculateCircumference(this.diameter),this.r=this.calculateR(this.diameter),this.croppedCircle=this.calculateDashes(this.circumference),this.circleSize=this.calculateSize(this.diameter,this.width)}calculateCircumference(e){return e*Math.PI}calculateR(e){return e/2}calculateDashes(e){return.25*e}calculateSize(e,i){return e+i}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275dir=N({type:t,inputs:{width:"width",diameter:"diameter",primary:"primary",secondary:"secondary"},features:[we]})}return t})(),a0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),due=(()=>{class t{elementRef;renderer;name="";checked=!1;disabled=!1;changed=new X;constructor(e,i){this.elementRef=e,this.renderer=i}ngOnChanges(){this.disabled?this.renderer.addClass(this.elementRef.nativeElement,"gui-disabled"):this.renderer.removeClass(this.elementRef.nativeElement,"gui-disabled")}check(){this.checked=!0,this.changed.emit(this.checked)}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["gui-radio-button"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-radio-button",!0)},inputs:{name:"name",checked:"checked",disabled:"disabled"},outputs:{changed:"changed"},features:[we],ngContentSelectors:ja,decls:4,vars:3,consts:[["type","radio",3,"click","checked","disabled"],[1,"gui-radio-checkmark"]],template:function(i,r){1&i&&(jn(),w(0,"label")(1,"input",0),B("click",function(){return r.check()}),E(),L(2,"span",1),an(3),E()),2&i&&(_(),C("checked",r.checked)("disabled",r.disabled),st("name",r.name))},styles:['.gui-radio-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;font:14px Arial;line-height:18px;padding-left:32px;position:relative}.gui-radio-button label{cursor:pointer}.gui-radio-button label:hover .gui-radio-checkmark{border-color:#999}.gui-radio-button input{height:0;opacity:0;position:absolute;width:0}.gui-radio-button .gui-radio-checkmark{border-color:#d6d6d6;border-radius:50%;border-style:solid;border-width:1px;box-sizing:content-box;height:16px;left:0;position:absolute;width:16px}.gui-radio-button input:checked+.gui-radio-checkmark{border-color:#999}.gui-radio-button input:focus+.gui-radio-checkmark{border-color:#6fb4e8}.gui-radio-button.gui-disabled.gui-radio-button{color:#ccc;pointer-events:none}.gui-radio-button .gui-radio-checkmark:after{content:"";display:none;position:absolute}.gui-radio-button input:checked+.gui-radio-checkmark:after{box-sizing:content-box;display:block}.gui-radio-button .gui-radio-checkmark:after{background:#333;border-radius:50%;height:16px;-ms-transform:scale(.5);transform:scale(.5);width:16px}\n',".gui-material .gui-radio-button{font-family:Roboto,Helvetica Neue,sans-serif}\n",".gui-dark .gui-radio-button{color:#bdbdbd}.gui-dark .gui-radio-button .gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:checked+.gui-radio-checkmark{border-color:#878787}.gui-dark .gui-radio-button input:focus+.gui-radio-checkmark{border-color:#ce93d8}.gui-dark .gui-radio-button .gui-radio-checkmark:after{background:#878787}.gui-dark .gui-radio-button.gui-disabled.gui-radio-button{opacity:.36}\n"],encapsulation:2,changeDetection:0})}return t})(),c0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),l0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})();var Er=function(t){return t[t.TOP_RIGHT=0]="TOP_RIGHT",t[t.TOP_LEFT=1]="TOP_LEFT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT",t}(Er||{});let hue=(()=>{class t{renderer;notificationRef;notification;onNotificationClose=new X;unsub$=new se;constructor(e){this.renderer=e}ngOnInit(){this.notification?.timer.enabled&&Dr(this.notification.timer.duration||0).pipe(De(this.unsub$)).subscribe(()=>this.closeNotification())}ngOnDestroy(){this.unsub$.next(),this.unsub$.complete()}closeNotification(){this.addCloseAnimation(),Dr(200).pipe(De(this.unsub$)).subscribe(()=>this.onNotificationClose.emit(this.notification))}addCloseAnimation(){this.notificationRef&&this.renderer.addClass(this.notificationRef.nativeElement,"gui-notification-active")}isRightSide(){return this.notification?.position===Er.TOP_RIGHT||this.notification?.position===Er.BOTTOM_RIGHT}static \u0275fac=function(i){return new(i||t)(g(on))};static \u0275cmp=V({type:t,selectors:[["gui-notification"]],viewQuery:function(i,r){if(1&i&&pe(Dle,5,F),2&i){let o;te(o=ne())&&(r.notificationRef=o.first)}},inputs:{notification:"notification"},outputs:{onNotificationClose:"onNotificationClose"},decls:4,vars:5,consts:[["guiNotification",""],[1,"gui-notification"],[3,"click"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1,0)(2,"gui-close-icon",2),B("click",function(){return $(o),z(r.closeNotification())}),E(),U(3),E()}2&i&&(ae("gui-notification-right-side",r.isRightSide())("gui-notification-left-side",!r.isRightSide()),_(3),Fe(" ",r.notification.description," "))},dependencies:[sI],encapsulation:2,changeDetection:0})}return t})();class gue{description;index;timer;position;constructor(n,e,i,r){this.description=n,this.index=e,this.timer=i,this.position=r}}let KH=(()=>{class t extends im{static DEFAULT_DURATION=4e3;fabricNotification;notificationIndex=0;unsub$=new se;constructor(e,i,r,o){super(e,i,r,o)}ngOnDestroy(){this.removeNotificationContainer()}getComponent(){return fue}open(e,i){let r=Er.TOP_RIGHT;if(i&&i.position&&(r=i.position),this.createFabricNotification(e,r,i),this.isComponentCreated())this.pushNotification(r);else{let o=Rt.FABRIC,s=this.getInjector();i&&i.theme&&(o=i.theme),i&&i.injector&&(s=i.injector);const a=He.create({providers:[{provide:Hh,useValue:o}],parent:s});this.createAndAppend({injector:a}),this.pushNotification(r)}}close(){this.removeNotificationContainer(),this.unsub$.next(),this.unsub$.complete()}removeNotificationContainer(){this.isComponentCreated()&&(this.removeComponent(),this.notificationIndex=0)}createFabricNotification(e,i,r){let o=t.DEFAULT_DURATION,s=!0;r&&r.timer&&(r.timer.duration&&(o=r.timer.duration,r.timer.extendTimer&&(o=r.timer.duration*(this.notificationIndex+1))),void 0!==r.timer.enabled&&(s=r.timer.enabled)),this.fabricNotification=new gue(e,this.notificationIndex,{duration:o,enabled:s},i),this.notificationIndex+=1}pushNotification(e){if(!this.fabricNotification||!this.isComponentCreated())return;const i=this.getComponentRef();switch(e){case Er.TOP_RIGHT:i.instance.notificationsTopRight=i.instance.notificationsTopRight.concat(this.fabricNotification);break;case Er.TOP_LEFT:i.instance.notificationsTopLeft=i.instance.notificationsTopLeft.concat(this.fabricNotification);break;case Er.BOTTOM_RIGHT:i.instance.notificationsBottomRight=i.instance.notificationsBottomRight.concat(this.fabricNotification);break;case Er.BOTTOM_LEFT:i.instance.notificationsBottomLeft=i.instance.notificationsBottomLeft.concat(this.fabricNotification)}i.instance.detectChanges()}static \u0275fac=function(i){return new(i||t)(I(mn),I(yi),I(He),I(Pe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),pue=(()=>{class t{notifications=[];position;onNotificationClose=new X;FabricNotificationPosition=Er;emitClosedNotification(e){this.onNotificationClose.emit(e)}isPosition(e){return this.position===e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-notifications-container"]],hostVars:8,hostBindings:function(i,r){2&i&&ae("gui-notifications-top-right",r.isPosition(r.FabricNotificationPosition.TOP_RIGHT))("gui-notifications-top-left",r.isPosition(r.FabricNotificationPosition.TOP_LEFT))("gui-notifications-bottom-right",r.isPosition(r.FabricNotificationPosition.BOTTOM_RIGHT))("gui-notifications-bottom-left",r.isPosition(r.FabricNotificationPosition.BOTTOM_LEFT))},inputs:{notifications:"notifications",position:"position"},outputs:{onNotificationClose:"onNotificationClose"},decls:1,vars:1,consts:[[3,"notification","onNotificationClose",4,"ngFor","ngForOf"],[3,"onNotificationClose","notification"]],template:function(i,r){1&i&&j(0,Ele,1,1,"gui-notification",0),2&i&&C("ngForOf",r.notifications)},dependencies:[hi,hue],encapsulation:2,changeDetection:0})}return t})(),fue=(()=>{class t extends em{changeDetectorRef;notificationsService;notificationsTopRight=[];notificationsTopLeft=[];notificationsBottomRight=[];notificationsBottomLeft=[];FabricNotificationPosition=Er;constructor(e,i,r,o,s,a){super(i,r,o),this.changeDetectorRef=e,this.notificationsService=a}removeNotification(e){switch(e.position){case Er.TOP_RIGHT:this.notificationsTopRight=this.notificationsTopRight.filter(i=>i.index!==e.index);break;case Er.TOP_LEFT:this.notificationsTopLeft=this.notificationsTopLeft.filter(i=>i.index!==e.index);break;case Er.BOTTOM_RIGHT:this.notificationsBottomRight=this.notificationsBottomRight.filter(i=>i.index!==e.index);break;case Er.BOTTOM_LEFT:this.notificationsBottomLeft=this.notificationsBottomLeft.filter(i=>i.index!==e.index)}this.detectChanges(),this.checkNotificationsLength()}detectChanges(){this.changeDetectorRef.detectChanges()}checkNotificationsLength(){0===this.notificationsTopRight.length&&0===this.notificationsTopLeft.length&&0===this.notificationsBottomRight.length&&0===this.notificationsBottomLeft.length&&this.notificationsService.close()}isContainerNotEmpty(e){return e&&e.length>0}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(on),g(cs),g(Hh),g(_t(()=>KH)))};static \u0275cmp=V({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-notifications-overlay",!0)},features:[O],decls:4,vars:4,consts:[[3,"notifications","position","onNotificationClose",4,"ngIf"],[3,"onNotificationClose","notifications","position"]],template:function(i,r){1&i&&j(0,Sle,1,2,"gui-notifications-container",0)(1,xle,1,2,"gui-notifications-container",0)(2,Ile,1,2,"gui-notifications-container",0)(3,Tle,1,2,"gui-notifications-container",0),2&i&&(C("ngIf",r.isContainerNotEmpty(r.notificationsTopRight)),_(),C("ngIf",r.isContainerNotEmpty(r.notificationsTopLeft)),_(),C("ngIf",r.isContainerNotEmpty(r.notificationsBottomRight)),_(),C("ngIf",r.isContainerNotEmpty(r.notificationsBottomLeft)))},dependencies:[ln,pue],styles:[".gui-notifications-overlay{-ms-flex-align:center;align-items:center;font-family:Arial;-ms-flex-pack:center;justify-content:center;max-width:400px;position:fixed;z-index:1000}.gui-notifications-overlay gui-notifications-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:fixed}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-left{left:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-top-right{right:0;top:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-left{bottom:0;left:0}.gui-notifications-overlay gui-notifications-container.gui-notifications-bottom-right{bottom:0;right:0}.gui-notifications-overlay .gui-notification{background:#fff;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;display:block;margin:16px;padding:32px;position:relative}.gui-notifications-overlay .gui-notification.gui-notification-right-side{animation:loadNotificationRightSide .1s forwards}.gui-notifications-overlay .gui-notification.gui-notification-left-side{animation:loadNotificationLeftSide .1s forwards}@keyframes loadNotificationRightSide{0%{transform:translate(50%)}to{transform:translate(0)}}@keyframes loadNotificationLeftSide{0%{transform:translate(-50%)}to{transform:translate(0)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-right-side{animation:closeNotificationRightSide .2s forwards}@keyframes closeNotificationRightSide{0%{transform:translate(0)}to{transform:translate(100%)}}.gui-notifications-overlay .gui-notification.gui-notification-active.gui-notification-left-side{animation:closeNotificationLeftSide .2s forwards}@keyframes closeNotificationLeftSide{0%{transform:translate(0)}to{transform:translate(-100%)}}\n",".gui-dark .gui-notification{background:#424242}\n",".gui-material .gui-notification{background:#3949ab;color:#fff;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:500}\n"],encapsulation:2,changeDetection:0})}return t})(),ZH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[KH],imports:[Oe,aI]})}return t})(),QH=(()=>{class t extends im{constructor(e,i,r,o){super(e,i,r,o)}getComponent(){return mue}open(e){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e)})}close(){this.removeComponent()}afterCompCreation(e){if(this.isComponentCreated()){const i=this.getComponentRef();i.instance.text=e,i.instance.detectChanges()}}static \u0275fac=function(i){return new(i||t)(I(mn),I(yi),I(He),I(Pe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),mue=(()=>{class t{messageService;changeDetectorRef;text="";constructor(e,i){this.messageService=e,this.changeDetectorRef=i}detectChanges(){this.changeDetectorRef.detectChanges()}close(){this.messageService.close()}static \u0275fac=function(i){return new(i||t)(g(QH),g(me))};static \u0275cmp=V({type:t,selectors:[["gui-message"]],decls:4,vars:1,consts:[[1,"gui-message"],[3,"click"]],template:function(i,r){1&i&&(w(0,"div",0),U(1),w(2,"button",1),B("click",function(){return r.close()}),U(3,"X"),E()()),2&i&&(_(),Fe(" ",r.text," "))},styles:[".gui-message{left:50%;position:fixed;top:50%}\n"],encapsulation:2,changeDetection:0})}return t})(),XH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[QH],imports:[Oe]})}return t})(),bue=(()=>{class t{svgRef;svg="";ngAfterViewInit(){this.svgRef&&(this.svgRef.nativeElement.innerHTML=this.svg)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-svg-template"]],viewQuery:function(i,r){if(1&i&&pe(Mle,5,F),2&i){let o;te(o=ne())&&(r.svgRef=o.first)}},inputs:{svg:"svg"},decls:2,vars:0,consts:[["svgEl",""]],template:function(i,r){1&i&&L(0,"div",null,0)},encapsulation:2,changeDetection:0})}return t})(),vue=(()=>{class t extends $a{renderer;changeDetectorRef;platformId;tabRef;tabItemRef;tabMenuList;menu=[];active="";scrollActive=!1;Direction=za;listPosition=0;menuListWidth=0;scrollAmount=60;ACTIVE_TAB_CLASS_NAME="gui-active";constructor(e,i,r){super(),this.renderer=e,this.changeDetectorRef=i,this.platformId=r}ngAfterViewInit(){this.toggleTab(this.active),this.calculateMenuWidth(),this.showMenuArrows(),this.checkIfMenuFitsOnResize()}toggleTab(e){this.removeActive(),this.setActive(e)}isSvg(e){return"object"==typeof e}getTabName(e){return"object"==typeof e?e.name:e}scrollTabList(e){if(this.tabRef){const i=this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").offsetWidth;e&&this.menuListWidth-i>this.listPosition?this.listPosition+=this.scrollAmount:!e&&this.listPosition>0&&(this.listPosition-=this.scrollAmount),this.tabRef.nativeElement.querySelector(".gui-tab-menu-list").scrollLeft=this.listPosition}}setActive(e){if(this.tabRef&&this.tabItemRef){"object"==typeof e&&(e=e.name);const i=this.tabRef.nativeElement.querySelector('[data-tab="'+e+'"]'),r=this.tabItemRef.nativeElement.querySelector('[data-tab="'+e+'"]');this.addClass(i,this.ACTIVE_TAB_CLASS_NAME),this.addClass(r,this.ACTIVE_TAB_CLASS_NAME)}}removeActive(){if(this.tabRef&&this.tabItemRef){const e=this.tabRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME),i=this.tabItemRef.nativeElement.querySelector("."+this.ACTIVE_TAB_CLASS_NAME);this.removeClass(e,this.ACTIVE_TAB_CLASS_NAME),this.removeClass(i,this.ACTIVE_TAB_CLASS_NAME)}}addClass(e,i){e&&this.renderer.addClass(e,i)}removeClass(e,i){e&&this.renderer.removeClass(e,i)}checkIfMenuFitsOnResize(){fo(this.platformId)&&en(window,"resize").pipe(De(this.unsubscribe$)).subscribe(()=>this.showMenuArrows())}calculateMenuWidth(){this.tabMenuList&&(this.menuListWidth=0,this.tabMenuList.forEach(e=>{this.menuListWidth+=e.nativeElement.offsetWidth}))}showMenuArrows(){if(this.tabRef){const e=this.tabRef.nativeElement.querySelector(".gui-tab-menu").offsetWidth;this.scrollActive=e<this.menuListWidth,this.changeDetectorRef.detectChanges()}}static \u0275fac=function(i){return new(i||t)(g(on),g(me),g(Kn))};static \u0275cmp=V({type:t,selectors:[["gui-tab"]],viewQuery:function(i,r){if(1&i&&(pe(kle,5,F),pe(Ale,5,F),pe(Rle,5,F)),2&i){let o;te(o=ne())&&(r.tabRef=o.first),te(o=ne())&&(r.tabItemRef=o.first),te(o=ne())&&(r.tabMenuList=o)}},hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-tab",!0)},inputs:{menu:"menu",active:"active",scrollActive:"scrollActive"},features:[O],ngContentSelectors:ja,decls:10,vars:3,consts:[["tab",""],["tabItem",""],["tabMenuList",""],[1,"gui-tab-menu"],["class","scroll-button",3,"click",4,"ngIf"],[1,"gui-tab-menu-list"],["class","gui-tab-menu-item",3,"click",4,"ngFor","ngForOf"],[1,"gui-tab-content"],[1,"scroll-button",3,"click"],[3,"direction"],[1,"gui-tab-menu-item",3,"click"],[4,"ngIf"],[3,"svg"]],template:function(i,r){1&i&&(jn(),w(0,"div",null,0)(2,"div",3),j(3,Nle,2,1,"div",4),w(4,"div",5),j(5,Ple,4,3,"div",6),E(),j(6,Lle,2,0,"div",4),E(),w(7,"div",7,1),an(9),E()()),2&i&&(_(3),C("ngIf",r.scrollActive),_(2),C("ngForOf",r.menu),_(),C("ngIf",r.scrollActive))},dependencies:[hi,ln,t0,bue],styles:[".gui-tab{font:14px Arial}.gui-tab .gui-tab-content{background:#fff;border-color:#d6d6d6;border-radius:0 0 4px 4px;border-style:solid;border-width:1px;padding:12px}.gui-tab .gui-tab-menu{display:-ms-flexbox;display:flex;margin-bottom:-1px}.gui-tab .gui-tab-menu .gui-tab-menu-list{border-radius:4px 4px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden}.gui-tab .gui-tab-menu .gui-tab-menu-item{background:#fafafa;border-color:#d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;box-sizing:border-box;cursor:pointer;display:inline-block;height:34px;margin-right:2px;padding:8px 16px;position:relative;text-align:center;white-space:nowrap}.gui-tab .gui-tab-menu .gui-tab-menu-item:nth-last-child(1){margin-right:0}.gui-tab .gui-tab-menu .gui-tab-menu-item svg{height:16px;width:16px}.gui-tab .gui-tab-menu .gui-tab-menu-item svg path{fill:#aaa}.gui-tab .gui-tab-menu .scroll-button{background:transparent;box-sizing:border-box;color:#ccc;cursor:pointer;font-weight:700;height:34px;padding:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-tab .gui-tab-menu .scroll-button:hover svg path{stroke:#464646}.gui-tab .gui-tab-item{display:none}.gui-tab .gui-active.gui-tab-menu-item{background:#fff;border-color:#d6d6d6 #d6d6d6 #fff #d6d6d6;border-radius:4px 4px 0 0;border-style:solid;border-width:1px;color:#2185d0}.gui-tab .gui-active.gui-tab-menu-item svg path{fill:#2185d0}.gui-tab .gui-active.gui-tab-item{display:block}\n",".gui-material .gui-tab{font:14px Roboto,Helvetica Neue,sans-serif}\n",".gui-dark .gui-tab{color:#bdbdbd}.gui-dark .gui-tab .gui-tab-content{background:#424242;border-color:#616161}.gui-dark .gui-tab .gui-tab-menu-item{background:#616161;border-color:transparent}.gui-dark .gui-tab .gui-active.gui-tab-menu-item{background:#424242;border-color:#616161 #616161 transparent #616161;color:#ce93d8}\n"],encapsulation:2,changeDetection:0})}return t})(),_ue=(()=>{class t{tab="";static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-tab-item"]],inputs:{tab:"tab"},ngContentSelectors:ja,decls:2,vars:1,consts:[[1,"gui-tab-item"]],template:function(i,r){1&i&&(jn(),w(0,"div",0),an(1),E()),2&i&&st("data-tab",r.tab)},encapsulation:2,changeDetection:0})}return t})(),yue=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),Gh=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,iI,yue]})}return t})(),wue=(()=>{class t{elementRef;text="";left=0;top=0;constructor(e){this.elementRef=e}correctPosition(){this.top-=this.elementRef.nativeElement.offsetHeight}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["ng-component"]],hostVars:6,hostBindings:function(i,r){2&i&&(Ut("left",r.left,"px")("top",r.top,"px"),ae("gui-tooltip",!0))},decls:1,vars:1,template:function(i,r){1&i&&U(0),2&i&&Fe(" ",r.text," ")},styles:['.gui-tooltip{background:rgba(0,0,0,.8);border-radius:4px;border-style:solid;border-width:0;box-sizing:border-box;color:#fff;display:block;font:14px Arial;font-weight:400;padding:8px 12px;position:absolute;-ms-transform:translateX(-50%);transform:translate(-50%);vertical-align:middle;z-index:10}.gui-tooltip:after{border-color:#333 transparent transparent transparent;border-style:solid;border-width:5px;content:"";left:50%;margin-left:-5px;position:absolute;top:100%}\n'],encapsulation:2,changeDetection:0})}return t})(),cI=(()=>{class t extends $a{componentFactoryResolver;injector;elementRef;applicationRef;document;platformId;static tooltipOffset=8;text="";tooltipRef=null;tooltipTopPosition;tooltipLeftPosition;constructor(e,i,r,o,s,a){super(),this.componentFactoryResolver=e,this.injector=i,this.elementRef=r,this.applicationRef=o,this.document=s,this.platformId=a}ngOnInit(){const e=en(this.elementRef.nativeElement,"mouseenter"),i=en(this.elementRef.nativeElement,"mouseleave");e.pipe(De(this.unsubscribe$)).subscribe(()=>this.show()),i.pipe(De(this.unsubscribe$)).subscribe(()=>{this.tooltipRef&&this.hide()})}show(){const e=this.componentFactoryResolver.resolveComponentFactory(wue).create(this.injector);e.instance.text=this.text,e.changeDetectorRef.detectChanges(),this.document.body.appendChild(e.hostView.rootNodes[0]),this.tooltipRef=e,this.calculateCords(),this.tooltipRef.instance.correctPosition(),this.tooltipRef.changeDetectorRef.detectChanges()}hide(){this.tooltipRef&&(this.applicationRef.detachView(this.tooltipRef.hostView),this.tooltipRef.destroy(),this.tooltipRef=null)}calculateCords(){if(this.tooltipRef){const e=this.elementRef.nativeElement,i=e.getBoundingClientRect(),r=i.bottom,o=i.left;fo(this.platformId)&&(this.tooltipTopPosition=r+window.scrollY-e.offsetHeight-t.tooltipOffset,this.tooltipLeftPosition=window.scrollX+o+e.offsetWidth/2,this.tooltipTopPosition&&(this.tooltipRef.instance.top=this.tooltipTopPosition),this.tooltipLeftPosition&&(this.tooltipRef.instance.left=this.tooltipLeftPosition),this.tooltipRef.changeDetectorRef.detectChanges())}}static \u0275fac=function(i){return new(i||t)(g(mn),g(He),g(F),g(yi),g(Pe),g(Kn))};static \u0275dir=N({type:t,selectors:[["","gui-tooltip",""]],inputs:{text:[ee.None,"gui-tooltip","text"]},exportAs:["guiTooltip"],features:[O]})}return t})(),rm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({})}return t})(),Cue=(()=>{class t{window;static BORDER_WIDTH=1;verticalPosition=0;horizontalPosition=0;canOpenUpward=!1;constructor(e,i,r){this.window=r,this.calculateCords(e,i)}getVerticalPosition(){return this.verticalPosition}getHorizontalPosition(){return this.horizontalPosition}getCanOpenUpward(){return this.canOpenUpward}calculateCords(e,i){const r=e.nativeElement.getBoundingClientRect(),o=this.window.pageYOffset+r.bottom;this.horizontalPosition=this.window.pageXOffset+r.left,this.verticalPosition=o-t.BORDER_WIDTH,this.calculateDirection(i,e)}calculateDirection(e,i){const r=this.window.innerHeight+this.window.pageYOffset,o=i.nativeElement.offsetHeight,s=e.getHeight();r-this.verticalPosition-s<0&&(this.canOpenUpward=!0,this.verticalPosition-=s+o-t.BORDER_WIDTH)}}return t})();class Due{selectOptionsGeometry;constructor(n){this.selectOptionsGeometry=n}getHeight(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetHeight}getWidth(){return this.selectOptionsGeometry.nativeElement.querySelector(".gui-options-list").offsetWidth}}let u0=(()=>{class t{platformId;selectContainerGeometry;selectOptionsCords$=new UH(1);constructor(e){this.platformId=e}onSelectOptionsCords(){return this.selectOptionsCords$.asObservable()}setGeometry(e){this.selectContainerGeometry=new Due(e)}nextCords(e){if(fo(this.platformId)&&this.selectContainerGeometry){const i=new Cue(e,this.selectContainerGeometry,window);this.selectOptionsCords$.next(i)}}static \u0275fac=function(i){return new(i||t)(I(Kn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),lI=(()=>{class t{selectedOption$=new UH(1);onSelectedOption(){return this.selectedOption$.asObservable()}next(e){this.selectedOption$.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Eue=(()=>{class t extends em{selectOptionsGeometryService;selectService;changeDetectorRef;optionListRef;options=[];optionsContainerLeftAttribute=0;optionsContainerTopAttribute=0;width=100;selectedOption;canOpenUpward=!1;constructor(e,i,r,o,s,a){super(o,s,a),this.selectOptionsGeometryService=e,this.selectService=i,this.changeDetectorRef=r}ngOnInit(){this.selectOptionsGeometryService.onSelectOptionsCords().pipe(De(this.unsubscribe$)).subscribe(e=>{this.optionsContainerTopAttribute=e.getVerticalPosition(),this.optionsContainerLeftAttribute=e.getHorizontalPosition(),this.canOpenUpward=e.getCanOpenUpward(),this.changeDetectorRef.detectChanges()}),this.selectService.onSelectedOption().pipe(De(this.unsubscribe$)).subscribe(e=>{this.selectedOption=e,this.changeDetectorRef.detectChanges()})}ngAfterViewInit(){super.ngAfterViewInit(),this.initOpenAnimation()}getElementRef(){return super.getElementRef()}detectChanges(){this.changeDetectorRef.detectChanges()}selectOption(e){this.selectService.next(e)}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e.value?e.value:e.name}initOpenAnimation(){if(this.optionListRef){const e=this.optionListRef.nativeElement;this.getRenderer().addClass(e,"gui-options-opened")}}static \u0275fac=function(i){return new(i||t)(g(u0),g(lI),g(me),g(F),g(on),g(cs))};static \u0275cmp=V({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&pe(Ble,5,F),2&i){let o;te(o=ne())&&(r.optionListRef=o.first)}},features:[O],decls:3,vars:9,consts:[["optionList",""],[1,"gui-options-list"],["class","gui-option",3,"gui-option-selected","width","click",4,"ngFor","ngForOf"],[1,"gui-option",3,"click"]],template:function(i,r){1&i&&(w(0,"div",1,0),j(2,Vle,2,5,"div",2),E()),2&i&&(Ut("left",r.optionsContainerLeftAttribute,"px")("top",r.optionsContainerTopAttribute,"px"),ae("gui-upward",r.canOpenUpward)("gui-downward",!r.canOpenUpward),_(2),C("ngForOf",r.options))},dependencies:[hi],encapsulation:2,changeDetection:0})}return t})(),JH=(()=>{class t extends im{selectOptionsGeometryService;constructor(e,i,r,o,s){super(i,r,o,s),this.selectOptionsGeometryService=e}getComponent(){return Eue}open(e,i){this.createAndAppend({afterCompCreation:()=>this.afterCompCreation(e,i)})}closeOptions(){this.removeComponent()}afterCompCreation(e,i){if(this.isComponentCreated()){const r=this.getComponentRef();r.instance.options=e,r.instance.width=i,r.instance.detectChanges(),this.selectOptionsGeometryService.setGeometry(r.instance.getElementRef()),r.instance.detectChanges()}}static \u0275fac=function(i){return new(i||t)(I(u0),I(mn),I(yi),I(He),I(Pe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),uI=(()=>{class t extends $a{selectService;selectOptionsGeometryService;selectOptionModalService;changeDetectorRef;platformId;elementRef;renderer;containerRef;options=[];placeholder="...";selected;width=100;disabled=!1;optionChanged=new X;selectedOption;containerText;scrollListenerFn;doNotEmitValues=!1;opened=!1;constructor(e,i,r,o,s,a,c){super(),this.selectService=e,this.selectOptionsGeometryService=i,this.selectOptionModalService=r,this.changeDetectorRef=o,this.platformId=s,this.elementRef=a,this.renderer=c}ngOnChanges(e){e.placeholder&&(this.containerText=this.placeholder),e.selected&&this.selected&&this.tryToSelect(this.selected)}ngOnInit(){this.selectService.onSelectedOption().pipe(De(this.unsubscribe$)).subscribe(e=>{this.emitSelectedOption(e),this.selectedOption=e,this.containerText=e.value??"",this.doNotEmitValues=!1,this.changeDetectorRef.detectChanges()}),this.selectOptionsGeometryService.onSelectOptionsCords().pipe(De(this.unsubscribe$)).subscribe(e=>{e.getCanOpenUpward()?this.openUpward():this.openDownward()})}tryToOpen(e){this.isContainerDisabled(e)?e.stopPropagation():(this.open(this.options,this.width),this.toggleOptions(!this.opened),this.changeDetectorRef.detectChanges())}clickOutside(e){this.isContainerClicked(e)&&this.toggleOptions(!1)}toggleOptions(e){this.opened=e,this.maintainOptionsListPosition(),this.opened||this.closeOptions()}isOptionSelected(e){return this.selectedOption?.name===e.name}getOptionValue(e){return e?e.value?e.value:e.name:""}open(e,i){this.containerRef&&(this.closeSelect(),this.selectOptionModalService.open(e,i),this.selectOptionsGeometryService.nextCords(this.containerRef))}tryToSelect(e){(!this.selectedOption||e.name!==this.selectedOption.name)&&(this.doNotEmitValues=!0,this.selectService.next(e),this.selectedOption=e,this.containerText=this.getOptionValue(e))}maintainOptionsListPosition(){fo(this.platformId)&&(this.opened?this.scrollListenerFn=this.renderer.listen("window","scroll",()=>{this.containerRef&&this.selectOptionsGeometryService.nextCords(this.containerRef)}):this.scrollListenerFn&&this.scrollListenerFn())}closeSelect(){this.selectOptionModalService.closeOptions()}emitSelectedOption(e){this.doNotEmitValues||this.isOptionSelected(e)||this.optionChanged.emit(e)}openDownward(){this.addClass("gui-options-opened"),this.addClass("gui-downward"),this.removeClass("gui-upward")}openUpward(){this.addClass("gui-options-opened"),this.addClass("gui-upward"),this.removeClass("gui-downward")}closeOptions(){this.elementRef.nativeElement.classList.contains("gui-options-opened")&&(this.removeClass("gui-options-opened"),this.closeSelect())}isContainerClicked(e){return!this.elementRef.nativeElement.contains(e.target)}isContainerDisabled(e){return e.target.classList.contains("gui-disabled")}addClass(e){this.renderer.addClass(this.elementRef.nativeElement,e)}removeClass(e){this.renderer.removeClass(this.elementRef.nativeElement,e)}static \u0275fac=function(i){return new(i||t)(g(lI),g(u0),g(JH),g(me),g(Kn),g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["gui-select"]],viewQuery:function(i,r){if(1&i&&pe(Zf,5,F),2&i){let o;te(o=ne())&&(r.containerRef=o.first)}},hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-select",!0)},inputs:{options:"options",placeholder:"placeholder",selected:"selected",width:"width",disabled:"disabled"},outputs:{optionChanged:"optionChanged"},features:[ye([lI,u0,JH]),O,we],decls:5,vars:5,consts:[["container",""],[1,"gui-select-container",3,"click"],[1,"gui-select-value"],[1,"gui-select-arrow"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1,0),B("click",function(a){return $(o),z(r.tryToOpen(a))})("click",function(a){return $(o),z(r.clickOutside(a))},!1,yp),w(2,"div",2),U(3),E(),L(4,"span",3),E()}2&i&&(Ut("width",r.width,"px"),ae("gui-disabled",r.disabled),_(3),Fe(" ",r.containerText," "))},styles:[".gui-select .gui-select-container{min-height:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;border-radius:4px;border-style:solid;border-width:1px;box-sizing:content-box;color:#333;cursor:pointer;display:inline-block;font:14px Arial;padding:8px 24px 8px 12px;position:relative}.gui-select .gui-select-container:hover{border-color:#999}.gui-select .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:#595959 transparent transparent transparent;height:0;margin:8px;position:absolute;right:5px;top:5px;width:0}.gui-select.gui-options-opened .gui-select-container{border-color:#6fb4e8 #6fb4e8 transparent #6fb4e8;border-radius:4px 4px 0 0;border-width:1px}.gui-select.gui-downward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-downward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:1px 0 0 0}.gui-select.gui-upward .gui-select-container{padding:8px 12px 8px 24px;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-value{-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select.gui-upward .gui-select-container .gui-select-arrow{border:4px solid transparent;border-color:transparent transparent #595959 transparent;bottom:5px;left:5px;top:auto}.gui-select.gui-upward .gui-options-list{border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-top:none;border-width:1px}.gui-select.gui-upward .gui-option{border-color:#e6e6e6;border-style:solid;border-width:0 0 1px 0;-ms-transform:rotate(180deg);transform:rotate(180deg)}.gui-select .gui-disabled{color:#ccc;pointer-events:none}.gui-select .gui-disabled .gui-select-arrow{border-color:#cccccc transparent transparent transparent}.gui-select .initAnimationDisabled.gui-options-list{display:none}.gui-options-list{background:#fff;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px;overflow:hidden;padding:0;position:absolute;z-index:1000}.gui-options-list .gui-option{box-sizing:content-box;cursor:pointer;font-size:14px;list-style-type:none;padding:8px 24px 8px 12px}.gui-options-list .gui-option:hover{background:#dcdcdc}.gui-options-list .gui-option-selected{background:#e6e6e6;font-weight:700}.gui-options-list.gui-upward{animation:loadUpward .2s forwards;border-bottom:none;border-color:#6fb4e8;border-radius:4px 4px 0 0;border-style:solid;border-width:1px}@keyframes loadUpward{0%{transform:translateY(50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}.gui-options-list.gui-downward{animation:loadDownward .2s forwards;border-color:#6fb4e8;border-radius:0 0 4px 4px;border-style:solid;border-width:0 1px 1px 1px}@keyframes loadDownward{0%{transform:translateY(-50%) scaleY(0)}to{transform:translateY(0) scaleY(1)}}\n",".gui-material .gui-select .gui-select-container,.gui-material .gui-options-list .gui-option{font-family:Roboto,Helvetica Neue,sans-serif}\n",".gui-dark .gui-select .gui-select-container{background:#424242;border-color:#616161;color:#bdbdbd}.gui-dark .gui-select .gui-select-container:hover{border-color:#ce93d8}.gui-dark .gui-select .gui-select-container .gui-select-arrow{border-color:#ce93d8 transparent transparent transparent}.gui-dark .gui-select.gui-options-opened .gui-select-container{border-color:#ce93d8}.gui-dark .gui-select.gui-upward .gui-select-container .gui-select-arrow{border-color:transparent transparent #ce93d8 transparent}.gui-dark .gui-select .gui-disabled{opacity:.36}.gui-dark .gui-options-list{border-color:#ce93d8}.gui-dark .gui-options-list .gui-option{background:#424242;border-color:#757575;color:#bdbdbd}.gui-dark .gui-options-list .gui-option:hover{background:#616161}.gui-dark .gui-options-list .gui-option-selected{background:#757575}\n",".gui-light .gui-select .gui-select-container{background:#fff;color:#333;font-family:Roboto,Helvetica Neue,sans-serif}.gui-light .gui-options-list .gui-option:hover{background:#f6f6f5}\n"],encapsulation:2,changeDetection:0})}return t})(),d0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),eU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),Sue=(()=>{class t extends lue{color="";constructor(e,i){super(e,i)}ngOnInit(){super.ngOnInit()}static \u0275fac=function(i){return new(i||t)(g(F),g(on))};static \u0275cmp=V({type:t,selectors:[["gui-spinner"]],hostVars:2,hostBindings:function(i,r){2&i&&ae("gui-spinner",!0)},inputs:{color:"color"},features:[O],decls:5,vars:30,consts:[[1,"gui-spinner"],[1,"circle-outer"],["cx","50%","cy","50%"],[1,"circle-inner"]],template:function(i,r){1&i&&(w(0,"div",0),Ln(),w(1,"svg",1),L(2,"circle",2),E(),w(3,"svg",3),L(4,"circle",2),E()()),2&i&&(Ut("height",r.circleSize,"px")("width",r.circleSize,"px"),_(),Ut("height",r.circleSize,"px")("width",r.circleSize,"px"),_(),Ut("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),st("r",r.r),_(),Ut("height",r.circleSize,"px")("width",r.circleSize,"px"),_(),Ut("stroke-dasharray",r.croppedCircle)("stroke-dashoffset",r.circumference)("stroke-width",r.width)("stroke",r.color),st("r",r.r))},styles:["@keyframes gui-spin{0%{transform:rotate(-90deg)}to{transform:rotate(270deg)}}@keyframes gui-spin-reverse{0%{transform:rotate(-90deg) scale(.8)}to{transform:rotate(270deg) scale(.8)}}.gui-spinner{display:inline-block;margin:4px;position:relative;-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.gui-spinner circle{fill:transparent;stroke:#999}.gui-spinner svg{position:absolute}.gui-spinner .circle-inner{animation:gui-spin-reverse 2s infinite linear forwards reverse}.gui-spinner .circle-outer{animation:gui-spin 2s infinite linear forwards}.gui-primary .gui-spinner.gui-spinner circle{stroke:#2185d0}.gui-secondary .gui-spinner.gui-spinner circle{stroke:#3cb371}\n",".gui-material .gui-spinner circle{stroke:#3949ab}.gui-material .gui-primary .gui-spinner circle{stroke:#6200ee}.gui-material .gui-secondary .gui-spinner circle{stroke:#0097a7}\n",".gui-dark .gui-spinner circle{stroke:#424242}.gui-dark .gui-primary .gui-spinner circle{stroke:#ce93d8}.gui-dark .gui-secondary .gui-spinner circle{stroke:#80cbc4}\n"],encapsulation:2,changeDetection:0})}return t})(),h0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),g0=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,as,as]})}return t})(),tU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),xue=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),nU=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,xue]})}return t})(),yu=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[cs],imports:[Oe,Jy,as,e0,GH,Qc,_u,rI,n0,r0,o0,nm,c0,l0,nU,ZH,XH,Gh,rm,s0,a0,d0,eU,h0,g0,tU,Xc,Jy,as,e0,GH,Qc,_u,rI,n0,r0,o0,nm,c0,l0,nU,ZH,XH,Gh,rm,s0,a0,d0,eU,h0,g0,tU,Xc]})}return t})();function p0(t,n=Vh){return qt((e,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const l=o;o=null,i.next(l)}};function c(){const l=s+t,u=n.now();if(u<l)return r=this.schedule(void 0,l-u),void i.add(r);a()}e.subscribe(Mt(i,l=>{o=l,s=n.now(),r||(r=n.schedule(c,t),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}const Mue=pi,{isArray:kue}=Array;function iU(t){return 1===t.length&&kue(t[0])?t[0]:t}function f0(...t){const n=B_(t),e=iU(t);return e.length?new rt(i=>{let r=e.map(()=>[]),o=e.map(()=>!1);i.add(()=>{r=o=null});for(let s=0;!i.closed&&s<e.length;s++)Gn(e[s]).subscribe(Mt(i,a=>{if(r[s].push(a),r.every(c=>c.length)){const c=r.map(l=>l.shift());i.next(n?n(...c):c),r.some((l,u)=>!l.length&&o[u])&&i.complete()}},()=>{o[s]=!0,!r[s].length&&i.complete()}));return()=>{r=o=null}}):yr}const Aue=["gui-row-detail",""],Rue=["gui-paging-navigator","","paging",""],Nue=["gui-paging-select","","paging",""],Oue=["gui-paging-stats","","paging",""];function Fue(t,n){if(1&t&&(Qe(0),w(1,"span",2)(2,"span"),U(3),E(),U(4," - "),w(5,"span"),U(6),E()(),w(7,"span"),U(8),je(9,"guiTranslate"),E(),w(10,"span",3),U(11),E(),nt()),2&t){const e=M();_(3),ft(e.firstItemIndex),_(3),ft(e.lastItemIndex),_(2),Fe(" ",Ye(9,4,"pagingOf")," "),_(3),Fe(" ",e.sourceSize," ")}}function Pue(t,n){1&t&&(w(0,"span",4),U(1),je(2,"guiTranslate"),E()),2&t&&(_(),Fe(" ",Ye(2,1,"pagingNoItems")," "))}const Lue=["gui-paging-alternative-navigator","","paging","","sourceSize",""],Bue=["*"],Vue=["gui-paging-alternative-pages","","paging",""];function Hue(t,n){if(1&t){const e=he();w(0,"div")(1,"div",3)(2,"div",4),B("click",function(){const r=$(e).$implicit;return z(M(2).goToPage(r))}),U(3),E()()()}if(2&t){const e=n.$implicit,i=M(2);_(),ae("gui-paging-active-page",i.activePage(e))("gui-paging-visible-page",i.calculateVisiblePages(e)),_(2),Fe(" ",e," ")}}function Uue(t,n){if(1&t&&(Qe(0),j(1,Hue,4,5,"div",2),nt()),2&t){const e=M();_(),C("ngForOf",e.pages)}}function jue(t,n){1&t&&(w(0,"span",5),U(1),je(2,"guiTranslate"),E()),2&t&&(_(),Fe(" ",Ye(2,1,"pagingNoItems")," "))}const Gue=["gui-paging","","position",""];function $ue(t,n){if(1&t){const e=he();Qe(0),w(1,"div",4),B("pageSizeChanged",function(r){return $(e),z(M(3).changePageSize(r))}),E(),L(2,"div",5),w(3,"div",6),B("nextPageChanged",function(){$(e);const r=M(2).$implicit;return z(M().nextPage(r.sourceSize))})("prevPageChanged",function(){return $(e),z(M(3).prevPage())}),E(),nt()}if(2&t){const e=M(2).$implicit;_(),C("paging",e.paging),_(),C("paging",e.paging),_(),C("paging",e.paging)("sourceSize",e.sourceSize)}}function zue(t,n){if(1&t){const e=he();L(0,"div",5),w(1,"div",6),B("nextPageChanged",function(){$(e);const r=M(2).$implicit;return z(M().nextPage(r.sourceSize))})("prevPageChanged",function(){return $(e),z(M(3).prevPage())}),E()}if(2&t){const e=M(2).$implicit;C("paging",e.paging),_(),C("paging",e.paging)("sourceSize",e.sourceSize)}}function Wue(t,n){if(1&t&&(Qe(0),j(1,$ue,4,4,"ng-container",3)(2,zue,2,3,"ng-template",null,0,Ct),nt()),2&t){const e=Gi(3),i=M(2);_(),C("ngIf",!i.minimal)("ngIfElse",e)}}function que(t,n){if(1&t){const e=he();Qe(0),w(1,"div",4),B("pageSizeChanged",function(r){return $(e),z(M(2).changePageSize(r))}),E(),w(2,"div",7),B("nextPageChanged",function(){$(e);const r=M().$implicit;return z(M().nextPage(r.sourceSize))})("prevPageChanged",function(){return $(e),z(M(2).prevPage())}),L(3,"div",8),E(),nt()}if(2&t){const e=M().$implicit;_(),C("paging",e.paging),_(),C("paging",e.paging)("sourceSize",e.sourceSize),_(),C("paging",e.paging)("sourceSize",e.sourceSize)}}function Yue(t,n){if(1&t&&(Qe(0),j(1,Wue,4,2,"ng-container",2)(2,que,4,5,"ng-container",2),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e.isPagingVisible&&!e.alternativeDisplay),_(),C("ngIf",e.isPagingVisible&&e.alternativeDisplay)}}const dI=["value",""];function Kue(t,n){1&t&&L(0,"gui-percentage-view",3),2&t&&C("value",M().value)}function Zue(t,n){if(1&t&&(Qe(0),L(1,"span",2),je(2,"guiSafe"),nt()),2&t){const e=M();_(),C("innerHTML",sh(2,1,e.value.value,"html"),Gl)}}function Que(t,n){if(1&t&&(w(0,"span"),U(1),E()),2&t){const e=M();_(),Fe(" ",e.value.value," ")}}const Xue=["text"],rU=["number"],Jue=["chip"],ede=["link"],tde=["image"],oU=["checkbox"],nde=["bold"],ide=["italic"],rde=["custom"],ode=["function"],sde=["html"],sU=["date"],ade=["bar"],cde=["percentageBar"],lde=["percentage"];function ude(t,n){1&t&&L(0,"gui-view-text",15),2&t&&C("value",n.element)}function dde(t,n){if(1&t&&(w(0,"span",16),U(1),E()),2&t){const e=n.element;_(),Fe(" ",e.value," ")}}function hde(t,n){if(1&t&&(w(0,"gui-chip"),L(1,"gui-view-text",15),E()),2&t){const e=n.element;_(),C("value",e)}}function gde(t,n){if(1&t&&(w(0,"a",17),L(1,"gui-view-text",15),E()),2&t){const e=n.element;oh("href",e.value,bp),_(),C("value",e)}}function pde(t,n){1&t&&L(0,"img",18),2&t&&oh("src",n.element.value,bp)}function fde(t,n){if(1&t&&(w(0,"span",19),L(1,"gui-checkbox",20),E()),2&t){const e=n.element;_(),C("checked",!!e.value)("disabled",!0)}}function mde(t,n){1&t&&L(0,"gui-view-text",21),2&t&&C("value",n.element)}function bde(t,n){1&t&&L(0,"gui-view-text",22),2&t&&C("value",n.element)}function vde(t,n){1&t&&U(0),2&t&&Fe(" ",n.element.value," ")}function _de(t,n){1&t&&L(0,"gui-function-view",23),2&t&&C("element",n.element)}function yde(t,n){1&t&&L(0,"gui-html-view",23),2&t&&C("element",n.element)}function wde(t,n){if(1&t&&(w(0,"span",24),U(1),je(2,"date"),E()),2&t){const e=n.element;_(),ft(sh(2,1,e.value,"dd/MM/yyyy"))}}function Cde(t,n){1&t&&L(0,"gui-bar-view",25),2&t&&C("value",n.element.value)("showPercentage",!1)}function Dde(t,n){1&t&&L(0,"gui-bar-view",25),2&t&&C("value",n.element.value)("showPercentage",!0)}function Ede(t,n){1&t&&L(0,"gui-percentage-view",15),2&t&&C("value",n.element.value)}const Sde=["input"],xde=["datepicker"],Ide=["string"],Tde=["boolean"],Mde=["empty"];function kde(t,n){if(1&t&&L(0,"gui-string-edit",5),2&t){const i=n.value,r=n.status,o=n.focus;C("valueChanges",n.valueChanges)("value",i)("status",r)("focus",o)}}function Ade(t,n){if(1&t&&L(0,"gui-number-edit",5),2&t){const i=n.value,r=n.status,o=n.focus;C("valueChanges",n.valueChanges)("value",i)("status",r)("focus",o)}}function Rde(t,n){if(1&t&&L(0,"gui-boolean-edit",5),2&t){const i=n.value,r=n.status,o=n.focus;C("valueChanges",n.valueChanges)("value",i)("status",r)("focus",o)}}function Nde(t,n){if(1&t&&L(0,"gui-date-edit",6),2&t){const i=n.value,r=n.status,o=n.focus,s=n.parent;C("valueChanges",n.valueChanges)("value",i)("status",r)("focus",o)("parent",s)}}function Ode(t,n){}const Fde=["gui-structure-summaries-panel","","enabled",""];function Pde(t,n){1&t&&L(0,"div",4)}function Lde(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.countTooltip),_(),ft(Ye(3,3,"summariesCount")),_(3),ft(i.summaries.get(e.getFieldId().getId()).count)}}function Bde(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.distinctTooltip),_(),ft(Ye(3,3,"summariesDist")),_(3),ft(i.summaries.get(e.getFieldId().getId()).distinct)}}function Vde(t,n){if(1&t&&(w(0,"div",7)(1,"span"),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(2),Fe(" ",Ye(3,2,"summariesSum")," "),_(3),ft(i.summaries.get(e.getFieldId().getId()).sum)}}function Hde(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.averageTooltip),_(),ft(Ye(3,3,"summariesAvg")),_(3),ft(i.summaries.get(e.getFieldId().getId()).average)}}function Ude(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.minTooltip),_(),Fe(" ",Ye(3,3,"summariesMin")," "),_(3),ft(i.summaries.get(e.getFieldId().getId()).min)}}function jde(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.maxTooltip),_(),Fe(" ",Ye(3,3,"summariesMax")," "),_(3),ft(i.summaries.get(e.getFieldId().getId()).max)}}function Gde(t,n){if(1&t&&(w(0,"div",7)(1,"span",8),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(),C("gui-tooltip",i.summariesTranslations.medTooltip),_(),ft(Ye(3,3,"summariesMed")),_(3),ft(i.summaries.get(e.getFieldId().getId()).median)}}function $de(t,n){if(1&t&&(w(0,"div",7)(1,"span"),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(2),ft(Ye(3,2,"summariesTruthy")),_(3),ft(i.summaries.get(e.getFieldId().getId()).truthy)}}function zde(t,n){if(1&t&&(w(0,"div",7)(1,"span"),U(2),je(3,"guiTranslate"),E(),w(4,"span",9),U(5),E()()),2&t){const e=M(2).$implicit,i=M(2).$implicit;_(2),ft(Ye(3,2,"summariesFalsy")),_(3),ft(i.summaries.get(e.getFieldId().getId()).falsy)}}function Wde(t,n){if(1&t&&(Qe(0),j(1,Lde,6,5,"div",6)(2,Bde,6,5,"div",6)(3,Vde,6,4,"div",6)(4,Hde,6,5,"div",6)(5,Ude,6,5,"div",6)(6,jde,6,5,"div",6)(7,Gde,6,5,"div",6)(8,$de,6,4,"div",6)(9,zde,6,4,"div",6),nt()),2&t){const e=M().$implicit,i=M(2).$implicit,r=M();_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).count)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).distinct)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).sum)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).average)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).min)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).max)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).median)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).truthy)),_(),C("ngIf",r.isSummariesTypePresent(i.summaries.get(e.getFieldId().getId()).falsy))}}function qde(t,n){if(1&t&&(w(0,"div",5),j(1,Wde,10,9,"ng-container",1),E()),2&t){const e=n.$implicit,i=M(2).$implicit;Ut("width",e.width,"px"),_(),C("ngIf",i.summaries&&!!i.summaries.get(e.getFieldId().getId()))}}function Yde(t,n){if(1&t&&(Qe(0),j(1,Pde,1,0,"div",2),je(2,"guiPush"),j(3,qde,2,3,"div",3),je(4,"guiPush"),nt()),2&t){const e=M(2);_(),C("ngIf",Ye(2,2,e.checkboxSelection$)),_(2),C("ngForOf",Ye(4,4,e.headerColumns$))}}function Kde(t,n){if(1&t&&(Qe(0),j(1,Yde,5,6,"ng-container",1),nt()),2&t){const e=n.$implicit,i=M();_(),C("ngIf",i.enabled&&e.summaries&&!e.sourceEmpty)}}const Zde=["gui-info-dialog",""],Qde=["gui-structure-column-manager",""];function Xde(t,n){1&t&&In(0)}function Jde(t,n){if(1&t){const e=he();w(0,"li",3),B("click",function(){const r=$(e).$implicit;return z(M(2).toggleColumn(r))}),w(1,"gui-checkbox",4),j(2,Xde,1,0,"ng-container",5),E()()}if(2&t){const e=n.$implicit,i=M().$implicit;_(),C("checked",e.isEnabled())("disabled",1===i.enabledColumnsCount&&e.isEnabled()),_(),C("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context)}}function ehe(t,n){if(1&t&&(w(0,"ol",1),j(1,Jde,3,4,"li",2),E()),2&t){const e=n.$implicit;_(),C("ngForOf",e.columns)}}const the=["gui-structure-dialog-column-manager",""],nhe=["gui-structure-schema-manager",""];function ihe(t,n){if(1&t){const e=he();w(0,"li",7),B("click",function(){const r=$(e).$implicit;return z(M().toggleVerticalGrid(r))}),w(1,"gui-checkbox",8),U(2),je(3,"guiTranslate"),E()()}if(2&t){const e=n.$implicit;_(),C("checked",e),_(),Fe(" ",Ye(3,2,"themeManagerModalVerticalGrid")," ")}}function rhe(t,n){if(1&t){const e=he();w(0,"li",7),B("click",function(){const r=$(e).$implicit;return z(M().toggleHorizontalGrid(r))}),w(1,"gui-checkbox",8),U(2),je(3,"guiTranslate"),E()()}if(2&t){const e=n.$implicit;_(),C("checked",e),_(),Fe(" ",Ye(3,2,"themeManagerModalHorizontalGrid")," ")}}const ohe=["gui-schema-manager-dialog",""],she=["gui-structure-column-manager-icon",""],ahe=["gui-structure-schema-manager-icon",""],che=["gui-active-search",""];function lhe(t,n){if(1&t){const e=he();Qe(0),w(1,"div"),U(2," Active search by: "),E(),w(3,"div")(4,"gui-chip"),U(5),E()(),w(6,"div")(7,"button",1),B("click",function(){return $(e),z(M().clearSearch())}),U(8," Clear search "),E()(),nt()}if(2&t){const e=n.$implicit;_(5),ft(e),_(2),C("outline",!0)("primary",!0)}}const uhe=["gui-active-filter-list",""];function dhe(t,n){if(1&t){const e=he();w(0,"div"),U(1),w(2,"span",3),B("click",function(){const r=$(e).$implicit;return z(M(2).removeFilter(r))}),U(3,"X"),E()()}if(2&t){const e=n.$implicit;_(),Fe(" ",e.getText()," ")}}function hhe(t,n){if(1&t&&(Qe(0),j(1,dhe,4,1,"div",2),nt()),2&t){const e=n.$implicit;_(),C("ngForOf",e)}}const ghe=["gui-structure-info-icon",""],phe=["gui-structure-info-panel",""];function fhe(t,n){if(1&t&&(Qe(0),U(1),je(2,"guiTranslate"),w(3,"b"),U(4),je(5,"numberFormatter"),E(),U(6),je(7,"guiTranslate"),nt()),2&t){const e=M(3).$implicit;_(),Fe(" ",Ye(2,3,"infoPanelShowing")," "),_(3),ft(Ye(5,5,e)),_(2),Fe(" ",Ye(7,7,"infoPanelItems")," ")}}function mhe(t,n){if(1&t&&(w(0,"span",5),U(1),je(2,"guiTranslate"),w(3,"b"),U(4),je(5,"numberFormatter"),E(),U(6),je(7,"guiTranslate"),w(8,"b"),U(9),je(10,"numberFormatter"),E(),U(11),je(12,"guiTranslate"),E()),2&t){const e=M(3).$implicit,i=M().$implicit;_(),Fe(" ",Ye(2,5,"infoPanelShowing")," "),_(3),ft(Ye(5,7,i.preparedItemsSize)),_(2),Fe(" ",Ye(7,9,"infoPanelOutOf")," "),_(3),ft(Ye(10,11,e)),_(2),Fe(" ",Ye(12,13,"infoPanelItems")," ")}}function bhe(t,n){if(1&t&&(Qe(0),j(1,fhe,8,9,"ng-container",3)(2,mhe,13,15,"span",4),nt()),2&t){const e=M(2).$implicit,i=M().$implicit;_(),C("ngIf",i.preparedItemsSize===e),_(),C("ngIf",i.preparedItemsSize!==e)}}function vhe(t,n){if(1&t&&(w(0,"div"),j(1,bhe,3,2,"ng-container",3),E()),2&t){const e=M().$implicit,i=M().$implicit;_(),C("ngIf",void 0!==i.preparedItemsSize&&void 0!==e)}}function _he(t,n){if(1&t&&(w(0,"div"),j(1,vhe,2,1,"div",3),E()),2&t){const e=M().$implicit;_(),C("ngIf",e.infoPanelConfig.isSourceSizeEnabled())}}function yhe(t,n){if(1&t){const e=he();w(0,"div",6),B("click",function(){return $(e),z(M(2).openSchemaManager())}),L(1,"div",7),E()}if(2&t){const e=M().$implicit;_(),C("gui-tooltip",e.translations.infoPanelThemeMangerTooltipText)}}function whe(t,n){if(1&t){const e=he();w(0,"div",6),B("click",function(){return $(e),z(M(2).openColumnManager())}),L(1,"div",8),E()}if(2&t){const e=M().$implicit;_(),C("gui-tooltip",e.translations.infoPanelColumnManagerTooltipText)}}function Che(t,n){if(1&t){const e=he();w(0,"div",6),B("click",function(){return $(e),z(M(2).openInfo())}),L(1,"div",9),E()}if(2&t){const e=M().$implicit;_(),C("gui-tooltip",e.translations.infoPanelInfoTooltipText)}}function Dhe(t,n){if(1&t&&(Qe(0),j(1,_he,2,1,"div",0),w(2,"div")(3,"div",1),j(4,yhe,2,1,"div",2)(5,whe,2,1,"div",2)(6,Che,2,1,"div",2),E()(),nt()),2&t){const e=n.$implicit,i=M();_(),C("guiLet",i.totalItemsSize$),_(3),C("ngIf",e.infoPanelConfig.isSchemaManagerEnabled()),_(),C("ngIf",e.infoPanelConfig.isColumnsManagerEnabled()),_(),C("ngIf",e.infoPanelConfig.isInfoDialogEnabled())}}const Ehe=["gui-search-icon",""],She=["formRef"],xhe=["gui-search-bar",""];function Ihe(t,n){if(1&t){const e=he();w(0,"span",6),B("click",function(){return $(e),z(M(2).clear())}),E()}}function The(t,n){if(1&t&&(Qe(0),w(1,"form",2,0),L(3,"div",3)(4,"input",4),je(5,"guiPush"),j(6,Ihe,1,0,"span",5),E(),nt()),2&t){const e=M();_(),C("formGroup",e.searchForm),_(3),C("placeholder",Ye(5,3,e.placeholder$)),_(2),C("ngIf",e.searchForm.controls.searchPhrase.value)}}const Mhe=["gui-structure-top-panel",""],khe=["gui-empty-source","","items",""];function Ahe(t,n){1&t&&(Qe(0),U(1),je(2,"guiTranslate"),nt()),2&t&&(_(),Fe(" ",Ye(2,1,"sourceEmpty"),"\n"))}const Rhe=["gui-structure-menu-column-manager",""],Nhe=["gui-unique-value-list","","fieldId",""];function Ohe(t,n){if(1&t){const e=he();w(0,"div")(1,"gui-checkbox",6),B("changed",function(){const r=$(e).$implicit;return z(M(2).toggleSelect(r))}),U(2),E()()}if(2&t){const e=n.$implicit;_(),C("checked",e.isEnabled()),_(),Fe(" ",e.getValue()," ")}}function Fhe(t,n){if(1&t){const e=he();Qe(0),w(1,"gui-checkbox",1),B("changed",function(){return $(e),z(M().toggleAllSelect())}),U(2," Select all "),E(),w(3,"div",2),j(4,Ohe,3,2,"div",3),E(),w(5,"div",4)(6,"button",5),B("click",function(){return $(e),z(M().clearFilters())}),U(7," Clear "),E()(),nt()}if(2&t){const e=n.$implicit;_(),C("checked",e.selectAllChecked)("indeterminate",e.selectAllIndeterminate),_(3),C("ngForOf",e.uniqueValues),_(2),C("outline",!0)("primary",!0)}}const Phe=["gui-structure-arrow-icon",""],Lhe=["gui-structure-column-config-sort","","column","","dropdownTextTranslation",""];function Bhe(t,n){if(1&t){const e=he();w(0,"gui-dropdown",1)(1,"gui-dropdown-item",2),B("click",function(){$(e);const r=M();return z(r.setSortOrder(r.status.ASC))}),w(2,"div",3),U(3),je(4,"guiTranslate"),L(5,"div",4),E()(),w(6,"gui-dropdown-item",2),B("click",function(){$(e);const r=M();return z(r.setSortOrder(r.status.DESC))}),w(7,"div",3),U(8),je(9,"guiTranslate"),L(10,"div",5),E()(),w(11,"gui-dropdown-item",2),B("click",function(){$(e);const r=M();return z(r.setSortOrder(r.status.NONE))}),U(12),je(13,"guiTranslate"),E()()}if(2&t){const e=M();C("dropdownText",e.dropdownTextTranslation)("placement",e.placement)("showOnHover",!0)("width",225),_(),ae("gui-header-item-active",e.isAscSort()),_(2),Fe(" ",Ye(4,16,"headerMenuMainTabColumnSortAscending")," "),_(2),C("sort",!0),_(),ae("gui-header-item-active",e.isDescSort()),_(2),Fe(" ",Ye(9,18,"headerMenuMainTabColumnSortDescending")," "),_(2),C("position",e.StructureArrowPosition.DOWN)("sort",!0),_(),ae("gui-header-item-active",e.isNoneSort()),_(),Fe(" ",Ye(13,20,"headerMenuMainTabColumnSortNone")," ")}}const Vhe=["gui-structure-column-config-column-hide",""],Hhe=["gui-structure-column-config-column-move","","column",""],Uhe=["headerSortMenu"],jhe=["gui-column-config",""];function Ghe(t,n){if(1&t&&L(0,"div",10),2&t){const e=M(3).$implicit;C("column",M().column)("dropdownTextTranslation",e.translations.headerMenuMainTabColumnSort)}}function $he(t,n){if(1&t){const e=he();Qe(0),w(1,"gui-tab-item",5),j(2,Ghe,1,2,"div",6),w(3,"div",7),B("columnHidden",function(){return $(e),z(M(3).hideColumn())}),E(),w(4,"div",8),B("click",function(){return $(e),z(M(3).highlightColumn())}),U(5),je(6,"guiTranslate"),E(),w(7,"div",9),B("movedLeft",function(){return $(e),z(M(3).moveLeft())})("movedRight",function(){return $(e),z(M(3).moveRight())}),E()(),nt()}if(2&t){const e=M(2).$implicit,i=M();_(),C("tab",e.translations.headerMenuMainTab),_(),C("ngIf",i.column.isSortEnabled()),_(),C("column",i.column),_(2),Fe(" ",Ye(6,5,"headerMenuMainTabHighlightColumn")," "),_(2),C("column",i.column)}}function zhe(t,n){if(1&t&&(Qe(0),w(1,"gui-tab-item",11),L(2,"div",12),E(),nt()),2&t){const e=M(2).$implicit,i=M();_(),C("tab",e.translations.headerMenuFilterTab),_(),C("fieldId",i.column.getFieldId())}}function Whe(t,n){if(1&t&&(Qe(0),w(1,"gui-tab-item",11),L(2,"div",13),E(),nt()),2&t){const e=M(2).$implicit;_(),C("tab",e.translations.headerMenuColumnsTab)}}function qhe(t,n){if(1&t&&(w(0,"div",2)(1,"gui-tab",3),j(2,$he,8,7,"ng-container",4)(3,zhe,3,2,"ng-container",4)(4,Whe,3,1,"ng-container",4),E()()),2&t){const e=M().$implicit;_(),C("active",e.config.getActiveMenu())("menu",e.config.getMenus()),_(),C("ngIf",e.config.isMainEnabled()),_(),C("ngIf",e.config.isFilteringEnabled()),_(),C("ngIf",e.config.isColumnManagerEnabled())}}function Yhe(t,n){if(1&t&&(Qe(0),j(1,qhe,5,5,"div",1),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e.isEnabled)}}const Khe=["gui-select-custom-modal",""];function Zhe(t,n){if(1&t){const e=he();w(0,"li",2),B("click",function(){const r=$(e).$implicit;return z(M(2).selectCustom(r.getCustomSelectId()))}),U(1),E()}if(2&t){const e=n.$implicit;st("id",e.key),_(),Fe(" ",e.text," ")}}function Qhe(t,n){if(1&t&&(w(0,"ul"),j(1,Zhe,2,2,"li",1),E()),2&t){const e=n.$implicit;_(),C("ngForOf",e.getSelections())}}const Xhe=["gui-select-all",""];function Jhe(t,n){if(1&t){const e=he();w(0,"gui-checkbox",2),B("changed",function(){$(e);const r=M().$implicit;return z(M().toggleSelectAll(r.isAllIndeterminate,r.isAllChecked))}),E()}if(2&t){const e=M().$implicit;C("checked",e.isAllChecked)("gui-tooltip","Select")("indeterminate",e.isAllIndeterminate)}}function ege(t,n){if(1&t&&(Qe(0),j(1,Jhe,1,3,"gui-checkbox",1),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e.modeMulti)}}const tge=["gui-structure-menu-icon",""],nge=["headerDialogContainer"],ige=["gui-structure-column-config-trigger",""];function rge(t,n){if(1&t){const e=he();w(0,"div",2,0),B("click",function(){return $(e),z(M().openConfigDialog())}),L(2,"div",3),E()}2&t&&(_(2),C("ngClass","gui-header-menu-icon"))}const oge=["selectCustomContainer"],sge=["gui-structure-header-columns","","columns",""],age=t=>({"gui-header-sortable":t});function cge(t,n){1&t&&(w(0,"div",2),L(1,"div",3),E())}function lge(t,n){1&t&&In(0)}function uge(t,n){1&t&&L(0,"div",10),2&t&&C("position",M().$implicit.getSortStatus())("sort",!0)}function dge(t,n){if(1&t){const e=he();w(0,"div",4),B("click",function(){const r=$(e).$implicit;return z(M().toggleSort(r))}),w(1,"div",5),j(2,lge,1,0,"ng-container",6)(3,uge,1,2,"div",7),E(),w(4,"div",8),L(5,"div",9),E()()}if(2&t){const e=n.$implicit;(function Ko(t){Qo(a2,LY,t,!1)})(e.getStyles()),Oc(e.getCssClasses()),Ut("width",e.width,"px"),C("ngClass",Br(11,age,e.isSortEnabled())),_(2),C("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",e.context),_(),C("ngIf",!e.isNoSort()),_(2),C("column",e)}}const hge=["gui-structure-header-groups","","groups","","checkboxSelection",""];function gge(t,n){1&t&&(w(0,"div",2),L(1,"div",3),E())}function pge(t,n){if(1&t&&(w(0,"div",4)(1,"div",5),U(2),E()()),2&t){const e=n.$implicit;Ut("width",e.width,"px"),_(2),Fe(" ",e.header," ")}}const fge=["gui-structure-header-filters","","columns",""],mge=()=>["has value","is the same as","starts with","ends with"];function bge(t,n){if(1&t){const e=he();w(0,"div",2)(1,"button",3),B("click",function(){return $(e),z(M(2).turnOnFilterMode())}),U(2,"Add Filter"),E()()}2&t&&Ut("width",n.$implicit.width,"px")}function vge(t,n){if(1&t&&(Qe(0),j(1,bge,3,2,"div",1),nt()),2&t){const e=M();_(),C("ngForOf",e.columns)}}function _ge(t,n){if(1&t){const e=he();Qe(0),L(1,"gui-select",4),w(2,"form",5),L(3,"input",6),E(),w(4,"button",7),B("click",function(){return $(e),z(M().clearFilters())}),U(5,"Clear All"),E(),w(6,"button",7),B("click",function(){return $(e),z(M().turnOffFilterMode())}),U(7,"Close"),E(),nt()}if(2&t){const e=M();_(),C("options",ui(4,mge))("selected","has value"),_(),C("formGroup",e.filterForm),_(),C("formControlName",e.filterFieldName)}}const yge=["gui-structure-header",""];function wge(t,n){if(1&t&&L(0,"div",3),2&t){const e=M().$implicit;C("checkboxSelection",e.showSelection)("groups",e.groups)}}function Cge(t,n){if(1&t&&(Qe(0),j(1,wge,1,2,"div",2),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e.showGroups)}}function Dge(t,n){if(1&t&&L(0,"div",4),2&t){const e=n.$implicit,i=M();C("columns",e.headerColumns)("guiStyle",i.width$)("showSelection",e.showSelection)}}function Ege(t,n){if(1&t&&L(0,"div",6),2&t){const e=M().$implicit,i=M();C("columns",e.headerColumns)("guiStyle",i.filterHeaderHeight$)}}function Sge(t,n){if(1&t&&(Qe(0),j(1,Ege,1,2,"div",5),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e.filterRowEnabled)}}const aU=["cellContainer"],xge=["gui-structure-cell-edit-boolean","","entity","","cell",""];function Ige(t,n){1&t&&In(0)}const Tge=["gui-structure-cell","","entity","","cell",""],Mge=(t,n,e,i)=>({"gui-cell-view":!0,"gui-align-left":t,"gui-align-center":n,"gui-align-right":e,"gui-column-highlighted":i}),kge=(t,n,e,i)=>({element:t,index:n,value:e,item:i});function Age(t,n){1&t&&In(0)}function Rge(t,n){if(1&t){const e=he();w(0,"span",3),B("click",function(){return $(e),z(M(2).enterEditMode())}),j(1,Age,1,0,"ng-container",4),E()}if(2&t){const e=M(2);C("ngClass",oE(3,Mge,e.cell.isAlignLeft(),e.cell.isAlignCenter(),e.cell.isAlignRight(),e.isHighlighted)),_(),C("ngTemplateOutlet",e.cell.template)("ngTemplateOutletContext",oE(8,kge,e.cell.getValue(e.entity,e.searchPhrase),e.entity.getPosition(),e.cell.getValue(e.entity,e.searchPhrase).value,e.entity.getSourceItem()))}}function Nge(t,n){1&t&&In(0)}function Oge(t,n){if(1&t&&(w(0,"span",5),j(1,Nge,1,0,"ng-container",4),E()),2&t){const e=M(2);_(),C("ngTemplateOutlet",e.cell.editTemplate)("ngTemplateOutletContext",e.editContext)}}function Fge(t,n){if(1&t&&(Qe(0),j(1,Rge,2,13,"span",1)(2,Oge,2,2,"span",2),nt()),2&t){const e=M();_(),C("ngIf",!e.inEditMode),_(),C("ngIf",e.inEditMode)}}function Pge(t,n){if(1&t&&(Qe(0),L(1,"div",6),nt()),2&t){const e=M();_(),C("cell",e.cell)("entity",e.entity)}}const Lge=["gui-structure-row",""];function Bge(t,n){if(1&t){const e=he();w(0,"div",3)(1,"gui-checkbox",4),B("changed",function(){return $(e),z(M().selectCheckbox())}),E()()}if(2&t){const e=M();_(),C("checked",e.selectedItem)}}function Vge(t,n){if(1&t){const e=he();w(0,"div",5)(1,"gui-radio-button",4),B("changed",function(){return $(e),z(M().selectRadio())}),E()()}if(2&t){const e=M();_(),C("checked",e.selectedItem)}}function Hge(t,n){if(1&t&&L(0,"div",6),2&t){const e=n.$implicit,i=n.index,r=M();Ut("width",e.width,"px"),C("cellEditorManager",r.cellEditing)("cell",e)("columnIndex",i)("editMode",r.editMode)("entity",r.entity)("rowIndex",r.index)("searchPhrase",r.searchPhrase)}}const Uge=["gui-structure-content",""],jge=(t,n)=>({even:t,odd:n}),Gge=t=>({transform:t});function $ge(t,n){if(1&t){const e=he();w(0,"div",3),B("click",function(){const r=$(e).$implicit,o=M().$implicit;return z(M().toggleSelectedRow(r,o.selectionEnabled,o.checkboxSelection,o.radioSelection))}),E()}if(2&t){const e=n.$implicit,i=n.index,r=M().$implicit,o=M();Ut("height",r.rowHeight,"px"),C("cellEditing",r.cellEditing)("checkboxSelection",r.checkboxSelection)("columns",o.columns)("editMode",r.editMode)("entity",e)("id",e.getUiId())("index",e.getPosition())("ngClass",Ql(15,jge,e.isEven(),e.isOdd()))("ngStyle",Br(18,Gge,o.translateY(i,r.rowHeight)))("radioSelection",r.radioSelection)("rowClass",r.schemaRowClass)("rowStyle",r.schemaRowStyle)("searchPhrase",r.searchPhrase)}}function zge(t,n){if(1&t&&(w(0,"div",1),j(1,$ge,1,20,"div",2),E()),2&t){const e=M();_(),C("ngForOf",e.source)("ngForTrackBy",e.trackByFn)}}const Wge=["sourceCollection"],qge=["gui-structure-container",""],Yge=["gui-structure-title-panel",""],Kge=["gui-structure-footer-panel",""],Zge=["gui-structure-blueprint",""];function Qge(t,n){1&t&&L(0,"div",8)}function Xge(t,n){1&t&&L(0,"div",9)}function Jge(t,n){1&t&&L(0,"div",11),2&t&&C("position",0)}function epe(t,n){if(1&t&&(Qe(0),j(1,Jge,1,1,"div",10),nt()),2&t){const e=n.$implicit,i=M();_(),C("ngIf",i.isPagingTopEnabled(e))}}function tpe(t,n){1&t&&L(0,"div",13),2&t&&C("ngClass",M(2).headerTopClasses)}function npe(t,n){if(1&t&&(Qe(0),j(1,tpe,1,1,"div",12),nt()),2&t){const e=n.$implicit,i=M();_(),C("ngIf",i.isColumnHeaderTopEnabled(e))}}function ipe(t,n){1&t&&L(0,"div",13),2&t&&C("ngClass",M(2).headerBottomClasses)}function rpe(t,n){if(1&t&&(Qe(0),j(1,ipe,1,1,"div",12),nt()),2&t){const e=n.$implicit,i=M();_(),C("ngIf",i.isColumnHeaderBottomEnabled(e))}}function ope(t,n){1&t&&L(0,"div",15)}function spe(t,n){if(1&t&&(Qe(0),j(1,ope,1,0,"div",14),nt()),2&t){const e=n.$implicit;_(),C("ngIf",e)}}function ape(t,n){1&t&&L(0,"div",11),2&t&&C("position",1)}function cpe(t,n){if(1&t&&(Qe(0),j(1,ape,1,1,"div",10),nt()),2&t){const e=n.$implicit,i=M();_(),C("ngIf",i.isPagingBottomEnabled(e))}}function lpe(t,n){1&t&&L(0,"div",16)}const upe=(t,n)=>({"gui-loader-visible":t,"gui-loader-hidden":n});function dpe(t,n){1&t&&L(0,"gui-spinner",3),2&t&&C("diameter",120)("primary",!0)}const hpe=["structure"],vpe={sourceEmpty:"There are no items to show.",pagingItemsPerPage:"Items per page:",pagingOf:"of",pagingNextPage:"Next",pagingPrevPage:"Prev",pagingNoItems:"There is no items.",infoPanelShowing:"Showing",infoPanelItems:"items",infoPanelOutOf:"out of",infoPanelThemeMangerTooltipText:"Theme manager",infoPanelColumnManagerTooltipText:"Column manager",infoPanelInfoTooltipText:"info",themeManagerModalTitle:"Theme manager",themeManagerModalTheme:"Theme:",themeManagerModalRowColoring:"Row coloring:",themeManagerModalVerticalGrid:"Vertical grid",themeManagerModalHorizontalGrid:"HorizontalGrid",columnManagerModalTitle:"Manage columns",headerMenuMainTab:"Menu",headerMenuMainTabColumnSort:"Column sort",headerMenuMainTabHideColumn:"Hide column",headerMenuMainTabHighlightColumn:"Highlight",headerMenuMainTabMoveLeft:"Move left",headerMenuMainTabMoveRight:"Move right",headerMenuMainTabColumnSortAscending:"Ascending",headerMenuMainTabColumnSortDescending:"Descending",headerMenuMainTabColumnSortNone:"None",headerMenuFilterTab:"Filter",headerMenuColumnsTab:"Columns",summariesCount:"Count",summariesDist:"Dist",summariesSum:"Sum",summariesAvg:"Avg",summariesMin:"Min",summariesMax:"Max",summariesMed:"Med",summariesTruthy:"Truthy",summariesFalsy:"Falsy",summariesDistinctValuesTooltip:"Distinct values",summariesAverageTooltip:"Average",summariesMinTooltip:"Min",summariesMaxTooltip:"Max",summariesMedTooltip:"Median",summariesCountTooltip:"Number of items in the grid"};var wu=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.NUMBER=1]="NUMBER",t[t.STRING=2]="STRING",t[t.BOOLEAN=3]="BOOLEAN",t[t.DATE=4]="DATE",t[t.CUSTOM=5]="CUSTOM",t}(wu||{}),wo=function(t){return t[t.TEXT=0]="TEXT",t[t.CHIP=1]="CHIP",t[t.LINK=2]="LINK",t[t.IMAGE=3]="IMAGE",t[t.BOLD=4]="BOLD",t[t.ITALIC=5]="ITALIC",t[t.CHECKBOX=6]="CHECKBOX",t[t.CUSTOM=7]="CUSTOM",t[t.BAR=8]="BAR",t[t.PERCENTAGE_BAR=9]="PERCENTAGE_BAR",t[t.PERCENTAGE=10]="PERCENTAGE",t}(wo||{}),zi=function(t){return t[t.FABRIC=0]="FABRIC",t[t.MATERIAL=1]="MATERIAL",t[t.LIGHT=2]="LIGHT",t[t.DARK=3]="DARK",t[t.GENERIC=4]="GENERIC",t}(zi||{}),Jc=function(t){return t[t.NONE=0]="NONE",t[t.EVEN=1]="EVEN",t[t.ODD=2]="ODD",t}(Jc||{}),m0=function(t){return t[t.BASIC=0]="BASIC",t[t.ADVANCED=1]="ADVANCED",t}(m0||{}),b0=function(t){return t[t.RIGHT=0]="RIGHT",t[t.CENTER=1]="CENTER",t[t.LEFT=2]="LEFT",t}(b0||{}),qa=function(t){return t[t.ROW=0]="ROW",t[t.CHECKBOX=1]="CHECKBOX",t[t.RADIO=2]="RADIO",t}(qa||{}),el=function(t){return t[t.SINGLE=0]="SINGLE",t[t.MULTIPLE=1]="MULTIPLE",t}(el||{}),Ie=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.NUMBER=1]="NUMBER",t[t.STRING=2]="STRING",t[t.BOOLEAN=3]="BOOLEAN",t[t.DATE=4]="DATE",t[t.CUSTOM=5]="CUSTOM",t}(Ie||{});class Spe{convertType(n){return"string"==typeof n?this.convertTypeString(n):this.convertTypeEnum(n)}convertTypeEnum(n){switch(n){case wu.STRING:return Ie.STRING;case wu.NUMBER:return Ie.NUMBER;case wu.BOOLEAN:return Ie.BOOLEAN;case wu.DATE:return Ie.DATE;case wu.UNKNOWN:return Ie.UNKNOWN;case wu.CUSTOM:return Ie.CUSTOM;default:return Ie.STRING}}convertTypeString(n){switch(n.toLocaleLowerCase()){case"string":default:return Ie.STRING;case"number":return Ie.NUMBER;case"boolean":return Ie.BOOLEAN;case"date":return Ie.DATE;case"unknown":return Ie.UNKNOWN;case"custom":return Ie.CUSTOM}}}var Ue=function(t){return t[t.COUNT=1024]="COUNT",t[t.DISTINCT=1]="DISTINCT",t[t.SUM=2]="SUM",t[t.AVERAGE=4]="AVERAGE",t[t.MIN=8]="MIN",t[t.MAX=16]="MAX",t[t.MEDIAN=32]="MEDIAN",t[t.TRUTHY=64]="TRUTHY",t[t.FALSY=128]="FALSY",t[t.EARLIEST=256]="EARLIEST",t[t.LATEST=512]="LATEST",t}(Ue||{});class xpe{convert(n){const e={};return null!=n.enabled&&(e.enabled=n.enabled),null!=n.summariesTypes&&(e.summariesTypes=this.convertSummariesTypes(n.summariesTypes)),e}convertSummariesTypes(n){const e=[];return n.forEach(i=>{const r=this.convertSummariesType(i);null!=r&&e.push(r)}),e}convertSummariesType(n){switch(n.toLocaleLowerCase()){case"count":return Ue.COUNT;case"distinct":return Ue.DISTINCT;case"sum":return Ue.SUM;case"average":return Ue.AVERAGE;case"min":return Ue.MIN;case"max":return Ue.MAX;case"median":return Ue.MEDIAN;case"truthy":return Ue.TRUTHY;case"falsy":return Ue.FALSY;case"earliest":return Ue.EARLIEST;case"latest":return Ue.LATEST;default:return null}}}var fe=function(t){return t[t.TEXT=0]="TEXT",t[t.NUMBER=1]="NUMBER",t[t.CHIP=2]="CHIP",t[t.LINK=3]="LINK",t[t.IMAGE=4]="IMAGE",t[t.BOLD=5]="BOLD",t[t.ITALIC=6]="ITALIC",t[t.CHECKBOX=7]="CHECKBOX",t[t.CUSTOM=8]="CUSTOM",t[t.FUNCTION=9]="FUNCTION",t[t.DATE=10]="DATE",t[t.BAR=11]="BAR",t[t.PERCENTAGE_BAR=12]="PERCENTAGE_BAR",t[t.PERCENTAGE=13]="PERCENTAGE",t[t.NG_TEMPLATE=14]="NG_TEMPLATE",t[t.HTML=15]="HTML",t}(fe||{});class Ipe{convert(n){return"string"==typeof n?this.convertString(n):"function"==typeof n?n:this.convertEnum(n)}convertString(n){switch(n.toLocaleLowerCase()){case"text":default:return fe.TEXT;case"chip":return fe.CHIP;case"link":return fe.LINK;case"image":return fe.IMAGE;case"bold":return fe.BOLD;case"italic":return fe.ITALIC;case"checkbox":return fe.CHECKBOX;case"custom":return fe.CUSTOM;case"bar":return fe.BAR;case"percentage_bar":return fe.PERCENTAGE_BAR;case"percentage":return fe.PERCENTAGE}}convertEnum(n){switch(n){case wo.TEXT:return fe.TEXT;case wo.CHIP:return fe.CHIP;case wo.LINK:return fe.LINK;case wo.IMAGE:return fe.IMAGE;case wo.BOLD:return fe.BOLD;case wo.ITALIC:return fe.ITALIC;case wo.CHECKBOX:return fe.CHECKBOX;case wo.CUSTOM:return fe.CUSTOM;case wo.BAR:return fe.BAR;case wo.PERCENTAGE_BAR:return fe.PERCENTAGE_BAR;case wo.PERCENTAGE:return fe.PERCENTAGE;default:return fe.TEXT}}}class Tpe{convert(n){return"boolean"==typeof n?{enabled:n}:n}}class Mpe{convert(n){return"boolean"==typeof n?{enabled:n}:n}}var Sn=function(t){return t[t.RIGHT=0]="RIGHT",t[t.CENTER=1]="CENTER",t[t.LEFT=2]="LEFT",t}(Sn||{});class kpe{convert(n){return"string"==typeof n?this.convertTypeString(n):this.convertTypeEnum(n)}convertTypeEnum(n){switch(n){case b0.RIGHT:return Sn.RIGHT;case b0.CENTER:return Sn.CENTER;default:return Sn.LEFT}}convertTypeString(n){switch(n.toLocaleLowerCase()){case"right":return Sn.RIGHT;case"center":return Sn.CENTER;default:return Sn.LEFT}}}class Ape{columnTypeConverter=new Spe;columnSummariesConverter=new xpe;columnViewConverter=new Ipe;columnSortingConverter=new Tpe;columnCellEditingConverter=new Mpe;columnAlignConverter=new kpe;convert(n){return n.map(e=>{if(void 0!==e.columns){const i=e.columns.map(r=>this.convertColumn(r));return{header:e.header,columns:i}}return this.convertColumn(e)})}convertColumn(n){const e={};return null!=n.name?e.name=n.name:null!=n.field&&"string"==typeof n.field&&(e.name=n.field),null!=n.type&&(e.type=this.columnTypeConverter.convertType(n.type)),null!=n.header&&(e.header=n.header),null!=n.enabled&&(e.enabled=n.enabled),null!=n.field&&(e.field=n.field),null!=n.width&&(e.width=n.width),null!=n.align&&(e.align=this.columnAlignConverter.convert(n.align)),null!=n.view&&(e.view=this.columnViewConverter.convert(n.view)),null!=n.summaries&&(e.summaries=this.columnSummariesConverter.convert(n.summaries)),null!=n.sorting&&(e.sorting=this.columnSortingConverter.convert(n.sorting)),null!=n.cellEditing&&(e.cellEditing=this.columnCellEditingConverter.convert(n.cellEditing)),null!=n.formatter&&(e.formatter=n.formatter),null!=n.matcher&&(e.matcher=n.matcher),null!=n.cssClasses&&(e.cssClasses=n.cssClasses),null!=n.styles&&(e.styles=n.styles),null!=n.templateRef&&(e.templateRef=n.templateRef,e.view=fe.NG_TEMPLATE),e}}var Te=function(t){return t[t.FABRIC=0]="FABRIC",t[t.MATERIAL=1]="MATERIAL",t[t.LIGHT=2]="LIGHT",t[t.DARK=3]="DARK",t[t.GENERIC=4]="GENERIC",t}(Te||{});class Rpe{convert(n){return"string"==typeof n?this.convertString(n):this.convertEnum(n)}convertToGuiTheme(n){switch(n){case Te.MATERIAL:return zi.MATERIAL;case Te.FABRIC:return zi.FABRIC;case Te.LIGHT:return zi.LIGHT;case Te.DARK:return zi.DARK;default:return zi.GENERIC}}convertString(n){switch(n.toLocaleLowerCase()){case"material":return Te.MATERIAL;case"fabric":default:return Te.FABRIC;case"light":return Te.LIGHT;case"dark":return Te.DARK;case"generic":return Te.GENERIC}}convertEnum(n){switch(n){case zi.MATERIAL:return Te.MATERIAL;case zi.FABRIC:return Te.FABRIC;case zi.LIGHT:return Te.LIGHT;case zi.DARK:return Te.DARK;case zi.GENERIC:return Te.GENERIC;default:return Te.FABRIC}}}var fi=function(t){return t[t.NONE=0]="NONE",t[t.EVEN=1]="EVEN",t[t.ODD=2]="ODD",t}(fi||{});class Npe{convert(n){return"string"==typeof n?this.convertString(n):this.convertEnum(n)}convertToGuiRowColoring(n){switch(n){case fi.NONE:return Jc.NONE;case fi.EVEN:return Jc.EVEN;case fi.ODD:return Jc.ODD;default:return Jc.EVEN}}convertString(n){switch(n.toLocaleLowerCase()){case"none":return fi.NONE;case"even":default:return fi.EVEN;case"odd":return fi.ODD}}convertEnum(n){switch(n){case Jc.NONE:return fi.NONE;case Jc.EVEN:return fi.EVEN;case Jc.ODD:return fi.ODD;default:return fi.EVEN}}}let Ope=(()=>{class t{convert(e){return e}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Ya=function(t){return t[t.BASIC=0]="BASIC",t[t.ADVANCED=1]="ADVANCED",t}(Ya||{});class Fpe{convert(n){const e={};return null!=n.enabled&&(e.enabled=n.enabled),null!=n.page&&(e.page=n.page),null!=n.pageSize&&(e.pageSize=n.pageSize),null!=n.pageSizes&&(e.pageSizes=n.pageSizes),null!=n.pagerTop&&(e.pagerTop=n.pagerTop),null!=n.pagerBottom&&(e.pagerBottom=n.pagerBottom),null!=n.display&&(e.displayMode=this.convertDisplay(n.display)),e}convertDisplay(n){return"string"==typeof n?this.convertString(n):this.convertEnum(n)}convertString(n){switch(n.toLocaleLowerCase()){case"basic":default:return Ya.BASIC;case"advanced":return Ya.ADVANCED}}convertEnum(n){switch(n){case m0.BASIC:return Ya.BASIC;case m0.ADVANCED:return Ya.ADVANCED;default:return Ya.BASIC}}}class hI{build(){return this.buildObject()}}var Ri=function(t){return t.ROW="ROW",t.CHECKBOX="CHECKBOX",t.RADIO="RADIO",t}(Ri||{}),Co=function(t){return t.SINGLE="SINGLE",t.MULTIPLE="MULTIPLE",t}(Co||{});let Ppe=(()=>{class t{enabled;selectedRowIndexes;selectedRowIds;type;mode;matcher;customConfig;constructor(e){void 0!==e.enabled&&(this.enabled=e.enabled),e?.selectedRowIndexes&&(this.selectedRowIndexes=e.selectedRowIndexes),e?.selectedRowIds&&(this.selectedRowIds=e.selectedRowIds),e?.mode&&(this.mode=e.mode),e?.type&&(this.type=e.type),e?.matcher&&(this.matcher=e.matcher),e?.config&&(this.customConfig=e.config)}isModeDefined(){return void 0!==this.mode}isTypeDefined(){return void 0!==this.type}isSelectedRowIndexesDefined(){return void 0!==this.selectedRowIndexes}isSelectedRowIdsDefined(){return void 0!==this.selectedRowIds}isEnabledDefined(){return void 0!==this.enabled}isMatcherDefined(){return void 0!==this.matcher}isEnabled(){return this.enabled}isCustomSelectConfig(){return void 0!==this.customConfig}getSelectedRowIndexes(){return this.selectedRowIndexes}getSelectedRowIds(){return this.selectedRowIds}getMode(){return this.mode}getType(){return this.type}getMatcher(){return this.matcher}getCustomSelectConfig(){return this.customConfig}static Builder=class extends hI{enabled;selectedRowIndexes;selectedRowIds;type;mode;config;matcher;constructor(){super()}buildObject(){return new t({enabled:this.enabled,selectedRowIndexes:this.selectedRowIndexes,selectedRowIds:this.selectedRowIds,type:this.type,mode:this.mode,matcher:this.matcher,config:this.config})}withEnabled(i){return this.enabled=i,this}withSelectedRowIndexes(i){return this.selectedRowIndexes=i,this}withSelectedRowIds(i){return this.selectedRowIds=i,this}withType(i){return this.type=i,this}withMode(i){return this.mode=i,this}withMatcher(i){return this.matcher=i,this}witCustomSelection(i){return this.config=i,this}}}return t})();class Lpe{enabled;selections}class Bpe{convert(n){const e=new Ppe.Builder;if("boolean"==typeof n)return e.withEnabled(n).build();if(void 0!==n.enabled&&e.withEnabled(n.enabled),void 0!==n.selectedRowIndexes&&e.withSelectedRowIndexes(n.selectedRowIndexes),void 0!==n.selectedRowIds&&e.withSelectedRowIds(n.selectedRowIds),void 0!==n.mode){const i=this.convertMode(n.mode);e.withMode(i)}if(void 0!==n.type){const i=this.convertType(n.type);e.withType(i)}if(void 0!==n.matcher){const i=this.convertMatcher(n.matcher);e.withMatcher(i)}if(void 0!==n.custom){const i=this.convertCustomSelection(n.custom);e.witCustomSelection(i)}return e.build()}convertMode(n){if("string"==typeof n)switch(n.toLowerCase()){case"single":default:return Co.SINGLE;case"multiple":return Co.MULTIPLE}else switch(n){case el.SINGLE:return Co.SINGLE;case el.MULTIPLE:return Co.MULTIPLE;default:return Co.SINGLE}}convertType(n){if("string"==typeof n)switch(n.toLowerCase()){case"row":default:return Ri.ROW;case"checkbox":return Ri.CHECKBOX;case"radio":return Ri.RADIO}else switch(n){case qa.ROW:return Ri.ROW;case qa.CHECKBOX:return Ri.CHECKBOX;case qa.RADIO:return Ri.RADIO;default:return Ri.ROW}}convertMatcher(n){return"string"==typeof n?e=>e[n]:n}convertCustomSelection(n){let e=new Lpe;return n?.enabled&&(e.enabled=n.enabled),n?.selections&&Array.isArray(n?.selections)&&(e.selections=n.selections.map(i=>i)),e}}let v0=(()=>{class t{templateRef;name;field;type;view;header;width;enabled;align;summaries;sorting;cellEditing;formatter;matcher;cssClasses;styles;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["gui-grid-column"]],contentQueries:function(i,r,o){if(1&i&&It(o,Re,7),2&i){let s;te(s=ne())&&(r.templateRef=s.first)}},inputs:{name:"name",field:"field",type:"type",view:"view",header:"header",width:"width",enabled:"enabled",align:"align",summaries:"summaries",sorting:"sorting",cellEditing:"cellEditing",formatter:"formatter",matcher:"matcher",cssClasses:"cssClasses",styles:"styles"},decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();class Vpe{convert(n){return"boolean"==typeof n?{enabled:n}:n}}function jt(t,n){(function gI(t){return void 0!==t&&void 0!==t.currentValue})(t)&&n(t.currentValue)}let Hpe=(()=>{class t{guiGridColumnComponent;columnHeaderTop;columnHeaderBottom;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns=[];paging;verticalGrid;horizontalGrid;theme;rowColoring;rowSelection;rowStyle;rowClass;loading;virtualScroll;sorting;searching;titlePanel;footerPanel;filtering;quickFilters;editMode;cellEditing;infoPanel;summaries;columnMenu;rowDetail;localization;pageChanged=new X;pageSizeChanged=new X;itemsSelected=new X;selectedRows=new X;columnsChanged=new X;containerWidthChanged=new X;sourceEdited=new X;cellEditEntered=new X;cellEditCanceled=new X;cellEditSubmitted=new X;searchPhraseChanged=new X;themeChanged=new X;horizontalGridChanged=new X;verticalGridChanged=new X;rowColoringChanged=new X;columnsConfig;themeConfig;rowColoringConfig;columnMenuConfig;rowSelectionConfig;cellEditingConfig;gridColumnConverter=new Ape;gridThemeConverter=new Rpe;gridRowColoringConverter=new Npe;gridColumnMenuConverter=new Ope;gridPagingConverter=new Fpe;gridRowSelectionConverter=new Bpe;guiGridCellEditConverter=new Vpe;constructor(){}ngOnChanges(e){jt(e.columns,()=>{this.columnsConfig=this.gridColumnConverter.convert(this.columns)}),jt(e.theme,()=>{this.themeConfig=this.gridThemeConverter.convert(this.theme)}),jt(e.rowColoring,()=>{this.rowColoringConfig=this.gridRowColoringConverter.convert(this.rowColoring)}),jt(e.columnMenu,()=>{this.columnMenuConfig=this.gridColumnMenuConverter.convert(this.columnMenu)}),jt(e.rowSelection,()=>{this.rowSelectionConfig=this.gridRowSelectionConverter.convert(this.rowSelection)}),jt(e.cellEditing,()=>{this.cellEditingConfig=this.guiGridCellEditConverter.convert(this.cellEditing)}),jt(e.paging,()=>{"boolean"!=typeof this.paging&&(this.paging=this.gridPagingConverter.convert(this.paging))})}ngAfterContentInit(){this.guiGridColumnComponent&&this.guiGridColumnComponent.toArray().length>0&&(this.columnsConfig=this.gridColumnConverter.convert(this.guiGridColumnComponent.toArray()))}onPageChange(e){this.pageChanged.emit(e)}onPageSizeChange(e){this.pageSizeChanged.emit(e)}onItemSelect(e){this.itemsSelected.emit(e)}onRowsSelect(e){const i=e.map(r=>({index:r.getIndex(),source:r.getItem(),itemId:r.getItemId()}));this.selectedRows.emit(i)}onColumnsChange(){this.columnsChanged.emit()}onContainerWidthChange(e){this.containerWidthChanged.emit(e)}onSourceEdit(e){this.sourceEdited.emit(e)}onCellEditEnter(){this.cellEditEntered.emit()}onCellEditSubmit(){this.cellEditSubmitted.emit()}onCellEditCancel(){this.cellEditCanceled.emit()}onSearchPhrase(e){this.searchPhraseChanged.emit(e)}onTheme(e){this.themeChanged.emit(this.gridThemeConverter.convertToGuiTheme(e))}onHorizontalGrid(e){this.horizontalGridChanged.emit(e)}onVerticalGrid(e){this.verticalGridChanged.emit(e)}onRowColoring(e){this.rowColoringChanged.emit(this.gridRowColoringConverter.convertToGuiRowColoring(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=N({type:t,contentQueries:function(i,r,o){if(1&i&&It(o,v0,4),2&i){let s;te(s=ne())&&(r.guiGridColumnComponent=s)}},inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom",maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",paging:"paging",verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid",theme:"theme",rowColoring:"rowColoring",rowSelection:"rowSelection",rowStyle:"rowStyle",rowClass:"rowClass",loading:"loading",virtualScroll:"virtualScroll",sorting:"sorting",searching:"searching",titlePanel:"titlePanel",footerPanel:"footerPanel",filtering:"filtering",quickFilters:"quickFilters",editMode:"editMode",cellEditing:"cellEditing",infoPanel:"infoPanel",summaries:"summaries",columnMenu:"columnMenu",rowDetail:"rowDetail",localization:"localization"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged",itemsSelected:"itemsSelected",selectedRows:"selectedRows",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted",searchPhraseChanged:"searchPhraseChanged",themeChanged:"themeChanged",horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged",rowColoringChanged:"rowColoringChanged"},features:[we]})}return t})();const cU=new W("StructureParentComponent");class _0{index;itemId;item;constructor(n,e,i){this.item=n,this.index=e,this.itemId=i}getItem(){return this.item}getIndex(){return this.index}getItemId(){return this.itemId}}class Upe{structureId;compositionId;schemaId;formationCommandInvoker;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandInvoker;searchCommandInvoker;gridThemeCommandInvoker;structureCommandInvoker;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;constructor(n,e,i,r,o,s,a,c,l,u,h,f,v,y,D){this.structureId=n,this.compositionId=e,this.schemaId=i,this.formationCommandInvoker=r,this.formationWarehouse=o,this.compositionCommandInvoker=s,this.compositionWarehouse=a,this.filterIntegration=c,this.sourceCommandInvoker=l,this.searchCommandInvoker=u,this.gridThemeCommandInvoker=h,this.structureCommandInvoker=f,this.summariesCommandInvoker=v,this.sortingCommandInvoker=y,this.pagingCommandInvoker=D}provide(){const n=this.structureId,e=this.compositionId,i=this.schemaId,r=this.formationCommandInvoker,o=this.formationWarehouse,a=this.compositionWarehouse,c=this.filterIntegration,l=this.sourceCommandInvoker,u=this.searchCommandInvoker,h=this.gridThemeCommandInvoker,f=this.structureCommandInvoker,v=this.summariesCommandInvoker,y=this.sortingCommandInvoker,D=this.pagingCommandInvoker;return{setSource(S){l.setOrigin(S,n)},showLoading(){l.setLoading(!0,n)},hideLoading(){l.setLoading(!1,n)},deleteRow(S){l.deleteRow(new _0(S.source,S.index,S.itemId),n)},deleteRows(S){const k=S.map(A=>new _0(A.source,A.index,A.itemId));l.deleteRows(k,n)},deleteSelectedRows(){},getSelectedRows:()=>o.findSelectedRows(n).getValueOrNullOrThrowError().map(k=>({source:k.getItem(),index:k.getIndex(),itemId:k.getItemId()})),selectAll(){r.selectAll(n)},unselectAll(){r.unselectAll(n)},getColumns(){let S=[];return a.onTemplateColumns(e).subscribe(k=>{S=k}),S},getFilters(){const S=c.findFilters(e,n),k={};return Object.keys(S).forEach(A=>{k[A]=S[A].map(K=>({columnName:K.columnName,filterId:K.filterId,filterType:K.type,value:K.value}))}),k},getFiltersForColumn:S=>[],getFilterTypes:()=>[],getFilterTypesForColumn:S=>c.findFilterTypes(S,e,n),removeAll(){},removeFilter(S){},removeFiltersFromColumn(S){},filter(S,k,A){c.filter(S,k,A,e,n)},enablePaging(){D.enable(n)},disablePaging(){D.disable(n)},nextPage(){D.nextPage(n)},prevPage(){D.prevPage(n)},changePageSize(S){D.changePageSize(S,n)},setPagingConfig(S){D.setPaging(S,n)},setSearchingConfig(S){u.setSearchingConfig(S,n)},search(S){u.search(S,n)},clearSearchPhrase(){u.search("",n)},scrollToTop(){f.scrollToTop(n)},scrollToBottom(){f.scrollToBottom(n)},scrollToRowByIndex(S){f.scrollToIndex(S,n)},setTheme(S){h.setTheme(S,i,n)},setVerticalGrid(S){h.setVerticalGrid(S,i)},setHorizontalGrid(S){h.setHorizontalGrid(S,i)},setRowColoring(S){h.setRowColoring(S,i)},enableVirtualScroll(){f.enableVirtualScroll(n)},disableVirtualScroll(){f.disableVirtualScroll(n)},enableSummaries(){v.setSummariesEnabled(!0,n)},disableSummaries(){v.setSummariesEnabled(!1,n)},setSortConfig(S){y.setSortingConfig(S,n)}}}}class jpe{schemaCommandInvoker;gridThemeConverter;gridRowColoringConverter;constructor(n,e,i){this.schemaCommandInvoker=n,this.gridThemeConverter=e,this.gridRowColoringConverter=i}setTheme(n,e,i){const r=this.gridThemeConverter.convert(n);this.schemaCommandInvoker.setTheme(r,e,i)}setRowColoring(n,e){const i=this.gridRowColoringConverter.convert(n);this.schemaCommandInvoker.setRowColoring(i,e)}setVerticalGrid(n,e){this.schemaCommandInvoker.setVerticalGrid(n,e)}setHorizontalGrid(n,e){this.schemaCommandInvoker.setHorizontalGrid(n,e)}}class pI{hostElement;constructor(n){this.hostElement=n}getElement(n){return this.createModifier(n)}getHost(){if(!this.hostElement)throw new Error("Missing host element in DomRenderer constructor.");return this.createModifier(this.hostElement)}}let om=(()=>{class t extends pI{htmlElement;constructor(e){super(e),this.htmlElement=e}createModifier(e){return new t.ClassModifier(e)}static ClassModifier=class{htmlElement;constructor(e){this.htmlElement=e}add(...e){this.addClassToDomElement(this.htmlElement,e)}remove(...e){this.removeClassFromDomElement(this.htmlElement,e)}clear(){this.htmlElement.removeAttribute("class")}addClassToDomElement(e,i){for(let r=0;r<i.length;r++)e.classList.add(i[r])}removeClassFromDomElement(e,i){for(let r=0;r<i.length;r++)e.classList.remove(i[r])}}}return t})(),Gpe=(()=>{class t extends pI{htmlElement;static AttributeModifier=class{htmlElement;constructor(e){this.htmlElement=e}setAttribute(e,i){this.htmlElement.setAttribute(e,i)}removeAttribute(e){this.htmlElement.removeAttribute(e)}};constructor(e){super(e),this.htmlElement=e}createModifier(e){return new t.AttributeModifier(e)}}return t})();class lU extends hI{enabled;constructor(n){super(),this.enabled=n}withEnabled(n){return this.enabled=n,this}buildObject(){return new fI(this.enabled)}}let $pe=(()=>{class t extends lU{static defaultEnabled=!0;constructor(){super(t.defaultEnabled)}}return t})(),fI=(()=>class t{static Builder=lU;static DefaultBuilder=$pe;enabled;constructor(e){this.enabled=e}isEnabled(){return this.enabled}})();class uU extends hI{headerEnabled;bottomPaging;topPaging;border=!0;constructor(n,e,i){super(),this.headerEnabled=n,this.bottomPaging=e,this.topPaging=i}withHeader(n){return this.headerEnabled=n,this}withBottomPaging(n){return this.bottomPaging=n,this}withTopPaging(n){return this.topPaging=n,this}withBorder(n){return this.border=n,this}buildObject(){return new Cu(this.headerEnabled,this.bottomPaging,this.topPaging,this.border)}}class sm extends uU{static defaultHeaderEnabled=!0;static defaultBottomPaging=(new fI.DefaultBuilder).build();static defaultTopPaging=(new fI.DefaultBuilder).build();constructor(){super(sm.defaultHeaderEnabled,sm.defaultBottomPaging,sm.defaultTopPaging)}}let Cu=(()=>class t{static Builder=uU;static DefaultBuilder=sm;headerEnabled;bottomPaging;topPaging;border;constructor(e,i,r,o){this.headerEnabled=e,this.bottomPaging=i,this.topPaging=r,this.border=o}isHeaderEnabled(){return this.headerEnabled}isBorderEnabled(){return this.border}getBottomPaging(){return this.bottomPaging}getTopPaging(){return this.topPaging}})();const zpe=(new Cu.DefaultBuilder).build();let dU=(()=>{class t{gridMap=new Map;register(e,i,r){this.gridMap.set(e,{component:i,structureId:r})}unregister(e){this.gridMap.delete(e)}getValues(e){return this.gridMap.get(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class am{generateId(){return Rce.generate()}}class ar{constructor(){}}class Do{constructor(){}}class ia{constructor(){}}class Eo{constructor(){}}class tl{constructor(){}}class cm extends Ph{id;constructor(n){super(n),this.id=n}getId(){return this.id}equals(n){return n.toString()===this.id}toString(){return this.id}}class ra{constructor(){}}let y0=(()=>class t{compositionWarehouse;filterCommandInvoker;filterWarehouse;constructor(e,i,r){this.compositionWarehouse=e,this.filterCommandInvoker=i,this.filterWarehouse=r}static services=[Eo,ra,tl];findFilterTypes(e,i,r){let o=[];return this.compositionWarehouse.onTemplateColumns(i).pipe(ge(s=>s.find(a=>a.getName()===e)),Tt(s=>void 0!==s),Oh(1),yo(s=>this.filterWarehouse.onFilterTypesForFieldId(new cm(s.columnFieldId.getId()),r))).subscribe(s=>{o=s.map(a=>a.getName())}),o}findFilters(e,i){const r=this.filterWarehouse.findFilters(i).getValueOrNullOrThrowError(),o=this.compositionWarehouse.findColumnNames(e),s={};for(let a=0;a<o.length;a+=1)s[o[a]]=r.filter(c=>c.getFieldName()===o[a]).map(c=>({columnName:c.getFieldName(),filterId:c.getFilterId().toString(),type:c.getFilterTypeName(),value:c.getValue()}));return s}filter(e,i,r,o,s){this.compositionWarehouse.onTemplateColumns(o).pipe(ge(a=>a.find(c=>c.getName()===e)),Tt(a=>void 0!==a),Oh(1),yo(a=>this.filterWarehouse.onceFilterTypeId(new cm(a.columnFieldId.getId()),i,s).pipe(ge(c=>({fieldId:new cm(a.columnFieldId.getId()),filterTypeId:c}))))).subscribe(a=>{const{fieldId:c,filterTypeId:l}=a;l.ifPresent(u=>{this.filterCommandInvoker.add(c,u,r,s)})})}})();class So{constructor(){}}class ls{constructor(){}}class xo{constructor(){}}class Io{constructor(){}}class $h{constructor(){}}class us{constructor(){}}class To{constructor(){}}class Wpe extends Wy{constructor(n){super(n)}toAggregateId(){return new Xe(this.toString())}}class Xe extends zy{constructor(n){super(n)}toReadModelRootId(){return new Wpe(this.getId())}}class qpe extends Wy{constructor(n){super(n)}toAggregateId(){return new Si(this.toString())}}class Si extends zy{constructor(n){super(n)}toReadModelRootId(){return new qpe(this.getId())}}var Mn=function(t){return t[t.NONE=0]="NONE",t[t.EVEN=1]="EVEN",t[t.ODD=2]="ODD",t}(Mn||{});class ds{}let hU=(()=>{class t extends Cr{schemaReadModelRepository;static VERTICAL_GRID_CLASS_NAME="gui-vertical-grid";static HORIZONTAL_GRID_CLASS_NAME="gui-horizontal-grid";static THEME_FABRIC_CLASS_NAME="gui-fabric";static THEME_MATERIAL_CLASS_NAME="gui-material";static THEME_LIGHT_CLASS_NAME="gui-light";static THEME_DARK_CLASS_NAME="gui-dark";static THEME_GENERIC_CLASS_NAME="gui-generic";static ROW_COLORING_ODD="gui-rows-odd";static ROW_COLORING_EVEN="gui-rows-even";classModifier;cssClass=null;cssHostRef;constructor(e){super(),this.schemaReadModelRepository=e,this.classModifier=new om}init(e,i){this.cssHostRef=e,this.schemaReadModelRepository.onCssClasses(i).pipe(this.hermesTakeUntil()).subscribe(r=>{const o=this.updateState(r);this.renderCssClasses(o)})}updateState(e){if(this.cssClass){const i={};return Object.keys(this.cssClass).forEach(r=>{e[r]!==this.cssClass[r]&&(i[r]=e[r])}),this.cssClass=e,i}return this.cssClass=e,this.cssClass}renderCssClasses(e){e.hasOwnProperty("verticalGrid")&&this.toggleCssClass(e.verticalGrid,t.VERTICAL_GRID_CLASS_NAME),e.hasOwnProperty("horizontalGrid")&&this.toggleCssClass(e.horizontalGrid,t.HORIZONTAL_GRID_CLASS_NAME),e.hasOwnProperty("theme")&&(this.removeThemeCssClasses(),this.addClass(this.resolveThemeClassName(e.theme))),e.hasOwnProperty("rowColoring")&&(this.removeRowColoringClasses(),this.addClass(this.resolveRowColoringClassName(e.rowColoring)))}toggleCssClass(e,i){e?this.addClass(i):this.removeClass(i)}removeThemeCssClasses(){Object.keys(Te).map(e=>Te[e]).map(e=>this.resolveThemeClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}resolveThemeClassName(e){switch(e){case Te.FABRIC:case Te[Te.FABRIC]:return t.THEME_FABRIC_CLASS_NAME;case Te.MATERIAL:case Te[Te.MATERIAL]:return t.THEME_MATERIAL_CLASS_NAME;case Te.LIGHT:case Te[Te.LIGHT]:return t.THEME_LIGHT_CLASS_NAME;case Te.DARK:case Te[Te.DARK]:return t.THEME_DARK_CLASS_NAME;case Te.GENERIC:case Te[Te.GENERIC]:return t.THEME_GENERIC_CLASS_NAME;default:return t.THEME_FABRIC_CLASS_NAME}}resolveRowColoringClassName(e){switch(e){case Mn.ODD:case Mn[Mn.ODD]:return t.ROW_COLORING_ODD;case Mn.EVEN:case Mn[Mn.EVEN]:return t.ROW_COLORING_EVEN;default:return null}}removeRowColoringClasses(){Object.keys(Mn).map(e=>Mn[e]).map(e=>this.resolveRowColoringClassName(e)).filter(e=>!!e).forEach(e=>{this.removeClass(e)})}addClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).add(e)}removeClass(e){e&&this.classModifier.getElement(this.cssHostRef.nativeElement).remove(e)}static \u0275fac=function(i){return new(i||t)(I(ds))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),w0=(()=>{class t extends na{constructor(){super()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),C0=(()=>{class t extends na{constructor(){super()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class gU{enabled=!1;infoDialog=!0;columnsManager=!0;schemaManager=!0;sourceSize=!0;constructor(n,e,i,r,o){this.isNotUndefinedOrNull(n)&&(this.enabled=n),this.isNotUndefinedOrNull(e)&&(this.infoDialog=e),this.isNotUndefinedOrNull(i)&&(this.columnsManager=i),this.isNotUndefinedOrNull(o)&&(this.sourceSize=o),this.isNotUndefinedOrNull(r)&&(this.schemaManager=r)}isEnabled(){return this.enabled}isInfoDialogEnabled(){return this.infoDialog}isColumnsManagerEnabled(){return this.columnsManager}isSourceSizeEnabled(){return this.sourceSize}isSchemaManagerEnabled(){return this.schemaManager}isNotUndefinedOrNull(n){return null!=n}}class zh extends na{constructor(){super(new gU)}}const Ype=new W("StructureComponentToken");let Du=(()=>{class t{innerElementRef;innerClassModifier;constructor(e){this.innerElementRef=e,this.initClassModifier(),this.addHostClass()}addClassToHost(e){this.innerClassModifier.getHost().add(e)}removeClassFromHost(e){this.innerClassModifier.getHost().remove(e)}hasChanged(e){return void 0!==e&&void 0!==e.currentValue}ifChanged(e,i){this.hasChanged(e)&&i()}initClassModifier(){this.innerClassModifier=new om(this.innerElementRef.nativeElement)}addHostClass(){this.innerClassModifier.getHost().add(this.getSelectorName())}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275dir=N({type:t})}return t})(),vn=(()=>{class t extends Du{detector;viewInDom=!1;unsubscribe$=new Ci;constructor(e,i){super(i),this.detector=e}ngAfterViewInit(){this.viewInDom=!0}ngOnDestroy(){this.unsubscribe()}reRender(){this.isViewInDom()&&this.detector.detectChanges()}isViewInDom(){return this.viewInDom}subscribe(e,i){e.pipe(this.takeUntil()).subscribe(r=>{i(r),this.reRender()})}subscribeWithoutRender(e,i){e.pipe(this.takeUntil()).subscribe(r=>{i(r)})}subscribeAndEmit(e,i,r=(o=>o)){e.pipe(this.takeUntil()).subscribe(o=>{i.emit(r(o))})}unsubscribe(){this.unsubscribe$.next(),this.unsubscribe$.complete()}takeUntil(){return Wr(this.unsubscribe$)}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275dir=N({type:t,features:[O]})}return t})();var oa=function(t){return t[t.ENTER=0]="ENTER",t[t.SUBMIT=1]="SUBMIT",t[t.CANCEL=2]="CANCEL",t}(oa||{});class at extends Yf{}class mI extends at{fieldConfigs;constructor(n,e){super(n,"InitFieldsCommand"),this.fieldConfigs=e}getFieldConfigs(){return this.fieldConfigs}}class mt extends Nh{}class D0 extends mt{fieldConfigs;fields;constructor(n,e,i){super(n,{fieldConfigs:e,fields:i},"FieldsInitedEvent"),this.fieldConfigs=e,this.fields=i}getFields(){return this.fields}}class bI{id;constructor(n){this.id=n}getId(){return this.id}}class Kpe{column;field;constructor(n,e){this.column=n,this.field=e}getColumn(){return this.column}getField(){return this.field}}class Zpe{structureId;compositionId;columnFieldFactory;columnAutoConfigurator;compositionCommandInvoker;commandDispatcher=Y.resolve(sr);domainEventBus=Y.resolve(_o);columns;constructor(n,e,i,r,o){this.structureId=n,this.compositionId=e,this.columnFieldFactory=i,this.columnAutoConfigurator=r,this.compositionCommandInvoker=o}handle(n){let e=[];if(void 0!==n.columns&&void 0!==n.columns.currentValue)e=n.columns.currentValue,this.columns=e;else{if(void 0!==this.columns||null==n.source)return;e=this.columnAutoConfigurator.configure(n.source.currentValue),this.columns=e}this.compositionCommandInvoker.setGroups(e,this.compositionId);const{columns:i}=this.getConfigs(e),o=this.getFieldConfigs(i),s=new mI(this.structureId,o);this.domainEventBus.ofEvents([D0]).pipe(Tt(a=>a.getAggregateId().toString()===this.structureId.toString()),Oh(1)).subscribe(a=>{const c=a.getFields(),l=this.convertColumnFieldIds(c),u=this.convertColumns(i,c,l);this.compositionCommandInvoker.setColumns(u,this.compositionId)}),this.commandDispatcher.dispatch(s)}getConfigs(n){let e=[];const i=[];for(let r=0;r<n.length;r+=1){const o=n[r];void 0!==o.columns?(i.push(o),e=e.concat(o.columns)):e.push(o)}return{columns:e,groups:i}}getFieldConfigs(n){return n.map(e=>({field:e.field,type:e.type,matcher:e.matcher,summaries:e.summaries,sorting:e.sorting}))}convertColumnFieldIds(n){return n?n.map(e=>new bI(e.getId().getId())):[]}convertColumns(n,e,i){return n?n.map((r,o)=>{const a=e[o],c=this.columnFieldFactory.create(i[o],a.getAccessorMethod(),a.getDataType(),a.getSearchAccessorMethod());return new Kpe(r,c)}):[]}}class Wh{}class Qpe extends zy{constructor(n){super(n)}toReadModelRootId(){return new Ni(this.getId())}}class Ni extends Wy{constructor(n){super(n)}toAggregateId(){return new Qpe(this.getId())}}class nl extends mu{}class Xpe{after;before;constructor(n,e){this.after=n,this.before=e}}class vI extends mt{beforeItem;afterItem;constructor(n,e,i){super(n,{beforeItem:e,afterItem:i},"StructureSourceItemEditedEvent"),this.beforeItem=e,this.afterItem=i}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}}class lm{domainEventBus=Y.resolve(_o);onSourceEdited(n){return this.domainEventBus.ofEvents([vI]).pipe(Tt(e=>e.getAggregateId().toString()===n.toString()),ge(e=>{const i=e.getAfterItem().getSourceItem(),r=e.getBeforeItem().getSourceItem();return new Xpe(i,r)}))}}class qh extends mu{}class hs{constructor(){}}class _I extends mt{selectedRows;allSelected;allUnselected;constructor(n,e,i,r){super(n,{selectedRows:e,allSelected:i,allUnselected:r},"SelectedRowChangedEvent"),this.selectedRows=e,this.allSelected=i,this.allUnselected=r}getSelectedRows(){return this.selectedRows}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}}let il=(()=>class t extends mu{sourceWarehouse;domainEventBusTOREMOVE;map=new Map;subject$=new Ci;constructor(e,i){super(),this.sourceWarehouse=e,this.domainEventBusTOREMOVE=i,this.domainEventBusTOREMOVE.ofEvents([_I]).pipe(yo(r=>{const o=r.getSelectedRows(),s=r.getAggregateId();return this.sourceWarehouse.onPreparedItems(s).pipe(Oh(1),ge(a=>{const c=[],l=a.length,u=new Map;for(let h=0;h<l;h+=1)u.set(a[h].getId().toString(),a[h]);for(let h=0;h<o.length;h+=1){const f=u.get(o[h]);c.push(new _0(f.getSourceItem(),h,f.getId()))}return{id:s,items:c}}))})).subscribe(r=>{this.map.set(r.id.toString(),r.items),this.subject$.next(this.map)})}static services=[hs,_o];onItemSelected(e){return this.subject$.toObservable().pipe(Tt(i=>i.has(e.toString())),ge(i=>i.get(e.toString())))}})();class pU{enabled=!1;rowEdit=()=>!0;cellEdit=()=>!0;constructor(n){void 0!==n.enabled&&(this.enabled=n.enabled),void 0!==n.rowEdit&&(this.rowEdit=n.rowEdit),void 0!==n.cellEdit&&(this.cellEdit=n.cellEdit)}isEnabled(n,e,i){return this.enabled&&this.rowEdit(n,e,i)&&this.cellEdit(n,e,i)}}class Mo extends dn{static default=new pU({enabled:!1});constructor(){super(Mo.default)}static \u0275fac=function(e){return new(e||Mo)};static \u0275prov=R({token:Mo,factory:Mo.\u0275fac})}class yI{convert(n){let e,i,r,o;return void 0!==n.infoDialog&&(e=n.infoDialog),void 0!==n.columnsManager&&(i=n.columnsManager),void 0!==n.schemaManager&&(o=n.schemaManager),void 0!==n.sourceSize&&(r=n.sourceSize),new gU(n.enabled,e,i,o,r)}}let E0=(()=>{class t{structureInfoPanelConfigConverter;structureInfoPanelArchive;constructor(e,i){this.structureInfoPanelConfigConverter=e,this.structureInfoPanelArchive=i}static services=[yI,zh];set(e){const i=this.structureInfoPanelConfigConverter.convert(e);this.structureInfoPanelArchive.next(i)}static \u0275fac=function(i){return new(i||t)(I(yI),I(zh))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class Jpe{fieldId;accessor;searchAccessor;dataType;constructor(n,e,i,r){this.fieldId=n,this.accessor=e,this.dataType=i,this.searchAccessor=r}getId(){return this.fieldId}getValue(n){return this.accessor(n)}getAccessor(){return this.accessor}getSearchAccessor(){return this.searchAccessor}getDataType(){return this.dataType}}class um{create(n,e,i,r){return new Jpe(n,e,i,r)}}class rl extends mu{constructor(){super()}}let dm=(()=>{class t extends na{constructor(){super(!1)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class ol extends mu{constructor(){super()}}class Ka{}let Yh=(()=>{class t extends dn{static default=!1;constructor(){super(t.default)}on(e){return super.on(e).pipe(Tt(i=>i))}once(e){return Fh(this.on(e))}}return t})(),efe=(()=>{class t extends vn{changeDetectorRef;columnAutoConfigurator;structureId;compositionId;schemaId;structureCommandInvoker;structurePagingCommandDispatcher;pagingEventRepository;sortingCommandInvoker;searchCommandInvoker;sourceCommandService;sourceEventService;schemaCommandInvoker;compositionCommandDispatcher;compositionEventRepository;formationEventService;structureEditModeArchive;structureCellEditArchive;structureInfoPanelConfigService;structureCellEditStore;columnFieldFactory;formationCommandDispatcher;searchEventRepository;structureHeaderBottomEnabledArchive;schemaEventRepository;translationService;structureInitialValuesReadyArchive;maxHeight;width;rowHeight;autoResizeWidth;source=[];columns;editMode;cellEditing;theme;themeChanged=new X;columnsChanged=new X;containerWidthChanged=new X;sourceEdited=new X;cellEditEntered=new X;cellEditCanceled=new X;cellEditSubmitted=new X;structureColumnInputHandler;changeAfterInit=!1;constructor(e,i,r,o,s,a,c,l,u,h,f,v,y,D,S,k,A,K,J,de,ve,ke,Ve,Nt,Pt,kn,An,Rn){super(e,i),this.changeDetectorRef=e,this.columnAutoConfigurator=r,this.structureId=o,this.compositionId=s,this.schemaId=a,this.structureCommandInvoker=c,this.structurePagingCommandDispatcher=l,this.pagingEventRepository=u,this.sortingCommandInvoker=h,this.searchCommandInvoker=f,this.sourceCommandService=v,this.sourceEventService=y,this.schemaCommandInvoker=D,this.compositionCommandDispatcher=S,this.compositionEventRepository=k,this.formationEventService=A,this.structureEditModeArchive=K,this.structureCellEditArchive=J,this.structureInfoPanelConfigService=de,this.structureCellEditStore=ve,this.columnFieldFactory=ke,this.formationCommandDispatcher=Ve,this.searchEventRepository=Nt,this.structureHeaderBottomEnabledArchive=Pt,this.schemaEventRepository=kn,this.translationService=An,this.structureInitialValuesReadyArchive=Rn,this.structureColumnInputHandler=new Zpe(o,s,ke,r,S),this.translationService.setDefaultTranslation()}ngOnChanges(e){jt(e.editMode,()=>{this.structureEditModeArchive.next(this.editMode)}),jt(e.cellEditing,()=>{let i;i="boolean"==typeof this.cellEditing?{enabled:this.cellEditing}:this.cellEditing,this.structureCommandInvoker.setCellEdit(i,this.structureId)}),jt(e.width,i=>{this.compositionCommandDispatcher.setWidth(i,this.compositionId)}),jt(e.theme,()=>{this.schemaCommandInvoker.setTheme(this.theme,this.schemaId,this.structureId)}),jt(e.rowHeight,()=>{this.structureCommandInvoker.setRowHeight(this.rowHeight,this.structureId)}),jt(e.autoResizeWidth,()=>{this.compositionCommandDispatcher.setResizeWidth(this.autoResizeWidth,this.compositionId)}),this.structureColumnInputHandler.handle(e),jt(e.maxHeight,()=>{this.structureCommandInvoker.setContainerHeight(this.maxHeight,this.structureId)}),jt(e.source,()=>{this.sourceCommandService.setOrigin(this.source,this.structureId)})}ngOnInit(){this.compositionEventRepository.onColumnsChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(()=>{this.columnsChanged.emit()}),this.compositionEventRepository.onContainerWidthChanged(this.compositionId.toReadModelRootId()).pipe(this.takeUntil()).subscribe(e=>{this.containerWidthChanged.emit(e)}),this.sourceEventService.onSourceEdited(this.structureId).subscribe(e=>{this.sourceEdited.emit(e)}),this.structureCellEditStore.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case oa.ENTER:this.cellEditEntered.emit();break;case oa.SUBMIT:this.cellEditSubmitted.emit();break;case oa.CANCEL:this.cellEditCanceled.emit()}}),this.subscribeAndEmit(this.schemaEventRepository.onThemeChanged(this.schemaId),this.themeChanged),this.componentInitialized()}componentInitialized(){this.changeAfterInit=!0}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Wh),g(Xe),g(Si),g(Ni),g(Io),g(To),g(nl),g(us),g(ls),g(So),g(lm),g(xo),g(ia),g(qh),g(il),g(C0),g(Mo),g(E0),g(w0),g(um),g(ar),g(rl),g(dm),g(ol),g(Ka),g(Yh))};static \u0275dir=N({type:t,inputs:{maxHeight:"maxHeight",width:"width",rowHeight:"rowHeight",autoResizeWidth:"autoResizeWidth",source:"source",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",theme:"theme"},outputs:{themeChanged:"themeChanged",columnsChanged:"columnsChanged",containerWidthChanged:"containerWidthChanged",sourceEdited:"sourceEdited",cellEditEntered:"cellEditEntered",cellEditCanceled:"cellEditCanceled",cellEditSubmitted:"cellEditSubmitted"},features:[O,we]})}return t})();class hm{enabled;sort;filter;columnsManager;mainMenu="Menu";filterMenu="Filter";columnsMenu="Columns";constructor(n=!1,e=!0,i=!1,r=!1){this.enabled=n,this.sort=e,this.filter=i,this.columnsManager=r}static default(){return new hm}static fromConfig(n){return new hm(n.enabled,n.sort,n.filter,n.columnsManager)}isEnabled(){return this.enabled&&(this.sort||this.filter||this.columnsManager)}isMainEnabled(){return this.sort}isSortingEnabled(){return this.sort}isFilteringEnabled(){return this.filter}isColumnManagerEnabled(){return this.columnsManager}getMenus(){const n=[];return this.isMainEnabled()&&n.push(this.getMainMenu()),this.isFilteringEnabled()&&n.push(this.getFilterMenu()),this.isColumnManagerEnabled()&&n.push(this.getColumnMenu()),n}getActiveMenu(){return this.getMenus()[0]}getMainMenu(){return this.mainMenu}getFilterMenu(){return this.filterMenu}getColumnMenu(){return this.columnsMenu}setMainMenu(n){this.mainMenu=n}setFilterMenu(n){this.filterMenu=n}setColumnsMenu(n){this.columnsMenu=n}}let gm=(()=>{class t extends na{constructor(){super(hm.default())}nextConfig(e){const i=hm.fromConfig(e);this.next(i)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),fU=(()=>{class t{closeAll$=new Ci;closeAll(){this.closeAll$.next()}onCloseAll(){return this.closeAll$.toObservable()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),wI=(()=>{class t extends na{constructor(){super(!0)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),S0=(()=>{class t extends na{constructor(){super({enabled:!1,template:e=>"Detail View"})}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const mU=new W("structureRowDetailViewItem"),bU=new W("structureRowDetailViewTemplate");let vU=(()=>{class t extends Du{subClassConstructor;constructor(e){super(e),this.subClassConstructor=this.constructor,this.hasInputs()&&this.throwError("it cannot have properties annotated with @Inputs().")}hasInputs(){return!this.isEmpty(this.constructor.\u0275cmp.inputs)}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a DynamicallyCreatedComponent, ${e}.`)}isEmpty(e){for(const i in e)if(e.hasOwnProperty(i))return!1;return!0}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275dir=N({type:t,features:[O]})}return t})(),_U=(()=>{class t extends vU{item;template;sanitizer;selectedRowValue;safeHTML;constructor(e,i,r,o){super(e),this.item=i,this.template=r,this.sanitizer=o,this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.template(this.item.getItem(),this.item.getIndex())),this.selectedRowValue=this.item.getItem()}getSelectorName(){return"gui-row-detail"}static \u0275fac=function(i){return new(i||t)(g(F),g(mU),g(bU),g(nu))};static \u0275cmp=V({type:t,selectors:[["div","gui-row-detail",""]],features:[O],attrs:Aue,decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(i,r){1&i&&L(0,"div",0),2&i&&C("innerHTML",r.safeHTML,Gl)},encapsulation:2,changeDetection:0})}return t})(),yU=(()=>{class t extends Cr{injector;structureId;structureDetailViewConfigArchive;formationEventService;drawerService;enabled=!1;config;elementRef;constructor(e,i,r,o,s){super(),this.injector=e,this.structureId=i,this.structureDetailViewConfigArchive=r,this.formationEventService=o,this.drawerService=s}init(e){this.elementRef=e,this.structureDetailViewConfigArchive.on().pipe(this.hermesTakeUntil()).subscribe(i=>{this.config=i,!0===i.enabled?this.turnOn():!1===i.enabled&&this.turnOff()}),this.formationEventService.onItemSelected(this.structureId).pipe(this.hermesTakeUntil()).subscribe(i=>{if(!this.enabled||(this.drawerService.close(),0===i.length))return;const o=He.create({parent:this.injector,providers:[{provide:mU,useValue:i[0]},{provide:bU,useValue:this.config.template}]});this.drawerService.open({appendToElement:this.elementRef,component:_U,injector:o})})}turnOn(){this.enabled=!0}turnOff(){this.enabled=!1}static \u0275fac=function(i){return new(i||t)(I(He),I(Xe),I(S0),I(il),I(oI))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var x0=function(t){return t[t.TOP=0]="TOP",t[t.BOTTOM=1]="BOTTOM",t}(x0||{}),Eu=function(t){return t.SELECTED="selected",t.PAGING_TOP_CLASS_NAME="gui-paging-top",t.PAGING_BOTTOM_CLASS_NAME="gui-paging-bottom",t}(Eu||{});let Xn=(()=>{class t{state={};state$=new ss;destroy$=new ss;ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setValue(e){this.state=Object.assign({},this.state,e),this.state$.next(this.state)}getValue(e){return void 0!==e?this.state[e]:this.state}select(e){let i=this.state$;return void 0!==e&&(i=this.state$.pipe(ge(r=>r[e]))),i.pipe(os())}connect(e,i){"string"==typeof e?i.pipe(Wr(this.destroy$)).subscribe(r=>{this.setPartialState(e,r)}):e.pipe(Wr(this.destroy$)).subscribe(r=>{this.setValue(r)})}setPartialState(e,i){const r={};r[e]=i,this.state=Object.assign({},this.state,r),this.state$.next(this.state)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class wU{unsubscribe$=new Ci;constructor(){}takeUntil(){return Wr(this.unsubscribe$)}unsubscribe(){this.unsubscribe$.isCompleted||(this.unsubscribe$.next(),this.unsubscribe$.complete())}}let mi=(()=>{class t{streamCloser=new wU;hermesUnsubscribe$=new Ci;constructor(){}ngOnDestroy(){this.streamCloser.unsubscribe(),this.hermesUnsubscribe()}isDefined(e,i){return void 0!==i[e]&&void 0!==i[e].currentValue}subscribeAndEmit(e,i){e.pipe(this.hermesTakeUntil()).subscribe(r=>{i.emit(r)})}unsubscribe(){this.streamCloser.unsubscribe()}hermesUnsubscribe(){this.hermesUnsubscribe$.next(),this.hermesUnsubscribe$.complete()}hermesTakeUntil(){return Wr(this.hermesUnsubscribe$)}takeUntil(){return this.streamCloser.takeUntil()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=N({type:t})}return t})(),CU=(()=>{class t extends Du{changeDetectorRef;constructor(e,i){super(e),this.changeDetectorRef=i}ngOnInit(){this.changeDetectorRef.detach()}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275dir=N({type:t,features:[O]})}return t})(),Kh=(()=>{class t extends CU{constructor(e,i){super(e,i),this.addClassToHost("gui-icon")}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275dir=N({type:t,features:[O]})}return t})(),xi=(()=>{class t extends Du{subClassConstructor;subClassNgOnInit;constructor(e){super(e),this.subClassConstructor=this.constructor,this.subClassNgOnInit=this.ngOnInit,this.hasConstructorOnlyElementRefInjected(arguments)||this.throwError("it should not inject services"),this.subClassNgOnInit&&this.throwError("it should not use ngOnInit")}hasConstructorOnlyElementRefInjected(e){return!(arguments.length>1)&&1===arguments.length&&this.isElementRef(arguments[0])}isElementRef(e){return null!==e.nativeElement}throwError(e){throw new Error(`Component "${this.subClassConstructor.name}" is a PureComponent, ${e}.`)}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275dir=N({type:t,features:[O]})}return t})();class pm{classModifier=new om;select(n){this.classModifier.getElement(n).add(Eu.SELECTED)}unselect(n){this.classModifier.getElement(n).remove(Eu.SELECTED)}add(n,e){this.classModifier.getElement(n).add(e)}remove(n,e){this.classModifier.getElement(n).remove(e)}toggle(n){}}class Su{constructor(){}}let I0=(()=>{class t extends na{constructor(){super(Ya.BASIC)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class Zh{destroy$=new ss(1);subscription;subscribe(n,e){void 0!==this.subscription&&this.subscription.unsubscribe(),this.subscription=n.pipe(os(),Wr(this.destroy$)).subscribe(i=>e(i),i=>this.onError(i),()=>this.onComplete())}destroy(){this.destroy$.next(),this.destroy$.complete()}onError(n){}onComplete(){}}class tfe{cd;vcr;template;constructor(n,e,i){this.cd=n,this.vcr=e,this.template=i}onNext(n){this.vcr.clear(),this.vcr.createEmbeddedView(this.template,{$implicit:n}),this.cd.detectChanges()}}let cr=(()=>{class t{subscriber;cd;vcr;template;guiLet;guiLetViewChanger;constructor(e,i,r,o){this.subscriber=e,this.cd=i,this.vcr=r,this.template=o,this.guiLetViewChanger=new tfe(this.cd,this.vcr,this.template)}ngOnChanges(e){void 0!==e.guiLet&&this.subscriber.subscribe(this.guiLet,i=>{this.guiLetViewChanger.onNext(i)})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(i){return new(i||t)(g(Zh),g(me),g(zt),g(Re))};static \u0275dir=N({type:t,selectors:[["","guiLet",""]],inputs:{guiLet:"guiLet"},features:[ye([Zh]),we]})}return t})(),Yr=(()=>{class t{changeDetectorRef;translationService;actualTranslationValue="";subscription;constructor(e,i){this.changeDetectorRef=e,this.translationService=i}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}transform(e){return this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translationService.onTranslation().subscribe(i=>{const r=i[e];r||(this.actualTranslationValue=e),this.actualTranslationValue=r,this.changeDetectorRef.markForCheck()}),this.actualTranslationValue}static \u0275fac=function(i){return new(i||t)(g(me,16),g(Ka,16))};static \u0275pipe=Yn({name:"guiTranslate",type:t,pure:!1})}return t})(),nfe=(()=>{class t extends xi{paging;sourceSize;nextPageChanged=new X;prevPageChanged=new X;prevDisabled=!1;nextDisabled=!1;constructor(e){super(e)}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}getSelectorName(){return"gui-paging-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging-navigator","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[O,we],attrs:Rue,decls:7,vars:8,consts:[["gui-button","",1,"gui-paging-navigator-prev","gui-mr-5",3,"click","disabled"],["gui-button","",1,"gui-paging-navigator-next","gui-mr-0",3,"click","disabled"]],template:function(i,r){1&i&&(w(0,"gui-button-group")(1,"button",0),B("click",function(){return r.prevPage()}),U(2),je(3,"guiTranslate"),E(),w(4,"button",1),B("click",function(){return r.nextPage()}),U(5),je(6,"guiTranslate"),E()()),2&i&&(_(),C("disabled",r.prevDisabled),_(),Fe(" ",Ye(3,4,"pagingPrevPage")," "),_(2),C("disabled",r.nextDisabled),_(),Fe(" ",Ye(6,6,"pagingNextPage")," "))},dependencies:[Ga,Hle,Yr],encapsulation:2,changeDetection:0})}return t})(),ife=(()=>{class t extends xi{paging;pageSizeChanged=new X;selectPageSizes;selectPageSize;constructor(e){super(e)}ngOnChanges(e){jt(e.paging,()=>{this.paging&&(this.selectPageSizes=this.getSelectPageSizes(),this.selectPageSize=this.getSelectPageSize(this.paging.getPageSize()))})}changePageSize(e){this.pageSizeChanged.emit(+e.value)}getSelectorName(){return"gui-paging-select"}getSelectPageSizes(){const e=[];return this.paging.getPageSizes().forEach(r=>{const o=this.getSelectPageSize(r);e.push(o)}),e}getSelectPageSize(e){return{name:e.toString(),value:e.toString()}}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging-select","","paging",""]],inputs:{paging:"paging"},outputs:{pageSizeChanged:"pageSizeChanged"},features:[O,we],attrs:Nue,decls:4,vars:6,consts:[[1,"gui-inline-block","gui-mr-5"],[3,"optionChanged","options","selected","width"]],template:function(i,r){1&i&&(w(0,"span",0),U(1),je(2,"guiTranslate"),E(),w(3,"gui-select",1),B("optionChanged",function(s){return r.changePageSize(s)}),E()),2&i&&(_(),Fe(" ",Ye(2,4,"pagingItemsPerPage"),"\n"),_(2),C("options",r.selectPageSizes)("selected",r.selectPageSize)("width",25))},dependencies:[uI,Yr],encapsulation:2,changeDetection:0})}return t})(),rfe=(()=>{class t extends xi{paging;sourceSize;firstItemIndex;lastItemIndex;constructor(e){super(e),this.addClassToHost("gui-mx-6")}ngOnChanges(){this.calculate()}calculate(){this.paging&&(this.firstItemIndex=this.paging.getStart(),this.lastItemIndex=this.paging.getEnd(),this.sourceSize=this.paging.getSourceSize())}isSourceNotEmpty(){return this.sourceSize>0}getSelectorName(){return"gui-paging-stats"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging-stats","","paging",""]],inputs:{paging:"paging"},features:[O,we],attrs:Oue,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[1,"gui-paging-source-stats"],[1,"gui-paging-source-size"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(i,r){if(1&i&&j(0,Fue,12,6,"ng-container",1)(1,Pue,3,3,"ng-template",null,0,Ct),2&i){const o=Gi(2);C("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[ln,Yr],encapsulation:2,changeDetection:0})}return t})(),ofe=(()=>{class t extends xi{structureId;pagingCommandInvoker;paging;sourceSize;nextPageChanged=new X;prevPageChanged=new X;prevDisabled=!1;nextDisabled=!1;constructor(e,i,r){super(e),this.structureId=i,this.pagingCommandInvoker=r}ngOnChanges(){this.calculatePrev(),this.calculateNext()}prevPage(){this.prevPageChanged.emit()}nextPage(){this.nextPageChanged.emit()}firstPage(){this.pagingCommandInvoker.goToPage(1,this.paging.getPage(),this.structureId)}lastPage(){const e=Math.ceil(this.sourceSize/this.paging.getPageSize());this.pagingCommandInvoker.goToPage(e,this.paging.getPage(),this.structureId)}getSelectorName(){return"gui-paging-alternative-navigator"}calculatePrev(){this.paging&&(this.prevDisabled=this.paging.isPrevPageDisabled())}calculateNext(){!this.paging&&!this.sourceSize||(this.nextDisabled=this.paging.isNextPageDisabled())}static \u0275fac=function(i){return new(i||t)(g(F),g(Xe),g(To))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging-alternative-navigator","","paging","","sourceSize",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},outputs:{nextPageChanged:"nextPageChanged",prevPageChanged:"prevPageChanged"},features:[O,we],attrs:Lue,ngContentSelectors:Bue,decls:17,vars:4,consts:[["gui-button","",3,"click","disabled"],["height","10.661","viewBox","0 0 11.081 10.661","width","11.081","xmlns","http://www.w3.org/2000/svg"],["transform","translate(-522.98 669.601) rotate(180)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-533.75 659.25)"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(-528.75 659.25)"],["gui-button","",1,"gui-paging-navigator-prev",3,"click","disabled"],["height","10.661","viewBox","0 0 6.081 10.661","width","6.081","xmlns","http://www.w3.org/2000/svg"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(5.77 10.351) rotate(180)"],["gui-button","",1,"gui-paging-navigator-next",3,"click","disabled"],["d","M.75.75,5.02,5.02.75,9.29","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5","transform","translate(0.311 0.311)"],["transform","translate(534.061 -658.939)"]],template:function(i,r){1&i&&(jn(),w(0,"button",0),B("click",function(){return r.firstPage()}),Ln(),w(1,"svg",1)(2,"g",2),L(3,"path",3)(4,"path",4),E()()(),Ps(),w(5,"button",5),B("click",function(){return r.prevPage()}),Ln(),w(6,"svg",6),L(7,"path",7),E()(),an(8),Ps(),w(9,"button",8),B("click",function(){return r.nextPage()}),Ln(),w(10,"svg",6),L(11,"path",9),E()(),Ps(),w(12,"button",0),B("click",function(){return r.lastPage()}),Ln(),w(13,"svg",1)(14,"g",10),L(15,"path",3)(16,"path",4),E()()()),2&i&&(C("disabled",r.prevDisabled),_(5),C("disabled",r.prevDisabled),_(4),C("disabled",r.nextDisabled),_(3),C("disabled",r.nextDisabled))},dependencies:[Ga],encapsulation:2,changeDetection:0})}return t})(),sfe=(()=>{class t extends xi{structureId;pagingCommandService;paging;sourceSize=0;currentPage;pages;numberOfVisiblePages=3;constructor(e,i,r){super(e),this.structureId=i,this.pagingCommandService=r}ngOnChanges(e){this.calculate()}calculate(){if(this.paging&&this.sourceSize){const e=Math.ceil(this.sourceSize/this.paging.getPageSize());if(this.currentPage=this.paging.getPage(),this.pages=[],this.pages.length<=e)for(let i=1;i<=e;i++)this.pages.push(i)}}isSourceNotEmpty(){return this.sourceSize>0}goToPage(e){const i=this.paging.getPage();this.pagingCommandService.goToPage(e,i,this.structureId)}calculateVisiblePages(e){return this.paging.calculateVisiblePages(this.currentPage,this.numberOfVisiblePages,e)}activePage(e){return this.currentPage===e}getSelectorName(){return"gui-paging-alternative-pages"}static \u0275fac=function(i){return new(i||t)(g(F),g(Xe),g(To))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging-alternative-pages","","paging",""]],inputs:{paging:"paging",sourceSize:"sourceSize"},features:[O,we],attrs:Vue,decls:3,vars:2,consts:[["noSource",""],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[1,"relative"],[1,"gui-paging-page","gui-select-none","gui-cursor-pointer","gui-py-0","gui-px-6","gui-font-base",3,"click"],[1,"gui-paging-source-stats","gui-paging-no-items"]],template:function(i,r){if(1&i&&j(0,Uue,2,1,"ng-container",1)(1,jue,3,3,"ng-template",null,0,Ct),2&i){const o=Gi(2);C("ngIf",r.isSourceNotEmpty())("ngIfElse",o)}},dependencies:[hi,ln,Yr],encapsulation:2,changeDetection:0})}return t})(),afe=(()=>{class t extends Du{elRef;cssClassModifier;structureId;pagingWarehouse;pagingCommandInvoker;sourceWarehouse;pagingDisplayModeArchive;position;minimal;state=x(Xn);state$=this.state.select();constructor(e,i,r,o,s,a,c){super(e),this.elRef=e,this.cssClassModifier=i,this.structureId=r,this.pagingWarehouse=o,this.pagingCommandInvoker=s,this.sourceWarehouse=a,this.pagingDisplayModeArchive=c,this.addClassToHost("gui-flex"),this.addClassToHost("gui-justify-end"),this.addClassToHost("gui-items-center"),this.addClassToHost("gui-p-4"),this.state.setValue({alternativeDisplay:!1,isPagingVisible:!1}),this.state.connect("sourceSize",this.sourceWarehouse.onOriginSize(this.structureId)),this.state.connect("alternativeDisplay",this.selectIsAdvancedPagingEnabled()),this.state.connect("paging",this.pagingWarehouse.onPaging(this.structureId)),this.state.connect("isPagingVisible",this.selectIsPagingVisible())}ngOnChanges(e){e.position&&(this.position===x0.BOTTOM?(this.cssClassModifier.remove(this.elRef.nativeElement,Eu.PAGING_TOP_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Eu.PAGING_BOTTOM_CLASS_NAME)):(this.cssClassModifier.remove(this.elRef.nativeElement,Eu.PAGING_BOTTOM_CLASS_NAME),this.cssClassModifier.add(this.elRef.nativeElement,Eu.PAGING_TOP_CLASS_NAME)))}changePageSize(e){this.pagingCommandInvoker.changePageSize(e,this.structureId)}nextPage(e){e&&this.pagingCommandInvoker.nextPage(this.structureId)}prevPage(){this.pagingCommandInvoker.prevPage(this.structureId)}getSelectorName(){return"gui-paging"}selectIsPagingVisible(){return this.pagingWarehouse.onPaging(this.structureId).pipe(ge(e=>this.mapIsPagingVisible(e)))}mapIsPagingVisible(e){return e&&e.isEnabled()&&(this.position===x0.TOP&&e.isPagerTop()||this.position===x0.BOTTOM&&e.isPagerBottom())}selectIsAdvancedPagingEnabled(){return this.pagingDisplayModeArchive.on().pipe(ge(e=>e===Ya.ADVANCED))}static \u0275fac=function(i){return new(i||t)(g(F),g(pm),g(Xe),g(Su),g(To),g(hs),g(I0))};static \u0275cmp=V({type:t,selectors:[["div","gui-paging","","position",""]],inputs:{position:"position",minimal:"minimal"},features:[ye([Xn]),O,we],attrs:Gue,decls:1,vars:1,consts:[["minimalTemplate",""],[4,"guiLet"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["gui-paging-select","",3,"pageSizeChanged","paging"],["gui-paging-stats","",3,"paging"],["gui-paging-navigator","",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-navigator","",1,"gui-flex","gui-p-0",3,"nextPageChanged","prevPageChanged","paging","sourceSize"],["gui-paging-alternative-pages","",1,"gui-flex","gui-justify-center",3,"paging","sourceSize"]],template:function(i,r){1&i&&j(0,Yue,3,2,"ng-container",1),2&i&&C("guiLet",r.state$)},dependencies:[ln,cr,nfe,ife,rfe,ofe,sfe],styles:[".gui-paging-alternative-navigator .gui-button{-ms-flex-line-pack:center;align-content:center;background:transparent;display:-ms-flexbox;display:flex;font-size:14px;line-height:21px;margin:0 2px;padding:0}.gui-paging-alternative-navigator .gui-button svg{-ms-flex-item-align:center;align-self:center;height:12px;margin:-1px 2px 0;width:auto}.gui-paging-alternative-navigator .gui-button svg path{stroke:#ccc;transition:stroke .3s ease-in-out}.gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-paging-alternative-navigator .gui-button:hover svg path{stroke:#333}.gui-paging-alternative-navigator .gui-button:disabled svg{opacity:.4}.gui-paging-alternative-navigator .gui-material .gui-button{padding:2px 16px}.gui-paging-alternative-pages{line-height:21px}.gui-paging-alternative-pages .gui-paging-page{display:none}.gui-paging-alternative-pages .gui-paging-visible-page .gui-paging-page{display:block;font-family:Arial,serif}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page{color:#333}.gui-paging-alternative-pages .gui-paging-visible-page.gui-paging-active-page .gui-paging-page{font-weight:700}.gui-paging-bottom{border-top:1px solid;border-top-color:inherit}.gui-paging-top{border-bottom:1px solid;border-bottom-color:inherit}\n",".gui-generic .gui-paging,.gui-generic .gui-paging *{border-color:#2224261a;font-size:14px}\n"],encapsulation:2,changeDetection:0})}return t})();class Qh{}class T0 extends mt{constructor(n){super(n,null,"PageChangedEvent")}}class xn extends Uy{}class cfe extends xn{constructor(n){super(n,"PageChangedAggregateEvent")}toDomainEvent(){return new T0(this.getAggregateId())}}class M0 extends mt{constructor(n){super(n,null,"PagesizeChangedEvent")}}class lfe extends xn{constructor(n){super(n,"PagesizeChangedAggregateEvent")}toDomainEvent(){return new M0(this.getAggregateId())}}class Xh{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;sourceSize;events=[];logger;constructor(n,e,i,r,o,s,a,c){this.enabled=n,this.page=e,this.pageSize=i,this.pageSizes=r,this.pagerTop=o,this.pagerBottom=s,this.sourceSize=a,this.logger=c}static default(n){return new Xh(!1,1,25,[10,25,50,100],!1,!0,0,n)}static fromConfig(n,e){const i=Xh.default(e),r=n.enabled||i.isEnabled(),o=n.page||i.getPage(),s=n.pageSize||i.getPageSize(),a=n.pageSizes||i.getPageSizes(),c=n.pagerTop||i.isPagerTop(),l=n.pagerBottom||i.isPagerBottom();return new Xh(r,o,s,a,c,l,0,e)}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return!this.isDisabled()&&this.pagerTop}isPagerBottom(){return!this.isDisabled()&&this.pagerBottom}getSourceSize(){return this.sourceSize}change(n){void 0!==n.enabled&&(this.enabled=n.enabled),void 0!==n.page&&(this.page=n.page,void 0===n.enabled&&(this.enabled=!0)),void 0!==n.pageSize&&(this.pageSize=n.pageSize,void 0===n.enabled&&(this.enabled=!0)),void 0!==n.pageSizes&&(this.pageSizes=n.pageSizes,void 0===n.enabled&&(this.enabled=!0)),void 0!==n.pagerTop&&(this.pagerTop=n.pagerTop,void 0===n.enabled&&(this.enabled=!0)),void 0!==n.pagerBottom&&(this.pagerBottom=n.pagerBottom,void 0===n.enabled&&(this.enabled=!0)),!0===this.enabled&&!1===n.pagerTop&&!1===n.pagerBottom&&(this.pagerBottom=!0,this.logger.warn("Pagers cannot be turn off when paging is enabled."))}setSourceSize(n){this.sourceSize=n}nextPage(){let n=this.page;this.isNextPageDisabled()||(n+=1),this.page=n}prevPage(){let n=this.page;this.isPrevPageDisabled()||(n-=1),this.page=n}changePageSize(n){return this.pageSizes.find(e=>e===n)&&(this.setPage(1),this.setPageSize(n)),this.events}isNextPageDisabled(){return 0===this.sourceSize||this.page===Math.ceil(this.sourceSize/this.pageSize)}isPrevPageDisabled(){return 1===this.page}calculateStart(){const n=1+(this.page-1)*this.pageSize;return this.sourceSize<n?0:n}calculateEnd(){const n=this.page*this.pageSize;return this.sourceSize<n?this.sourceSize:n}sample(n){if(this.isDisabled())return n;let e=this.calculateStart();return 0!==e&&(e-=1),n.slice(e,this.calculateEnd())}clearEvents(){this.events.length=0}setPage(n){this.page=n,this.events.push(new cfe(new Xe("TODO need to be changed")))}setPageSize(n){this.pageSize=n,this.events.push(new lfe(new Xe("TODO need to be changed")))}}let DU=(()=>class t{logger;constructor(e){this.logger=e}static services=[Qh];createDefault(){return Xh.default(this.logger)}createFromConfig(e){return Xh.fromConfig(e,this.logger)}})();class EU extends at{config;constructor(n,e){super(n,"SetPagingCommand"),this.config=e}getPagingConfig(){return this.config}}class SU extends at{pageSize;constructor(n,e){super(n,"ChangePagesizeCommand"),this.pageSize=e}getPageSize(){return this.pageSize}}class xU extends at{constructor(n){super(n,"NextPageCommand")}}class IU extends at{constructor(n){super(n,"PrevPageCommand")}}let TU=(()=>class t{commandDispatcher;constructor(e){this.commandDispatcher=e}static services=[sr];setPaging(e,i){this.commandDispatcher.dispatch(new EU(i,e))}changePageSize(e,i){this.commandDispatcher.dispatch(new SU(i,e))}nextPage(e){this.commandDispatcher.dispatch(new xU(e))}prevPage(e){this.commandDispatcher.dispatch(new IU(e))}})();class CI extends mt{constructor(n){super(n,null,"PagingSetEvent")}}class ufe{domainEventPublisher=Y.resolve(xt);forCommand(){return EU}handle(n,e){const i=e.getPagingConfig();n.changePaging(i)}publish(n,e){this.domainEventPublisher.publish(new CI(e.getAggregateId()))}}class DI extends mt{constructor(n){super(n,null,"NextPageEvent")}}class dfe{domainEventPublisher=Y.resolve(xt);forCommand(){return xU}handle(n,e){n.nextPage()}publish(n,e){this.domainEventPublisher.publish(new DI(e.getAggregateId()))}}class EI extends mt{constructor(n){super(n,null,"PrevPageEvent")}}class hfe{domainEventPublisher=Y.resolve(xt);forCommand(){return IU}handle(n,e){n.prevPage()}publish(n,e){this.domainEventPublisher.publish(new EI(e.getAggregateId()))}}class gfe{domainEventPublisher=Y.resolve(xt);forCommand(){return SU}handle(n,e){const i=e.getPageSize();n.changePageSize(i)}publish(n,e){const i=n.getEvents();i.forEach(r=>{r.aggregateId=n.getId()}),this.publishAggregateEvents(i,e),n.clearEvents()}publishAggregateEvents(n,e){for(const i of n)this.publishAggregateEvent(i,e)}publishAggregateEvent(n,e){switch(n.getType()){case"PageChangedAggregateEvent":const i=new T0(e.getAggregateId());this.domainEventPublisher.publish(i);break;case"PagesizeChangedAggregateEvent":const r=new M0(e.getAggregateId());this.domainEventPublisher.publish(r);break;case"StructurePreparedEntitiesSetAggregateEvent":this.domainEventPublisher.publish(n.toDomainEvent())}}}const ko="StructureAggregate";class pfe{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(TU),n.provide(DU)}registerCommandHandlers(){return[ufe,dfe,hfe,gfe]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}}let ffe=(()=>{let t=class{enabled;page;pageSize;pageSizes;pagerTop;pagerBottom;isNextDisabled;isPrevDisabled;start;end;sourceSize;constructor(e,i,r,o,s,a,c,l,u,h,f){this.enabled=e,this.page=i,this.pageSize=r,this.pageSizes=o,this.pagerTop=s,this.pagerBottom=a,this.isNextDisabled=c,this.isPrevDisabled=l,this.start=u,this.end=h,this.sourceSize=f}isEnabled(){return this.enabled}getPage(){return this.page}getPageSize(){return this.pageSize}getPageSizes(){return this.pageSizes}isPagerTop(){return this.pagerTop}isPagerBottom(){return this.pagerBottom}isNextPageDisabled(){return this.isNextDisabled}isPrevPageDisabled(){return this.isPrevDisabled}getStart(){return this.start}getEnd(){return this.end}getSourceSize(){return this.sourceSize}calculateVisiblePages(e,i,r){return e-i<r&&r<e+i}sample(e){let i=this.getStart();return 0!==i&&(i-=1),e.slice(i,this.getEnd())}compare(e){return JSON.stringify(this)===JSON.stringify(e)}};return t=dh([$x],t),t})();class MU{convert(n){return new ffe(n.isEnabled(),n.getPage(),n.getPageSize(),n.getPageSizes(),n.isPagerTop(),n.isPagerBottom(),n.isNextPageDisabled(),n.isPrevPageDisabled(),n.calculateStart(),n.calculateEnd(),n.getSourceSize())}}class fm extends Cr{domainEventBus=Y.resolve(_o);constructor(){super(),this.domainEventBus.ofEvents(this.forEvents()).pipe(this.hermesTakeUntil()).subscribe(n=>{try{this.subs(n)}catch(e){console.error(e)}})}}let kU=(()=>class t{structureRepository;constructor(e){this.structureRepository=e}static services=[fm];on(e){return this.structureRepository.on(e).pipe(Tt(i=>i.getId().toString()===e.toString()),ge(i=>i.getPaging()))}})(),mfe=(()=>class t extends Su{pagingRepository;constructor(e){super(),this.pagingRepository=e}static services=[kU];onPaging(e){return this.pagingRepository.on(e)}oncePaging(e){return Fh(this.pagingRepository.on(e))}})(),bfe=(()=>class t extends To{pagingDispatcher;constructor(e){super(),this.pagingDispatcher=e}static services=[TU];enable(e){this.pagingDispatcher.setPaging({enabled:!0},e)}disable(e){this.pagingDispatcher.setPaging({enabled:!1},e)}setPaging(e,i){this.pagingDispatcher.setPaging(e,i)}changePageSize(e,i){this.pagingDispatcher.changePageSize(e,i)}nextPage(e){this.pagingDispatcher.nextPage(e)}prevPage(e){this.pagingDispatcher.prevPage(e)}goToPage(e,i,r){if(i<e)for(;i!==e;)this.nextPage(r),i+=1;else for(;i!==e;)this.prevPage(r),i-=1}changePagerTop(e,i){this.pagingDispatcher.setPaging({pagerTop:e},i)}changePagerBottom(e,i){this.pagingDispatcher.setPaging({pagerBottom:e},i)}})(),vfe=(()=>class t extends nl{pagingWarehouse;eventBusToRemove=Y.resolve(_o);constructor(e){super(),this.pagingWarehouse=e}static services=[Su];onPageChange(e){return this.eventBusToRemove.ofEvents([EI,DI,T0]).pipe(Tt(i=>i.getAggregateId().toString()===e.toAggregateId().toString()),yo(i=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(ge(r=>r.getPage()))))}onPageSizeChange(e){return this.eventBusToRemove.ofEvents([M0]).pipe(Tt(i=>i.getAggregateId().toString()===e.toAggregateId().toString()),yo(i=>this.pagingWarehouse.oncePaging(e.toAggregateId()).pipe(ge(r=>r.getPageSize()))))}})();class _fe{registerProviders(n){n.provide(To,bfe),n.provide(Su,mfe),n.provide(nl,vfe),n.provide(kU),n.provide(MU)}}class wfe{translation=new Map;resolver=(n,e)=>e;changeTranslation(n){for(const e of Object.keys(n))this.translation.set(e,n[e])}getTranslation(){return Array.from(this.translation).reduce((n,[e,i])=>Object.assign(n,{[e]:this.resolver(e,i)}),{})}setResolver(n){this.resolver=n}}class Cfe extends Ka{defaultTranslation=vpe;dictionary=new wfe;dictionary$=new ss(1);constructor(){super()}getTranslation(){return this.dictionary.getTranslation()}onTranslation(){return this.dictionary$.toObservable()}setDefaultTranslation(){this.changeTranslationAndPropagate(this.defaultTranslation)}changeTranslation(n){this.changeTranslationAndPropagate(n)}setResolver(n){this.setResolverAndPropagate(n)}changeTranslationAndPropagate(n){this.dictionary.changeTranslation(n),this.dictionary$.next(this.dictionary.getTranslation())}setResolverAndPropagate(n){this.dictionary.setResolver(n),this.dictionary$.next(this.dictionary.getTranslation())}}let Za=(()=>{class t extends $i{static forComponent(){return[{provide:Ka,useClass:Cfe}]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})();class Dfe{cd;value;actualObs$;baseValues$=new Ci;destroy$=new ss(1);constructor(n){this.cd=n,this.baseValues$.pipe(Tt(e=>e!==this.actualObs$),yo(e=>(this.actualObs$=e,e)),os(),Wr(this.destroy$)).subscribe(e=>{this.value=e,this.scheduleCD()})}destroy(){this.destroy$.next(),this.destroy$.complete()}subscribe(n){return this.baseValues$.next(n),this.value}scheduleCD(){setTimeout(()=>{this.cd.detectChanges()})}}let Jh=(()=>{class t{cd=x(me);subscriber=new Dfe(this.cd);transform(e){return this.subscriber.subscribe(e)}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Yn({name:"guiPush",type:t,pure:!1})}return t})(),SI=(()=>{class t{subscriber;vcr;template;guiIf;constructor(e,i,r){this.subscriber=e,this.vcr=i,this.template=r}ngOnChanges(e){void 0!==e.guiIf&&this.subscriber.subscribe(this.guiIf,i=>{i?this.vcr.createEmbeddedView(this.template):this.vcr.clear()})}ngOnDestroy(){this.subscriber.destroy()}static \u0275fac=function(i){return new(i||t)(g(Zh),g(zt),g(Re))};static \u0275dir=N({type:t,selectors:[["","guiIf",""]],inputs:{guiIf:"guiIf"},features:[ye([Zh]),we]})}return t})(),Efe=(()=>{class t{subscriber;elementRef;static STYLE="style";guiStyle;constructor(e,i){this.subscriber=e,this.elementRef=i}ngOnChanges(e){void 0!==e.guiStyle&&this.subscriber.subscribe(this.guiStyle,i=>{Object.keys(i).forEach(r=>{this.setStyleByName(r,i[r])})})}ngOnDestroy(){this.subscriber.destroy()}setStyleByName(e,i){this.set(e,i)}set(e,i){this.elementRef.nativeElement[t.STYLE][e]=i}static \u0275fac=function(i){return new(i||t)(g(Zh),g(F))};static \u0275dir=N({type:t,selectors:[["","guiStyle",""]],inputs:{guiStyle:"guiStyle"},features:[ye([Zh]),we]})}return t})(),Ao=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})();function Sfe(){return Y.resolve(To)}function xfe(){return Y.resolve(Su)}function Ife(){return Y.resolve(nl)}!function yfe(){new qr(new _fe,new pfe).init()}();let k0=(()=>{class t extends $i{static forComponent(){return[I0]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:To,useFactory:Sfe},{provide:Su,useFactory:xfe},{provide:nl,useFactory:Ife}],imports:[Oe,yu,Za,Ao]})}return t})(),mm=(()=>{class t extends na{static titlePanelConfig={enabled:!1,template:"Title Panel"};constructor(){super({...t.titlePanelConfig})}}return t})(),bm=(()=>{class t extends na{static footerPanelConfig={enabled:!1,template:"Footer Panel"};constructor(){super({...t.footerPanelConfig})}}return t})();var A0=function(t){return t.WIDTH="width",t.HEIGHT="height",t.PADDING_TOP="padding-top",t}(A0||{});const R0="style";let N0=(()=>{class t extends pI{constructor(e){super(e)}createModifier(e){return new t.StyleModifier(e)}static StyleModifier=class{htmlElement;constructor(e){this.htmlElement=e}setStyleByName(e,i){this.set(e,i)}setWidth(e){this.set(A0.WIDTH,this.toPx(e))}setHeight(e){this.set(A0.HEIGHT,this.toPx(e))}setPaddingTop(e){this.set(A0.PADDING_TOP,this.toPx(e))}remove(e){this.htmlElement[R0][e]=""}removeStyleByName(e){this.htmlElement[R0][e]=""}clear(){this.htmlElement.removeAttribute(R0)}set(e,i){this.htmlElement[R0][e]=i}toPx(e){return e>0?`${e}px`:`${e}`}}}return t})();class vm{constructor(){}}let xu=(()=>class t{structureRepository;structureCellEditArchive;constructor(e,i){this.structureRepository=e,this.structureCellEditArchive=i}static services=[fm,Mo];on(e){return this.structureRepository.on(e)}onEditManager(e){return this.structureCellEditArchive.on(e)}})();class sl{constructor(){}}const xI=new W("Structure - - css className");class _m{constructor(){}}class kfe{distinctTooltip;averageTooltip;minTooltip;maxTooltip;medTooltip;countTooltip;constructor(n,e,i,r,o,s){this.distinctTooltip=n,this.averageTooltip=e,this.minTooltip=i,this.maxTooltip=r,this.medTooltip=o,this.countTooltip=s}}var bi=function(t){return t[t.ASC=0]="ASC",t[t.DESC=1]="DESC",t[t.NONE=2]="NONE",t}(bi||{});class AU{header;dataType;context;width;fieldId;columnDefinitionId;sortStatus;enabled;cssClasses;styles;sortable;align;constructor(n,e,i,r,o,s,a,c,l,u,h,f){this.header=n,this.dataType=e,this.context=i,this.width=r,this.fieldId=o,this.columnDefinitionId=s,this.sortStatus=a,this.enabled=c,this.cssClasses=l,this.styles=u,this.sortable=h,this.align=f}getHeader(){return this.header}getDataType(){return this.dataType}getColumnDefinitionId(){return this.columnDefinitionId}getFieldId(){return this.fieldId}getSortStatus(){return this.sortStatus}getCssClasses(){return this.cssClasses}getStyles(){return this.styles}isSortEnabled(){return this.sortable}isAscSort(){return this.sortStatus===bi.ASC}isDescSort(){return this.sortStatus===bi.DESC}isNoSort(){return this.sortStatus===bi.NONE}isEnabled(){return this.enabled}isAlignLeft(){return this.align===Sn.LEFT}isAlignCenter(){return this.align===Sn.CENTER}isAlignRight(){return this.align===Sn.RIGHT}getAlign(){return this.align}}class RU extends AU{viewTemplate;editTemplate;constructor(n=null,e=null,i){super(i.getHeader(),i.getDataType(),i.context,i.width,i.getFieldId(),i.getColumnDefinitionId(),i.getSortStatus(),i.isEnabled(),i.getCssClasses(),i.getStyles(),i.isSortEnabled(),i.getAlign()),this.viewTemplate=n,this.editTemplate=e}}var O0=function(t){return t[t.TEXT=0]="TEXT",t[t.HTML=1]="HTML",t}(O0||{});class Qa{value;type;constructor(n,e){this.value=n,this.type=e}static text(n){return new Qa(n,O0.TEXT)}static HTML(n){return new Qa(n,O0.HTML)}}class NU{columnConfig;columnDefinitionId;name;editable;templateFun;formatterFun;accessor;searchAccessor;width;columnFieldId;align;cellEditingEnabled;type;view;constructor(n,e,i,r,o,s,a,c,l,u,h,f,v,y){this.columnConfig=n,this.columnDefinitionId=e,this.name=i,this.editable=r,this.templateFun=o,this.formatterFun=s,this.accessor=a,this.searchAccessor=c,this.width=l,this.columnFieldId=u,this.align=h,this.cellEditingEnabled=f,this.type=v,this.view=y}getDataType(){return this.type}getCellView(){return this.view.getCellView()}getColumnConfig(){return this.columnConfig}isCellEditingEnabled(){return this.cellEditingEnabled}isBooleanDataType(){return this.type===Ie.BOOLEAN}isAlignLeft(){return this.align===Sn.LEFT}isAlignCenter(){return this.align===Sn.CENTER}isAlignRight(){return this.align===Sn.RIGHT}getAlign(){return this.align}getType(){return this.type}getView(){return this.view}getName(){return this.name}getValue(n,e){const i=this.findValue(n,e);return i.value=this.templateFun(i.value,n.getSourceItem()),this.formatterFun&&(i.value=this.formatterFun(i.value,n.getSourceItem())),i}getClasses(){return"gui-cell-highlighted"}findValue(n,e){const i=this.accessor(n);if(this.type!==Ie.STRING||this.view&&this.view.getCellView()===fe.FUNCTION)return Qa.text(i);if(e){let r=""+this.searchAccessor(n);const o=r.toLocaleLowerCase(),s=e.toLocaleLowerCase(),a=[];let c=0;for(;c<s.length;){const u=o.indexOf(s,c);u>=0?(a.push(u),c=u+e.length):c=s.length}const l=r.split("");return a.forEach(u=>{for(let h=0;h<e.length;h+=1){let f;f=0===h?`<span class="gui-text-highlight">${l[u+h]}`:l[u+h],h===e.length-1&&(f+="</span>"),l[u+h]=f}}),r=l.join(""),Qa.HTML(r)}return Qa.text(i)}}class Afe extends NU{template;editTemplate;constructor(n=null,e=null,i){super(i.getColumnConfig(),i.columnDefinitionId,i.getName(),i.editable,i.templateFun,i.formatterFun,i.accessor,i.searchAccessor,i.width,i.columnFieldId,i.getAlign(),i.isCellEditingEnabled(),i.getType(),i.getView()),this.template=n,this.editTemplate=e}}class sa extends Nh{}class ym extends sa{constructor(n){super(n,null,"CompositionResizeWidthSetEvent")}}class F0 extends sa{constructor(n){super(n,null,"CompositionColumnsSetEvent")}}class P0 extends sa{constructor(n,e){super(n,e,"CompositionContainerWidthSetEvent")}}class L0 extends sa{constructor(n){super(n,null,"CompositionWidthSetEvent")}}class II extends sa{constructor(n){super(n,null,"CompositionColumnSetEnabledEvent")}}class TI extends sa{constructor(n){super(n,null,"CompositionColumnMovedLeftEvent")}}class MI extends sa{constructor(n){super(n,null,"CompositionColumnMovedRightEvent")}}class Rfe extends sa{constructor(n){super(n,null,"CompositionGroupsSetEvent")}}class Iu{convert(n){return Array.isArray(n)?this.convertEvents(n):this.convertEvent(n)}convertEvents(n){return n.map(e=>this.convertEvent(e))}convertEvent(n){switch(n.getType()){case"CompositionResizeWidthSetAggregateEvent":default:return new ym(n.getAggregateId());case"ColumnsSetAggregateEvent":return new F0(n.getAggregateId());case"CompositionContainerWidthSetAggregateEvent":const e=n.containerWidth;return new P0(n.getAggregateId(),e);case"CompositionWidthSetAggregateEvent":return new L0(n.getAggregateId());case"CompositionColumnSetEnabledAggregateEvent":return new II(n.getAggregateId());case"CompositionColumnMovedLeftAggregateEvent":return new TI(n.getAggregateId());case"CompositionColumnMovedRightAggregateEvent":return new MI(n.getAggregateId());case"GroupsSetAggregateEvent":return new Rfe(n.getAggregateId())}}}class aa extends Yf{}class OU extends aa{compositionId;columns;constructor(n,e){super(n,"SetColumnsCommand"),this.compositionId=n,this.columns=e}getParams(){return this.columns}}let Nfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return OU}handle(e,i){const r=i.getParams();e.setColumns(r)}publish(e,i){this.publishEvents(e,i)}publishEvents(e,i){const r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}})();class FU extends aa{structureId;width;constructor(n,e){super(n,"SetCompositionWidthCommand"),this.structureId=n,this.width=e}getWidth(){return this.width}}class Ofe{domainEventPublisher=Y.resolve(xt);forCommand(){return FU}handle(n,e){const i=e.getWidth();n.setWidth(i)}publish(n,e){this.domainEventPublisher.publish(new L0(e.getAggregateId()))}}class PU extends aa{structureId;enabled;constructor(n,e){super(n,"SetCompositionResizeWidthCommand"),this.structureId=n,this.enabled=e}getEnabled(){return this.enabled}}class Ffe{domainEventPublisher=Y.resolve(xt);forCommand(){return PU}handle(n,e){const i=e.getEnabled();n.setResizeWidth(i)}publish(n,e){this.domainEventPublisher.publish(new ym(e.getAggregateId()))}}class LU extends aa{structureId;width;constructor(n,e){super(n,"SetCompositionContainerWidthCommand"),this.structureId=n,this.width=e}getWidth(){return this.width}}let Pfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return LU}handle(e,i){const r=i.getWidth();e.setContainerWidth(r)}publish(e,i){this.publishAggregateEvents(e.getEvents())}publishAggregateEvents(e){const i=this.compositionEventConverter.convert(e);this.domainEventPublisher.publish(i)}})();class BU extends aa{compositionId;columnId;enabled;constructor(n,e,i){super(n,"CompositionSetColumnEnabledCommand"),this.compositionId=n,this.columnId=e,this.enabled=i}getColumnId(){return this.columnId}isEnabled(){return this.enabled}}let Lfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return BU}handle(e,i){const r=i.getColumnId(),o=i.isEnabled();e.enableColumn(r,o)}publish(e,i){this.publishEvents(e,i)}publishEvents(e,i){const r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}})();class VU extends aa{compositionId;sortParams;constructor(n,e){super(n,"CompositionChangeSortStatusCommand"),this.compositionId=n,this.sortParams=e}getCompositionId(){return this.compositionId}getSortParams(){return this.sortParams}}class kI extends sa{activeColumns;constructor(n,e){super(n,e,"CompositionChangeSortStatusEvent"),this.activeColumns=e}getCompositionId(){return this.getAggregateId()}getActiveColumns(){return this.activeColumns}}class Bfe{domainEventPublisher=Y.resolve(xt);forCommand(){return VU}handle(n,e){const i=e.getSortParams();n.changeSort(i)}publish(n,e){const i=e.getAggregateId(),r=n.getActiveColumns();this.domainEventPublisher.publish(new kI(i,r))}}class HU extends aa{compositionId;columnId;constructor(n,e){super(n,"CompositionMoveLeftColumnCommand"),this.compositionId=n,this.columnId=e}getColumnId(){return this.columnId}}let Vfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return HU}handle(e,i){const r=i.getColumnId();e.moveLeft(r)}publish(e,i){this.publishEvents(e,i)}publishEvents(e,i){const r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}})();class UU extends aa{columnId;constructor(n,e){super(n,"CompositionMoveRightColumnCommand"),this.columnId=e}getColumnId(){return this.columnId}}let Hfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return UU}handle(e,i){const r=i.getColumnId();e.moveRight(r)}publish(e,i){this.publishEvents(e,i)}publishEvents(e,i){const r=e.getEvents(),o=this.compositionEventConverter.convert(r);o&&o.length>0&&this.domainEventPublisher.publish(o)}})();class AI extends mt{compositionId;directions;constructor(n,e,i){super(n,{compositionId:e,directions:i},"SortToggledEvent"),this.compositionId=e,this.directions=i}getCompositionId(){return this.compositionId}getDirections(){return this.directions}}class jU extends aa{compositionId;constructor(n){super(n,"CreateCompositionCommand"),this.compositionId=n}}class GU extends aa{compositionId;configs;constructor(n,e){super(n,"SetGroupsCommand"),this.compositionId=n,this.configs=e}getConfigs(){return this.configs}}class RI{commandDispatcher=Y.resolve(sr);create(n){this.commandDispatcher.dispatch(new jU(n))}setColumns(n,e){this.commandDispatcher.dispatch(new OU(n,e))}setGroups(n,e){this.commandDispatcher.dispatch(new GU(n,e))}setWidth(n,e){this.commandDispatcher.dispatch(new FU(n,e))}setContainerWidth(n,e){this.commandDispatcher.dispatch(new LU(n,e))}setResizeWidth(n,e){this.commandDispatcher.dispatch(new PU(n,e))}changeSort(n,e){this.commandDispatcher.dispatch(new VU(n,e))}setColumnEnabled(n,e,i){this.commandDispatcher.dispatch(new BU(n,e,i))}moveLeft(n,e){this.commandDispatcher.dispatch(new HU(n,e))}moveRight(n,e){this.commandDispatcher.dispatch(new UU(n,e))}}class $U{fieldId;direction;constructor(n,e){this.fieldId=n,this.direction=e}}class NI extends mt{compositionId;directions;constructor(n,e,i){super(n,{compositionId:e,directions:i},"SortOrderSetEvent"),this.compositionId=e,this.directions=i}getCompositionId(){return this.compositionId}getDirections(){return this.directions}}let Ufe=(()=>class t{compositionDispatcher;constructor(e){this.compositionDispatcher=e}static services=[RI];forEvents(){return[AI,NI]}handle(e){if(e.ofMessageType("SortToggledEvent")){const i=e.getCompositionId(),o=e.getDirections().map(s=>{const a=new bI(s.fieldId.getId());return new $U(a,s.direction)});this.compositionDispatcher.changeSort(i,o)}if(e.ofMessageType("SortOrderSetEvent")){const i=e.getCompositionId(),o=e.getDirections().map(s=>{const a=new bI(s.fieldId.getId());return new $U(a,s.direction)});this.compositionDispatcher.changeSort(i,o)}}})();class eg{view;templateFunction=(n,e)=>n;constructor(n){"function"==typeof n?(this.view=fe.FUNCTION,this.templateFunction=n):this.view=n}static fromDataType(n){return new eg(n===Ie.DATE?fe.DATE:fe.TEXT)}getCellView(){return this.view}getTemplateFunction(){return this.templateFunction}}class jfe extends qy{columnField;header;width;columnConfig;view;align;presentation;constructor(n,e,i,r,o,s,a,c){super(n),this.columnField=e,this.columnConfig=i,this.presentation=r,this.view=eg.fromDataType(e.getDataType()),o&&(this.header=o),a&&(this.view=a),c&&(this.width=c),this.setInitialAlign(e,s)}getPresentation(){return this.presentation}getColumnConfig(){return this.columnConfig}getField(){return this.columnField}getHeader(){return this.header}getDataType(){return this.columnField.getDataType()}getCellView(){return this.view.getCellView()}getTemplateFunction(){return this.view.getTemplateFunction()}getFormatterFunction(){return this.columnConfig.formatter}setView(n){this.view=n}setHeader(n){this.header=n}getView(){return this.view}getAlign(){return this.align}setWidth(n){this.width=n}getWidth(){return this.width}isSortingEnabled(){const n=this.columnConfig;return null==n.sorting||null==n.sorting.enabled||n.sorting.enabled}isCellEditingEnabled(){const n=this.columnConfig;return null==n.cellEditing||null==n.cellEditing.enabled||n.cellEditing.enabled}setInitialAlign(n,e){this.align=null!=e?e:n.getDataType()===Ie.NUMBER?Sn.RIGHT:Sn.LEFT}}class OI extends jfe{sortable;sortStatus=bi.NONE;enabled=!0;constructor(n,e,i,r,o,s,a,c,l){super(n,e,i,o,s,a,c,l),this.enabled=r,void 0===c&&(this.view=new eg(this.presentation.getDefaultView())),void 0===a&&(this.align=this.presentation.getDefaultAlign(this.view))}isEnabled(){return this.enabled}setEnabled(n){this.enabled=n}getSortStatus(){return this.sortStatus}setSortStatus(n){this.sortStatus=n}}class B0 extends Ph{constructor(n){super(n)}toString(){return this.getId()}}class wm{}let Gfe=(()=>{class t extends wm{static instance=null;constructor(){super()}static getInstance(){return t.instance||(t.instance=new t),t.instance}getPossibleViews(){return[fe.TEXT,fe.BAR,fe.PERCENTAGE_BAR,fe.PERCENTAGE]}getDefaultView(){return fe.NUMBER}getDefaultAlign(e){return Sn.RIGHT}}return t})(),$fe=(()=>{class t extends wm{static instance=null;constructor(){super()}static getInstance(){return t.instance||(t.instance=new t),t.instance}getPossibleViews(){return[fe.TEXT,fe.ITALIC,fe.CHIP,fe.BOLD,fe.CHECKBOX]}getDefaultView(){return fe.TEXT}getDefaultAlign(e){return e.getCellView()===fe.CHECKBOX?Sn.CENTER:Sn.LEFT}}return t})(),zfe=(()=>{class t extends wm{static getInstance(){return t.instance||(t.instance=new t),t.instance}static instance=null;constructor(){super()}getPossibleViews(){return[fe.DATE,fe.TEXT,fe.ITALIC,fe.BOLD,fe.CHIP]}getDefaultView(){return fe.DATE}getDefaultAlign(){return Sn.LEFT}}return t})(),Wfe=(()=>{class t extends wm{static instance=null;constructor(){super()}static getInstance(){return t.instance||(t.instance=new t),t.instance}getPossibleViews(){return[fe.TEXT,fe.ITALIC,fe.BOLD,fe.IMAGE,fe.LINK,fe.CHIP]}getDefaultView(){return fe.TEXT}getDefaultAlign(){return Sn.LEFT}}return t})(),qfe=(()=>{class t extends wm{static instance=null;constructor(){super()}static getInstance(){return t.instance||(t.instance=new t),t.instance}getPossibleViews(){return[fe.TEXT]}getDefaultView(){return fe.TEXT}getDefaultAlign(){return Sn.LEFT}}return t})();class zU{convert(n){return n===Ie.NUMBER?Gfe.getInstance():n===Ie.BOOLEAN?$fe.getInstance():n===Ie.DATE?zfe.getInstance():n===Ie.STRING?Wfe.getInstance():qfe.getInstance()}}let WU=(()=>class t{columnPresentationConverter;constructor(e){this.columnPresentationConverter=e}static services=[zU];create(e){return Array.isArray(e)?this.createColumns(e):this.createColumn(e)}createColumn(e){const i=e.getColumn(),r=e.getField(),o=r.getDataType(),s=this.convertWidth(i.width)||void 0;let a,c;void 0!==i.view&&(a=new eg(i.view)),c=void 0===i.enabled||i.enabled;const l=this.getPresentation(o),u=new OI(new B0(pu.generate()),r,i,c,l,void 0,i.align,a,s);return void 0!==i.header&&u.setHeader(i.header),u}createColumns(e){const i=[];return e.forEach(r=>{i.push(this.createColumn(r))}),i}convertWidth(e){return+e}getPresentation(e){return this.columnPresentationConverter.convert(e)}})();class qU{id;header;width;constructor(n,e,i){this.id=n,this.header=e,this.width=i}}class YU extends $y{constructor(n){super(n)}toString(){return this.getId()}}class KU{create(n){return new qU(new YU(pu.generate()),n.header,n.width)}}let Yfe=(()=>class t{compositionEventConverter;domainEventPublisher=Y.resolve(xt);constructor(e){this.compositionEventConverter=e}static services=[Iu];forCommand(){return GU}handle(e,i){const r=i.getConfigs();e.setGroups(r)}publish(e,i){this.publishEvents(e,i)}publishEvents(e,i){const r=e.getEvents(),o=this.compositionEventConverter.convert(r);this.domainEventPublisher.publish(o)}})();class ZU{enabled=!0;highlightedColumns=new Set;isHighlighted(n){return this.highlightedColumns.has(n.toString())}toggle(n){this.highlightedColumns.has(n.toString())?this.highlightedColumns.delete(n.toString()):this.highlightedColumns.add(n.toString())}remove(n){this.highlightedColumns.delete(n.toString())}}class FI extends dn{constructor(){super(new ZU)}toggle(n,e){this.find(n).ifPresent(i=>{i.toggle(e),this.next(n,i)})}equals(n,e){return!1}createDefaultValue(n){return new ZU}}class V0 extends Zy{}let QU=(()=>class t extends Ky{constructor(e){super(e)}static services=[V0]})();class XU extends jy{}let JU=(()=>class t extends XU{inMemoryCompositionAggregateStore;constructor(e){super(),this.inMemoryCompositionAggregateStore=e}static services=[QU];findById(e){return this.inMemoryCompositionAggregateStore.findById(e)}save(e){this.inMemoryCompositionAggregateStore.save(e)}})();class e4{element;constructor(n){this.element=n}}class t4 extends Mce{columnConfig;name;type;view;align;cssClasses;styles;width;templateFunction;formatterFunction;columnDefinitionId;field;header;sortStatus;sortable=!0;enabled;cellEditingEnabled;constructor(n,e,i,r,o,s,a,c,l,u,h,f,v=bi.NONE,y=!0){super(e),this.columnConfig=i,this.name=r,this.type=s,this.view=a,this.align=c,this.cssClasses=h,this.styles=f,this.field=n,this.columnDefinitionId=e,this.enabled=o,this.header=l,this.cellEditingEnabled=u,this.sortStatus=v,this.sortable=y}getName(){return this.name}isEnabled(){return this.enabled}setHeader(n){this.header=n}setField(n){this.field=n}setTemplateFunction(n){this.templateFunction=n}setFormatterFunction(n){this.formatterFunction=n}toHeaderCellTemplateWithContext(n){const e=this.header||"";let i;"string"==typeof e?i=new e4(Qa.text(e)):"function"==typeof e&&(i=new e4(Qa.text(e(n))));const r=new cm(this.field.getId().getId());return new AU(e,this.type,i,this.width,r,this.columnDefinitionId,this.sortStatus,this.enabled,this.cssClasses,this.styles,this.sortable,this.align)}toContentCellTemplateWithAccessor(){return new NU(this.columnConfig,this.columnDefinitionId,this.name,!0,this.templateFunction,this.formatterFunction,i=>this.field.getAccessor()(i),i=>this.field.getSearchAccessor()(i),this.width,this.field.getId(),this.align,this.cellEditingEnabled,this.type,this.view)}}class n4 extends kce{constructor(n){super(n)}}class r4{create(n){return n instanceof OI?this.createFromColumnEntity(n):this.createFromActiveColumnEntity(n)}createColumns(n){return n.map(e=>this.create(e))}createFromColumnEntity(n){const e=new t4(n.getField(),new n4(n.getId().toString()),n.getColumnConfig(),n.getColumnConfig().name,n.isEnabled(),n.getDataType(),n.getView(),n.getAlign(),n.getHeader(),n.isCellEditingEnabled(),n.getColumnConfig().cssClasses,n.getColumnConfig().styles,n.getSortStatus(),n.isSortingEnabled());return e.setTemplateFunction(n.getTemplateFunction()),e.setFormatterFunction(n.getFormatterFunction()),e.width=+n.getWidth(),e}createFromActiveColumnEntity(n){const e=new t4(n.getField(),new n4(n.getId().toString()),n.getColumnConfig(),n.getColumnConfig().name,!0,n.getDataType(),n.getView(),n.getAlign(),n.getHeader(),n.isCellEditingEnabled(),n.getColumnConfig().cssClasses,n.getColumnConfig().styles,n.getSortStatus(),n.isSortingEnabled());return e.setTemplateFunction(n.getTemplateFunction()),e.setFormatterFunction(n.getFormatterFunction()),e.width=+n.getWidth(),e}}class Kfe extends NH{ready;allColumns;activeColumns;width;resizeWidth;constructor(n,e,i,r,o,s){super(n),this.ready=e,this.allColumns=i,this.activeColumns=r,this.width=o,this.resizeWidth=s}getActiveColumns(){return this.activeColumns}getAllColumns(){return this.allColumns}getActiveHeaderColumns(){return this.getActiveColumns().map((n,e)=>n.toHeaderCellTemplateWithContext(e))}getHeaderColumns(){return this.getAllColumns().map((n,e)=>n.toHeaderCellTemplateWithContext(e))}getTemplateColumns(){return this.getActiveColumns().map(n=>n.toContentCellTemplateWithAccessor())}getWidth(){return this.width}getContainerWidth(){return+this.width-2}isReady(){return this.ready}isResizeWidthEnabled(){return this.resizeWidth}equals(n){return this.width===n.width&&this.resizeWidth===n.resizeWidth&&this.equalsByColumns(n.allColumns)}equalsByColumns(n){return this.allColumns.length===n.length}}let o4=(()=>class t{columnDefinitionFactory;constructor(e){this.columnDefinitionFactory=e}static services=[r4];convert(e){const i=e.isReady(),r=e.getColumns(),o=e.getActiveColumns(),s=this.convertToColumnDef(r),a=this.convertActiveColumnsToColumnDef(o),c=e.getWidth(),l=e.isResizeEnabled(),u=e.getId();return new Kfe(u.toReadModelRootId(),i,s,a,c,l)}convertToColumnDef(e){const i=[];return e.forEach(r=>{const o=this.columnDefinitionFactory.create(r);i.push(o)}),i}convertActiveColumnsToColumnDef(e){const i=[];return e.forEach(r=>{const o=this.columnDefinitionFactory.create(r);i.push(o)}),i}})(),PI=(()=>class t extends LH{inMemoryCompositionStore;compositionConverter;constructor(e,i){super(e),this.inMemoryCompositionStore=e,this.compositionConverter=i}static services=[V0,o4];toReadModel(e){return this.compositionConverter.convert(e)}})();class H0 extends Ace{constructor(){super()}}class s4 extends sa{constructor(n){super(n,null,"CompositionCreatedEvent")}}let a4=(()=>class t extends H0{inMemoryCompositionReadStore;compositionIdToComposition=new Map;composition$=new ss(1);constructor(e){super(),this.inMemoryCompositionReadStore=e}static services=[PI];on(e){return this.composition$.toObservable().pipe(Tt(i=>{const r=e.getId();return i.has(r)}),ge(i=>i.get(e.getId())))}find(e){const i=e.getId();return Xt.of(this.compositionIdToComposition.get(i))}forEvents(){return[s4,ym,F0,P0,L0,II,TI,MI,kI]}subscribe(e){const i=e.getAggregateId();this.inMemoryCompositionReadStore.getById(i).ifPresent(o=>{const s=o.getId().toString();this.compositionIdToComposition.set(s,o),this.composition$.next(this.compositionIdToComposition)})}})();class Zfe{forCommand(){return jU}}class LI{MIN_COLUMN_WIDTH;constructor(n){this.MIN_COLUMN_WIDTH=n}calculateMinWidth(n){const{staticColumns:e,fluidColumns:i}=this.segregateColumns(n);let r=0;return e.forEach(o=>{r+=o.getWidth()}),r+=i.length*this.MIN_COLUMN_WIDTH,r}segregateColumns(n){return{staticColumns:n.filter(r=>r.isTypeNumber()&&r.getWidth()>this.MIN_COLUMN_WIDTH),fluidColumns:n.filter(r=>r.isTypeAuto()||r.isTypePercentage()||r.isTypeNumber()&&r.getWidth()<=this.MIN_COLUMN_WIDTH)}}}class Xa extends Uy{}class Qfe extends Xa{constructor(n){super(n,"CompositionWidthSetAggregateEvent")}toDomainEvent(){return new L0(this.getAggregateId())}}class Xfe extends Xa{containerWidth;constructor(n,e){super(n,"CompositionContainerWidthSetAggregateEvent"),this.containerWidth=e}toDomainEvent(){return new P0(this.getAggregateId(),this.containerWidth)}}class Jfe extends Xa{constructor(n){super(n,"CompositionResizeWidthSetAggregateEvent")}toDomainEvent(){return new ym(this.getAggregateId())}}class eme extends Xa{activeColumns;constructor(n,e){super(n,"CompositionColumnSetEnabledAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new II(this.getAggregateId())}getActiveColumns(){return this.activeColumns}}var ca=function(t){return t[t.PERCENTAGE=0]="PERCENTAGE",t[t.NUMBER=1]="NUMBER",t[t.AUTO=2]="AUTO",t}(ca||{});class tg{template;baseWidth;width;constructor(n){this.baseWidth=n,this.setWidthAndType(n)}getWidth(){return this.width}getColumnType(){return this.template}isTypePercentage(){return this.template===ca.PERCENTAGE}isTypeAuto(){return this.template===ca.AUTO}isTypeNumber(){return this.template===ca.NUMBER}setWidth(n){this.width=n}setWidthAndType(n){null==n||"auto"===n?(this.template=ca.AUTO,this.setWidth(null)):this.isPercentage(n)?(this.template=ca.PERCENTAGE,this.setWidth(this.percentageToNumber(""+n))):(this.isStringNumber(n),this.template=ca.NUMBER,this.setWidth(+n))}clone(){return new tg(this.baseWidth)}isPercentage(n){return"string"==typeof n&&"%"===n[n.length-1]}percentageToNumber(n){return+n.slice(0,-1)}isStringNumber(n){return Number.isNaN(+n)}}class tme{source;width;MIN_COLUMN_WIDTH;columns;constructor(n,e,i){this.source=n,this.width=e,this.MIN_COLUMN_WIDTH=i,this.columns=this.source.map(r=>r.clone())}calculate(){let n=this.width,e=Array.from(this.columns);this.adjustMinimalWidth(e);const i=[];if(e.forEach((r,o)=>{r.isTypeNumber()?n-=r.getWidth():i.push(r)}),e=i,0!==e.length){const r=n/e.length;e.forEach((o,s)=>{o.setWidth(r)})}return this.columns}adjustMinimalWidth(n){n.forEach(e=>{e.isTypeNumber()&&e.getWidth()<this.MIN_COLUMN_WIDTH&&e.setWidthAndType(this.MIN_COLUMN_WIDTH)})}adjustPercentageWidth(){this.columns.filter(e=>e.isTypePercentage());for(const e of this.columns)e.getColumnType()===ca.PERCENTAGE&&e.setWidth(this.width*e.getWidth()*.01)}adjustAutoWidth(){let n=this.width;const e=[];for(let i=0;i<this.columns.length;i+=1){const r=this.columns[i];r.getColumnType()!==ca.AUTO?n-=r.getWidth():e.push(r)}if(e.length>0){const i=n/e.length;for(const r of e)r.setWidth(i)}}}class c4{MIN_COLUMN_WIDTH;baseColumnWidths;columnWidths;width;constructor(n,e=[],i=100){this.MIN_COLUMN_WIDTH=n,this.baseColumnWidths=e.map(r=>new tg(r.width)),this.columnWidths=e.map(r=>new tg(r.width)),this.setContainerWidth(i),this.calculate()}getColumnWidths(){return this.baseColumnWidths}getColumnsWidth(){return this.width}getWidths(){return this.columnWidths.map(n=>n.getWidth())}getMinWidth(){return new LI(this.MIN_COLUMN_WIDTH).calculateMinWidth(this.columnWidths)}setWidth(n){this.setContainerWidth(n),this.calculate()}setColumns(n){this.baseColumnWidths=n.map(e=>new tg(e.width)),this.columnWidths=n.map(e=>new tg(e.width)),this.calculate()}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}calculate(){if(this.baseColumnWidths&&this.width){const n=new tme(this.baseColumnWidths,this.width,this.MIN_COLUMN_WIDTH);this.columnWidths=n.calculate()}}setContainerWidth(n){this.width=this.getMinWidth()>n?this.getMinWidth():n,this.calculate()}}class nme extends Xa{activeColumns;constructor(n,e){super(n,"CompositionChangeSortStatusAggregateEvent"),this.activeColumns=e}toDomainEvent(){return new kI(this.getAggregateId(),this.activeColumns)}}class ime{compositionId;MIN_COLUMN_WIDTH=50;columns;columnWidthCollection=new c4(this.MIN_COLUMN_WIDTH);constructor(n,e=[],i,r){this.compositionId=n,this.columns=e,i&&r&&(this.columnWidthCollection=new c4(this.MIN_COLUMN_WIDTH,r,i))}getColumnWidths(){return this.columnWidthCollection.getColumnWidths()}getColumns(){return this.columns}setWidth(n){this.columnWidthCollection.setWidth(n)}addColumn(n,e){this.columns.splice(e,0,n)}removeColumn(n){this.columns.splice(n,1)}setColumns(n,e){this.columns=n,this.columnWidthCollection.setColumns(e);const i=this.columnWidthCollection.getWidths();this.columns.forEach((r,o)=>{r.setWidth(i[o])})}changeSort(n){this.columns.forEach(e=>{e.setSortStatus(bi.NONE)});for(const e of n){const i=e.fieldId,o=e.direction?bi.ASC:bi.DESC,s=this.columns.filter(a=>a.getField().getId().getId()===i.getId());s.length>0&&s.forEach(a=>{a.setSortStatus(o)})}return new nme(this.getCompositionId(),this.columns)}moveLeft(n){const e=this.findColumnIndex(n);this.move(e,e-1)}moveRight(n){const e=this.findColumnIndex(n);this.move(e,e+1)}getMinColumnWidth(){return this.MIN_COLUMN_WIDTH}move(n,e){if(!this.validateMoveIndex(n)||!this.validateMoveIndex(e))return;const i=this.columns[n];this.columns[n]=this.columns[e],this.columns[e]=i}validateMoveIndex(n){return n>=0}getCompositionId(){return this.compositionId}findColumnIndex(n){return this.columns.findIndex(e=>e.getId().equals(n))}}class BI extends OI{constructor(n,e,i,r,o,s,a){super(n,e,s,!0,a,i,r,o,void 0)}static fromEntity(n){return new BI(n.getId(),n.getField(),n.getHeader(),n.getAlign(),n.getView(),n.getColumnConfig(),n.getPresentation())}}class rme{convertMany(n){return n.map(e=>this.convert(e))}convert(n){return BI.fromEntity(n)}}class ome extends Xa{constructor(n){super(n,"CompositionColumnMovedLeftAggregateEvent")}toDomainEvent(){return new TI(this.getAggregateId())}}class sme extends Xa{constructor(n){super(n,"CompositionColumnMovedRightAggregateEvent")}toDomainEvent(){return new MI(this.getAggregateId())}}class ame extends Xa{constructor(n){super(n,"ColumnsSetAggregateEvent")}toDomainEvent(){return new F0(this.getAggregateId())}}class cme extends Xa{constructor(n){super(n,"SchemaCreatedEvent")}toDomainEvent(){return new s4(this.getAggregateId())}}const lme=new qU(new YU("-1"),"",100);class ume extends Gy{allColumns=[];baseColumns;baseParams;width;containerInDOMWidth;resizeWidthEnabled=!0;columnFactory;groupFactory;activeColumnContainer;activeColumnEntityConverter=new rme;groups=new Gx;columnNameToGroupId=new Map;constructor(n,e,i,r=[],o,s){super(n,"CompositionAggregate");const a=r.map(l=>l.getColumn());this.baseParams=r,this.baseColumns=a,this.columnFactory=e,this.groupFactory=i,this.width=o,this.allColumns=this.columnFactory.create(r);const c=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer=new ime(this.getId(),c,o,a),null!=s&&(this.resizeWidthEnabled=s)}createEvent(){return cme}getColumns(){return this.allColumns}getActiveColumns(){return this.activeColumnContainer.getColumns()}getWidth(){return this.resizeWidthEnabled?this.containerInDOMWidth:this.width}isResizeEnabled(){return this.resizeWidthEnabled}isReady(){return!!this.getWidth()&&this.getActiveColumns().length>0}setGroups(n){for(let e=0;e<n.length;e+=1){const i=n[e];if(void 0!==i.columns){const r=this.groupFactory.create(i);this.groups.set(r.id,r),i.columns.forEach((o,s)=>{this.columnNameToGroupId.set(o.header,r.id)})}else this.columnNameToGroupId.set(i.header,lme.id)}}setColumns(n){this.allColumns=this.columnFactory.create(n);const e=n.map(r=>r.getColumn()),i=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(i,e),this.addEvent(new ame(this.getId()))}setContainerWidth(n){this.setContainerWidthWithEvent(n),this.recalculateColumns()}setWidth(n){this.setWidthWithEvent(n),this.setResizeWidthWithEvent(!1),this.recalculateColumns()}setResizeWidth(n){this.setResizeWidthWithEvent(n)}changeSort(n){this.addEvent(this.activeColumnContainer.changeSort(n))}enableColumn(n,e){let i=-1;if(this.allColumns.forEach((r,o)=>{if(r.getId().getId()===n.getId()){const s=r.isEnabled();r.setEnabled(e),s!==e&&(i=o)}}),i>0)if(e){const r=this.activeColumnEntityConverter.convert(this.allColumns[i]);this.activeColumnContainer.addColumn(r,i)}else this.activeColumnContainer.removeColumn(i);this.recalculateColumns(),this.addEvent(new eme(this.getId(),this.getActiveColumns()))}moveLeft(n){const e=this.findColumnIndex(n);let i,r=-1;for(let o=e-1;o>=0;o-=1){const s=this.allColumns[o];if(s.isEnabled()){i=s,r=o;break}}if(i&&r>=0&&e>=0){const o=this.allColumns[e];this.allColumns[e]=i,this.allColumns[r]=o}this.activeColumnContainer.moveLeft(n),this.addEvent(new ome(this.getId()))}moveRight(n){const e=this.findColumnIndex(n);let i,r=-1;for(let o=e+1;o<this.allColumns.length;o+=1){const s=this.allColumns[o];if(s.isEnabled()){i=s,r=o;break}}if(i&&r>=0&&e>=0){const o=this.allColumns[e];this.allColumns[e]=i,this.allColumns[r]=o}this.activeColumnContainer.moveRight(n),this.addEvent(new sme(this.getId()))}recalculateColumns(){const n=this.activeColumnEntityConverter.convertMany(this.getEnabledColumns());this.activeColumnContainer.setColumns(n,n.map(e=>e.getColumnConfig()))}setWidthWithEvent(n){const i=new LI(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());this.width=i>n?i:n,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Qfe(this.getId()))}setContainerWidthWithEvent(n){const i=new LI(this.getMinColumnWidth()).calculateMinWidth(this.activeColumnContainer.getColumnWidths());this.containerInDOMWidth=i>n?i:n,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Xfe(this.getId(),n))}setResizeWidthWithEvent(n){this.resizeWidthEnabled=n,this.activeColumnContainer.setWidth(this.getWidth()),this.addEvent(new Jfe(this.getId()))}getEnabledColumns(){return this.allColumns.filter(n=>n.isEnabled())}findColumnIndex(n){return this.allColumns.findIndex(e=>e.getId().equals(n))}getMinColumnWidth(){return this.activeColumnContainer.getMinColumnWidth()}}let dme=(()=>class t extends Hy{columnFactory;groupFactory;constructor(e,i){super(),this.columnFactory=e,this.groupFactory=i}static services=[WU,KU];create(e){return new ume(e,this.columnFactory,this.groupFactory)}})();const l4="CompositionAggregate";class hme{defineAggregate(){return{aggregateKey:l4,createCommandHandler:Zfe,factory:dme,repository:JU}}registerKey(){return l4}registerProviders(n){n.provide(QU),n.provide(XU,JU),n.provide(RI),n.provide(WU),n.provide(zU),n.provide(Iu),n.provide(um),n.provide(KU),n.provide(FI),n.provide(V0),n.provide(PI),n.provide(H0,a4)}registerCommandHandlers(){return[Nfe,Ofe,Ffe,Pfe,Lfe,Bfe,Vfe,Hfe,Yfe]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[Ufe]}}let VI=(()=>{class t extends xi{sanitizer;element;safeHTML;constructor(e,i){super(i),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-function-view"}static \u0275fac=function(i){return new(i||t)(g(nu),g(F))};static \u0275cmp=V({type:t,selectors:[["gui-function-view"]],inputs:{element:"element"},features:[O,we],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(i,r){1&i&&L(0,"div",0),2&i&&C("innerHTML",r.safeHTML,Gl)},encapsulation:2,changeDetection:0})}return t})(),U0=(()=>{class t extends xi{value;constructor(e){super(e)}getSelectorName(){return"gui-percentage-view"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["gui-percentage-view","value",""]],inputs:{value:"value"},features:[O],attrs:dI,decls:1,vars:1,template:function(i,r){1&i&&U(0),2&i&&Fe(" ",r.value," % ")},encapsulation:2,changeDetection:0})}return t})(),HI=(()=>{class t extends xi{value;showPercentage=!1;width;constructor(e){super(e)}ngOnChanges(e){jt(e.value,()=>{this.width=this.value>100?100:this.value})}getSelectorName(){return"gui-bar-view"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["gui-bar-view","value",""]],inputs:{value:"value",showPercentage:"showPercentage"},features:[O,we],attrs:dI,decls:3,vars:3,consts:[[1,"gui-percentage-bar"],[1,"gui-percentage"],[3,"value",4,"ngIf"],[3,"value"]],template:function(i,r){1&i&&(w(0,"div",0),L(1,"div",1),j(2,Kue,1,1,"gui-percentage-view",2),E()),2&i&&(_(),Ut("width",r.width,"%"),_(),C("ngIf",r.showPercentage))},dependencies:[ln,U0],encapsulation:2,changeDetection:0})}return t})(),UI=(()=>{class t{sanitizer;constructor(e){this.sanitizer=e}transform(e,i){switch(i){case"html":return this.sanitizer.bypassSecurityTrustHtml(e);case"style":return this.sanitizer.bypassSecurityTrustStyle(e);case"script":return this.sanitizer.bypassSecurityTrustScript(e);case"url":return this.sanitizer.bypassSecurityTrustUrl(e);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(e);default:throw new Error(`Invalid safe type specified: ${i}`)}}static \u0275fac=function(i){return new(i||t)(g(nu,16))};static \u0275pipe=Yn({name:"guiSafe",type:t,pure:!0})}return t})(),u4=(()=>{class t extends xi{value;isHtml=!1;constructor(e,i,r){super(r),null!==e&&this.addClassToHost("gui-bold"),null!==i&&this.addClassToHost("gui-italic")}ngOnChanges(){this.isHtml=this.value.type===O0.HTML}getSelectorName(){return"gui-text-view"}static \u0275fac=function(i){return new(i||t)(so("bold"),so("italic"),g(F))};static \u0275cmp=V({type:t,selectors:[["gui-view-text","value",""]],inputs:{value:"value"},features:[O,we],attrs:dI,decls:3,vars:2,consts:[["text",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"]],template:function(i,r){if(1&i&&j(0,Zue,3,4,"ng-container",1)(1,Que,2,1,"ng-template",null,0,Ct),2&i){const o=Gi(2);C("ngIf",r.isHtml)("ngIfElse",o)}},dependencies:[ln,UI],encapsulation:2,changeDetection:0})}return t})(),jI=(()=>{class t extends xi{sanitizer;element;safeHTML;constructor(e,i){super(i),this.sanitizer=e,this.addClassToHost("gui-h-full"),this.addClassToHost("gui-w-full")}ngOnChanges(){this.safeHTML=this.sanitizer.bypassSecurityTrustHtml(this.element.value)}getSelectorName(){return"gui-html-view"}static \u0275fac=function(i){return new(i||t)(g(nu),g(F))};static \u0275cmp=V({type:t,selectors:[["gui-html-view"]],inputs:{element:"element"},features:[O,we],decls:1,vars:1,consts:[[1,"gui-h-full","gui-flex","gui-items-center",3,"innerHTML"]],template:function(i,r){1&i&&L(0,"div",0),2&i&&C("innerHTML",r.safeHTML,Gl)},encapsulation:2,changeDetection:0})}return t})(),GI=(()=>{class t{textTemplate;numberTemplate;chipTemplate;linkTemplate;imageTemplate;checkboxTemplate;boldTemplate;italicTemplate;customTemplate;functionTemplate;htmlTemplate;dateTemplate;barTemplate;percentageBarTemplate;percentageTemplate;getTemplate(e){switch(e){case fe.TEXT:return this.textTemplate;case fe.NUMBER:return this.numberTemplate;case fe.CHIP:return this.chipTemplate;case fe.LINK:return this.linkTemplate;case fe.IMAGE:return this.imageTemplate;case fe.CHECKBOX:return this.checkboxTemplate;case fe.BOLD:return this.boldTemplate;case fe.ITALIC:return this.italicTemplate;case fe.CUSTOM:return this.customTemplate;case fe.FUNCTION:return this.functionTemplate;case fe.HTML:return this.htmlTemplate;case fe.DATE:return this.dateTemplate;case fe.BAR:return this.barTemplate;case fe.PERCENTAGE_BAR:return this.percentageBarTemplate;case fe.PERCENTAGE:return this.percentageTemplate;default:return this.textTemplate}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(pe(Xue,7,Re),pe(rU,7,Re),pe(Jue,7,Re),pe(ede,7,Re),pe(tde,7,Re),pe(oU,7,Re),pe(nde,7,Re),pe(ide,7,Re),pe(rde,7,Re),pe(ode,7,Re),pe(sde,7,Re),pe(sU,7,Re),pe(ade,7,Re),pe(cde,7,Re),pe(lde,7,Re)),2&i){let o;te(o=ne())&&(r.textTemplate=o.first),te(o=ne())&&(r.numberTemplate=o.first),te(o=ne())&&(r.chipTemplate=o.first),te(o=ne())&&(r.linkTemplate=o.first),te(o=ne())&&(r.imageTemplate=o.first),te(o=ne())&&(r.checkboxTemplate=o.first),te(o=ne())&&(r.boldTemplate=o.first),te(o=ne())&&(r.italicTemplate=o.first),te(o=ne())&&(r.customTemplate=o.first),te(o=ne())&&(r.functionTemplate=o.first),te(o=ne())&&(r.htmlTemplate=o.first),te(o=ne())&&(r.dateTemplate=o.first),te(o=ne())&&(r.barTemplate=o.first),te(o=ne())&&(r.percentageBarTemplate=o.first),te(o=ne())&&(r.percentageTemplate=o.first)}},decls:30,vars:0,consts:[["text",""],["number",""],["chip",""],["link",""],["image",""],["checkbox",""],["bold",""],["italic",""],["custom",""],["function",""],["html",""],["date",""],["bar",""],["percentageBar",""],["percentage",""],[3,"value"],[1,"gui-cell-number"],["gui-button","","link","true",3,"href"],[3,"src"],[1,"gui-cell-boolean"],[3,"checked","disabled"],["bold","",3,"value"],["italic","",3,"value"],[3,"element"],[1,"gui-view-text"],[3,"value","showPercentage"]],template:function(i,r){1&i&&j(0,ude,1,1,"ng-template",null,0,Ct)(2,dde,2,1,"ng-template",null,1,Ct)(4,hde,2,1,"ng-template",null,2,Ct)(6,gde,2,2,"ng-template",null,3,Ct)(8,pde,1,1,"ng-template",null,4,Ct)(10,fde,2,2,"ng-template",null,5,Ct)(12,mde,1,1,"ng-template",null,6,Ct)(14,bde,1,1,"ng-template",null,7,Ct)(16,vde,1,1,"ng-template",null,8,Ct)(18,_de,1,1,"ng-template",null,9,Ct)(20,yde,1,1,"ng-template",null,10,Ct)(22,wde,3,4,"ng-template",null,11,Ct)(24,Cde,1,2,"ng-template",null,12,Ct)(26,Dde,1,2,"ng-template",null,13,Ct)(28,Ede,1,1,"ng-template",null,14,Ct)},dependencies:[$H,vu,Ga,VI,HI,U0,u4,jI,UE],encapsulation:2})}return t})();class d4{templatesComponentDefinition;componentFactoryResolver;templates=new Map;templatesComponent=null;constructor(n,e){this.templatesComponentDefinition=n,this.componentFactoryResolver=e,this.createTemplatesComponent()}getTemplates(){return this.templates}destroy(){this.templatesComponent&&(this.templatesComponent.destroy(),this.templatesComponent=null)}createTemplatesComponent(){const n=this.componentFactoryResolver.resolveComponentFactory(this.templatesComponentDefinition),e=He.create({providers:[]});this.templatesComponent=n.create(e),this.generateMap()}generateMap(){this.generateMapKeys().forEach(n=>{this.findAndSetTemplate(n)})}findAndSetTemplate(n){const e=this.templatesComponent.instance.getTemplate(n);this.templates.set(n,e)}}let j0=(()=>{class t extends d4{constructor(e){super(GI,e)}static services=[mn];generateMapKeys(){return Object.keys(fe).map(e=>fe[e])}static \u0275fac=function(i){return new(i||t)(I(mn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),$I=(()=>{class t{columnTemplateFactory;constructor(e){this.columnTemplateFactory=e}static services=[j0];findTemplate(e){return this.columnTemplateFactory.getTemplates().get(e)}static \u0275fac=function(i){return new(i||t)(I(j0))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var cl=function(t){return t[t.SUBMIT=0]="SUBMIT",t[t.BLUR=1]="BLUR",t[t.CANCEL=2]="CANCEL",t}(cl||{});let zI=(()=>{class t extends vn{value;valueChanges;status;focus;parent;ENTER_KEY_CODE=13;ESC_KEY_CODE=27;constructor(e,i){super(e,i)}submit(){this.emitStatus(cl.SUBMIT)}cancel(){this.emitStatus(cl.CANCEL)}emitStatus(e){this.status&&this.status.emit(e)}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275dir=N({type:t,inputs:{value:"value",valueChanges:"valueChanges",status:"status",focus:"focus",parent:"parent"},features:[O]})}return t})(),h4=(()=>{class t extends zI{formBuilder;inputRef;filterForm;filterFieldName="phrase";constructor(e,i,r){super(e,i),this.formBuilder=r,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnChanges(e){void 0!==e.value&&this.filterForm.get(this.filterFieldName).setValue(this.value)}ngOnInit(){this.observeChanges()}ngAfterViewInit(){const e=this.inputRef.nativeElement;this.focusField(e),this.emitValueChange(e.value),Yy(e,"blur").pipe(this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()});const i=Yy(e,"keyup");i.pipe(Tt(r=>r.keyCode===this.ENTER_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.submit()}),i.pipe(Tt(r=>r.keyCode===this.ESC_KEY_CODE),this.takeUntil()).subscribe(()=>{this.unsubscribe(),this.cancel()})}focusField(e){this.focus&&e.focus()}observeChanges(){bu(this.filterForm.controls[this.filterFieldName].valueChanges).pipe(this.takeUntil()).subscribe(e=>{this.emitValueChange(e)})}emitValueChange(e){this.valueChanges&&this.valueChanges.emit(e)}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(su))};static \u0275dir=N({type:t,viewQuery:function(i,r){if(1&i&&pe(Sde,7),2&i){let o;te(o=ne())&&(r.inputRef=o.first)}},features:[O,we]})}return t})(),g4=(()=>{class t extends h4{constructor(e,i,r){super(e,i,r)}focusField(e){this.focus&&(e.focus(),e.setSelectionRange(0,e.value.length))}getSelectorName(){return"gui-string-edit"}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(su))};static \u0275cmp=V({type:t,selectors:[["gui-string-edit"]],features:[O],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","type",1,"gui-input",3,"formControlName"]],template:function(i,r){1&i&&(w(0,"form",1),L(1,"input",2,0),E()),2&i&&(C("formGroup",r.filterForm),_(),C("formControlName",r.filterFieldName))},dependencies:[Ks,qs,jc,Ys,Pa,Gc],encapsulation:2,changeDetection:0})}return t})(),p4=(()=>{class t extends h4{constructor(e,i,r){super(e,i,r)}getSelectorName(){return"gui-number-edit"}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(su))};static \u0275cmp=V({type:t,selectors:[["gui-number-edit"]],features:[O],decls:3,vars:2,consts:[["input",""],[3,"formGroup"],["type","number",1,"gui-input",3,"formControlName"]],template:function(i,r){1&i&&(w(0,"form",1),L(1,"input",2,0),E()),2&i&&(C("formGroup",r.filterForm),_(),C("formControlName",r.filterFieldName))},dependencies:[Ks,qs,Z_,jc,Ys,Pa,Gc],encapsulation:2,changeDetection:0})}return t})(),f4=(()=>{class t extends zI{changeDetectorRef;checkboxRef;filterFieldName="booleanEdit";constructor(e,i){super(e,i),this.changeDetectorRef=e}toggle(e){this.valueChanges.emit(e),this.submit()}getSelectorName(){return"gui-boolean-edit"}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["gui-boolean-edit"]],viewQuery:function(i,r){if(1&i&&pe(oU,7,F),2&i){let o;te(o=ne())&&(r.checkboxRef=o.first)}},features:[O],decls:3,vars:2,consts:[["checkbox",""],[1,"gui-cell-boolean"],[3,"changed","checked","name"]],template:function(i,r){if(1&i){const o=he();w(0,"span",1)(1,"gui-checkbox",2,0),B("changed",function(a){return $(o),z(r.toggle(a))}),E()()}2&i&&(_(),C("checked",r.value)("name",r.filterFieldName))},dependencies:[vu],encapsulation:2,changeDetection:0})}return t})(),m4=(()=>{class t extends zI{changeDetectorRef;datePickerRef;filterFieldName="dateEdit";opened=!1;localStreamCloser=new wU;constructor(e,i){super(e,i),this.changeDetectorRef=e}ngAfterViewInit(){const i=Yy(this.datePickerRef.nativeElement.querySelector(".gui-date-picker-input"),"keyup");i.pipe(Tt(r=>r.keyCode===this.ENTER_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.submit()}),i.pipe(Tt(r=>r.keyCode===this.ESC_KEY_CODE),this.localStreamCloser.takeUntil()).subscribe(()=>{this.localStreamCloser.unsubscribe(),this.cancel()})}ngOnDestroy(){this.localStreamCloser.unsubscribe(),super.ngOnDestroy()}toggle(e){this.valueChanges.emit(e)}dialogOpened(e){this.opened=e,e||(this.localStreamCloser.unsubscribe(),this.submit())}getSelectorName(){return"gui-date-edit"}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["gui-date-edit"]],viewQuery:function(i,r){if(1&i&&pe(xde,7,F),2&i){let o;te(o=ne())&&(r.datePickerRef=o.first)}},features:[O],decls:2,vars:5,consts:[["datepicker",""],[3,"dialogOpened","dateSelected","selectDate","name","openDialog","onlyDialog","parentElement"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-date-picker",1,0),B("dialogOpened",function(a){return $(o),z(r.dialogOpened(a))})("dateSelected",function(a){return $(o),z(r.toggle(a))}),E()}2&i&&C("selectDate",r.value)("name",r.filterFieldName)("openDialog",!0)("onlyDialog",!1)("parentElement",r.parent)},dependencies:[tue],encapsulation:2,changeDetection:0})}return t})(),WI=(()=>{class t{stringTemplate;numberTemplate;booleanTemplate;dateTemplate;emptyTemplate;getTemplate(e){switch(e){case Ie.STRING:return this.stringTemplate;case Ie.NUMBER:return this.numberTemplate;case Ie.BOOLEAN:return this.booleanTemplate;case Ie.DATE:return this.dateTemplate;default:return this.emptyTemplate}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],viewQuery:function(i,r){if(1&i&&(pe(Ide,7,Re),pe(rU,7,Re),pe(Tde,7,Re),pe(sU,7,Re),pe(Mde,7,Re)),2&i){let o;te(o=ne())&&(r.stringTemplate=o.first),te(o=ne())&&(r.numberTemplate=o.first),te(o=ne())&&(r.booleanTemplate=o.first),te(o=ne())&&(r.dateTemplate=o.first),te(o=ne())&&(r.emptyTemplate=o.first)}},decls:10,vars:0,consts:[["string",""],["number",""],["boolean",""],["date",""],["empty",""],[3,"valueChanges","value","status","focus"],[3,"valueChanges","value","status","focus","parent"]],template:function(i,r){1&i&&j(0,kde,1,4,"ng-template",null,0,Ct)(2,Ade,1,4,"ng-template",null,1,Ct)(4,Rde,1,4,"ng-template",null,2,Ct)(6,Nde,1,5,"ng-template",null,3,Ct)(8,Ode,0,0,"ng-template",null,4,Ct)},dependencies:[g4,p4,f4,m4],encapsulation:2})}return t})(),G0=(()=>{class t extends d4{constructor(e){super(WI,e)}static services=[mn];generateMapKeys(){return Object.keys(Ie).map(e=>Ie[e])}static \u0275fac=function(i){return new(i||t)(I(mn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),qI=(()=>{class t{editTemplateFactory;constructor(e){this.editTemplateFactory=e}static services=[G0];findTemplate(e){return this.editTemplateFactory.getTemplates().get(e)}static \u0275fac=function(i){return new(i||t)(I(G0))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class gme{groups;showGroups;constructor(n,e){this.groups=n,this.showGroups=e}getGroups(){return this.groups}isVisible(){return this.showGroups}}class Cm extends dn{static default=new gme([],!1);constructor(){super(Cm.default)}}let pme=(()=>class t extends ia{compositionDispatcher;compositionGroupRepository;columnHighlightArchive;constructor(e,i,r){super(),this.compositionDispatcher=e,this.compositionGroupRepository=i,this.columnHighlightArchive=r}static services=[RI,Cm,FI];create(e){this.compositionDispatcher.create(e)}setColumns(e,i){this.compositionDispatcher.setColumns(i,e)}setGroups(e,i){this.compositionDispatcher.setGroups(i,e)}setWidth(e,i){this.compositionDispatcher.setWidth(i,e)}setContainerWidth(e,i){this.compositionDispatcher.setContainerWidth(i,e)}setResizeWidth(e,i){this.compositionDispatcher.setResizeWidth(i,e)}enableColumn(e,i){this.compositionDispatcher.setColumnEnabled(i,this.toColumnId(e),!0)}disableColumn(e,i){this.compositionDispatcher.setColumnEnabled(i,this.toColumnId(e),!1)}moveLeft(e,i){this.compositionDispatcher.moveLeft(i,this.toColumnId(e))}moveRight(e,i){this.compositionDispatcher.moveRight(i,this.toColumnId(e))}highlightColumn(e,i){this.columnHighlightArchive.toggle(i,new B0(e.getId()))}toColumnId(e){return new B0(e.getId())}})(),fme=(()=>class t extends Eo{compositionRepository;compositionGroupArchive;columnHighlightArchive;constructor(e,i,r){super(),this.compositionRepository=e,this.compositionGroupArchive=i,this.columnHighlightArchive=r}static services=[H0,Cm,FI];onWidth(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getWidth()))}onContainerWidth(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getContainerWidth()))}onWidthForEachColumn(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getAllColumns().map(r=>r.width)))}onHeaderColumns(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getActiveHeaderColumns()))}onAllColumns(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getHeaderColumns()))}onSortOrder(e,i){return this.compositionRepository.on(i).pipe(ge(r=>r.getActiveHeaderColumns()),ge(r=>r.filter(o=>o.getFieldId().equals(e))),Tt(r=>r.length>0),ge(r=>r[0].getSortStatus()))}onTemplateColumns(e){return this.compositionRepository.on(e).pipe(ge(i=>i.getTemplateColumns()))}onResizeWidth(e){return this.compositionRepository.on(e).pipe(ge(i=>i.isResizeWidthEnabled()))}onGroups(e){return this.compositionGroupArchive.on(e)}onHighlightedColumn(e,i){return this.columnHighlightArchive.on(i).pipe(ge(r=>r.isHighlighted(e)))}findColumnNames(e){let i=[];return this.compositionRepository.find(e).ifPresent(r=>{i=r.getAllColumns().map(o=>o.getName())}),i}})();class mme extends qh{constructor(){super()}onColumnsChanged(n){return this.onEvent(n,F0)}onContainerWidthChanged(n){return this.onEvent(n,P0).pipe(ge(e=>e.getPayload()),Tt(e=>!!e))}}class bme extends Wh{configure(n){if(null!=n&&Array.isArray(n)&&0===n.length)return[];const e=n[0];return Object.keys(e).map((i,r)=>this.toColumnConfig(i,e))}toColumnConfig(n,e){return{field:this.getField(n),header:this.getHeader(n),type:this.getType(n,e)}}getField(n){return n}getHeader(n){return n[0].toUpperCase()+n.slice(1)}getType(n,e){return"string"==typeof e[n]?Ie.STRING:"number"==typeof e[n]?Ie.NUMBER:e[n]instanceof Date?Ie.DATE:"boolean"==typeof e[n]?Ie.BOOLEAN:Ie.UNKNOWN}}class vme{registerProviders(n){n.provide(PI),n.provide(H0,a4),n.provide(r4),n.provide($I),n.provide(j0),n.provide(G0),n.provide(qI),n.provide(V0),n.provide(o4),n.provide(Cm),n.provide(ia,pme),n.provide(Eo,fme),n.provide(qh,mme),n.provide(Wh,bme)}}let Dm=(()=>{class t{compositionWarehouse;viewTemplateRepository;editTemplateRepository;constructor(e,i,r){this.compositionWarehouse=e,this.viewTemplateRepository=i,this.editTemplateRepository=r}onHeaderCols(e){return this.compositionWarehouse.onHeaderColumns(e).pipe(ge(i=>i.map(r=>{let o;o="function"==typeof r.getHeader()?this.findViewTemplate(fe.FUNCTION):this.findViewTemplate(fe.HTML);const s=this.findEditTemplate(r.getDataType());return new RU(o,s,r)})))}onAll(e){return this.compositionWarehouse.onAllColumns(e).pipe(ge(i=>i.map(r=>{let o;o="function"==typeof r.getHeader()?this.findViewTemplate(fe.FUNCTION):this.findViewTemplate(fe.HTML);const s=this.findEditTemplate(r.getDataType());return new RU(o,s,r)})))}onTemplateCols(e){return this.compositionWarehouse.onTemplateColumns(e).pipe(ge(i=>i.map(r=>{let o;o=r.getCellView()===fe.NG_TEMPLATE?r.getColumnConfig().templateRef:this.findViewTemplate(r.getCellView());const s=this.findEditTemplate(r.getDataType());return new Afe(o,s,r)})))}findViewTemplate(e){return this.viewTemplateRepository.findTemplate(e===fe.FUNCTION?fe.FUNCTION:e)}findEditTemplate(e){return this.editTemplateRepository.findTemplate(e)}static \u0275fac=function(i){return new(i||t)(I(Eo),I($I),I(qI))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();class Em extends mu{constructor(){super()}}let yme=(()=>{class t extends vn{structureSummariesEventRepository;translationService;sourceWarehouse;enabled;state=x(Xn);compositionId=x(Si);structureId=x(Xe);formationWarehouse=x(Do);compositionTemplateWarehouse=x(Dm);headerColumns$=this.compositionTemplateWarehouse.onHeaderCols(this.compositionId);state$=this.state.select();checkboxSelection$=this.selectCheckboxSelection();constructor(e,i,r,o,s){super(e,i),this.structureSummariesEventRepository=r,this.translationService=o,this.sourceWarehouse=s,this.addClassToHost("gui-flex"),this.state.connect("summariesTranslations",this.selectSummariesTranslations()),this.state.connect("sourceEmpty",this.selectSourceEmpty()),this.state.connect("summaries",this.selectSummaries())}isSummariesTypePresent(e){return null!=e}getSelectorName(){return"gui-structure-summaries-panel"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(ge(e=>e===Ri.CHECKBOX))}selectSourceEmpty(){return this.sourceWarehouse.onItemsSize(this.structureId).pipe(ge(e=>0===e))}selectSummariesTranslations(){return this.translationService.onTranslation().pipe(ge(e=>new kfe(e.summariesDistinctValuesTooltip,e.summariesAverageTooltip,e.summariesMinTooltip,e.summariesMaxTooltip,e.summariesMedTooltip,e.summariesCountTooltip)))}selectSummaries(){return this.structureSummariesEventRepository.onSummariesChanged(this.structureId.toReadModelRootId()).pipe(ge(e=>e.getSummaries()))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Em),g(Ka),g(hs))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-summaries-panel","","enabled",""]],inputs:{enabled:"enabled"},features:[ye([Xn]),O],attrs:Fde,decls:1,vars:1,consts:[[4,"guiLet"],[4,"ngIf"],["class","gui-structure-summaries-cell gui-row-checkbox gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",4,"ngIf"],["class","gui-structure-summaries-cell",3,"width",4,"ngFor","ngForOf"],[1,"gui-structure-summaries-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-structure-summaries-cell"],["class","gui-structure-summaries-value",4,"ngIf"],[1,"gui-structure-summaries-value"],[3,"gui-tooltip"],[1,"gui-summaries-value"]],template:function(i,r){1&i&&j(0,Kde,2,1,"ng-container",0),2&i&&C("guiLet",r.state$)},dependencies:[hi,ln,cI,cr,Yr,Jh],encapsulation:2,changeDetection:0})}return t})(),wme=(()=>{class t extends CU{constructor(e,i){super(e,i)}getSelectorName(){return"gui-info-dialog"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-info-dialog",""]],features:[O],attrs:Zde,decls:31,vars:0,consts:[[1,"gui-structure-info-modal","gui-flex","gui-flex-col","gui-p-0","gui-text-lg","gui-w-full"],[1,"gui-text-3xl","gui-mb-8","gui-font-bold"],[1,"gui-text-xl","gui-mb-18","gui-font-bold"],[1,"gui-quote","gui-text-2xl","gui-italic","gui-font-light"],[1,"gui-m-0","gui-px-0","gui-pt-10","gui-pb-6"],[1,"gui-font-bold"],[1,"gui-m-0","gui-pl-9","gui-list-none"],["href","https://generic-ui.com/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://generic-ui.com/guide/",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/tree/master/ngx-grid",1,"gui-mb-6","gui-no-underline","gui-leading-6"],["href","https://github.com/generic-ui/generic-ui/issues",1,"gui-mb-6","gui-no-underline","gui-leading-6"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"p",1),U(2," Generic UI Grid "),E(),w(3,"p",2),U(4," ver. 0.21.0 "),E(),w(5,"p",3),U(6,' "The best way to success is to help others succeed." '),E(),L(7,"br"),w(8,"section",4)(9,"p",5),U(10,"Links:"),E(),w(11,"ul",6)(12,"li")(13,"a",7),U(14,"Website"),E()(),w(15,"li")(16,"a",8),U(17,"Documentation"),E()(),w(18,"li")(19,"a",9),U(20,"Github"),E()()(),L(21,"br"),w(22,"p",5),U(23,"Feedback:"),E(),w(24,"ul",6)(25,"li")(26,"a",10),U(27,"Report a bug"),E()(),w(28,"li")(29,"a",10),U(30,"Suggest an idea"),E()()()()())},encapsulation:2,changeDetection:0})}return t})(),YI=(()=>{class t extends vn{compositionId;compositionCommandInvoker;compositionTemplateWarehouse;state=x(Xn);state$=this.state.select();constructor(e,i,r,o,s){super(e,i),this.compositionId=r,this.compositionCommandInvoker=o,this.compositionTemplateWarehouse=s,this.addClassToHost("gui-block"),this.state.connect("columns",this.selectColumns()),this.state.connect("enabledColumnsCount",this.selectEnabledColumnsCount())}toggleColumn(e){event.stopPropagation(),e.isEnabled()?this.compositionCommandInvoker.disableColumn(e.getColumnDefinitionId(),this.compositionId):this.compositionCommandInvoker.enableColumn(e.getColumnDefinitionId(),this.compositionId)}getSelectorName(){return"gui-structure-column-manager"}selectColumns(){return this.compositionTemplateWarehouse.onAll(this.compositionId)}selectEnabledColumnsCount(){return this.compositionTemplateWarehouse.onAll(this.compositionId).pipe(ge(e=>e.map(i=>+i.isEnabled()).reduce((i,r)=>i+r)))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Si),g(ia),g(Dm))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-manager",""]],features:[ye([Xn]),O],attrs:Qde,decls:1,vars:1,consts:[["class","gui-structure-ordered-list gui-p-0 gui-my-4 gui-list-none gui-overflow-auto",4,"guiLet"],[1,"gui-structure-ordered-list","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"ngFor","ngForOf"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked","disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&j(0,ehe,2,1,"ol",0),2&i&&C("guiLet",r.state$)},dependencies:[hi,Ws,vu,cr],encapsulation:2,changeDetection:0})}return t})(),b4=(()=>{class t extends vn{constructor(e,i){super(e,i)}getSelectorName(){return"gui-structure-dialog-column-manager"}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-dialog-column-manager",""]],features:[O],attrs:the,decls:4,vars:3,consts:[[1,"gui-dialog-title"],["gui-structure-column-manager","",1,"-gui-mx-10"]],template:function(i,r){1&i&&(w(0,"div",0),U(1),je(2,"guiTranslate"),E(),L(3,"div",1)),2&i&&(_(),ft(Ye(2,1,"columnManagerModalTitle")))},dependencies:[YI,Yr],encapsulation:2,changeDetection:0})}return t})(),Sm=(()=>{class t{convertTheme(e){switch(e){case Te.FABRIC:return Rt.FABRIC;case Te.MATERIAL:return Rt.MATERIAL;case Te.GENERIC:return Rt.GENERIC;case Te.LIGHT:return Rt.LIGHT;case Te.DARK:return Rt.DARK;default:return Rt.FABRIC}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),v4=(()=>{class t extends Cr{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,i,r,o){super(),this.injector=e,this.schemaWarehouse=i,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,i,r){r||(r=this.injector);const o=He.create({parent:r,providers:[{provide:Si,useValue:e}]});this.schemaWarehouse.findTheme(i).ifPresent(s=>{this.fabricDialogService.open({injector:o,component:b4,theme:this.structureThemeConverter.convertTheme(s)})})}static \u0275fac=function(i){return new(i||t)(I(He),I(ds),I(Sm),I(jh))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Cme=(()=>{class t extends vn{structureId;schemaPublisher;schemaWarehouse=x(ds);schemaReadModelRootId=x(Ni);coloring=this.createColoringOptions();themes=this.createThemeOptions();rowColoring$=this.selectRowColoring();theme$=this.selectTheme();verticalGrid$=this.schemaWarehouse.onVerticalGrid(this.schemaReadModelRootId);horizontalGrid$=this.schemaWarehouse.onHorizontalGrid(this.schemaReadModelRootId);constructor(e,i,r,o){super(e,i),this.structureId=r,this.schemaPublisher=o}toggleTheme(e){this.schemaPublisher.setTheme(this.toTheme(e.value),this.schemaReadModelRootId,this.structureId)}toggleRowColoring(e){this.schemaPublisher.setRowColoring(this.toRowColoring(e.value),this.schemaReadModelRootId)}toggleVerticalGrid(e){event.stopPropagation(),this.schemaPublisher.setVerticalGrid(!e,this.schemaReadModelRootId)}toggleHorizontalGrid(e){event.stopPropagation(),this.schemaPublisher.setHorizontalGrid(!e,this.schemaReadModelRootId)}getSelectorName(){return"gui-structure-schema-manager"}createColoringOptions(){return Object.keys(Mn).map(e=>Mn[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}createThemeOptions(){return Object.keys(Te).map(e=>Te[e]).filter(e=>!Number.isInteger(e)).map(e=>({value:e,name:e}))}selectRowColoring(){return this.schemaWarehouse.onRowColoring(this.schemaReadModelRootId).pipe(ge(e=>({value:Mn[e],name:Mn[e]})))}selectTheme(){return this.schemaWarehouse.onTheme(this.schemaReadModelRootId).pipe(ge(e=>({value:Te[e],name:Te[e]})))}toTheme(e){switch(e.toLowerCase()){case"fabric":default:return Te.FABRIC;case"material":return Te.MATERIAL;case"generic":return Te.GENERIC;case"light":return Te.LIGHT;case"dark":return Te.DARK}}toRowColoring(e){switch(e.toLowerCase()){case"none":default:return fi.NONE;case"odd":return fi.ODD;case"even":return fi.EVEN}}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Xe),g(xo))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-schema-manager",""]],features:[O],attrs:nhe,decls:19,vars:21,consts:[[1,"gui-schema-manager","gui-flex","gui-flex-col"],[1,"gui-dialog-title","gui-mb-8"],[1,"gui-structure-schema-manager-select","gui-flex","gui-flex-col"],[1,"gui-mb-4","gui-text-xs"],[3,"optionChanged","options","selected","width"],[1,"gui-structure-ordered-list","gui-mx-10","gui-p-0","gui-my-4","gui-list-none","gui-overflow-auto"],["class","gui-px-13 gui-py-6 gui-cursor-pointer",3,"click",4,"guiLet"],[1,"gui-px-13","gui-py-6","gui-cursor-pointer",3,"click"],[3,"checked"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1),U(2),je(3,"guiTranslate"),E(),w(4,"div",2)(5,"span",3),U(6),je(7,"guiTranslate"),E(),w(8,"gui-select",4),je(9,"guiPush"),B("optionChanged",function(s){return r.toggleTheme(s)}),E()(),w(10,"div",2)(11,"span",3),U(12),je(13,"guiTranslate"),E(),w(14,"gui-select",4),je(15,"guiPush"),B("optionChanged",function(s){return r.toggleRowColoring(s)}),E()(),w(16,"ol",5),j(17,ihe,4,4,"li",6)(18,rhe,4,4,"li",6),E()()),2&i&&(_(2),ft(Ye(3,11,"themeManagerModalTitle")),_(4),ft(Ye(7,13,"themeManagerModalTheme")),_(2),C("options",r.themes)("selected",Ye(9,15,r.theme$))("width",180),_(4),Fe(" ",Ye(13,17,"themeManagerModalRowColoring")," "),_(2),C("options",r.coloring)("selected",Ye(15,19,r.rowColoring$))("width",180),_(3),C("guiLet",r.verticalGrid$),_(),C("guiLet",r.horizontalGrid$))},dependencies:[vu,uI,cr,Yr,Jh],encapsulation:2,changeDetection:0})}return t})(),Dme=(()=>{class t extends xi{constructor(e){super(e)}getSelectorName(){return"gui-schema-manager-dialog"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-schema-manager-dialog",""]],features:[O],attrs:ohe,decls:1,vars:0,consts:[["gui-structure-schema-manager",""]],template:function(i,r){1&i&&L(0,"div",0)},dependencies:[Cme],encapsulation:2,changeDetection:0})}return t})(),_4=(()=>{class t extends Cr{injector;fabricDialogService;constructor(e,i){super(),this.injector=e,this.fabricDialogService=i}open(e,i){i||(i=this.injector);const r=He.create({providers:[{provide:Ni,useValue:e}],parent:i});this.fabricDialogService.open({injector:r,component:Dme})}static \u0275fac=function(i){return new(i||t)(I(He),I(jh))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),y4=(()=>{class t extends Kh{constructor(e,i){super(e,i)}getSelectorName(){return"gui-structure-column-manager-icon"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-manager-icon",""]],features:[O],attrs:she,decls:7,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 10.31"],["x1","9.57","y1","3.65","x2","0.75","y2","3.65",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-2"],["x1","0.75","y1","9.56","x2","0.75","y2","0.88",1,"cls-2"],["x1","3.69","y1","9.65","x2","3.69","y2","3.89",1,"cls-1"],["x1","6.63","y1","9.56","x2","6.63","y2","3.89",1,"cls-1"],["x1","9.57","y1","9.56","x2","9.57","y2","0.88",1,"cls-2"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"line",1)(2,"line",2)(3,"line",3)(4,"line",4)(5,"line",5)(6,"line",6),E())},encapsulation:2,changeDetection:0})}return t})(),Eme=(()=>{class t extends Kh{constructor(e,i){super(e,i)}getSelectorName(){return"gui-structure-schema-manager-icon"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-schema-manager-icon",""]],features:[O],attrs:ahe,decls:11,vars:0,consts:[["height","24","viewBox","0 0 32 24","width","32","xmlns","http://www.w3.org/2000/svg"],["transform","translate(0 -4)"],["d","M23.337,4H32v6H23.337Z","data-name","Path 303","id","Path_303"],["d","M11.662,4h8.662v6H11.662Z","data-name","Path 304","id","Path_304"],["d","M0,4H8.662v6H0Z","data-name","Path 305","id","Path_305"],["d","M23.337,22H32v6H23.337Z","data-name","Path 306","id","Path_306"],["d","M0,22H8.662v6H0Z","data-name","Path 307","id","Path_307"],["d","M11.662,22h8.662v6H11.662Z","data-name","Path 308","id","Path_308"],["d","M23.337,13H32v6H23.337Z","data-name","Path 309","id","Path_309"],["d","M11.662,13h8.662v6H11.662Z","data-name","Path 310","id","Path_310"],["d","M0,13H8.662v6H0Z","data-name","Path 311","id","Path_311"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0)(1,"g",1),L(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10),E()())},encapsulation:2,changeDetection:0})}return t})(),Sme=(()=>{class t extends vn{structureId=x(Xe);searchCommandDispatcher=x(ls);searchWarehouse=x(sl);phrase$=this.searchWarehouse.onPhrase(this.structureId);constructor(e,i){super(e,i)}clearSearch(){event.stopPropagation(),this.searchCommandDispatcher.search("",this.structureId)}getSelectorName(){return"gui-active-search"}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-active-search",""]],features:[O],attrs:che,decls:1,vars:1,consts:[[4,"guiLet"],["gui-button","",3,"click","outline","primary"]],template:function(i,r){1&i&&j(0,lhe,9,3,"ng-container",0),2&i&&C("guiLet",r.phrase$)},dependencies:[Ga,$H,cr],encapsulation:2,changeDetection:0})}return t})(),xme=(()=>{class t extends vn{filterCommandDispatcher;structureId=x(Xe);filterWarehouse=x(tl);activeFilters$=this.filterWarehouse.onActiveFilters(this.structureId);constructor(e,i,r){super(e,i),this.filterCommandDispatcher=r}removeFilter(e){this.filterCommandDispatcher.remove(e.getFilterId(),this.structureId)}getSelectorName(){return"gui-active-filter-list"}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(ra))};static \u0275cmp=V({type:t,selectors:[["div","gui-active-filter-list",""]],features:[O],attrs:uhe,decls:2,vars:1,consts:[[4,"guiLet"],["gui-active-search",""],[4,"ngFor","ngForOf"],[3,"click"]],template:function(i,r){1&i&&(j(0,hhe,2,1,"ng-container",0),L(1,"div",1)),2&i&&C("guiLet",r.activeFilters$)},dependencies:[hi,cr,Sme],encapsulation:2,changeDetection:0})}return t})(),Ime=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=V({type:t,selectors:[["ng-component"]],decls:8,vars:3,consts:[["gui-active-filter-list",""],["gui-button","",3,"text"],["gui-button","",3,"outline","primary"]],template:function(i,r){1&i&&(w(0,"h3"),U(1,"Active filters"),E(),L(2,"div",0),w(3,"div")(4,"button",1),U(5," Cancel "),E(),w(6,"button",2),U(7," Clear All "),E()()),2&i&&(_(4),C("text",!0),_(2),C("outline",!0)("primary",!0))},dependencies:[xme,Ga],encapsulation:2})}return t})(),w4=(()=>{class t extends Cr{injector;schemaWarehouse;structureThemeConverter;fabricDialogService;constructor(e,i,r,o){super(),this.injector=e,this.schemaWarehouse=i,this.structureThemeConverter=r,this.fabricDialogService=o}open(e,i){const r=He.create({parent:this.injector,providers:[{provide:Ni,useValue:e},{provide:Xe,useValue:i}]});this.schemaWarehouse.findTheme(e).ifPresent(o=>{this.fabricDialogService.open({injector:r,component:Ime,theme:this.structureThemeConverter.convertTheme(o)})})}static \u0275fac=function(i){return new(i||t)(I(He),I(ds),I(Sm),I(jh))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Tme=(()=>{class t{el;structureId;activeFilterService;schemaReadModelRootId;constructor(e,i,r,o){this.el=e,this.structureId=i,this.activeFilterService=r,this.schemaReadModelRootId=o}ngOnInit(){}static \u0275fac=function(i){return new(i||t)(g(F),g(Xe),g(w4),g(Ni))};static \u0275dir=N({type:t,selectors:[["","gui-active-filter-menu-trigger",""]]})}return t})(),Mme=(()=>{class t extends Kh{constructor(e,i){super(e,i)}getSelectorName(){return"gui-structure-info-icon"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-info-icon",""]],features:[O],attrs:ghe,decls:3,vars:0,consts:[["data-name","Layer 1","viewBox","0 0 10.08 10.08","xmlns","http://www.w3.org/2000/svg"],["d","M401.64,307.76c0-.28.23-.45.54-.45s.55.17.55.45v0a.49.49,0,0,1-.55.46.48.48,0,0,1-.54-.46Zm.05,1.27a.49.49,0,0,1,1,0v2.54a.49.49,0,0,1-1,0Z","transform","translate(-397.14 -304.64)",1,"cls-1"],["cx","5.04","cy","5.04","r","4.54",1,"cls-2"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"path",1)(2,"circle",2),E())},encapsulation:2,changeDetection:0})}return t})(),kme=(()=>{class t{transform(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g," ")}static \u0275fac=function(i){return new(i||t)};static \u0275pipe=Yn({name:"numberFormatter",type:t,pure:!0})}return t})(),Ame=(()=>{class t extends vn{injector;dialog;compositionId;schemaReadModelRootId;menuColumnManagerService;translationService;schemaManagerService;structureInfoPanelArchive;state=x(Xn);sourceWarehouse=x(hs);structureId=x(Xe);state$=this.state.select();totalItemsSize$=this.sourceWarehouse.onOriginSize(this.structureId);infoModal=wme;constructor(e,i,r,o,s,a,c,l,u,h){super(e,i),this.injector=r,this.dialog=o,this.compositionId=s,this.schemaReadModelRootId=a,this.menuColumnManagerService=c,this.translationService=l,this.schemaManagerService=u,this.structureInfoPanelArchive=h,this.state.connect("infoPanelConfig",this.structureInfoPanelArchive.on()),this.state.connect("preparedItemsSize",this.sourceWarehouse.onPreparedItems(this.structureId).pipe(ge(f=>f.length))),this.state.connect("translations",this.translationService.onTranslation())}openInfo(){this.dialog.open({component:this.infoModal})}openColumnManager(){this.menuColumnManagerService.open(this.compositionId,this.schemaReadModelRootId,this.injector)}openSchemaManager(){this.schemaManagerService.open(this.schemaReadModelRootId,this.injector)}getSelectorName(){return"gui-structure-info-panel"}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(He),g(jh),g(Si),g(Ni),g(v4),g(Ka),g(_4),g(zh))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-info-panel",""]],features:[ye([Xn]),O],attrs:phe,decls:1,vars:1,consts:[[4,"guiLet"],[1,"gui-right-section"],[3,"click",4,"ngIf"],[4,"ngIf"],["gui-active-filter-menu-trigger","",4,"ngIf"],["gui-active-filter-menu-trigger",""],[3,"click"],["gui-structure-schema-manager-icon","",3,"gui-tooltip"],["gui-structure-column-manager-icon","",3,"gui-tooltip"],["gui-structure-info-icon","",3,"gui-tooltip"]],template:function(i,r){1&i&&j(0,Dhe,7,4,"ng-container",0),2&i&&C("guiLet",r.state$)},dependencies:[ln,cI,y4,Eme,Tme,cr,Mme,kme,Yr],encapsulation:2,changeDetection:0})}return t})(),$0=(()=>{class t{destroy$=new ss(1);register(e,i,r){return e.pipe(Wr(this.destroy$)).subscribe(o=>i(o),o=>console.log(o),r?()=>r():()=>{})}destroy(){this.destroy$.next(),this.destroy$.complete()}ngOnDestroy(){this.destroy()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Rme=(()=>{class t extends Kh{constructor(e,i){super(e,i)}getSelectorName(){return"gui-search-icon"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-search-icon",""]],features:[O],attrs:Ehe,decls:3,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","10.231","height","10.601","viewBox","0 0 10.231 10.601",1,"gui-search-icon-svg"],["x2","1.77","y2","1.77","transform","translate(7.4 7.77)","fill","none","stroke-linecap","round","stroke-linejoin","round","stroke-width","1.5"],["cx","4.02","cy","4.02","r","4.02","transform","translate(0.5 0.5)","stroke-width","1","stroke-linecap","round","stroke-linejoin","round","fill","none"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"line",1)(2,"circle",2),E())},encapsulation:2,changeDetection:0})}return t})(),Nme=(()=>{class t extends vn{formBuilder;effects;searchCommandDispatcher;static FORM_SEARCH_NAME="searchPhrase";formRef;structureId=x(Xe);searchWarehouse=x(sl);searchForm;placeholder$=this.searchWarehouse.onPlaceholder(this.structureId);searchingEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);searchInputSubscription;constructor(e,i,r,o,s){super(i,r),this.formBuilder=e,this.effects=o,this.searchCommandDispatcher=s;const a={};a[t.FORM_SEARCH_NAME]="",this.searchForm=this.formBuilder.group(a),this.registerOnPhraseEffect()}ngOnInit(){this.registerOnChangesEffect()}clear(){this.searchForm.reset()}getSelectorName(){return"gui-search-bar"}selectPhrase(){return bu(this.searchForm.controls[t.FORM_SEARCH_NAME].valueChanges.pipe(p0(200)))}registerOnChangesEffect(){this.searchInputSubscription=this.effects.register(this.selectPhrase(),e=>{this.searchCommandDispatcher.search(e,this.structureId)})}registerOnPhraseEffect(){this.effects.register(this.searchWarehouse.onPhrase(this.structureId),e=>{void 0===e&&(e=null);const i={};i[t.FORM_SEARCH_NAME]=e,e!==this.searchForm.get([t.FORM_SEARCH_NAME]).value&&(this.unregisterObserveChangesEffect(),this.searchForm.setValue(i),this.registerOnChangesEffect())})}unregisterObserveChangesEffect(){this.searchInputSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(g(su),g(me),g(F),g($0),g(ls))};static \u0275cmp=V({type:t,selectors:[["div","gui-search-bar",""]],viewQuery:function(i,r){if(1&i&&pe(She,5,F),2&i){let o;te(o=ne())&&(r.formRef=o.first)}},features:[ye([$0]),O],attrs:xhe,decls:1,vars:1,consts:[["formRef",""],[4,"guiIf"],[1,"gui-flex","gui-relative","gui-w-full",3,"formGroup"],["gui-search-icon",""],["formControlName","searchPhrase",1,"gui-border-0","gui-w-full","gui-h-full","gui-py-5","gui-pr-5","gui-pl-21",3,"placeholder"],["class","gui-clear-search-icon",3,"click",4,"ngIf"],[1,"gui-clear-search-icon",3,"click"]],template:function(i,r){1&i&&j(0,The,7,5,"ng-container",1),2&i&&C("guiIf",r.searchingEnabled$)},dependencies:[ln,Ks,qs,jc,Ys,Pa,Gc,SI,Rme,Jh],styles:[".gui-search-bar form{background:#fff}.gui-search-bar form:hover .gui-search-icon-svg line,.gui-search-bar form:hover .gui-search-icon-svg circle{stroke:#333}.gui-search-bar .gui-search-icon-svg{height:17px;left:10px;position:absolute;top:6px;width:17px}.gui-search-bar .gui-search-icon-svg line,.gui-search-bar .gui-search-icon-svg circle{stroke:#ccc;transition:stroke .3s ease-in-out}\n"],encapsulation:2,changeDetection:0})}return t})(),Ome=(()=>{class t extends xi{constructor(e){super(e),this.addClassToHost("gui-p-6"),this.addClassToHost("gui-border-b"),this.addClassToHost("gui-border-b-solid")}getSelectorName(){return"gui-structure-top-panel"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-top-panel",""]],features:[O],attrs:Mhe,decls:1,vars:0,consts:[["gui-search-bar","",1,"gui-flex","gui-items-center","gui-h-full","gui-w-3/5","gui-mr-auto"]],template:function(i,r){1&i&&L(0,"div",0)},dependencies:[Nme],encapsulation:2,changeDetection:0})}return t})(),Fme=(()=>{class t extends xi{items;constructor(e){super(e),this.addClassToHost("gui-py-23"),this.addClassToHost("gui-px-6")}ngOnChanges(e){jt(e.items,()=>{0===this.items.length?(this.removeClassFromHost("gui-hidden"),this.addClassToHost("gui-block")):(this.removeClassFromHost("gui-block"),this.addClassToHost("gui-hidden"))})}getSelectorName(){return"gui-empty-source"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-empty-source","","items",""]],inputs:{items:"items"},features:[O,we],attrs:khe,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(i,r){1&i&&j(0,Ahe,3,3,"ng-container",0),2&i&&C("ngIf",0===r.items.length)},dependencies:[ln,Yr],encapsulation:2,changeDetection:0})}return t})();class Tu{constructor(){}}let C4=(()=>{class t extends xi{constructor(e){super(e)}getSelectorName(){return"gui-structure-menu-column-manager"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-menu-column-manager",""]],features:[O],attrs:Rhe,decls:1,vars:0,consts:[["gui-structure-column-manager",""]],template:function(i,r){1&i&&L(0,"div",0)},dependencies:[YI],encapsulation:2,changeDetection:0})}return t})(),Pme=(()=>{class t extends vn{structureId;filterWarehouse;filterCommandInvoker;set fieldId(e){this.state.setValue({fieldId:e})}state=x(Xn);state$=this.state.select();constructor(e,i,r,o,s){super(e,i),this.structureId=r,this.filterWarehouse=o,this.filterCommandInvoker=s,this.state.connect("uniqueValues",this.selectUniqueValues()),this.state.connect("selectAllChecked",this.isSelectAllChecked()),this.state.connect("selectAllIndeterminate",this.isSelectAllIndeterminate())}toggleAllSelect(){event.stopPropagation();const e=this.state.getValue("fieldId");this.state.getValue("selectAllChecked")?this.filterCommandInvoker.unselectAllUniqueFilter(e,this.structureId):this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}toggleSelect(e){event.stopPropagation();const i=this.state.getValue("fieldId");e.isEnabled()?this.filterCommandInvoker.unselectUniqueFilter(i,e.getId(),this.structureId):this.filterCommandInvoker.selectUniqueFilter(i,e.getId(),this.structureId)}clearFilters(){const e=this.state.getValue("fieldId");this.filterCommandInvoker.selectAllUniqueFilter(e,this.structureId)}getSelectorName(){return"gui-unique-value-list"}selectUniqueValues(){return this.state.select("fieldId").pipe(yo(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(ge(i=>i.getValues(e)))))}isSelectAllChecked(){return this.state.select("fieldId").pipe(yo(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(ge(i=>i.isSelectAllChecked(e)))))}isSelectAllIndeterminate(){return this.state.select("fieldId").pipe(yo(e=>this.filterWarehouse.onUniqueValues(this.structureId).pipe(ge(i=>i.isIndeterminate(e)))))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Xe),g(tl),g(ra))};static \u0275cmp=V({type:t,selectors:[["div","gui-unique-value-list","","fieldId",""]],inputs:{fieldId:"fieldId"},features:[ye([Xn]),O],attrs:Nhe,decls:1,vars:1,consts:[[4,"guiLet"],[3,"changed","checked","indeterminate"],[1,"gui-unique-value-list-container","gui-overflow-y-auto","gui-overflow-x-hidden"],[4,"ngFor","ngForOf"],[1,"gui-unique-value-list-actions","gui-px-4","gui-pb-4","gui-pt-2","gui-flex","gui-justify-end"],["gui-button","",1,"gui-clear-unique-filters","gui-px-4","gui-py-2",3,"click","outline","primary"],[3,"changed","checked"]],template:function(i,r){1&i&&j(0,Fhe,8,5,"ng-container",0),2&i&&C("guiLet",r.state$)},dependencies:[hi,Ga,vu,cr],styles:[".gui-unique-value-list-container{max-height:300px}\n"],encapsulation:2,changeDetection:0})}return t})();var ll=function(t){return t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT",t}(ll||{});let z0=(()=>{class t extends Kh{position=ll.UP;sort;styleModifier;constructor(e,i){super(e,i),this.sort&&this.addClassToHost("gui-structure-column-menu-sort-icon"),this.styleModifier=new N0(e.nativeElement)}ngOnChanges(e){jt(e.position,()=>{this.position&&this.styleModifier.getHost().setStyleByName("transform",this.getTransformValue())})}getSelectorName(){return"gui-structure-column-menu-arrow-icon"}getTransformValue(){return"rotate("+this.getRotationDeg()+"deg)"}getRotationDeg(){switch(this.position){case ll.UP:return 0;case ll.DOWN:return 180;case ll.LEFT:return-90;case ll.RIGHT:return 90;default:return 0}}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-arrow-icon",""]],inputs:{position:"position",sort:"sort"},features:[O,we],attrs:Phe,decls:4,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.04 11.72"],["x1","5.02","y1","2.15","x2","5.02","y2","10.97",1,"cls-1"],["x1","5.02","y1","0.75","x2","9.29","y2","5.02",1,"cls-1"],["x1","5.02","y1","0.75","x2","0.75","y2","5.02",1,"cls-1"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"line",1)(2,"line",2)(3,"line",3),E())},encapsulation:2,changeDetection:0})}return t})(),D4=(()=>{class t extends vn{changeDetectorRef;compositionId;structureId;sortingCommandDispatcher;compositionReadModelService;set column(e){this.state.setValue({fieldId:e.getFieldId()})}dropdownTextTranslation;state=x(Xn);placement=Uh.Right;status=bi;StructureArrowPosition=ll;sortOrder$=this.state.select("sortOrder");constructor(e,i,r,o,s,a){super(e,i),this.changeDetectorRef=e,this.compositionId=r,this.structureId=o,this.sortingCommandDispatcher=s,this.compositionReadModelService=a,this.state.connect("sortOrder",this.selectSortOrder())}isAscSort(){return this.state.getValue("sortOrder")===bi.ASC}isDescSort(){return this.state.getValue("sortOrder")===bi.DESC}isNoneSort(){return this.state.getValue("sortOrder")===bi.NONE}setSortOrder(e){event.preventDefault(),event.stopPropagation();const i=this.state.getValue("fieldId");this.sortingCommandDispatcher.setSortOrder(i,e,this.compositionId,this.structureId)}getSelectorName(){return"gui-structure-column-config-sort"}selectSortOrder(){return this.state.select("fieldId").pipe(yo(e=>this.compositionReadModelService.onSortOrder(e,this.compositionId)))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Si),g(Xe),g(us),g(Eo))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-config-sort","","column","","dropdownTextTranslation",""]],inputs:{column:"column",dropdownTextTranslation:"dropdownTextTranslation"},features:[ye([Xn]),O],attrs:Lhe,decls:1,vars:1,consts:[["class","gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width",4,"guiLet"],[1,"gui-header-menu-dropdown",3,"dropdownText","placement","showOnHover","width"],[3,"click"],[1,"gui-sort-title"],["gui-structure-arrow-icon","",3,"sort"],["gui-structure-arrow-icon","",3,"position","sort"]],template:function(i,r){1&i&&j(0,Bhe,14,22,"gui-dropdown",0),2&i&&C("guiLet",r.sortOrder$)},dependencies:[oue,sue,cr,z0,Yr],encapsulation:2,changeDetection:0})}return t})(),E4=(()=>{class t extends xi{column;columnHidden=new X;constructor(e){super(e)}hideColumn(){this.columnHidden.emit()}getSelectorName(){return"gui-structure-column-config-column-hide"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-config-column-hide",""]],inputs:{column:"column"},outputs:{columnHidden:"columnHidden"},features:[O],attrs:Vhe,decls:3,vars:3,consts:[[1,"gui-header-menu-item",3,"click"]],template:function(i,r){1&i&&(w(0,"div",0),B("click",function(){return r.hideColumn()}),U(1),je(2,"guiTranslate"),E()),2&i&&(_(),Fe(" ",Ye(2,1,"headerMenuMainTabHideColumn"),"\n"))},dependencies:[Yr],encapsulation:2,changeDetection:0})}return t})(),S4=(()=>{class t extends xi{column;movedLeft=new X;movedRight=new X;StructureArrowPosition=ll;constructor(e){super(e)}moveLeft(){this.movedLeft.emit()}moveRight(){this.movedRight.emit()}getSelectorName(){return"gui-structure-column-config-column-move"}static \u0275fac=function(i){return new(i||t)(g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-config-column-move","","column",""]],inputs:{column:"column"},outputs:{movedLeft:"movedLeft",movedRight:"movedRight"},features:[O],attrs:Hhe,decls:9,vars:8,consts:[[1,"gui-header-menu-column-move"],[1,"gui-header-menu-column-move-item","left",3,"click"],["gui-structure-arrow-icon","",3,"position"],[1,"gui-header-menu-column-move-item","right",3,"click"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1),B("click",function(){return r.moveLeft()}),L(2,"div",2),U(3),je(4,"guiTranslate"),E(),w(5,"div",3),B("click",function(){return r.moveRight()}),U(6),je(7,"guiTranslate"),L(8,"div",2),E()()),2&i&&(_(2),C("position",r.StructureArrowPosition.LEFT),_(),Fe(" ",Ye(4,4,"headerMenuMainTabMoveLeft")," "),_(3),Fe(" ",Ye(7,6,"headerMenuMainTabMoveRight")," "),_(2),C("position",r.StructureArrowPosition.RIGHT))},dependencies:[z0,Yr],encapsulation:2,changeDetection:0})}return t})(),x4=(()=>{class t extends vn{translationFacade;structureColumnMenuConfigArchive;compositionId;compositionCommandInvoker;injector;column;headerSortMenu;state=x(Xn);state$=this.state.select();structureColumnConfigService;constructor(e,i,r,o,s,a,c,l){super(e,i),this.translationFacade=r,this.structureColumnMenuConfigArchive=o,this.compositionId=s,this.compositionCommandInvoker=a,this.injector=c,this.column=l,this.structureColumnConfigService=this.injector.get(W0),this.state.connect("isEnabled",this.selectIsEnabled()),this.state.connect("config",this.structureColumnMenuConfigArchive.on()),this.state.connect("translations",this.translationFacade.onTranslation())}isEnabled(e){return e.isEnabled()}hideColumn(){this.compositionCommandInvoker.disableColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveLeft(){this.compositionCommandInvoker.moveLeft(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}moveRight(){this.compositionCommandInvoker.moveRight(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}highlightColumn(){this.compositionCommandInvoker.highlightColumn(this.column.getColumnDefinitionId(),this.compositionId),this.structureColumnConfigService.close()}getSelectorName(){return"gui-column-config"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(ge(e=>e.isEnabled()))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Ka),g(gm),g(Si),g(ia),g(He),g("column"))};static \u0275cmp=V({type:t,selectors:[["div","gui-column-config",""]],viewQuery:function(i,r){if(1&i&&pe(Uhe,5,F),2&i){let o;te(o=ne())&&(r.headerSortMenu=o.first)}},features:[ye([Xn]),O],attrs:jhe,decls:1,vars:1,consts:[[4,"guiLet"],["class","gui-header-menu-tab",4,"ngIf"],[1,"gui-header-menu-tab"],[3,"active","menu"],[4,"ngIf"],[1,"gui-tab-item-dropdown",3,"tab"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation",4,"ngIf"],["gui-structure-column-config-column-hide","",3,"columnHidden","column"],[1,"gui-header-menu-item",3,"click"],["gui-structure-column-config-column-move","",3,"movedLeft","movedRight","column"],["gui-structure-column-config-sort","",3,"column","dropdownTextTranslation"],[3,"tab"],["gui-unique-value-list","",3,"fieldId"],["gui-structure-menu-column-manager",""]],template:function(i,r){1&i&&j(0,Yhe,2,1,"ng-container",0),2&i&&C("guiLet",r.state$)},dependencies:[ln,vue,_ue,cr,C4,Pme,D4,E4,S4,Yr],encapsulation:2,changeDetection:0})}return t})(),W0=(()=>{class t extends Cr{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,i,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=i,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e,i){this.close();const r=He.create({providers:[{provide:"column",useValue:i}],parent:this.injector});this.schemaWarehouse.onceTheme(this.schemaReadModelRootId).pipe(this.hermesTakeUntil()).subscribe(o=>{this.inlineDialogService.open(e,x4,{injector:r,placement:Wa.BOTTOM,offset:-34,theme:this.structureThemeConverter.convertTheme(o),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(i){return new(i||t)(I(He),I(Ni),I(ds),I(Sm),I(tm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Lme=(()=>{class t extends vU{formationPublisher;structureId=x(Xe);formationWarehouse=x(Do);selection$=this.formationWarehouse.onCustomSelections(this.structureId);constructor(e,i){super(e),this.formationPublisher=i}selectCustom(e){this.formationPublisher.selectCustom(e,this.structureId)}getSelectorName(){return"gui-select-custom-modal"}static \u0275fac=function(i){return new(i||t)(g(F),g(ar))};static \u0275cmp=V({type:t,selectors:[["div","gui-select-custom-modal",""]],features:[O],attrs:Khe,decls:1,vars:1,consts:[[4,"guiLet"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(i,r){1&i&&j(0,Qhe,2,1,"ul",0),2&i&&C("guiLet",r.selection$)},dependencies:[hi,cr],styles:[".gui-select-custom-modal{background:#fff;border:1px solid #d6d6d6;border-radius:0 0 4px 4px}.gui-select-custom-modal ul{list-style:none;margin:0;padding:0}.gui-select-custom-modal ul li{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;cursor:pointer;display:block;font:14px Arial;padding:8px 12px}\n"],encapsulation:2,changeDetection:0})}return t})(),I4=(()=>{class t extends Cr{injector;schemaReadModelRootId;schemaWarehouse;structureThemeConverter;inlineDialogService;constructor(e,i,r,o,s){super(),this.injector=e,this.schemaReadModelRootId=i,this.schemaWarehouse=r,this.structureThemeConverter=o,this.inlineDialogService=s}open(e){this.close(),this.schemaWarehouse.findTheme(this.schemaReadModelRootId).ifPresent(i=>{this.inlineDialogService.open(e,Lme,{injector:this.injector,placement:Wa.BOTTOM,offset:0,theme:this.structureThemeConverter.convertTheme(i),customClass:"gui-inline-dialog-header-menu"})})}close(){this.inlineDialogService.close()}static \u0275fac=function(i){return new(i||t)(I(He),I(Ni),I(ds),I(Sm),I(tm))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),T4=(()=>{class t extends Du{structureId;formationCommandDispatcher;formationWarehouse;state=x(Xn);state$=this.state.select();constructor(e,i,r,o){super(e),this.structureId=i,this.formationCommandDispatcher=r,this.formationWarehouse=o,this.state.setValue({modeMulti:!1}),this.state.connect("modeMulti",this.selectModeMulti()),this.state.connect("isAllChecked",this.selectAllChecked()),this.state.connect("isAllIndeterminate",this.selectAllIndeterminate())}toggleSelectAll(e,i){e||i?this.formationCommandDispatcher.unselectAll(this.structureId):this.formationCommandDispatcher.selectAll(this.structureId)}getSelectorName(){return"gui-select-all"}selectModeMulti(){return this.formationWarehouse.onMode(this.structureId).pipe(ge(e=>e===Co.MULTIPLE))}selectAllChecked(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(ge(e=>e.isAllSelected()))}selectAllIndeterminate(){return this.formationWarehouse.onRowSelectedReadModel(this.structureId).pipe(ge(e=>e.isIndeterminate()))}static \u0275fac=function(i){return new(i||t)(g(F),g(Xe),g(ar),g(Do))};static \u0275cmp=V({type:t,selectors:[["div","gui-select-all",""]],features:[ye([Xn]),O],attrs:Xhe,decls:1,vars:1,consts:[[4,"guiLet"],[3,"checked","gui-tooltip","indeterminate","changed",4,"ngIf"],[3,"changed","checked","gui-tooltip","indeterminate"]],template:function(i,r){1&i&&j(0,ege,2,1,"ng-container",0),2&i&&C("guiLet",r.state$)},dependencies:[ln,cr,vu,cI],encapsulation:2,changeDetection:0})}return t})(),M4=(()=>{class t extends Kh{constructor(e,i){super(e,i)}getSelectorName(){return"gui-structure-column-menu-icon"}static \u0275fac=function(i){return new(i||t)(g(F),g(me))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-menu-icon",""]],features:[O],attrs:tge,decls:4,vars:0,consts:[["data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 10.32 7.46"],["x1","9.57","y1","3.73","x2","0.75","y2","3.73",1,"cls-1"],["x1","9.57","y1","0.75","x2","0.75","y2","0.75",1,"cls-1"],["x1","9.57","y1","6.71","x2","0.75","y2","6.71",1,"cls-1"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0),L(1,"line",1)(2,"line",2)(3,"line",3),E())},encapsulation:2,changeDetection:0})}return t})(),k4=(()=>{class t extends vn{structureColumnConfigService;headerDialogContainer;column;structureColumnMenuConfigArchive=x(gm);isEnabled$=this.selectIsEnabled();constructor(e,i,r){super(i,e),this.structureColumnConfigService=r}openConfigDialog(){this.structureColumnConfigService.open(this.headerDialogContainer,this.column)}getSelectorName(){return"gui-structure-column-config-trigger"}selectIsEnabled(){return this.structureColumnMenuConfigArchive.on().pipe(ge(e=>e.isEnabled()))}static \u0275fac=function(i){return new(i||t)(g(F),g(me),g(W0))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-column-config-trigger",""]],viewQuery:function(i,r){if(1&i&&pe(nge,5,F),2&i){let o;te(o=ne())&&(r.headerDialogContainer=o.first)}},inputs:{column:"column"},features:[O],attrs:ige,decls:1,vars:1,consts:[["headerDialogContainer",""],["class","gui-header-menu-icon-wrapper",3,"click",4,"guiIf"],[1,"gui-header-menu-icon-wrapper",3,"click"],["gui-structure-menu-icon","",3,"ngClass"]],template:function(i,r){1&i&&j(0,rge,3,1,"div",1),2&i&&C("guiIf",r.isEnabled$)},dependencies:[Hr,SI,M4],encapsulation:2,changeDetection:0})}return t})(),A4=(()=>{class t extends vn{elementRef;injector;changeDetectorRef;compositionId;structureId;structureSelectCustomService;formationCommandDispatcher;sortingCommandDispatcher;selectCustomContainer;columns;showSelection=!1;showCustom=!0;constructor(e,i,r,o,s,a,c,l){super(r,e),this.elementRef=e,this.injector=i,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.structureSelectCustomService=a,this.formationCommandDispatcher=c,this.sortingCommandDispatcher=l}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}openConfigDialog(){this.structureSelectCustomService.open(this.selectCustomContainer)}getSelectorName(){return"gui-structure-header-columns"}static \u0275fac=function(i){return new(i||t)(g(F),g(He),g(me),g(Si),g(Xe),g(I4),g(ar),g(us))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-header-columns","","columns",""]],viewQuery:function(i,r){if(1&i&&pe(oge,5,F),2&i){let o;te(o=ne())&&(r.selectCustomContainer=o.first)}},inputs:{columns:"columns",showSelection:"showSelection"},features:[ye([W0,I4]),O],attrs:sge,decls:2,vars:2,consts:[["class","gui-header-cell gui-row-checkbox\n\t gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",4,"ngIf"],["class","gui-header-cell gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",3,"class","ngClass","width","style","click",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis",3,"click","ngClass"],[1,"gui-header-title"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","gui-ml-6","gui-structure-arrow-icon","",3,"position","sort",4,"ngIf"],[1,"gui-header-menu"],["gui-structure-column-config-trigger","",3,"column"],["gui-structure-arrow-icon","",1,"gui-ml-6",3,"position","sort"]],template:function(i,r){1&i&&j(0,cge,2,0,"div",0)(1,dge,6,13,"div",1),2&i&&(C("ngIf",r.showSelection),_(),C("ngForOf",r.columns))},dependencies:[Hr,hi,ln,Ws,T4,k4,z0],encapsulation:2,changeDetection:0})}return t})(),R4=(()=>{class t extends xi{elementRef;injector;changeDetectorRef;compositionId;structureId;formationCommandDispatcher;sortingCommandDispatcher;groups;showGroups;checkboxSelection=!1;globalSearching=!1;constructor(e,i,r,o,s,a,c){super(e),this.elementRef=e,this.injector=i,this.changeDetectorRef=r,this.compositionId=o,this.structureId=s,this.formationCommandDispatcher=a,this.sortingCommandDispatcher=c}toggleSort(e){e.isSortEnabled()&&this.sortingCommandDispatcher.toggleSort(e.getFieldId(),this.compositionId,this.structureId)}isSortAsc(e){return e.getSortStatus()===bi.ASC}isSortDesc(e){return e.getSortStatus()===bi.DESC}isGlobalSortEnabled(){return this.globalSearching}getSelectorName(){return"gui-structure-header-groups"}static \u0275fac=function(i){return new(i||t)(g(F),g(He),g(me),g(Si),g(Xe),g(ar),g(us))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-header-groups","","groups","","checkboxSelection",""]],inputs:{groups:"groups",showGroups:"showGroups",checkboxSelection:"checkboxSelection"},features:[ye([W0]),O],attrs:hge,decls:2,vars:2,consts:[["class","gui-header-cell gui-row-checkbox gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",4,"ngIf"],["class","gui-header-cell gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-row-checkbox","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],["gui-select-all",""],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[1,"gui-header-title"]],template:function(i,r){1&i&&j(0,gge,2,0,"div",0)(1,pge,3,3,"div",1),2&i&&(C("ngIf",r.checkboxSelection),_(),C("ngForOf",r.groups))},dependencies:[hi,ln,T4],encapsulation:2,changeDetection:0})}return t})(),N4=(()=>{class t extends xi{structureFilterCommandService;formBuilder;cd;effects;structureId;columns;closed=new X;filterFieldName="phrase";filterForm;filterMode=!1;constructor(e,i,r,o,s,a){super(s),this.structureFilterCommandService=e,this.formBuilder=i,this.cd=r,this.effects=o,this.structureId=a,this.filterForm=this.formBuilder.group({[this.filterFieldName]:[""]})}ngOnInit(){this.effects.register(this.selectFilterFormChanges(),e=>{this.filter(e[this.filterFieldName])})}filter(e){null==e&&(e="")}clearFilters(){this.filterForm.reset()}turnOnFilterMode(){this.filterMode=!0,this.cd.detectChanges()}turnOffFilterMode(){this.filterMode=!1,this.cd.detectChanges()}getSelectorName(){return""}selectFilterFormChanges(){return bu(this.filterForm.valueChanges)}static \u0275fac=function(i){return new(i||t)(g(ra),g(su),g(me),g($0),g(F),g(Xe))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-header-filters","","columns",""]],inputs:{columns:"columns"},outputs:{closed:"closed"},features:[ye([$0]),O],attrs:fge,decls:2,vars:2,consts:[[4,"ngIf"],["class","gui-header-cell gui-flex gui-justify-between\n\t gui-overflow-hidden gui-relative gui-py-0 gui-px-6 gui-box-border\n\t gui-leading-4 gui-whitespace-nowrap gui-overflow-ellipsis",3,"width",4,"ngFor","ngForOf"],[1,"gui-header-cell","gui-flex","gui-justify-between","gui-overflow-hidden","gui-relative","gui-py-0","gui-px-6","gui-box-border","gui-leading-4","gui-whitespace-nowrap","gui-overflow-ellipsis"],[3,"click"],[3,"options","selected"],[3,"formGroup"],["type","text","gui-input","",3,"formControlName"],["gui-button","",3,"click"]],template:function(i,r){1&i&&j(0,vge,2,1,"ng-container",0)(1,_ge,8,5,"ng-container",0),2&i&&(C("ngIf",!r.filterMode),_(),C("ngIf",r.filterMode))},dependencies:[hi,ln,Ks,qs,jc,Ys,Pa,Gc,Ga,uI,tI],encapsulation:2,changeDetection:0})}return t})(),KI=(()=>{class t extends Du{filterWarehouse;formationWarehouse;compositionTemplateWarehouse;state=x(Xn);compositionWarehouse=x(Eo);structureId=x(Xe);compositionId=x(Si);verticalFormationWarehouse=x(Tu);state$=this.state.select();width$=this.compositionWarehouse.onContainerWidth(this.compositionId).pipe(ge(e=>({width:e})));filterHeaderHeight$=this.verticalFormationWarehouse.onRowHeight(this.structureId).pipe(ge(e=>({height:+e+2})));constructor(e,i,r,o){super(e),this.filterWarehouse=i,this.formationWarehouse=r,this.compositionTemplateWarehouse=o,this.state.setValue({headerColumns:[],filterRowEnabled:!1,showGroups:!1}),this.state.connect("showSelection",this.selectShowSelection()),this.state.connect("headerColumns",this.compositionTemplateWarehouse.onHeaderCols(this.compositionId)),this.state.connect("filterRowEnabled",this.filterWarehouse.onFilteringEnabled(this.structureId)),this.state.connect("showGroups",this.selectShowGroups()),this.state.connect("groups",this.selectGroups())}getSelectorName(){return"gui-structure-header"}selectGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(ge(e=>e.getGroups()))}selectShowGroups(){return this.compositionWarehouse.onGroups(this.compositionId).pipe(ge(e=>e.isVisible()))}selectShowSelection(){return this.formationWarehouse.onType(this.structureId).pipe(ge(e=>e===Ri.CHECKBOX||e===Ri.RADIO))}static \u0275fac=function(i){return new(i||t)(g(F),g(tl),g(Do),g(Dm))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-header",""]],features:[ye([Xn]),O],attrs:yge,decls:3,vars:3,consts:[[4,"guiLet"],["class","gui-header","gui-structure-header-columns","",3,"columns","guiStyle","showSelection",4,"guiLet"],["class","gui-header","gui-structure-header-groups","",3,"checkboxSelection","groups",4,"ngIf"],["gui-structure-header-groups","",1,"gui-header",3,"checkboxSelection","groups"],["gui-structure-header-columns","",1,"gui-header",3,"columns","guiStyle","showSelection"],["class","gui-header","gui-structure-header-filters","",3,"columns","guiStyle",4,"ngIf"],["gui-structure-header-filters","",1,"gui-header",3,"columns","guiStyle"]],template:function(i,r){1&i&&j(0,Cge,2,1,"ng-container",0)(1,Dge,1,3,"div",1)(2,Sge,2,1,"ng-container",0),2&i&&(C("guiLet",r.state$),_(),C("guiLet",r.state$),_(),C("guiLet",r.state$))},dependencies:[ln,cr,Efe,A4,R4,N4],encapsulation:2,changeDetection:0})}return t})(),O4=(()=>{class t{platformId;constructor(e){this.platformId=e}on(e){return fo(this.platformId)?bu(new rt(i=>{const r=new ResizeObserver(o=>{o&&o.length>0&&i.next(o[0].contentRect)});return r.observe(e),()=>r.disconnect()}).pipe(function Tue(t,n=Vh,e){const i=Dr(t,n);return function Iue(t,n){return qt((e,i)=>{const{leading:r=!0,trailing:o=!1}=n??{};let s=!1,a=null,c=null,l=!1;const u=()=>{c?.unsubscribe(),c=null,o&&(v(),l&&i.complete())},h=()=>{c=null,l&&i.complete()},f=y=>c=Gn(t(y)).subscribe(Mt(i,u,h)),v=()=>{if(s){s=!1;const y=a;a=null,i.next(y),!l&&f(y)}};e.subscribe(Mt(i,y=>{s=!0,a=y,(!c||c.closed)&&(r?v():f(y))},()=>{l=!0,(!(o&&s&&c)||c.closed)&&i.complete()}))})}(()=>i,e)}(25))):_H()}destroy(e){}static \u0275fac=function(i){return new(i||t)(I(Kn))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Kr=function(t){return t[t.NONE=0]="NONE",t[t.ADD=1]="ADD",t[t.RANGE=2]="RANGE",t}(Kr||{});class Mu{subject$=new ss(1);constructor(){}emit(n){this.subject$.next(n)}on(){return this.subject$.toObservable()}}class q0{itemId;columnFieldId;value;constructor(n,e,i){this.itemId=n,this.columnFieldId=e,this.value=i}getItemId(){return this.itemId}getColumnFieldId(){return this.columnFieldId}getValue(){return this.value}}let F4=(()=>{class t extends vn{changeDetectorRef;structureId;sourceCommandService;cellContainerRef;entity;cell;editContext;valueChanges$;status$;actualValue;constructor(e,i,r,o){super(e,i),this.changeDetectorRef=e,this.structureId=r,this.sourceCommandService=o}ngOnChanges(e){jt(e.entity,()=>{this.initEditContext()}),jt(e.cell,()=>{this.initEditContext()})}ngOnInit(){this.initEditContext()}getSelectorName(){return"gui-structure-cell-edit-boolean"}submitChanges(){const e=this.entity.getId();this.sourceCommandService.editItem(new q0(e,this.cell.columnFieldId,this.actualValue),this.structureId)}initEditContext(){this.valueChanges$=new Mu,this.status$=new Mu,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:!1,parent:this.cellContainerRef},this.observeValueChanges(),this.status$.on().pipe(this.takeUntil()).subscribe(e=>{e===cl.SUBMIT&&this.submitChanges()})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Xe),g(So))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-cell-edit-boolean","","entity","","cell",""]],viewQuery:function(i,r){if(1&i&&pe(aU,7),2&i){let o;te(o=ne())&&(r.cellContainerRef=o.first)}},inputs:{entity:"entity",cell:"cell"},features:[O,we],attrs:xge,decls:3,vars:2,consts:[["cellContainer",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){1&i&&(w(0,"span",null,0),j(2,Ige,1,0,"ng-container",1),E()),2&i&&(_(2),C("ngTemplateOutlet",r.cell.editTemplate)("ngTemplateOutletContext",r.editContext))},dependencies:[Ws],encapsulation:2,changeDetection:0})}return t})(),P4=(()=>{class t extends vn{changeDetectorRef;elementRef;structureId;compositionId;structureCellEditStore;cellEditCloseAllService;sourceCommandService;compositionWarehouse;entity;cell;editMode;cellEditorManager;searchPhrase;rowIndex;columnIndex;inEditMode=!1;editContext;valueChanges$;status$;actualValue;isHighlighted;constructor(e,i,r,o,s,a,c,l){super(e,i),this.changeDetectorRef=e,this.elementRef=i,this.structureId=r,this.compositionId=o,this.structureCellEditStore=s,this.cellEditCloseAllService=a,this.sourceCommandService=c,this.compositionWarehouse=l}ngOnInit(){this.subscribe(this.compositionWarehouse.onHighlightedColumn(new B0(this.cell.columnDefinitionId.toString()),this.compositionId),e=>{this.isHighlighted=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.subscribeWithoutRender(this.cellEditCloseAllService.onCloseAll(),()=>{this.exitEditMode()})}isCellEditingEnabled(){return this.cellEditorManager.isEnabled(this.cell.getValue(this.entity),this.entity.getSourceItem(),this.rowIndex)&&this.cell.isCellEditingEnabled()}enterEditMode(e=!0){this.isCellEditingEnabled()&&(this.cellEditCloseAllService.closeAll(),PH(0).pipe(this.takeUntil()).subscribe(()=>{this.inEditMode=!0,this.valueChanges$=new Mu,this.status$=new Mu,this.editContext={status:this.status$,valueChanges:this.valueChanges$,value:this.cell.getValue(this.entity).value,focus:e,parent:this.elementRef},this.observeFieldStatus(),this.observeValueChanges(),this.publishEditEnter(),e?this.changeDetectorRef.detectChanges():this.changeDetectorRef.markForCheck()}))}exitEditMode(){this.inEditMode=!1,this.changeDetectorRef.detectChanges()}submitChangesAndExit(){const e=this.entity.getId();this.sourceCommandService.editItem(new q0(e,this.cell.columnFieldId,this.actualValue),this.structureId),this.exitEditMode()}getSelectorName(){return"gui-structure-cell"}observeFieldStatus(){this.status$.on().pipe(this.takeUntil()).subscribe(e=>{switch(e){case cl.SUBMIT:this.submitChangesAndExit(),this.publishEditSubmit();break;case cl.CANCEL:this.exitEditMode(),this.publishEditCancel()}})}observeValueChanges(){this.valueChanges$.on().pipe(this.takeUntil()).subscribe(e=>{this.actualValue=e})}publishEditState(e){this.structureCellEditStore.next(e)}publishEditEnter(){this.publishEditState(oa.ENTER)}publishEditCancel(){this.publishEditState(oa.CANCEL)}publishEditSubmit(){this.publishEditState(oa.SUBMIT)}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Xe),g(Si),g(w0),g(fU),g(So),g(Eo))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-cell","","entity","","cell",""]],inputs:{entity:"entity",cell:"cell",editMode:"editMode",cellEditorManager:"cellEditorManager",searchPhrase:"searchPhrase",rowIndex:"rowIndex",columnIndex:"columnIndex"},features:[O],attrs:Tge,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["class","gui-cell-edit-mode",4,"ngIf"],[3,"click","ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"gui-cell-edit-mode"],["gui-structure-cell-edit-boolean","",3,"cell","entity"]],template:function(i,r){1&i&&j(0,Fge,3,2,"ng-container",0)(1,Pge,2,2,"ng-container",0),2&i&&(C("ngIf",!r.cell.isBooleanDataType()||r.cell.isBooleanDataType()&&!r.isCellEditingEnabled()),_(),C("ngIf",r.cell.isBooleanDataType()&&r.isCellEditingEnabled()))},dependencies:[Hr,ln,Ws,F4],encapsulation:2,changeDetection:0})}return t})(),ZI=(()=>{class t extends vn{changeDetectorRef;elRef;structureId;formationWarehouse;formationCommandDispatcher;cssClassModifier;entity;columns;editMode;cellEditing;searchPhrase;index;rowStyle;rowClass;checkboxSelection=!1;radioSelection=!1;selectedItem=!1;row;styleModifier;classModifier;constructor(e,i,r,o,s,a){super(e,i),this.changeDetectorRef=e,this.elRef=i,this.structureId=r,this.formationWarehouse=o,this.formationCommandDispatcher=s,this.cssClassModifier=a,this.styleModifier=new N0(this.elRef.nativeElement),this.classModifier=new om(this.elRef.nativeElement)}ngOnChanges(e){jt(e.entity,()=>{this.checkSelectedItem(),this.updateRowClass(e.entity.previousValue),this.updateRowStyle(e.entity.previousValue)}),jt(e.rowClass,()=>{this.updateRowClass()}),jt(e.rowStyle,()=>{this.updateRowStyle()})}ngOnInit(){this.subscribeWithoutRender(this.formationWarehouse.onRowSelectedReadModel(this.structureId),e=>{this.row=e;const i=this.selectedItem;this.checkSelectedItem(),i!==this.selectedItem&&(i?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement),this.changeDetectorRef.detectChanges())})}ngAfterViewInit(){super.ngAfterViewInit(),this.updateRowClass(),this.updateRowStyle()}trackByFn(){return 0}selectCheckbox(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Kr.ADD,this.structureId)}selectRadio(){event.stopPropagation(),this.formationCommandDispatcher.toggleSelectedRow(this.entity.getId(),Kr.NONE,this.structureId)}checkSelectedItem(){if(this.row){const e=this.selectedItem;this.selectedItem=this.row.isSelected(this.entity.getId()),e!==this.selectedItem&&(e?this.cssClassModifier.unselect(this.elRef.nativeElement):this.cssClassModifier.select(this.elRef.nativeElement))}}getSelectorName(){return"gui-structure-row"}calculateRowStyle(e){return this.rowStyle?"string"==typeof this.rowStyle.style?this.rowStyle.style||"":"function"==typeof this.rowStyle.styleFunction?this.rowStyle.styleFunction(e.getSourceItem(),e.getPosition()):"":""}updateRowStyle(e){if(e){const r=this.calculateRowStyle(e);this.removeRowStyles(r)}const i=this.calculateRowStyle(this.entity);this.renderRowStyles(i)}removeRowStyles(e){if(!e)return;const i=e.split(";");for(let r=0;r<i.length;r+=1){const o=i[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().removeStyleByName(o[0].trim())}}renderRowStyles(e){if(!e)return;const i=e.split(";");for(let r=0;r<i.length;r+=1){const o=i[r].split(":");o[0]&&o[1]&&this.styleModifier.getHost().setStyleByName(o[0].trim(),o[1].trim())}}updateRowClass(e){if(e){const r=this.calculateRowClass(e);r&&this.classModifier.getHost().remove(r)}const i=this.calculateRowClass(this.entity);i&&this.classModifier.getHost().add(i)}calculateRowClass(e){if(!this.rowClass)return"";let i;return"string"==typeof this.rowClass.class&&(i=this.rowClass.class||""),"function"==typeof this.rowClass.classFunction&&e&&(i=this.rowClass.classFunction(e.getSourceItem(),e.getPosition())||""),i}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Xe),g(Do),g(ar),g(pm))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-row",""]],inputs:{entity:"entity",columns:"columns",editMode:"editMode",cellEditing:"cellEditing",searchPhrase:"searchPhrase",index:"index",rowStyle:"rowStyle",rowClass:"rowClass",checkboxSelection:"checkboxSelection",radioSelection:"radioSelection"},features:[O,we],attrs:Lge,decls:3,vars:4,consts:[["class","gui-cell gui-row-checkbox",4,"ngIf"],["class","gui-cell gui-row-radio",4,"ngIf"],["class","gui-cell","gui-structure-cell","",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase","width",4,"ngFor","ngForOf","ngForTrackBy"],[1,"gui-cell","gui-row-checkbox"],[3,"changed","checked"],[1,"gui-cell","gui-row-radio"],["gui-structure-cell","",1,"gui-cell",3,"cellEditorManager","cell","columnIndex","editMode","entity","rowIndex","searchPhrase"]],template:function(i,r){1&i&&j(0,Bge,2,1,"div",0)(1,Vge,2,1,"div",1)(2,Hge,1,9,"div",2),2&i&&(C("ngIf",r.checkboxSelection),_(),C("ngIf",r.radioSelection),_(),C("ngForOf",r.columns)("ngForTrackBy",r.trackByFn))},dependencies:[hi,ln,vu,due,P4],encapsulation:2,changeDetection:0})}return t})(),QI=(()=>{class t extends vn{formationPublisher;structureEditModeArchive;formationWarehouse;structureWarehouse;verticalFormationWarehouse;structureId;schemaReadModelRootId;searchWarehouse;schemaWarehouse;source;columns;state=x(Xn);state$=this.state.select();constructor(e,i,r,o,s,a,c,l,u,h,f){super(i,e),this.formationPublisher=r,this.structureEditModeArchive=o,this.formationWarehouse=s,this.structureWarehouse=a,this.verticalFormationWarehouse=c,this.structureId=l,this.schemaReadModelRootId=u,this.searchWarehouse=h,this.schemaWarehouse=f,this.state.setValue({checkboxSelection:!1,radioSelection:!1,searchPhrase:""}),this.state.connect("editMode",this.structureEditModeArchive.on()),this.state.connect("selectionEnabled",this.formationWarehouse.onSelectionEnabled(this.structureId)),this.state.connect("rowHeight",this.verticalFormationWarehouse.onRowHeight(this.structureId)),this.state.connect("cellEditing",this.structureWarehouse.onEditManager(this.structureId)),this.state.connect("schemaRowClass",this.schemaWarehouse.onRowClass(this.schemaReadModelRootId)),this.state.connect("schemaRowStyle",this.schemaWarehouse.onRowStyle(this.schemaReadModelRootId)),this.state.connect("checkboxSelection",this.selectCheckboxSelection()),this.state.connect("radioSelection",this.selectRadioSelection()),this.state.connect("searchPhrase",this.selectSearchPhrase())}trackByFn(){return 0}translateY(e,i){return`translateY(${e*i}px)`}toggleSelectedRow(e,i,r,o){i&&!r&&!o&&this.formationPublisher.toggleSelectedRow(e.getId(),Kr.NONE,this.structureId)}getSelectorName(){return"gui-structure-content"}selectCheckboxSelection(){return this.formationWarehouse.onType(this.structureId).pipe(ge(e=>e===Ri.CHECKBOX))}selectRadioSelection(){return this.formationWarehouse.onType(this.structureId).pipe(ge(e=>e===Ri.RADIO))}selectSearchPhrase(){return bu(La(Kc(this.searchWarehouse.onPhrase(this.structureId)),Kc(this.searchWarehouse.onHighlight(this.structureId)))).pipe(ge(([e,i])=>i?e:""))}static \u0275fac=function(i){return new(i||t)(g(F),g(me),g(ar),g(C0),g(Do),g(xu),g(Tu),g(Xe),g(Ni),g(sl),g(ds))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-content",""]],inputs:{source:"source",columns:"columns"},features:[ye([Xn]),O],attrs:Uge,decls:1,vars:1,consts:[["class","gui-content",4,"guiLet"],[1,"gui-content"],["class","gui-row","gui-structure-row","",3,"cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase","height","click",4,"ngFor","ngForOf","ngForTrackBy"],["gui-structure-row","",1,"gui-row",3,"click","cellEditing","checkboxSelection","columns","editMode","entity","id","index","ngClass","ngStyle","radioSelection","rowClass","rowStyle","searchPhrase"]],template:function(i,r){1&i&&j(0,zge,2,2,"div",0),2&i&&C("guiLet",r.state$)},dependencies:[Hr,hi,pL,cr,ZI],encapsulation:2,changeDetection:0})}return t})(),XI=(()=>{class t extends vn{elRef;ngZone;structureId;compositionId;structureCommandService;structureWarehouse;verticalFormationWarehouse;sourceWarehouse;compositionCommandInvoker;compositionWarehouse;compositionTemplateWarehouse;formationWarehouse;resizeDetector;structureInitialValuesReadyArchive;structureParent;sourceCollectionRef;columns=[];source=[];height;rowColoring;autoResizeWidthEnabled=!1;scrollObservation$=new Ci;styleModifier;constructor(e,i,r,o,s,a,c,l,u,h,f,v,y,D,S,k){super(e,i),this.elRef=i,this.ngZone=r,this.structureId=o,this.compositionId=s,this.structureCommandService=a,this.structureWarehouse=c,this.verticalFormationWarehouse=l,this.sourceWarehouse=u,this.compositionCommandInvoker=h,this.compositionWarehouse=f,this.compositionTemplateWarehouse=v,this.formationWarehouse=y,this.resizeDetector=D,this.structureInitialValuesReadyArchive=S,this.structureParent=k,this.styleModifier=new N0(this.elRef.nativeElement)}ngOnInit(){this.subscribeWithoutRender(this.verticalFormationWarehouse.onContainerHeight(this.structureId),e=>{this.setContainerHeight(e)}),this.subscribe(bu(Kc(this.structureInitialValuesReadyArchive.once(this.structureId)).pipe(Mue(()=>La(Kc(this.sourceWarehouse.onItems(this.structureId)),Kc(this.compositionTemplateWarehouse.onTemplateCols(this.compositionId)))))),e=>{this.source=e[0],this.columns=e[1]}),this.subscribeWithoutRender(this.compositionWarehouse.onResizeWidth(this.compositionId),e=>{this.autoResizeWidthEnabled=e})}ngAfterViewInit(){super.ngAfterViewInit(),this.structureParent&&this.subscribeWithoutRender(this.resizeDetector.on(this.structureParent.getElementRef().nativeElement).pipe(Tt(()=>this.autoResizeWidthEnabled),ge(e=>e.width),os()),e=>{this.recalculateContainer(e)}),this.subscribeWithoutRender(this.compositionWarehouse.onContainerWidth(this.compositionId),e=>{this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setWidth(e)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onEnabled(this.structureId),e=>{e?this.enableScrollObservation():this.disableScrollObservation()}),this.subscribeWithoutRender(this.structureWarehouse.on(this.structureId).pipe(Tt(e=>e.isVerticalScrollEnabled())),e=>{const i=e.getTopMargin(),r=e.getSourceHeight();this.setSourceHeight(i,r)}),this.subscribeWithoutRender(this.verticalFormationWarehouse.onScrollBarPosition(this.structureId),e=>{this.elRef.nativeElement.scrollTop=e})}ngOnDestroy(){super.ngOnDestroy(),this.resizeDetector.destroy(this.elRef.nativeElement)}getSelectorName(){return"gui-structure-container"}setContainerHeight(e){this.height=e,this.styleModifier.getHost().setHeight(e)}setSourceHeight(e,i){this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setPaddingTop(e),this.styleModifier.getElement(this.sourceCollectionRef.nativeElement).setHeight(i)}recalculateContainer(e){this.autoResizeWidthEnabled&&this.compositionCommandInvoker.setContainerWidth(e,this.compositionId)}enableScrollObservation(){this.ngZone.runOutsideAngular(()=>{Yy(this.elRef.nativeElement,"scroll").pipe(Wr(this.scrollObservation$)).subscribe(e=>{this.structureCommandService.setScrollPosition(e.target.scrollTop,this.structureId)})})}disableScrollObservation(){this.scrollObservation$.next(),this.scrollObservation$.complete()}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(xe),g(Xe),g(Si),g(Io),g(xu),g(Tu),g(hs),g(ia),g(Eo),g(Dm),g(Do),g(O4),g(Yh),g(cU,8))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-container",""]],viewQuery:function(i,r){if(1&i&&pe(Wge,5,F),2&i){let o;te(o=ne())&&(r.sourceCollectionRef=o.first)}},features:[O],attrs:qge,decls:3,vars:2,consts:[["sourceCollection",""],[1,"gui-h-full","gui-w-full","gui-absolute","gui-structure-container-element"],["gui-structure-content","",3,"columns","source"]],template:function(i,r){1&i&&(w(0,"div",1,0),L(2,"div",2),E()),2&i&&(_(2),C("columns",r.columns)("source",r.source))},dependencies:[QI],encapsulation:2,changeDetection:0})}return t})(),L4=(()=>{class t extends vn{bannerPanel$;constructor(e,i){super(e,i)}initObservables(){this.bannerPanel$=this.selectBannerPanelTemplate()}selectBannerPanelTemplate(){return this.onBannerPanelConfig().pipe(ge(e=>"function"==typeof e.template?e.template():e.template))}static \u0275fac=function(i){return new(i||t)(g(me),g(F))};static \u0275dir=N({type:t,features:[O]})}return t})(),B4=(()=>{class t extends L4{structureTitlePanelConfigArchive;constructor(e,i,r){super(i,r),this.structureTitlePanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureTitlePanelConfigArchive.on()}getSelectorName(){return"gui-structure-title-panel"}static \u0275fac=function(i){return new(i||t)(g(mm),g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-title-panel",""]],features:[O],attrs:Yge,decls:3,vars:6,consts:[[1,"gui-title-panel","gui-p-6","gui-border-b","gui-border-b-solid",3,"innerHTML"]],template:function(i,r){1&i&&(L(0,"div",0),je(1,"guiPush"),je(2,"guiSafe")),2&i&&C("innerHTML",sh(2,3,Ye(1,1,r.bannerPanel$),"html"),Gl)},dependencies:[Jh,UI],encapsulation:2,changeDetection:0})}return t})(),V4=(()=>{class t extends L4{structureFooterPanelConfigArchive;constructor(e,i,r){super(i,r),this.structureFooterPanelConfigArchive=e,this.initObservables()}onBannerPanelConfig(){return this.structureFooterPanelConfigArchive.on()}getSelectorName(){return"gui-structure-footer-panel"}static \u0275fac=function(i){return new(i||t)(g(bm),g(me),g(F))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-footer-panel",""]],features:[O],attrs:Kge,decls:3,vars:6,consts:[[1,"gui-footer-panel","gui-p-6","gui-border-t","gui-border-t-solid",3,"innerHTML"]],template:function(i,r){1&i&&(L(0,"div",0),je(1,"guiPush"),je(2,"guiSafe")),2&i&&C("innerHTML",sh(2,3,Ye(1,1,r.bannerPanel$),"html"),Gl)},dependencies:[Jh,UI],encapsulation:2,changeDetection:0})}return t})(),H4=(()=>{class t extends vn{structureDefinition;className;structureId=x(Xe);summariesWarehouse=x(_m);structureHeaderTopEnabledArchive=x(wI);structureHeaderBottomEnabledArchive=x(dm);searchWarehouse=x(sl);pagingWarehouse=x(Su);structureWarehouse=x(xu);structureInfoPanelArchive=x(zh);structureTitlePanelConfigArchive=x(mm);structureFooterPanelConfigArchive=x(bm);bottomSummariesPanelEnabled$=this.summariesWarehouse.onBottomEnabled(this.structureId);contentCssClass;headerCssClass;headerTopClasses;headerBottomClasses;topHeaderEnabled$=this.structureHeaderTopEnabledArchive.on();bottomHeaderEnabled$=this.structureHeaderBottomEnabledArchive.on();footerPanelEnabled$=this.selectFooterPanelEnabled();items$=this.selectItems();topSummariesPanelEnabled$=this.summariesWarehouse.onTopEnabled(this.structureId);searchEnabled$=this.searchWarehouse.onSearchEnabled(this.structureId);titlePanelEnabled$=this.selectTitlePanelEnabled();infoPanelEnabled$=this.selectInfoPanelEnabled();pagingModel$=this.pagingWarehouse.onPaging(this.structureId);constructor(e,i,r,o){super(e,i),this.structureDefinition=r,this.className=o,this.headerCssClass=`gui-${this.className}-header`,this.contentCssClass=`gui-${this.className}-content`,this.headerTopClasses=this.headerCssClass+" gui-header-top",this.headerBottomClasses=this.headerCssClass+" gui-header-bottom"}isColumnHeaderTopEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isColumnHeaderBottomEnabled(e){return this.structureDefinition.isHeaderEnabled()&&e}isPagingTopEnabled(e){return this.structureDefinition.getTopPaging().isEnabled()&&e.isPagerTop()}isPagingBottomEnabled(e){return this.structureDefinition.getBottomPaging().isEnabled()&&e.isPagerBottom()}getSelectorName(){return"gui-structure-blueprint"}selectTitlePanelEnabled(){return this.structureTitlePanelConfigArchive.on().pipe(ge(e=>e.enabled))}selectInfoPanelEnabled(){return this.structureInfoPanelArchive.on().pipe(ge(e=>e.isEnabled()))}selectFooterPanelEnabled(){return this.structureFooterPanelConfigArchive.on().pipe(ge(e=>e.enabled))}selectItems(){return this.structureWarehouse.on(this.structureId).pipe(ge(e=>e.getEntities()))}static \u0275fac=function(i){return new(i||t)(g(me),g(F),g(Cu),g(xI))};static \u0275cmp=V({type:t,selectors:[["div","gui-structure-blueprint",""]],features:[O],attrs:Zge,decls:15,vars:18,consts:[["gui-structure-title-panel","",4,"guiIf"],["gui-structure-top-panel","",4,"guiIf"],[4,"guiLet"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-top",3,"enabled"],["gui-structure-container","",3,"ngClass"],["gui-empty-source","",3,"items"],["gui-structure-summaries-panel","",1,"gui-structure-summaries-panel-bottom",3,"enabled"],["gui-structure-info-panel","",4,"guiIf"],["gui-structure-title-panel",""],["gui-structure-top-panel",""],["gui-paging","",3,"position",4,"ngIf"],["gui-paging","",3,"position"],["gui-structure-header","",3,"ngClass",4,"ngIf"],["gui-structure-header","",3,"ngClass"],["gui-structure-footer-panel","",4,"ngIf"],["gui-structure-footer-panel",""],["gui-structure-info-panel",""]],template:function(i,r){1&i&&(j(0,Qge,1,0,"div",0)(1,Xge,1,0,"div",1)(2,epe,2,1,"ng-container",2),L(3,"div",3),je(4,"guiPush"),j(5,npe,2,1,"ng-container",2),L(6,"div",4)(7,"div",5),je(8,"guiPush"),j(9,rpe,2,1,"ng-container",2),L(10,"div",6),je(11,"guiPush"),j(12,spe,2,1,"ng-container",2)(13,cpe,2,1,"ng-container",2)(14,lpe,1,0,"div",7)),2&i&&(C("guiIf",r.titlePanelEnabled$),_(),C("guiIf",r.searchEnabled$),_(),C("guiLet",r.pagingModel$),_(),C("enabled",Ye(4,12,r.topSummariesPanelEnabled$)),_(2),C("guiLet",r.topHeaderEnabled$),_(),C("ngClass",r.contentCssClass),_(),C("items",Ye(8,14,r.items$)),_(2),C("guiLet",r.bottomHeaderEnabled$),_(),C("enabled",Ye(11,16,r.bottomSummariesPanelEnabled$)),_(2),C("guiLet",r.footerPanelEnabled$),_(),C("guiLet",r.pagingModel$),_(),C("guiIf",r.infoPanelEnabled$))},dependencies:[Hr,ln,cr,SI,afe,yme,Ame,Ome,Fme,KI,XI,B4,V4,Jh],encapsulation:2,changeDetection:0})}return t})();function Bme(t){return new Xe("gui-grid-"+t.generateId())}function Vme(t){return new Si("gui-grid-"+t.generateId())}function Hme(t){return new Ni("gui-grid-"+t.generateId())}let JI=(()=>{class t extends efe{elementRef;detectorRef;injector;structureDefinition;structureWarehouse;compositionWarehouse;schemaStylesManager;schemaReadModelRootId;structureDetailViewService;loaderEnabled=!1;circleLoaderEnabled=!0;initialLoaderAnimation=!1;styleModifier;constructor(e,i,r,o,s,a,c,l,u,h,f,v,y,D,S,k,A,K,J,de,ve,ke,Ve,Nt,Pt,kn,An,Rn,Lo,Bo,be,Se,Le,lt,hn,Yi,zn,dr,Lt,Tr,sc){super(lt,Le,Se,e,i,Tr,D,r,o,c,l,s,a,h,f,v,y,S,k,K,J,de,Ve,Nt,Pt,Lo,Bo,be),this.elementRef=Le,this.detectorRef=lt,this.injector=hn,this.structureDefinition=Yi,this.structureWarehouse=zn,this.compositionWarehouse=dr,this.schemaStylesManager=Lt,this.schemaReadModelRootId=Tr,this.structureDetailViewService=sc,this.styleModifier=new N0(this.elementRef.nativeElement),D.create(this.structureId),f.create(this.compositionId),h.create(this.schemaId)}ngOnInit(){super.ngOnInit(),this.subscribe(this.structureWarehouse.on(this.structureId),e=>{this.loaderEnabled=e.getSource().isLoading(),this.circleLoaderEnabled=e.isLoaderVisible(),this.loaderEnabled&&!this.initialLoaderAnimation&&(this.initialLoaderAnimation=!0),this.detectorRef.detectChanges()}),this.structureDetailViewService.init(this.elementRef)}ngAfterViewInit(){this.structureInitialValuesReadyArchive.next(this.structureId,!0);let e=this.elementRef.nativeElement.offsetWidth;e>0?this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId):PH(0).pipe(this.takeUntil()).subscribe(()=>{e=this.elementRef.nativeElement.offsetWidth,e>0&&this.compositionCommandDispatcher.setContainerWidth(e,this.compositionId)}),this.schemaStylesManager.init(this.elementRef,this.schemaReadModelRootId),this.subscribeWithoutRender(this.compositionWarehouse.onWidth(this.compositionId),i=>{this.styleModifier.getHost().setWidth(i)})}isBorderEnabled(){return this.structureDefinition.isBorderEnabled()}getStructureId(){return this.structureId}getElementRef(){return this.elementRef}getSelectorName(){return"gui-structure"}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Si),g(To),g(nl),g(So),g(lm),g(us),g(ls),g(vm),g(xo),g(ia),g(qh),g(il),g(Io),g(C0),g(Mo),g(zh),g(E0),g(w0),g(um),g(gm),g(I0),g(ar),g(rl),g(dm),g(S0),g(mm),g(bm),g(ol),g(Ka),g(Yh),g(Wh),g(F),g(me),g(He),g(Cu),g(xu),g(Eo),g(hU),g(Ni),g(yU))};static \u0275cmp=V({type:t,selectors:[["gui-structure"]],hostVars:3,hostBindings:function(i,r){2&i&&(ji("id",r.structureId.toString()),ae("gui-structure-border",r.isBorderEnabled()))},features:[ye([{provide:Xe,useFactory:Bme,deps:[am]},{provide:Si,useFactory:Vme,deps:[am]},{provide:Ni,useFactory:Hme,deps:[am]},hU,fU,w0,C0,zh,E0,gm,k0.forComponent(),Za.forComponent(),wI,dm,S0,yU,mm,bm,{provide:Ype,useExisting:t},{provide:"Filter container token",useExisting:t}]),O],decls:3,vars:5,consts:[["gui-structure-blueprint",""],[1,"gui-loading",3,"ngClass"],[3,"diameter","primary",4,"ngIf"],[3,"diameter","primary"]],template:function(i,r){1&i&&(L(0,"div",0),w(1,"div",1),j(2,dpe,1,2,"gui-spinner",2),E()),2&i&&(_(),C("ngClass",Ql(2,upe,r.loaderEnabled,!r.loaderEnabled&&r.initialLoaderAnimation)),_(),C("ngIf",r.circleLoaderEnabled))},dependencies:[Hr,ln,Sue,H4],styles:['.gui-box-border{box-sizing:border-box}.gui-bg-transparent{background-color:transparent}.gui-border{border-width:1px}.gui-border-0{border-width:0}.gui-border-b{border-bottom-width:1px}.gui-border-t{border-top-width:1px}.gui-border-solid{border-style:solid}.gui-border-b-solid{border-bottom-style:solid}.gui-border-t-solid{border-top-style:solid}.gui-border-none{border-style:none}.gui-rounded{border-radius:4px}.gui-cursor-pointer{cursor:pointer}.gui-block{display:block}.gui-inline-block{display:inline-block}.gui-inline{display:inline}.gui-flex{display:-ms-flexbox;display:flex}.gui-hidden{display:none}.gui-display-grid{display:grid}.gui-flex-row{-ms-flex-direction:row;flex-direction:row}.gui-flex-row-reverse{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.gui-flex-col{-ms-flex-direction:column;flex-direction:column}.gui-flex-col-reverse{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.gui-justify-start{-ms-flex-pack:start;justify-content:flex-start}.gui-justify-end{-ms-flex-pack:end;justify-content:flex-end}.gui-justify-center{-ms-flex-pack:center;justify-content:center}.gui-justify-between{-ms-flex-pack:justify;justify-content:space-between}.gui-justify-around{-ms-flex-pack:distribute;justify-content:space-around}.gui-justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.gui-items-start{-ms-flex-align:start;align-items:flex-start}.gui-items-end{-ms-flex-align:end;align-items:flex-end}.gui-items-center{-ms-flex-align:center;align-items:center}.gui-items-between{-ms-flex-align:space-between;align-items:space-between}.gui-items-around{-ms-flex-align:space-around;align-items:space-around}.gui-items-evenly{-ms-flex-align:space-evenly;align-items:space-evenly}.gui-flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.gui-flex-wrap-reverse{-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse}.gui-flex-nowrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.gui-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.gui-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gui-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.gui-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.gui-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.gui-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.gui-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.gui-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.gui-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.gui-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.gui-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.gui-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.gui-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.gui-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.gui-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.gui-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.gui-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.gui-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.gui-grid-rows-gap-0{grid-row-gap:0}.gui-grid-rows-gap-1{grid-row-gap:1px}.gui-grid-rows-gap-2{grid-row-gap:2px}.gui-grid-rows-gap-3{grid-row-gap:3px}.gui-grid-rows-gap-4{grid-row-gap:4px}.gui-grid-rows-gap-5{grid-row-gap:6px}.gui-grid-rows-gap-6{grid-row-gap:8px}.gui-grid-rows-gap-7{grid-row-gap:10px}.gui-grid-rows-gap-8{grid-row-gap:12px}.gui-grid-rows-gap-10{grid-row-gap:16px}.gui-grid-rows-gap-13{grid-row-gap:22px}.gui-grid-rows-gap-23{grid-row-gap:42px}.gui-grid-cols-gap-0{grid-column-gap:0}.gui-grid-cols-gap-1{grid-column-gap:1px}.gui-grid-cols-gap-2{grid-column-gap:2px}.gui-grid-cols-gap-3{grid-column-gap:3px}.gui-grid-cols-gap-4{grid-column-gap:4px}.gui-grid-cols-gap-5{grid-column-gap:6px}.gui-grid-cols-gap-6{grid-column-gap:8px}.gui-grid-cols-gap-7{grid-column-gap:10px}.gui-grid-cols-gap-8{grid-column-gap:12px}.gui-grid-cols-gap-10{grid-column-gap:16px}.gui-grid-cols-gap-13{grid-column-gap:22px}.gui-grid-cols-gap-23{grid-column-gap:42px}.gui-h-full{height:100%}.gui-list-none{list-style-type:none}.gui-m-0{margin:0}.gui-mx-0{margin-left:0;margin-right:0}.gui-my-0{margin-bottom:0;margin-top:0}.-gui-m-0{margin:0}.-gui-mx-0{margin-left:0;margin-right:0}.-gui-my-0{margin-bottom:0;margin-top:0}.gui-m-1{margin:1px}.gui-mx-1{margin-left:1px;margin-right:1px}.gui-my-1{margin-bottom:1px;margin-top:1px}.-gui-m-1{margin:-1px}.-gui-mx-1{margin-left:-1px;margin-right:-1px}.-gui-my-1{margin-bottom:-1px;margin-top:-1px}.gui-m-2{margin:2px}.gui-mx-2{margin-left:2px;margin-right:2px}.gui-my-2{margin-bottom:2px;margin-top:2px}.-gui-m-2{margin:-2px}.-gui-mx-2{margin-left:-2px;margin-right:-2px}.-gui-my-2{margin-bottom:-2px;margin-top:-2px}.gui-m-3{margin:3px}.gui-mx-3{margin-left:3px;margin-right:3px}.gui-my-3{margin-bottom:3px;margin-top:3px}.-gui-m-3{margin:-3px}.-gui-mx-3{margin-left:-3px;margin-right:-3px}.-gui-my-3{margin-bottom:-3px;margin-top:-3px}.gui-m-4{margin:4px}.gui-mx-4{margin-left:4px;margin-right:4px}.gui-my-4{margin-bottom:4px;margin-top:4px}.-gui-m-4{margin:-4px}.-gui-mx-4{margin-left:-4px;margin-right:-4px}.-gui-my-4{margin-bottom:-4px;margin-top:-4px}.gui-m-5{margin:6px}.gui-mx-5{margin-left:6px;margin-right:6px}.gui-my-5{margin-bottom:6px;margin-top:6px}.-gui-m-5{margin:-6px}.-gui-mx-5{margin-left:-6px;margin-right:-6px}.-gui-my-5{margin-bottom:-6px;margin-top:-6px}.gui-m-6{margin:8px}.gui-mx-6{margin-left:8px;margin-right:8px}.gui-my-6{margin-bottom:8px;margin-top:8px}.-gui-m-6{margin:-8px}.-gui-mx-6{margin-left:-8px;margin-right:-8px}.-gui-my-6{margin-bottom:-8px;margin-top:-8px}.gui-m-7{margin:10px}.gui-mx-7{margin-left:10px;margin-right:10px}.gui-my-7{margin-bottom:10px;margin-top:10px}.-gui-m-7{margin:-10px}.-gui-mx-7{margin-left:-10px;margin-right:-10px}.-gui-my-7{margin-bottom:-10px;margin-top:-10px}.gui-m-8{margin:12px}.gui-mx-8{margin-left:12px;margin-right:12px}.gui-my-8{margin-bottom:12px;margin-top:12px}.-gui-m-8{margin:-12px}.-gui-mx-8{margin-left:-12px;margin-right:-12px}.-gui-my-8{margin-bottom:-12px;margin-top:-12px}.gui-m-10{margin:16px}.gui-mx-10{margin-left:16px;margin-right:16px}.gui-my-10{margin-bottom:16px;margin-top:16px}.-gui-m-10{margin:-16px}.-gui-mx-10{margin-left:-16px;margin-right:-16px}.-gui-my-10{margin-bottom:-16px;margin-top:-16px}.gui-m-13{margin:22px}.gui-mx-13{margin-left:22px;margin-right:22px}.gui-my-13{margin-bottom:22px;margin-top:22px}.-gui-m-13{margin:-22px}.-gui-mx-13{margin-left:-22px;margin-right:-22px}.-gui-my-13{margin-bottom:-22px;margin-top:-22px}.gui-m-23{margin:42px}.gui-mx-23{margin-left:42px;margin-right:42px}.gui-my-23{margin-bottom:42px;margin-top:42px}.-gui-m-23{margin:-42px}.-gui-mx-23{margin-left:-42px;margin-right:-42px}.-gui-my-23{margin-bottom:-42px;margin-top:-42px}.gui-mb-4{margin-bottom:4px}.gui-mb-6{margin-bottom:8px}.gui-mb-8{margin-bottom:12px}.gui-mb-10{margin-bottom:16px}.gui-mb-18{margin-bottom:32px}.gui-mr-0{margin-right:0}.gui-mr-5{margin-right:6px}.gui-mr-auto{margin-right:auto}.gui-ml-auto{margin-left:auto}.gui-ml-6{margin-left:8px}.gui-mt-0{margin-top:0}.gui-mt-4{margin-top:4px}.gui-mt-6{margin-top:8px}.gui-mt-10{margin-top:16px}.gui-mt-14{margin-top:24px}.gui-overflow-hidden{overflow:hidden}.gui-overflow-y-scroll{overflow-y:scroll}.gui-overflow-x-hidden{overflow-x:hidden}.gui-overflow-auto{overflow:auto}.gui-p-0{padding:0}.gui-px-0{padding-left:0;padding-right:0}.gui-py-0{padding-bottom:0;padding-top:0}.gui-p-1{padding:1px}.gui-px-1{padding-left:1px;padding-right:1px}.gui-py-1{padding-bottom:1px;padding-top:1px}.gui-p-2{padding:2px}.gui-px-2{padding-left:2px;padding-right:2px}.gui-py-2{padding-bottom:2px;padding-top:2px}.gui-p-3{padding:3px}.gui-px-3{padding-left:3px;padding-right:3px}.gui-py-3{padding-bottom:3px;padding-top:3px}.gui-p-4{padding:4px}.gui-px-4{padding-left:4px;padding-right:4px}.gui-py-4{padding-bottom:4px;padding-top:4px}.gui-p-5{padding:6px}.gui-px-5{padding-left:6px;padding-right:6px}.gui-py-5{padding-bottom:6px;padding-top:6px}.gui-p-6{padding:8px}.gui-px-6{padding-left:8px;padding-right:8px}.gui-py-6{padding-bottom:8px;padding-top:8px}.gui-p-7{padding:10px}.gui-px-7{padding-left:10px;padding-right:10px}.gui-py-7{padding-bottom:10px;padding-top:10px}.gui-p-8{padding:12px}.gui-px-8{padding-left:12px;padding-right:12px}.gui-py-8{padding-bottom:12px;padding-top:12px}.gui-p-10{padding:16px}.gui-px-10{padding-left:16px;padding-right:16px}.gui-py-10{padding-bottom:16px;padding-top:16px}.gui-p-13{padding:22px}.gui-px-13{padding-left:22px;padding-right:22px}.gui-py-13{padding-bottom:22px;padding-top:22px}.gui-p-23{padding:42px}.gui-px-23{padding-left:42px;padding-right:42px}.gui-py-23{padding-bottom:42px;padding-top:42px}.gui-pr-10{padding-right:16px}.gui-pl-9{padding-right:10px}.gui-pb-6{padding-bottom:8px}.gui-pb-12{padding-bottom:20px}.gui-pl-21{padding-left:38px}.gui-pt-4{padding-top:4px}.gui-pt-6{padding-top:8px}.gui-pt-10{padding-top:16px}.gui-pt-12{padding-top:20px}.gui-pt-14{padding-top:24px}.gui-static{position:static}.gui-fixed{position:fixed}.gui-relative{position:relative}.gui-absolute{position:absolute}.gui-text-xxs{font-size:11px}.gui-text-xs{font-size:12px}.gui-text-sm{font-size:13px}.gui-text-base{font-size:14px}.gui-text-lg{font-size:16px}.gui-text-xl{font-size:18px}.gui-text-2xl{font-size:20px}.gui-text-3xl{font-size:22px}.gui-leading-4{line-height:16px}.gui-leading-6{line-height:24px}.gui-font-thin{font-weight:100}.gui-font-extralight{font-weight:200}.gui-font-light{font-weight:300}.gui-font-normal{font-weight:400}.gui-font-medium{font-weight:500}.gui-font-semibold{font-weight:600}.gui-font-bold{font-weight:700}.gui-font-extrabold{font-weight:800}.gui-font-black{font-weight:900}.gui-not-italic{font-style:normal}.gui-whitespace-nowrap{white-space:nowrap}.gui-overflow-ellipsis{text-overflow:ellipsis}.gui-no-underline{text-decoration:none}.gui-text-center{text-align:center}.gui-w-full{width:100%}.gui-w-96{width:384px}.gui-w-3\\/5{width:60%}.gui-structure *,.gui-structure *:after,.gui-structure *:before{box-sizing:border-box}.gui-structure input{font-size:13px;outline:0}.gui-bold{font-weight:700}.gui-italic{font-style:italic}.gui-bar-view{width:100%}.gui-align-right{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;text-align:right;width:100%}.gui-align-left{text-align:left;width:100%}.gui-align-center{-ms-flex-pack:center;justify-content:center;text-align:center;width:100%}.gui-icon{cursor:pointer}.gui-icon svg{fill:#aaa;stroke:#aaa;transition:stroke .3s ease-in-out}.gui-icon svg:hover{fill:#464646!important;stroke:#464646!important}.gui-view-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gui-percentage-bar{background:#deebff;border-radius:4px;box-shadow:inset 1px 1px 2px #ccc;color:#0747a6;height:22px;padding:4px;position:relative;text-align:center;width:100%}.gui-percentage-bar .gui-percentage{background:#8abcfc;border-radius:4px;height:22px;left:0;position:absolute;top:0}.gui-percentage-bar .gui-percentage-view{color:#031d44;position:relative;width:100%}.gui-clear-search-icon{cursor:pointer;height:16px;position:absolute;right:8px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%);width:16px}.gui-clear-search-icon:before,.gui-clear-search-icon:after{background-color:#aaa;border-radius:8px;content:" ";height:16px;left:7px;position:absolute;width:2px}.gui-clear-search-icon:before{-ms-transform:rotate(45deg);transform:rotate(45deg)}.gui-clear-search-icon:after{-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.gui-clear-search-icon:hover:before,.gui-clear-search-icon:hover:after{background-color:#464646}\n',".gui-structure,.gui-structure *{border-color:#d6d6d6;font-size:14px}.gui-structure input{color:#333;font-family:Arial}.gui-header{background:#f2f3f4;border-bottom:1px solid;border-color:inherit;height:36px}.gui-header .gui-header-cell.gui-header-sortable{cursor:pointer}.gui-header .gui-header-cell.gui-header-sortable:hover{background:#e6e7e8}.gui-header .gui-header-cell .gui-header-menu-icon{display:none}.gui-header .gui-header-cell:hover .gui-header-menu{cursor:pointer}.gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:block}.gui-header .gui-header-cell:last-of-type{border-right:0}.gui-header .gui-header-cell .gui-header-title{display:-ms-flexbox;display:flex;line-height:1.4em}.gui-header .gui-header-cell .gui-header-menu{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:16px;padding:16px;position:relative;right:0;width:16px}.gui-header .gui-header-cell .gui-header-menu .gui-header-menu-icon-wrapper .gui-header-menu-icon{display:none;height:16px;width:16px}.gui-header-bottom .gui-header{border-bottom:0;border-color:inherit;border-top:1px solid}.gui-structure{background:#fff;border-color:#d6d6d6;box-sizing:border-box;color:#333;display:block;font-family:Arial;font-size:14px;position:relative}.gui-structure *{box-sizing:border-box}.gui-structure .gui-structure-header{display:block;height:100%;width:100%}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header{height:32px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell{padding:4px}.gui-structure .gui-structure-header .gui-structure-header-filters.gui-header .gui-header-cell input{box-sizing:border-box;height:100%;padding:2px;position:relative;width:100%;border-color:#d6d6d6;border-style:solid;border-width:1px;font-size:13px}.gui-structure-container{display:block;height:100%;overflow:auto;overflow-x:hidden;position:relative;width:100%}.gui-structure-container .gui-structure-container-element{height:100%;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content{height:100%;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid transparent;position:absolute;width:100%}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:last-child{border-bottom:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#ecedee}.gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#d0e8fb}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell{border-right:1px solid transparent;box-sizing:border-box;line-height:1em;overflow:hidden;padding:0;white-space:nowrap}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-view span{line-height:1.4em}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-button{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-cell-boolean{-ms-flex-pack:center;justify-content:center}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox{line-height:24px;position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-checkbox input{position:relative}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-chip{line-height:1em;margin:0;padding:4px 8px}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-badge{padding:0}.gui-structure-container .gui-structure-container-element .gui-content .gui-row .gui-cell .gui-input{background:transparent;font-size:14px;padding:0;border-radius:0;border-style:none}.gui-structure-container .gui-cell{display:inline-block}.gui-structure-container .gui-cell:last-child .gui-cell-view{padding-right:20px}.gui-structure-container .gui-cell>span{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;padding:0 8px;width:100%}.gui-structure-container .gui-cell .gui-cell-edit-mode{border:2px solid #2185d0;height:100%;padding:6px}.gui-structure-container .gui-cell .gui-cell-edit-mode .gui-boolean-edit{margin-left:calc(50% - 11px)}.gui-structure-container .gui-cell .gui-cell-edit-mode input:focus{box-shadow:none;outline:none}.gui-vertical-grid .gui-structure-summaries-cell,.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell{border-right:1px solid;border-right-color:inherit}.gui-vertical-grid .gui-structure-container-element .gui-content .gui-row .gui-cell:last-of-type,.gui-vertical-grid .gui-structure-header .gui-header .gui-header-cell:last-of-type{border-right:0}.gui-vertical-grid .gui-row-checkbox{border-right:1px solid!important;border-right-color:inherit!important}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row{border-bottom:1px solid;border-bottom-color:inherit}.gui-horizontal-grid .gui-structure-container-element .gui-content .gui-row:last-of-type{border-bottom:0}.gui-rows-even .gui-row.even,.gui-rows-odd .gui-row.odd{background:#f7f8f9}.gui-structure-info-panel{-ms-flex-align:center;align-items:center;background:#f2f3f4;box-sizing:border-box;display:-ms-flexbox;display:flex;height:36px;-ms-flex-pack:justify;justify-content:space-between;padding:0 6px;width:100%;border-top-color:inherit;border-top-style:solid;border-top-width:1px}.gui-structure-info-panel p{margin:0}.gui-structure-info-panel p b{font-weight:700}.gui-structure-info-panel div button{background:#ccc;color:#fff;cursor:pointer;font-family:Arial;font-weight:700;height:16px;line-height:14px;padding:0;width:16px;border-color:transparent;border-radius:50%;border-style:solid;border-width:1px}.gui-structure-info-panel div button:focus{box-shadow:0 0 4px #ccc;outline:none}.gui-structure-border{border:1px solid;border-color:#d6d6d6}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.gui-loading{-ms-flex-line-pack:center;align-content:center;animation-duration:.2s;background:rgba(255,255,255,.8);border:1px solid;border-color:inherit;display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;left:0;opacity:0;position:absolute;top:0;visibility:hidden;width:100%}.gui-loading .gui-spinner{-ms-flex-item-align:center;align-self:center}.gui-loading.gui-loader-hidden{animation-name:fadeOut;opacity:0;visibility:visible;z-index:-1}.gui-loading.gui-loader-visible{animation-name:fadeIn;opacity:1;visibility:visible;z-index:1}.gui-text-highlight{background:#fff799;padding:0!important}.gui-title-panel{border-bottom-color:#d6d6d6}.gui-footer-panel{border-top-color:#d6d6d6}.gui-structure-schema-manager-icon{margin-right:16px}.gui-structure-schema-manager-icon svg{height:18px;margin-bottom:-1px;width:18px}.gui-row-radio{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-radio .gui-radio-button{height:24px;margin:0;padding:0;width:24px}.gui-row-checkbox{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox!important;display:flex!important;-ms-flex-pack:center;justify-content:center;padding:0 12px!important;width:48px!important}.gui-row-checkbox .gui-checkbox{height:24px;margin:0;padding:0;width:24px}.gui-select-all .gui-checkbox .gui-checkmark{top:0}.gui-structure-cell-edit-boolean{height:100%}.gui-column-highlighted{background:#fffddd}.gui-structure-column-manager>div:hover{background:#ecedee}.gui-structure-column-manager label{margin-bottom:0}.gui-structure-ordered-list li:hover{background:#ecedee}\n",".gui-structure-column-menu-icon svg{height:16px;width:16px}.gui-structure-column-menu-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}.gui-structure-column-menu-arrow-icon{display:inline-block}.gui-structure-column-menu-arrow-icon svg{height:10px;width:12px}.gui-structure-column-menu-arrow-icon .gui-structure-column-menu-sort-icon svg{height:16px}.gui-structure-column-menu-arrow-icon .cls-1{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}\n",".gui-summaries-value{font-weight:700}.gui-structure-summaries-panel{background:#f2f3f4}.gui-structure-summaries-panel.gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top:1px solid #d6d6d6}.gui-structure-summaries-panel.gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom:1px solid #d6d6d6}.gui-structure-summaries-panel .gui-structure-summaries-cell{font-size:14px;padding-left:16px;padding-right:16px}.gui-structure-summaries-panel .gui-structure-summaries-cell:last-child{padding-right:20px}.gui-structure-summaries-panel .gui-structure-summaries-value{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;line-height:1em;overflow:hidden;padding:8px 0}.gui-structure-summaries-panel .gui-structure-summaries-value div .gui-math-symbol{position:relative;top:-1px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean,.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-mean span:nth-child(1){left:1px;position:absolute;top:-15px}.gui-structure-summaries-panel .gui-structure-summaries-value .gui-median span:nth-child(1){left:1px;position:absolute;top:-8px}\n",".gui-structure-column-manager-icon svg{height:16px;width:16px}.gui-structure-column-manager-icon .cls-1,.gui-structure-column-manager-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-column-manager-icon .cls-2{stroke-width:1.5px}.gui-structure-info-icon svg{height:16px;width:16px}.gui-structure-info-icon .cls-1{stroke-width:0}.gui-structure-info-icon .cls-2{fill:none;stroke-linecap:round;stroke-linejoin:round}.gui-structure-info-panel div,.gui-structure-info-panel div button{display:inline-block}.gui-structure-info-panel .gui-right-section .gui-structure-column-manager-icon{margin-right:16px;position:relative}.gui-structure-info-panel .gui-right-section .gui-structure-info-icon{margin-right:4px;position:relative}.gui-structure-info-modal .gui-quote{color:#575757}.gui-structure-info-modal p{color:#333}.gui-structure-info-modal a{color:#2185d0}.gui-structure-info-modal a:hover{color:#59a9e5;text-decoration:underline}\n","@media (max-width: 500px){.gui-paging>*{padding-left:4px}.gui-paging .gui-paging-stats{padding-left:4px}}\n",".gui-header{display:-ms-flexbox;display:flex}.gui-header .gui-header-cell{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.gui-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.gui-content .gui-structure-cell-container,.gui-content .gui-row{display:-ms-flexbox;display:flex}.gui-content .gui-structure-cell-container .gui-cell,.gui-content .gui-row .gui-cell{display:inline-block}.gui-content .gui-structure-row-details{background:#80cbc4;display:block;height:200px;position:absolute;-ms-transform:translateY(0);transform:translateY(0);width:100%}\n",".gui-inline-dialog-header-menu.gui-inline-dialog-wrapper .gui-inline-dialog-content{background:transparent;box-shadow:none}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-item-active{font-weight:700}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#fff}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#333}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#2185d0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 3px 7px #ccc;box-sizing:content-box;padding:0;width:225px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#333;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.left{padding:12px 16px 12px 12px;width:48%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item.right{padding:12px 10px;width:52%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container{border:none;border-radius:0}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover .gui-dropdown-arrow{opacity:1}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu{width:125px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item{background:#fff;color:#333;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item:hover .gui-sort-title svg line{stroke:#464646}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg{margin-top:3px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-menu .gui-item .gui-sort-title svg line{stroke:#aaa}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#333;cursor:pointer;display:block;padding:8px 12px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#ecedee}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#333;margin-left:12px;padding:8px 12px 8px 32px;width:169px}.gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox label{display:inline-block;width:inherit}\n",".gui-schema-manager-dialog .gui-schema-manager{min-width:180px}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select,.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox{color:#333}.gui-schema-manager-dialog .gui-schema-manager .gui-structure-schema-manager-select:nth-last-child(1),.gui-schema-manager-dialog .gui-schema-manager .gui-checkbox:nth-last-child(1){margin-bottom:0}.gui-dialog-title{border-bottom:solid 1px #d6d6d6;font-size:18px;font-weight:700;margin-left:-16px;margin-right:-16px;padding-bottom:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gui-structure-schema-manager-select{padding:8px 0 24px}.gui-structure-dialog-column-manager ol{max-height:400px;min-width:250px}\n",".gui-cell .gui-checkbox{display:block}.gui-cell .gui-chip{margin:0;padding:2px 8px}.gui-cell .gui-input{display:block;font-size:11px;padding:2px 4px;width:100%}.gui-cell .gui-button{padding:2px 8px}.gui-cell .gui-cell-number{display:block;width:100%}.gui-cell .gui-cell-boolean{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;text-align:center;width:100%}.gui-cell .gui-string-edit{width:100%}\n",".gui-fabric{border-color:#d6d6d6;font-family:Arial;font-size:14px}.gui-fabric .gui-header-cell,.gui-fabric .gui-structure-header-columns,.gui-fabric .gui-structure-top-panel,.gui-fabric .gui-structure-info-panel,.gui-fabric .gui-paging{height:42px}\n",".gui-material{border-color:#0000001f;font-family:Arial;font-size:14px}.gui-material *{border-color:#0000001f}.gui-material.gui-structure{border:0;border-radius:0;box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0000001f,0 1px 5px #0003}.gui-material.gui-structure,.gui-material .gui-header{font-family:Arial}.gui-material .gui-header-cell,.gui-material .gui-structure-header-columns{height:56px}.gui-material .gui-header .gui-header-cell.gui-header-sortable:hover{background:transparent}.gui-material .gui-header-cell{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-material .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-material .gui-structure-header .gui-header{background:transparent;color:#464646;font-weight:700}.gui-material .gui-structure-header .gui-header .gui-header-cell{border-color:inherit}.gui-material .gui-cell .gui-button,.gui-material .gui-cell .gui-badge{padding:0}.gui-material .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-material .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-material .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-material .gui-structure-summaries-panel{background:#fff}.gui-material gui-structure-top-panel,.gui-material .gui-structure-info-panel,.gui-material .gui-paging{height:52px;padding-left:16px;padding-right:16px}.gui-material .gui-structure-info-panel{background:#fff;border-radius:0}.gui-material gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-material gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-material .gui-search-bar form input{border:0;outline:none}\n",".gui-dark{border-color:#575757;border-radius:2px;color:#f0f0f0;font-family:Arial;font-size:14px}.gui-dark *{border-color:#575757;color:#f0f0f0}.gui-dark.gui-structure{border-radius:2px}.gui-dark .gui-header-cell,.gui-dark .gui-structure-header-columns{background:#333;height:46px}.gui-dark .gui-structure-border{border:none;box-shadow:5px 5px 10px 2px #1f1f1f}.gui-dark .gui-header-cell{border-bottom:1px solid;border-color:inherit;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-dark .gui-structure-header .gui-header{border-bottom-color:#666;color:#bdbdbd}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover{background:#525252}.gui-dark .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-list{background:#383838}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-menu .gui-tab-menu-item.gui-active{color:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-tab-content{box-shadow:0 1px 2px #525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab .gui-structure-column-manager ol li:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-column-move .gui-header-menu-column-move-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu{border-color:#666}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container .gui-dropdown-menu .gui-item:hover svg line{stroke:#ce93d8}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-dropdown-container:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item{background:#383838;color:#f0f0f0;display:-ms-flexbox;display:flex}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-tab-item-dropdown .gui-header-menu-dropdown.gui-dropdown .gui-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item{color:#f0f0f0}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-header-menu-item:hover{background:#525252}.gui-dark .gui-inline-dialog-header-menu .gui-header-menu-tab .gui-checkbox{color:#f0f0f0}.gui-dark .gui-structure-column-manager>div:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#525252}.gui-dark .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-dark.gui-rows-odd .gui-row.odd,.gui-dark.gui-rows-even .gui-row.even{background:#4f4f4f}.gui-dark .gui-horizontal-grid .gui-structure-container-element .gui-row .gui-cell{border-bottom-color:#666}.gui-dark .gui-paging.gui-paging-bottom{border-top-color:#666}.gui-dark .gui-paging.gui-paging-top{border-bottom-color:#666}.gui-dark ::-webkit-scrollbar{width:15px}.gui-dark ::-webkit-scrollbar-track{background:#616161}.gui-dark ::-webkit-scrollbar-thumb{background:#424242}.gui-dark ::-webkit-scrollbar-thumb:hover{background:#212121}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging,.gui-dark .gui-structure-container-element,.gui-dark .gui-row{background:#444}.gui-dark .gui-structure-top-panel,.gui-dark .gui-structure-info-panel,.gui-dark .gui-paging{height:42px;padding-left:16px;padding-right:16px}.gui-dark .gui-structure-summaries-cell{background:#383838;color:#f0f0f0}.gui-dark .gui-structure-summaries-panel-bottom .gui-structure-summaries-cell{border-top-color:#666}.gui-dark .gui-structure-summaries-panel-top .gui-structure-summaries-cell{border-bottom-color:#666}.gui-dark .gui-structure-info-panel{background:#383838;border-top-color:#666}.gui-dark .gui-structure-info-panel div{color:#f0f0f0}.gui-dark .gui-structure-info-panel div button{background:#616161}.gui-dark .gui-structure-info-panel p,.gui-dark .gui-structure-info-modal p{color:#f0f0f0}.gui-dark gui-paging-alternative-navigator .gui-button{background:transparent;color:#f0f0f0;margin:0 4px;padding:0}.gui-dark gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-dark gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#f0f0f0;opacity:.4}.gui-dark gui-paging-alternative-navigator gui-paging-alternative-pages .gui-paging-active-page{box-shadow:0 1px #f0f0f0;color:#f0f0f0}.gui-dark .gui-search-bar form{background:#444}.gui-dark .gui-search-bar input{background:#444;border:0;color:#f0f0f0;cursor:pointer}.gui-dark .gui-search-bar:hover .gui-search-icon-svg line,.gui-dark .gui-search-bar:hover .gui-search-icon-svg circle{stroke:#878787}.gui-dark .gui-icon{cursor:pointer}.gui-dark .gui-icon svg{stroke:#aaa;transition:stroke .3s ease-in-out}.gui-dark .gui-icon svg:hover{stroke:#e6e6e6!important}.gui-dark .gui-empty-source div{background:#383838}.gui-dark .gui-dialog-wrapper .gui-dialog-content .gui-schema-manager-dialog .gui-dialog-title{color:#f0f0f0}.gui-dark .gui-title-panel,.gui-dark .gui-footer-panel{background:#383838}.gui-dark .gui-structure-ordered-list li:hover{background:#525252}\n",".gui-light{border-color:#f0f0f0;font-family:Arial;font-size:14px}.gui-light *{border-color:#f0f0f0}.gui-light.gui-structure-border{border:0}.gui-light.gui-structure,.gui-light .gui-header{background:#fff;color:#333;font-family:Arial}.gui-light .gui-header-cell,.gui-light .gui-structure-header-columns{height:56px}.gui-light.gui-structure-border{border-color:#f0f0f0 transparent}.gui-light .gui-header-cell,.gui-light .gui-structure-container-element .gui-structure-cell>span{padding-left:16px;padding-right:16px}.gui-light .gui-structure-header .gui-header{color:#333;font-weight:700}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover{background:#f3f9ff}.gui-light .gui-structure-header .gui-header .gui-header-cell:hover .gui-header-menu .gui-header-menu-icon-wrapper{background-color:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:#f3f9ff}.gui-light .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:rgba(124,185,246,.3215686275)}.gui-light.gui-rows-odd .gui-row.odd,.gui-light.gui-rows-even .gui-row.even{background:#f7f7f7}.gui-light gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-light gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-light gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#333;opacity:.4}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging{height:56px;padding-left:16px;padding-right:16px}.gui-light .gui-structure-top-panel,.gui-light .gui-structure-info-panel,.gui-light .gui-paging,.gui-light .gui-structure-summaries-panel{background:#fff}.gui-light .gui-search-bar form input{border:0;outline:none}\n",".gui-structure.gui-generic{border-color:#2224261a;font-family:Arial;font-size:14px}.gui-structure.gui-generic *{border-color:#2224261a}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-header-columns{height:46px}.gui-structure.gui-generic .gui-header .gui-header-cell.gui-header-sortable:hover{background:rgba(0,0,0,.04);transition:.15s all}.gui-structure.gui-generic .gui-header-cell,.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell>span{padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-container-element .gui-structure-cell:last-child>span{padding-right:20px}.gui-structure.gui-generic .gui-structure-header.gui-header-bottom .gui-header{border-color:inherit;border-style:solid;border-width:2px 0 0}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row:hover{background:rgba(0,0,0,.04)}.gui-structure.gui-generic .gui-structure-container .gui-structure-container-element .gui-content .gui-row.selected{background:#e6f7ff}.gui-structure.gui-generic .gui-structure-header .gui-header{background:#f9fafb;border-width:0 0 2px;color:#464646;font-weight:700}.gui-structure.gui-generic .gui-rows-odd .gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-cell .gui-button,.gui-structure.gui-generic .gui-cell .gui-badge{padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button{background:transparent;color:#333;margin:0 4px;padding:0}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:hover{background:transparent}.gui-structure.gui-generic .gui-paging-alternative-navigator .gui-button:disabled{background:transparent;color:#ccc;opacity:.4}.gui-structure.gui-generic .gui-structure-summaries-panel{background:#f9fafb}.gui-structure.gui-generic .gui-structure-top-panel,.gui-structure.gui-generic .gui-structure-info-panel,.gui-structure.gui-generic .gui-paging{height:46px;padding-left:12px;padding-right:12px}.gui-structure.gui-generic .gui-structure-info-panel{background:#f9fafb;border-radius:0}.gui-structure.gui-generic .gui-structure-top-panel{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-right:0}.gui-structure.gui-generic .gui-structure-top-panel .gui-search-bar form input{border:0;outline:0}.gui-structure.gui-generic .gui-rows-odd gui-row.odd,.gui-structure.gui-generic .gui-rows-even .gui-row.even{background:#f9fafb}.gui-structure.gui-generic .gui-row:hover{background:#f9fafb;transition:.15s all}\n"],encapsulation:2,changeDetection:0})}return t})(),U4=(()=>{class t extends mi{structureHeaderTopEnabledArchive;structureHeaderBottomEnabledArchive;columnHeaderTop;columnHeaderBottom;constructor(e,i){super(),this.structureHeaderTopEnabledArchive=e,this.structureHeaderBottomEnabledArchive=i}ngOnChanges(e){this.isDefined("columnHeaderTop",e)&&this.structureHeaderTopEnabledArchive.next(this.columnHeaderTop),this.isDefined("columnHeaderBottom",e)&&this.structureHeaderBottomEnabledArchive.next(this.columnHeaderBottom)}static \u0275fac=function(i){return new(i||t)(g(wI),g(dm))};static \u0275dir=N({type:t,selectors:[["gui-structure","columnHeaderTop","","columnHeaderBottom",""],["gui-structure","columnHeaderTop",""],["gui-structure","columnHeaderBottom",""]],inputs:{columnHeaderTop:"columnHeaderTop",columnHeaderBottom:"columnHeaderBottom"},features:[O,we]})}return t})(),Ume=(()=>{class t extends mi{structureId;compositionId;pagingCommandInvoker;pagingEventRepository;paging;pageChanged=new X;pageSizeChanged=new X;constructor(e,i,r,o){super(),this.structureId=e,this.compositionId=i,this.pagingCommandInvoker=r,this.pagingEventRepository=o}ngOnChanges(e){if(this.isDefined("paging",e)){let i;i="boolean"==typeof this.paging?{enabled:this.paging}:this.paging,this.pagingCommandInvoker.setPaging(i,this.compositionId)}}ngOnInit(){this.subscribeAndEmit(this.pagingEventRepository.onPageChange(this.structureId.toReadModelRootId()),this.pageChanged),this.subscribeAndEmit(this.pagingEventRepository.onPageSizeChange(this.structureId.toReadModelRootId()),this.pageSizeChanged)}onPageChange(e){this.pageChanged.emit(e)}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Si),g(To),g(nl))};static \u0275dir=N({type:t,inputs:{paging:"paging"},outputs:{pageChanged:"pageChanged",pageSizeChanged:"pageSizeChanged"},features:[O,we]})}return t})(),j4=(()=>{class t extends Ume{pagingDisplayModeArchive;constructor(e,i,r,o,s){super(e,i,r,o),this.pagingDisplayModeArchive=s}ngOnChanges(e){if(this.isDefined("paging",e)){let i;"boolean"==typeof this.paging?i={enabled:this.paging}:(i=this.paging,void 0!==this.paging.displayMode&&this.pagingDisplayModeArchive.next(this.paging.displayMode)),this.pagingCommandInvoker.setPaging(i,this.structureId)}}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Si),g(To),g(nl),g(I0))};static \u0275dir=N({type:t,selectors:[["gui-structure","paging",""]],features:[O,we]})}return t})(),jme=(()=>{class t extends mi{structureId;searchEventRepository;searchCommandInvoker;searching;searchPhraseChanged=new X;constructor(e,i,r){super(),this.structureId=e,this.searchEventRepository=i,this.searchCommandInvoker=r}ngOnChanges(e){if(this.isDefined("searching",e)){let i;i="boolean"==typeof this.searching?{enabled:this.searching}:this.searching,this.searchCommandInvoker.setSearchingConfig(i,this.structureId)}}ngOnInit(){this.subscribeAndEmit(this.searchEventRepository.onSearchPhrase(this.structureId.toReadModelRootId()),this.searchPhraseChanged)}static \u0275fac=function(i){return new(i||t)(g(Xe),g(rl),g(ls))};static \u0275dir=N({type:t,inputs:{searching:"searching"},outputs:{searchPhraseChanged:"searchPhraseChanged"},features:[O,we]})}return t})(),G4=(()=>{class t extends jme{constructor(e,i,r){super(e,i,r)}static \u0275fac=function(i){return new(i||t)(g(Xe),g(rl),g(ls))};static \u0275dir=N({type:t,selectors:[["gui-structure","searching",""]],features:[O]})}return t})(),Gme=(()=>{class t extends mi{structureId;formationEventRepository;formationPublisher;rowSelection;itemsSelected=new X;selectedRows=new X;constructor(e,i,r){super(),this.structureId=e,this.formationEventRepository=i,this.formationPublisher=r}ngOnChanges(e){this.isDefined("rowSelection",e)&&(this.rowSelection.isEnabledDefined()&&this.formationPublisher.setSelection(this.rowSelection.isEnabled(),this.structureId),this.rowSelection.isTypeDefined()&&this.formationPublisher.changeType(this.rowSelection.getType(),this.structureId),this.rowSelection.isModeDefined()&&this.formationPublisher.changeMode(this.rowSelection.getMode(),this.structureId),this.rowSelection.isMatcherDefined()&&this.formationPublisher.setMatcher(this.rowSelection.getMatcher(),this.structureId),this.rowSelection.isSelectedRowIndexesDefined()&&this.formationPublisher.selectByIndex(this.rowSelection.getSelectedRowIndexes(),this.structureId),this.rowSelection.isSelectedRowIdsDefined()&&this.formationPublisher.selectByIds(this.rowSelection.getSelectedRowIds(),this.structureId),this.rowSelection.isCustomSelectConfig()&&this.formationPublisher.setCustomSelection(this.rowSelection.getCustomSelectConfig(),this.structureId))}ngOnInit(){this.subscribeAndEmit(this.formationEventRepository.onItemSelected(this.structureId),this.selectedRows),this.subscribeAndEmit(this.selectItemsSelected(),this.itemsSelected)}selectItemsSelected(){return this.formationEventRepository.onItemSelected(this.structureId).pipe(ge(e=>e.map(i=>i.getItem())))}static \u0275fac=function(i){return new(i||t)(g(Xe),g(il),g(ar))};static \u0275dir=N({type:t,inputs:{rowSelection:"rowSelection"},outputs:{itemsSelected:"itemsSelected",selectedRows:"selectedRows"},features:[O,we]})}return t})(),$4=(()=>{class t extends Gme{selectionGate;constructor(e,i,r){super(e,i,r)}static \u0275fac=function(i){return new(i||t)(g(Xe),g(il),g(ar))};static \u0275dir=N({type:t,selectors:[["gui-structure","rowSelection",""],["gui-structure","selectionGate",""]],inputs:{selectionGate:"selectionGate"},features:[O]})}return t})(),z4=(()=>{class t extends mi{translationService;localization;constructor(e){super(),this.translationService=e}ngOnChanges(e){this.isDefined("localization",e)&&(this.localization.translationResolver&&this.translationService.setResolver(this.localization.translationResolver),this.localization.translation&&this.translationService.changeTranslation(this.localization.translation))}static \u0275fac=function(i){return new(i||t)(g(Ka))};static \u0275dir=N({type:t,selectors:[["gui-structure","localization",""]],inputs:{localization:"localization"},features:[O,we]})}return t})(),W4=(()=>{class t extends mi{structureTitlePanelConfigArchive;structureFooterPanelConfigArchive;titlePanel;footerPanel;constructor(e,i){super(),this.structureTitlePanelConfigArchive=e,this.structureFooterPanelConfigArchive=i}ngOnChanges(e){this.isDefined("titlePanel",e)&&this.structureTitlePanelConfigArchive.next(this.titlePanel),this.isDefined("footerPanel",e)&&this.structureFooterPanelConfigArchive.next(this.footerPanel)}static \u0275fac=function(i){return new(i||t)(g(mm),g(bm))};static \u0275dir=N({type:t,selectors:[["gui-structure","titlePanel","","footerPanel",""]],inputs:{titlePanel:"titlePanel",footerPanel:"footerPanel"},features:[O,we]})}return t})(),q4=(()=>{class t extends mi{structureDetailViewConfigArchive;rowDetail;constructor(e){super(),this.structureDetailViewConfigArchive=e}ngOnChanges(e){this.isDefined("rowDetail",e)&&this.structureDetailViewConfigArchive.next(this.rowDetail)}static \u0275fac=function(i){return new(i||t)(g(S0))};static \u0275dir=N({type:t,selectors:[["gui-structure","rowDetail",""]],inputs:{rowDetail:"rowDetail"},features:[O,we]})}return t})(),Y4=(()=>{class t extends mi{structureColumnMenuConfigArchive;columnMenu;constructor(e){super(),this.structureColumnMenuConfigArchive=e}ngOnChanges(e){this.isDefined("columnMenu",e)&&this.structureColumnMenuConfigArchive.nextConfig(this.columnMenu)}static \u0275fac=function(i){return new(i||t)(g(gm))};static \u0275dir=N({type:t,selectors:[["gui-structure","columnMenu",""]],inputs:{columnMenu:"columnMenu"},features:[O,we]})}return t})(),K4=(()=>{class t extends mi{structureId;summariesCommandInvoker;summaries;constructor(e,i){super(),this.structureId=e,this.summariesCommandInvoker=i}ngOnChanges(e){jt(e.summaries,()=>{this.summariesCommandInvoker.setConfig(this.summaries,this.structureId)})}static \u0275fac=function(i){return new(i||t)(g(Xe),g($h))};static \u0275dir=N({type:t,selectors:[["gui-structure","summaries",""]],inputs:{summaries:"summaries"},features:[O,we]})}return t})(),Z4=(()=>{class t extends mi{structureInfoPanelConfigService;infoPanel;constructor(e){super(),this.structureInfoPanelConfigService=e}ngOnChanges(e){this.isDefined("infoPanel",e)&&("boolean"==typeof this.infoPanel&&(this.infoPanel={enabled:this.infoPanel}),this.structureInfoPanelConfigService.set(this.infoPanel))}static \u0275fac=function(i){return new(i||t)(g(E0))};static \u0275dir=N({type:t,selectors:[["gui-structure","infoPanel",""]],inputs:{infoPanel:"infoPanel"},features:[O,we]})}return t})(),Q4=(()=>{class t extends mi{schemaReadModelRootId;schemaPublisher;rowClass;constructor(e,i){super(),this.schemaReadModelRootId=e,this.schemaPublisher=i}ngOnChanges(e){this.isDefined("rowClass",e)&&this.schemaPublisher.setRowClass(this.rowClass,this.schemaReadModelRootId)}static \u0275fac=function(i){return new(i||t)(g(Ni),g(xo))};static \u0275dir=N({type:t,selectors:[["gui-structure","rowClass",""]],inputs:{rowClass:"rowClass"},features:[O,we]})}return t})(),X4=(()=>{class t extends mi{schemaReadModelRootId;schemaPublisher;rowStyle;constructor(e,i){super(),this.schemaReadModelRootId=e,this.schemaPublisher=i}ngOnChanges(e){this.isDefined("rowStyle",e)&&this.schemaPublisher.setRowStyle(this.rowStyle,this.schemaReadModelRootId)}static \u0275fac=function(i){return new(i||t)(g(Ni),g(xo))};static \u0275dir=N({type:t,selectors:[["gui-structure","rowStyle",""]],inputs:{rowStyle:"rowStyle"},features:[O,we]})}return t})(),J4=(()=>{class t extends mi{schemaId;schemaCommandInvoker;schemaEventRepository;rowColoring;rowColoringChanged=new X;constructor(e,i,r){super(),this.schemaId=e,this.schemaCommandInvoker=i,this.schemaEventRepository=r}ngOnChanges(e){this.isDefined("rowColoring",e)&&this.schemaCommandInvoker.setRowColoring(this.rowColoring,this.schemaId)}ngOnInit(){this.subscribeAndEmit(this.schemaEventRepository.onRowColoring(this.schemaId),this.rowColoringChanged)}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(g(Ni),g(xo),g(ol))};static \u0275dir=N({type:t,selectors:[["gui-structure","rowColoring",""]],inputs:{rowColoring:"rowColoring"},outputs:{rowColoringChanged:"rowColoringChanged"},features:[O,we]})}return t})(),ej=(()=>{class t extends mi{schemaId;schemaCommandInvoker;schemaEventRepository;verticalGrid;horizontalGrid;horizontalGridChanged=new X;verticalGridChanged=new X;constructor(e,i,r){super(),this.schemaId=e,this.schemaCommandInvoker=i,this.schemaEventRepository=r,this.subscribeAndEmit(this.schemaEventRepository.onHorizontalGridChanged(this.schemaId),this.horizontalGridChanged),this.subscribeAndEmit(this.schemaEventRepository.onVerticalGridChanged(this.schemaId),this.verticalGridChanged)}ngOnChanges(e){this.isDefined("verticalGrid",e)&&this.schemaCommandInvoker.setVerticalGrid(this.verticalGrid,this.schemaId),this.isDefined("horizontalGrid",e)&&this.schemaCommandInvoker.setHorizontalGrid(this.horizontalGrid,this.schemaId)}static \u0275fac=function(i){return new(i||t)(g(Ni),g(xo),g(ol))};static \u0275dir=N({type:t,selectors:[["gui-structure","verticalGrid","","horizontalGrid",""]],inputs:{verticalGrid:"verticalGrid",horizontalGrid:"horizontalGrid"},outputs:{horizontalGridChanged:"horizontalGridChanged",verticalGridChanged:"verticalGridChanged"},features:[O,we]})}return t})(),tj=(()=>{class t extends mi{structureId;sortingCommandInvoker;sorting;constructor(e,i){super(),this.structureId=e,this.sortingCommandInvoker=i}ngOnChanges(e){jt(e.sorting,()=>{let i;i="boolean"==typeof this.sorting?{enabled:this.sorting}:this.sorting,this.sortingCommandInvoker.setSortingConfig(i,this.structureId)})}static \u0275fac=function(i){return new(i||t)(g(Xe),g(us))};static \u0275dir=N({type:t,selectors:[["gui-structure","sorting",""]],inputs:{sorting:"sorting"},features:[O,we]})}return t})(),nj=(()=>{class t extends mi{structureId;sourceCommandInvoker;loading;constructor(e,i){super(),this.structureId=e,this.sourceCommandInvoker=i}ngOnChanges(e){this.isDefined("loading",e)&&this.sourceCommandInvoker.setLoading(this.loading,this.structureId)}ngOnInit(){}static \u0275fac=function(i){return new(i||t)(g(Xe),g(So))};static \u0275dir=N({type:t,selectors:[["gui-structure","loading",""]],inputs:{loading:"loading"},features:[O,we]})}return t})(),ij=(()=>{class t extends mi{structureId;structureCommandInvoker;filtering;constructor(e,i){super(),this.structureId=e,this.structureCommandInvoker=i}ngOnChanges(e){jt(e.filtering,()=>{let i;i="boolean"==typeof this.filtering?{enabled:this.filtering}:this.filtering,this.structureCommandInvoker.setFilterConfig(i,this.structureId)})}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Io))};static \u0275dir=N({type:t,selectors:[["gui-structure","filtering",""]],inputs:{filtering:"filtering"},features:[O,we]})}return t})(),rj=(()=>{class t extends mi{structureId;structureCommandInvoker;quickFilters;constructor(e,i){super(),this.structureId=e,this.structureCommandInvoker=i}ngOnChanges(e){jt(e.quickFilters,()=>{let i;i="boolean"==typeof this.quickFilters?{enabled:this.quickFilters}:this.quickFilters,this.structureCommandInvoker.setQuickFiltersConfig(i,this.structureId)})}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Io))};static \u0275dir=N({type:t,selectors:[["gui-structure","quickFilters",""]],inputs:{quickFilters:"quickFilters"},features:[O,we]})}return t})(),oj=(()=>{class t extends mi{structureId;structureCommandInvoker;virtualScroll;constructor(e,i){super(),this.structureId=e,this.structureCommandInvoker=i}ngOnChanges(e){this.isDefined("virtualScroll",e)&&(this.virtualScroll?this.structureCommandInvoker.enableVirtualScroll(this.structureId):this.structureCommandInvoker.disableVirtualScroll(this.structureId))}static \u0275fac=function(i){return new(i||t)(g(Xe),g(Io))};static \u0275dir=N({type:t,selectors:[["gui-structure","virtualScroll",""]],inputs:{virtualScroll:"virtualScroll"},features:[O,we]})}return t})(),la=(()=>{class t extends Hpe{platformId;elementRef;changeDetectorRef;gridRegister;structureIdGenerator;formationCommandDispatcher;formationWarehouse;compositionCommandInvoker;compositionWarehouse;filterIntegration;sourceCommandDispatcher;searchCommandInvoker;schemaCommandInvoker;structureCommandDispatcher;summariesCommandInvoker;sortingCommandInvoker;pagingCommandInvoker;static GUI_GRID_ID="gui-grid-id";structureRef;gridId;api;localGridId;gridThemeCommandInvoker;classModifier;attributeModifier;constructor(e,i,r,o,s,a,c,l,u,h,f,v,y,D,S,k,A){super(),this.platformId=e,this.elementRef=i,this.changeDetectorRef=r,this.gridRegister=o,this.structureIdGenerator=s,this.formationCommandDispatcher=a,this.formationWarehouse=c,this.compositionCommandInvoker=l,this.compositionWarehouse=u,this.filterIntegration=h,this.sourceCommandDispatcher=f,this.searchCommandInvoker=v,this.schemaCommandInvoker=y,this.structureCommandDispatcher=D,this.summariesCommandInvoker=S,this.sortingCommandInvoker=k,this.pagingCommandInvoker=A,this.gridThemeCommandInvoker=new jpe(this.schemaCommandInvoker,this.gridThemeConverter,this.gridRowColoringConverter),this.classModifier=new om(this.elementRef.nativeElement),this.attributeModifier=new Gpe(this.elementRef.nativeElement)}ngOnInit(){this.classModifier.getHost().add("gui-grid"),this.initApi();let e=this.gridId;void 0===e&&(e="gui-grid-"+this.structureIdGenerator.generateId()),this.localGridId=e,this.exposeGridId(),this.gridRegister.register(e,this,this.structureRef.getStructureId()),fo(this.platformId)&&(window.getGuiGrid=i=>{if(this.gridRegister.getValues(i))return this.api})}ngOnDestroy(){this.gridRegister.unregister(this.localGridId)}getElementRef(){return this.elementRef}detectChanges(){this.changeDetectorRef.detectChanges()}exposeGridId(){this.attributeModifier.getHost().setAttribute(t.GUI_GRID_ID,this.localGridId)}initApi(){this.api=new Upe(this.structureRef.structureId,this.structureRef.compositionId,this.structureRef.schemaReadModelRootId,this.formationCommandDispatcher,this.formationWarehouse,this.compositionCommandInvoker,this.compositionWarehouse,this.filterIntegration,this.sourceCommandDispatcher,this.searchCommandInvoker,this.gridThemeCommandInvoker,this.structureCommandDispatcher,this.summariesCommandInvoker,this.sortingCommandInvoker,this.pagingCommandInvoker).provide()}static \u0275fac=function(i){return new(i||t)(g(Kn),g(F),g(me),g(dU),g(am),g(ar),g(Do),g(ia),g(Eo),g(y0),g(So),g(ls),g(xo),g(Io),g($h),g(us),g(To))};static \u0275cmp=V({type:t,selectors:[["gui-grid"]],viewQuery:function(i,r){if(1&i&&pe(hpe,7),2&i){let o;te(o=ne())&&(r.structureRef=o.first)}},inputs:{gridId:"gridId"},features:[ye([{provide:Cu,useValue:zpe},{provide:cU,useExisting:t}]),O],decls:2,vars:31,consts:[["structure",""],[3,"cellEditCanceled","cellEditEntered","cellEditSubmitted","columnsChanged","containerWidthChanged","horizontalGridChanged","itemsSelected","pageChanged","pageSizeChanged","rowColoringChanged","searchPhraseChanged","selectedRows","sourceEdited","themeChanged","verticalGridChanged","autoResizeWidth","cellEditing","columnHeaderBottom","columnHeaderTop","columnMenu","columns","editMode","filtering","footerPanel","horizontalGrid","infoPanel","loading","localization","maxHeight","paging","quickFilters","rowClass","rowColoring","rowDetail","rowHeight","rowSelection","rowStyle","searching","sorting","source","summaries","theme","titlePanel","verticalGrid","virtualScroll","width"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-structure",1,0),B("cellEditCanceled",function(){return $(o),z(r.onCellEditCancel())})("cellEditEntered",function(){return $(o),z(r.onCellEditEnter())})("cellEditSubmitted",function(){return $(o),z(r.onCellEditSubmit())})("columnsChanged",function(){return $(o),z(r.onColumnsChange())})("containerWidthChanged",function(a){return $(o),z(r.onContainerWidthChange(a))})("horizontalGridChanged",function(a){return $(o),z(r.onHorizontalGrid(a))})("itemsSelected",function(a){return $(o),z(r.onItemSelect(a))})("pageChanged",function(a){return $(o),z(r.onPageChange(a))})("pageSizeChanged",function(a){return $(o),z(r.onPageSizeChange(a))})("rowColoringChanged",function(a){return $(o),z(r.onRowColoring(a))})("searchPhraseChanged",function(a){return $(o),z(r.onSearchPhrase(a))})("selectedRows",function(a){return $(o),z(r.onRowsSelect(a))})("sourceEdited",function(a){return $(o),z(r.onSourceEdit(a))})("themeChanged",function(a){return $(o),z(r.onTheme(a))})("verticalGridChanged",function(a){return $(o),z(r.onVerticalGrid(a))}),E()}2&i&&C("autoResizeWidth",r.autoResizeWidth)("cellEditing",r.cellEditingConfig)("columnHeaderBottom",r.columnHeaderBottom)("columnHeaderTop",r.columnHeaderTop)("columnMenu",r.columnMenuConfig)("columns",r.columnsConfig)("editMode",r.editMode)("filtering",r.filtering)("footerPanel",r.footerPanel)("horizontalGrid",r.horizontalGrid)("infoPanel",r.infoPanel)("loading",r.loading)("localization",r.localization)("maxHeight",r.maxHeight)("paging",r.paging)("quickFilters",r.quickFilters)("rowClass",r.rowClass)("rowColoring",r.rowColoringConfig)("rowDetail",r.rowDetail)("rowHeight",r.rowHeight)("rowSelection",r.rowSelectionConfig)("rowStyle",r.rowStyle)("searching",r.searching)("sorting",r.sorting)("source",r.source)("summaries",r.summaries)("theme",r.themeConfig)("titlePanel",r.titlePanel)("verticalGrid",r.verticalGrid)("virtualScroll",r.virtualScroll)("width",r.width)},dependencies:[JI,U4,j4,G4,$4,z4,W4,q4,Y4,K4,Z4,Q4,X4,J4,ej,tj,nj,ij,rj,oj],styles:[".gui-grid{display:block;width:100%}\n"],encapsulation:2})}return t})();const ku=[Jy,as,e0,Qc,_u,n0,r0,c0,l0,s0,a0,d0,h0,Gh,rm,g0,Xc,o0,nm,Gh];let $me=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({})}return t})(),eT=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[v4],imports:[Oe,ku,Ao,Za]})}return t})(),sj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[_4],imports:[Oe,ku,Za,Ao]})}return t})();class xm{constructor(){}}class zme extends at{fieldId;externalFilterId;filterValue;constructor(n,e,i,r){super(n,"ToggleFilterCommand"),this.fieldId=e,this.externalFilterId=i,this.filterValue=r}getFieldId(){return this.fieldId}getExternalFilterId(){return this.externalFilterId}getFilterValue(){return this.filterValue}}class tT extends mt{constructor(n){super(n,null,"FilterToggledEvent")}}class Wme{domainEventPublisher=Y.resolve(xt);forCommand(){return zme}handle(n,e){const i=e.getFieldId(),r=e.getExternalFilterId(),o=e.getFilterValue();n.toggleFilter(i,r,o)}publish(n,e){this.domainEventPublisher.publish(new tT(e.getAggregateId()))}}class aj extends at{fieldId;filterTypeId;value;constructor(n,e,i,r){super(n,"AddFilterCommand"),this.fieldId=e,this.filterTypeId=i,this.value=r}getFieldId(){return this.fieldId}getFilterTypeId(){return this.filterTypeId}getValue(){return this.value}}class qme{forCommand(){return aj}handle(n,e){const i=e.getFieldId(),r=e.getFilterTypeId(),o=e.getValue();n.addFilter(i,r,o)}}class cj extends at{constructor(n){super(n,"RemoveAllFiltersCommand")}}class Yme{forCommand(){return cj}handle(n,e){n.removeAllFilters()}}class lj extends at{filterId;constructor(n,e){super(n,"RemoveFilterCommand"),this.filterId=e}getFilterId(){return this.filterId}}class Kme{forCommand(){return lj}handle(n,e){const i=e.getFilterId();n.removeFilter(i)}}class uj extends at{filterConfig;constructor(n,e){super(n,"SetConfigFilterCommand"),this.filterConfig=e}getConfig(){return this.filterConfig}}class dj extends mt{enabled;constructor(n,e){super(n,e,"ConfigFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}}class Zme{domainEventPublisher=Y.resolve(xt);forCommand(){return uj}handle(n,e){const i=e.getConfig();n.setFilterConfig(i)}publish(n,e){const i=e.getConfig();this.domainEventPublisher.publish(new dj(e.getAggregateId(),i.enabled))}}class hj extends at{quickFiltersConfig;constructor(n,e){super(n,"SetConfigQuickFilterCommand"),this.quickFiltersConfig=e}getConfig(){return this.quickFiltersConfig}}class gj extends mt{enabled;constructor(n,e){super(n,e,"ConfigQuickFilterSetEvent"),this.enabled=e}getEnabled(){return this.enabled}}class Qme{domainEventPublisher=Y.resolve(xt);forCommand(){return hj}handle(n,e){const i=e.getConfig();n.setQuickFiltersConfig(i)}publish(n,e){const i=e.getAggregateId(),r=e.getConfig();this.domainEventPublisher.publish(new gj(i,r.enabled))}}class Xme extends qy{filterId;fieldId;filterTypeId;filterValue;constructor(n,e,i,r){super(n),this.filterId=n,this.fieldId=e,this.filterTypeId=i,this.filterValue=r}getFilterId(){return this.filterId}getFilterTypeId(){return this.filterTypeId}getFieldId(){return this.fieldId}getFilterValue(){return this.filterValue}}class Jme{filteringEnabled=!1;searchEnabled=!1;quickFiltersEnabled=!1;constructor(n=!1,e=!1,i=!1){this.filteringEnabled=n,this.searchEnabled=e,this.quickFiltersEnabled=i}isFilteringEnabled(){return this.filteringEnabled}isQuickFilteringEnabled(){return this.quickFiltersEnabled}isSearchingEnabled(){return this.searchEnabled}setFilterConfig(n){n&&null!=n.enabled&&(this.filteringEnabled=n.enabled)}setSearchingConfig(n){n&&null!=n.enabled&&(this.searchEnabled=n.enabled)}setQuickFiltersConfig(n){n&&null!=n.enabled&&(this.quickFiltersEnabled=n.enabled)}}class ebe extends Ph{constructor(n){super(n)}toString(){return this.getId().toString()}filterMany(n,e,i){return 0===n.length?n:n.filter(r=>this.filterEntity(r,e,i))}filterOne(n,e,i){return this.filterEntity(n,e,i)}}class tbe extends ebe{constructor(n){super(n)}getName(){return"Contains"}filterEntity(n,e,i){return!!e.getValue(n).includes(i)}}class nbe extends Ph{id;constructor(n){super(n),this.id=n}toString(){return this.id}}let ibe=(()=>{class t{static index=0;generate(){return t.index+=1,new nbe(`${t.index}`)}}return t})();class rbe{filterTypeId;name;constructor(n,e){this.filterTypeId=n,this.name=e}getId(){return this.filterTypeId}getName(){return this.name}}class obe{fieldIds=[];map=new WeakMap;filterTypeMap=new WeakMap;dataTypeToFilterType=new Map;filterTypeIdGenerator=new ibe;constructor(n){this.assignFilterTypes(),this.addFields(n)}getFilterType(n){return this.filterTypeMap.get(n)}getFieldIdsToFilterTypes(){const n=new Map;for(const e of this.fieldIds){const r=this.map.get(e).map(o=>new rbe(o.getId(),o.getName()));n.set(e.toString(),r)}return n}addFields(n){for(const e of n)this.addField(e)}addField(n){const e=n.getId(),i=n.getDataType(),r=this.dataTypeToFilterType.get(i);this.fieldIds.push(e),this.map.set(e,Array.from(r))}assignFilterTypes(){this.assignFilterTypesForDataTypeUnknown(),this.assignFilterTypesForDataTypeNumber(),this.assignFilterTypesForDataTypeString(),this.assignFilterTypesForDataTypeBoolean(),this.assignFilterTypesForDataTypeDate(),this.assignFilterTypesForDataTypeCustom()}assignFilterTypesForDataTypeUnknown(){this.dataTypeToFilterType.set(Ie.UNKNOWN,[])}assignFilterTypesForDataTypeNumber(){this.dataTypeToFilterType.set(Ie.NUMBER,[])}assignFilterTypesForDataTypeString(){const n=[new tbe(this.generateId())];this.dataTypeToFilterType.set(Ie.STRING,n),this.addFilterTypes(n)}assignFilterTypesForDataTypeBoolean(){this.dataTypeToFilterType.set(Ie.BOOLEAN,[])}assignFilterTypesForDataTypeDate(){this.dataTypeToFilterType.set(Ie.DATE,[])}assignFilterTypesForDataTypeCustom(){this.dataTypeToFilterType.set(Ie.CUSTOM,[])}generateId(){return this.filterTypeIdGenerator.generate()}addFilterTypes(n){for(const e of n)this.filterTypeMap.set(e.getId(),e)}}class sbe extends Ph{constructor(n){super(n)}toString(){return this.getId()}}let abe=(()=>{class t{static index=0;static generateId(){return new sbe(`${t.index}`)}}return t})();class cbe{filterId;fieldName;filterTypeName;value;constructor(n,e,i,r){this.filterId=n,this.fieldName=e,this.filterTypeName=i,this.value=r}getText(){return`${this.fieldName}: ${this.filterTypeName}: ${this.value}`}getFilterId(){return this.filterId}getFieldName(){return this.fieldName}getFilterTypeName(){return this.filterTypeName}getValue(){return this.value}}class lbe{filterSettings=new Jme;filters=new Map;activeFilters=[];filterTypeManager;constructor(){}getSettings(){return this.filterSettings}getAll(){return Array.from(this.filters).map(n=>n[1])}getAllActiveFilters(n){return this.activeFilters.map(e=>new cbe(e.getFilterId(),n.get(e.getFieldId().toString()).getName(),this.filterTypeManager.getFilterType(e.getFilterTypeId()).getName(),e.getFilterValue()))}getFilterTypes(){return this.filterTypeManager.getFieldIdsToFilterTypes()}assignFilterTypes(n){this.filterTypeManager=new obe(n)}add(n,e,i){const r=new Xme(abe.generateId(),n,e,i);this.activeFilters.push(r)}filter(n,e){let i=Array.from(n);for(const r of this.activeFilters){const o=r.getFilterTypeId(),s=this.getFilterType(o),a=r.getFilterValue();i=s.filterMany(i,e.get(r.getFieldId().toString()),a)}return i}removeAll(){this.activeFilters.length=0}remove(n){this.activeFilters=this.activeFilters.filter(e=>e.getFilterId()!==n)}getFilterType(n){return this.filterTypeManager.getFilterType(n)}}class pj{create(n=!1){return new lbe}}let nT=(()=>{class t extends dn{static default=!1;constructor(){super(t.default)}}return t})(),ube=(()=>class t{quickFilterEnabledArchive;constructor(e){this.quickFilterEnabledArchive=e}static services=[nT];forEvent(){return gj}handle(e){e.ofMessageType("ConfigQuickFilterSetEvent")&&this.quickFilterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}})(),iT=(()=>{class t extends dn{static default=!1;constructor(){super(t.default)}}return t})(),dbe=(()=>class t{filterEnabledArchive;constructor(e){this.filterEnabledArchive=e}static services=[iT];forEvent(){return dj}handle(e){e.ofMessageType("ConfigFilterSetEvent")&&this.filterEnabledArchive.next(e.getAggregateId(),e.getEnabled())}})();class fj{map;constructor(n){this.map=n}getFilterTypes(n){const e=this.map.get(n.toString());return void 0===e?[]:e}}class Im extends dn{static default=new fj(new Map);constructor(){super(Im.default)}}class mj extends mt{map;constructor(n,e){super(n,e,"FilterTypesInitedEvent"),this.map=e}getMap(){return this.map}}let rT=(()=>{class t extends dn{static default=[];constructor(){super(t.default)}}return t})();const oT=fH();oT.provide(rT),oT.provide(Im);const Y0=oT;class hbe{filterTypeArchive=Y0.resolve(Im);forEvent(){return mj}handle(n){if(n.ofMessageType("FilterTypesInitedEvent")){const e=n.getMap();this.filterTypeArchive.next(n.getAggregateId(),new fj(e))}}}class ng extends mt{filters;constructor(n,e){super(n,e,"ActiveFiltersSetEvent"),this.filters=e}getFilters(){return this.filters}}class gbe{activeFilterRepository=Y0.resolve(rT);forEvent(){return ng}handle(n){if(n.ofMessageType("ActiveFiltersSetEvent")){const e=n.getFilters();this.activeFilterRepository.next(n.getAggregateId(),e)}}}class bj extends mt{map;constructor(n,e){super(n,e,"UniqueFilterCalculatedEvent"),this.map=e}getUniqueValues(){return this.map}}class vj{map=new Map;allSelected=new Map;allDisabled=new Map;constructor(n){this.map=n,this.calculateSelection()}getValues(n){return this.map.get(n.toString())}areAllSelected(n){return this.allSelected.get(n.toString())}areAllDisabled(n){return this.allDisabled.get(n.toString())}isSelectAllChecked(n){return this.areAllSelected(n)}isIndeterminate(n){return!(this.areAllSelected(n)||this.areAllDisabled(n))}calculateSelection(){for(const n of Array.from(this.map.keys())){const e=this.map.get(n);this.allSelected.set(n,!e.some(i=>!i.isEnabled())),this.allDisabled.set(n,!e.some(i=>i.isEnabled()))}}}class Tm extends dn{static default=new vj(new Map);constructor(){super(Tm.default)}}class pbe{id;value;displayValue;enabled;constructor(n,e,i){this.id=n,this.value=e,this.enabled=i}getId(){return this.id}getValue(){return this.value}geDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}}let fbe=(()=>class t{uniqueValuesRepository;constructor(e){this.uniqueValuesRepository=e}static services=[Tm];forEvent(){return bj}handle(e){if(e.ofMessageType("UniqueFilterCalculatedEvent")){const i=new Map;e.getUniqueValues().forEach((o,s)=>{const a=o.map(c=>new pbe(c.getId(),c.getDisplayValue(),c.isEnabled()));i.set(s,a)});const r=new vj(i);this.uniqueValuesRepository.next(e.getAggregateId(),r)}}})();class mbe{forEvent(){return D0}handle(n){}}class _j extends at{fieldId;constructor(n,e){super(n,"UnselectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}}class bbe{forCommand(){return _j}handle(n,e){const i=e.getFieldId();n.unselectAllUniqueFilter(i)}}class yj extends at{fieldId;uniqueValueId;constructor(n,e,i){super(n,"UnselectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=i}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}}class vbe{forCommand(){return yj}handle(n,e){const i=e.getFieldId(),r=e.getUniqueValueId();n.unselectUniqueFilter(i,r)}}class wj extends at{fieldId;constructor(n,e){super(n,"SelectAllUniqueFilterCommand"),this.fieldId=e}getFieldId(){return this.fieldId}}class _be{forCommand(){return wj}handle(n,e){const i=e.getFieldId();n.selectAllUniqueFilter(i)}}class Cj extends at{fieldId;uniqueValueId;constructor(n,e,i){super(n,"SelectUniqueFilterCommand"),this.fieldId=e,this.uniqueValueId=i}getFieldId(){return this.fieldId}getUniqueValueId(){return this.uniqueValueId}}class ybe{forCommand(){return Cj}handle(n,e){const i=e.getFieldId(),r=e.getUniqueValueId();n.selectUniqueFilter(i,r)}}class wbe{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(pj)}registerCommandHandlers(){return[Zme,Qme,Wme,qme,Yme,Kme,ybe,_be,vbe,bbe]}registerDomainEventHandler(){return[ube,dbe,hbe,gbe,fbe,mbe]}registerMultiDomainEventHandler(){return[]}}let Cbe=(()=>class t extends tl{filterEnabledArchive;structureQuickFilterRepository;uniqueValuesArchive;activeFilterArchive=Y0.resolve(rT);filterTypeArchive=Y0.resolve(Im);constructor(e,i,r){super(),this.filterEnabledArchive=e,this.structureQuickFilterRepository=i,this.uniqueValuesArchive=r}static services=[iT,nT,Tm];onFilteringEnabled(e){return this.filterEnabledArchive.on(e)}onQuickFiltersEnabled(e){return this.structureQuickFilterRepository.on(e)}onFilterTypes(e){return this.filterTypeArchive.on(e)}findFilterTypes(e){return this.filterTypeArchive.find(e)}onFilterTypesForFieldId(e,i){return this.onFilterTypes(i).pipe(ge(r=>r.getFilterTypes(e)))}onActiveFilters(e){return this.activeFilterArchive.on(e)}findFilters(e){return this.activeFilterArchive.find(e)}onUniqueValues(e){return this.uniqueValuesArchive.on(e)}onceFilterTypeId(e,i,r){return Fh(this.onFilterTypes(r).pipe(ge(o=>{const a=o.getFilterTypes(e).find(c=>c.getName()===i);return void 0===a?Xt.empty():Xt.of(a.getId())})))}})(),Dbe=(()=>class t extends ra{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[sr];setConfig(e,i){this.commandDispatcher.dispatch(new uj(i,e))}add(e,i,r,o){this.commandDispatcher.dispatch(new aj(o,e,i,r))}removeAll(e){this.commandDispatcher.dispatch(new cj(e))}remove(e,i){this.commandDispatcher.dispatch(new lj(i,e))}selectAllUniqueFilter(e,i){this.commandDispatcher.dispatch(new wj(i,e))}unselectAllUniqueFilter(e,i){this.commandDispatcher.dispatch(new _j(i,e))}selectUniqueFilter(e,i,r){this.commandDispatcher.dispatch(new Cj(r,e,i))}unselectUniqueFilter(e,i,r){this.commandDispatcher.dispatch(new yj(r,e,i))}})();class Ebe{registerProviders(n){n.provide(ra,Dbe),n.provide(tl,Cbe),n.provide(Tm),n.provide(iT),n.provide(nT),n.provide(y0)}}function xbe(){return Y.resolve(ra)}function Ibe(){return Y.resolve(tl)}function Tbe(){return Y.resolve(y0)}!function Sbe(){new qr(new Ebe,new wbe).init()}();let sT=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:ra,useFactory:xbe},{provide:tl,useFactory:Ibe},{provide:y0,useFactory:Tbe}]})}return t})(),Dj=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,ku,Ao,sT]})}return t})(),aT=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,yu,ph,Ao,sT,Dj]})}return t})(),Mbe=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[w4],imports:[Oe,aT,Dj,as]})}return t})(),kbe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[yI],imports:[Oe,$me,yu,eT,sj,Mbe,Za,Ao]})}return t})();class Nbe extends Qh{warn(n){console.warn(n)}error(n){console.error(n)}}function Fbe(){return Y.resolve(Qh)}!function Obe(){Y.provide(Qh,Nbe)}();let Pbe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:Qh,useFactory:Fbe}]})}return t})();class cT{id;source;position;version=0;constructor(n,e,i,r=0){this.source=n,this.position=e,this.version=r,this.id=i||pu.generate()}getSourceItem(){return this.source}getUiId(){return"gui"+this.id.replace(/-/g,"")}getId(){return this.id}getVersion(){return this.version}getPosition(){return this.position}isSelected(){return!1}isEven(){return this.position%2==0}isOdd(){return this.position%2==1}equals(n){return this.id===n.id&&this.getVersion()===n.getVersion()}equalsById(n){return this.id===n}}class K0 extends qy{sourceItem;version;position;constructor(n,e,i,r=0){super(n),this.sourceItem=e,this.position=i,this.version=r}getSourceItem(){return this.sourceItem}getVersion(){return this.version}getPosition(){return this.position}bumpVersion(){this.version+=1}setPosition(n){this.position=n}clone(){const n={...this.sourceItem};return new K0(this.getId(),n,this.version)}}class Lbe{create(n){return Array.isArray(n)?this.createItems(n):this.createItem(n)}createItems(n){return n.map(e=>this.createItem(e))}createItem(n){return n instanceof K0?new cT(n.sourceItem,n.getPosition(),n.getId().toString(),n.getVersion()):new cT(n,0)}}class Ej extends at{searchConfig;constructor(n,e){super(n,"SetConfigSearchingCommand"),this.searchConfig=e}getConfig(){return this.searchConfig}}class Sj extends mt{enabled;constructor(n,e){super(n,e,"ConfigSearchingSetEvent"),this.enabled=e}isEnabled(){return this.enabled}}class Bbe{domainEventPublisher=Y.resolve(xt);forCommand(){return Ej}handle(n,e){const i=e.getConfig();n.setSearchingConfig(i)}publish(n,e){const i=e.getConfig();this.domainEventPublisher.publish(new Sj(e.getAggregateId(),i.enabled))}}class lT extends at{phrase;initial;constructor(n,e,i){super(n,"SetSearchPhraseCommand"),this.phrase=e,this.initial=i}getPhrase(){return this.phrase}isInitial(){return this.initial}}class Mm extends mt{phrase;initial;constructor(n,e,i){super(n,{phrase:e,initial:i},"SearchPhraseSetDomainEvent"),this.phrase=e,this.initial=i}getPhrase(){return this.phrase}isInitial(){return this.initial}}class km extends mt{origin;constructor(n,e){super(n,e,"OriginSetEvent"),this.origin=e}getOrigin(){return this.origin}}class uT extends mt{values;constructor(n,e){super(n,e,"StructureSummariesChangedEvent"),this.values=e}getSummaries(){return this.values}}class dT extends mt{preparedItems;constructor(n,e){super(n,e,"StructurePreparedEntitiesSetEvent"),this.preparedItems=e}getPreparedItems(){return this.preparedItems}}class Am{domainEventPublisher=Y.resolve(xt);publish(n){n.forEach(e=>{this.publishEvent(e)})}publishEvent(n){if("StructureOriginChangedAggregateEvent"===n.getType()){const e=n,i=new km(e.getAggregateId(),e.getOrigin());this.domainEventPublisher.publish(i)}if("StructureSourceItemEditedAggregateEvent"===n.getType()){const e=n,i=new vI(e.getAggregateId(),e.getBeforeItem(),e.getAfterItem());this.domainEventPublisher.publish(i)}if("StructureSummariesChangedAggregateEvent"===n.getType()){const e=n,i=new uT(e.getAggregateId(),e.getSummaries());this.domainEventPublisher.publish(i)}if("StructurePreparedEntitiesSetAggregateEvent"===n.getType()){const e=n,i=new dT(e.getAggregateId(),e.getPreparedItems());this.domainEventPublisher.publish(i)}if("UniqueFilterCalculatedAggregateEvent"===n.getType()){const i=n.toDomainEvent();this.domainEventPublisher.publish(i)}}}let Vbe=(()=>class t{structureSourceDomainEventPublisher;domainEventPublisher=Y.resolve(xt);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[Am];forCommand(){return lT}handle(e,i){const r=i.getPhrase();e.addSearchPhrase(r)}publish(e,i){const r=i.getPhrase(),o=i.isInitial();this.domainEventPublisher.publish(new Mm(i.getAggregateId(),r,o)),this.structureSourceDomainEventPublisher.publish(e.getEvents())}})();class Hbe{searchFields=[];searchPhrase;enabledDataTypes=[Ie.STRING];addSearchPhrase(n,e){if(!e)return void(this.searchFields=[]);const i=n.filter(r=>this.enabledDataTypes.some(o=>o===r.getDataType()));0!==i.length&&(this.searchFields=i,this.searchPhrase=e)}removeSearchFilters(){this.searchFields=[]}search(n){if(0===n.length||0===this.searchFields.length)return n;const e=new Set;for(let i=0;i<n.length;i+=1)this.searchFields.filter(r=>r.search(n[i],this.searchPhrase)).forEach(()=>{e.add(n[i])});return Array.from(e)}}class xj{create(){return new Hbe}}let hT=(()=>{class t extends dn{static HIGHLIGHTING=!0;constructor(){super(t.HIGHLIGHTING)}}return t})(),gT=(()=>{class t extends dn{static PLACEHOLDER="Search...";constructor(){super(t.PLACEHOLDER)}}return t})(),Ij=(()=>class t{commandDispatcher;searchHighlightArchive;searchPlaceholderArchive;constructor(e,i,r){this.commandDispatcher=e,this.searchHighlightArchive=i,this.searchPlaceholderArchive=r}static services=[sr,hT,gT];setSearchingConfig(e,i){null!=e.highlighting&&this.searchHighlightArchive.next(i,e.highlighting),null!=e.placeholder&&this.searchPlaceholderArchive.next(i,e.placeholder),null!=e.phrase&&this.searchOnInit(e.phrase,i),this.commandDispatcher.dispatch(new Ej(i,e))}search(e,i){this.commandDispatcher.dispatch(new lT(i,e,!1))}searchOnInit(e,i){this.commandDispatcher.dispatch(new lT(i,e,!0))}})(),pT=(()=>{class t extends dn{static SEARCH_PHRASE="";constructor(){super(t.SEARCH_PHRASE)}}return t})(),Ube=(()=>class t{searchPhraseRepository;constructor(e){this.searchPhraseRepository=e}static services=[pT];forEvent(){return Mm}handle(e){e.ofMessageType("SearchPhraseSetDomainEvent")&&this.searchPhraseRepository.next(e.getAggregateId(),e.getPhrase())}})(),fT=(()=>{class t extends dn{static ENABLED=!1;constructor(){super(t.ENABLED)}}return t})(),jbe=(()=>class t{searchingEnabledArchive;constructor(e){this.searchingEnabledArchive=e}static services=[fT];forEvent(){return Sj}handle(e){e.ofMessageType("ConfigSearchingSetEvent")&&this.searchingEnabledArchive.next(e.getAggregateId(),e.isEnabled())}})();class Gbe extends at{constructor(n){super(n,"RemoveSearchPhraseCommand")}}class $be{domainEventPublisher=Y.resolve(xt);forCommand(){return Gbe}handle(n,e){n.removeSearchPhrase()}publish(n,e){this.domainEventPublisher.publish(new tT(e.getAggregateId()))}}class zbe{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(xj),n.provide(Ij)}registerCommandHandlers(){return[Bbe,Vbe,$be]}registerDomainEventHandler(){return[Ube,jbe]}registerMultiDomainEventHandler(){return[]}}let Wbe=(()=>class t extends sl{searchingEnabledArchive;searchPhraseArchive;searchHighlightArchive;searchPlaceholderArchive;constructor(e,i,r,o){super(),this.searchingEnabledArchive=e,this.searchPhraseArchive=i,this.searchHighlightArchive=r,this.searchPlaceholderArchive=o}static services=[fT,pT,hT,gT];onSearchEnabled(e){return this.searchingEnabledArchive.on(e)}onPhrase(e){return this.searchPhraseArchive.on(e)}onHighlight(e){return this.searchHighlightArchive.on(e)}onPlaceholder(e){return this.searchPlaceholderArchive.on(e)}})();class qbe extends rl{constructor(){super()}onSearchPhrase(n){return this.onEvent(n,Mm).pipe(Tt(e=>!1===e.isInitial()),ge(e=>e.getPhrase()),Tt(e=>null!==e))}}let Ybe=(()=>class t extends ls{searchDispatcher;constructor(e){super(),this.searchDispatcher=e}static services=[Ij];setSearchingConfig(e,i){this.searchDispatcher.setSearchingConfig(e,i)}search(e,i){this.searchDispatcher.search(e,i)}})();class Kbe{registerProviders(n){n.provide(ls,Ybe),n.provide(sl,Wbe),n.provide(rl,qbe),n.provide(pT),n.provide(hT),n.provide(gT),n.provide(fT)}}function Qbe(){return Y.resolve(ls)}function Xbe(){return Y.resolve(sl)}function Jbe(){return Y.resolve(rl)}!function Zbe(){new qr(new Kbe,new zbe).init()}();let Tj=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:ls,useFactory:Qbe},{provide:sl,useFactory:Xbe},{provide:rl,useFactory:Jbe}],imports:[Oe,yu,ph,Ao]})}return t})(),eve=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,ph,aT,Tj]})}return t})(),tve=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,ku,Ao,sT]})}return t})(),Mj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({})}return t})(),kj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({})}return t})();const nve=[Mj,kj];let ive=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,ku,Ao,eT,tve,Za,nve]})}return t})(),ove=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe,Za]})}return t})();class Aj extends at{compositionId;fieldId;constructor(n,e,i){super(n,"ToggleSortCommand"),this.compositionId=e,this.fieldId=i}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}}class sve{domainEventPublisher=Y.resolve(xt);forCommand(){return Aj}handle(n,e){const i=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=n.toggleSort(o);this.publishSortEvent(i,r,o,s)}publish(n,e){}publishSortEvent(n,e,i,r){const o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new AI(n,e,o))}}class Rj extends at{sortingConfig;constructor(n,e){super(n,"SetSortingCommand"),this.sortingConfig=e}getSortingConfig(){return this.sortingConfig}}class ave extends mt{constructor(n){super(n,null,"SortingSetEvent")}}class cve{domainEventPublisher=Y.resolve(xt);forCommand(){return Rj}handle(n,e){const i=e.getSortingConfig();n.setSortingConfig(i)}publish(n,e){this.domainEventPublisher.publish(new ave(e.getAggregateId()))}}class Nj extends at{compositionId;fieldId;sortOrder;constructor(n,e,i,r){super(n,"SetSortOrderCommand"),this.compositionId=e,this.fieldId=i,this.sortOrder=r}getCompositionId(){return this.compositionId}getFieldId(){return this.fieldId}getSortOrder(){return this.sortOrder}}class lve{domainEventPublisher=Y.resolve(xt);forCommand(){return Nj}handle(n,e){const i=e.getAggregateId(),r=e.getCompositionId(),o=e.getFieldId(),s=e.getSortOrder(),a=n.setSortOrder(o,s);this.publishSortEvent(i,r,o,a)}publish(n,e){}publishSortEvent(n,e,i,r){const o=r.map(s=>({direction:s.hasDirection(),fieldId:s.getField().getId()}));this.domainEventPublisher.publish(new NI(n,e,o))}}class Oj{commandDispatcher=Y.resolve(sr);setSortingConfig(n,e){this.commandDispatcher.dispatch(new Rj(e,n))}toggleSort(n,e,i){this.commandDispatcher.dispatch(new Aj(i,e,n))}setSortOrder(n,e,i,r){this.commandDispatcher.dispatch(new Nj(r,i,n,e))}}class uve{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(Oj)}registerCommandHandlers(){return[sve,cve,lve]}registerDomainEventHandler(){return[]}registerMultiDomainEventHandler(){return[]}}let dve=(()=>class t extends us{sortingDispatcher;constructor(e){super(),this.sortingDispatcher=e}static services=[Oj];setSortingConfig(e,i){this.sortingDispatcher.setSortingConfig(e,i)}toggleSort(e,i,r){this.sortingDispatcher.toggleSort(e,i,r)}setSortOrder(e,i,r,o){this.sortingDispatcher.setSortOrder(e,i,r,o)}})();class hve{registerProviders(n){n.provide(us,dve)}}function pve(){return Y.resolve(us)}!function gve(){new qr(new hve,new uve).init()}();let fve=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:us,useFactory:pve}],imports:[Oe]})}return t})(),mT=(()=>{class t extends dn{static default=[];constructor(){super(t.default)}}return t})();class mve{id;dataType;name;constructor(n,e,i){this.id=n,this.dataType=e,this.name=i}getFieldId(){return this.id}getId(){return this.id.getId()}getDataType(){return this.dataType}getName(){return this.name}}class Fj{convert(n){return n.map(e=>this.convertOne(e))}convertOne(n){return new mve(n.getId(),n.getDataType(),n.getName())}}class bve{fieldFactory;fields=new Map;constructor(n){this.fieldFactory=n}getField(n){return null===n?this.getAllFields()[0]:this.fields.get(n.getId())}getAllFieldIds(){return Array.from(this.fields.keys())}getAllFields(){return Array.from(this.fields.values())}getFieldsAsMap(){return this.fields}initFields(n){const e=this.fieldFactory.create(n);this.clear(),this.addFields(e)}addFields(n){for(const e of n)this.addField(e)}addField(n){this.fields.set(n.getId().toString(),n)}clear(){this.fields.clear()}}class bT extends qy{id;field;name;constructor(n,e,i){super(n),this.id=n,this.field=e,this.name=i}static of(n,e,i){return new bT(n,e,i)}getId(){return this.id}getKey(){return this.getId().toString()}getDataType(){return this.field.getDataType()}getName(){return this.name}getField(){return this.field}getAccessor(){return this.field.getAccessor()}getAccessorMethod(){return this.field.getAccessorMethod()}getSearchAccessorMethod(){return this.field.getSearchAccessorMethod()}getValue(n){return this.field.getValue(n)}getDisplayValue(n){return this.field.getDisplayValue(n)}isSummaries(n){return this.field.isSummaries(n)}isSummariesEnabled(){return this.field.isSummariesEnabled()}search(n,e){return this.field.search(n,e)}filter(n,e){const i=this.field.getValue(n);return this.field.getDataType()===Ie.NUMBER||this.field.getDataType()===Ie.BOOLEAN||this.field.getDataType()===Ie.STRING?this.field.filter(i,e):this.field.getDataType()!==Ie.DATE||this.field.filter(i,e)}sort(n,e,i){const r=this.field.getSortValue(i?n:e),o=this.field.getSortValue(i?e:n);return this.field.getDataType()===Ie.NUMBER||this.field.getDataType()===Ie.BOOLEAN||this.field.getDataType()===Ie.STRING||this.field.getDataType()===Ie.DATE?this.field.sort(r,o):0}}class vve{accessor;dataType;accessorMethod;matchers;constructor(n,e,i){this.accessor=n,this.dataType=e,this.matchers=i,this.accessorMethod="string"==typeof n?r=>r.getSourceItem()[n]:"function"==typeof n?r=>n(r.getSourceItem()):r=>r}getDataType(){return this.dataType}getAccessor(){return this.accessor}getAccessorMethod(){return this.accessorMethod}getMatchers(){return this.matchers}getSearchAccessorMethod(){let n;return this.matchers.getSearchMatcher().ifPresent(e=>{n=e}),n?e=>{const i=this.accessorMethod(e);return n(i)}:e=>this.accessorMethod(e)}getValue(n){return this.accessorMethod(n)}getSortValue(n){let e=this.accessorMethod(n);return this.matchers.getSortMatcher().ifPresent(i=>{e=i(e)}),e}getSearchValue(n){let e=this.accessorMethod(n);return this.matchers.getSearchMatcher().ifPresent(i=>{e=i(e)}),e}}class Rm extends vve{summariesEnabled=!0;summariesTypes;possibleSummaries;constructor(n,e,i,r){super(n,e,i),this.possibleSummaries=this.assignPossibleSummaries(),this.assignSummaries(r)}isSummaries(n){return!!this.isSummariesEnabled()&&!!(this.summariesTypes&n)}isSummariesEnabled(){return this.summariesEnabled}setSummariesEnabled(n){this.summariesEnabled=n}assignSummaries(n){n&&0!==Object.keys(n).length?(n.enabled&&(this.summariesEnabled=!!n.enabled),n.summariesTypes?(this.summariesTypes=Ue.DISTINCT,n.summariesTypes.forEach(e=>{this.summariesTypes|=e})):this.summariesTypes=this.assignDefaultSummaries()):this.summariesTypes=this.assignDefaultSummaries()}}class Pj extends Rm{constructor(n,e,i){super(n,Ie.UNKNOWN,e,i)}assignDefaultSummaries(){return Ue.DISTINCT}assignPossibleSummaries(){return Ue.COUNT|Ue.DISTINCT}search(n,e){return!1}sort(n,e){return 0}filter(n,e){return!1}equals(n,e){return!1}getDisplayValue(n){return n}}class _ve extends Rm{constructor(n,e,i){super(n,Ie.NUMBER,e,i)}getField(){return this}assignDefaultSummaries(){return Ue.DISTINCT}assignPossibleSummaries(){return Ue.COUNT|Ue.DISTINCT|Ue.SUM|Ue.MIN|Ue.MAX|Ue.AVERAGE|Ue.MEDIAN}search(n,e){return!1}sort(n,e){return+n-+e}filter(n,e){return n>e}equals(n,e){return this.getValue(n)===e}getDisplayValue(n){return`${n}`}}class yve extends Rm{constructor(n,e,i){super(n,Ie.STRING,e,i)}assignDefaultSummaries(){return Ue.DISTINCT}assignPossibleSummaries(){return Ue.COUNT|Ue.DISTINCT}search(n,e){const i=this.getSearchValue(n);return"string"==typeof i&&i.toLowerCase().indexOf(e.toLowerCase())>-1}sort(n,e){return(""+n).localeCompare(""+e)}filter(n,e){return n.toLowerCase().indexOf(e.toLowerCase())>-1}equals(n,e){return this.getValue(n)===e}getDisplayValue(n){return n}}class wve extends Rm{constructor(n,e,i){super(n,Ie.BOOLEAN,e,i)}assignDefaultSummaries(){return Ue.DISTINCT}assignPossibleSummaries(){return Ue.COUNT|Ue.DISTINCT|Ue.TRUTHY|Ue.FALSY}search(n,e){return!1}sort(n,e){const r=!!e;return!!n===r?0:r?-1:1}filter(n,e){return n===e}equals(n,e){return this.getValue(n)===e}getDisplayValue(n){return n?"True":"False"}}class Cve extends Rm{constructor(n,e,i){super(n,Ie.DATE,e,i)}assignDefaultSummaries(){return Ue.DISTINCT}assignPossibleSummaries(){return Ue.COUNT|Ue.DISTINCT}search(n,e){return!1}sort(n,e){return n-e}filter(n,e){return!1}equals(n,e){return this.getValue(n).getTime()===e.getTime()}getDisplayValue(n){return n.toDateString()}}class Dve{matcher;sortMatcher;searchMatcher;constructor(n,e,i){this.matcher=n,this.sortMatcher=e,this.searchMatcher=i}getMatcher(){return Xt.of(this.matcher)}getSortMatcher(){let n;return this.sortMatcher&&(n=this.sortMatcher),this.matcher&&(n=this.matcher),Xt.of(n)}getSearchMatcher(){let n;return this.searchMatcher&&(n=this.searchMatcher),this.matcher&&(n=this.matcher),Xt.of(n)}}class Lj{create(n){const e=this.createMatchers(n);let i=n.type;return void 0===i&&(i=Ie.STRING),i===Ie.UNKNOWN?new Pj(n.field,e,n.summaries):i===Ie.NUMBER?new _ve(n.field,e,n.summaries):i===Ie.STRING?new yve(n.field,e):i===Ie.BOOLEAN?new wve(n.field,e):i===Ie.DATE?new Cve(n.field,e):new Pj(n.field,e,n.summaries)}createMatchers(n){let i;return n.sorting&&(i=n.sorting.matcher),new Dve(n.matcher,i)}}class Bj{generateId(){const n=pu.generate();return new cm(n)}}let Vj=(()=>class t{fieldIdGenerator;dataFieldFactory;constructor(e,i){this.fieldIdGenerator=e,this.dataFieldFactory=i}static services=[Bj,Lj];create(e){return e?e.map((i,r)=>{const o=this.fieldIdGenerator.generateId(),s=this.dataFieldFactory.create(i);return new bT(o,s,this.getFieldName(i,r))}):[]}getFieldName(e,i){return"string"==typeof e.field?e.field.toLowerCase():"Field #"+i}})(),Hj=(()=>class t{fieldFactory;constructor(e){this.fieldFactory=e}static services=[Vj];create(){return new bve(this.fieldFactory)}})();class Eve{forCommand(){return mI}handle(n,e){const i=e.getFieldConfigs();n.createFields(i)}}let Sve=(()=>class t{fieldArchive;fieldConverter;constructor(e,i){this.fieldArchive=e,this.fieldConverter=i}static services=[mT,Fj];forEvent(){return D0}handle(e){if(e.ofMessageType("FieldsInitedEvent")){const i=this.fieldConverter.convert(e.getFields());this.fieldArchive.next(e.getAggregateId(),i)}}})();class xve{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(Hj),n.provide(Vj),n.provide(Bj),n.provide(Lj)}registerCommandHandlers(){return[Eve]}registerDomainEventHandler(){return[Sve]}registerMultiDomainEventHandler(){return[]}}let Ive=(()=>class t extends xm{fieldReadModelArchive;constructor(e){super(),this.fieldReadModelArchive=e}static services=[mT];onFields(e){return this.fieldReadModelArchive.on(e)}findFields(e){return this.fieldReadModelArchive.find(e)}})(),Tve=(()=>class t extends vm{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[sr];initFields(e,i){this.commandDispatcher.dispatch(new mI(i,e))}})();class Mve{registerProviders(n){n.provide(vm,Tve),n.provide(mT),n.provide(Fj),n.provide(xm,Ive)}}function Ave(){return Y.resolve(vm)}function Rve(){return Y.resolve(xm)}!function kve(){new qr(new Mve,new xve).init()}();let Nve=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:vm,useFactory:Ave},{provide:xm,useFactory:Rve}],imports:[Oe]})}return t})();class Uj extends at{enabled;constructor(n,e){super(n,"StructureSetSummariesEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}}class jj extends mt{enabled;constructor(n,e){super(n,e,"StructureSummariesEnabledSetEvent"),this.enabled=e}isEnabled(){return this.enabled}}let Fve=(()=>class t{structureSourceDomainEventPublisher;domainEventPublisher=Y.resolve(xt);constructor(e){this.structureSourceDomainEventPublisher=e}static services=[Am];forCommand(){return Uj}handle(e,i){const r=i.isEnabled();e.setSummariesEnabled(r)}publish(e,i){const r=i.isEnabled(),o=e.getEvents();this.domainEventPublisher.publish(new jj(i.getAggregateId(),r)),this.structureSourceDomainEventPublisher.publish(o)}})();class Pve extends xn{summarizedValues;constructor(n,e){super(n,"StructureSummariesChangedAggregateEvent"),this.summarizedValues=e}toDomainEvent(){return new uT(this.getAggregateId(),this.summarizedValues)}getSummaries(){return this.summarizedValues}}let vT=(()=>{class t{calculators;static DEFAULT_ENABLED=!1;structureId;enabled;values=new Map;constructor(e,i){this.calculators=i,this.structureId=e,this.enabled=t.DEFAULT_ENABLED}calculate(e,i){if(!this.enabled)return[];const r=new Map;return this.calculators.forEach(o=>{const s=o.calculate(e,i);s&&Array.from(s.keys()).forEach(a=>{r.set(a,s.get(a))})}),r.size>0?[new Pve(this.structureId,r)]:[]}setEnabled(e){this.enabled=e}add(){}remove(){}update(){}}return t})();class Z0 extends dn{constructor(){super(vT.DEFAULT_ENABLED)}init(n){this.next(n,vT.DEFAULT_ENABLED)}}let Lve=(()=>class t{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[Z0];forEvent(){return jj}handle(e){e.ofMessageType("StructureSummariesEnabledSetEvent")&&this.summariesEnabledArchive.next(e.getAggregateId(),e.isEnabled())}})();class Nm{calculate(n,e){const i=n.filter(a=>this.forDataType(a.getDataType()));if(!i||0===i.length||0===e.length)return null;const r=new Map,o=new Map;i.forEach(a=>{const c=a.getKey();r.set(c,0),o.set(c,new Set),this.prepare(a)}),e.forEach(a=>{i.forEach(c=>{const l=c.getKey(),u=c.getValue(a);if(null!==u||void 0!==u||""!==u){if(c.isSummaries(Ue.COUNT)){const h=r.get(l);r.set(l,h+1)}c.isSummaries(Ue.DISTINCT)&&o.get(l).add(u)}this.aggregate(c,u)})}),i.forEach(a=>{this.postCalculate(a,e)});const s=new Map;return i.forEach(a=>{const c=a.getKey(),l=this.generateAggregatedValues(a);a.isSummaries(Ue.COUNT)&&l.setCount(r.get(c)),a.isSummaries(Ue.DISTINCT)&&l.setDistinct(o.get(c).size),s.set(c,l)}),s}}class Om{count;distinct;setCount(n){this.count=n}setDistinct(n){this.distinct=n}}class Bve extends Om{truthy;falsy;constructor(n,e){super(),this.truthy=n,this.falsy=e}}class Gj extends Nm{truthy=new Map;falsy=new Map;constructor(){super()}forDataType(n){return n===Ie.BOOLEAN}prepare(n){const e=n.getKey();n.isSummaries(Ue.TRUTHY)&&this.truthy.set(e,0),n.isSummaries(Ue.FALSY)&&this.falsy.set(e,0)}postCalculate(n,e){}aggregate(n,e){const i=e,r=n.getKey(),o=this.truthy.get(r),s=this.falsy.get(r);i?n.isSummaries(Ue.TRUTHY)&&this.truthy.set(r,o+1):n.isSummaries(Ue.FALSY)&&this.falsy.set(r,s+1)}generateAggregatedValues(n){const e=n.getKey();return new Bve(this.truthy.get(e),this.falsy.get(e))}}class Vve extends Om{constructor(){super()}}class $j extends Nm{constructor(){super()}forDataType(n){return n===Ie.DATE}prepare(n){}postCalculate(n,e){}aggregate(n,e){}generateAggregatedValues(n){return new Vve}}class Hve extends Om{sum;min;max;average;median;constructor(n,e,i,r,o){super(),this.sum=this.setValueWithPrecision(n),this.min=this.setValueWithPrecision(e),this.max=this.setValueWithPrecision(i),this.average=this.setValueWithPrecision(r),this.median=this.setValueWithPrecision(o)}setValueWithPrecision(n){return n||0===n?0===n?0:+n.toFixed(2):null}}class zj extends Nm{sum=new Map;min=new Map;max=new Map;average=new Map;median=new Map;constructor(){super()}forDataType(n){return n===Ie.NUMBER}prepare(n){const e=n.getKey();this.sum.set(e,0),this.min.set(e,Number.MAX_SAFE_INTEGER),this.max.set(e,0)}postCalculate(n,e){const i=n.getKey();n.isSummaries(Ue.AVERAGE)&&this.average.set(i,this.sum.get(i)/e.length),n.isSummaries(Ue.MEDIAN)&&this.median.set(i,n.getValue(e[Math.floor(e.length/2)]))}aggregate(n,e){const i=+e,r=n.getKey(),o=this.sum.get(r),s=this.min.get(r),a=this.max.get(r);(n.isSummaries(Ue.SUM)||n.isSummaries(Ue.AVERAGE))&&this.sum.set(r,o+i),n.isSummaries(Ue.MIN)&&s>i&&this.min.set(r,i),n.isSummaries(Ue.MAX)&&a<i&&this.max.set(r,i)}generateAggregatedValues(n){const e=n.getKey(),i=n.isSummaries(Ue.SUM)?this.sum.get(e):void 0,r=n.isSummaries(Ue.MIN)?this.min.get(e):void 0,o=n.isSummaries(Ue.MAX)?this.max.get(e):void 0,s=n.isSummaries(Ue.AVERAGE)?this.average.get(e):void 0,a=n.isSummaries(Ue.MEDIAN)?this.median.get(e):void 0;return new Hve(i,r,o,s,a)}}class Uve extends Om{constructor(){super()}}class Wj extends Nm{constructor(){super()}forDataType(n){return n===Ie.STRING}prepare(n){}postCalculate(n,e){}aggregate(n,e){}generateAggregatedValues(n){return new Uve}}class jve extends Om{constructor(){super()}}class qj extends Nm{constructor(){super()}forDataType(n){return n===Ie.UNKNOWN}prepare(n){}postCalculate(n,e){}aggregate(n,e){}generateAggregatedValues(n){return new jve}}const Au="GUI - Summaries Calculators";let Yj=(()=>class t{calculators;constructor(e){this.calculators=e}static services=[{inject:Au,collection:!0}];create(e){return new vT(e,this.calculators)}})();class Kj{commandDispatcher=Y.resolve(sr);setSummariesEnabled(n,e){this.commandDispatcher.dispatch(new Uj(e,n))}}let Zj=(()=>{class t{static defaultTop=!1;static defaultBottom=!0;top=t.defaultTop;bottom=t.defaultBottom;setTop(e){this.top=e}setBottom(e){this.bottom=e}isTopEnabled(){return this.top}isBottomEnabled(){return this.bottom}}return t})();class Fm extends dn{static default=new Zj;constructor(){super(Fm.default)}}class Qj{convert(n){const e=new Zj;return null!=n.top&&e.setTop(n.top),null!=n.bottom&&e.setBottom(n.bottom),e}}class Gve{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(Yj),n.provide(Kj),n.provide(Fm),n.provide(Qj),n.provideCollection(Au,Gj),n.provideCollection(Au,$j),n.provideCollection(Au,zj),n.provideCollection(Au,Wj),n.provideCollection(Au,qj)}registerCommandHandlers(){return[Fve]}registerDomainEventHandler(){return[Lve]}registerMultiDomainEventHandler(){return[]}}let $ve=(()=>class t extends _m{summariesEnabledArchive;structureSummariesArchive;constructor(e,i){super(),this.summariesEnabledArchive=e,this.structureSummariesArchive=i}static services=[Z0,Fm];onEnabled(e){return this.summariesEnabledArchive.on(e)}onTopEnabled(e){return this.onEnabled(e).pipe(yo(i=>this.structureSummariesArchive.on(e).pipe(ge(r=>i&&r.isTopEnabled()))))}onBottomEnabled(e){return this.onEnabled(e).pipe(yo(i=>this.structureSummariesArchive.on(e).pipe(ge(r=>i&&r.isBottomEnabled()))))}})(),zve=(()=>class t extends $h{summariesDispatcher;configConverter;structureSummariesConfigArchive;constructor(e,i,r){super(),this.summariesDispatcher=e,this.configConverter=i,this.structureSummariesConfigArchive=r}static services=[Kj,Qj,Fm];setSummariesEnabled(e,i){this.summariesDispatcher.setSummariesEnabled(e,i)}setConfig(e,i){const r=this.configConverter.convert(e);this.setSummariesEnabled(e.enabled,i),this.structureSummariesConfigArchive.next(i,r)}})();class Wve extends Em{constructor(){super()}onSummariesChanged(n){return this.onEvent(n,uT)}}class qve{registerProviders(n){n.provide($h,zve),n.provide(Em,Wve),n.provide(_m,$ve),n.provide(Z0)}}function Pm(t){return{provide:Au,useClass:t,multi:!0}}function Kve(){return Y.resolve($h)}function Zve(){return Y.resolve(_m)}function Qve(){return Y.resolve(Em)}!function Yve(){new qr(new qve,new Gve).init()}();let Xve=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:$h,useFactory:Kve},{provide:_m,useFactory:Zve},{provide:Em,useFactory:Qve},Pm(Gj),Pm($j),Pm(zj),Pm(Wj),Pm(qj)],imports:[Oe,yu,Za,Ao]})}return t})();class Xj{start;end;margin;constructor(n,e,i){this.start=n,this.end=e,this.margin=i}getStart(){return this.start}getEnd(){return this.end}getMargin(){return this.margin}}let Jve=(()=>{let t=class{containerHeight=Xt.empty();sourceHeight;isContainerHeightProperForVirtualScroll(){return!!this.containerHeight.isPresent()&&this.containerHeight.getValueOrNullOrThrowError()>0}getVisibleContainerHeight(){return this.getHeight()}getHeight(){return this.containerHeight.isPresent()?this.getContainerHeight():this.sourceHeight}getSourceHeight(){return this.sourceHeight}setContainerHeight(e){e>=0&&(this.containerHeight=Xt.of(e))}setSourceSize(e){this.sourceHeight=e}getContainerHeight(){return this.containerHeight.getValueOrNullOrThrowError()>this.sourceHeight?this.sourceHeight:this.containerHeight.getValueOrNullOrThrowError()}};return t=dh([FH],t),t})();class Jj extends mt{position;constructor(n,e){super(n,e,"ScrollBarPositionSetEvent"),this.position=e}getPosition(){return this.position}}class e_e extends xn{position;constructor(n,e){super(n,"ScrollBarPositionSetAggregateEvent"),this.position=e}toDomainEvent(){return new Jj(this.getAggregateId(),this.position)}}var Lm;let _T=class{static#e=Lm=this;structureId;enabled;static ROW_HEIGHT=42;static HIDDEN_ITEMS_TOP=5;static HIDDEN_ITEMS_BOTTOM=2;rowHeight=Lm.ROW_HEIGHT;hiddenItemsTop=Lm.HIDDEN_ITEMS_TOP;hiddenItemsBottom=Lm.HIDDEN_ITEMS_BOTTOM;container=new Jve;scrollPosition;range;sourceSize;logger;constructor(n,e=!1,i=0,r=0,o=0,s,a,c){this.structureId=n,this.enabled=e,this.sourceSize=r,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.container.setContainerHeight(i),this.scrollPosition=o,Number.isInteger(s)&&(this.rowHeight=s),Number.isInteger(a)&&(this.hiddenItemsTop=a),Number.isInteger(c)&&(this.hiddenItemsBottom=c),this.calculateRange()}isEnabled(){return this.enabled&&this.container.getHeight()>0&&this.sourceSize>0}getViewPortHeight(){return this.container.getVisibleContainerHeight()}getSourceHeight(){return this.container.getSourceHeight()}getRowHeight(){return this.rowHeight}getRange(){return this.range}getTopMargin(){return this.range.getStart()*this.rowHeight}calculateRange(){if(this.calcFullHeight()<=this.container.getHeight())return void(this.range=new Xj(0,this.sourceSize,0));const n=Math.ceil(this.container.getHeight()/this.rowHeight),e=Math.floor(this.scrollPosition/this.rowHeight);let i=e+n+this.hiddenItemsBottom,r=e;r+n>=this.sourceSize&&(r=this.sourceSize-n);let o=Math.max(e-this.hiddenItemsTop,0);return i>this.sourceSize&&(i=this.sourceSize,o=i-n),this.range=new Xj(o,i,r),{start:o,end:i,topMargin:r}}setEnabled(n){this.enabled=n,this.enabled&&!this.container.isContainerHeightProperForVirtualScroll()&&this.logger.warn("Height needs to be specified in order for virtual scroll to work."),this.calculateRange()}setSourceSize(n=0){this.sourceSize=n,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setTopHiddenItemsCount(n){this.hiddenItemsTop=n,this.calculateRange()}setBottomHiddenItemsCount(n){this.hiddenItemsBottom=n,this.calculateRange()}setScrollPosition(n){this.scrollPosition=n,this.calculateRange()}scrollToIndex(n){return n>=this.sourceSize&&(n=this.sourceSize),n<-1&&(n=0),new e_e(this.structureId,n*this.rowHeight)}setViewportHeight(n){this.container.setContainerHeight(n),this.calculateRange()}setRowHeight(n){this.rowHeight=n,this.container.setSourceSize(this.sourceSize*this.rowHeight),this.calculateRange()}setLogger(n){this.logger=n}calcFullHeight(){return this.sourceSize*this.rowHeight}};_T=Lm=dh([FH],_T);let e5=(()=>class t{logger;constructor(e){this.logger=e}static services=[Qh];create(e,i=!1,r=-1,o=0,s=0,a,c,l){const u=new _T(e,i,r,o,s,a,c,l);return u.setLogger(this.logger),u}})();class t5 extends at{position;constructor(n,e){super(n,"SetScrollPositionCommand"),this.position=e}getPosition(){return this.position}}class yT extends mt{constructor(n){super(n,null,"ScrollPositionSetEvent")}}class t_e{domainEventPublisher=Y.resolve(xt);forCommand(){return t5}handle(n,e){const i=e.getPosition();n.setScrollPosition(i)}publish(n,e){this.domainEventPublisher.publish(new yT(e.getAggregateId()))}}class n5 extends at{enabled;constructor(n,e){super(n,"SetVerticalScrollEnabledCommand"),this.enabled=e}isEnabled(){return this.enabled}}class wT extends mt{constructor(n){super(n,null,"VerticalScrollEnabledSetEvent")}}class n_e{domainEventPublisher=Y.resolve(xt);forCommand(){return n5}handle(n,e){const i=e.isEnabled();n.setVerticalFormationEnabled(i)}publish(n,e){this.domainEventPublisher.publish(new wT(e.getAggregateId()))}}class r5 extends at{theme;constructor(n,e){super(n,"SetRowHeightBasedOnThemeCommand"),this.theme=e}getTheme(){return this.theme}}class CT extends mt{constructor(n){super(n,null,"RowHeightSetBasedOnThemeEvent")}}class i_e{domainEventPublisher=Y.resolve(xt);forCommand(){return r5}handle(n,e){const i=e.getTheme();n.setTheme(i)}publish(n,e){this.domainEventPublisher.publish(new CT(e.getAggregateId()))}}class o5 extends at{rowHeight;constructor(n,e){super(n,"SetRowHeightCommand"),this.rowHeight=e}getRowHeight(){return this.rowHeight}}class DT extends mt{constructor(n){super(n,null,"RowHeightSetEvent")}}class r_e{domainEventPublisher=Y.resolve(xt);forCommand(){return o5}handle(n,e){const i=e.getRowHeight();n.getVerticalFormation().setRowHeight(i)}publish(n,e){this.domainEventPublisher.publish(new DT(e.getAggregateId()))}}class s5 extends at{height;constructor(n,e){super(n,"StructureSetHeightCommand"),this.height=e}getHeight(){return this.height}}class ET extends mt{constructor(n){super(n,null,"StructureHeightSetEvent")}}class o_e{domainEventPublisher=Y.resolve(xt);forCommand(){return s5}handle(n,e){const i=e.getHeight();n.setHeight(i)}publish(n,e){this.domainEventPublisher.publish(new ET(e.getAggregateId()))}}let ST=(()=>{class t extends dn{static DEFAULT_POSITION=0;constructor(){super(t.DEFAULT_POSITION)}}return t})(),s_e=(()=>class t{positionRepository;constructor(e){this.positionRepository=e}static services=[ST];forEvent(){return Jj}handle(e){e.ofMessageType("ScrollBarPositionSetEvent")&&this.positionRepository.next(e.getAggregateId(),e.getPosition())}})();class a5 extends at{position;constructor(n,e){super(n,"SetScrollBarPositionCommand"),this.position=e}getPosition(){return this.position}}class a_e{forCommand(){return a5}handle(n,e){const i=e.getPosition();n.scrollToIndex(i)}}class c5{commandDispatcher=Y.resolve(sr);setVirtualScrollEnabled(n,e){this.commandDispatcher.dispatch(new n5(e,n))}scrollTo(n,e){this.commandDispatcher.dispatch(new a5(e,n))}setScrollPosition(n,e){this.commandDispatcher.dispatch(new t5(e,n))}}class c_e{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(e5),n.provide(c5)}registerCommandHandlers(){return[t_e,n_e,i_e,r_e,o_e,a_e]}registerDomainEventHandler(){return[s_e]}registerMultiDomainEventHandler(){return[]}}let l_e=(()=>{let t=class{enabled;topMargin;sourceHeight;viewportHeight;rowHeight;constructor(e,i,r,o,s){this.enabled=e,this.topMargin=i,this.sourceHeight=r,this.viewportHeight=o,this.rowHeight=s}isEnabled(){return this.enabled}getTopMargin(){return this.topMargin}getSourceHeight(){return this.sourceHeight}getViewPortHeight(){return this.viewportHeight}getRowHeight(){return this.rowHeight}};return t=dh([$x],t),t})();class l5{convert(n){const e=n.isEnabled(),i=n.getTopMargin(),r=n.getSourceHeight(),o=n.getViewPortHeight(),s=n.getRowHeight();return new l_e(e,i,r,o,s)}}class Q0 extends mt{constructor(n){super(n,null,"StructureCreatedEvent")}}class xT extends Zy{}let u_e=(()=>{let t=class{loading;constructor(e){this.loading=e}isLoading(){return this.loading}};return t=dh([$x],t),t})();class u5{convert(n){return new u_e(n.isLoading())}}class d_e extends NH{paging;entities;source;verticalFormation;constructor(n,e,i,r,o){super(n),this.paging=e,this.entities=i,this.source=r,this.verticalFormation=o}getPaging(){return this.paging}getEntities(){return this.entities}getSource(){return this.source}getVerticalFormation(){return this.verticalFormation}getTopMargin(){return this.verticalFormation.getTopMargin()}isLoaderVisible(){return this.getSource().isLoading()}getSourceHeight(){return this.verticalFormation.getSourceHeight()}isReadyToDisplay(){return this.entities.length>0}isVerticalScrollEnabled(){return this.verticalFormation.isEnabled()}}let d5=(()=>class t{pagingConverter;sourceConverter;verticalFormationConverter;constructor(e,i,r){this.pagingConverter=e,this.sourceConverter=i,this.verticalFormationConverter=r}static services=[MU,u5,l5];convert(e){const i=e.getPaging(),r=e.getEntities(),o=e.getSource(),s=e.getVerticalFormation();return new d_e(e.getId().toReadModelRootId(),this.pagingConverter.convert(i),this.convertSource(r),this.sourceConverter.convert(o),this.verticalFormationConverter.convert(s))}convertSource(e){return e.map(i=>new cT(i.sourceItem,i.getPosition(),i.getId().toString(),i.getVersion()))}})(),IT=(()=>class t extends LH{inMemoryProjectStore;structureConverter;constructor(e,i){super(e),this.inMemoryProjectStore=e,this.structureConverter=i}static services=[xT,d5];toReadModel(e){return this.structureConverter.convert(e)}})();class Bm extends Nh{}class Vm extends Bm{theme;constructor(n,e){super(n,e,"SchemaThemeSetEvent"),this.theme=e}getTheme(){return this.theme}}class TT extends mt{constructor(n){super(n,null,"UniqueFilterUnselectedEvent")}}class MT extends mt{constructor(n){super(n,null,"AllUniqueFilterUnselectedEvent")}}class kT extends mt{constructor(n){super(n,null,"AllUniqueFilterSelectedEvent")}}class AT extends mt{constructor(n){super(n,null,"UniqueFilterSelectedEvent")}}let h5=(()=>class t extends Cr{inMemoryStructureReadStore;verticalFormation=new Map;verticalFormation$=new ss(1);domainEventBus=Y.resolve(_o);constructor(e){super(),this.inMemoryStructureReadStore=e,this.domainEventBus.ofEvents([Q0,wT,km,ET,DT,Vm,CT,yT,Mm,TT,MT,kT,AT,T0,CI,ng]).pipe(this.hermesTakeUntil()).subscribe(i=>{const r=i.getAggregateId();this.inMemoryStructureReadStore.getById(r).ifPresent(s=>{const a=s.getVerticalFormation();this.next(r,a)})})}static services=[IT];onVerticalScrollEnabled(e){return this.onVerticalFormation(e).pipe(ge(i=>i.isEnabled()),os())}onRowHeight(e){return this.onVerticalFormation(e).pipe(ge(i=>i.getRowHeight()),os())}onContainerHeight(e){return this.onVerticalFormation(e).pipe(ge(i=>i.getViewPortHeight()),os())}onTopMargin(e){return this.onVerticalFormation(e).pipe(ge(i=>i.getTopMargin()),os())}onVerticalFormation(e){return this.verticalFormation$.toObservable().pipe(Tt(i=>{const r=e.getId();return i.has(r)}),ge(i=>i.get(e.getId())))}next(e,i){this.verticalFormation.set(e.toString(),i),this.verticalFormation$.next(this.verticalFormation)}})(),h_e=(()=>class t extends Tu{verticalFormationRepository;positionRepository;constructor(e,i){super(),this.verticalFormationRepository=e,this.positionRepository=i}static services=[h5,ST];onEnabled(e){return this.verticalFormationRepository.onVerticalScrollEnabled(e)}onRowHeight(e){return this.verticalFormationRepository.onRowHeight(e)}onContainerHeight(e){return this.verticalFormationRepository.onContainerHeight(e)}onTopMargin(e){return this.verticalFormationRepository.onTopMargin(e)}onScrollBarPosition(e){return this.positionRepository.on(e)}})();class Hm{constructor(){}}let g_e=(()=>class t extends Hm{verticalFormationDispatcher;constructor(e){super(),this.verticalFormationDispatcher=e}static services=[c5];enableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!0,e)}disableVirtualScroll(e){this.verticalFormationDispatcher.setVirtualScrollEnabled(!1,e)}scrollToTop(e){this.verticalFormationDispatcher.scrollTo(0,e)}scrollToBottom(e){this.verticalFormationDispatcher.scrollTo(Number.MAX_SAFE_INTEGER,e)}scrollToIndex(e,i){this.verticalFormationDispatcher.scrollTo(e,i)}setScrollPosition(e,i){this.verticalFormationDispatcher.setScrollPosition(e,i)}})();class p_e{registerProviders(n){n.provide(l5),n.provide(h5),n.provide(Tu,h_e),n.provide(Hm,g_e),n.provide(ST)}}function m_e(){return Y.resolve(Hm)}function b_e(){return Y.resolve(Tu)}!function f_e(){new qr(new p_e,new c_e).init()}();let v_e=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:Hm,useFactory:m_e},{provide:Tu,useFactory:b_e}],imports:[Oe]})}return t})();class g5 extends jy{}class p5 extends Zy{}let f5=(()=>class t extends Ky{constructor(e){super(e)}static services=[p5]})(),m5=(()=>class t extends g5{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[f5];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}})();class X0 extends Yf{}class b5 extends X0{theme;constructor(n,e){super(n,"SetSchemaThemeCommand"),this.theme=e}getTheme(){return this.theme}}class __e{forCommand(){return b5}handle(n,e){const i=e.getTheme();n.changeTheme(i)}}class v5 extends X0{coloring;constructor(n,e){super(n,"SetRowColoringCommand"),this.coloring=e}getColoring(){return this.coloring}}class y_e{forCommand(){return v5}handle(n,e){const i=e.getColoring();n.setRowColoring(i)}}class _5 extends X0{enabled;constructor(n,e){super(n,"SetSchemaHorizontalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}}class w_e{domainEventPublisher=Y.resolve(xt);forCommand(){return _5}handle(n,e){const i=e.isEnabled();n.setHorizontalGrid(i)}publish(n,e){this.domainEventPublisher.publishFromAggregate(n)}}class y5 extends X0{enabled;constructor(n,e){super(n,"SetSchemaVerticalGridCommand"),this.enabled=e}isEnabled(){return this.enabled}}class C_e{domainEventPublisher=Y.resolve(xt);forCommand(){return y5}handle(n,e){const i=e.isEnabled();n.setVerticalGrid(i)}publish(n,e){this.domainEventPublisher.publishFromAggregate(n)}}class RT extends dn{constructor(){super()}}class J0 extends Bm{rowColoring;constructor(n,e){super(n,e,"RowColoringSetEvent"),this.rowColoring=e}getRowColoring(){return this.rowColoring}}class ew extends Bm{horizontalGrid;constructor(n,e){super(n,e,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}getHorizontalGrid(){return this.horizontalGrid}}class tw extends Bm{verticalGrid;constructor(n,e){super(n,e,"SchemaVerticalGridSetEvent"),this.verticalGrid=e}getVerticalGrid(){return this.verticalGrid}}class D_e{verticalGrid;horizontalGrid;theme;rowColoring;constructor(n,e,i,r){this.verticalGrid=n,this.horizontalGrid=e,this.theme=i,this.rowColoring=r}getRowColoring(){return this.rowColoring}}let E_e=(()=>class t{schemaCssClassesRepository;rowColoring;horizontalGrid;verticalGrid;schemaTheme;constructor(e){this.schemaCssClassesRepository=e}static services=[RT];forEvents(){return[Vm,J0,ew,tw]}handle(e){e.ofMessageType("RowColoringSetEvent")&&(this.rowColoring=e.getRowColoring()),e.ofMessageType("SchemaHorizontalGridSetEvent")&&(this.horizontalGrid=e.getHorizontalGrid()),e.ofMessageType("SchemaVerticalGridSetEvent")&&(this.verticalGrid=e.getVerticalGrid()),e.ofMessageType("SchemaThemeSetEvent")&&(this.schemaTheme=e.getTheme()),this.publish(e.getAggregateId())}publish(e){void 0!==this.rowColoring&&void 0!==this.horizontalGrid&&void 0!==this.verticalGrid&&void 0!==this.schemaTheme&&this.schemaCssClassesRepository.next(e,new D_e(this.verticalGrid,this.horizontalGrid,this.schemaTheme,this.rowColoring))}})();const w5="SchemaAggregate";class C5 extends Zc{constructor(){super()}forEvent(){return tw}}class D5 extends Zc{constructor(){super()}forEvent(){return Vm}}class E5 extends Zc{constructor(){super()}forEvent(){return J0}}class S5 extends Zc{constructor(){super()}forEvent(){return ew}}class x5 extends BH{constructor(n){super(n,"CreateSchemaCommand")}}class S_e{forCommand(){return x5}}class Um extends Uy{}class x_e extends Um{theme;constructor(n,e){super(n,"SchemaThemeSetAggregateEvent"),this.theme=e}toDomainEvent(){return new Vm(this.getAggregateId(),this.theme)}}class I_e extends Um{rowColoring;constructor(n,e){super(n,"RowColoringSetEvent"),this.rowColoring=e}toDomainEvent(){return new J0(this.getAggregateId(),this.rowColoring)}}class T_e extends Um{verticalGrid;constructor(n,e){super(n,"SchemaHorizontalGridSetEvent"),this.verticalGrid=e}toDomainEvent(){return new tw(this.getAggregateId(),this.verticalGrid)}}class M_e extends Um{horizontalGrid;constructor(n,e){super(n,"SchemaHorizontalGridSetEvent"),this.horizontalGrid=e}toDomainEvent(){return new ew(this.getAggregateId(),this.horizontalGrid)}}class k_e extends Bm{constructor(n){super(n,null,"SchemaCreatedEvent")}}class A_e extends Um{constructor(n){super(n,"SchemaCreatedAggregateEvent")}toDomainEvent(){return new k_e(this.getAggregateId())}}class Ru extends Gy{static DEFAULT_THEME=Te.GENERIC;static DEFAULT_ROW_COLORING=Mn.ODD;static DEFAULT_VERTICAL_GRID=!0;static DEFAULT_HORIZONTAL_GRID=!0;horizontalGrid;verticalGrid;theme;rowColoring;constructor(n){super(n,"SchemaAggregate"),this.setTheme(Ru.DEFAULT_THEME),this.setHorizontalGrid(Ru.DEFAULT_HORIZONTAL_GRID),this.setVerticalGrid(Ru.DEFAULT_VERTICAL_GRID),this.setRowColoring(Ru.DEFAULT_ROW_COLORING)}createEvent(){return A_e}changeTheme(n){this.setTheme(n),n===Te.MATERIAL&&(this.setRowColoring(Mn.NONE),this.setVerticalGrid(!1)),n===Te.LIGHT&&(this.setRowColoring(Mn.NONE),this.setVerticalGrid(!1)),n===Te.DARK&&(this.setRowColoring(Mn.NONE),this.setVerticalGrid(!1)),n===Te.GENERIC&&this.setRowColoring(Mn.ODD)}setRowColoring(n){this.rowColoring=n,this.addEvent(new I_e(this.getId(),this.rowColoring))}setVerticalGrid(n){this.verticalGrid=n,this.addEvent(new T_e(this.getId(),this.verticalGrid))}setHorizontalGrid(n){this.horizontalGrid=n,this.addEvent(new M_e(this.getId(),this.horizontalGrid))}setTheme(n){this.theme=n,this.addEvent(new x_e(this.getId(),this.theme))}}class R_e extends Hy{constructor(){super()}create(n){return new Ru(n)}}class NT extends dn{constructor(){super()}}class OT extends dn{constructor(){super()}}class I5{commandDispatcher=Y.resolve(sr);create(n){this.commandDispatcher.dispatch(new x5(n))}setTheme(n,e){this.commandDispatcher.dispatch(new b5(e,n))}setRowColoring(n,e){this.commandDispatcher.dispatch(new v5(e,n))}setVerticalGrid(n,e){this.commandDispatcher.dispatch(new y5(e,n))}setHorizontalGrid(n,e){this.commandDispatcher.dispatch(new _5(e,n))}}let O_e=(()=>class t extends xo{schemaDispatcher;structurePublisher;fabricModalThemeService;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,i,r,o,s){super(),this.schemaDispatcher=e,this.structurePublisher=i,this.fabricModalThemeService=r,this.schemaRowClassArchive=o,this.schemaRowStyleArchive=s}static services=[I5,Io,cs,NT,OT];create(e){this.schemaDispatcher.create(e.toAggregateId())}setTheme(e,i,r){this.schemaDispatcher.setTheme(e,i.toAggregateId()),this.fabricModalThemeService.changeTheme(this.toFabricTheme(e)),this.structurePublisher.setRowHeightBasedOnTheme(e,r)}setRowColoring(e,i){const r=this.toSchemaRowColoring(e);this.schemaDispatcher.setRowColoring(r,i.toAggregateId())}setVerticalGrid(e,i){this.schemaDispatcher.setVerticalGrid(e,i.toAggregateId())}setHorizontalGrid(e,i){this.schemaDispatcher.setHorizontalGrid(e,i.toAggregateId())}setRowClass(e,i){return this.schemaRowClassArchive.next(i.toAggregateId(),e)}setRowStyle(e,i){return this.schemaRowStyleArchive.next(i.toAggregateId(),e)}toSchemaRowColoring(e){switch(e){case fi.NONE:return Mn.NONE;case fi.ODD:return Mn.ODD;case fi.EVEN:return Mn.EVEN;default:return Mn.NONE}}toFabricTheme(e){switch(e){case Te.DARK:return Rt.DARK;case Te.FABRIC:return Rt.FABRIC;case Te.GENERIC:return Rt.GENERIC;case Te.LIGHT:return Rt.LIGHT;case Te.MATERIAL:return Rt.MATERIAL;default:return Rt.FABRIC}}})(),F_e=(()=>class t extends ds{schemaCssClassesRepository;schemaThemeRepository;schemaHorizontalGridRepository;schemaRowColoringRepository;schemaVerticalGridRepository;schemaRowClassArchive;schemaRowStyleArchive;constructor(e,i,r,o,s,a,c){super(),this.schemaCssClassesRepository=e,this.schemaThemeRepository=i,this.schemaHorizontalGridRepository=r,this.schemaRowColoringRepository=o,this.schemaVerticalGridRepository=s,this.schemaRowClassArchive=a,this.schemaRowStyleArchive=c}static services=[RT,D5,S5,E5,C5,NT,OT];onTheme(e){return this.schemaThemeRepository.on(e.toAggregateId())}onceTheme(e){return Fh(this.onTheme(e))}findTheme(e){return this.schemaThemeRepository.find(e.toAggregateId())}onHorizontalGrid(e){return this.schemaHorizontalGridRepository.on(e.toAggregateId())}onVerticalGrid(e){return this.schemaVerticalGridRepository.on(e.toAggregateId())}onRowColoring(e){return this.schemaRowColoringRepository.on(e.toAggregateId())}onCssClasses(e){return this.schemaCssClassesRepository.on(e.toAggregateId())}onRowClass(e){return this.schemaRowClassArchive.on(e.toAggregateId())}onRowStyle(e){return this.schemaRowStyleArchive.on(e.toAggregateId())}})();class P_e extends ol{constructor(){super()}onThemeChanged(n){return this.onEvent(n,Vm).pipe(ge(e=>e.getTheme()))}onHorizontalGridChanged(n){return this.onEvent(n,ew).pipe(ge(e=>e.getHorizontalGrid()))}onVerticalGridChanged(n){return this.onEvent(n,tw).pipe(ge(e=>e.getVerticalGrid()))}onRowColoring(n){return this.onEvent(n,J0).pipe(ge(e=>e.getRowColoring()))}}function V_e(){return Y.resolve(xo)}function H_e(){return Y.resolve(ds)}function U_e(){return Y.resolve(ol)}new qr(new class L_e{registerProviders(n){n.provide(I5),n.provide(g5,m5),n.provide(f5),n.provide(p5),n.provide(xo,O_e),n.provide(ds,F_e),n.provide(ol,P_e),n.provide(RT)}},new class N_e{defineAggregate(){return{aggregateKey:w5,createCommandHandler:S_e,factory:R_e,repository:m5}}registerKey(){return w5}registerProviders(n){n.provide(NT),n.provide(OT)}registerCommandHandlers(){return[__e,y_e,w_e,C_e]}registerDomainEventHandler(){return[D5,S5,E5,C5]}registerMultiDomainEventHandler(){return[E_e]}}).init();let j_e=(()=>{class t extends $i{constructor(){super()}static forComponent(){return[]}static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:xo,useFactory:V_e},{provide:ds,useFactory:H_e},{provide:ol,useFactory:U_e}],imports:[Oe]})}return t})(),T5=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})();function G_e(){return Y.resolve(ia)}function $_e(){return Y.resolve(Eo)}function z_e(){return Y.resolve(qh)}function W_e(){return Y.resolve(Wh)}function q_e(){return Y.resolve(um)}!function _me(){new qr(new vme,new hme).init()}();let Y_e=(()=>{class t extends $i{constructor(e){super(),Y.provideValue(mn,e)}static forComponent(){return[]}static \u0275fac=function(i){return new(i||t)(I(mn))};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:ia,useFactory:G_e},{provide:Eo,useFactory:$_e},{provide:qh,useFactory:z_e},Dm,$I,j0,qI,G0,{provide:Wh,useFactory:W_e},{provide:um,useFactory:q_e}],imports:[Oe,ph,T5,_u,Qc,as,Xc,rI,_u,Qc,as,Xc]})}return t})();const k5=[U4,j4,G4,$4,z4,W4,q4,Y4,K4,Z4,Q4,X4,J4,ej,tj,nj,ij,rj,oj];class A5 extends mt{constructor(n){super(n,null,"SetSourceLoadingEvent")}}class R5 extends at{enabled;constructor(n,e){super(n,"SourceSetLoadingCommand"),this.enabled=e}isEnabled(){return this.enabled}}class K_e{domainEventPublisher=Y.resolve(xt);forCommand(){return R5}handle(n,e){const i=e.isEnabled();n.getSource().setLoading(i)}publish(n,e){this.domainEventPublisher.publish(new A5(e.getAggregateId()))}}class N5 extends at{items;constructor(n,e=[]){super(n,"SetOriginCommand"),this.items=e}getItems(){return this.items}}let Z_e=(()=>class t{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[Am];forCommand(){return N5}handle(e,i){const r=i.getItems();e.setOrigin(r)}publish(e,i){const r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}})();class O5 extends at{params;constructor(n,e){super(n,"StructureEditSourceItemCommand"),this.params=e}getParams(){return this.params}}let Q_e=(()=>class t{structureSourceDomainEventPublisher;constructor(e){this.structureSourceDomainEventPublisher=e}static services=[Am];forCommand(){return O5}handle(e,i){const r=i.getParams();e.editItem(r)}publish(e,i){const r=e.getEvents();this.structureSourceDomainEventPublisher.publish(r)}})();class X_e extends xn{beforeItem;afterItem;constructor(n,e,i){super(n,"StructureSourceItemEditedAggregateEvent"),this.beforeItem=e,this.afterItem=i}toDomainEvent(){return new vI(this.getAggregateId(),this.beforeItem,this.afterItem)}getBeforeItem(){return this.beforeItem}getAfterItem(){return this.afterItem}}class J_e extends xn{origin;constructor(n,e){super(n,"StructureOriginChangedAggregateEvent"),this.origin=e}toDomainEvent(){return new km(this.getAggregateId(),this.origin)}getOrigin(){return this.origin}}class nw extends Ph{constructor(n){super(n)}toString(){return this.getId()}}class F5{events=[];loading=!1;fetched=!1;origin;entities=[];preparedEntities=[];slicedEntities=[];formationManager;constructor(n){this.formationManager=n,this.events.push(...this.formationManager.init(!0,Co.SINGLE,Ri.ROW))}isLoading(){return this.loading}setLoading(n){this.loading=n}setEntities(n){this.entities=n,this.recalculatePositions()}getEntities(){return this.entities}setPreparedEntities(){this.preparedEntities=Array.from(this.entities)}getPreparedEntities(){return this.preparedEntities}setSlicedEntities(n){this.slicedEntities=n}getSlicedEntities(){return this.slicedEntities}setOrigin(n=[],e){return this.origin=this.convertItems(n),this.createOriginChangedEvent(e)}setConvertedOrigin(n=[],e){return this.origin=Array.from(n),this.createOriginChangedEvent(e)}getOrigin(){return this.origin}editOriginItem(n,e,i,r){const o=this.findOriginItem(n),s=o.clone();return o&&(o.sourceItem[i.getAccessor()]=e,o.bumpVersion()),[new X_e(r,s,o.clone()),this.createOriginChangedEvent(r)]}deleteAllSelected(n){let e=[];return this.formationManager.getSelectedItemIds().forEach(r=>{e=e.concat(this.deleteOriginItemByItemId(r,n))}),e}deleteOriginItem(n,e){if(n instanceof nw)return this.deleteOriginItemByItemId(n,e);if(Array.isArray(n)){let i=[];return n.forEach(r=>{i=i.concat(this.deleteOneOriginItem(r,e))}),i}return Number.isInteger(n)?this.deleteOriginItemByIndex(n,e):[]}addOriginItem(n,e){return this.origin.push(n),[this.createOriginChangedEvent(e)]}setCustomConfig(n){return this.formationManager.setCustomConfig(n)}selectCustom(n){this.formationManager.selectCustom(n,this.getEntities())}selectAll(){this.formationManager.selectAll(this.getEntities().map(n=>n.getId()))}unselectAll(){this.formationManager.unselectAll()}selectByIndex(n){this.formationManager.selectByIndex(n,this.getEntities().map(e=>e.getId()))}selectByIds(n){this.formationManager.selectByIds(n,this.getEntities())}reSelect(){this.formationManager.reSelectByIds(this.getEntities())}setSelectedRows(n){this.formationManager.selectRows(n,this.getEntities().map(e=>e.getId()))}toggleRow(n,e){this.formationManager.toggleRow(n,e,this.getEntities().map(i=>i.getId()))}getFormation(){return this.formationManager}convertItems(n){return n.map((e,i)=>new K0(new nw(pu.generate()),e,i))}createOriginChangedEvent(n){return new J_e(n,this.origin)}findOriginItem(n){return this.origin.find(e=>e.getId().toString()===n)}findOriginItemIndex(n){return this.origin.findIndex(e=>e.getId().toString()===n)}recalculatePositions(){this.entities.forEach((n,e)=>{n.setPosition(e)})}deleteOneOriginItem(n,e){return n instanceof nw?this.deleteOriginItemByItemId(n,e):Number.isInteger(n)?this.deleteOriginItemByIndex(n,e):[]}deleteOriginItemByItemId(n,e){const i=this.findOriginItemIndex(n.toString());return this.deleteOriginItemByIndex(i,e)}deleteOriginItemByIndex(n,e){if(n>-1){const i=this.origin.splice(n,1);if(i.length>0){for(const r of i)this.formationManager.unselectRow(r.getId());this.formationManager.calculateAllSelected(i.map(r=>r.getId())),this.formationManager.calculateAllUnselected()}return[this.createOriginChangedEvent(e)]}return[]}deleteManyOriginItemByIndex(n,e){let i=[];return n.forEach(r=>{i=i.concat(this.deleteOriginItemByIndex(r,e))}),i}deleteManyOriginItemByItemID(n,e){let i=[];return n.forEach(r=>{i=i.concat(this.deleteOriginItemByItemId(r,e))}),i}}class eye{mode;type;constructor(n,e){this.mode=n,this.type=e}setMode(n){this.mode=n}getMode(){return this.type===Ri.RADIO?Co.SINGLE:this.mode}isSingle(){return this.getMode()===Co.SINGLE}setType(n){this.type=n}getType(){return this.type}}class P5 extends mt{mode;constructor(n,e){super(n,e,"SelectionModeSetEvent"),this.mode=e}getMode(){return this.mode}}class FT extends xn{mode;constructor(n,e){super(n,"SelectionModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new P5(this.getAggregateId(),this.mode)}}class L5 extends mt{selectionType;constructor(n,e){super(n,e,"SelectionTypeSetEvent"),this.selectionType=e}getType(){return this.selectionType}}class PT extends xn{selectionType;constructor(n,e){super(n,"SelectionTypeSetAggregateEvent"),this.selectionType=e}toDomainEvent(){return new L5(this.getAggregateId(),this.selectionType)}}class LT extends mt{enabled;constructor(n,e){super(n,e,"SelectionEnabledSetEvent"),this.enabled=e}isEnabled(){return this.enabled}}class BT extends xn{enabled;constructor(n,e){super(n,"SelectionEnabledSetAggregateEvent"),this.enabled=e}toDomainEvent(){return new LT(this.getAggregateId(),this.enabled)}}class jm extends $y{constructor(n){super(n)}toString(){return super.getId()}}class Gm{key;text;customSelectId;builtIn;method;constructor(n,e,i,r,o){this.key=n,this.text=e,this.customSelectId=i,this.builtIn=r,this.method=o}getKey(){return this.key}getText(){return this.text}getCustomSelectId(){return this.customSelectId}isBuiltIn(){return this.builtIn}customSelect(n){return this.method(n)}}class B5{enabled;selections;constructor(n,e){this.enabled=n,this.selections=e}isEnabled(){return this.enabled}getSelections(){return this.selections}}let tye=(()=>{class t{enabled;selections;static id=0;constructor(e,i){this.enabled=e,this.selections=i}init(){return[]}isEnabled(){return this.enabled}setEnabled(e){this.enabled=e}getSelections(){return this.selections}setSelections(e){this.selections=e.map(i=>"string"==typeof i?new Gm("",i,new jm(i),!0):(t.id++,new Gm(i.key,i.text,new jm(`${t.id}`),!1,i.select)))}findSelection(e){return Xt.of(this.selections.find(i=>i.getCustomSelectId().equals(e)))}}return t})();class V5 extends mt{customSelection;constructor(n,e){super(n,e,"FormationCustomSelectionChangeEvent"),this.customSelection=e}getCustomSelection(){return this.customSelection}}class H5 extends xn{customSelection;constructor(n,e){super(n,"FormationCustomSelectionChangeAggregateEvent"),this.customSelection=e}toDomainEvent(){return new V5(this.getAggregateId(),this.customSelection)}}class nye{id;selectedItemIds;enabled;selection=new eye(Co.SINGLE,Ri.ROW);allSelected;allUnselected;customSelection;matcher=n=>n.id;constructor(n,e){this.id=n,this.selectedItemIds=e}init(n,e,i){return this.enabled=n,this.selection.setMode(e),this.selection.setType(i),this.customSelection=new tye(!1,[new Gm("select_all","SELECT_ALL",new jm("SELECT_ALL"),!0),new Gm("UNSELECT_ALL","UNSELECT_ALL",new jm("UNSELECT_ALL"),!0),new Gm("","INVERT",new jm("INVERT"),!0)]),[new BT(this.getId(),this.enabled),new FT(this.getId(),this.selection.getMode()),new PT(this.getId(),this.selection.getType()),new H5(this.getId(),new B5(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}setSelection(n){return this.enabled=n,[new BT(this.getId(),this.enabled)]}setMode(n){return this.selection.setMode(n),[new FT(this.getId(),this.selection.getMode()),new PT(this.getId(),this.selection.getType())]}setType(n){return this.selection.setType(n),[new FT(this.getId(),this.selection.getMode()),new PT(this.getId(),this.selection.getType())]}setMatcher(n){this.matcher=n}setCustomConfig(n){return n?.enabled&&this.customSelection.setEnabled(n.enabled),n?.selections&&this.customSelection.setSelections(n.selections),[new H5(this.getId(),new B5(this.customSelection.isEnabled(),this.customSelection.getSelections()))]}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}getSelectedItemIds(){return Array.from(this.selectedItemIds).map(n=>new nw(n))}selectCustom(n,e){this.customSelection.findSelection(n).ifPresent(i=>{if(i.isBuiltIn())switch(i.getCustomSelectId().toString()){case"SELECT_ALL":this.selectAll(e.map(r=>r.getId()));break;case"UNSELECT_ALL":this.unselectAll();break;case"INVERT":this.invertSelected(e.map(r=>r.getId()))}else{const r=i.customSelect(e);this.selectedItemIds=new Set(r.map(o=>o.getId().toString()))}})}selectAll(n){this.selectedItemIds=new Set(n.map(e=>e.toString())),this.allSelected=!0,this.allUnselected=!1}unselectAll(){this.selectedItemIds.clear(),this.allSelected=!1,this.allUnselected=!0}invertSelected(n){const e=this.getSelectedItemIds(),i=n.filter(r=>!e.some(o=>o.equals(r)));this.selectedItemIds=new Set(i.map(r=>r.toString())),this.calculateAllSelected(n),this.calculateAllUnselected()}reSelectByIds(n){this.selectByIds(this.getSelectedItemIds().map(e=>e.getId()),n),this.calculateAllSelected(n.map(e=>e.getId())),this.calculateAllUnselected()}selectByIds(n,e){if(!this.enabled)return;const i=[];for(let o=0;o<n.length;o++){const s=e.filter(a=>this.matcher(a.getSourceItem())===n[o]).map(a=>a.getId().toString());i.push(...s)}let r=Kr.ADD;this.selection.isSingle()&&(r=Kr.NONE),i.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e.map(o=>o.getId())),this.calculateAllUnselected()}selectByIndex(n,e){if(!this.enabled)return;const i=n.map(o=>(e[o]||console.error("Item not found"),e[o].toString()));let r=Kr.ADD;this.selection.isSingle()&&(r=Kr.NONE),i.forEach(o=>{this.toggleRowByType(r,o)}),this.calculateAllSelected(e),this.calculateAllUnselected()}selectRows(n,e){}toggleRow(n,e,i){this.enabled&&(e===Kr.ADD&&this.selection.isSingle()&&(e=Kr.NONE),this.toggleRowByType(e,n),this.calculateAllSelected(i),this.calculateAllUnselected())}calculateAllSelected(n){if(n.length!==this.selectedItemIds.size)this.allSelected=!1;else{const e=Array.from(this.selectedItemIds);let i=!0;e.sort(),n.sort();for(let r=0;r<e.length;r+=1)if(e[r]!==n[r].toString()){i=!1;break}this.allSelected=i}}calculateAllUnselected(){this.allUnselected=0===this.selectedItemIds.size}unselectRow(n){this.selectedItemIds.has(n.toString())&&this.selectedItemIds.delete(n.toString())}getId(){return this.id}getType(){return this.selection.getType()}toggleRowByType(n,e){switch(n){case Kr.NONE:this.selectedItemIds.has(e)?this.selectedItemIds.delete(e):(this.selectedItemIds.clear(),this.selectedItemIds.add(e));break;case Kr.ADD:this.selectedItemIds.has(e)?this.selectedItemIds.delete(e):this.selectedItemIds.add(e)}}}class U5{create(n){return new nye(n,new Set)}}let j5=(()=>class t{formationManagerFactory;constructor(e){this.formationManagerFactory=e}static services=[U5];createDefault(e){const i=this.formationManagerFactory.create(e);return new F5(i)}create(e){const i=this.formationManagerFactory.create(e);return new F5(i)}})();var $m=function(t){return t[t.INDEX=0]="INDEX",t[t.ITEM_ID=1]="ITEM_ID",t[t.MANY_INDEX=2]="MANY_INDEX",t[t.MANY_ITEM_ID=3]="MANY_ITEM_ID",t}($m||{});class ua extends at{payload;type;constructor(n,e,i){super(n,"DeleteOriginItemCommand"),this.payload=e,this.type=i}static byIndex(n,e){return new ua(n,e,$m.INDEX)}static byManyIndex(n,e){return new ua(n,e,$m.MANY_INDEX)}static byItemId(n,e){return new ua(n,e,$m.ITEM_ID)}static byManyItemId(n,e){return new ua(n,e,$m.MANY_ITEM_ID)}getType(){return this.type}getPayload(){return this.payload}}class iye{forCommand(){return ua}handle(n,e){n.deleteItem(e.getPayload())}}let VT=(()=>{class t extends dn{static default=[];constructor(){super(t.default)}}return t})(),rye=(()=>class t{structureSourceOriginRepository;constructor(e){this.structureSourceOriginRepository=e}static services=[VT];forEvent(){return km}handle(e){if(e.ofMessageType("OriginSetEvent")){const i=e.getOrigin();this.structureSourceOriginRepository.next(e.getAggregateId(),i)}}})(),HT=(()=>{class t extends dn{static default=[];constructor(){super(t.default)}getPreparedItems(e){return this.find(e).getValueOrNullOrThrowError()}}return t})(),oye=(()=>class t{structurePreparedItemsRepository;constructor(e){this.structurePreparedItemsRepository=e}static services=[HT];forEvent(){return dT}handle(e){if(e.ofMessageType("StructurePreparedEntitiesSetEvent")){const i=e.getPreparedItems();this.structurePreparedItemsRepository.next(e.getAggregateId(),i)}}})();class sye{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(VT),n.provide(j5),n.provide(Am)}registerCommandHandlers(){return[K_e,Z_e,Q_e,iye]}registerDomainEventHandler(){return[rye,oye]}registerMultiDomainEventHandler(){return[]}}let aye=(()=>class t extends hs{structureRepository;structurePreparedItemsRepository;structureSourceOriginRepository;constructor(e,i,r){super(),this.structureRepository=e,this.structurePreparedItemsRepository=i,this.structureSourceOriginRepository=r}static services=[fm,HT,VT];findItems(e){return this.structureRepository.getStructure(e).getEntities()}onItems(e){return this.structureRepository.on(e).pipe(ge(i=>i.getEntities()),os((i,r)=>{if(i.length!==r.length)return!1;let o=!0;return i.forEach((s,a)=>{s.equals(r[a])||(o=!1)}),o}))}onItemsSize(e){return this.onItems(e).pipe(ge(i=>i.length))}onceItems(e){return Fh(this.onItems(e))}onOriginSize(e){return this.structureSourceOriginRepository.on(e).pipe(ge(i=>i.length))}onLoading(e){return this.structureRepository.on(e).pipe(ge(i=>i.getSource().isLoading()))}onPreparedItems(e){return this.structurePreparedItemsRepository.on(e)}findPreparedItems(e){return this.structurePreparedItemsRepository.getPreparedItems(e)}})(),cye=(()=>class t extends So{commandDispatcher;fieldWarehouse;sourceReadModelService;constructor(e,i,r){super(),this.commandDispatcher=e,this.fieldWarehouse=i,this.sourceReadModelService=r}static services=[sr,xm,hs];setOrigin(e,i){this.commandDispatcher.dispatch(new N5(i,e))}setLoading(e,i){this.commandDispatcher.dispatch(new R5(i,e))}editItem(e,i){this.commandDispatcher.dispatch(new O5(i,e))}editItemByIndex(e,i,r,o){bu(f0(Kc(this.sourceReadModelService.onceItems(o).pipe(ge(c=>c[e].getId()))),Kc(this.fieldWarehouse.onFields(o)))).pipe(Oh(1)).subscribe(c=>{this.editItem(new q0(c[0],c[1][i],r),o)})}deleteRow(e,i){void 0!==e.getItemId()?this.deleteItemById(e.getItemId(),i):void 0!==e.getIndex()&&this.deleteItemByIndex(e.getIndex(),i)}deleteRows(e,i){e.length>0&&(void 0!==e[0].getItemId()?this.deleteManyItemsByItemIds(e.map(r=>r.getItemId()),i):void 0!==e[0].getIndex()&&this.deleteManyItemsByIndex(e.map(r=>r.getIndex()),i))}deleteItemByIndex(e,i){this.commandDispatcher.dispatch(ua.byIndex(i,e))}deleteItemById(e,i){this.commandDispatcher.dispatch(ua.byItemId(i,e))}deleteManyItemsByIndex(e,i){this.commandDispatcher.dispatch(ua.byManyIndex(i,e))}deleteManyItemsByItemIds(e,i){this.commandDispatcher.dispatch(ua.byManyItemId(i,e))}})();class lye{registerProviders(n){n.provide(So,cye),n.provide(hs,aye),n.provide(lm),n.provide(HT),n.provide(u5)}}function dye(){return Y.resolve(So)}function hye(){return Y.resolve(hs)}function gye(){return Y.resolve(lm)}!function uye(){new qr(new lye,new sye).init()}();let pye=(()=>{class t extends $i{static forComponent(){return[]}static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:So,useFactory:dye},{provide:hs,useFactory:hye},{provide:lm,useFactory:gye}],imports:[Oe]})}return t})();function fye(){return Y.resolve(pm)}Y.provide(pm);let mye=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:pm,useFactory:fye}]})}return t})(),bye=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[mye]})}return t})(),vye=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({providers:[O4]})}return t})();class G5{itemIds;allSelected;allUnselected;constructor(n,e,i){this.itemIds=n,this.allSelected=e,this.allUnselected=i}getAll(){return this.itemIds}isSelected(n){return this.itemIds.some(e=>e===n)}isAllSelected(){return this.allSelected}isAllUnselected(){return this.allUnselected}isIndeterminate(){return!(this.isAllSelected()||this.isAllUnselected())}}class zm extends dn{static default=new G5([],!1,!1);constructor(){super(zm.default)}}class $5 extends at{enabled;constructor(n,e){super(n,"SetEnabledSelectionCommand"),this.enabled=e}isEnabled(){return this.enabled}}class _ye{forCommand(){return $5}handle(n,e){n.setSelection(e.isEnabled())}}class z5 extends at{selectedRow;type;constructor(n,e,i){super(n,"ToggleSelectedRowCommand"),this.selectedRow=e,this.type=i}getSelectedRow(){return this.selectedRow}getType(){return this.type}}class yye{forCommand(){return z5}handle(n,e){const i=e.getSelectedRow(),r=e.getType();n.toggleRow(i,r)}}let wye=(()=>class t{rowSelectedArchive;constructor(e){this.rowSelectedArchive=e}static services=[zm];forEvent(){return _I}handle(e){if(e.ofMessageType("SelectedRowChangedEvent")){const i=new G5(e.getSelectedRows(),e.isAllSelected(),e.isAllUnselected());this.rowSelectedArchive.next(e.getAggregateId(),i)}}})();class W5 extends at{mode;constructor(n,e){super(n,"SetSelectionModeCommand"),this.mode=e}getMode(){return this.mode}}class Cye{forCommand(){return W5}handle(n,e){n.setSelectionMode(e.getMode())}}class q5 extends at{constructor(n){super(n,"SelectAllRowsCommand")}}class Dye{forCommand(){return q5}handle(n,e){n.selectAll()}}class Y5 extends at{constructor(n){super(n,"UnselectAllRowsCommand")}}class Eye{forCommand(){return Y5}handle(n,e){n.unselectAll()}}class K5 extends at{type;constructor(n,e){super(n,"SetSelectionTypeCommand"),this.type=e}getType(){return this.type}}class Sye{forCommand(){return K5}handle(n,e){n.setSelectionType(e.getType())}}class Z5 extends Zc{constructor(){super()}forEvent(){return L5}}class Q5 extends Zc{constructor(){super()}forEvent(){return P5}}class X5 extends Zc{constructor(){super()}forEvent(){return LT}}class J5 extends at{selectedRows;constructor(n,e){super(n,"SetSelectedRowCommand"),this.selectedRows=e}getSelectedRows(){return this.selectedRows}}class xye{forCommand(){return J5}handle(n,e){const i=e.getSelectedRows();n.setSelectedRows(i)}}class eG extends at{indexes;constructor(n,e){super(n,"SelectRowByIndexCommand"),this.indexes=e}getIndexes(){return this.indexes}}class Iye{forCommand(){return eG}handle(n,e){const i=e.getIndexes();n.selectByIndex(i)}}class tG extends at{ids;constructor(n,e){super(n,"SelectRowByIdCommand"),this.ids=e}getIds(){return this.ids}}class Tye{forCommand(){return tG}handle(n,e){const i=e.getIds();n.selectByIds(i)}}class nG extends at{matcher;constructor(n,e){super(n,"FormationSetMatcherCommand"),this.matcher=e}getMatcher(){return this.matcher}}class Mye{forCommand(){return nG}handle(n,e){const i=e.getMatcher();n.setFormationMatcher(i)}}class iG extends Zc{constructor(){super()}forEvent(){return V5}}class rG extends at{customSelectId;constructor(n,e){super(n,"FormationCustomSelectCommand"),this.customSelectId=e}getCustomSelectId(){return this.customSelectId}}class kye{forCommand(){return rG}handle(n,e){const i=e.getCustomSelectId();n.selectCustom(i)}}class oG extends at{config;constructor(n,e){super(n,"FormationSetCustomSelectConfigCommand"),this.config=e}getConfig(){return this.config}}class Aye{forCommand(){return oG}handle(n,e){const i=e.getConfig();n.setSelectionCustomConfig(i)}}class Rye{defineAggregate(){return null}registerKey(){return ko}registerProviders(n){n.provide(U5)}registerCommandHandlers(){return[_ye,Cye,Sye,Dye,Eye,yye,xye,Iye,Tye,Mye,kye,Aye]}registerDomainEventHandler(){return[wye,Z5,Q5,X5,iG]}registerMultiDomainEventHandler(){return[]}}let Nye=(()=>class t extends Do{rowSelectedRepository;formationModeRepository;formationTypeRepository;formationEnabledRepository;formationCustomRepository;sourceWarehouse;constructor(e,i,r,o,s,a){super(),this.rowSelectedRepository=e,this.formationModeRepository=i,this.formationTypeRepository=r,this.formationEnabledRepository=o,this.formationCustomRepository=s,this.sourceWarehouse=a}static services=[zm,Q5,Z5,X5,iG,hs];findSelectedRows(e){const i=this.sourceWarehouse.findPreparedItems(e),r=this.findSelectedItemIds(e).getValueOrNullOrThrowError(),o=[],s=i.length;for(let a=0;a<s;a+=1){const c=i[a];r.some(l=>l===c.getId().toString())&&o.push(new _0(c.getSourceItem(),a,c.getId()))}return Xt.of(o)}onRowSelectedReadModel(e){return this.rowSelectedRepository.on(e)}findSelectedItemIds(e){return this.rowSelectedRepository.find(e).map(i=>i.getAll())}onSelectedRows(e){return this.rowSelectedRepository.on(e).pipe(ge(i=>i.getAll()))}onMode(e){return this.formationModeRepository.on(e)}onType(e){return this.formationTypeRepository.on(e)}onSelectionEnabled(e){return this.formationEnabledRepository.on(e)}onCustomSelections(e){return this.formationCustomRepository.on(e)}})(),Oye=(()=>class t extends ar{commandDispatcher;constructor(e){super(),this.commandDispatcher=e}static services=[sr];setSelection(e,i){this.commandDispatcher.dispatch(new $5(i,e))}selectRows(e,i){this.commandDispatcher.dispatch(new J5(i,e))}selectByIndex(e,i){this.commandDispatcher.dispatch(new eG(i,e))}selectByIds(e,i){this.commandDispatcher.dispatch(new tG(i,e))}toggleSelectedRow(e,i,r){this.commandDispatcher.dispatch(new z5(r,e,i))}changeMode(e,i){this.commandDispatcher.dispatch(new W5(i,e))}changeType(e,i){this.commandDispatcher.dispatch(new K5(i,e))}setMatcher(e,i){this.commandDispatcher.dispatch(new nG(i,e))}selectAll(e){this.commandDispatcher.dispatch(new q5(e))}unselectAll(e){this.commandDispatcher.dispatch(new Y5(e))}selectCustom(e,i){this.commandDispatcher.dispatch(new rG(i,e))}setCustomSelection(e,i){this.commandDispatcher.dispatch(new oG(i,e))}})();class Fye{registerProviders(n){n.provide(zm),n.provide(il),n.provide(ar,Oye),n.provide(Do,Nye)}}function Lye(){return Y.resolve(ar)}function Bye(){return Y.resolve(Do)}function Vye(){return Y.resolve(il)}!function Pye(){new qr(new Fye,new Rye).init()}();let Hye=(()=>{class t extends $i{static \u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static \u0275mod=re({type:t});static \u0275inj=ie({providers:[{provide:ar,useFactory:Lye},{provide:Do,useFactory:Bye},{provide:il,useFactory:Vye}],imports:[Oe,Ao,Qc,rm]})}return t})();class sG extends at{constructor(n){super(n,"CreateStructureCommand")}}class Uye{forCommand(){return sG}}class jye extends xn{preparedItems;constructor(n,e){super(n,"StructurePreparedEntitiesSetAggregateEvent"),this.preparedItems=e}toDomainEvent(){return new dT(this.getAggregateId(),this.preparedItems)}getPreparedItems(){return this.preparedItems}}class Gye extends xn{fieldConfigs;fields;constructor(n,e,i){super(n,"FieldsInitedAggregateEvent"),this.fieldConfigs=e,this.fields=i}toDomainEvent(){return new D0(this.getAggregateId(),this.fieldConfigs,this.fields)}getFieldConfigs(){return this.fieldConfigs}getFields(){return this.fields}}class $ye extends xn{constructor(n){super(n,"StructureCreatedAggregateEvent")}toDomainEvent(){return new Q0(this.getAggregateId())}}class zye extends xn{filterTypes;constructor(n,e){super(n,"FilterTypesInitedAggregateEvent"),this.filterTypes=e}toDomainEvent(){return new mj(this.getAggregateId(),this.filterTypes)}getFilterTypes(){return this.filterTypes}}class Wye extends xn{constructor(n){super(n,"FilterAddedEvent")}toDomainEvent(){return new ng(this.getAggregateId(),[])}}class qye extends xn{activeFilters;constructor(n,e){super(n,"FilterAddedEvent"),this.activeFilters=e}toDomainEvent(){return new ng(this.getAggregateId(),this.activeFilters)}}class Yye extends xn{activeFilters;constructor(n,e){super(n,"FilterRemovedAggregateEvent"),this.activeFilters=e}toDomainEvent(){return new ng(this.getAggregateId(),this.activeFilters)}}class Kye extends xn{map;constructor(n,e){super(n,"UniqueFilterCalculatedAggregateEvent"),this.map=e}toDomainEvent(){return new bj(this.getAggregateId(),this.map)}}class Zye extends xn{constructor(n){super(n,"UniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new AT(this.getAggregateId())}}class Qye extends xn{constructor(n){super(n,"UniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new TT(this.getAggregateId())}}class Xye extends xn{constructor(n){super(n,"AllUniqueFilterUnselectedAggregateEvent")}toDomainEvent(){return new MT(this.getAggregateId())}}class Jye extends xn{constructor(n){super(n,"AllUniqueFilterSelectedAggregateEvent")}toDomainEvent(){return new kT(this.getAggregateId())}}class e0e extends xn{selectedRows;allSelected;allUnselected;constructor(n,e,i,r){super(n,"SelectedRowChangedAggregateEvent"),this.selectedRows=e,this.allSelected=i,this.allUnselected=r}toDomainEvent(){return new _I(this.getAggregateId(),this.selectedRows,this.allSelected,this.allUnselected)}}class t0e extends Gy{pagingManager;sourceManager;sorterManager;filterManager;searchManager;verticalFormation;fieldCollection;summariesManager;uniqueFilterManager;constructor(n,e,i,r,o,s,a,c,l,u){super(n,ko),this.pagingManager=e,this.sourceManager=i,this.verticalFormation=r,this.summariesManager=o,this.sorterManager=s,this.filterManager=a,this.uniqueFilterManager=c,this.searchManager=l,this.fieldCollection=u,this.addEvent(this.sourceManager.events),this.sourceManager.events=[]}createEvent(){return $ye}clearEvents(){super.clearEvents(),this.pagingManager.clearEvents()}init(){this.initTheme()}setVerticalFormationEnabled(n){this.verticalFormation.setEnabled(n),this.calculateSource()}getVerticalFormation(){return this.verticalFormation}setSummariesEnabled(n){return this.summariesManager.setEnabled(n),this.calculateSource(),this.getEvents()}setOrigin(n){return this.addEvent(this.sourceManager.setOrigin(n,this.getId())),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}deleteItem(n){this.addEvent(this.sourceManager.deleteOriginItem(n,this.getId())),this.generateSelectedRowChangedEvent(),this.calculateSource()}editItem(n){const e=n.getItemId(),i=n.getColumnFieldId(),r=this.fieldCollection.getField(i),o=n.getValue();return this.sourceManager.editOriginItem(e,o,r,this.getId()).forEach(a=>this.addEvent(a)),this.calculateUniqueValues(),this.calculateSource(),this.getEvents()}setHeight(n){this.verticalFormation.setViewportHeight(n),this.calculateSourceBasedOnVirtualScroll()}setTheme(n){n===Te.MATERIAL&&this.getVerticalFormation().setRowHeight(52),n===Te.GENERIC&&this.getVerticalFormation().setRowHeight(42),n===Te.FABRIC&&this.getVerticalFormation().setRowHeight(36),n===Te.LIGHT&&this.getVerticalFormation().setRowHeight(56),n===Te.DARK&&this.getVerticalFormation().setRowHeight(38)}setScrollPosition(n){this.verticalFormation.setScrollPosition(n),this.calculateSourceBasedOnVirtualScroll()}scrollToIndex(n){this.addEvent(this.verticalFormation.scrollToIndex(n))}setSelection(n){this.sourceManager.getFormation().setSelection(n),this.addEvent(new BT(this.getId(),n))}setSelectionMode(n){this.addEvent(this.sourceManager.getFormation().setMode(n))}setSelectionType(n){this.addEvent(this.sourceManager.getFormation().setType(n))}setFormationMatcher(n){this.getFormation().setMatcher(n),this.sourceManager.reSelect(),this.generateSelectedRowChangedEvent()}selectByIndex(n){this.sourceManager.selectByIndex(n),this.generateSelectedRowChangedEvent()}selectByIds(n){this.sourceManager.selectByIds(n),this.generateSelectedRowChangedEvent()}setSelectedRows(n){this.sourceManager.setSelectedRows(n),this.generateSelectedRowChangedEvent()}setSelectionCustomConfig(n){this.addEvent(this.sourceManager.setCustomConfig(n))}toggleRow(n,e){this.sourceManager.toggleRow(n,e),this.generateSelectedRowChangedEvent()}selectCustom(n){this.sourceManager.selectCustom(n),this.generateSelectedRowChangedEvent()}selectAll(){this.sourceManager.selectAll(),this.generateSelectedRowChangedEvent()}unselectAll(){this.sourceManager.unselectAll(),this.generateSelectedRowChangedEvent()}getFormation(){return this.sourceManager.getFormation()}getPaging(){return this.pagingManager}changePaging(n){this.pagingManager.change(n),this.calculateSource()}setPaging(n){this.pagingManager=n,this.calculateSource()}nextPage(){this.pagingManager.nextPage(),this.calculateSource()}prevPage(){this.pagingManager.prevPage(),this.calculateSource()}changePageSize(n){return this.pagingManager.changePageSize(n).forEach(i=>{this.addEvent(i)}),this.calculateSource(),this.getEvents()}getEntities(){return this.sourceManager.getSlicedEntities()}getSource(){return this.sourceManager}createFields(n){this.fieldCollection.initFields(n);const e=this.fieldCollection.getAllFields();return this.addEvent(new Gye(this.getId(),n,e)),this.filterManager.assignFilterTypes(e),this.addEvent(new zye(this.getId(),this.filterManager.getFilterTypes())),this.getEvents()}setSortingConfig(n){this.sorterManager.setConfig(n)}toggleSort(n){const e=this.fieldCollection.getField(n);return this.sorterManager.toggle(e),this.calculateSource(),this.sorterManager.getAll()}setSortOrder(n,e){const i=this.fieldCollection.getField(n);return this.sorterManager.setSortOrder(i,e),this.calculateSource(),this.sorterManager.getAll()}setFilterConfig(n){this.filterManager.getSettings().setFilterConfig(n)}setQuickFiltersConfig(n){this.filterManager.getSettings().setQuickFiltersConfig(n)}toggleFilter(n,e,i){return void 0===this.fieldCollection.getField(n)||this.calculateSource(),[]}addFilter(n,e,i){this.filterManager.add(n,e,i);const r=this.fieldCollection.getFieldsAsMap(),o=this.filterManager.getAllActiveFilters(r);this.addEvent(new qye(this.getId(),o)),this.calculateSource()}removeAllFilters(){this.filterManager.removeAll(),this.addEvent(new Wye(this.getId())),this.calculateSource()}removeFilter(n){this.filterManager.remove(n);const e=this.fieldCollection.getFieldsAsMap(),i=this.filterManager.getAllActiveFilters(e);this.addEvent(new Yye(this.getId(),i)),this.calculateSource()}setSearchingConfig(n){this.filterManager.getSettings().setSearchingConfig(n)}addSearchPhrase(n){const e=this.fieldCollection.getAllFields();return this.searchManager.addSearchPhrase(e,n),this.calculateSource(),[]}removeSearchPhrase(){return this.searchManager.removeSearchFilters(),this.calculateSource(),[]}selectAllUniqueFilter(n){this.uniqueFilterManager.selectAll(n),this.addEvent(new Jye(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}selectUniqueFilter(n,e){this.uniqueFilterManager.select(n,e),this.addEvent(new Zye(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectAllUniqueFilter(n){this.uniqueFilterManager.unselectAll(n),this.addEvent(new Xye(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}unselectUniqueFilter(n,e){this.uniqueFilterManager.unselect(n,e),this.addEvent(new Qye(this.getId())),this.generateCalculateUniqueValuesAggregateEvent(),this.calculateSource()}calculateSource(){if(!this.sourceManager.getOrigin()||!this.pagingManager)return;this.sourceManager.setEntities(this.sourceManager.getOrigin()),this.sourceManager.setEntities(this.filterManager.filter(this.sourceManager.getEntities(),this.fieldCollection.getFieldsAsMap()));const n=this.searchManager.search(this.sourceManager.getEntities());this.sourceManager.setEntities(n);const e=this.sorterManager.sort(this.sourceManager.getEntities());this.sourceManager.setEntities(e),this.sourceManager.setPreparedEntities(),this.pagingManager.setSourceSize(this.sourceManager.getPreparedEntities().length),this.addEvent(new jye(this.getId(),e)),this.summariesManager.calculate(this.fieldCollection.getAllFields(),this.sourceManager.getEntities()).forEach(r=>{this.addEvent(r)}),this.sourceManager.setEntities(this.pagingManager.sample(this.sourceManager.getEntities())),this.verticalFormation.setSourceSize(this.sourceManager.getEntities().length),this.calculateSourceBasedOnVirtualScroll()}calculateSourceBasedOnVirtualScroll(){if(this.verticalFormation.isEnabled()){const n=this.verticalFormation.getRange();this.sourceManager.setSlicedEntities(this.sourceManager.getEntities().slice(n.getStart(),n.getEnd()))}else this.sourceManager.setSlicedEntities(this.sourceManager.getEntities())}initTheme(){this.setTheme(Ru.DEFAULT_THEME)}calculateUniqueValues(){const n=this.fieldCollection.getAllFields(),e=this.sourceManager.getOrigin();this.uniqueFilterManager.calculateAll(e,n),this.generateCalculateUniqueValuesAggregateEvent()}generateCalculateUniqueValuesAggregateEvent(){this.addEvent(new Kye(this.getId(),this.uniqueFilterManager.getAll(this.fieldCollection.getAllFields())))}generateSelectedRowChangedEvent(){this.addEvent(new e0e(this.getId(),this.sourceManager.getFormation().getSelectedItemIds().map(n=>n.toString()),this.sourceManager.getFormation().isAllSelected(),this.sourceManager.getFormation().isAllUnselected()))}}class n0e{sorterId;columnId;field;rank=1;direction;constructor(n,e,i=!0){this.sorterId=n,this.field=e,this.direction=i}getId(){return this.sorterId}getRank(){return this.rank}getField(){return this.field}hasDirection(){return this.direction}changeDirection(){this.direction=!this.direction}setDirection(n){this.direction=n}sort(n){return 0===n.length?n:n.sort((e,i)=>this.field.sort(e,i,this.direction))}}class i0e{sorterId;constructor(n){this.sorterId=n}getId(){return this.sorterId}}class r0e{enabled;multi;sorters=new Map;constructor(n=!1,e=!1){this.enabled=n,this.multi=e}setConfig(n){n&&null!=n.enabled&&(this.enabled=n.enabled),n&&null!=n.multiSorting&&(this.multi=n.multiSorting,this.sorters.clear())}toggle(n){const e=n.getId(),i=this.sorters.get(e.getId());i?i.hasDirection()?i.changeDirection():this.delete(e):this.add(n)}setSortOrder(n,e){const i=n.getId();this.sorters.get(i.getId()),e===bi.NONE?this.delete(i):e!==bi.ASC&&e!==bi.DESC||(this.delete(i),this.add(n,e===bi.ASC))}add(n,e=!0){this.addSorter(n.getId(),new n0e(new i0e(pu.generate()),n,e))}addSorter(n,e){this.multi||this.sorters.clear(),this.sorters.set(n.getId(),e)}delete(n){this.sorters.delete(n.getId())}update(){}sort(n){const e=this.getAll();let i=Array.from(n);for(const r of e)i=r.sort(i);return i}getAll(){return this.enabled?Array.from(this.sorters).map(n=>n[1]).sort((n,e)=>n.getRank()-e.getRank()).reverse():[]}}class o0e{id;value;displayValue;enabled;constructor(n,e,i,r){this.id=n,this.value=e,this.displayValue=i,this.enabled=r}getId(){return this.id}getValue(){return this.value}getDisplayValue(){return this.displayValue}isEnabled(){return this.enabled}isDisabled(){return!this.enabled}select(){this.enabled=!0}unselect(){this.enabled=!1}}class s0e{id;constructor(n){this.id=n}toString(){return this.id}equals(n){return n.toString()===this.id}}let a0e=(()=>{class t{static index=0;static generate(){return t.index+=1,new s0e(`${t.index}`)}}return t})();class c0e{values=[];allSelected;allDisabled;constructor(n,e){for(const i of n)this.values.push(new o0e(a0e.generate(),i,e.getDisplayValue(i),!0));this.calculateAllSelected(),this.calculateAllDisabled()}getAll(){return this.values}isAllSelected(){return this.allSelected}isAllDisabled(){return this.allDisabled}getNotSelected(){return this.values.filter(n=>n.isDisabled())}selectAll(){this.values.forEach(n=>{n.select()}),this.allSelected=!0,this.allDisabled=!1}select(n){this.values.filter(e=>e.getId().equals(n)).forEach(e=>{e.select()}),this.calculateAllSelected(),this.calculateAllDisabled()}unselectAll(){this.values.forEach(n=>{n.unselect()}),this.allSelected=!1,this.allDisabled=!0}unselect(n){this.values.filter(e=>e.getId().equals(n)).forEach(e=>{e.unselect()}),this.calculateAllSelected(),this.calculateAllDisabled()}calculateAllSelected(){this.allSelected=!this.values.some(n=>n.isDisabled())}calculateAllDisabled(){this.allDisabled=!this.values.some(n=>n.isEnabled())}}class l0e{uniqueValueMap=new Gx;calculate(n,e){const i=e.getId();this.uniqueValueMap.find(i).ifEmpty(()=>{const o=new Set;for(const c of n)o.add(e.getValue(c));const s=Array.from(o.values()).sort((c,l)=>e.getField().sort(c,l)),a=new c0e(s,e);this.uniqueValueMap.set(e.getId(),a)})}calculateAll(n,e){for(const i of e)this.calculate(n,i)}filterAll(n,e){let i=n;for(const r of e)i=this.filter(i,r);return i}filter(n,e){let i=[];return this.uniqueValueMap.find(e.getId()).ifPresent(r=>{i=r.isAllSelected()?n:r.isAllDisabled()?[]:n.filter(o=>{for(const s of r.getNotSelected())if(e.getField().equals(o,s.getValue()))return!1;return!0})}),i}selectAll(n){this.uniqueValueMap.find(n).ifPresent(e=>{e.selectAll()})}select(n,e){this.uniqueValueMap.find(n).ifPresent(i=>{i.select(e)})}unselectAll(n){this.uniqueValueMap.find(n).ifPresent(e=>{e.unselectAll()})}unselect(n,e){this.uniqueValueMap.find(n).ifPresent(i=>{i.unselect(e)})}getAll(n){const e=new Map;for(const i of n)this.getValues(i).ifPresent(r=>{e.set(i.getId().toString(),r)});return e}getValues(n){return this.uniqueValueMap.find(n.getId()).map(e=>e.getAll())}}let aG=(()=>class t extends Hy{pagingAggregateFactory;sourceManagerFactory;verticalFormationFactory;summariesManagerFactory;filterManagerFactory;searchManagerFactory;fieldCollectionFactory;constructor(e,i,r,o,s,a,c){super(),this.pagingAggregateFactory=e,this.sourceManagerFactory=i,this.verticalFormationFactory=r,this.summariesManagerFactory=o,this.filterManagerFactory=s,this.searchManagerFactory=a,this.fieldCollectionFactory=c}static services=[DU,j5,e5,Yj,pj,xj,Hj];create(e){const i=this.pagingAggregateFactory.createDefault(),r=this.sourceManagerFactory.createDefault(e),o=this.verticalFormationFactory.create(e),s=new r0e,a=this.filterManagerFactory.create(!1),c=this.fieldCollectionFactory.create(),l=this.summariesManagerFactory.create(e),u=this.searchManagerFactory.create(),h=new t0e(e,i,r,o,l,s,a,new l0e,u,c);return this.init(h),h}init(e){e.init()}})();class cG extends jy{}let lG=(()=>class t extends Ky{constructor(e){super(e)}static services=[xT]})(),uG=(()=>class t extends cG{inMemoryStructureAggregateStore;constructor(e){super(),this.inMemoryStructureAggregateStore=e}static services=[lG];findById(e){return this.inMemoryStructureAggregateStore.findById(e)}save(e){this.inMemoryStructureAggregateStore.save(e)}})(),u0e=(()=>class t{summariesEnabledArchive;constructor(e){this.summariesEnabledArchive=e}static services=[Z0];forEvent(){return Q0}handle(e){if(e.ofMessageType("StructureCreatedEvent")){const i=e.getAggregateId();this.summariesEnabledArchive.init(i)}}})();class d0e{defineAggregate(){return{aggregateKey:ko,createCommandHandler:Uye,factory:aG,repository:uG}}registerKey(){return ko}registerProviders(n){}registerCommandHandlers(){return[]}registerDomainEventHandler(){return[u0e]}registerMultiDomainEventHandler(){return[]}}class h0e extends mt{fieldId;filterTypeId;value;constructor(n,e,i,r){super(n,{fieldId:e,filterTypeId:i,value:r},"FilterAddedEvent"),this.fieldId=e,this.filterTypeId=i,this.value=r}}let g0e=(()=>class t extends fm{inMemoryStructureReadStore;structureIdToStructure=new Map;hermesStructure$=new ss(1);constructor(e){super(),this.inMemoryStructureReadStore=e}static services=[IT];getStructure(e){return this.structureIdToStructure.get(e.getId())}on(e){return this.hermesStructure$.toObservable().pipe(Tt(i=>{const r=e.getId();return i.has(r)}),ge(i=>i.get(e.getId())))}forEvents(){return[Q0,A5,CI,EI,DI,M0,LT,wT,yT,AI,tT,Mm,NI,km,DT,ET,CT,h0e,ng,AT,kT,TT,MT]}subs(e){const i=e.getAggregateId();this.inMemoryStructureReadStore.getById(i).ifPresent(o=>{const s=o.getId().toString();this.structureIdToStructure.set(s,o),this.hermesStructure$.next(this.structureIdToStructure)})}})(),p0e=(()=>class t extends Io{filterCommandInvoker;sourcePublisher;verticalFormationCommandInvoker;structureCellEditArchive;commandDispatcher=Y.resolve(sr);constructor(e,i,r,o){super(),this.filterCommandInvoker=e,this.sourcePublisher=i,this.verticalFormationCommandInvoker=r,this.structureCellEditArchive=o}static services=[ra,So,Hm,Mo];create(e){this.commandDispatcher.dispatch(new sG(e))}enableVirtualScroll(e){this.verticalFormationCommandInvoker.enableVirtualScroll(e)}disableVirtualScroll(e){this.verticalFormationCommandInvoker.disableVirtualScroll(e)}scrollToTop(e){this.verticalFormationCommandInvoker.scrollToTop(e)}scrollToBottom(e){this.verticalFormationCommandInvoker.scrollToBottom(e)}scrollToIndex(e,i){this.verticalFormationCommandInvoker.scrollToIndex(e,i)}setScrollPosition(e,i){this.verticalFormationCommandInvoker.setScrollPosition(e,i)}setFilterConfig(e,i){this.filterCommandInvoker.setConfig(e,i)}setQuickFiltersConfig(e,i){this.commandDispatcher.dispatch(new hj(i,e))}setRowHeight(e,i){this.commandDispatcher.dispatch(new o5(i,+e))}setContainerHeight(e,i){this.commandDispatcher.dispatch(new s5(i,+e))}setRowHeightBasedOnTheme(e,i){this.commandDispatcher.dispatch(new r5(i,e))}setCellEdit(e,i){this.structureCellEditArchive.next(i,new pU(e))}})();class f0e{registerProviders(n){n.provide(IT),n.provide(fm,g0e),n.provide(aG),n.provide(d5),n.provide(xu),n.provide(Io,p0e),n.provide(Yh),n.provide(lG),n.provide(xT),n.provide(cG,uG),n.provide(cs),n.provide(Mo)}}class dG extends BH{constructor(n){super(n,"CreateListViewCommand")}}class hG extends Yf{}class gG extends hG{mode;constructor(n,e){super(n,"SetListViewModeCommand"),this.mode=e}getMode(){return this.mode}}class pG extends hG{enabled;constructor(n,e){super(n,"ToggleListViewSelectorCommand"),this.enabled=e}isEnabled(){return this.enabled}}class fG{commandDispatcher=Y.resolve(sr);create(n){this.commandDispatcher.dispatch(new dG(n))}setMode(n,e){this.commandDispatcher.dispatch(new gG(e,n))}toggleSelector(n,e){this.commandDispatcher.dispatch(new pG(e,n))}}class b0e extends zy{constructor(n){super(n)}toReadModelRootId(){return new mG(this.getId())}}class mG extends Wy{constructor(n){super(n)}toAggregateId(){return new b0e(this.getId())}}const UT=new mG("-1");let v0e=(()=>class t{listViewDispatcher;constructor(e){this.listViewDispatcher=e}static services=[fG];create(e=UT){this.listViewDispatcher.create(e.toAggregateId())}setMode(e,i=UT){this.listViewDispatcher.setMode(e,i.toAggregateId())}toggleSelector(e,i=UT){this.listViewDispatcher.toggleSelector(e,i.toAggregateId())}})();class jT extends Nh{}class GT extends jT{mode;constructor(n,e){super(n,e,"ListViewModeSetEvent"),this.mode=e}getTheme(){return this.mode}}class _0e extends mu{constructor(){super()}onModeChange(n){return this.onEvent(n,GT)}}var $T=function(t){return t.LIST="List",t.CARD="Card",t}($T||{});class Wm extends dn{static default=$T.LIST;constructor(){super(Wm.default)}}let zT=(()=>{class t extends dn{static default=!1;constructor(){super(t.default)}}return t})(),y0e=(()=>class t{listViewModeArchive;listViewSelectorArchive;constructor(e,i){this.listViewModeArchive=e,this.listViewSelectorArchive=i}static services=[Wm,zT];onMode(e){return this.listViewModeArchive.on(e)}onSelector(e){return this.listViewSelectorArchive.on(e)}})();class bG extends Zy{}let vG=(()=>class t extends Ky{constructor(e){super(e)}static services=[bG]})();class w0e{forCommand(){return gG}handle(n,e){const i=e.getMode();n.setMode(i)}}class C0e{forCommand(){return pG}handle(n,e){const i=e.isEnabled();n.toggleModeSelector(i)}}let D0e=(()=>class t{listViewModeArchive;constructor(e){this.listViewModeArchive=e}static services=[Wm];forEvent(){return GT}handle(e){e.ofMessageType("ListViewModeSetEvent")&&this.listViewModeArchive.next(e.getAggregateId(),e.getTheme())}})();class _G extends jT{enabled;constructor(n,e){super(n,e,"ListViewSelectorToggledEvent"),this.enabled=e}isEnabled(){return this.enabled}}let E0e=(()=>class t{listViewSelectorArchive;constructor(e){this.listViewSelectorArchive=e}static services=[zT];forEvent(){return _G}handle(e){e.ofMessageType("ListViewSelectorToggledEvent")&&this.listViewSelectorArchive.next(e.getAggregateId(),e.isEnabled())}})();class S0e{forCommand(){return dG}}class x0e extends jT{constructor(n){super(n,null,"ListViewCreatedEvent")}}class WT extends Uy{}class I0e extends WT{constructor(n){super(n,"ListViewCreatedAggregateEvent")}toDomainEvent(){return new x0e(this.getAggregateId())}}class T0e extends WT{mode;constructor(n,e){super(n,"ListViewModeSetAggregateEvent"),this.mode=e}toDomainEvent(){return new GT(this.getAggregateId(),this.mode)}}class M0e{enabled=null;visible=!1;constructor(){}isVisible(){return null!==this.enabled?this.enabled:this.visible}setEnabled(n){this.enabled=n}setVisible(n){this.visible=n}}class k0e extends WT{enabled;constructor(n,e){super(n,"ListViewSelectorToggledAggregateEvent"),this.enabled=e}toDomainEvent(){return new _G(this.getAggregateId(),this.enabled)}}class A0e extends Gy{mode;selectorVisibility;constructor(n){super(n,"ListViewAggregate"),this.setMode($T.LIST),this.initSelectorVisibility()}createEvent(){return I0e}setMode(n){this.mode=n,this.addEvent(new T0e(this.getId(),this.mode))}toggleModeSelector(n){this.selectorVisibility.setEnabled(n),this.emitEventAfterSelectorVisibilityChange()}initSelectorVisibility(){this.selectorVisibility=new M0e,this.emitEventAfterSelectorVisibilityChange()}emitEventAfterSelectorVisibilityChange(){this.addEvent(new k0e(this.getId(),this.selectorVisibility.isVisible()))}}class R0e extends Hy{constructor(){super()}create(n){return new A0e(n)}}class N0e extends jy{}let O0e=(()=>class t extends N0e{inMemorySchemaAggregateStore;constructor(e){super(),this.inMemorySchemaAggregateStore=e}static services=[vG];findById(e){return this.inMemorySchemaAggregateStore.findById(e)}save(e){this.inMemorySchemaAggregateStore.save(e)}})();class F0e{defineAggregate(){return{aggregateKey:yG,createCommandHandler:S0e,factory:R0e,repository:O0e}}registerKey(){return yG}registerProviders(n){n.provide(fG)}registerCommandHandlers(){return[w0e,C0e]}registerDomainEventHandler(){return[D0e,E0e]}registerMultiDomainEventHandler(){return[]}}const yG="ListViewKey";class P0e{registerProviders(n){n.provide(v0e),n.provide(_0e),n.provide(y0e),n.provide(Wm),n.provide(zT),n.provide(vG),n.provide(bG)}}const U0e=[{provide:Io,useFactory:function B0e(){return Y.resolve(Io)}},{provide:xu,useFactory:function V0e(){return Y.resolve(xu)}},{provide:Yh,useFactory:function H0e(){return Y.resolve(Yh)}}];function j0e(){return(new Cu.DefaultBuilder).build()}const G0e=[Oe,ph,Za,Ao,ku,vye,k0,fve,Nve,Hye,Tj,aT,pye,Xve,v_e,j_e,bye,kbe,eve,ive,eT,sj,ove,Y_e,Pbe,T5,[kj,Mj]],$0e=[yu,JI,KI,QI,ZI,XI,ku,k0,k5];function z0e(){return Y.resolve(Mo)}function W0e(){return Y.resolve(cs)}(function L0e(){new qr(new P0e,new F0e).init()})(),function m0e(){new qr(new f0e,new d0e).init()}();class ig{platformId;static HERMES_API="hermesApi";static exportDeclarations=Array.from($0e);static withConfig(n={cssClassName:"",hermesModuleConfig:{loggers:!1}}){return{ngModule:ig,providers:[{provide:xI,useValue:n.cssClassName},{provide:Hx,useValue:n.hermesModuleConfig.loggers},{provide:Ux,useValue:n.hermesModuleConfig.loggers},{provide:xI,useValue:"structure"},{provide:Cu,useFactory:j0e},Lbe,Sm,am,{provide:Mo,useFactory:z0e},{provide:cs,useFactory:W0e},U0e]}}constructor(n){this.platformId=n,function Dce(){Y.resolve(MH).run()}(),fo(this.platformId)&&(function Fce(){const t=Y.resolve(Ly),n=Y.resolve(By);window[Lh]={set loggers(i){},set domain(i){i&&(t.setDomain(i),n.setDomain(i))}},window[Lh].loggers=!1}(),window[ig.HERMES_API].loggers=!1)}static \u0275fac=function(e){return new(e||ig)(I(Kn))};static \u0275mod=re({type:ig});static \u0275inj=ie({imports:[G0e,yu,Jy,as,e0,Qc,_u,n0,r0,c0,l0,s0,a0,d0,h0,Gh,rm,g0,Xc,o0,nm,Gh,k0]})}let q0e=(()=>{class t{static PREFIX="gui-grid-";static index=0;generateId(){return t.index++,t.PREFIX+t.index}static \u0275fac=function(i){return new(i||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();const Y0e=[ig.withConfig({cssClassName:"grid",hermesModuleConfig:{loggers:!0}})],K0e=[q0e,dU],Z0e=[la,v0],Q0e=[la,v0];class iw{static exportDeclarations=Array.from(Z0e);static elementComponents=Array.from(Q0e);static \u0275fac=function(e){return new(e||iw)};static \u0275mod=re({type:iw});static \u0275inj=ie({providers:K0e,imports:[Y0e]})}var X0e=Fi(32),Sr=Fi.n(X0e);let Ja=(()=>{class t{constructor(e,i){this.http=e,this.baseUrl=i}getAll(){return this.http.get(this.baseUrl,{withCredentials:!0})}getById(e){return this.http.get(`${this.baseUrl}/${e}`,{withCredentials:!0})}create(e){return this.http.post(this.baseUrl,e,{withCredentials:!0})}update(e){return this.http.put(`${this.baseUrl}`,e,{withCredentials:!0})}delete(e){return this.http.delete(`${this.baseUrl}/${e}`,{withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("BASE_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),qT=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}createByDir(e){return this.http.post(`${this.baseUrl}/byDir`,e,{withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("GROUP_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wG=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}getByModuleId(e,i=!0){return this.http.get(`${this.baseUrl}/ByModuleId/${e}?assigned=${i}`,{withCredentials:!0})}getByGroupId(e,i=!0){return this.http.get(`${this.baseUrl}/ByGroupId/${e}?assigned=${i}`,{withCredentials:!0})}createByDir(e){return console.log(e),this.http.post(`${this.baseUrl}/byDir`,e,{withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("USER_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Zr{constructor(n,e,i){this.platformId=n,this.rendererFactory=e,this.document=i,this.themeSubject=new dt(rw()),this.themeChanges$=this.themeSubject.asObservable(),this.renderer=e.createRenderer(null,null)}setTheme(n){localStorage.setItem("theme",n),this.updateTheme()}updateTheme(){this.themeSubject.next(rw());let n=rw();Zr.ThemeChangeSubscribers.forEach(i=>i(n));const e=this.document.documentElement;if(n===lr.Auto){const i=window.matchMedia("(prefers-color-scheme: dark)").matches?lr.Dark:lr.Light;this.renderer.setAttribute(e,"data-bs-theme",i)}else this.renderer.setAttribute(e,"data-bs-theme",n)}static#e=this.ThemeChangeSubscribers=new Array;static#t=this.\u0275fac=function(e){return new(e||Zr)(I(Kn),I(Uv),I(Pe))};static#n=this.\u0275prov=R({token:Zr,factory:Zr.\u0275fac,providedIn:"root"})}var lr=function(t){return t.Dark="dark",t.Light="light",t.Auto="auto",t}(lr||{});const J0e=t=>{switch(t){case lr.Dark:return lr.Dark;case lr.Light:return lr.Light;case lr.Auto:return lr.Auto;default:return}};function rw(){let t=localStorage.getItem("theme");return null===t?lr.Dark:J0e(t)??lr.Dark}const ewe=["grid"];let rg=(()=>{class t{constructor(e,i,r){this.cModeService=r,this.columnMenu={enabled:!0,sort:!0,columnsManager:!1,filter:!1},this.sorting={enabled:!0,multiSorting:!0},this.loading=!0,this.autoResizeWidth=!0,this.rowDetail={enabled:!0,template:o=>"\n <div></div>"},this.paging={enabled:!0,page:1,pageSize:15,pageSizes:[5,10,15,20,25,30,35,40,45,50],pagerTop:!0,pagerBottom:!1,display:m0.ADVANCED},this.searching={enabled:!0,placeholder:"Suche"},this.cellEditing={enabled:!0,rowEdit:(o,s,a)=>!!(a%2),cellEdit:(o,s,a)=>!!(a%5)},this.maxHeight=400,this.infoPanel={enabled:!0,infoDialog:!1,columnsManager:!0,schemaManager:!0},this.titlePanel={enabled:!1,template:()=>"\n <div class='title-panel-example' >List of contract workers</div>\n "},this.theme="dark"===localStorage.getItem("theme")?zi.DARK:zi.FABRIC,this.themeSubscription=new Ge,this.rowDetailTemplate=null,this.enabledCellEditing=!1,this.rowSelection=!0,this.onSelectedRows=o=>{},this.initData=this.fetchData,this.columns=[],this.selected=!1,this.service=e,0==this.columns.length&&(this.columns=i),this.rowDetail=null==this.rowDetailTemplate?{enabled:!1}:{enabled:!0,template:this.rowDetailTemplate},this.cellEditing.enabled=this.enabledCellEditing}safelyUnselectAll(){this.selected=!0,null!=this.api?.getSelectedRows()&&this.api?.getSelectedRows().length&&this.selected&&(this.api?.unselectAll(),this.selected=!1)}get api(){return this.mainGrid.api}set source(e){this.api.setSource(e)}get selectedRows(){return this.api.getSelectedRows()}ngOnInit(){const e=this.cModeService.themeChanges$.subscribe(i=>{this.theme="dark"===i?zi.DARK:zi.FABRIC});this.themeSubscription.add(e),this.initData()}ngOnDestroy(){this.themeSubscription.unsubscribe()}ngAfterViewInit(){}fetchData(){this.service.getAll().subscribe({next:e=>{e.isSuccess&&e.data?(this.source=e.data,this.loading=!1):console.error("Failed to fetch users")},error:e=>console.error("Error fetching users:",e)})}static#e=this.\u0275fac=function(i){return new(i||t)(g(Ja),g(Array),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-base-table"]],viewQuery:function(i,r){if(1&i&&pe(ewe,7),2&i){let o;te(o=ne())&&(r.mainGrid=o.first)}},inputs:{rowDetailTemplate:"rowDetailTemplate",enabledCellEditing:"enabledCellEditing",rowSelection:"rowSelection",onSelectedRows:"onSelectedRows",initData:"initData",columns:"columns"},decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})(),twe=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}getAll(){return new rt(e=>{super.getAll().subscribe({next:i=>{(!i.isSuccess||!i.data)&&Sr().fire({icon:"error",title:"Oops...",text:"Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an"}),e.next(i)},error:i=>{e.error(i)},complete:()=>e.complete()})})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("DIR_GROUP_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CG=(()=>{class t extends rg{constructor(e,i,r){super(e,i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(g(twe),g("DIR_GROUP_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-dir-group-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})(),nwe=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}getAll(e){let i=new ts;return e&&(i=i.set("groupName",e)),this.http.get(this.baseUrl,{params:i,withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("DIR_USER_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),iwe=(()=>{class t extends rg{constructor(e,i,r){super(e,i,r)}fetchDataByGroupName(e){this.service.getAll(e).subscribe({next:i=>{i.isSuccess&&i.data?(this.source=i.data,this.loading=!1):(this.loading=!1,console.error("Failed to fetch users"))},error:i=>console.error("Error fetching users:",i)})}static#e=this.\u0275fac=function(i){return new(i||t)(g(nwe),g("DIR_USER_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-dir-user-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})();const rwe=["dirGroups"],owe=["dirUsers"];let swe=(()=>{class t{constructor(e,i){this.gService=e,this.uService=i,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:qa.ROW,mode:el.SINGLE},this.dirUsersRowSelection={enabled:!0,type:qa.CHECKBOX,mode:el.MULTIPLE},this.dirGroupOnSelectedRows=r=>{r.length>0&&(this.dirGroups.safelyUnselectAll(),this.dirUsers.fetchDataByGroupName(r[r.length-1].source.samaccountname))}}ngOnInit(){}ngAfterViewInit(){this.dirUsers.loading=!1}addSelectedUsers(){let e=[],i=0;for(let r of this.dirUsers.selectedRows)console.log(r),e.push(this.uService.create({email:r?.source?.mail?.[0],prename:r.source?.givenname?.[0],username:r.source?.samaccountname?.[0],name:r.source?.sn?.[0]}).pipe(Ba(o=>(console.log("An error occurred",o),Ee(null)))));V_(e).pipe($c(()=>{Sr().fire({icon:"success",title:"Completed",text:`${i} new users added`,position:"center",showConfirmButton:!1,timer:3e3}),this.dirUsers.safelyUnselectAll()})).subscribe({next:r=>{i+=r.filter(o=>null!==o).length},error:r=>{console.log("An error occurred",r)}})}static#e=this.\u0275fac=function(i){return new(i||t)(g(qT),g(wG))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-user-group-dir-import"]],viewQuery:function(i,r){if(1&i&&(pe(rwe,5),pe(owe,5)),2&i){let o;te(o=ne())&&(r.dirGroups=o.first),te(o=ne())&&(r.dirUsers=o.first)}},decls:15,vars:4,consts:[["dirGroups",""],["dirUsers",""],[1,"row","p-0","m-0"],[1,"col","p-0","m-0"],[1,"navbar","bg-body-tertiary"],[1,"container-fluid","justify-content-start"],["type","button",1,"btn","btn-outline-success","me-2",3,"click"],[1,"row","align-items-start","p-0","m-0"],[1,"col-6","p-0","m-0"],[3,"rowSelection","onSelectedRows"],[3,"initData","rowSelection"]],template:function(i,r){if(1&i){const o=he();w(0,"div",2)(1,"div",3)(2,"nav",4)(3,"form",5)(4,"button",6),B("click",function(){return $(o),z(r.addSelectedUsers())}),U(5,"Benutzer"),L(6,"br"),U(7,"Hinzuf\xfcgen"),E()()()()(),w(8,"div",7)(9,"div",8),L(10,"app-dir-group-table",9,0),E(),w(12,"div",8),L(13,"app-dir-user-table",10,1),E()()}2&i&&(_(10),C("rowSelection",r.dirGroupsRowSelection)("onSelectedRows",r.dirGroupOnSelectedRows),_(3),C("initData",r.initWithoutData)("rowSelection",r.dirUsersRowSelection))},dependencies:[Ks,Ys,gh,CG,iwe]})}return t})();const awe=["dirGroups"];let cwe=(()=>{class t{constructor(e){this.gService=e,this.initWithoutData=()=>{},this.dirGroupsRowSelection={enabled:!0,type:qa.CHECKBOX,mode:el.MULTIPLE},this.dirUsersRowSelection={enabled:!0,type:qa.CHECKBOX,mode:el.MULTIPLE}}ngOnInit(){}ngAfterViewInit(){}addSelectedGroups(){let e=[],i=0;for(let r of this.dirGroups.selectedRows)e.push(this.gService.createByDir({samaccountname:r?.source?.samaccountname}).pipe(Ba(o=>(console.log(o),Ee(null)))));V_(e).pipe($c(()=>{Sr().fire({icon:"success",title:"Completed",text:`${i} new groups added`,position:"center",showConfirmButton:!1,timer:3e3}),this.dirGroups.safelyUnselectAll()})).subscribe({next:r=>{i+=r.filter(o=>null!==o).length},error:r=>{console.log("An error occurred",r)}})}static#e=this.\u0275fac=function(i){return new(i||t)(g(qT))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-group-dir-import"]],viewQuery:function(i,r){if(1&i&&pe(awe,5),2&i){let o;te(o=ne())&&(r.dirGroups=o.first)}},decls:12,vars:1,consts:[["dirGroups",""],[1,"row","p-0","m-0"],[1,"col","p-0","m-0"],[1,"navbar","bg-body-tertiary"],[1,"container-fluid","justify-content-start"],["type","button",1,"btn","btn-outline-success","me-2",3,"click"],[1,"row","align-items-start","p-0","m-0"],[3,"rowSelection"]],template:function(i,r){if(1&i){const o=he();w(0,"div",1)(1,"div",2)(2,"nav",3)(3,"form",4)(4,"button",5),B("click",function(){return $(o),z(r.addSelectedGroups())}),U(5,"Gruppen"),L(6,"br"),U(7,"Hinzuf\xfcgen"),E()()()()(),w(8,"div",6)(9,"div",2),L(10,"app-dir-group-table",7,0),E()()}2&i&&(_(10),C("rowSelection",r.dirGroupsRowSelection))},dependencies:[Ks,Ys,gh,CG]})}return t})(),ow=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.http=i,this.loginUrl=r,this.logoutUrl=o,this.checkUrl=s}isAuthenticated(){return new rt(e=>{this.http.get(this.checkUrl,{withCredentials:!0}).subscribe({next:i=>{sw=i.isAuthenticated,e.next(i.isAuthenticated)},error:i=>{this.showErrorAlert(),e.error(i)},complete:()=>e.complete()})})}login(e,i){return new rt(r=>{this.http.post(this.loginUrl,{username:e,password:i},{withCredentials:!0}).subscribe({next:s=>{sw=!0,r.next(s)},error:s=>{this.showErrorAlert(),r.error(s)},complete:()=>{r.complete()}})})}logout(){return new rt(e=>{this.http.post(this.logoutUrl,{},{withCredentials:!0}).subscribe({next:i=>{this.router.navigate(["/"]),sw=!1,e.next(i)},error:i=>e.error(i),complete:()=>e.complete()})})}showErrorAlert(){Sr().fire({icon:"error",title:"Oops...",text:"The backend application is not responding."})}static#e=this.\u0275fac=function(i){return new(i||t)(I(wr),I(jr),I("LOGIN_URL"),I("LOGOUT_URL"),I("LOGIN_CHECK_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sw=!1;function qm(t,n=0){return DG(t)?Number(t):n}function DG(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ym(t){return Array.isArray(t)?t:[t]}function Jn(t){return null==t?"":"string"==typeof t?t:`${t}px`}function ei(t){return t instanceof F?t.nativeElement:t}const Km={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:i}=Km;i&&(n=i.requestAnimationFrame,e=i.cancelAnimationFrame);const r=n(o=>{e=void 0,t(o)});return new Ge(()=>e?.(r))},requestAnimationFrame(...t){const{delegate:n}=Km;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:n}=Km;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0},EG=new class dwe extends qx{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class uwe extends zx{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=Km.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(Km.cancelAnimationFrame(e),n._scheduled=void 0)}});let YT,hwe=1;const aw={};function SG(t){return t in aw&&(delete aw[t],!0)}const gwe={setImmediate(t){const n=hwe++;return aw[n]=!0,YT||(YT=Promise.resolve()),YT.then(()=>SG(n)&&t()),n},clearImmediate(t){SG(t)}},{setImmediate:pwe,clearImmediate:fwe}=gwe,cw={setImmediate(...t){const{delegate:n}=cw;return(n?.setImmediate||pwe)(...t)},clearImmediate(t){const{delegate:n}=cw;return(n?.clearImmediate||fwe)(t)},delegate:void 0};new class bwe extends qx{flush(n){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===e&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===e&&i.shift();)n.unsubscribe();throw r}}}(class mwe extends zx{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,i=0){return null!==i&&i>0?super.requestAsyncId(n,e,i):(n.actions.push(this),n._scheduled||(n._scheduled=cw.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,e,i);const{actions:o}=n;null!=e&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==e&&(cw.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}});function xG(t,n=Vh){return function _we(t){return qt((n,e)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const l=r;r=null,e.next(l)}s&&e.complete()},c=()=>{o=null,s&&e.complete()};n.subscribe(Mt(e,l=>{i=!0,r=l,o||Gn(t(l)).subscribe(o=Mt(e,a,c))},()=>{s=!0,(!i||!o||o.closed)&&e.complete()}))})}(()=>Dr(t,n))}let KT;try{KT=typeof Intl<"u"&&Intl.v8BreakIterator}catch{KT=!1}let Zm,Wi=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?fo(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!KT)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(i){return new(i||t)(I(Kn))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ul(t){return function ywe(){if(null==Zm&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Zm=!0}))}finally{Zm=Zm||!1}return Zm}()?t:!!t.capture}var da=function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t}(da||{});let lw,Nu,ZT;function TG(){if(null==Nu){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Nu=!1,Nu;if("scrollBehavior"in document.documentElement.style)Nu=!0;else{const t=Element.prototype.scrollTo;Nu=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return Nu}function Qm(){if("object"!=typeof document||!document)return da.NORMAL;if(null==lw){const t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";const e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),lw=da.NORMAL,0===t.scrollLeft&&(t.scrollLeft=1,lw=0===t.scrollLeft?da.NEGATED:da.INVERTED),t.remove()}return lw}function QT(t){if(function wwe(){if(null==ZT){const t=typeof document<"u"?document.head:null;ZT=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ZT}()){const n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function XT(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ro(t){return t.composedPath?t.composedPath()[0]:t.target}function JT(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}const Cwe=new W("cdk-dir-doc",{providedIn:"root",factory:function Dwe(){return x(Pe)}}),Ewe=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let ha=(()=>{class t{constructor(e){this.value="ltr",this.change=new X,e&&(this.value=function Swe(t){const n=t?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?Ewe.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(i){return new(i||t)(I(Cwe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uw=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),eM=(()=>{class t{constructor(e,i,r){this._ngZone=e,this._platform=i,this._scrolled=new se,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new rt(i=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(xG(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Ee()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){const r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(Wt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,i){let r=ei(i),o=e.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>en(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(i){return new(i||t)(I(xe),I(Wi),I(Pe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Iwe=(()=>{class t{constructor(e,i,r,o){this.elementRef=e,this.scrollDispatcher=i,this.ngZone=r,this.dir=o,this._destroyed=new se,this._elementScrolled=new rt(s=>this.ngZone.runOutsideAngular(()=>en(this.elementRef.nativeElement,"scroll").pipe(De(this._destroyed)).subscribe(s)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const i=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&Qm()!=da.NORMAL?(null!=e.left&&(e.right=i.scrollWidth-i.clientWidth-e.left),Qm()==da.INVERTED?e.left=e.right:Qm()==da.NEGATED&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const i=this.elementRef.nativeElement;TG()?i.scrollTo(e):(null!=e.top&&(i.scrollTop=e.top),null!=e.left&&(i.scrollLeft=e.left))}measureScrollOffset(e){const i="left",r="right",o=this.elementRef.nativeElement;if("top"==e)return o.scrollTop;if("bottom"==e)return o.scrollHeight-o.clientHeight-o.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==e?e=s?r:i:"end"==e&&(e=s?i:r),s&&Qm()==da.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:s&&Qm()==da.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(eM),g(xe),g(ha,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),sg=(()=>{class t{constructor(e,i,r){this._platform=e,this._change=new se,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(xG(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(i){return new(i||t)(I(Wi),I(xe),I(Pe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tM=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),Mwe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[uw,tM,uw,tM]})}return t})();class nM{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class iM extends nM{constructor(n,e,i,r,o){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class dw extends nM{constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class kwe extends nM{constructor(n){super(),this.element=n instanceof F?n.nativeElement:n}}class rM{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof iM?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof dw?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof kwe?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Awe extends rM{constructor(n,e,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,c=this._document.createComment("dom-portal");a.parentNode.insertBefore(c,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(a,c)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||He.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);-1!==r&&e.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let Rwe=(()=>{class t extends dw{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(zt))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],standalone:!0,features:[O]})}return t})(),ag=(()=>{class t extends rM{constructor(e,i,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new X,this.attachDomPortal=o=>{const s=o.element,a=this._document.createComment("dom-portal");o.setAttachedHost(this),s.parentNode.insertBefore(a,s),this._getRootNode().appendChild(s),this._attachedPortal=o,super.setDisposeFn(()=>{a.parentNode&&a.parentNode.replaceChild(s,a)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);const i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),s=i.createComponent(o,i.length,e.injector||i.injector,e.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=e,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(e){e.setAttachedHost(this);const i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(i){return new(i||t)(g(mn),g(zt),g(Pe))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[ee.None,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[O]})}return t})();function gs(...t){const n=hf(t),e=function dne(t,n){return"number"==typeof rS(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?Gn(i[0]):bh(e)($n(i,n)):yr}const MG=TG();class Nwe{constructor(n,e){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Jn(-this._previousScrollPosition.left),n.style.top=Jn(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),MG&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),MG&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}}class Owe{constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(Wt(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class kG{enable(){}disable(){}attach(){}}function oM(t,n){return n.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function AG(t,n){return n.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Fwe{constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();oM(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Pwe=(()=>{class t{constructor(e,i,r,o){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new kG,this.close=s=>new Owe(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new Nwe(this._viewportRuler,this._document),this.reposition=s=>new Fwe(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static#e=this.\u0275fac=function(i){return new(i||t)(I(eM),I(sg),I(xe),I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class RG{constructor(n){if(this.scrollStrategy=new kG,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const e=Object.keys(n);for(const i of e)void 0!==n[i]&&(this[i]=n[i])}}}class Lwe{constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}}let NG=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bwe=(()=>{class t extends NG{constructor(e,i){super(e),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(e){super.add(e),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(xe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vwe=(()=>{class t extends NG{constructor(e,i,r){super(e),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Ro(o)},this._clickListener=o=>{const s=Ro(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const c=this._attachedOverlays.slice();for(let l=c.length-1;l>-1;l--){const u=c[l];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const h=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>h.next(o)):h.next(o)}}}add(e){if(super.add(e),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(e){e.addEventListener("pointerdown",this._pointerDownListener,!0),e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(Wi),I(xe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hw=(()=>{class t{constructor(e,i){this._platform=i,this._document=e}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||JT()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(e),JT()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(Wi))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class gw{constructor(n,e,i,r,o,s,a,c,l,u=!1){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new se,this._attachments=new se,this._detachments=new se,this._locationChanges=Ge.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._backdropTransitionendHandler=h=>{this._disposeBackdrop(h.target)},this._keydownEvents=new se,this._outsidePointerEvents=new se,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Zt(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof e?.onDestroy&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=Jn(this._config.width),n.height=Jn(this._config.height),n.minWidth=Jn(this._config.minWidth),n.minHeight=Jn(this._config.minHeight),n.maxWidth=Jn(this._config.maxWidth),n.maxHeight=Jn(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,e,i){const r=Ym(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(De(gs(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const OG="cdk-overlay-connected-position-bounding-box",Hwe=/([A-Za-z%]+)$/;class Uwe{get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new se,this._resizeSubscription=Ge.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(OG),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,r,a),l=this._getOverlayPoint(c,e,a),u=this._getOverlayFit(l,e,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,c);this._canFitWithFlexibleDimensions(u,l,i)?o.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:l,originPoint:c,position:a,overlayRect:e})}if(o.length){let a=null,c=-1;for(const l of o){const u=l.boundingBoxRect.width*l.boundingBoxRect.height*(l.position.weight||1);u>c&&(c=u,a=l)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ou(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(OG),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return e.left<0&&(r-=e.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r,o;return r="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,o="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){const o=PG(e);let{x:s,y:a}=n,c=this._getOffset(r,"x"),l=this._getOffset(r,"y");c&&(s+=c),l&&(a+=l);let f=0-a,v=a+o.height-i.height,y=this._subtractOverflows(o.width,0-s,s+o.width-i.width),D=this._subtractOverflows(o.height,f,v),S=y*D;return{visibleArea:S,isCompletelyWithinViewport:o.width*o.height===S,fitsInViewportVertically:D===o.height,fitsInViewportHorizontally:y==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){const r=i.bottom-e.y,o=i.right-e.x,s=FG(this._overlayRef.getConfig().minHeight),a=FG(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=PG(e),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),c=Math.max(o.top-i.top-n.y,0),l=Math.max(o.left-i.left-n.x,0);let u=0,h=0;return u=r.width<=o.width?l||-s:n.x<this._viewportMargin?o.left-i.left-n.x:0,h=r.height<=o.height?c||-a:n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:u,y:h},{x:n.x+u,y:n.y+h}}_applyPosition(n,e){if(this._setTransformOrigin(n),this._setOverlayElementStyles(e,n),this._setBoundingBoxStyles(e,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._positionChanges.observers.length){const i=this._getScrollVisibility();if(n!==this._lastPosition||!this._lastScrollVisibility||!function jwe(t,n){return t===n||t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}(this._lastScrollVisibility,i)){const r=new Lwe(n,i);this._positionChanges.next(r)}this._lastScrollVisibility=i}this._lastPosition=n,this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let o=0;o<e.length;o++)e[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,e){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,h,f;if("top"===e.overlayY)s=n.y,o=i.height-s+this._viewportMargin;else if("bottom"===e.overlayY)a=i.height-n.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const v=Math.min(i.bottom-n.y+i.top,n.y),y=this._lastBoundingBoxSize.height;o=2*v,s=n.y-v,o>y&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-y/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=i.width-n.x+2*this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=n.x,u=i.right-n.x;else{const v=Math.min(i.right-n.x+i.left,n.x),y=this._lastBoundingBoxSize.width;u=2*v,h=n.x-v,u>y&&!this._isInitialRender&&!this._growAfterOpen&&(h=n.x-y/2)}return{top:s,left:h,bottom:a,right:f,width:u,height:o}}_setBoundingBoxStyles(n,e){const i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=Jn(i.height),r.top=Jn(i.top),r.bottom=Jn(i.bottom),r.width=Jn(i.width),r.left=Jn(i.left),r.right=Jn(i.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=Jn(o)),s&&(r.maxWidth=Jn(s))}this._lastBoundingBoxSize=i,Ou(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ou(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ou(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ou(i,this._getExactOverlayY(e,n,u)),Ou(i,this._getExactOverlayX(e,n,u))}else i.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=Jn(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=Jn(s.maxWidth):o&&(i.maxWidth="")),Ou(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=Jn(o.y),r}_getExactOverlayX(n,e,i){let s,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Jn(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:AG(n,i),isOriginOutsideView:oM(n,i),isOverlayClipped:AG(e,i),isOverlayOutsideView:oM(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return"x"===e?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&Ym(n).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof F)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}}function Ou(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function FG(t){if("number"!=typeof t&&null!=t){const[n,e]=t.split(Hwe);return e&&"px"!==e?null:parseFloat(n)}return t||null}function PG(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}const LG="cdk-global-overlay-wrapper";class Gwe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(LG),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,c=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),l=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,h=this._xOffset,f="rtl"===this._overlayRef.getConfig().direction;let v="",y="",D="";c?D="flex-start":"center"===u?(D="center",f?y=h:v=h):f?"left"===u||"end"===u?(D="flex-end",v=h):("right"===u||"start"===u)&&(D="flex-start",y=h):"left"===u||"start"===u?(D="flex-start",v=h):("right"===u||"end"===u)&&(D="flex-end",y=h),n.position=this._cssPosition,n.marginLeft=c?"0":v,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":y,e.justifyContent=D,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(LG),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let $we=(()=>{class t{constructor(e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new Gwe}flexibleConnectedTo(e){return new Uwe(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(i){return new(i||t)(I(sg),I(Pe),I(Wi),I(hw))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zwe=0,dl=(()=>{class t{constructor(e,i,r,o,s,a,c,l,u,h,f,v){this.scrollStrategies=e,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=c,this._document=l,this._directionality=u,this._location=h,this._outsideClickDispatcher=f,this._animationsModuleType=v}create(e){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new RG(e);return s.direction=s.direction||this._directionality.value,new gw(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const i=this._document.createElement("div");return i.id="cdk-overlay-"+zwe++,i.classList.add("cdk-overlay-pane"),e.appendChild(i),i}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(yi)),new Awe(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pwe),I(hw),I(mn),I($we),I(Bwe),I(He),I(xe),I(Pe),I(ha),I(tu),I(Vwe),I(Hs,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function pw(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}const VG=new Set;let Fu,pCe=(()=>{class t{constructor(e,i){this._platform=e,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):mCe}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function fCe(t,n){if(!VG.has(t))try{Fu||(Fu=document.createElement("style"),n&&(Fu.nonce=n),Fu.setAttribute("type","text/css"),document.head.appendChild(Fu)),Fu.sheet&&(Fu.sheet.insertRule(`@media ${t} {body{ }}`,0),VG.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Wi),I(gD,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mCe(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let bCe=(()=>{class t{constructor(e,i){this._mediaMatcher=e,this._zone=i,this._queries=new Map,this._destroySubject=new se}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return HG(Ym(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let o=La(HG(Ym(e)).map(s=>this._registerQuery(s).observable));return o=vh(o.pipe(Zt(1)),o.pipe(Bh(1),p0(0))),o.pipe(Me(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const i=this._mediaMatcher.matchMedia(e),o={observable:new rt(s=>{const a=c=>this._zone.run(()=>s.next(c));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(Zs(i),Me(({matches:s})=>({query:e,matches:s})),De(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static#e=this.\u0275fac=function(i){return new(i||t)(I(pCe),I(xe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HG(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}class yCe{constructor(n){this._items=n,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new se,this._typeaheadSubscription=Ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new se,this.change=new se,n instanceof kd&&(this._itemChangesSubscription=n.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}}))}skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Tn(e=>this._pressedLetters.push(e)),p0(n),Wt(()=>this._pressedLetters.length>0),Me(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const o=(this._activeItemIndex+r)%i.length,s=i[o];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(o);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){const e=this._activeItem;this.updateActiveItem(n),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){const e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&r){const o=this._activeItemIndex+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(o<s?o:s-1,-1);break}return;default:return void((r||pw(n,"shiftKey"))&&(n.key&&1===n.key.length?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],n.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){const e=this._getItemsArray(),i="number"==typeof n?n:e.indexOf(n);this._activeItem=e[i]??null,this._activeItemIndex=i}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+n*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex+n,n)}_setActiveItemByIndex(n,e){const i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(!i[n+=e])return;this.setActiveItem(n)}}_getItemsArray(){return this._items instanceof kd?this._items.toArray():this._items}}class wCe extends yCe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}}let sM=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function DCe(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const i=function CCe(t){try{return t.frameElement}catch{return null}}(function ACe(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(i&&(-1===$G(i)||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=$G(e);return e.hasAttribute("contenteditable")?-1!==o:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function MCe(t){let n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==o:"video"===r?-1!==o&&(null!==o||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,i){return function kCe(t){return!function SCe(t){return function ICe(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function ECe(t){let n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function xCe(t){return function TCe(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||GG(t))}(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(i){return new(i||t)(I(Wi))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function GG(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let n=t.getAttribute("tabindex");return!(!n||isNaN(parseInt(n,10)))}function $G(t){if(!GG(t))return null;const n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}class zG{get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}constructor(n,e,i,r,o=!1){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,o||this.attachAnchors()}destroy(){const n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){const e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return"start"==n?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){const e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){const e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=0;i<e.length;i++){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(r)return r}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;const e=n.children;for(let i=e.length-1;i>=0;i--){const r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){const n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._ngZone.isStable?n():this._ngZone.onStable.pipe(Zt(1)).subscribe(n)}}let WG=(()=>{class t{constructor(e,i,r){this._checker=e,this._ngZone=i,this._document=r}create(e,i=!1){return new zG(e,this._checker,this._ngZone,this._document,i)}static#e=this.\u0275fac=function(i){return new(i||t)(I(sM),I(xe),I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function aM(t){return 0===t.buttons||0===t.detail}function cM(t){const n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}const RCe=new W("cdk-input-modality-detector-options"),NCe={ignoreKeys:[18,17,224,91,16]},cg=ul({passive:!0,capture:!0});let OCe=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,i,r,o){this._platform=e,this._mostRecentTarget=null,this._modality=new dt(null),this._lastTouchMs=0,this._onKeydown=s=>{this._options?.ignoreKeys?.some(a=>a===s.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Ro(s))},this._onMousedown=s=>{Date.now()-this._lastTouchMs<650||(this._modality.next(aM(s)?"keyboard":"mouse"),this._mostRecentTarget=Ro(s))},this._onTouchstart=s=>{cM(s)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Ro(s))},this._options={...NCe,...o},this.modalityDetected=this._modality.pipe(Bh(1)),this.modalityChanged=this.modalityDetected.pipe(Qy()),e.isBrowser&&i.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,cg),r.addEventListener("mousedown",this._onMousedown,cg),r.addEventListener("touchstart",this._onTouchstart,cg)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cg),document.removeEventListener("mousedown",this._onMousedown,cg),document.removeEventListener("touchstart",this._onTouchstart,cg))}static#e=this.\u0275fac=function(i){return new(i||t)(I(Wi),I(xe),I(Pe),I(RCe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var fw=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(fw||{});const PCe=new W("cdk-focus-monitor-default-options"),mw=ul({passive:!0,capture:!0});let lM=(()=>{class t{constructor(e,i,r,o,s){this._ngZone=e,this._platform=i,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new se,this._rootNodeFocusAndBlurListener=a=>{for(let l=Ro(a);l;l=l.parentElement)"focus"===a.type?this._onFocus(a,l):this._onBlur(a,l)},this._document=o,this._detectionMode=s?.detectionMode||fw.IMMEDIATE}monitor(e,i=!1){const r=ei(e);if(!this._platform.isBrowser||1!==r.nodeType)return Ee();const o=QT(r)||this._getDocument(),s=this._elementInfo.get(r);if(s)return i&&(s.checkChildren=!0),s.subject;const a={checkChildren:i,subject:new se,rootNode:o};return this._elementInfo.set(r,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){const i=ei(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){const o=ei(e);o===this._getDocument().activeElement?this._getClosestElementsInfo(o).forEach(([a,c])=>this._originChanged(a,i,c)):(this._setOrigin(i),"function"==typeof o.focus&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===fw.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused","touch"===i),e.classList.toggle("cdk-keyboard-focused","keyboard"===i),e.classList.toggle("cdk-mouse-focused","mouse"===i),e.classList.toggle("cdk-program-focused","program"===i)}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&i,this._detectionMode===fw.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,i){const r=this._elementInfo.get(i),o=Ro(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){const r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,mw),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,mw)}),this._rootNodeFocusListenerCount.set(i,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(De(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){const i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){const r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mw),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mw),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){const i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if("mouse"!==r||!i||i===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const o=e.labels;if(o)for(let s=0;s<o.length;s++)if(o[s].contains(i))return!0;return!1}static#e=this.\u0275fac=function(i){return new(i||t)(I(xe),I(Wi),I(OCe),I(Pe,8),I(PCe,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),LCe=(()=>{class t{constructor(e,i){this._elementRef=e,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new X}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(lM))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0})}return t})();var Pu=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Pu||{});const YG="cdk-high-contrast-black-on-white",KG="cdk-high-contrast-white-on-black",uM="cdk-high-contrast-active";let BCe=(()=>{class t{constructor(e,i){this._platform=e,this._document=i,this._breakpointSubscription=x(bCe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Pu.NONE;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Pu.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Pu.BLACK_ON_WHITE}return Pu.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(uM,YG,KG),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();i===Pu.BLACK_ON_WHITE?e.add(uM,YG):i===Pu.WHITE_ON_BLACK&&e.add(uM,KG)}}static#e=this.\u0275fac=function(i){return new(i||t)(I(Wi),I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VCe(t,n){}class bw{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let ZG=(()=>{class t extends rM{constructor(e,i,r,o,s,a,c,l){super(),this._elementRef=e,this._focusTrapFactory=i,this._config=o,this._interactivityChecker=s,this._ngZone=a,this._overlayRef=c,this._focusMonitor=l,this._platform=x(Wi),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=x(me),this.attachDomPortal=u=>{this._portalOutlet.hasAttached();const h=this._portalOutlet.attachDomPortal(u);return this._contentAttached(),h},this._document=r,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){const i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const r=()=>{e.removeEventListener("blur",r),e.removeEventListener("mousedown",r),e.removeAttribute("tabindex")};e.addEventListener("blur",r),e.addEventListener("mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const e=this._config.restoreFocus;let i=null;if("string"==typeof e?i=this._document.querySelector(e):"boolean"==typeof e?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&"function"==typeof i.focus){const r=XT(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,i=XT();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=XT()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(WG),g(Pe,8),g(bw),g(sM),g(xe),g(gw),g(lM))};static#t=this.\u0275cmp=V({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(1&i&&pe(ag,7),2&i){let o;te(o=ne())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){2&i&&st("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},standalone:!0,features:[O,Ft],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){1&i&&j(0,VCe,0,0,"ng-template",0)},dependencies:[ag],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class dM{constructor(n,e){this.overlayRef=n,this.config=e,this.closed=new se,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{27===i.keyCode&&!this.disableClose&&!pw(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(n,e){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}}const QG=new W("DialogScrollStrategy",{providedIn:"root",factory:()=>{const t=x(dl);return()=>t.scrollStrategies.block()}}),HCe=new W("DialogData"),UCe=new W("DefaultDialogConfig");let GCe=0,$Ce=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,i,r,o,s,a){this._overlay=e,this._injector=i,this._defaultOptions=r,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new se,this._afterOpenedAtThisLevel=new se,this._ariaHiddenElements=new Map,this.afterAllClosed=ry(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zs(void 0))),this._scrollStrategy=a}open(e,i){(i={...this._defaultOptions||new bw,...i}).id=i.id||"cdk-dialog-"+GCe++,i.id&&this.getDialogById(i.id);const o=this._getOverlayConfig(i),s=this._overlay.create(o),a=new dM(s,i),c=this._attachContainer(s,a,i);return a.containerInstance=c,this._attachDialogContent(e,a,c,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.closed.subscribe(()=>this._removeOpenDialog(a,!0)),this.afterOpened.next(a),a}closeAll(){hM(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){hM(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),hM(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const i=new RG({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){const o=r.injector||r.viewContainerRef?.injector,s=[{provide:bw,useValue:r},{provide:dM,useValue:i},{provide:gw,useValue:e}];let a;r.container?"function"==typeof r.container?a=r.container:(a=r.container.type,s.push(...r.container.providers(r))):a=ZG;const c=new iM(a,r.viewContainerRef,He.create({parent:o||this._injector,providers:s}),r.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,i,r,o){if(e instanceof Re){const s=this._createInjector(o,i,r,void 0);let a={$implicit:o.data,dialogRef:i};o.templateContext&&(a={...a,..."function"==typeof o.templateContext?o.templateContext():o.templateContext}),r.attachTemplatePortal(new dw(e,null,a,s))}else{const s=this._createInjector(o,i,r,this._injector),a=r.attachComponentPortal(new iM(e,o.viewContainerRef,s,o.componentFactoryResolver));i.componentRef=a,i.componentInstance=a.instance}}_createInjector(e,i,r,o){const s=e.injector||e.viewContainerRef?.injector,a=[{provide:HCe,useValue:e.data},{provide:dM,useValue:i}];return e.providers&&("function"==typeof e.providers?a.push(...e.providers(i,e,r)):a.push(...e.providers)),e.direction&&(!s||!s.get(ha,null,{optional:!0}))&&a.push({provide:ha,useValue:{value:e.direction,change:Ee()}}),He.create({parent:s||o,providers:a})}_removeOpenDialog(e,i){const r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,s)=>{o?s.setAttribute("aria-hidden",o):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){const o=i[r];o!==e&&"SCRIPT"!==o.nodeName&&"STYLE"!==o.nodeName&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(i){return new(i||t)(I(dl),I(He),I(UCe,8),I(t,12),I(hw),I(QG))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hM(t,n){let e=t.length;for(;e--;)n(t[e])}function zCe(t,n){}class gM{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const pM="mdc-dialog--open",XG="mdc-dialog--opening",JG="mdc-dialog--closing";let e$=(()=>{class t extends ZG{constructor(e,i,r,o,s,a,c,l,u){super(e,i,r,o,s,a,c,u),this._animationMode=l,this._animationStateChanged=new X,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?n$(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?n$(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(t$,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(XG,pM)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(pM),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(pM),this._animationsEnabled?(this._hostElement.style.setProperty(t$,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(JG)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(XG,JG)}_waitForAnimationToComplete(e,i){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(e){const i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(WG),g(Pe,8),g(gM),g(sM),g(xe),g(gw),g(Hs,8),g(lM))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){2&i&&(ji("id",r._config.id),st("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),ae("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},standalone:!0,features:[O,Ft],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1),j(2,zCe,0,0,"ng-template",2),E()())},dependencies:[ag],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0;transform:scale(0.8)}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--closing .mdc-dialog__surface{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{opacity:1}.mdc-dialog--open .mdc-dialog__surface{transform:none}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition:opacity linear var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container .mdc-dialog__surface{transition:transform var(--mat-dialog-transition-duration, 0ms) 0ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container,.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__surface{transition:none}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-title{padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return t})();const t$="--mat-dialog-transition-duration";function n$(t){return null==t?null:"number"==typeof t?t:t.endsWith("ms")?qm(t.substring(0,t.length-2)):t.endsWith("s")?1e3*qm(t.substring(0,t.length-1)):"0"===t?0:null}var vw=function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t}(vw||{});class fM{constructor(n,e,i){this._ref=n,this._containerInstance=i,this._afterOpened=new se,this._beforeClosed=new se,this._state=vw.OPEN,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(Wt(r=>"opened"===r.state),Zt(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(Wt(r=>"closed"===r.state),Zt(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),gs(this.backdropClick(),this.keydownEvents().pipe(Wt(r=>27===r.keyCode&&!this.disableClose&&!pw(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),function i$(t,n,e){return t._closeInteractionType=n,t.close(e)}(this,"keydown"===r.type?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(Wt(e=>"closing"===e.state),Zt(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=vw.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=vw.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const r$=new W("MatMdcDialogData"),YCe=new W("mat-mdc-dialog-default-options"),o$=new W("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const t=x(dl);return()=>t.scrollStrategies.block()}});let ZCe=0,_w=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(e,i,r,o,s,a,c,l){this._overlay=e,this._defaultOptions=o,this._scrollStrategy=s,this._parentDialog=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new se,this._afterOpenedAtThisLevel=new se,this.dialogConfigClass=gM,this.afterAllClosed=ry(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Zs(void 0))),this._dialog=i.get($Ce),this._dialogRefConstructor=fM,this._dialogContainerType=e$,this._dialogDataToken=r$}open(e,i){let r;(i={...this._defaultOptions||new gM,...i}).id=i.id||"mat-mdc-dialog-"+ZCe++,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const o=this._dialog.open(e,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:bw,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(s,a,c)=>(r=new this._dialogRefConstructor(s,i,c),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:a.data},{provide:this._dialogRefConstructor,useValue:r}])});return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{const s=this.openDialogs.indexOf(r);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static#e=this.\u0275fac=function(i){return new(i||t)(I(dl),I(He),I(tu,8),I(YCe,8),I(o$),I(t,12),I(hw),I(Hs,8))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),l$=(()=>{class t{constructor(e,i){this.authService=e,this.data=i,this.username="",this.password="",this.waitRes=!1,this.afterLogin=()=>{},typeof this.afterLogin==typeof i.afterLogin&&(this.afterLogin=i.afterLogin)}login(){this.waitRes=!0,this.authService.login(this.username,this.password).subscribe({next:()=>this.afterLogin(),error:e=>{this.waitRes=!1,Sr().fire({icon:"error",title:"Oops...",text:e.error.messages.join("\n")})},complete:()=>this.waitRes=!1})}static#e=this.\u0275fac=function(i){return new(i||t)(g(ow),g(r$))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-login"]],inputs:{afterLogin:"afterLogin"},decls:21,vars:6,consts:[[1,"container","p-0","m-0"],[1,"row","justify-content-center","p-0","m-0"],[1,"col","p-0","m-0"],[1,"card","px-5"],[1,"card-body","mx-5","px-5"],[3,"ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","name","Username","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","password",1,"form-label"],["type","password","name","Password","required","",1,"form-control",3,"ngModelChange","ngModel"],[1,"mb-3","form-check"],["type","checkbox","id","check",1,"form-check-input"],["for","check",1,"form-check-label"],["type","submit",1,"btn","btn-primary"],["aria-hidden","true"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"form",5),B("ngSubmit",function(){return r.login()}),w(6,"div",6)(7,"label",7),U(8,"Benutzername"),E(),w(9,"input",8),c_("ngModelChange",function(s){return X1(r.username,s)||(r.username=s),s}),E()(),w(10,"div",6)(11,"label",9),U(12,"Kennwort"),E(),w(13,"input",10),c_("ngModelChange",function(s){return X1(r.password,s)||(r.password=s),s}),E()(),w(14,"div",11),L(15,"input",12),w(16,"label",13),U(17,"\xdcberpr\xfcfen Sie mich"),E()(),w(18,"button",14),L(19,"span",15),U(20,"Anmeldung"),E()()()()()()()),2&i&&(_(9),a_("ngModel",r.username),_(4),a_("ngModel",r.password),_(6),ae("spinner-border",r.waitRes)("spinner-border-sm",r.waitRes))},dependencies:[Ks,qs,jc,Ys,Q_,bS,gh]})}return t})();const mM=t=>({active:t,"dropdown-item d-flex align-items-center":!0});let nDe=(()=>{class t{constructor(e){this.cModeService=e,this.Themes=lr,this.theme=rw()}ngOnInit(){this.cModeService.updateTheme()}onClick(e){this.theme=e,this.cModeService.setTheme(e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-color-mode-bttn"]],decls:40,vars:15,consts:[["xmlns","http://www.w3.org/2000/svg",1,"d-none"],["id","check2","viewBox","0 0 16 16"],["d","M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"],["id","circle-half","viewBox","0 0 16 16"],["d","M8 15A7 7 0 1 0 8 1v14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"],["id","moon-stars-fill","viewBox","0 0 16 16"],["d","M6 .278a.768.768 0 0 1 .08.858 7.208 7.208 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 0 1 .81.316.733.733 0 0 1-.031.893A8.349 8.349 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 0 1 6 .278z"],["d","M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.734 1.734 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.734 1.734 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.734 1.734 0 0 0 1.097-1.097l.387-1.162zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.156 1.156 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.156 1.156 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732L13.863.1z"],["id","sun-fill","viewBox","0 0 16 16"],["d","M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708z"],[1,"dropdown","bd-mode-toggle"],["id","bd-theme","type","button","aria-expanded","false","data-bs-toggle","dropdown","aria-label","Toggle theme (auto)",1,"btn","py-2","dropdown-toggle","d-flex","align-items-center"],["width","1em","height","1em","viewBox","0 0 16 16",1,"bi","my-1","theme-icon-active"],["href","#circle-half"],["href","#sun-fill"],["href","#moon-stars-fill"],["id","bd-theme-text",1,"visually-hidden"],["aria-labelledby","bd-theme-text",1,"dropdown-menu","dropdown-menu-end","shadow"],["type","button","data-bs-theme-value","light","aria-pressed","false",3,"click","ngClass"],["width","1em","height","1em",1,"bi","me-2","opacity-50"],["width","1em","height","1em",1,"bi","ms-auto","d-none"],["href","#check2"],["type","button","data-bs-theme-value","dark","aria-pressed","false",3,"click","ngClass"],["type","button","data-bs-theme-value","auto","aria-pressed","true",3,"click","ngClass"]],template:function(i,r){1&i&&(Ln(),w(0,"svg",0)(1,"symbol",1),L(2,"path",2),E(),w(3,"symbol",3),L(4,"path",4),E(),w(5,"symbol",5),L(6,"path",6)(7,"path",7),E(),w(8,"symbol",8),L(9,"path",9),E()(),Ps(),w(10,"div",10)(11,"button",11),Ln(),w(12,"svg",12),L(13,"use",13)(14,"use",14)(15,"use",15),E(),Ps(),w(16,"span",16),U(17,"Toggle theme"),E()(),w(18,"ul",17)(19,"li")(20,"button",18),B("click",function(){return r.onClick(r.Themes.Light)}),Ln(),w(21,"svg",19),L(22,"use",14),E(),U(23," Light "),w(24,"svg",20),L(25,"use",21),E()()(),Ps(),w(26,"li")(27,"button",22),B("click",function(){return r.onClick(r.Themes.Dark)}),Ln(),w(28,"svg",19),L(29,"use",15),E(),U(30," Dark "),w(31,"svg",20),L(32,"use",21),E()()(),Ps(),w(33,"li")(34,"button",23),B("click",function(){return r.onClick(r.Themes.Auto)}),Ln(),w(35,"svg",19),L(36,"use",13),E(),U(37," Auto "),w(38,"svg",20),L(39,"use",21),E()()()()()),2&i&&(_(13),ae("hide",r.theme!==r.Themes.Auto),_(),ae("hide",r.theme!==r.Themes.Light),_(),ae("hide",r.theme!==r.Themes.Dark),_(5),C("ngClass",Br(9,mM,r.theme==r.Themes.Light)),_(7),C("ngClass",Br(11,mM,r.theme==r.Themes.Dark)),_(7),C("ngClass",Br(13,mM,r.theme==r.Themes.Auto)))},dependencies:[Hr],styles:[".bi[_ngcontent-%COMP%]{vertical-align:-.125em;fill:currentColor}.hide[_ngcontent-%COMP%]{display:none}"]})}return t})();const iDe=t=>({show:t}),Xm=()=>["link-active"],Jm=()=>({exact:!0}),rDe=()=>["/user-assignment"],oDe=()=>["/user-representation"],sDe=()=>["/user-table"],aDe=()=>["/group-table"],cDe=()=>["/module-table"],lDe=()=>["/"];let uDe=(()=>{class t{isLogedIn(){return sw}constructor(e,i){this.dialog=e,this.authService=i,this.isExpanded=!1,this.authService.isAuthenticated().subscribe()}get isDarkTheme(){return"dark"===localStorage.getItem("theme")}collapse(){this.isExpanded=!1}toggle(){this.isExpanded=!this.isExpanded}importUser(){this.dialog.open(swe,{width:"50vw"})}importGroup(){this.dialog.open(cwe,{width:"50vw"})}auth(){this.authService.isAuthenticated().subscribe({next:e=>{if(e)this.authService.logout().subscribe();else{const i=this.dialog.open(l$,{width:"35vw",data:{afterLogin:()=>{i.close()}}})}},error:e=>{console.error("unexpected err happend",e)}})}static#e=this.\u0275fac=function(i){return new(i||t)(g(_w),g(ow))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-nav-menu"]],decls:38,vars:43,consts:[[1,"navbar","navbar-expand-lg","bg-body-tertiary","fs-5"],[1,"container-fluid"],["href","https://digitaldata.works/",1,"light-stroke","ms-5"],["fetchpriority","high","width","200vw",3,"src"],[1,"navbar-collapse","collapse","d-sm-inline-flex","justify-content-center",3,"ngClass"],[1,"navbar-nav","flex-grow"],[1,"nav-item",3,"routerLinkActive","routerLinkActiveOptions"],[1,"nav-link",3,"routerLink","routerLinkActive"],[1,"navbar-collapse","justify-content-end","me-5"],[1,"navbar-brand",3,"routerLink"],["type","button","data-toggle","collapse","data-target",".navbar-collapse","aria-label","Toggle navigation",1,"navbar-toggler",3,"click"],[1,"navbar-toggler-icon"],["type","button",1,"btn","ms-2","p-0",3,"click"],["src","../../assets/img/user.svg"],["type","button",1,"btn","d-flex","ms-2","p-0",2,"stroke","#a9a8ad",3,"click"],["width","3em","height","2.5em","viewBox","0 0 488.6 488.6","stroke","#a9a8ad",1,"bi"],["opacity","0.5","d","M480.9,333.2c-27.2-22.3-56.5-37.1-62.4-40c-0.7-0.3-1.1-1-1.1-1.8v-42.3c5.3-3.5,8.8-9.6,8.8-16.5v-43.9\n c0-21.8-17.7-39.5-39.5-39.5H382h-4.7c-21.8,0-39.5,17.7-39.5,39.5v43.9c0,6.9,3.5,12.9,8.8,16.5v42.3c0,0.3-0.1,0.5-0.1,0.7\n c8.3,5.7,17,12.1,25.5,19.1c9.9,8.2,15.6,20.2,15.6,33.2v35.3h101v-30.1C488.6,343.3,485.8,337.2,480.9,333.2z"],["opacity","0.5","d","M142,291.4v-42.3c5.3-3.5,8.8-9.6,8.8-16.5v-43.9c0-21.8-17.7-39.5-39.5-39.5h-4.7h-4.7c-21.8,0-39.5,17.7-39.5,39.5v43.9\n c0,6.9,3.5,12.9,8.8,16.5v42.3c0,0.7-0.4,1.4-1.1,1.8c-6,2.9-35.3,17.7-62.4,40c-4.9,4-7.7,10.1-7.7,16.4v30.1h101v-35.3\n c0-12.9,5.7-25,15.6-33.2c8.5-7,17.2-13.4,25.5-19.1C142.1,291.9,142,291.7,142,291.4z"],["opacity","0.5","d","M360.5,325.1c-31.9-26.2-66.3-43.6-73.4-47.1c-0.8-0.4-1.3-1.2-1.3-2.1v-49.7c6.2-4.2,10.4-11.3,10.4-19.3v-51.6\n c0-25.6-20.8-46.4-46.4-46.4h-5.5h-5.5c-25.6,0-46.4,20.8-46.4,46.4v51.5c0,8.1,4.1,15.2,10.4,19.3v49.7c0,0.9-0.5,1.7-1.3,2.1\n c-7,3.4-41.4,20.8-73.4,47.1c-5.8,4.7-9.1,11.8-9.1,19.3v35.3h108.9l10.8-49.3c-21.7-30.3,1.6-31.8,5.7-31.8l0,0l0,0\n c4.1,0,27.4,1.5,5.7,31.8l10.8,49.3h108.9v-35.3C369.6,336.9,366.3,329.8,360.5,325.1z"],["type","button",1,"fs-5","btn","d-flex","align-items-center","ms-2","me-0","pe-0",3,"click"],["fetchpriority","high","src","../../assets/img/login_logo.svg","alt","",2,"stroke","#a9a8ad"]],template:function(i,r){1&i&&(w(0,"header")(1,"nav",0)(2,"div",1)(3,"a",2),L(4,"img",3),E(),w(5,"div",4)(6,"ul",5)(7,"li",6)(8,"a",7),U(9,"Autorisierung"),E()(),w(10,"li",6)(11,"a",7),U(12,"Representation"),E()(),w(13,"li",6)(14,"a",7),U(15,"Benutzer"),E()(),w(16,"li",6)(17,"a",7),U(18,"Gruppen"),E()(),w(19,"li",6)(20,"a",7),U(21,"Module"),E()()()(),w(22,"div",8)(23,"a",9),U(24,"User Manager Portal"),E(),w(25,"button",10),B("click",function(){return r.toggle()}),L(26,"span",11),E(),L(27,"app-color-mode-bttn"),w(28,"button",12),B("click",function(){return r.importUser()}),L(29,"img",13),E(),w(30,"button",14),B("click",function(){return r.importGroup()}),Ln(),w(31,"svg",15),L(32,"path",16)(33,"path",17)(34,"path",18),E()(),Ps(),w(35,"button",19),B("click",function(){return r.auth()}),L(36,"img",20),U(37),E()()()()()),2&i&&(_(4),C("src",r.isDarkTheme?"../../assets/img/DD_white.svg":"../../assets/img/digital_data.svg",bp),_(),C("ngClass",Br(25,iDe,r.isExpanded)),_(2),C("routerLinkActive",ui(27,Xm))("routerLinkActiveOptions",ui(28,Jm)),_(),C("routerLink",ui(29,rDe))("routerLinkActive","active"),_(2),C("routerLinkActive",ui(30,Xm))("routerLinkActiveOptions",ui(31,Jm)),_(),C("routerLink",ui(32,oDe))("routerLinkActive","active"),_(2),C("routerLinkActive",ui(33,Xm))("routerLinkActiveOptions",ui(34,Jm)),_(),C("routerLink",ui(35,sDe))("routerLinkActive","active"),_(2),C("routerLinkActive",ui(36,Xm))("routerLinkActiveOptions",ui(37,Jm)),_(),C("routerLink",ui(38,aDe))("routerLinkActive","active"),_(2),C("routerLinkActive",ui(39,Xm))("routerLinkActiveOptions",ui(40,Jm)),_(),C("routerLink",ui(41,cDe))("routerLinkActive","active"),_(3),C("routerLink",ui(42,lDe)),_(2),st("aria-expanded",r.isExpanded),_(12),Fe(" ",r.isLogedIn()?"Log out":"Log in",""))},dependencies:[Hr,Lf,rx,nDe],styles:["a.navbar-brand[_ngcontent-%COMP%]{white-space:normal;text-align:center;word-break:break-all}html[_ngcontent-%COMP%]{font-size:14px}@media (min-width: 768px){html[_ngcontent-%COMP%]{font-size:16px}}.box-shadow[_ngcontent-%COMP%]{box-shadow:0 .25rem .75rem #0000000d}.bd-placeholder-img[_ngcontent-%COMP%]{font-size:1.125rem;text-anchor:middle;-webkit-user-select:none;user-select:none}@media (min-width: 768px){.bd-placeholder-img-lg[_ngcontent-%COMP%]{font-size:3.5rem}}.b-example-divider[_ngcontent-%COMP%]{width:100%;height:3rem;background-color:#0000001a;border:solid rgba(0,0,0,.15);border-width:1px 0;box-shadow:inset 0 .5em 1.5em #0000001a,inset 0 .125em .5em #00000026}.b-example-vr[_ngcontent-%COMP%]{flex-shrink:0;width:1.5rem;height:100vh}.bi[_ngcontent-%COMP%]{vertical-align:-.125em;fill:currentColor}.nav-scroller[_ngcontent-%COMP%]{position:relative;z-index:2;height:2.75rem;overflow-y:hidden}.nav-scroller[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;padding-bottom:1rem;margin-top:-1px;overflow-x:auto;text-align:center;white-space:nowrap;-webkit-overflow-scrolling:touch}.btn-bd-primary[_ngcontent-%COMP%]{--bd-violet-bg: #712cf9;--bd-violet-rgb: 112.520718, 44.062154, 249.437846;--bs-btn-font-weight: 600;--bs-btn-color: var(--bs-white);--bs-btn-bg: var(--bd-violet-bg);--bs-btn-border-color: var(--bd-violet-bg);--bs-btn-hover-color: var(--bs-white);--bs-btn-hover-bg: #6528e0;--bs-btn-hover-border-color: #6528e0;--bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);--bs-btn-active-color: var(--bs-btn-hover-color);--bs-btn-active-bg: #5a23c8;--bs-btn-active-border-color: #5a23c8}.bd-mode-toggle[_ngcontent-%COMP%]{z-index:1500}.bd-mode-toggle[_ngcontent-%COMP%] .dropdown-menu[_ngcontent-%COMP%] .active[_ngcontent-%COMP%] .bi[_ngcontent-%COMP%]{display:block!important}"]})}return t})(),dDe=(()=>{class t{constructor(){this.title="app"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["app-root"]],decls:4,vars:0,consts:[[1,"container-fluid"]],template:function(i,r){1&i&&(w(0,"body"),L(1,"app-nav-menu"),w(2,"main",0),L(3,"router-outlet"),E()())},dependencies:[KS,uDe],encapsulation:2})}return t})(),hDe=(()=>{class t{constructor(e,i){this.authService=e,this.router=i,this.username="",this.password=""}ngOnInit(){}static#e=this.\u0275fac=function(i){return new(i||t)(g(ow),g(wr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-home"]],decls:10,vars:0,consts:[[1,"container","pt-5"],[1,"row","justify-content-center","mt-5"],[1,"text-center"],["src","../../assets/img/Huhn_andersrum.webp","height","300vh"],[2,"font-size","500%"],[2,"font-weight","normal"]],template:function(i,r){1&i&&(w(0,"div",0)(1,"div",1)(2,"div",2),L(3,"img",3),E()(),w(4,"div",1)(5,"div",2)(6,"h1",4),U(7,"Digital Data - User Manager"),E(),w(8,"h5",5),U(9,"Ein zentrales Portal zur effizienten Verwaltung von Benutzerberechtigungen, Gruppen und Modulen"),E()()()())},encapsulation:2})}return t})(),gDe=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}deleteByModuleGroupId(e,i){return this.http.delete(`${this.baseUrl}?moduleId=${e}&userId=${i}`,{withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("MODULE_OF_USER_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pDe=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}deleteByGroupUserId(e,i){return this.http.delete(`${this.baseUrl}?groupId=${e}&userId=${i}`,{withCredentials:!0})}getAll(e=!1,i=!1){let r=new ts;return e&&(r=r.set("withUser",e)),i&&(r=r.set("withGroup",i)),this.http.get(this.baseUrl,{params:r,withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("GROUP_OF_USER_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bM=(()=>{class t extends rg{constructor(e,i,r,o,s){super(r,o,s),this.mosService=e,this.gosService=i}fetchDataByModuleId(e,i=!0){this.service.getByModuleId(e,i).subscribe({next:r=>{r.isSuccess&&r.data?this.source=r.data:console.error("Failed to fetch users")},error:r=>console.error("Error fetching users:",r)})}fetchDataByGroupId(e,i=!0){this.service.getByGroupId(e,i).subscribe({next:r=>{r.isSuccess&&r.data?this.source=r.data:console.error("Failed to fetch users")},error:r=>console.error("Error fetching users:",r)})}createModuleOfUsers(e,i){var r=this;return Zi(function*(){const o=i.filter(s=>s.guid&&null!=s.guid).map(s=>r.mosService.create({moduleId:e,userId:s.guid??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})()}createGroupOfUsers(e,i){var r=this;return Zi(function*(){const o=i.filter(s=>s.guid&&null!=s.guid).map(s=>r.gosService.create({groupId:e,userId:s.guid??-1,addedWho:"DEFAULT"}).toPromise());return Promise.all(o)})()}deleteModuleOfUsers(e,i){var r=this;return Zi(function*(){const o=i.filter(s=>s.guid).map(s=>r.mosService.deleteByModuleGroupId(e,s.guid??-1).toPromise());try{(yield Promise.all(o)).forEach(a=>{a?.isSuccess||console.error(a?.messages)})}catch(s){console.error("Error deleting module of users:",s)}})()}deleteGroupOfUsers(e,i){var r=this;return Zi(function*(){const o=i.filter(s=>s.guid).map(s=>r.gosService.deleteByGroupUserId(e,s.guid??-1).toPromise());try{(yield Promise.all(o)).forEach(a=>{a?.isSuccess||console.error(a?.messages)})}catch(s){console.error("Error deleting group of users:",s)}})()}static#e=this.\u0275fac=function(i){return new(i||t)(g(gDe),g(pDe),g(wG),g("USER_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-user-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})(),vM=(()=>{class t extends rg{constructor(e,i,r){super(e,i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(g(qT),g("GROUP_COMPLETE_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-group-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})(),fDe=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userUri=i}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("MODULE_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),u$=(()=>{class t extends rg{constructor(e,i,r){super(e,i,r)}static#e=this.\u0275fac=function(i){return new(i||t)(g(fDe),g("MODULE_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-module-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})();const mDe=["mat-internal-form-field",""],bDe=["*"],_De=new W("mat-sanity-checks",{providedIn:"root",factory:function vDe(){return!0}});let Qr=(()=>{class t{constructor(e,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!JT()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}static#e=this.\u0275fac=function(i){return new(i||t)(I(BCe),I(_De,8),I(Pe))};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[uw,uw]})}return t})();var No=function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t}(No||{});class xDe{constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r,this.state=No.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const g$=ul({passive:!0,capture:!0});class IDe{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const e=Ro(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,e,i,r){const o=this._events.get(e);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,g$)})}removeHandler(n,e,i){const r=this._events.get(n);if(!r)return;const o=r.get(e);o&&(o.delete(i),0===o.size&&r.delete(e),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,g$)))}}const p$={enterDuration:225,exitDuration:150},f$=ul({passive:!0,capture:!0}),m$=["mousedown","touchstart"],b$=["mouseup","mouseleave","touchend","touchcancel"];class yw{static#e=this._eventManager=new IDe;constructor(n,e,i,r){this._target=n,this._ngZone=e,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ei(i))}fadeInRipple(n,e,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...p$,...i.animation};i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);const s=i.radius||function MDe(t,n,e){const i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}(n,e,r),a=n-r.left,c=e-r.top,l=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=c-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);const h=window.getComputedStyle(u),v=h.transitionDuration,y="none"===h.transitionProperty||"0s"===v||"0s, 0s"===v||0===r.width&&0===r.height,D=new xDe(this,u,i,y);u.style.transform="scale3d(1, 1, 1)",D.state=No.FADING_IN,i.persistent||(this._mostRecentTransientRipple=D);let S=null;return!y&&(l||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const k=()=>this._finishRippleTransition(D),A=()=>this._destroyRipple(D);u.addEventListener("transitionend",k),u.addEventListener("transitioncancel",A),S={onTransitionEnd:k,onTransitionCancel:A}}),this._activeRipples.set(D,S),(y||!l)&&this._finishRippleTransition(D),D}fadeOutRipple(n){if(n.state===No.FADING_OUT||n.state===No.HIDDEN)return;const e=n.element,i={...p$,...n.config.animation};e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=No.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const e=ei(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,m$.forEach(i=>{yw._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{b$.forEach(e=>{this._triggerElement.addEventListener(e,this,f$)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===No.FADING_IN?this._startFadeOutTransition(n):n.state===No.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){const e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=No.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=No.HIDDEN,null!==e&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel)),n.element.remove()}_onMousedown(n){const e=aM(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!cM(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=n.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{!n.config.persistent&&(n.state===No.VISIBLE||n.config.terminateOnPointerUp&&n.state===No.FADING_IN)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(m$.forEach(e=>yw._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&b$.forEach(e=>n.removeEventListener(e,this,f$)))}}const kDe=new W("mat-ripple-global-options");let ww=(()=>{class t{get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}constructor(e,i,r,o,s){this._elementRef=e,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new yw(this,i,e,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,i,{...this.rippleConfig,...r}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(xe),g(Wi),g(kDe,8),g(Hs,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){2&i&&ae("mat-ripple-unbounded",r.unbounded)},inputs:{color:[ee.None,"matRippleColor","color"],unbounded:[ee.None,"matRippleUnbounded","unbounded"],centered:[ee.None,"matRippleCentered","centered"],radius:[ee.None,"matRippleRadius","radius"],animation:[ee.None,"matRippleAnimation","animation"],disabled:[ee.None,"matRippleDisabled","disabled"],trigger:[ee.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}return t})(),ADe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Qr,Qr]})}return t})(),RDe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){2&i&&ae("mdc-form-field--align-end","before"===r.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[Ft],attrs:mDe,ngContentSelectors:bDe,decls:1,vars:0,template:function(i,r){1&i&&(jn(),an(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mdc-form-field{font-family:var(--mdc-form-field-label-text-font);line-height:var(--mdc-form-field-label-text-line-height);font-size:var(--mdc-form-field-label-text-size);font-weight:var(--mdc-form-field-label-text-weight);letter-spacing:var(--mdc-form-field-label-text-tracking);color:var(--mdc-form-field-label-text-color)}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0})}return t})(),NDe=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ODe=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){const i=ei(e);return new rt(r=>{const s=this._observeElement(i).subscribe(r);return()=>{s.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const i=new se,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(i){return new(i||t)(I(NDe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),FDe=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=qm(e),this._subscribe()}constructor(e,i,r){this._contentObserver=e,this._elementRef=i,this._ngZone=r,this.event=new X,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe(p0(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(g(ODe),g(F),g(xe))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[ee.HasDecoratorInputTransform,"cdkObserveContentDisabled","disabled",yt],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],standalone:!0,features:[Bn]})}return t})();const _M=["*"];function PDe(t,n){1&t&&an(0)}const LDe=["tabListContainer"],BDe=["tabList"],VDe=["tabListInner"],HDe=["nextPaginator"],UDe=["previousPaginator"],jDe=t=>({animationDuration:t}),GDe=(t,n)=>({value:t,params:n});function $De(t,n){}const zDe=["tabBodyWrapper"],WDe=["tabHeader"];function qDe(t,n){}function YDe(t,n){1&t&&j(0,qDe,0,0,"ng-template",12),2&t&&C("cdkPortalOutlet",M().$implicit.templateLabel)}function KDe(t,n){1&t&&U(0),2&t&&ft(M().$implicit.textLabel)}function ZDe(t,n){if(1&t){const e=he();w(0,"div",7,2),B("click",function(){const r=$(e),o=r.$implicit,s=r.$index,a=M(),c=Gi(1);return z(a._handleClick(o,c,s))})("cdkFocusChange",function(r){const o=$(e).$index;return z(M()._tabFocusChanged(r,o))}),L(2,"span",8)(3,"div",9),w(4,"span",10)(5,"span",11),j(6,YDe,1,1)(7,KDe,1,1),E()()()}if(2&t){const e=n.$implicit,i=n.$index,r=Gi(1),o=M();ae("mdc-tab--active",o.selectedIndex===i),C("id",o._getTabLabelId(i))("ngClass",e.labelClass)("disabled",e.disabled)("fitInkBarToContent",o.fitInkBarToContent),st("tabIndex",o._getTabIndex(i))("aria-posinset",i+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(i))("aria-selected",o.selectedIndex===i)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),_(3),C("matRippleTrigger",r)("matRippleDisabled",e.disabled||o.disableRipple),_(3),bn(6,e.templateLabel?6:7)}}function QDe(t,n){1&t&&an(0)}function XDe(t,n){if(1&t){const e=he();w(0,"mat-tab-body",13),B("_onCentered",function(){return $(e),z(M()._removeTabBodyWrapperHeight())})("_onCentering",function(r){return $(e),z(M()._setTabBodyWrapperHeight(r))}),E()}if(2&t){const e=n.$implicit,i=n.$index,r=M();ae("mat-mdc-tab-body-active",r.selectedIndex===i),C("id",r._getTabContentId(i))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration)("preserveContent",r.preserveContent),st("tabindex",null!=r.contentTabIndex&&r.selectedIndex===i?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(i))("aria-hidden",r.selectedIndex!==i)}}const JDe=new W("MatTabContent");let e1e=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["","matTabContent",""]],standalone:!0,features:[ye([{provide:JDe,useExisting:t}])]})}return t})();const t1e=new W("MatTabLabel"),v$=new W("MAT_TAB");let n1e=(()=>{class t extends Rwe{constructor(e,i,r){super(e,i),this._closestTab=r}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(zt),g(v$,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],standalone:!0,features:[ye([{provide:t1e,useExisting:t}]),O]})}return t})();const _$=new W("MAT_TAB_GROUP");let yM=(()=>{class t{get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}constructor(e,i){this._viewContainerRef=e,this._closestTabGroup=i,this.disabled=!1,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new se,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new dw(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(_$,8))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-tab"]],contentQueries:function(i,r,o){if(1&i&&(It(o,n1e,5),It(o,e1e,7,Re)),2&i){let s;te(s=ne())&&(r.templateLabel=s.first),te(s=ne())&&(r._explicitContent=s.first)}},viewQuery:function(i,r){if(1&i&&pe(Re,7),2&i){let o;te(o=ne())&&(r._implicitContent=o.first)}},hostAttrs:["hidden",""],inputs:{disabled:[ee.HasDecoratorInputTransform,"disabled","disabled",yt],textLabel:[ee.None,"label","textLabel"],ariaLabel:[ee.None,"aria-label","ariaLabel"],ariaLabelledby:[ee.None,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],standalone:!0,features:[ye([{provide:v$,useExisting:t}]),Bn,we,Ft],ngContentSelectors:_M,decls:1,vars:0,template:function(i,r){1&i&&(jn(),j(0,PDe,1,0,"ng-template"))},encapsulation:2})}return t})();const wM="mdc-tab-indicator--active",y$="mdc-tab-indicator--no-transition";class i1e{constructor(n){this._items=n}hide(){this._items.forEach(n=>n.deactivateInkBar())}alignToElement(n){const e=this._items.find(r=>r.elementRef.nativeElement===n),i=this._currentItem;if(e!==i&&(i?.deactivateInkBar(),e)){const r=i?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(r),this._currentItem=e}}}let r1e=(()=>{class t{constructor(){this._elementRef=x(F),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){const i=this._elementRef.nativeElement;if(!e||!i.getBoundingClientRect||!this._inkBarContentElement)return void i.classList.add(wM);const r=i.getBoundingClientRect(),o=e.width/r.width,s=e.left-r.left;i.classList.add(y$),this._inkBarContentElement.style.setProperty("transform",`translateX(${s}px) scaleX(${o})`),i.getBoundingClientRect(),i.classList.remove(y$),i.classList.add(wM),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(wM)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const e=this._elementRef.nativeElement.ownerDocument||document,i=this._inkBarElement=e.createElement("span"),r=this._inkBarContentElement=e.createElement("span");i.className="mdc-tab-indicator",r.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",i.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275dir=N({type:t,inputs:{fitInkBarToContent:[ee.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",yt]},features:[Bn]})}return t})(),w$=(()=>{class t extends r1e{constructor(e){super(),this.elementRef=e,this.disabled=!1}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(i){return new(i||t)(g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(i,r){2&i&&(st("aria-disabled",!!r.disabled),ae("mat-mdc-tab-disabled",r.disabled))},inputs:{disabled:[ee.HasDecoratorInputTransform,"disabled","disabled",yt]},standalone:!0,features:[Bn,O]})}return t})();const C$=ul({passive:!0});let c1e=(()=>{class t{get selectedIndex(){return this._selectedIndex}set selectedIndex(e){const i=isNaN(e)?0:e;this._selectedIndex!=i&&(this._selectedIndexChanged=!0,this._selectedIndex=i,this._keyManager&&this._keyManager.updateActiveItem(i))}constructor(e,i,r,o,s,a,c){this._elementRef=e,this._changeDetectorRef=i,this._viewportRuler=r,this._dir=o,this._ngZone=s,this._platform=a,this._animationMode=c,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new se,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new se,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new X,this.indexFocused=new X,s.runOutsideAngular(()=>{en(e.nativeElement,"mouseleave").pipe(De(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){en(this._previousPaginator.nativeElement,"touchstart",C$).pipe(De(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),en(this._nextPaginator.nativeElement,"touchstart",C$).pipe(De(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:Ee("ltr"),i=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new wCe(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Zt(1)).subscribe(r),gs(e,i,this._items.changes,this._itemsResized()).pipe(De(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return"function"!=typeof ResizeObserver?yr:this._items.changes.pipe(Zs(this._items),_r(e=>new rt(i=>this._ngZone.runOutsideAngular(()=>{const r=new ResizeObserver(o=>i.next(o));return e.forEach(o=>r.observe(o.elementRef.nativeElement)),()=>{r.disconnect()}}))),Bh(1),Wt(e=>e.some(i=>i.contentRect.width>0&&i.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!pw(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){const i=this._items.get(this.focusIndex);i&&!i.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return!this._items||!!this._items.toArray()[e]}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const i=this._tabListContainer.nativeElement;i.scrollLeft="ltr"==this._getLayoutDirection()?0:i.scrollWidth-i.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,i="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const i=this._items?this._items.toArray()[e]:null;if(!i)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:o,offsetWidth:s}=i.elementRef.nativeElement;let a,c;"ltr"==this._getLayoutDirection()?(a=o,c=a+s):(c=this._tabListInner.nativeElement.offsetWidth-o,a=c-s);const l=this.scrollDistance,u=this.scrollDistance+r;a<l?this.scrollDistance-=l-a:c>u&&(this.scrollDistance+=Math.min(c-u,a-l))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,i=e?e.elementRef.nativeElement:null;i?this._inkBar.alignToElement(i):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,i){i&&null!=i.button&&0!==i.button||(this._stopInterval(),Dr(650,100).pipe(De(gs(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:o}=this._scrollHeader(e);(0===o||o>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const i=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(i,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:i,distance:this._scrollDistance}}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(me),g(sg),g(ha,8),g(xe),g(Wi),g(Hs,8))};static#t=this.\u0275dir=N({type:t,inputs:{disablePagination:[ee.HasDecoratorInputTransform,"disablePagination","disablePagination",yt],selectedIndex:[ee.HasDecoratorInputTransform,"selectedIndex","selectedIndex",D_]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Bn]})}return t})(),l1e=(()=>{class t extends c1e{constructor(e,i,r,o,s,a,c){super(e,i,r,o,s,a,c),this.disableRipple=!1}ngAfterContentInit(){this._inkBar=new i1e(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(me),g(sg),g(ha,8),g(xe),g(Wi),g(Hs,8))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-tab-header"]],contentQueries:function(i,r,o){if(1&i&&It(o,w$,4),2&i){let s;te(s=ne())&&(r._items=s)}},viewQuery:function(i,r){if(1&i&&(pe(LDe,7),pe(BDe,7),pe(VDe,7),pe(HDe,5),pe(UDe,5)),2&i){let o;te(o=ne())&&(r._tabListContainer=o.first),te(o=ne())&&(r._tabList=o.first),te(o=ne())&&(r._tabListInner=o.first),te(o=ne())&&(r._nextPaginator=o.first),te(o=ne())&&(r._previousPaginator=o.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(i,r){2&i&&ae("mat-mdc-tab-header-pagination-controls-enabled",r._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==r._getLayoutDirection())},inputs:{disableRipple:[ee.HasDecoratorInputTransform,"disableRipple","disableRipple",yt]},standalone:!0,features:[Bn,O,Ft],ngContentSelectors:_M,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled","disabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled","disabled"]],template:function(i,r){if(1&i){const o=he();jn(),w(0,"button",5,0),B("click",function(){return $(o),z(r._handlePaginatorClick("before"))})("mousedown",function(a){return $(o),z(r._handlePaginatorPress("before",a))})("touchend",function(){return $(o),z(r._stopInterval())}),L(2,"div",6),E(),w(3,"div",7,1),B("keydown",function(a){return $(o),z(r._handleKeydown(a))}),w(5,"div",8,2),B("cdkObserveContent",function(){return $(o),z(r._onContentChanges())}),w(7,"div",9,3),an(9),E()()(),w(10,"button",10,4),B("mousedown",function(a){return $(o),z(r._handlePaginatorPress("after",a))})("click",function(){return $(o),z(r._handlePaginatorClick("after"))})("touchend",function(){return $(o),z(r._stopInterval())}),L(12,"div",6),E()}2&i&&(ae("mat-mdc-tab-header-pagination-disabled",r._disableScrollBefore),C("matRippleDisabled",r._disableScrollBefore||r.disableRipple)("disabled",r._disableScrollBefore||null),_(3),ae("_mat-animation-noopable","NoopAnimations"===r._animationMode),_(7),ae("mat-mdc-tab-header-pagination-disabled",r._disableScrollAfter),C("matRippleDisabled",r._disableScrollAfter||r.disableRipple)("disabled",r._disableScrollAfter||null))},dependencies:[ww,FDe],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return t})();const u1e=new W("MAT_TABS_CONFIG"),d1e={translateTab:R3("translateTab",[Vf("center, void, left-origin-center, right-origin-center",is({transform:"none"})),Vf("left",is({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Vf("right",is({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Hf("* => left, * => right, left => center, right => center",Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Hf("void => left-origin-center",[is({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Hf("void => right-origin-center",[is({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),Bf("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let h1e=(()=>{class t extends ag{constructor(e,i,r,o){super(e,i,o),this._host=r,this._centeringSub=Ge.EMPTY,this._leavingSub=Ge.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Zs(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||t)(g(mn),g(zt),g(_t(()=>D$)),g(Pe))};static#t=this.\u0275dir=N({type:t,selectors:[["","matTabBodyHost",""]],standalone:!0,features:[O]})}return t})(),D$=(()=>{class t{set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(e,i,r){this._elementRef=e,this._dir=i,this._dirChangeSubscription=Ge.EMPTY,this._translateTabComplete=new se,this._onCentering=new X,this._beforeCentering=new X,this._afterLeavingCenter=new X,this._onCentered=new X(!0),this.animationDuration="500ms",this.preserveContent=!1,i&&(this._dirChangeSubscription=i.change.subscribe(o=>{this._computePositionAnimationState(o),r.markForCheck()})),this._translateTabComplete.pipe(Qy((o,s)=>o.fromState===s.fromState&&o.toState===s.toState)).subscribe(o=>{this._isCenterPosition(o.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(o.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const i=this._isCenterPosition(e.toState);this._beforeCentering.emit(i),i&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const i=this._getLayoutDirection();return"ltr"==i&&e<=0||"rtl"==i&&e>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(ha,8),g(me))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-tab-body"]],viewQuery:function(i,r){if(1&i&&pe(ag,5),2&i){let o;te(o=ne())&&(r._portalHost=o.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:[ee.None,"content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},standalone:!0,features:[Ft],decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(i,r){if(1&i){const o=he();w(0,"div",1,0),B("@translateTab.start",function(a){return $(o),z(r._onTranslateTabStarted(a))})("@translateTab.done",function(a){return $(o),z(r._translateTabComplete.next(a))}),j(2,$De,0,0,"ng-template",2),E()}2&i&&C("@translateTab",Ql(3,GDe,r._position,Br(1,jDe,r.animationDuration)))},dependencies:[h1e,Iwe],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[d1e.translateTab]}})}return t})(),g1e=0,CM=(()=>{class t{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}get animationDuration(){return this._animationDuration}set animationDuration(e){const i=e+"";this._animationDuration=/^\d+$/.test(i)?e+"ms":i}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const i=this._elementRef.nativeElement.classList;i.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&i.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}constructor(e,i,r,o){this._elementRef=e,this._changeDetectorRef=i,this._animationMode=o,this._tabs=new kd,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ge.EMPTY,this._tabLabelSubscription=Ge.EMPTY,this._fitInkBarToContent=!1,this.stretchTabs=!0,this.dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.disablePagination=!1,this.disableRipple=!1,this.preserveContent=!1,this.selectedIndexChange=new X,this.focusChange=new X,this.animationDone=new X,this.selectedTabChange=new X(!0),this._isServer=!x(Wi).isBrowser,this._groupId=g1e++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,null!=r?.contentTabIndex&&(this.contentTabIndex=r.contentTabIndex),this.preserveContent=!!r?.preserveContent,this.fitInkBarToContent=!(!r||null==r.fitInkBarToContent)&&r.fitInkBarToContent,this.stretchTabs=!r||null==r.stretchTabs||r.stretchTabs}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const i=null==this._selectedIndex;if(!i){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,o)=>r.isActive=o===e),i||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((i,r)=>{i.position=r-e,null!=this._selectedIndex&&0==i.position&&!i.origin&&(i.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){const i=this._tabs.toArray();let r;for(let o=0;o<i.length;o++)if(i[o].isActive){this._indexToSelect=this._selectedIndex=o,this._lastFocusedTabIndex=null,r=i[o];break}!r&&i[e]&&Promise.resolve().then(()=>{i[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Zs(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(i=>i._closestTabGroup===this||!i._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){const i=this._tabHeader;i&&(i.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const i=new f1e;return i.index=e,this._tabs&&this._tabs.length&&(i.tab=this._tabs.toArray()[e]),i}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=gs(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return;const i=this._tabBodyWrapper.nativeElement;i.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(i.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,i,r){i.focusIndex=r,e.disabled||(this.selectedIndex=r)}_getTabIndex(e){return e===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,i){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=i)}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(me),g(u1e,8),g(Hs,8))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-tab-group"]],contentQueries:function(i,r,o){if(1&i&&It(o,yM,5),2&i){let s;te(s=ne())&&(r._allTabs=s)}},viewQuery:function(i,r){if(1&i&&(pe(zDe,5),pe(WDe,5)),2&i){let o;te(o=ne())&&(r._tabBodyWrapper=o.first),te(o=ne())&&(r._tabHeader=o.first)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:10,hostBindings:function(i,r){2&i&&(Oc("mat-"+(r.color||"primary")),Ut("--mat-tab-animation-duration",r.animationDuration),ae("mat-mdc-tab-group-dynamic-height",r.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===r.headerPosition)("mat-mdc-tab-group-stretch-tabs",r.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[ee.HasDecoratorInputTransform,"fitInkBarToContent","fitInkBarToContent",yt],stretchTabs:[ee.HasDecoratorInputTransform,"mat-stretch-tabs","stretchTabs",yt],dynamicHeight:[ee.HasDecoratorInputTransform,"dynamicHeight","dynamicHeight",yt],selectedIndex:[ee.HasDecoratorInputTransform,"selectedIndex","selectedIndex",D_],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[ee.HasDecoratorInputTransform,"contentTabIndex","contentTabIndex",D_],disablePagination:[ee.HasDecoratorInputTransform,"disablePagination","disablePagination",yt],disableRipple:[ee.HasDecoratorInputTransform,"disableRipple","disableRipple",yt],preserveContent:[ee.HasDecoratorInputTransform,"preserveContent","preserveContent",yt],backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],standalone:!0,features:[ye([{provide:_$,useExisting:t}]),Bn,Ft],ngContentSelectors:_M,decls:9,vars:6,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"click","cdkFocusChange","id","ngClass","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","id","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(i,r){if(1&i){const o=he();jn(),w(0,"mat-tab-header",3,0),B("indexFocused",function(a){return $(o),z(r._focusChanged(a))})("selectFocusedIndex",function(a){return $(o),z(r.selectedIndex=a)}),uo(2,ZDe,8,16,"div",4,lo),E(),j(4,QDe,1,0),w(5,"div",5,1),uo(7,XDe,1,12,"mat-tab-body",6,lo),E()}2&i&&(C("selectedIndex",r.selectedIndex||0)("disableRipple",r.disableRipple)("disablePagination",r.disablePagination),_(2),ho(r._tabs),_(2),bn(4,r._isServer?4:-1),_(),ae("_mat-animation-noopable","NoopAnimations"===r._animationMode),_(2),ho(r._tabs))},dependencies:[l1e,w$,LCe,Hr,ww,ag,D$],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return t})();class f1e{}let m1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Qr,Qr]})}return t})();const b1e=["unassignedUsers"],v1e=["assignedUsers"],_1e=["modules"],y1e=["groups"];let w1e=(()=>{class t{constructor(){this.initWithoutData=()=>{},this.userInLabel="Benutzer in",this.tabItems=[{routerLink:"/module-user",title:"Modules"},{routerLink:"/group-user",title:"Groups"}],this.activeTabTitle=null,this.activeIndex=0,this.userRowSelection={enabled:!0,type:qa.CHECKBOX,mode:el.MULTIPLE},this.target=ga.Module,this.targetId=0,this.dragging="",this.dragAssigned=this.createAssignDragMethod("assigned"),this.dragUnassigned=this.createAssignDragMethod("unassigned"),this.modulesOnSelectedRows=e=>{e.length>0&&(this.modules.safelyUnselectAll(),this.userInLabel=`Benutzer in Module ${e[0].source?.name}`,this.target=ga.Module,this.targetId=e[0].source.guid,this.updateUserTables())},this.groupsOnSelectedRows=e=>{e.length>0&&(this.groups.safelyUnselectAll(),this.userInLabel=`Benutzer in Gruppe ${e[0].source?.name}`,this.target=ga.Group,this.targetId=e[0].source.guid,this.updateUserTables())},this.unassignedUsersOnSelectedRows=e=>{},this.assignedUsersOnSelectedRows=e=>{}}ngOnInit(){}ngAfterViewInit(){this.unassignedUsers.loading=!1,this.assignedUsers.loading=!1}createAssignDragMethod(e){return i=>{this.dragging=e,i.dataTransfer?.setData("text",e)}}allowDropOnAssigned(e){"unassigned"==this.dragging&&e.preventDefault()}allowDropOnUnassigned(e){"assigned"==this.dragging&&e.preventDefault()}dropToAssigned(e){if("unassigned"==e.dataTransfer?.getData("text")){var i=this.unassignedUsers.selectedRows,r=new Array;if(!i)return;for(var o of i)r.push(o.source);switch(this.unselectUserTables(),this.target){case ga.Module:this.unassignedUsers.createModuleOfUsers(this.targetId,r).then(()=>this.updateUserTables());break;case ga.Group:this.unassignedUsers.createGroupOfUsers(this.targetId,r).then(()=>this.updateUserTables())}}}dropToUnassigned(e){if("assigned"==e.dataTransfer?.getData("text")){var i=this.assignedUsers.selectedRows,r=new Array;if(!i)return;for(var o of i)r.push(o.source);switch(this.unselectUserTables(),this.target){case ga.Module:this.unassignedUsers.deleteModuleOfUsers(this.targetId,r).then(()=>this.updateUserTables());break;case ga.Group:this.unassignedUsers.deleteGroupOfUsers(this.targetId,r).then(()=>this.updateUserTables())}}}unselectUserTables(){this.assignedUsers.safelyUnselectAll(),this.unassignedUsers.safelyUnselectAll()}updateUserTables(){switch(this.unselectUserTables(),this.target){case ga.Module:this.assignedUsers.fetchDataByModuleId(this.targetId),this.unassignedUsers.fetchDataByModuleId(this.targetId,!1);break;case ga.Group:this.assignedUsers.fetchDataByGroupId(this.targetId),this.unassignedUsers.fetchDataByGroupId(this.targetId,!1)}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["app-user-assignment"]],viewQuery:function(i,r){if(1&i&&(pe(b1e,5),pe(v1e,5),pe(_1e,5),pe(y1e,5)),2&i){let o;te(o=ne())&&(r.unassignedUsers=o.first),te(o=ne())&&(r.assignedUsers=o.first),te(o=ne())&&(r.modules=o.first),te(o=ne())&&(r.groups=o.first)}},inputs:{activeTabTitle:"activeTabTitle",activeIndex:"activeIndex"},decls:20,vars:11,consts:[["modules",""],["groups",""],["unassignedUsers",""],["assignedUsers",""],[1,"container-fluid","text-center"],[1,"row","m-0","p-0"],[1,"col-2"],["label","Modul"],[1,"table-content",3,"onSelectedRows"],["label","Gruppen"],[1,"col-5","mt-0","pt-0"],["label","Nicht zugeordnete benutzer"],[1,"body-content",3,"drop","dragover","dragstart","onSelectedRows","rowSelection","draggable","initData"],[1,"col-5"],[3,"label"]],template:function(i,r){if(1&i){const o=he();w(0,"div",4)(1,"div",5)(2,"div",6)(3,"mat-tab-group")(4,"mat-tab",7),L(5,"app-module-table",8,0),E(),w(7,"mat-tab",9),L(8,"app-group-table",8,1),E()()(),w(10,"div",10)(11,"mat-tab-group")(12,"mat-tab",11)(13,"app-user-table",12,2),B("drop",function(a){return $(o),z(r.dropToUnassigned(a))})("dragover",function(a){return $(o),z(r.allowDropOnUnassigned(a))})("dragstart",function(a){return $(o),z(r.dragUnassigned(a))}),E()()()(),w(15,"div",13)(16,"mat-tab-group")(17,"mat-tab",14)(18,"app-user-table",12,3),B("drop",function(a){return $(o),z(r.dropToAssigned(a))})("dragover",function(a){return $(o),z(r.allowDropOnAssigned(a))})("dragstart",function(a){return $(o),z(r.dragAssigned(a))}),E()()()()()()}2&i&&(_(5),C("onSelectedRows",r.modulesOnSelectedRows),_(3),C("onSelectedRows",r.groupsOnSelectedRows),_(5),C("onSelectedRows",r.unassignedUsersOnSelectedRows)("rowSelection",r.userRowSelection)("draggable",!0)("initData",r.initWithoutData),_(4),oh("label",r.userInLabel),_(),C("onSelectedRows",r.assignedUsersOnSelectedRows)("rowSelection",r.userRowSelection)("draggable",!0)("initData",r.initWithoutData))},dependencies:[yM,CM,bM,vM,u$],styles:["div[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}"]})}return t})();var ga=function(t){return t[t.Module=0]="Module",t[t.Group=1]="Group",t}(ga||{});const C1e=[[["",8,"body-content"]],[["",8,"header-content"]]],D1e=[".body-content",".header-content"];function E1e(t,n){if(1&t&&(w(0,"span"),U(1),E()),2&t){const e=M(2);_(),ft(e.title)}}function S1e(t,n){if(1&t&&(w(0,"div",3),j(1,E1e,2,1,"span",4),an(2,1),E()),2&t){const e=M();_(),C("ngIf",e.title)}}let E$=(()=>{class t{constructor(){this.title=null,this.col=null,this.padding=0,this.hideTitle=!1}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["card"]],inputs:{title:"title",col:"col",padding:"padding",hideTitle:"hideTitle"},standalone:!0,features:[Ft],ngContentSelectors:D1e,decls:4,vars:2,consts:[[1,"card"],["class","card-header",4,"ngIf"],[3,"ngClass"],[1,"card-header"],[4,"ngIf"]],template:function(i,r){1&i&&(jn(C1e),w(0,"div",0),j(1,S1e,3,1,"div",1),w(2,"div",2),an(3),E()()),2&i&&(_(),C("ngIf",!r.hideTitle),_(),C("ngClass","card-body p-"+r.padding))},dependencies:[Oe,Hr,ln]})}return t})();const x1e=[[["",8,"body-content"]]],I1e=[".body-content"],T1e=()=>["link-active"],M1e=t=>[t];function k1e(t,n){if(1&t&&(w(0,"li",5)(1,"a",6),U(2),E()()),2&t){const e=n.$implicit,i=M();_(),C("ngClass",e.title==i.activeTabTitle?"nav-link active":"nav-link")("routerLink",Br(3,M1e,e.routerLink)),_(),ft(e.title)}}let A1e=(()=>{class t extends E${constructor(){super(...arguments),this.tabItems=[],this.activeTabTitle=null}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275cmp=V({type:t,selectors:[["tab-card"]],inputs:{tabItems:"tabItems",activeTabTitle:"activeTabTitle"},standalone:!0,features:[O,Ft],ngContentSelectors:I1e,decls:6,vars:4,consts:[[1,"card"],[1,"card-header"],[1,"nav","nav-tabs","card-header-tabs",3,"routerLinkActive"],["class","nav-item",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"nav-item"],["aria-current","true",3,"ngClass","routerLink"]],template:function(i,r){1&i&&(jn(x1e),w(0,"div",0)(1,"div",1)(2,"ul",2),j(3,k1e,3,5,"li",3),E()(),w(4,"div",4),an(5),E()()),2&i&&(_(2),C("routerLinkActive",ui(3,T1e)),_(),C("ngForOf",r.tabItems),_(),C("ngClass","card-body p-"+r.padding))},dependencies:[Oe,Hr,hi,k3,Lf,rx]})}return t})();function DM(t,n,e){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];r?t.setProperty(i,r,e?.has(i)?"important":""):t.removeProperty(i)}return t}function lg(t,n){const e=n?"":"none";DM(t.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function S$(t,n,e){DM(t.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function Cw(t,n){return n&&"none"!=n?t+" "+n:t}function x$(t){const n=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*n}function EM(t,n){return t.getPropertyValue(n).split(",").map(i=>i.trim())}function SM(t){const n=t.getBoundingClientRect();return{top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:n.width,height:n.height,x:n.x,y:n.y}}function xM(t,n,e){const{top:i,bottom:r,left:o,right:s}=t;return e>=i&&e<=r&&n>=o&&n<=s}function tb(t,n,e){t.top+=n,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function I$(t,n,e,i){const{top:r,right:o,bottom:s,left:a,width:c,height:l}=t,u=c*n,h=l*n;return i>r-h&&i<s+h&&e>a-u&&e<o+u}class T${constructor(n){this._document=n,this.positions=new Map}clear(){this.positions.clear()}cache(n){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),n.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:SM(e)})})}handleScroll(n){const e=Ro(n),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const l=this.getViewportScrollPosition();o=l.top,s=l.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,c=r.left-s;return this.positions.forEach((l,u)=>{l.clientRect&&e!==u&&e.contains(u)&&tb(l.clientRect,a,c)}),r.top=o,r.left=s,{top:a,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function M$(t){const n=t.cloneNode(!0),e=n.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();n.removeAttribute("id");for(let r=0;r<e.length;r++)e[r].removeAttribute("id");return"canvas"===i?R$(t,n):("input"===i||"select"===i||"textarea"===i)&&A$(t,n),k$("canvas",t,n,R$),k$("input, textarea, select",t,n,A$),n}function k$(t,n,e,i){const r=n.querySelectorAll(t);if(r.length){const o=e.querySelectorAll(t);for(let s=0;s<r.length;s++)i(r[s],o[s])}}let O1e=0;function A$(t,n){"file"!==n.type&&(n.value=t.value),"radio"===n.type&&n.name&&(n.name=`mat-clone-${n.name}-${O1e++}`)}function R$(t,n){const e=n.getContext("2d");if(e)try{e.drawImage(t,0,0)}catch{}}const N$=ul({passive:!0}),Dw=ul({passive:!1}),IM=new Set(["position"]);class P1e{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(e=>lg(e,n)))}constructor(n,e,i,r,o,s){this._config=e,this._document=i,this._ngZone=r,this._viewportRuler=o,this._dragDropRegistry=s,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new se,this._pointerMoveSubscription=Ge.EMPTY,this._pointerUpSubscription=Ge.EMPTY,this._scrollSubscription=Ge.EMPTY,this._resizeSubscription=Ge.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new se,this.started=new se,this.released=new se,this.ended=new se,this.entered=new se,this.exited=new se,this.dropped=new se,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&this._initializeDragSequence(c,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const c=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(c.x-this._pickupPositionOnPage.x)+Math.abs(c.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const v=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),y=this._dropContainer;if(!v)return void this._endDragSequence(a);(!y||!y.isDragging()&&!y.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const l=this._getConstrainedPointerPosition(c);if(this._hasMoved=!0,this._lastKnownPointerPosition=c,this._updatePointerDirectionDelta(l),this._dropContainer)this._updateActiveDropContainer(l,c);else{const u=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,h=this._activeTransform;h.x=l.x-u.x+this._passiveTransform.x,h.y=l.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(h.x,h.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:l,event:a,distance:this._getDragDistance(l),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const c=this._getTargetHandle(a);c&&!this._disabledHandles.has(c)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new T$(i),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(i=>ei(i)),this._handles.forEach(i=>lg(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){const e=ei(n);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Dw),e.addEventListener("touchstart",this._pointerDown,N$),e.addEventListener("dragstart",this._nativeDragStart,Dw)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?ei(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),lg(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),lg(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){const n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){const n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){nb(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),S$(i,!1,IM),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:n}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=nb(e),o=!r&&0!==e.button,s=this._rootElement,a=Ro(e),c=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),l=r?cM(e):aM(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||c||l)return;if(this._handles.length){const f=s.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=SM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){S$(this._rootElement,!0,IM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(n),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:n}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:n}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,n,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const n=this._previewTemplate,e=this.previewClass,i=n?n.template:null;let r;if(i&&n){const o=n.matchSize?this._initialDomRect:null,s=n.viewContainer.createEmbeddedView(i,n.context);s.detectChanges(),r=F$(s,this._document),this._previewRef=s,n.matchSize?P$(r,o):r.style.transform=Ew(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=M$(this._rootElement),P$(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return DM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},IM),lg(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const n=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);const e=function N1e(t){const n=getComputedStyle(t),e=EM(n,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=EM(n,"transition-duration"),s=EM(n,"transition-delay");return x$(o[r])+x$(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||Ro(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const n=this._placeholderTemplate,e=n?n.template:null;let i;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),i=F$(this._placeholderRef,this._document)):i=M$(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(n,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():n,s=nb(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-n.left+(s.pageX-o.left-a.left),y:o.top-n.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(n){const e=this._getViewportScrollPosition(),i=nb(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(n){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:o,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:c,height:l}=this._getPreviewRect(),u=a.top+s,h=a.bottom-(l-s);i=O$(i,a.left+o,a.right-(c-o)),r=O$(r,u,h)}return{x:i,y:r}}_updatePointerDirectionDelta(n){const{x:e,y:i}=n,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,lg(this._rootElement,n))}_removeRootElementListeners(n){n.removeEventListener("mousedown",this._pointerDown,Dw),n.removeEventListener("touchstart",this._pointerDown,N$),n.removeEventListener("dragstart",this._nativeDragStart,Dw)}_applyRootElementTransform(n,e){const i=Ew(n,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Cw(i,this._initialTransform)}_applyPreviewTransform(n,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Ew(n,e);this._preview.style.transform=Cw(r,i)}_getDragDistance(n){const e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(0===n&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,c=i.bottom-r.bottom;r.width>i.width?(o>0&&(n+=o),s>0&&(n-=s)):n=0,r.height>i.height?(a>0&&(e+=a),c>0&&(e-=c)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){const e=this.dragStartDelay;return"number"==typeof e?e:nb(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){const e=this._parentPositions.handleScroll(n);if(e){const i=Ro(n);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&tb(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=QT(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){const i=this._previewContainer||"global";if("parent"===i)return n;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return ei(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}}function Ew(t,n){return`translate3d(${Math.round(t)}px, ${Math.round(n)}px, 0)`}function O$(t,n,e){return Math.max(n,Math.min(e,t))}function nb(t){return"t"===t.type[0]}function F$(t,n){const e=t.rootNodes;if(1===e.length&&e[0].nodeType===n.ELEMENT_NODE)return e[0];const i=n.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function P$(t,n){t.style.width=`${n.width}px`,t.style.height=`${n.height}px`,t.style.transform=Ew(n.left,n.top)}function ib(t,n){return Math.max(0,Math.min(n,t))}class B1e{constructor(n,e){this._element=n,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(n){this.withItems(n)}sort(n,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(n,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,c=o.findIndex(S=>S.drag===n),l=o[s],h=l.clientRect,f=c>s?1:-1,v=this._getItemOffsetPx(o[c].clientRect,h,f),y=this._getSiblingOffsetPx(c,o,f),D=o.slice();return function L1e(t,n,e){const i=ib(n,t.length-1),r=ib(e,t.length-1);if(i===r)return;const o=t[i],s=r<i?-1:1;for(let a=i;a!==r;a+=s)t[a]=t[a+s];t[r]=o}(o,c,s),o.forEach((S,k)=>{if(D[k]===S)return;const A=S.drag===n,K=A?v:y,J=A?n.getPlaceholderElement():S.drag.getRootElement();S.offset+=K,a?(J.style.transform=Cw(`translate3d(${Math.round(S.offset)}px, 0, 0)`,S.initialTransform),tb(S.clientRect,0,K)):(J.style.transform=Cw(`translate3d(0, ${Math.round(S.offset)}px, 0)`,S.initialTransform),tb(S.clientRect,K,0))}),this._previousSwap.overlaps=xM(h,e,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:c,currentIndex:s}}enter(n,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(n,e,i):r,s=this._activeDraggables,a=s.indexOf(n),c=n.getPlaceholderElement();let l=s[o];if(l===n&&(l=s[o+1]),!l&&(null==o||-1===o||o<s.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(l=s[0]),a>-1&&s.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const u=l.getRootElement();u.parentElement.insertBefore(c,u),s.splice(o,0,n)}else ei(this._element).appendChild(c),s.push(n);c.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables.forEach(n=>{const e=n.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===n)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===n)}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:i})=>{tb(i,n,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const n="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:SM(i)}}).sort((e,i)=>n?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(n,e,i){const r="horizontal"===this.orientation;let o=r?e.left-n.left:e.top-n.top;return-1===i&&(o+=r?e.width-n.width:e.height-n.height),o}_getSiblingOffsetPx(n,e,i){const r="horizontal"===this.orientation,o=e[n].clientRect,s=e[n+-1*i];let a=o[r?"width":"height"]*i;if(s){const c=r?"left":"top",l=r?"right":"bottom";-1===i?a-=s.clientRect[c]-o[l]:a+=o[c]-s.clientRect[l]}return a}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?n>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?n<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(n,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:c})=>a!==n&&((!r||a!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?r.x:r.y)!==this._previousSwap.delta)&&(o?e>=Math.floor(c.left)&&e<Math.floor(c.right):i>=Math.floor(c.top)&&i<Math.floor(c.bottom))));return-1!==s&&this._sortPredicate(s,n)?s:-1}}var Oo=function(t){return t[t.NONE=0]="NONE",t[t.UP=1]="UP",t[t.DOWN=2]="DOWN",t}(Oo||{}),ur=function(t){return t[t.NONE=0]="NONE",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t}(ur||{});class V1e{constructor(n,e,i,r,o){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new se,this.entered=new se,this.exited=new se,this.dropped=new se,this.sorted=new se,this.receivingStarted=new se,this.receivingStopped=new se,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=Ge.EMPTY,this._verticalScrollDirection=Oo.NONE,this._horizontalScrollDirection=ur.NONE,this._stopScrollTimers=new se,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function R1e(t=0,n=Vh){return t<0&&(t=0),Dr(t,t,n)}(0,EG).pipe(De(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;this._verticalScrollDirection===Oo.UP?s.scrollBy(0,-a):this._verticalScrollDirection===Oo.DOWN&&s.scrollBy(0,a),this._horizontalScrollDirection===ur.LEFT?s.scrollBy(-a,0):this._horizontalScrollDirection===ur.RIGHT&&s.scrollBy(a,0)})},this.element=ei(n),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new T$(i),this._sortStrategy=new B1e(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,i,r,o,s,a,c={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:c})}withItems(n){const e=this._draggables;return this._draggables=n,n.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===n.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._sortStrategy.direction=n,this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){return this._sortStrategy.orientation=n,this}withScrollableParents(n){const e=ei(this.element);return this._scrollableElements=-1===n.indexOf(e)?[e,...n]:n.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,i,r){if(this.sortingDisabled||!this._domRect||!I$(this._domRect,.05,e,i))return;const o=this._sortStrategy.sort(n,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let i,r=Oo.NONE,o=ur.NONE;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||I$(s.clientRect,.05,n,e)&&([r,o]=function H1e(t,n,e,i,r){const o=V$(n,r),s=H$(n,i);let a=Oo.NONE,c=ur.NONE;if(o){const l=t.scrollTop;o===Oo.UP?l>0&&(a=Oo.UP):t.scrollHeight-l>t.clientHeight&&(a=Oo.DOWN)}if(s){const l=t.scrollLeft;"rtl"===e?s===ur.RIGHT?l<0&&(c=ur.RIGHT):t.scrollWidth+l>t.clientWidth&&(c=ur.LEFT):s===ur.LEFT?l>0&&(c=ur.LEFT):t.scrollWidth-l>t.clientWidth&&(c=ur.RIGHT)}return[a,c]}(a,s.clientRect,this._sortStrategy.direction,n,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),c={width:s,height:a,top:0,right:s,bottom:a,left:0};r=V$(c,e),o=H$(c,n),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const n=ei(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const n=ei(this.element);this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(n).clientRect}_reset(){this._isDragging=!1;const n=ei(this.element).style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(n,e){return null!=this._domRect&&xM(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,i){return this._siblings.find(r=>r._canReceive(n,e,i))}_canReceive(n,e,i){if(!this._domRect||!xM(this._domRect,e,i)||!this.enterPredicate(n,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=ei(this.element);return r===o||o.contains(r)}_startReceiving(n,e){const i=this._activeSiblings;!i.has(n)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const n=QT(ei(this.element));this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}}function V$(t,n){const{top:e,bottom:i,height:r}=t,o=.05*r;return n>=e-o&&n<=e+o?Oo.UP:n>=i-o&&n<=i+o?Oo.DOWN:Oo.NONE}function H$(t,n){const{left:e,right:i,width:r}=t,o=.05*r;return n>=e-o&&n<=e+o?ur.LEFT:n>=i-o&&n<=i+o?ur.RIGHT:ur.NONE}const Sw=ul({passive:!1,capture:!0});let U1e=(()=>{class t{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new se,this.pointerUp=new se,this.scroll=new se,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Sw)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Sw)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Sw}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Sw}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new rt(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),gs(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}static#e=this.\u0275fac=function(i){return new(i||t)(I(xe),I(Pe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const j1e={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let TM=(()=>{class t{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=j1e){return new P1e(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new V1e(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static#e=this.\u0275fac=function(i){return new(i||t)(I(Pe),I(xe),I(sg),I(U1e))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),X1e=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({providers:[TM],imports:[tM]})}return t})();class $${}function kM(t){return t&&"function"==typeof t.connect&&!(t instanceof RS)}var ec=function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t}(ec||{});const ob=new W("_ViewRepeater");class z${applyChanges(n,e,i,r,o){n.forEachOperation((s,a,c)=>{let l,u;if(null==s.previousIndex){const h=i(s,a,c);l=e.createEmbeddedView(h.templateRef,h.context,h.index),u=ec.INSERTED}else null==c?(e.remove(a),u=ec.REMOVED):(l=e.get(a),e.move(l,c),u=ec.MOVED);o&&o({context:l?.context,operation:u,record:s})})}detach(){}}class J1e{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new se,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);const e=this.selected,i=new Set(n);n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));const r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();const e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}return n}}const eEe=[[["caption"]],[["colgroup"],["col"]],"*"],tEe=["caption","colgroup, col","*"];function nEe(t,n){1&t&&an(0,2)}function iEe(t,n){1&t&&(w(0,"thead",0),In(1,1),E(),w(2,"tbody",0),In(3,2)(4,3),E(),w(5,"tfoot",0),In(6,4),E())}function rEe(t,n){1&t&&In(0,1)(1,2)(2,3)(3,4)}const pa=new W("CDK_TABLE");let ug=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkCellDef",""]],standalone:!0})}return t})(),dg=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkHeaderCellDef",""]],standalone:!0})}return t})(),xw=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkFooterCellDef",""]],standalone:!0})}return t})(),tc=(()=>{class t{get name(){return this._name}set name(e){this._setNameInput(e)}get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}constructor(e){this._table=e,this._hasStickyChanged=!1,this._sticky=!1,this._stickyEnd=!1}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(i){return new(i||t)(g(pa,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(i,r,o){if(1&i&&(It(o,ug,5),It(o,dg,5),It(o,xw,5)),2&i){let s;te(s=ne())&&(r.cell=s.first),te(s=ne())&&(r.headerCell=s.first),te(s=ne())&&(r.footerCell=s.first)}},inputs:{name:[ee.None,"cdkColumnDef","name"],sticky:[ee.HasDecoratorInputTransform,"sticky","sticky",yt],stickyEnd:[ee.HasDecoratorInputTransform,"stickyEnd","stickyEnd",yt]},standalone:!0,features:[ye([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),Bn]})}return t})();class AM{constructor(n,e){e.nativeElement.classList.add(...n._columnCssClassName)}}let RM=(()=>{class t extends AM{constructor(e,i){super(e,i)}static#e=this.\u0275fac=function(i){return new(i||t)(g(tc),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],standalone:!0,features:[O]})}return t})(),NM=(()=>{class t extends AM{constructor(e,i){super(e,i);const r=e._table?._getCellRole();r&&i.nativeElement.setAttribute("role",r)}static#e=this.\u0275fac=function(i){return new(i||t)(g(tc),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],standalone:!0,features:[O]})}return t})();class Y${constructor(){this.tasks=[],this.endTasks=[]}}const OM=new W("_COALESCED_STYLE_SCHEDULER");let K$=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new se}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Y$,this._getScheduleObservable().pipe(De(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new Y$;for(const i of e.tasks)i();for(const i of e.endTasks)i()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?$n(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Zt(1))}static#e=this.\u0275fac=function(i){return new(i||t)(I(xe))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),FM=(()=>{class t{constructor(e,i){this.template=e,this._differs=i}ngOnChanges(e){if(!this._columnsDiffer){const i=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(i).create(),this._columnsDiffer.diff(i)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof sb?e.headerCell.template:this instanceof ab?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(Pc))};static#t=this.\u0275dir=N({type:t,features:[we]})}return t})(),sb=(()=>{class t extends FM{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(Pc),g(pa,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[ee.None,"cdkHeaderRowDef","columns"],sticky:[ee.HasDecoratorInputTransform,"cdkHeaderRowDefSticky","sticky",yt]},standalone:!0,features:[Bn,O,we]})}return t})(),ab=(()=>{class t extends FM{get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}constructor(e,i,r){super(e,i),this._table=r,this._hasStickyChanged=!1,this._sticky=!1}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){const e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(Pc),g(pa,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[ee.None,"cdkFooterRowDef","columns"],sticky:[ee.HasDecoratorInputTransform,"cdkFooterRowDefSticky","sticky",yt]},standalone:!0,features:[Bn,O,we]})}return t})(),Iw=(()=>{class t extends FM{constructor(e,i,r){super(e,i),this._table=r}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re),g(Pc),g(pa,8))};static#t=this.\u0275dir=N({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[ee.None,"cdkRowDefColumns","columns"],when:[ee.None,"cdkRowDefWhen","when"]},standalone:!0,features:[O]})}return t})(),nc=(()=>{class t{static#e=this.mostRecentCellOutlet=null;constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(i){return new(i||t)(g(zt))};static#n=this.\u0275dir=N({type:t,selectors:[["","cdkCellOutlet",""]],standalone:!0})}return t})(),PM=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],standalone:!0,features:[Ft],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&In(0,0)},dependencies:[nc],encapsulation:2})}return t})(),BM=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],standalone:!0,features:[Ft],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&In(0,0)},dependencies:[nc],encapsulation:2})}return t})(),Tw=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(i){return new(i||t)(g(Re))};static#t=this.\u0275dir=N({type:t,selectors:[["ng-template","cdkNoDataRow",""]],standalone:!0})}return t})();const Z$=["top","bottom","left","right"];class cEe{constructor(n,e,i,r,o=!0,s=!0,a){this._isNativeHtmlTable=n,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=s,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(n,e){const i=[];for(const r of n)if(r.nodeType===r.ELEMENT_NODE){i.push(r);for(let o=0;o<r.children.length;o++)i.push(r.children[o])}this._coalescedStyleScheduler.schedule(()=>{for(const r of i)this._removeStickyStyle(r,e)})}updateStickyColumns(n,e,i,r=!0){n.length&&this._isBrowser&&(e.some(o=>o)||i.some(o=>o))?this._coalescedStyleScheduler.schedule(()=>{const o=n[0],s=o.children.length,a=this._getCellWidths(o,r),c=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i),u=e.lastIndexOf(!0),h=i.indexOf(!0),f="rtl"===this.direction,v=f?"right":"left",y=f?"left":"right";for(const D of n)for(let S=0;S<s;S++){const k=D.children[S];e[S]&&this._addStickyStyle(k,v,c[S],S===u),i[S]&&this._addStickyStyle(k,y,l[S],S===h)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===u?[]:a.slice(0,u+1).map((D,S)=>e[S]?D:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:a.slice(h).map((D,S)=>i[S+h]?D:null).reverse()}))}):this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]}))}stickRows(n,e,i){this._isBrowser&&this._coalescedStyleScheduler.schedule(()=>{const r="bottom"===i?n.slice().reverse():n,o="bottom"===i?e.slice().reverse():e,s=[],a=[],c=[];for(let u=0,h=0;u<r.length;u++){if(!o[u])continue;s[u]=h;const f=r[u];c[u]=this._isNativeHtmlTable?Array.from(f.children):[f];const v=f.getBoundingClientRect().height;h+=v,a[u]=v}const l=o.lastIndexOf(!0);for(let u=0;u<r.length;u++){if(!o[u])continue;const h=s[u],f=u===l;for(const v of c[u])this._addStickyStyle(v,i,h,f)}"top"===i?this._positionListener?.stickyHeaderRowsUpdated({sizes:a,offsets:s,elements:c}):this._positionListener?.stickyFooterRowsUpdated({sizes:a,offsets:s,elements:c})})}updateStickyFooterContainer(n,e){this._isNativeHtmlTable&&this._coalescedStyleScheduler.schedule(()=>{const i=n.querySelector("tfoot");i&&(e.some(r=>!r)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0,!1))})}_removeStickyStyle(n,e){for(const r of e)n.style[r]="",n.classList.remove(this._borderCellCss[r]);Z$.some(r=>-1===e.indexOf(r)&&n.style[r])?n.style.zIndex=this._getCalculatedZIndex(n):(n.style.zIndex="",this._needsPositionStickyOnElement&&(n.style.position=""),n.classList.remove(this._stickCellCss))}_addStickyStyle(n,e,i,r){n.classList.add(this._stickCellCss),r&&n.classList.add(this._borderCellCss[e]),n.style[e]=`${i}px`,n.style.zIndex=this._getCalculatedZIndex(n),this._needsPositionStickyOnElement&&(n.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(n){const e={top:100,bottom:10,left:1,right:1};let i=0;for(const r of Z$)n.style[r]&&(i+=e[r]);return i?`${i}`:""}_getCellWidths(n,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],r=n.children;for(let o=0;o<r.length;o++)i.push(r[o].getBoundingClientRect().width);return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(n,e){const i=[];let r=0;for(let o=0;o<n.length;o++)e[o]&&(i[o]=r,r+=n[o]);return i}_getStickyEndColumnPositions(n,e){const i=[];let r=0;for(let o=n.length;o>0;o--)e[o]&&(i[o]=r,r+=n[o]);return i}}const VM=new W("CDK_SPL");let HM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=x(pa);r._rowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["","rowOutlet",""]],standalone:!0})}return t})(),UM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=x(pa);r._headerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["","headerRowOutlet",""]],standalone:!0})}return t})(),jM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=x(pa);r._footerRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["","footerRowOutlet",""]],standalone:!0})}return t})(),GM=(()=>{class t{constructor(e,i){this.viewContainer=e,this.elementRef=i;const r=x(pa);r._noDataRowOutlet=this,r._outletAssigned()}static#e=this.\u0275fac=function(i){return new(i||t)(g(zt),g(F))};static#t=this.\u0275dir=N({type:t,selectors:[["","noDataRowOutlet",""]],standalone:!0})}return t})(),Mw=(()=>{class t{_getCellRole(){if(void 0===this._cellRoleInternal){const e=this._elementRef.nativeElement.getAttribute("role"),i="grid"===e||"treegrid"===e?"gridcell":"cell";this._cellRoleInternal=this._isNativeHtmlTable&&"cell"===i?null:i}return this._cellRoleInternal}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,i,r,o,s,a,c,l,u,h,f,v){this._differs=e,this._changeDetectorRef=i,this._elementRef=r,this._dir=s,this._platform=c,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=v,this._onDestroy=new se,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._hasAllOutlets=!1,this._hasInitialized=!1,this._cellRoleInternal=void 0,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new X,this.viewChange=new dt({start:0,end:Number.MAX_VALUE}),o||r.nativeElement.setAttribute("role","table"),this._document=a,this._isServer=!c.isBrowser,this._isNativeHtmlTable="TABLE"===r.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._dataDiffer=this._differs.find([]).create((e,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i),this._viewportRuler.change().pipe(De(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),kM(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const i=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,i,(r,o,s)=>this._getEmbeddedViewArgs(r.item,s),r=>r.item.data,r=>{r.operation===ec.INSERTED&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{i.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&xe.isInAngularZone()?this._ngZone.onStable.pipe(Zt(1),De(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const r=Q$(this._headerRowOutlet,"thead");r&&(r.style.display=e.length?"":"none")}const i=this._headerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const r=Q$(this._footerRowOutlet,"tfoot");r&&(r.style.display=e.length?"":"none")}const i=this._footerRowDefs.map(r=>r.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(r=>r.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),i=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...i,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((o,s)=>{this._addStickyColumnStyles([o],this._headerRowDefs[s])}),this._rowDefs.forEach(o=>{const s=[];for(let a=0;a<i.length;a++)this._renderRows[a].rowDef===o&&s.push(i[a]);this._addStickyColumnStyles(s,o)}),r.forEach((o,s)=>{this._addStickyColumnStyles([o],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(o=>o.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const i=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||i,this._forceRecalculateCellWidths=i,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const e=[],i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r<this._data.length;r++){let o=this._data[r];const s=this._getRenderRowsForData(o,r,i.get(o));this._cachedRenderRowsMap.has(o)||this._cachedRenderRowsMap.set(o,new WeakMap);for(let a=0;a<s.length;a++){let c=s[a];const l=this._cachedRenderRowsMap.get(c.data);l.has(c.rowDef)?l.get(c.rowDef).push(c):l.set(c.rowDef,[c]),e.push(c)}}return e}_getRenderRowsForData(e,i,r){return this._getRowDefs(e,i).map(s=>{const a=r&&r.has(s)?r.get(s):[];if(a.length){const c=a.shift();return c.dataIndex=i,c}return{data:e,rowDef:s,dataIndex:i}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kw(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(i=>{this._columnDefsByName.has(i.name),this._columnDefsByName.set(i.name,i)})}_cacheRowDefs(){this._headerRowDefs=kw(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kw(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kw(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(i=>!i.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(s,a)=>s||!!a.getColumnsDiff(),i=this._rowDefs.reduce(e,!1);i&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const o=this._footerRowDefs.reduce(e,!1);return o&&this._forceRenderFooterRows(),i||r||o}_switchDataSource(e){this._data=[],kM(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;kM(this.dataSource)?e=this.dataSource.connect(this):kS(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ee(this.dataSource)),this._renderChangeSubscription=e.pipe(De(this._onDestroy)).subscribe(i=>{this._data=i||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,i)=>this._renderRow(this._headerRowOutlet,e,i)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,i)=>this._renderRow(this._footerRowOutlet,e,i)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,i){const r=Array.from(i.columns||[]).map(a=>this._columnDefsByName.get(a)),o=r.map(a=>a.sticky),s=r.map(a=>a.stickyEnd);this._stickyStyler.updateStickyColumns(e,o,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const i=[];for(let r=0;r<e.viewContainer.length;r++){const o=e.viewContainer.get(r);i.push(o.rootNodes[0])}return i}_getRowDefs(e,i){if(1==this._rowDefs.length)return[this._rowDefs[0]];let r=[];if(this.multiTemplateDataRows)r=this._rowDefs.filter(o=>!o.when||o.when(i,e));else{let o=this._rowDefs.find(s=>s.when&&s.when(i,e))||this._defaultRowDef;o&&r.push(o)}return r}_getEmbeddedViewArgs(e,i){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:i}}_renderRow(e,i,r,o={}){const s=e.viewContainer.createEmbeddedView(i.template,o,r);return this._renderCellTemplateForItem(i,o),s}_renderCellTemplateForItem(e,i){for(let r of this._getCellTemplates(e))nc.mostRecentCellOutlet&&nc.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let i=0,r=e.length;i<r;i++){const s=e.get(i).context;s.count=r,s.first=0===i,s.last=i===r-1,s.even=i%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[i].dataIndex,s.renderIndex=i):s.index=this._renderRows[i].dataIndex}}_getCellTemplates(e){return e&&e.columns?Array.from(e.columns,i=>{const r=this._columnDefsByName.get(i);return e.extractCellTemplate(r)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(i,r)=>i||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new cEe(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Ee()).pipe(De(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(i=>!i._table||i._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const i=0===this._rowOutlet.viewContainer.length;if(i===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(i){const o=r.createEmbeddedView(e.templateRef),s=o.rootNodes[0];1===o.rootNodes.length&&s?.nodeType===this._document.ELEMENT_NODE&&(s.setAttribute("role","row"),s.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=i,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(i){return new(i||t)(g(Pc),g(me),g(F),so("role"),g(ha,8),g(Pe),g(Wi),g(ob),g(OM),g(sg),g(VM,12),g(xe,8))};static#t=this.\u0275cmp=V({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(i,r,o){if(1&i&&(It(o,Tw,5),It(o,tc,5),It(o,Iw,5),It(o,sb,5),It(o,ab,5)),2&i){let s;te(s=ne())&&(r._noDataRow=s.first),te(s=ne())&&(r._contentColumnDefs=s),te(s=ne())&&(r._contentRowDefs=s),te(s=ne())&&(r._contentHeaderRowDefs=s),te(s=ne())&&(r._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(i,r){2&i&&ae("cdk-table-fixed-layout",r.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[ee.HasDecoratorInputTransform,"multiTemplateDataRows","multiTemplateDataRows",yt],fixedLayout:[ee.HasDecoratorInputTransform,"fixedLayout","fixedLayout",yt]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],standalone:!0,features:[ye([{provide:pa,useExisting:t},{provide:ob,useClass:z$},{provide:OM,useClass:K$},{provide:VM,useValue:null}]),Bn,Ft],ngContentSelectors:tEe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(jn(eEe),an(0),an(1,1),j(2,nEe,1,0)(3,iEe,7,0)(4,rEe,4,0)),2&i&&(_(2),bn(2,r._isServer?2:-1),_(),bn(3,r._isNativeHtmlTable?3:4))},dependencies:[UM,HM,GM,jM],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function kw(t,n){return t.concat(Array.from(n))}function Q$(t,n){const e=n.toUpperCase();let i=t.viewContainer.element.nativeElement;for(;i;){const r=1===i.nodeType?i.nodeName:null;if(r===e)return i;if("TABLE"===r)break;i=i.parentNode}return null}let uEe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Mwe]})}return t})();const dEe=[[["caption"]],[["colgroup"],["col"]],"*"],hEe=["caption","colgroup, col","*"];function gEe(t,n){1&t&&an(0,2)}function pEe(t,n){1&t&&(w(0,"thead",0),In(1,1),E(),w(2,"tbody",2),In(3,3)(4,4),E(),w(5,"tfoot",0),In(6,5),E())}function fEe(t,n){1&t&&In(0,1)(1,3)(2,4)(3,5)}let J$=(()=>{class t extends Mw{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275cmp=V({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(i,r){2&i&&ae("mdc-table-fixed-layout",r.fixedLayout)},exportAs:["matTable"],standalone:!0,features:[ye([{provide:Mw,useExisting:t},{provide:pa,useExisting:t},{provide:OM,useClass:K$},{provide:ob,useClass:z$},{provide:VM,useValue:null}]),O,Ft],ngContentSelectors:hEe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(i,r){1&i&&(jn(dEe),an(0),an(1,1),j(2,gEe,1,0)(3,pEe,7,0)(4,fEe,4,0)),2&i&&(_(2),bn(2,r._isServer?2:-1),_(),bn(3,r._isNativeHtmlTable?3:4))},dependencies:[UM,HM,GM,jM],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return t})(),$M=(()=>{class t extends ug{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","matCellDef",""]],standalone:!0,features:[ye([{provide:ug,useExisting:t}]),O]})}return t})(),zM=(()=>{class t extends dg{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","matHeaderCellDef",""]],standalone:!0,features:[ye([{provide:dg,useExisting:t}]),O]})}return t})(),WM=(()=>{class t extends tc{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[ee.None,"matColumnDef","name"]},standalone:!0,features:[ye([{provide:tc,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),O]})}return t})(),qM=(()=>{class t extends RM{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],standalone:!0,features:[O]})}return t})(),YM=(()=>{class t extends NM{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],standalone:!0,features:[O]})}return t})(),ez=(()=>{class t extends sb{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[ee.None,"matHeaderRowDef","columns"],sticky:[ee.HasDecoratorInputTransform,"matHeaderRowDefSticky","sticky",yt]},standalone:!0,features:[ye([{provide:sb,useExisting:t}]),Bn,O]})}return t})(),tz=(()=>{class t extends Iw{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275dir=N({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[ee.None,"matRowDefColumns","columns"],when:[ee.None,"matRowDefWhen","when"]},standalone:!0,features:[ye([{provide:Iw,useExisting:t}]),O]})}return t})(),nz=(()=>{class t extends PM{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275cmp=V({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],standalone:!0,features:[ye([{provide:PM,useExisting:t}]),O,Ft],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&In(0,0)},dependencies:[nc],encapsulation:2})}return t})(),iz=(()=>{class t extends BM{static#e=this.\u0275fac=(()=>{let e;return function(r){return(e||(e=Ne(t)))(r||t)}})();static#t=this.\u0275cmp=V({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],standalone:!0,features:[ye([{provide:BM,useExisting:t}]),O,Ft],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(i,r){1&i&&In(0,0)},dependencies:[nc],encapsulation:2})}return t})(),DEe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Qr,uEe,Qr]})}return t})();class SEe extends $${get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}constructor(n=[]){super(),this._renderData=new dt([]),this._filter=new dt(""),this._internalPageChanges=new se,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,i)=>{const r=e[i];if(DG(r)){const o=Number(r);return o<9007199254740991?o:r}return r},this.sortData=(e,i)=>{const r=i.active,o=i.direction;return r&&""!=o?e.sort((s,a)=>{let c=this.sortingDataAccessor(s,r),l=this.sortingDataAccessor(a,r);const u=typeof c,h=typeof l;u!==h&&("number"===u&&(c+=""),"number"===h&&(l+=""));let f=0;return null!=c&&null!=l?c>l?f=1:c<l&&(f=-1):null!=c?f=1:null!=l&&(f=-1),f*("asc"==o?1:-1)}):e},this.filterPredicate=(e,i)=>{const r=Object.keys(e).reduce((s,a)=>s+e[a]+"\u25ec","").toLowerCase(),o=i.trim().toLowerCase();return-1!=r.indexOf(o)},this._data=new dt(n),this._updateChangeSubscription()}_updateChangeSubscription(){const n=this._sort?gs(this._sort.sortChange,this._sort.initialized):Ee(null),e=this._paginator?gs(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Ee(null),r=La([this._data,this._filter]).pipe(Me(([a])=>this._filterData(a))),o=La([r,n]).pipe(Me(([a])=>this._orderData(a))),s=La([o,e]).pipe(Me(([a])=>this._pageData(a)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(a=>this._renderData.next(a))}_filterData(n){return this.filteredData=null==this.filter||""===this.filter?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;const e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){const i=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,i);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}const xEe=["input"],IEe=["label"],TEe=["*"],MEe=new W("mat-checkbox-default-options",{providedIn:"root",factory:rz});function rz(){return{color:"accent",clickAction:"check-indeterminate"}}var qi=function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t}(qi||{});const kEe={provide:Ur,useExisting:_t(()=>KM),multi:!0};class AEe{}let REe=0;const oz=rz();let KM=(()=>{class t{focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new AEe;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,o,s,a){this._elementRef=e,this._changeDetectorRef=i,this._ngZone=r,this._animationMode=s,this._options=a,this._animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"},this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new X,this.indeterminateChange=new X,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=qi.Init,this._controlValueAccessorChangeFn=()=>{},this._validatorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||oz,this.color=this._options.color||oz.color,this.tabIndex=parseInt(o)||0,this.id=this._uniqueId="mat-mdc-checkbox-"+ ++REe}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=e,i&&(this._transitionCheckState(this._indeterminate?qi.Indeterminate:this.checked?qi.Checked:qi.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,r=this._getAnimationTargetElement();if(i!==e&&r&&(this._currentAnimationClass&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const o=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(o)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?!this.disabled&&"noop"===e&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?qi.Checked:qi.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case qi.Init:if(i===qi.Checked)return this._animationClasses.uncheckedToChecked;if(i==qi.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case qi.Unchecked:return i===qi.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case qi.Checked:return i===qi.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case qi.Indeterminate:return i===qi.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static#e=this.\u0275fac=function(i){return new(i||t)(g(F),g(me),g(xe),so("tabindex"),g(Hs,8),g(MEe,8))};static#t=this.\u0275cmp=V({type:t,selectors:[["mat-checkbox"]],viewQuery:function(i,r){if(1&i&&(pe(xEe,5),pe(IEe,5),pe(ww,5)),2&i){let o;te(o=ne())&&(r._inputElement=o.first),te(o=ne())&&(r._labelElement=o.first),te(o=ne())&&(r.ripple=o.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:14,hostBindings:function(i,r){2&i&&(ji("id",r.id),st("tabindex",null)("aria-label",null)("aria-labelledby",null),Oc(r.color?"mat-"+r.color:"mat-accent"),ae("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mdc-checkbox--disabled",r.disabled)("mat-mdc-checkbox-disabled",r.disabled)("mat-mdc-checkbox-checked",r.checked))},inputs:{ariaLabel:[ee.None,"aria-label","ariaLabel"],ariaLabelledby:[ee.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[ee.None,"aria-describedby","ariaDescribedby"],id:"id",required:[ee.HasDecoratorInputTransform,"required","required",yt],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[ee.HasDecoratorInputTransform,"disableRipple","disableRipple",yt],tabIndex:[ee.HasDecoratorInputTransform,"tabIndex","tabIndex",e=>null==e?void 0:D_(e)],color:"color",checked:[ee.HasDecoratorInputTransform,"checked","checked",yt],disabled:[ee.HasDecoratorInputTransform,"disabled","disabled",yt],indeterminate:[ee.HasDecoratorInputTransform,"indeterminate","indeterminate",yt]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],standalone:!0,features:[ye([kEe,{provide:gi,useExisting:t,multi:!0}]),Bn,we,Ft],ngContentSelectors:TEe,decls:15,vars:19,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,r){if(1&i){const o=he();jn(),w(0,"div",3),B("click",function(a){return $(o),z(r._preventBubblingFromLabel(a))}),w(1,"div",4,0)(3,"div",5),B("click",function(){return $(o),z(r._onTouchTargetClick())}),E(),w(4,"input",6,1),B("blur",function(){return $(o),z(r._onBlur())})("click",function(){return $(o),z(r._onInputClick())})("change",function(a){return $(o),z(r._onInteractionEvent(a))}),E(),L(6,"div",7),w(7,"div",8),Ln(),w(8,"svg",9),L(9,"path",10),E(),Ps(),L(10,"div",11),E(),L(11,"div",12),E(),w(12,"label",13,2),an(14),E()()}if(2&i){const o=Gi(2);C("labelPosition",r.labelPosition),_(4),ae("mdc-checkbox--selected",r.checked),C("checked",r.checked)("indeterminate",r.indeterminate)("disabled",r.disabled)("id",r.inputId)("required",r.required)("tabIndex",r.disabled?-1:r.tabIndex),st("aria-label",r.ariaLabel||null)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-checked",r.indeterminate?"mixed":null)("name",r.name)("value",r.value),_(7),C("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)("matRippleCentered",!0),_(),C("for",r.inputId)}},dependencies:[ww,RDe],styles:['.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}.mdc-checkbox[hidden]{display:none}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring{border-color:CanvasText}}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__focus-ring::after,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__focus-ring::after{border-color:CanvasText}}@media all and (-ms-high-contrast: none){.mdc-checkbox .mdc-checkbox__focus-ring{display:none}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}.mdc-checkbox{padding:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2)}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:var(--mdc-checkbox-disabled-selected-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-icon-color);background-color:var(--mdc-checkbox-selected-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-icon-color);background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}@keyframes mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}}@keyframes mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-hover-icon-color);background-color:var(--mdc-checkbox-selected-hover-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-hover-icon-color);background-color:transparent}}.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:hover.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:hover.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-FF212121FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}@keyframes mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336{0%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}50%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}}@keyframes mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336{0%,80%{border-color:var(--mdc-checkbox-selected-pressed-icon-color);background-color:var(--mdc-checkbox-selected-pressed-icon-color)}100%{border-color:var(--mdc-checkbox-unselected-pressed-icon-color);background-color:transparent}}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox:not(:disabled):active.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FFF4433600000000FFF44336}.mdc-checkbox .mdc-checkbox__background{top:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);right:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);left:calc((var(--mdc-checkbox-state-layer-size) - var(--mdc-checkbox-state-layer-size)) / 2);width:var(--mdc-checkbox-state-layer-size);height:var(--mdc-checkbox-state-layer-size)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:focus:not(:checked):not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color)}.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color);background-color:var(--mdc-checkbox-selected-focus-icon-color)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity);background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity);background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity);background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color)}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox .mdc-checkbox__background{-webkit-print-color-adjust:exact;color-adjust:exact}.mat-mdc-checkbox._mat-animation-noopable *,.mat-mdc-checkbox._mat-animation-noopable *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color)}.mat-mdc-checkbox label:empty{display:none}.cdk-high-contrast-active .mat-mdc-checkbox.mat-mdc-checkbox-disabled{opacity:.5}.cdk-high-contrast-active .mat-mdc-checkbox .mdc-checkbox__checkmark{--mdc-checkbox-selected-checkmark-color: CanvasText;--mdc-checkbox-disabled-selected-checkmark-color: CanvasText}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return t})(),FEe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[KM,Qr,Qr]})}return t})();function PEe(t,n){if(1&t){const e=he();w(0,"th",12)(1,"mat-checkbox",13),B("change",function(r){$(e);const o=M();return z(r?o.toggleAllRows():null)}),E()()}if(2&t){const e=M();_(),C("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function LEe(t,n){if(1&t){const e=he();w(0,"td",14)(1,"mat-checkbox",15),B("click",function(r){return $(e),z(r.stopPropagation())})("change",function(r){const o=$(e).$implicit,s=M();return z(r?s.selection.toggle(o):null)}),E()()}if(2&t){const e=n.$implicit,i=M();C("draggable",!0),_(),C("checked",i.selection.isSelected(e))("aria-label",i.checkboxLabel(e))}}function BEe(t,n){1&t&&(w(0,"th",16),U(1," No. "),E()),2&t&&C("draggable",!0)}function VEe(t,n){if(1&t&&(w(0,"td",17),U(1),E()),2&t){const e=n.$implicit;_(),Fe(" ",e.position," ")}}function HEe(t,n){1&t&&(w(0,"th",12),U(1," Name "),E())}function UEe(t,n){if(1&t&&(w(0,"td",17),U(1),E()),2&t){const e=n.$implicit;_(),Fe(" ",e.name," ")}}function jEe(t,n){1&t&&(w(0,"th",12),U(1," Weight "),E())}function GEe(t,n){if(1&t&&(w(0,"td",17),U(1),E()),2&t){const e=n.$implicit;_(),Fe(" ",e.weight," ")}}function $Ee(t,n){1&t&&(w(0,"th",12),U(1," Symbol "),E())}function zEe(t,n){if(1&t&&(w(0,"td",17),U(1),E()),2&t){const e=n.$implicit;_(),Fe(" ",e.symbol," ")}}function WEe(t,n){1&t&&L(0,"tr",18)}function qEe(t,n){if(1&t){const e=he();w(0,"tr",19),B("click",function(){const r=$(e).$implicit;return z(M().selection.toggle(r))}),E()}}const YEe=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}];let KEe=(()=>{class t{constructor(){this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=new SEe(YEe),this.selection=new J1e(!0,[])}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}toggleAllRows(){this.isAllSelected()?this.selection.clear():this.selection.select(...this.dataSource.data)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:(this.isAllSelected()?"deselect":"select")+" all"}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["mt-table"]],standalone:!0,features:[Ft],decls:18,vars:3,consts:[["cdkDrag","","mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"draggable",4,"matCellDef"],["matColumnDef","position"],["mat-header-cell","",3,"draggable",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell","",3,"draggable"],["cdkDrag","",3,"click","change","checked","aria-label"],["mat-header-cell","",3,"draggable"],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"click"]],template:function(i,r){1&i&&(w(0,"table",0),Qe(1,1),j(2,PEe,2,3,"th",2)(3,LEe,2,3,"td",3),nt(),Qe(4,4),j(5,BEe,2,1,"th",5)(6,VEe,2,1,"td",6),nt(),Qe(7,7),j(8,HEe,2,0,"th",2)(9,UEe,2,1,"td",6),nt(),Qe(10,8),j(11,jEe,2,0,"th",2)(12,GEe,2,1,"td",6),nt(),Qe(13,9),j(14,$Ee,2,0,"th",2)(15,zEe,2,1,"td",6),nt(),j(16,WEe,1,0,"tr",10)(17,qEe,1,0,"tr",11),E()),2&i&&(C("dataSource",r.dataSource),_(16),C("matHeaderRowDef",r.displayedColumns),_(),C("matRowDefColumns",r.displayedColumns))},dependencies:[Oe,DEe,J$,zM,ez,WM,$M,tz,qM,YM,nz,iz,FEe,KM]})}return t})(),sz=(()=>{class t extends Ja{constructor(e,i){super(e,i),this.userRepUri=i}getAll(e=!1,i=!1,r=!1,o=!1,s){let a=new ts;return e&&(a=a.set("withUser",e)),i&&(a=a.set("withRepGroup",i)),r&&(a=a.set("withRightGroup",r)),o&&(a=a.set("withRepUser",o)),s&&(a=a.set("userId",s)),this.http.get(`${this.baseUrl}`,{params:a,withCredentials:!0})}static#e=this.\u0275fac=function(i){return new(i||t)(I(jr),I("USER_REP_URL"))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ZEe=(()=>{class t extends rg{constructor(e,i,r){super(e,i,r),this.loading=!1}fetchData(e){this.service.getAll(!1,!0,!0,!0,e).subscribe({next:i=>{i.isSuccess&&i.data?(this.source=i.data,this.loading=!1):console.error("Failed to fetch users")},error:i=>console.error("Error fetching users:",i)})}static#e=this.\u0275fac=function(i){return new(i||t)(g(sz),g("USER_REP_TABLE_COLUMNS"),g(Zr))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-user-rep-table"]],features:[O],decls:2,vars:14,consts:[["grid",""],[3,"selectedRows","columns","columnMenu","sorting","loading","rowSelection","rowDetail","autoResizeWidth","paging","searching","cellEditing","virtualScroll","infoPanel","titlePanel","theme"]],template:function(i,r){if(1&i){const o=he();w(0,"gui-grid",1,0),B("selectedRows",function(a){return $(o),z(r.onSelectedRows(a))}),E()}2&i&&C("columns",r.columns)("columnMenu",r.columnMenu)("sorting",r.sorting)("loading",r.loading)("rowSelection",r.rowSelection)("rowDetail",r.rowDetail)("autoResizeWidth",r.autoResizeWidth)("paging",r.paging)("searching",r.searching)("cellEditing",r.cellEditing)("virtualScroll",!0)("infoPanel",r.infoPanel)("titlePanel",r.titlePanel)("theme",r.theme)},dependencies:[la]})}return t})();const QEe=["users"],XEe=["repUsers"],JEe=["repGroups"],eSe=["rightGroups"],tSe=["userReps"];let nSe=(()=>{class t{constructor(e,i,r){this.useRepLabel="",this.slUserId=null,this.slRepUserId=null,this.slRepGroupId=null,this.slRightGroupId=null,this.slUserRepId=null,this.initWithoutData=()=>{},this.userOnSelectedRows=o=>{o.length>0&&(this.users.safelyUnselectAll(),this.useRepLabel=`Repr\xe4sentationen von ${o[0].source?.username}`,this.userReps.fetchData(o[0].source?.guid),this.slUserId=o[0].source?.guid)},this.rightGroupOnSelectedRows=o=>{this.slRightGroupId=o.length>0?o[0].source?.guid:null},this.repUserOnSelectedRows=o=>{0==o.length&&this.slRepUserId?(this.slUserId?this.slRepUserId?this.slRightGroupId?this.userRepService.create({userId:this.slUserId,rightGroupId:this.slRightGroupId,repUserId:this.slRepUserId,addedWho:"DEFAULT"}).subscribe({next:a=>{this.slRepUserId=null,this.repUsers.safelyUnselectAll(),null!=this.slUserId&&this.userReps.fetchData(this.slUserId)},error:a=>{const c=a?.error||"Es ist ein unerwarteter Fehler aufgetreten.";Sr().fire({icon:"error",title:"Oops...",text:`${c}\nBitte versuchen Sie es sp\xe4ter noch einmal.`})}}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie die richtige Gruppe!"}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie die repr\xe4sentative Benutzer!"}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie den Benutzer!"}),this.slRepUserId=null):o.length>0&&(this.slRepUserId=o[0].source?.guid)},this.repGroupOnSelectedRows=o=>{0==o.length&&this.slRepGroupId?(this.slUserId?this.slRepGroupId?this.slRightGroupId?this.userRepService.create({userId:this.slUserId,rightGroupId:this.slRightGroupId,repGroupId:this.slRepGroupId,addedWho:"DEFAULT"}).subscribe({next:a=>{this.slRepGroupId=null,this.repUsers.safelyUnselectAll(),null!=this.slUserId&&this.userReps.fetchData(this.slUserId)},error:a=>{const c=a?.error||"Es ist ein unerwarteter Fehler aufgetreten.";Sr().fire({icon:"error",title:"Oops...",text:`${c}\nBitte versuchen Sie es sp\xe4ter noch einmal.`})}}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie die richtige Gruppe!"}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie die repr\xe4sentative Gruppe!"}):Sr().fire({icon:"error",title:"Oops...",text:"Bitte w\xe4hlen Sie den Benutzer!"}),this.slRepGroupId=null):o.length>0&&(this.slRepGroupId=o[0].source?.guid)},this.userRepOnSelectedRows=o=>{0==o.length&&this.slUserRepId?this.userRepService.delete(this.slUserRepId).subscribe({next:s=>{this.slUserRepId=null,this.userReps.safelyUnselectAll(),null!=this.slUserId&&this.userReps.fetchData(this.slUserId)},error:s=>{this.slUserRepId=null,this.repUsers.safelyUnselectAll();const a=s?.error||"Es ist ein unerwarteter Fehler aufgetreten.";Sr().fire({icon:"error",title:"Oops...",text:`${a}\nBitte versuchen Sie es sp\xe4ter noch einmal.`})}}):o.length>0&&(this.slUserRepId=o[0].source?.guid)},this.groupRepCols=i,this.groupRightColumns=r,this.userRepService=e}static#e=this.\u0275fac=function(i){return new(i||t)(g(sz),g("GROUP_REP_TABLE_COLUMNS"),g("GROUP_RIGHT_TABLE_COLUMNS"))};static#t=this.\u0275cmp=V({type:t,selectors:[["app-user-representation"]],viewQuery:function(i,r){if(1&i&&(pe(QEe,5),pe(XEe,5),pe(JEe,5),pe(eSe,5),pe(tSe,5)),2&i){let o;te(o=ne())&&(r.users=o.first),te(o=ne())&&(r.repUsers=o.first),te(o=ne())&&(r.repGroups=o.first),te(o=ne())&&(r.rightGroups=o.first),te(o=ne())&&(r.userReps=o.first)}},decls:25,vars:9,consts:[["users",""],["rightGroups]",""],["repUsers",""],["repGroups",""],["userReps",""],[1,"container-fluid","text-center"],[1,"row"],[1,"col-5"],["label","Benutzer"],[3,"onSelectedRows"],[1,"col-2"],["label","Rich. Gruppen"],[3,"columns","onSelectedRows"],["label","Rep. Benutzer"],["label","Rep. Gruppen"],[1,"col-3"],[3,"label"],[3,"initData","onSelectedRows"]],template:function(i,r){1&i&&(w(0,"div",5)(1,"div",6)(2,"div",7)(3,"mat-tab-group")(4,"mat-tab",8),L(5,"app-user-table",9,0),E()()(),w(7,"div",10)(8,"mat-tab-group")(9,"mat-tab",11),L(10,"app-group-table",12,1),E()()(),w(12,"div",10)(13,"mat-tab-group")(14,"mat-tab",13),L(15,"app-user-table",9,2),E(),w(17,"mat-tab",14),L(18,"app-group-table",12,3),E()()(),w(20,"div",15)(21,"mat-tab-group")(22,"mat-tab",16),L(23,"app-user-rep-table",17,4),E()()()()()),2&i&&(_(5),C("onSelectedRows",r.userOnSelectedRows),_(5),C("columns",r.groupRightColumns)("onSelectedRows",r.rightGroupOnSelectedRows),_(5),C("onSelectedRows",r.repUserOnSelectedRows),_(3),C("columns",r.groupRepCols)("onSelectedRows",r.repGroupOnSelectedRows),_(4),oh("label",r.useRepLabel),_(),C("initData",r.initWithoutData)("onSelectedRows",r.userRepOnSelectedRows))},dependencies:[yM,CM,bM,vM,ZEe]})}return t})();const ZM=new W("@sweetalert2/ngx-sweetalert2#swalProvider"),az=new W("@sweetalert2/ngx-sweetalert2#fireOnInit"),cz=new W("@sweetalert2/ngx-sweetalert2#dismissOnDestroy");let lz=(()=>{class t{swalProvider;swalPromiseCache;constructor(e){this.swalProvider=e}get swal(){return this.swalPromiseCache||this.preloadSweetAlertLibrary(),this.swalPromiseCache}preloadSweetAlertLibrary(){if(this.swalPromiseCache)return;const e=function i(o){return"function"==typeof o&&void 0===o.version}(this.swalProvider)?this.swalProvider():Promise.resolve(this.swalProvider);this.swalPromiseCache=e.then(o=>function r(o){return"function"==typeof o}(o)?o:o.default)}static \u0275fac=function(i){return new(i||t)(I(ZM))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function iSe(){return Promise.resolve().then(Fi.t.bind(Fi,32,19))}let rSe=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[lz,{provide:ZM,useValue:e.provideSwal||iSe},{provide:az,useValue:e.fireOnInit||!1},{provide:cz,useValue:e.dismissOnDestroy||!0}]}}static forChild(e={}){return{ngModule:t,providers:[...e.provideSwal?[lz,{provide:ZM,useValue:e.provideSwal}]:[],...void 0!==e.fireOnInit?[{provide:az,useValue:e.fireOnInit}]:[],...void 0!==e.dismissOnDestroy?[{provide:cz,useValue:e.dismissOnDestroy}]:[]]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=re({type:t});static \u0275inj=ie({imports:[Oe]})}return t})(),sSe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Qr,ADe,Qr]})}return t})(),gSe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[Qr,Qr]})}return t})(),lb=(()=>{class t{constructor(e,i,r){this.dialog=e,this.authService=i,this.router=r}canActivate(e,i){return new rt(r=>{this.authService.isAuthenticated().subscribe({next:o=>{o||this.openLogin(),r.next(o)},error:o=>{r.next(!1)},complete:()=>r.complete()})})}openLogin(){const e=this.dialog.open(l$,{width:"35vw",data:{afterLogin:()=>{e.close()}}});return e}static#e=this.\u0275fac=function(i){return new(i||t)(I(_w),I(ow),I(wr))};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function JM(...t){const n=B_(t);return qt((e,i)=>{const r=t.length,o=new Array(r);let s=t.map(()=>!1),a=!1;for(let c=0;c<r;c++)Gn(t[c]).subscribe(Mt(i,l=>{o[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(ri))&&(s=null))},Jt));e.subscribe(Mt(i,c=>{if(a){const l=[c,...o];i.next(n?n(...l):l)}}))})}Math,Math,Math;const Exe=["*"],eIe=["dialog"],Nz={animation:!0,transitionTimerDelayMs:5};let Lw=(()=>{class t{constructor(){this.animation=Nz.animation}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mg(t){return"string"==typeof t}function Hu(t){return null!=t}function bg(t){return(t||document.body).getBoundingClientRect()}const qIe=()=>{},{transitionTimerDelayMs:YIe}=Nz,mb=new Map,Po=(t,n,e,i)=>{let r=i.context||{};const o=mb.get(n);if(o)switch(i.runningTransition){case"continue":return yr;case"stop":t.run(()=>o.transition$.complete()),r=Object.assign(o.context,r),mb.delete(n)}const s=e(n,i.animation,r)||qIe;if(!i.animation||"none"===window.getComputedStyle(n).transitionProperty)return t.run(()=>s()),Ee(void 0).pipe(function WIe(t){return n=>new rt(e=>n.subscribe({next:s=>t.run(()=>e.next(s)),error:s=>t.run(()=>e.error(s)),complete:()=>t.run(()=>e.complete())}))}(t));const a=new se,c=new se,l=a.pipe(function vSe(...t){return n=>vh(n,Ee(...t))}(!0));mb.set(n,{transition$:a,complete:()=>{c.next(),c.complete()},context:r});const u=function GIe(t){const{transitionDelay:n,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(n)+parseFloat(e))}(n);return t.runOutsideAngular(()=>{const h=en(n,"transitionend").pipe(De(l),Wt(({target:v})=>v===n));(function pz(...t){return 1===(t=iU(t)).length?Gn(t[0]):new rt(function bSe(t){return n=>{let e=[];for(let i=0;e&&!n.closed&&i<t.length;i++)e.push(Gn(t[i]).subscribe(Mt(n,r=>{if(e){for(let o=0;o<e.length;o++)o!==i&&e[o].unsubscribe();e=null}n.next(r)})))}}(t))})(Dr(u+YIe).pipe(De(l)),h,c).pipe(De(l)).subscribe(()=>{mb.delete(n),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let Hz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),hk=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),Gz=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),$z=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();var tn=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}(tn||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const Qz=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Xz(t){const n=Array.from(t.querySelectorAll(Qz)).filter(e=>-1!==e.tabIndex);return[n[0],n[n.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let p8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),m8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),QTe=(()=>{class t{constructor(){this._ngbConfig=x(Lw),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class zu{constructor(n,e,i){this.nodes=n,this.viewRef=e,this.componentRef=i}}let XTe=(()=>{class t{constructor(){this._document=x(Pe)}hide(){const e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,r=i.style,{overflow:o,paddingRight:s}=r;if(e>0){const a=parseFloat(window.getComputedStyle(i).paddingRight);r.paddingRight=`${a+e}px`}return r.overflow="hidden",()=>{e>0&&(r.paddingRight=s),r.overflow=o}}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JTe=(()=>{class t{constructor(){this._nativeElement=x(F).nativeElement,this._zone=x(xe)}ngOnInit(){this._zone.onStable.asObservable().pipe(Zt(1)).subscribe(()=>{Po(this._zone,this._nativeElement,(e,i)=>{i&&bg(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Po(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,r){2&i&&(Oc("modal-backdrop"+(r.backdropClass?" "+r.backdropClass:"")),ae("show",!r.animation)("fade",r.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[Ft],decls:0,vars:0,template:function(i,r){},encapsulation:2})}return t})();class b8{update(n){}close(n){}dismiss(n){}}const eMe=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],tMe=["animation","backdropClass"];class nMe{_applyWindowOptions(n,e){eMe.forEach(i=>{Hu(e[i])&&(n[i]=e[i])})}_applyBackdropOptions(n,e){tMe.forEach(i=>{Hu(e[i])&&(n[i]=e[i])})}update(n){this._applyWindowOptions(this._windowCmptRef.instance,n),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,n)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(De(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(De(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(n,e,i,r){this._windowCmptRef=n,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new se,this._dismissed=new se,this._hidden=new se,n.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,s)=>{this._resolve=o,this._reject=s}),this.result.then(null,()=>{})}close(n){this._windowCmptRef&&(this._closed.next(n),this._resolve(n),this._removeModalElements())}_dismiss(n){this._dismissed.next(n),this._reject(n),this._removeModalElements()}dismiss(n){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();!function Oz(t){return t&&t.then}(e)?!1!==e&&this._dismiss(n):e.then(i=>{!1!==i&&this._dismiss(n)},()=>{})}else this._dismiss(n)}_removeModalElements(){const n=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Ee(void 0);n.subscribe(()=>{const{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),f0(n,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Ek=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(Ek||{});let iMe=(()=>{class t{constructor(){this._document=x(Pe),this._elRef=x(F),this._zone=x(xe),this._closed$=new se,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new X,this.shown=new se,this.hidden=new se}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":mg(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Zt(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},s=f0(Po(this._zone,e,()=>e.classList.remove("show"),i),Po(this._zone,this._dialogEl.nativeElement,()=>{},i));return s.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),s}_show(){const e={animation:this.animation,runningTransition:"continue"};f0(Po(this._zone,this._elRef.nativeElement,(o,s)=>{s&&bg(o),o.classList.add("show")},e),Po(this._zone,this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{en(e,"keydown").pipe(De(this._closed$),Wt(r=>r.which===tn.Escape)).subscribe(r=>{this.keyboard?requestAnimationFrame(()=>{r.defaultPrevented||this._zone.run(()=>this.dismiss(Ek.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let i=!1;en(this._dialogEl.nativeElement,"mousedown").pipe(De(this._closed$),Tn(()=>i=!1),_r(()=>en(e,"mouseup").pipe(De(this._closed$),Zt(1))),Wt(({target:r})=>e===r)).subscribe(()=>{i=!0}),en(e,"click").pipe(De(this._closed$)).subscribe(({target:r})=>{e===r&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!i&&this._zone.run(()=>this.dismiss(Ek.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){const i=e.querySelector("[ngbAutofocus]"),r=Xz(e)[0];(i||r||e).focus()}}_restoreFocus(){const e=this._document.body,i=this._elWithFocus;let r;r=i&&i.focus&&e.contains(i)?i:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>r.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Po(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=V({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,r){if(1&i&&pe(eIe,7),2&i){let o;te(o=ne())&&(r._dialogEl=o.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,r){2&i&&(st("aria-modal",!0)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy),Oc("modal d-block"+(r.windowClass?" "+r.windowClass:"")),ae("fade",r.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[Ft],ngContentSelectors:Exe,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,r){1&i&&(jn(),w(0,"div",1,0)(2,"div",2),an(3),E()()),2&i&&Oc("modal-dialog"+(r.size?" modal-"+r.size:"")+(r.centered?" modal-dialog-centered":"")+r.fullscreenClass+(r.scrollable?" modal-dialog-scrollable":"")+(r.modalDialogClass?" "+r.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return t})(),rMe=(()=>{class t{constructor(){this._applicationRef=x(yi),this._injector=x(He),this._environmentInjector=x(_i),this._document=x(Pe),this._scrollBar=x(XTe),this._activeWindowCmptHasChanged=new se,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new X;const e=x(xe);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const i=this._windowCmpts[this._windowCmpts.length-1];((t,n,e,i=!1)=>{t.runOutsideAngular(()=>{const r=en(n,"focusin").pipe(De(e),Me(o=>o.target));en(n,"keydown").pipe(De(e),Wt(o=>o.which===tn.Tab),JM(r)).subscribe(([o,s])=>{const[a,c]=Xz(n);(s===a||s===n)&&o.shiftKey&&(c.focus(),o.preventDefault()),s===c&&!o.shiftKey&&(a.focus(),o.preventDefault())}),i&&en(n,"click").pipe(De(e),JM(r),Me(o=>o[1])).subscribe(o=>o.focus())})})(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){const e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,r){const o=r.container instanceof HTMLElement?r.container:Hu(r.container)?this._document.querySelector(r.container):this._document.body;if(!o)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const s=new b8,a=(e=r.injector||e).get(_i,null)||this._environmentInjector,c=this._getContentRef(e,a,i,s,r);let l=!1!==r.backdrop?this._attachBackdrop(o):void 0,u=this._attachWindowComponent(o,c.nodes),h=new nMe(u,c,l,r.beforeDismiss);return this._registerModalRef(h),this._registerWindowCmpt(u),h.hidden.pipe(Zt(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),s.close=f=>{h.close(f)},s.dismiss=f=>{h.dismiss(f)},s.update=f=>{h.update(f)},h.update(r),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),l&&l.instance&&l.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),h}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=xE(JTe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let r=xE(iMe,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_getContentRef(e,i,r,o,s){return r?r instanceof Re?this._createFromTemplateRef(r,o):mg(r)?this._createFromString(r):this._createFromComponent(e,i,r,o,s):new zu([])}_createFromTemplateRef(e,i){const o=e.createEmbeddedView({$implicit:i,close(s){i.close(s)},dismiss(s){i.dismiss(s)}});return this._applicationRef.attachView(o),new zu([o.rootNodes],o)}_createFromString(e){const i=this._document.createTextNode(`${e}`);return new zu([[i]])}_createFromComponent(e,i,r,o,s){const c=xE(r,{environmentInjector:i,elementInjector:He.create({providers:[{provide:b8,useValue:o}],parent:e})}),l=c.location.nativeElement;return s.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new zu([[l]],c.hostView,c)}_setAriaHidden(e){const i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(r=>{r!==e&&"SCRIPT"!==r.nodeName&&(this._ariaHiddenValues.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const i=()=>{const r=this._modalRefs.indexOf(e);r>-1&&(this._modalRefs.splice(r,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oMe=(()=>{class t{constructor(){this._injector=x(He),this._modalStack=x(rMe),this._config=x(QTe)}open(e,i={}){const r={...this._config,animation:this._config.animation,...i};return this._modalStack.open(this._injector,e,r)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),v8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({providers:[oMe]})}return t})(),w8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),Ik=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),M8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),k8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),A8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),R8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),N8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),O8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),F8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();new W("live announcer delay",{providedIn:"root",factory:()=>100});let P8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})(),L8=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({})}return t})();const yMe=[Hz,hk,Gz,$z,p8,m8,v8,w8,L8,Ik,M8,k8,A8,R8,N8,O8,F8,P8];let wMe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t});static#n=this.\u0275inj=ie({imports:[yMe,Hz,hk,Gz,$z,p8,m8,v8,w8,L8,Ik,M8,k8,A8,R8,N8,O8,F8,P8]})}return t})(),CMe=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275mod=re({type:t,bootstrap:[dDe]});static#n=this.\u0275inj=ie({imports:[VL.withServerTransition({appId:"ng-cli-universal"}),Fie,sie,sce,iw,E$,KEe,A1e,m1e,CM,Qr,X1e,rSe,sSe,gSe,Ik,hk,k3.forRoot([{path:"",component:hDe},{path:"user-table",component:bM,canActivate:[lb]},{path:"group-table",component:vM,canActivate:[lb]},{path:"module-table",component:u$,canActivate:[lb]},{path:"user-assignment",component:w1e,canActivate:[lb]},{path:"user-representation",component:nSe,canActivate:[lb]}]),wMe]})}return t})();function to(){return document.getElementsByTagName("user-manager-api")[0].getAttribute("href")}function B8(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("dir-user-route")}`}var oc_user=[{header:"Benutzername",field:"username"},{header:"Vorname",field:"prename"},{header:"Name",field:"name"},{header:"E-email",field:"email"}],oc_group_complete=[{header:"Gruppe",field:"name"},{header:"Kommentar",field:"comment"}],oc_group_representative=[{header:"Repr\xe4sentation",field:"name"}],oc_group_right=[{header:"Richtiger",field:"name"}],oc_dirGroup=[{header:"SAM-Account-Name",field:t=>t?.samaccountname[0]}],oc_dirUser=[{header:"Benutzername",field:t=>t?.samaccountname?.[0]??""},{header:"Vorname",field:t=>t?.givenname?.[0]??""},{header:"Name",field:t=>t?.sn?.[0]??""},{header:"E-email",field:t=>t?.mail?.[0]??""}],oc_module=[{header:"Produkt",field:"name"},{header:"Kurzname",field:"shortName"}],oc_groupOfUser=[{header:"Benutzername",field:t=>t.user.username},{header:"Gruppen",field:t=>t.group.name}],oc_userRep=[{header:"Repr. Gruppen",field:t=>t.repGroup?.name},{header:"Rechte Gruppen",field:t=>t.rightGroup?.name},{header:"Repr. Benutzer",field:t=>t.repUser?.username}];yte([{provide:"BASE_URL",useFactory:function EMe(){return document.getElementsByTagName("base")[0].href},deps:[]},{provide:"USER_MANAGER_URL",useFactory:to,deps:[]},{provide:"USER_URL",useFactory:function SMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("user-route")}`},deps:[]},{provide:"MODULE_URL",useFactory:function IMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("module-route")}`},deps:[]},{provide:"GROUP_URL",useFactory:function xMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("group-route")}`},deps:[]},{provide:"MODULE_OF_USER_URL",useFactory:function TMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("module-of-user-route")}`},deps:[]},{provide:"GROUP_OF_USER_URL",useFactory:function MMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("group-of-user-route")}`},deps:[]},{provide:"USER_REP_URL",useFactory:function kMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("user-representation-route")}`},deps:[]},{provide:"DIR_GROUP_URL",useFactory:function AMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("dir-group-route")}`},deps:[]},{provide:"DIR_USER_URL",useFactory:B8,deps:[]},{provide:"DIR_URL",useFactory:B8,deps:[]},{provide:"LOGIN_URL",useFactory:function RMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("login-route")}`},deps:[]},{provide:"LOGOUT_URL",useFactory:function NMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("logout-route")}`},deps:[]},{provide:"LOGIN_CHECK_URL",useFactory:function OMe(){return`${to()}${document.getElementsByTagName("user-manager-api")[0].getAttribute("login-check-route")}`},deps:[]},{provide:"USER_TABLE_COLUMNS",useFactory:()=>oc_user,deps:[]},{provide:"GROUP_COMPLETE_TABLE_COLUMNS",useFactory:()=>oc_group_complete,deps:[]},{provide:"GROUP_RIGHT_TABLE_COLUMNS",useFactory:()=>oc_group_right,deps:[]},{provide:"GROUP_REP_TABLE_COLUMNS",useFactory:()=>oc_group_representative,deps:[]},{provide:"MODULE_TABLE_COLUMNS",useFactory:()=>oc_module,deps:[]},{provide:"GROUP_USER_TABLE_COLUMNS",useFactory:()=>oc_groupOfUser,deps:[]},{provide:"USER_REP_TABLE_COLUMNS",useFactory:()=>oc_userRep,deps:[]},{provide:"DIR_GROUP_TABLE_COLUMNS",useFactory:()=>oc_dirGroup,deps:[]},{provide:"DIR_USER_TABLE_COLUMNS",useFactory:()=>oc_dirUser,deps:[]}]).bootstrapModule(CMe).catch(t=>console.log(t))},32:function(ba){ba.exports=function(){"use strict";function Vo(b,d,p){return d=vs(d),function pl(b,d){if(d&&("object"==typeof d||"function"==typeof d))return d;if(void 0!==d)throw new TypeError("Derived constructors may only return object or undefined");return function va(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}(b,Ii()?Reflect.construct(d,p||[],vs(b).constructor):d.apply(b,p))}function Ii(){try{var b=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ii=function(){return!!b})()}function yn(b){var d=function Qw(b,d){if("object"!=typeof b||!b)return b;var p=b[Symbol.toPrimitive];if(void 0!==p){var m=p.call(b,d||"default");if("object"!=typeof m)return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===d?String:Number)(b)}(b,"string");return"symbol"==typeof d?d:String(d)}function gn(b){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(b)}function bs(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}function no(b,d){for(var p=0;p<d.length;p++){var m=d[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,yn(m.key),m)}}function Je(b,d,p){return d&&no(b.prototype,d),p&&no(b,p),Object.defineProperty(b,"prototype",{writable:!1}),b}function vs(b){return(vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)})(b)}function gl(b,d){return(gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(m,T){return m.__proto__=T,m})(b,d)}function _s(){return _s=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(d,p,m){var T=function Yu(b,d){for(;!Object.prototype.hasOwnProperty.call(b,d)&&null!==(b=vs(b)););return b}(d,p);if(T){var Z=Object.getOwnPropertyDescriptor(T,p);return Z.get?Z.get.call(arguments.length<3?d:m):Z.value}},_s.apply(this,arguments)}function fl(b,d){return function Ho(b){if(Array.isArray(b))return b}(b)||function Zi(b,d){var p=null==b?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(null!=p){var m,T,Z,Ce,ze=[],pt=!0,Yt=!1;try{if(Z=(p=p.call(b)).next,0===d){if(Object(p)!==p)return;pt=!1}else for(;!(pt=(m=Z.call(p)).done)&&(ze.push(m.value),ze.length!==d);pt=!0);}catch(oo){Yt=!0,T=oo}finally{try{if(!pt&&null!=p.return&&(Ce=p.return(),Object(Ce)!==Ce))return}finally{if(Yt)throw T}}return ze}}(b,d)||ys(b,d)||function lc(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ml(b){return function ac(b){if(Array.isArray(b))return cc(b)}(b)||function Ku(b){if(typeof Symbol<"u"&&null!=b[Symbol.iterator]||null!=b["@@iterator"])return Array.from(b)}(b)||ys(b)||function bl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ys(b,d){if(b){if("string"==typeof b)return cc(b,d);var p=Object.prototype.toString.call(b).slice(8,-1);if("Object"===p&&b.constructor&&(p=b.constructor.name),"Map"===p||"Set"===p)return Array.from(b);if("Arguments"===p||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return cc(b,d)}}function cc(b,d){(null==d||d>b.length)&&(d=b.length);for(var p=0,m=new Array(d);p<d;p++)m[p]=b[p];return m}function ws(b,d){return function Cg(b,d){return d.get?d.get.call(b):d.value}(b,vl(b,d,"get"))}function Cs(b,d,p){return function yb(b,d,p){if(d.set)d.set.call(b,p);else{if(!d.writable)throw new TypeError("attempted to set read only private field");d.value=p}}(b,vl(b,d,"set"),p),p}function vl(b,d,p){if(!d.has(b))throw new TypeError("attempted to "+p+" private field on non-instance");return d.get(b)}function Eg(b,d,p){(function Dg(b,d){if(d.has(b))throw new TypeError("Cannot initialize the same private elements twice on an object")})(b,d),d.set(b,p)}var ut={},Sg=function(d){return new Promise(function(p){if(!d)return p();var m=window.scrollX,T=window.scrollY;ut.restoreFocusTimeout=setTimeout(function(){ut.previousActiveElement instanceof HTMLElement?(ut.previousActiveElement.focus(),ut.previousActiveElement=null):document.body&&document.body.focus(),p()},100),window.scrollTo(m,T)})},q=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce(function(b,d){return b[d]="swal2-"+d,b},{}),yl=["success","warning","info","question","error"].reduce(function(b,d){return b[d]="swal2-"+d,b},{}),dc="SweetAlert2:",Qu=function(d){return d.charAt(0).toUpperCase()+d.slice(1)},ni=function(d){console.warn("".concat(dc," ").concat("object"===gn(d)?d.join(" "):d))},P=function(d){console.error("".concat(dc," ").concat(d))},G=[],ce=function(d,p){!function(d){G.includes(d)||(G.push(d),ni(d))}('"'.concat(d,'" is deprecated and will be removed in the next major release. Please use "').concat(p,'" instead.'))},Ae=function(d){return"function"==typeof d?d():d},ue=function(d){return d&&"function"==typeof d.toPromise},pn=function(d){return ue(d)?d.toPromise():Promise.resolve(d)},Ot=function(d){return d&&Promise.resolve(d)===d},et=function(){return document.body.querySelector(".".concat(q.container))},Ge=function(d){var p=et();return p?p.querySelector(d):null},wn=function(d){return Ge(".".concat(d))},bt=function(){return wn(q.popup)},Mr=function(){return wn(q.icon)},ii=function(){return wn(q.title)},Uo=function(){return wn(q["html-container"])},Jt=function(){return wn(q.image)},jo=function(){return wn(q["progress-steps"])},hc=function(){return wn(q["validation-message"])},gr=function(){return Ge(".".concat(q.actions," .").concat(q.confirm))},io=function(){return Ge(".".concat(q.actions," .").concat(q.cancel))},Qi=function(){return Ge(".".concat(q.actions," .").concat(q.deny))},gc=function(){return Ge(".".concat(q.loader))},_a=function(){return wn(q.actions)},Cb=function(){return wn(q.footer)},pc=function(){return wn(q["timer-progress-bar"])},xg=function(){return wn(q.close)},fc=function(){var d=bt();if(!d)return[];var p=d.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),m=Array.from(p).sort(function(Ce,ze){var pt=parseInt(Ce.getAttribute("tabindex")||"0"),Yt=parseInt(ze.getAttribute("tabindex")||"0");return pt>Yt?1:pt<Yt?-1:0}),T=d.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),Z=Array.from(T).filter(function(Ce){return"-1"!==Ce.getAttribute("tabindex")});return ml(new Set(m.concat(Z))).filter(function(Ce){return Me(Ce)})},Ig=function(){return ri(document.body,q.shown)&&!ri(document.body,q["toast-shown"])&&!ri(document.body,q["no-backdrop"])},mc=function(){var d=bt();return!!d&&ri(d,q.toast)},Ti=function(d,p){if(d.textContent="",p){var T=(new DOMParser).parseFromString(p,"text/html"),Z=T.querySelector("head");Z&&Array.from(Z.childNodes).forEach(function(ze){d.appendChild(ze)});var Ce=T.querySelector("body");Ce&&Array.from(Ce.childNodes).forEach(function(ze){ze instanceof HTMLVideoElement||ze instanceof HTMLAudioElement?d.appendChild(ze.cloneNode(!0)):d.appendChild(ze)})}},ri=function(d,p){if(!p)return!1;for(var m=p.split(/\s+/),T=0;T<m.length;T++)if(!d.classList.contains(m[T]))return!1;return!0},Xi=function(d,p,m){if(function(d,p){Array.from(d.classList).forEach(function(m){!Object.values(q).includes(m)&&!Object.values(yl).includes(m)&&!Object.values(p.showClass||{}).includes(m)&&d.classList.remove(m)})}(d,p),p.customClass&&p.customClass[m]){if("string"!=typeof p.customClass[m]&&!p.customClass[m].forEach)return void ni("Invalid type of customClass.".concat(m,'! Expected string or iterable object, got "').concat(gn(p.customClass[m]),'"'));Dt(d,p.customClass[m])}},rt=function(d,p){if(!p)return null;switch(p){case"select":case"textarea":case"file":return d.querySelector(".".concat(q.popup," > .").concat(q[p]));case"checkbox":return d.querySelector(".".concat(q.popup," > .").concat(q.checkbox," input"));case"radio":return d.querySelector(".".concat(q.popup," > .").concat(q.radio," input:checked"))||d.querySelector(".".concat(q.popup," > .").concat(q.radio," input:first-child"));case"range":return d.querySelector(".".concat(q.popup," > .").concat(q.range," input"));default:return d.querySelector(".".concat(q.popup," > .").concat(q.input))}},Tg=function(d){if(d.focus(),"file"!==d.type){var p=d.value;d.value="",d.value=p}},Db=function(d,p,m){!d||!p||("string"==typeof p&&(p=p.split(/\s+/).filter(Boolean)),p.forEach(function(T){Array.isArray(d)?d.forEach(function(Z){m?Z.classList.add(T):Z.classList.remove(T)}):m?d.classList.add(T):d.classList.remove(T)}))},Dt=function(d,p){Db(d,p,!0)},ro=function(d,p){Db(d,p,!1)},se=function(d,p){for(var m=Array.from(d.children),T=0;T<m.length;T++){var Z=m[T];if(Z instanceof HTMLElement&&ri(Z,p))return Z}},Ds=function(d,p,m){m==="".concat(parseInt(m))&&(m=parseInt(m)),m||0===parseInt(m)?d.style.setProperty(p,"number"==typeof m?"".concat(m,"px"):m):d.style.removeProperty(p)},dt=function(d){d&&(d.style.display=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex")},oi=function(d){d&&(d.style.display="none")},qt=function(d){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";d&&new MutationObserver(function(){Cl(d,d.innerHTML,p)}).observe(d,{childList:!0,subtree:!0})},Mt=function(d,p,m,T){var Z=d.querySelector(p);Z&&Z.style.setProperty(m,T)},Cl=function(d,p){p?dt(d,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"flex"):oi(d)},Me=function(d){return!(!d||!(d.offsetWidth||d.offsetHeight||d.getClientRects().length))},Mg=function(d){return d.scrollHeight>d.clientHeight},H=function(d){var p=window.getComputedStyle(d),m=parseFloat(p.getPropertyValue("animation-duration")||"0"),T=parseFloat(p.getPropertyValue("transition-duration")||"0");return m>0||T>0},Es=function(d){var p=arguments.length>1&&void 0!==arguments[1]&&arguments[1],m=pc();m&&Me(m)&&(p&&(m.style.transition="none",m.style.width="100%"),setTimeout(function(){m.style.transition="width ".concat(d/1e3,"s linear"),m.style.width="0%"},10))},kg=function(){return typeof window>"u"||typeof document>"u"},kk='\n <div aria-labelledby="'.concat(q.title,'" aria-describedby="').concat(q["html-container"],'" class="').concat(q.popup,'" tabindex="-1">\n <button type="button" class="').concat(q.close,'"></button>\n <ul class="').concat(q["progress-steps"],'"></ul>\n <div class="').concat(q.icon,'"></div>\n <img class="').concat(q.image,'" />\n <h2 class="').concat(q.title,'" id="').concat(q.title,'"></h2>\n <div class="').concat(q["html-container"],'" id="').concat(q["html-container"],'"></div>\n <input class="').concat(q.input,'" id="').concat(q.input,'" />\n <input type="file" class="').concat(q.file,'" />\n <div class="').concat(q.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(q.select,'" id="').concat(q.select,'"></select>\n <div class="').concat(q.radio,'"></div>\n <label class="').concat(q.checkbox,'">\n <input type="checkbox" id="').concat(q.checkbox,'" />\n <span class="').concat(q.label,'"></span>\n </label>\n <textarea class="').concat(q.textarea,'" id="').concat(q.textarea,'"></textarea>\n <div class="').concat(q["validation-message"],'" id="').concat(q["validation-message"],'"></div>\n <div class="').concat(q.actions,'">\n <div class="').concat(q.loader,'"></div>\n <button type="button" class="').concat(q.confirm,'"></button>\n <button type="button" class="').concat(q.deny,'"></button>\n <button type="button" class="').concat(q.cancel,'"></button>\n </div>\n <div class="').concat(q.footer,'"></div>\n <div class="').concat(q["timer-progress-bar-container"],'">\n <div class="').concat(q["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Ss=function(){ut.currentInstance.resetValidationMessage()},Eb=function(d){var p=function(){var d=et();return!!d&&(d.remove(),ro([document.documentElement,document.body],[q["no-backdrop"],q["toast-shown"],q["has-column"]]),!0)}();if(kg())P("SweetAlert2 requires document to initialize");else{var m=document.createElement("div");m.className=q.container,p&&Dt(m,q["no-transition"]),Ti(m,kk);var T=function(d){return"string"==typeof d?document.querySelector(d):d}(d.target);T.appendChild(m),function(d){var p=bt();p.setAttribute("role",d.toast?"alert":"dialog"),p.setAttribute("aria-live",d.toast?"polite":"assertive"),d.toast||p.setAttribute("aria-modal","true")}(d),function(d){"rtl"===window.getComputedStyle(d).direction&&Dt(et(),q.rtl)}(T),function(){var d=bt(),p=se(d,q.input),m=se(d,q.file),T=d.querySelector(".".concat(q.range," input")),Z=d.querySelector(".".concat(q.range," output")),Ce=se(d,q.select),ze=d.querySelector(".".concat(q.checkbox," input")),pt=se(d,q.textarea);p.oninput=Ss,m.onchange=Ss,Ce.onchange=Ss,ze.onchange=Ss,pt.oninput=Ss,T.oninput=function(){Ss(),Z.value=T.value},T.onchange=function(){Ss(),Z.value=T.value}}()}},Dl=function(d,p){d instanceof HTMLElement?p.appendChild(d):"object"===gn(d)?yc(d,p):d&&Ti(p,d)},yc=function(d,p){d.jquery?Rk(p,d):Ti(p,d.toString())},Rk=function(d,p){if(d.textContent="",0 in p)for(var m=0;m in p;m++)d.appendChild(p[m].cloneNode(!0));else d.appendChild(p.cloneNode(!0))},vt=function(){if(kg())return!1;var b=document.createElement("div");return typeof b.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof b.style.animation<"u"&&"animationend"}(),Nk=function(d,p){var m=_a(),T=gc();!m||!T||(p.showConfirmButton||p.showDenyButton||p.showCancelButton?dt(m):oi(m),Xi(m,p,"actions"),function Ok(b,d,p){var m=gr(),T=Qi(),Z=io();!m||!T||!Z||(Ag(m,"confirm",p),Ag(T,"deny",p),Ag(Z,"cancel",p),function Bt(b,d,p,m){m.buttonsStyling?(Dt([b,d,p],q.styled),m.confirmButtonColor&&(b.style.backgroundColor=m.confirmButtonColor,Dt(b,q["default-outline"])),m.denyButtonColor&&(d.style.backgroundColor=m.denyButtonColor,Dt(d,q["default-outline"])),m.cancelButtonColor&&(p.style.backgroundColor=m.cancelButtonColor,Dt(p,q["default-outline"]))):ro([b,d,p],q.styled)}(m,T,Z,p),p.reverseButtons&&(p.toast?(b.insertBefore(Z,m),b.insertBefore(T,m)):(b.insertBefore(Z,d),b.insertBefore(T,d),b.insertBefore(m,d))))}(m,T,p),Ti(T,p.loaderHtml||""),Xi(T,p,"loader"))};function Ag(b,d,p){var m=Qu(d);Cl(b,p["show".concat(m,"Button")],"inline-block"),Ti(b,p["".concat(d,"ButtonText")]||""),b.setAttribute("aria-label",p["".concat(d,"ButtonAriaLabel")]||""),b.className=q[d],Xi(b,p,"".concat(d,"Button"))}var Rg=function(d,p){var m=et();m&&(function Fk(b,d){"string"==typeof d?b.style.background=d:d||Dt([document.documentElement,document.body],q["no-backdrop"])}(m,p.backdrop),function tC(b,d){d&&(d in q?Dt(b,q[d]):(ni('The "position" parameter is not valid, defaulting to "center"'),Dt(b,q.center)))}(m,p.position),function _t(b,d){d&&Dt(b,q["grow-".concat(d)])}(m,p.grow),Xi(m,p,"container"))};var _e={innerParams:new WeakMap,domCache:new WeakMap},ed=["input","file","range","select","radio","checkbox","textarea"],Pk=function(d){if(d.input){if(!Cn[d.input])return void P("Unexpected type of input! Expected ".concat(Object.keys(Cn).join(" | "),', got "').concat(d.input,'"'));var p=iC(d.input),m=Cn[d.input](p,d);dt(p),d.inputAutoFocus&&setTimeout(function(){Tg(m)})}},Lk=function(d,p){var m=rt(bt(),d);if(m)for(var T in function(d){for(var p=0;p<d.attributes.length;p++){var m=d.attributes[p].name;["id","type","value","style"].includes(m)||d.removeAttribute(m)}}(m),p)m.setAttribute(T,p[T])},xs=function(d){var p=iC(d.input);"object"===gn(d.customClass)&&Dt(p,d.customClass.input)},Sb=function(d,p){(!d.placeholder||p.inputPlaceholder)&&(d.placeholder=p.inputPlaceholder)},td=function(d,p,m){if(m.inputLabel){var T=document.createElement("label"),Z=q["input-label"];T.setAttribute("for",d.id),T.className=Z,"object"===gn(m.customClass)&&Dt(T,m.customClass.inputLabel),T.innerText=m.inputLabel,p.insertAdjacentElement("beforebegin",T)}},iC=function(d){return se(bt(),q[d]||q.input)},Ng=function(d,p){["string","number"].includes(gn(p))?d.value="".concat(p):Ot(p)||ni('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(gn(p),'"'))},Cn={};Cn.text=Cn.email=Cn.password=Cn.number=Cn.tel=Cn.url=Cn.search=Cn.date=Cn["datetime-local"]=Cn.time=Cn.week=Cn.month=function(b,d){return Ng(b,d.inputValue),td(b,b,d),Sb(b,d),b.type=d.input,b},Cn.file=function(b,d){return td(b,b,d),Sb(b,d),b},Cn.range=function(b,d){var p=b.querySelector("input"),m=b.querySelector("output");return Ng(p,d.inputValue),p.type=d.input,Ng(m,d.inputValue),td(p,b,d),b},Cn.select=function(b,d){if(b.textContent="",d.inputPlaceholder){var p=document.createElement("option");Ti(p,d.inputPlaceholder),p.value="",p.disabled=!0,p.selected=!0,b.appendChild(p)}return td(b,b,d),b},Cn.radio=function(b){return b.textContent="",b},Cn.checkbox=function(b,d){var p=rt(bt(),"checkbox");p.value="1",p.checked=!!d.inputValue;var m=b.querySelector("span");return Ti(m,d.inputPlaceholder),p},Cn.textarea=function(b,d){Ng(b,d.inputValue),Sb(b,d),td(b,b,d);return setTimeout(function(){if("MutationObserver"in window){var m=parseInt(window.getComputedStyle(bt()).width);new MutationObserver(function(){if(document.body.contains(b)){var Ce=b.offsetWidth+(T=b,parseInt(window.getComputedStyle(T).marginLeft)+parseInt(window.getComputedStyle(T).marginRight));Ce>m?bt().style.width="".concat(Ce,"px"):Ds(bt(),"width",d.width)}var T}).observe(b,{attributes:!0,attributeFilter:["style"]})}}),b};var Bk=function(d,p){var m=Uo();m&&(qt(m),Xi(m,p,"htmlContainer"),p.html?(Dl(p.html,m),dt(m,"block")):p.text?(m.textContent=p.text,dt(m,"block")):oi(m),function(d,p){var m=bt();if(m){var T=_e.innerParams.get(d),Z=!T||p.input!==T.input;ed.forEach(function(Ce){var ze=se(m,q[Ce]);ze&&(Lk(Ce,p.inputAttributes),ze.className=q[Ce],Z&&oi(ze))}),p.input&&(Z&&Pk(p),xs(p))}}(d,p))},Pi=function(d,p){for(var m=0,T=Object.entries(yl);m<T.length;m++){var Z=fl(T[m],2);p.icon!==Z[0]&&ro(d,Z[1])}Dt(d,p.icon&&yl[p.icon]),jk(d,p),$e(),Xi(d,p,"icon")},$e=function(){var d=bt();if(d)for(var p=window.getComputedStyle(d).getPropertyValue("background-color"),m=d.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),T=0;T<m.length;T++)m[T].style.backgroundColor=p},oC=function(d,p){if(p.icon||p.iconHtml){var m=d.innerHTML,T="";p.iconHtml?T=sC(p.iconHtml):"success"===p.icon?(T='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n',m=m.replace(/ style=".*?"/g,"")):"error"===p.icon?T='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':p.icon&&(T=sC({question:"?",warning:"!",info:"i"}[p.icon])),m.trim()!==T.trim()&&Ti(d,T)}},jk=function(d,p){if(p.iconColor){d.style.color=p.iconColor,d.style.borderColor=p.iconColor;for(var m=0,T=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];m<T.length;m++)Mt(d,T[m],"background-color",p.iconColor);Mt(d,".swal2-success-ring","border-color",p.iconColor)}},sC=function(d){return'<div class="'.concat(q["icon-content"],'">').concat(d,"</div>")},ie=function(d,p){var m=p.showClass||{};d.className="".concat(q.popup," ").concat(Me(d)?m.popup:""),p.toast?(Dt([document.documentElement,document.body],q["toast-shown"]),Dt(d,q.toast)):Dt(d,q.modal),Xi(d,p,"popup"),"string"==typeof p.customClass&&Dt(d,p.customClass),p.icon&&Dt(d,q["icon-".concat(p.icon)])},aC=function(d){var p=document.createElement("li");return Dt(p,q["progress-step"]),Ti(p,d),p},xb=function(d){var p=document.createElement("li");return Dt(p,q["progress-step-line"]),d.progressStepsDistance&&Ds(p,"width",d.progressStepsDistance),p},El=function(d,p){(function(d,p){var m=et(),T=bt();if(m&&T){if(p.toast){Ds(m,"width",p.width),T.style.width="100%";var Z=gc();Z&&T.insertBefore(Z,Mr())}else Ds(T,"width",p.width);Ds(T,"padding",p.padding),p.color&&(T.style.color=p.color),p.background&&(T.style.background=p.background),oi(hc()),ie(T,p)}})(0,p),Rg(0,p),function(d,p){var m=jo();if(m){var T=p.progressSteps,Z=p.currentProgressStep;if(!T||0===T.length||void 0===Z)return void oi(m);dt(m),m.textContent="",Z>=T.length&&ni("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),T.forEach(function(Ce,ze){var pt=aC(Ce);if(m.appendChild(pt),ze===Z&&Dt(pt,q["active-progress-step"]),ze!==T.length-1){var Yt=xb(p);m.appendChild(Yt)}})}}(0,p),function(d,p){var m=_e.innerParams.get(d),T=Mr();if(T){if(m&&p.icon===m.icon)return oC(T,p),void Pi(T,p);if(!p.icon&&!p.iconHtml)return void oi(T);if(p.icon&&-1===Object.keys(yl).indexOf(p.icon))return P('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(p.icon,'"')),void oi(T);dt(T),oC(T,p),Pi(T,p),Dt(T,p.showClass&&p.showClass.icon)}}(d,p),function(d,p){var m=Jt();if(m){if(!p.imageUrl)return void oi(m);dt(m,""),m.setAttribute("src",p.imageUrl),m.setAttribute("alt",p.imageAlt||""),Ds(m,"width",p.imageWidth),Ds(m,"height",p.imageHeight),m.className=q.image,Xi(m,p,"image")}}(0,p),function(d,p){var m=ii();m&&(qt(m),Cl(m,p.title||p.titleText,"block"),p.title&&Dl(p.title,m),p.titleText&&(m.innerText=p.titleText),Xi(m,p,"title"))}(0,p),function(d,p){var m=xg();m&&(Ti(m,p.closeButtonHtml||""),Xi(m,p,"closeButton"),Cl(m,p.showCloseButton),m.setAttribute("aria-label",p.closeButtonAriaLabel||""))}(0,p),Bk(d,p),Nk(0,p),function(d,p){var m=Cb();m&&(qt(m),Cl(m,p.footer,"block"),p.footer&&Dl(p.footer,m),Xi(m,p,"footer"))}(0,p);var m=bt();"function"==typeof p.didRender&&m&&p.didRender(m)},rd=function(){var d;return null===(d=gr())||void 0===d?void 0:d.click()},W=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),od=function(d){d.keydownTarget&&d.keydownHandlerAdded&&(d.keydownTarget.removeEventListener("keydown",d.keydownHandler,{capture:d.keydownListenerCapture}),d.keydownHandlerAdded=!1)},sd=function(d,p){var m,T=fc();if(T.length)return(d+=p)===T.length?d=0:-1===d&&(d=T.length-1),void T[d].focus();null===(m=bt())||void 0===m||m.focus()},ad=["ArrowRight","ArrowDown"],uC=["ArrowLeft","ArrowUp"],Fg=function(d,p,m){d&&(p.isComposing||229===p.keyCode||(d.stopKeydownPropagation&&p.stopPropagation(),"Enter"===p.key?$k(p,d):"Tab"===p.key?zk(p):[].concat(ad,uC).includes(p.key)?Wk(p.key):"Escape"===p.key&&qk(p,d,m)))},$k=function(d,p){if(Ae(p.allowEnterKey)){var m=rt(bt(),p.input);if(d.target&&m&&d.target instanceof HTMLElement&&d.target.outerHTML===m.outerHTML){if(["textarea","file"].includes(p.input))return;rd(),d.preventDefault()}}},zk=function(d){for(var p=d.target,m=fc(),T=-1,Z=0;Z<m.length;Z++)if(p===m[Z]){T=Z;break}sd(T,d.shiftKey?-1:1),d.stopPropagation(),d.preventDefault()},Wk=function(d){var p=_a(),m=gr(),T=Qi(),Z=io();if(p&&m&&T&&Z&&(!(document.activeElement instanceof HTMLElement)||[m,T,Z].includes(document.activeElement))){var ze=ad.includes(d)?"nextElementSibling":"previousElementSibling",pt=document.activeElement;if(pt){for(var Yt=0;Yt<p.children.length;Yt++){if(!(pt=pt[ze]))return;if(pt instanceof HTMLButtonElement&&Me(pt))break}pt instanceof HTMLButtonElement&&pt.focus()}}},qk=function(d,p,m){Ae(p.allowEscapeKey)&&(d.preventDefault(),m(W.esc))},Is={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},cd=function(){Array.from(document.body.children).forEach(function(p){p.hasAttribute("data-previous-aria-hidden")?(p.setAttribute("aria-hidden",p.getAttribute("data-previous-aria-hidden")||""),p.removeAttribute("data-previous-aria-hidden")):p.removeAttribute("aria-hidden")})},ld=typeof window<"u"&&!!window.GestureEvent,$o=function(){var p,d=et();d&&(d.ontouchstart=function(m){p=xl(m)},d.ontouchmove=function(m){p&&(m.preventDefault(),m.stopPropagation())})},xl=function(d){var p=d.target,m=et(),T=Uo();return!(!m||!T||Mb(d)||Ze(d)||p!==m&&(Mg(m)||!(p instanceof HTMLElement)||"INPUT"===p.tagName||"TEXTAREA"===p.tagName||Mg(T)&&T.contains(p)))},Mb=function(d){return d.touches&&d.touches.length&&"stylus"===d.touches[0].touchType},Ze=function(d){return d.touches&&d.touches.length>1},wc=null,dC=function(d){null===wc&&(document.body.scrollHeight>window.innerHeight||"scroll"===d)&&(wc=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(wc+function(){var d=document.createElement("div");d.className=q["scrollbar-measure"],document.body.appendChild(d);var p=d.getBoundingClientRect().width-d.clientWidth;return document.body.removeChild(d),p}(),"px"))};function kb(b,d,p,m){mc()?Cc(b,m):(Sg(p).then(function(){return Cc(b,m)}),od(ut)),ld?(d.setAttribute("style","display:none !important"),d.removeAttribute("class"),d.innerHTML=""):d.remove(),Ig()&&(null!==wc&&(document.body.style.paddingRight="".concat(wc,"px"),wc=null),function(){if(ri(document.body,q.iosfix)){var d=parseInt(document.body.style.top,10);ro(document.body,q.iosfix),document.body.style.top="",document.body.scrollTop=-1*d}}(),cd()),function Pg(){ro([document.documentElement,document.body],[q.shown,q["height-auto"],q["no-backdrop"],q["toast-shown"]])}()}function tt(b){b=Ab(b);var d=Is.swalPromiseResolve.get(this),p=Lg(this);this.isAwaitingPromise?b.isDismissed||(qn(this),d(b)):p&&d(b)}var Lg=function(d){var p=bt();if(!p)return!1;var m=_e.innerParams.get(d);if(!m||ri(p,m.hideClass.popup))return!1;ro(p,m.showClass.popup),Dt(p,m.hideClass.popup);var T=et();return ro(T,m.showClass.backdrop),Dt(T,m.hideClass.backdrop),Zk(d,p,m),!0};function Bg(b){var d=Is.swalPromiseReject.get(this);qn(this),d&&d(b)}var qn=function(d){d.isAwaitingPromise&&(delete d.isAwaitingPromise,_e.innerParams.get(d)||d._destroy())},Ab=function(d){return typeof d>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},d)},Zk=function(d,p,m){var T=et(),Z=vt&&H(p);"function"==typeof m.willClose&&m.willClose(p),Z?Qk(d,p,T,m.returnFocus,m.didClose):kb(d,T,m.returnFocus,m.didClose)},Qk=function(d,p,m,T,Z){vt&&(ut.swalCloseEventFinishedCallback=kb.bind(null,d,m,T,Z),p.addEventListener(vt,function(Ce){Ce.target===p&&(ut.swalCloseEventFinishedCallback(),delete ut.swalCloseEventFinishedCallback)}))},Cc=function(d,p){setTimeout(function(){"function"==typeof p&&p.bind(d.params)(),d._destroy&&d._destroy()})},Ts=function(d){var p=bt();if(p||new _d,p=bt()){var m=gc();mc()?oi(Mr()):ud(p,d),dt(m),p.setAttribute("data-loading","true"),p.setAttribute("aria-busy","true"),p.focus()}},ud=function(d,p){var m=_a(),T=gc();!m||!T||(!p&&Me(gr())&&(p=gr()),dt(m),p&&(oi(p),T.setAttribute("data-button-to-replace",p.className),m.insertBefore(T,p)),Dt([d,m],q.loading))},pC=function(d){return d.checked?1:0},Rb=function(d){return d.checked?d.value:null},Dc=function(d){return d.files&&d.files.length?null!==d.getAttribute("multiple")?d.files:d.files[0]:null},fC=function(d,p){var m=bt();if(m){var T=function(Ce){"select"===p.input?function mC(b,d,p){var m=se(b,q.select);if(m){var T=function(Ce,ze,pt){var Yt=document.createElement("option");Yt.value=pt,Ti(Yt,ze),Yt.selected=x(pt,p.inputValue),Ce.appendChild(Yt)};d.forEach(function(Z){var Ce=Z[0],ze=Z[1];if(Array.isArray(ze)){var pt=document.createElement("optgroup");pt.label=Ce,pt.disabled=!1,m.appendChild(pt),ze.forEach(function(Yt){return T(pt,Yt[1],Yt[0])})}else T(m,ze,Ce)}),m.focus()}}(m,Vg(Ce),p):"radio"===p.input&&function I(b,d,p){var m=se(b,q.radio);if(m){d.forEach(function(Z){var Ce=Z[0],ze=Z[1],pt=document.createElement("input"),Yt=document.createElement("label");pt.type="radio",pt.name=q.radio,pt.value=Ce,x(Ce,p.inputValue)&&(pt.checked=!0);var oo=document.createElement("span");Ti(oo,ze),oo.className=q.label,Yt.appendChild(pt),Yt.appendChild(oo),m.appendChild(Yt)});var T=m.querySelectorAll("input");T.length&&T[0].focus()}}(m,Vg(Ce),p)};ue(p.inputOptions)||Ot(p.inputOptions)?(Ts(gr()),pn(p.inputOptions).then(function(Z){d.hideLoading(),T(Z)})):"object"===gn(p.inputOptions)?T(p.inputOptions):P("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(gn(p.inputOptions)))}},Ms=function(d,p){var m=d.getInput();m&&(oi(m),pn(p.inputValue).then(function(T){m.value="".concat("number"===p.input?parseFloat(T)||0:T),dt(m),m.focus(),d.hideLoading()}).catch(function(T){P("Error in inputValue promise: ".concat(T)),m.value="",dt(m),m.focus(),d.hideLoading()}))};var Vg=function b(d){var p=[];return d instanceof Map?d.forEach(function(m,T){var Z=m;"object"===gn(Z)&&(Z=b(Z)),p.push([T,Z])}):Object.keys(d).forEach(function(m){var T=d[m];"object"===gn(T)&&(T=b(T)),p.push([m,T])}),p},x=function(d,p){return!!p&&p.toString()===d.toString()},ya=void 0,Nb=function(d,p){var m=_e.innerParams.get(d);if(m.input){var T=d.getInput(),Z=function(d,p){var m=d.getInput();if(!m)return null;switch(p.input){case"checkbox":return pC(m);case"radio":return Rb(m);case"file":return Dc(m);default:return p.inputAutoTrim?m.value.trim():m.value}}(d,m);m.inputValidator?vC(d,Z,p):T&&!T.checkValidity()?(d.enableButtons(),d.showValidationMessage(m.validationMessage||T.validationMessage)):"deny"===p?Ug(d,Z):wa(d,Z)}else P('The "input" parameter is needed to be set when using returnInputValueOn'.concat(Qu(p)))},vC=function(d,p,m){var T=_e.innerParams.get(d);d.disableInput(),Promise.resolve().then(function(){return pn(T.inputValidator(p,T.validationMessage))}).then(function(Ce){d.enableButtons(),d.enableInput(),Ce?d.showValidationMessage(Ce):"deny"===m?Ug(d,p):wa(d,p)})},Ug=function(d,p){var m=_e.innerParams.get(d||ya);m.showLoaderOnDeny&&Ts(Qi()),m.preDeny?(d.isAwaitingPromise=!0,Promise.resolve().then(function(){return pn(m.preDeny(p,m.validationMessage))}).then(function(Z){!1===Z?(d.hideLoading(),qn(d)):d.close({isDenied:!0,value:typeof Z>"u"?p:Z})}).catch(function(Z){return Ob(d||ya,Z)})):d.close({isDenied:!0,value:p})},ks=function(d,p){d.close({isConfirmed:!0,value:p})},Ob=function(d,p){d.rejectPromise(p)},wa=function(d,p){var m=_e.innerParams.get(d||ya);m.showLoaderOnConfirm&&Ts(),m.preConfirm?(d.resetValidationMessage(),d.isAwaitingPromise=!0,Promise.resolve().then(function(){return pn(m.preConfirm(p,m.validationMessage))}).then(function(Z){Me(hc())||!1===Z?(d.hideLoading(),qn(d)):ks(d,typeof Z>"u"?p:Z)}).catch(function(Z){return Ob(d||ya,Z)})):ks(d,p)};function dd(){var b=_e.innerParams.get(this);if(b){var d=_e.domCache.get(this);oi(d.loader),mc()?b.icon&&dt(Mr()):Ca(d),ro([d.popup,d.actions],q.loading),d.popup.removeAttribute("aria-busy"),d.popup.removeAttribute("data-loading"),d.confirmButton.disabled=!1,d.denyButton.disabled=!1,d.cancelButton.disabled=!1}}var Ca=function(d){var p=d.popup.getElementsByClassName(d.loader.getAttribute("data-button-to-replace"));p.length?dt(p[0],"inline-block"):!Me(gr())&&!Me(Qi())&&!Me(io())&&oi(d.actions)};function Fb(){var b=_e.innerParams.get(this),d=_e.domCache.get(this);return d?rt(d.popup,b.input):null}function Mi(b,d,p){var m=_e.domCache.get(b);d.forEach(function(T){m[T].disabled=p})}function Da(b,d){var p=bt();if(p&&b)if("radio"===b.type)for(var m=p.querySelectorAll('[name="'.concat(q.radio,'"]')),T=0;T<m.length;T++)m[T].disabled=d;else b.disabled=d}function jg(){Mi(this,["confirmButton","denyButton","cancelButton"],!1)}function Tl(){Mi(this,["confirmButton","denyButton","cancelButton"],!0)}function Ml(){Da(this.getInput(),!1)}function hd(){Da(this.getInput(),!0)}function _C(b){var d=_e.domCache.get(this),p=_e.innerParams.get(this);Ti(d.validationMessage,b),d.validationMessage.className=q["validation-message"],p.customClass&&p.customClass.validationMessage&&Dt(d.validationMessage,p.customClass.validationMessage),dt(d.validationMessage);var m=this.getInput();m&&(m.setAttribute("aria-invalid","true"),m.setAttribute("aria-describedby",q["validation-message"]),Tg(m),Dt(m,q.inputerror))}function Gg(){var b=_e.domCache.get(this);b.validationMessage&&oi(b.validationMessage);var d=this.getInput();d&&(d.removeAttribute("aria-invalid"),d.removeAttribute("aria-describedby"),ro(d,q.inputerror))}var kl={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},er=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],$g={},Ec=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],yC=function(d){return Object.prototype.hasOwnProperty.call(kl,d)},zg=function(d){return-1!==er.indexOf(d)},Ar=function(d){return $g[d]},Et=function(d){yC(d)||ni('Unknown parameter "'.concat(d,'"'))},Ea=function(d){Ec.includes(d)&&ni('The parameter "'.concat(d,'" is incompatible with toasts'))},Pb=function(d){var p=Ar(d);p&&ce(d,p)};function Al(b){var d=bt(),p=_e.innerParams.get(this);if(d&&!ri(d,p.hideClass.popup)){var m=gd(b),T=Object.assign({},p,m);El(this,T),_e.innerParams.set(this,T),Object.defineProperties(this,{params:{value:Object.assign({},this.params,b),writable:!1,enumerable:!0}})}else ni("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.")}var gd=function(d){var p={};return Object.keys(d).forEach(function(m){zg(m)?p[m]=d[m]:ni("Invalid parameter to update: ".concat(m))}),p};function pr(){var b=_e.domCache.get(this),d=_e.innerParams.get(this);d?(b.popup&&ut.swalCloseEventFinishedCallback&&(ut.swalCloseEventFinishedCallback(),delete ut.swalCloseEventFinishedCallback),"function"==typeof d.didDestroy&&d.didDestroy(),ee(this)):Lb(this)}var ee=function(d){Lb(d),delete d.params,delete ut.keydownHandler,delete ut.keydownTarget,delete ut.currentInstance},Lb=function(d){d.isAwaitingPromise?(Rl(_e,d),d.isAwaitingPromise=!0):(Rl(Is,d),Rl(_e,d),delete d.isAwaitingPromise,delete d.disableButtons,delete d.enableButtons,delete d.getInput,delete d.disableInput,delete d.enableInput,delete d.hideLoading,delete d.disableLoading,delete d.showValidationMessage,delete d.resetValidationMessage,delete d.close,delete d.closePopup,delete d.closeModal,delete d.closeToast,delete d.rejectPromise,delete d.update,delete d._destroy)},Rl=function(d,p){for(var m in d)d[m].delete(p)},Bb=Object.freeze({__proto__:null,_destroy:pr,close:tt,closeModal:tt,closePopup:tt,closeToast:tt,disableButtons:Tl,disableInput:hd,disableLoading:dd,enableButtons:jg,enableInput:Ml,getInput:Fb,handleAwaitingPromise:qn,hideLoading:dd,rejectPromise:Bg,resetValidationMessage:Gg,showValidationMessage:_C,update:Al}),Nl=function(d,p,m){p.popup.onclick=function(){d&&(Hb(d)||d.timer||d.input)||m(W.close)}},Hb=function(d){return!!(d.showConfirmButton||d.showDenyButton||d.showCancelButton||d.showCloseButton)},Ol=!1,wC=function(d){d.popup.onmousedown=function(){d.container.onmouseup=function(p){d.container.onmouseup=function(){},p.target===d.container&&(Ol=!0)}}},qg=function(d){d.container.onmousedown=function(){d.popup.onmouseup=function(p){d.popup.onmouseup=function(){},(p.target===d.popup||p.target instanceof HTMLElement&&d.popup.contains(p.target))&&(Ol=!0)}}},CC=function(d,p,m){p.container.onclick=function(T){Ol?Ol=!1:T.target===p.container&&Ae(d.allowOutsideClick)&&m(W.backdrop)}},fr=function(d){return d instanceof Element||function(d){return"object"===gn(d)&&d.jquery}(d)};var jb=function(){if(ut.timeout)return function(){var d=pc();if(d){var p=parseInt(window.getComputedStyle(d).width);d.style.removeProperty("transition"),d.style.width="100%";var m=parseInt(window.getComputedStyle(d).width);d.style.width="".concat(p/m*100,"%")}}(),ut.timeout.stop()},Gb=function(){if(ut.timeout){var d=ut.timeout.start();return Es(d),d}},zb=!1,V={};var kC=function(d){for(var p=d.target;p&&p!==document;p=p.parentNode)for(var m in V){var T=p.getAttribute(m);if(T)return void V[m].fire({template:T})}},re=Object.freeze({__proto__:null,argsToParams:function(d){var p={};return"object"!==gn(d[0])||fr(d[0])?["title","html","icon"].forEach(function(m,T){var Z=d[T];"string"==typeof Z||fr(Z)?p[m]=Z:void 0!==Z&&P("Unexpected type of ".concat(m,'! Expected "string" or "Element", got ').concat(gn(Z)))}):Object.assign(p,d[0]),p},bindClickHandler:function MC(){V[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,zb||(document.body.addEventListener("click",kC),zb=!0)},clickCancel:function(){var d;return null===(d=io())||void 0===d?void 0:d.click()},clickConfirm:rd,clickDeny:function(){var d;return null===(d=Qi())||void 0===d?void 0:d.click()},enableLoading:Ts,fire:function Ub(){for(var d=arguments.length,p=new Array(d),m=0;m<d;m++)p[m]=arguments[m];return function Fi(b,d,p){if(Ii())return Reflect.construct.apply(null,arguments);var m=[null];m.push.apply(m,d);var T=new(b.bind.apply(b,m));return p&&gl(T,p.prototype),T}(this,p)},getActions:_a,getCancelButton:io,getCloseButton:xg,getConfirmButton:gr,getContainer:et,getDenyButton:Qi,getFocusableElements:fc,getFooter:Cb,getHtmlContainer:Uo,getIcon:Mr,getIconContent:function(){return wn(q["icon-content"])},getImage:Jt,getInputLabel:function(){return wn(q["input-label"])},getLoader:gc,getPopup:bt,getProgressSteps:jo,getTimerLeft:function(){return ut.timeout&&ut.timeout.getTimerLeft()},getTimerProgressBar:pc,getTitle:ii,getValidationMessage:hc,increaseTimer:function(d){if(ut.timeout){var p=ut.timeout.increase(d);return Es(p,!0),p}},isDeprecatedParameter:Ar,isLoading:function(){var d=bt();return!!d&&d.hasAttribute("data-loading")},isTimerRunning:function(){return!(!ut.timeout||!ut.timeout.isRunning())},isUpdatableParameter:zg,isValidParameter:yC,isVisible:function(){return Me(bt())},mixin:function SC(b){var d=function(p){function m(){return bs(this,m),Vo(this,m,arguments)}return function wg(b,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),d&&gl(b,d)}(m,p),Je(m,[{key:"_main",value:function(Z,Ce){return _s(vs(m.prototype),"_main",this).call(this,Z,Object.assign({},b,Ce))}}]),m}(this);return d},resumeTimer:Gb,showLoading:Ts,stopTimer:jb,toggleTimer:function(){var d=ut.timeout;return d&&(d.running?jb():Gb())}}),Wb=function(){function b(d,p){bs(this,b),this.callback=d,this.remaining=p,this.running=!1,this.start()}return Je(b,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}},{key:"increase",value:function(p){var m=this.running;return m&&this.stop(),this.remaining+=p,m&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),b}(),N=["swal-title","swal-html","swal-footer"],ht=function(d){var p={};return Array.from(d.querySelectorAll("swal-param")).forEach(function(T){Sa(T,["name","value"]);var Z=T.getAttribute("name"),Ce=T.getAttribute("value");p[Z]="boolean"==typeof kl[Z]?"false"!==Ce:"object"===gn(kl[Z])?JSON.parse(Ce):Ce}),p},On=function(d){var p={};return Array.from(d.querySelectorAll("swal-function-param")).forEach(function(T){var Z=T.getAttribute("name"),Ce=T.getAttribute("value");p[Z]=new Function("return ".concat(Ce))()}),p},si=function(d){var p={};return Array.from(d.querySelectorAll("swal-button")).forEach(function(T){Sa(T,["type","color","aria-label"]);var Z=T.getAttribute("type");p["".concat(Z,"ButtonText")]=T.innerHTML,p["show".concat(Qu(Z),"Button")]=!0,T.hasAttribute("color")&&(p["".concat(Z,"ButtonColor")]=T.getAttribute("color")),T.hasAttribute("aria-label")&&(p["".concat(Z,"ButtonAriaLabel")]=T.getAttribute("aria-label"))}),p},As=function(d){var p={},m=d.querySelector("swal-image");return m&&(Sa(m,["src","width","height","alt"]),m.hasAttribute("src")&&(p.imageUrl=m.getAttribute("src")),m.hasAttribute("width")&&(p.imageWidth=m.getAttribute("width")),m.hasAttribute("height")&&(p.imageHeight=m.getAttribute("height")),m.hasAttribute("alt")&&(p.imageAlt=m.getAttribute("alt"))),p},vi=function(d){var p={},m=d.querySelector("swal-icon");return m&&(Sa(m,["type","color"]),m.hasAttribute("type")&&(p.icon=m.getAttribute("type")),m.hasAttribute("color")&&(p.iconColor=m.getAttribute("color")),p.iconHtml=m.innerHTML),p},qb=function(d){var p={},m=d.querySelector("swal-input");m&&(Sa(m,["type","label","placeholder","value"]),p.input=m.getAttribute("type")||"text",m.hasAttribute("label")&&(p.inputLabel=m.getAttribute("label")),m.hasAttribute("placeholder")&&(p.inputPlaceholder=m.getAttribute("placeholder")),m.hasAttribute("value")&&(p.inputValue=m.getAttribute("value")));var T=Array.from(d.querySelectorAll("swal-input-option"));return T.length&&(p.inputOptions={},T.forEach(function(Z){Sa(Z,["value"]);var Ce=Z.getAttribute("value");p.inputOptions[Ce]=Z.innerHTML})),p},Yb=function(d,p){var m={};for(var T in p){var Z=p[T],Ce=d.querySelector(Z);Ce&&(Sa(Ce,[]),m[Z.replace(/^swal-/,"")]=Ce.innerHTML.trim())}return m},pd=function(d){var p=N.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(d.children).forEach(function(m){var T=m.tagName.toLowerCase();p.includes(T)||ni("Unrecognized element <".concat(T,">"))})},Sa=function(d,p){Array.from(d.attributes).forEach(function(m){-1===p.indexOf(m.name)&&ni(['Unrecognized attribute "'.concat(m.name,'" on <').concat(d.tagName.toLowerCase(),">."),"".concat(p.length?"Allowed attributes are: ".concat(p.join(", ")):"To set the value, use HTML within the element.")])})},Fl=function(d){var p=et(),m=bt();"function"==typeof d.willOpen&&d.willOpen(m);var Z=window.getComputedStyle(document.body).overflowY;fd(p,m,d),setTimeout(function(){Yg(p,m)},10),Ig()&&(Zb(p,d.scrollbarPadding,Z),Array.from(document.body.children).forEach(function(p){p===et()||p.contains(et())||(p.hasAttribute("aria-hidden")&&p.setAttribute("data-previous-aria-hidden",p.getAttribute("aria-hidden")||""),p.setAttribute("aria-hidden","true"))})),!mc()&&!ut.previousActiveElement&&(ut.previousActiveElement=document.activeElement),"function"==typeof d.didOpen&&setTimeout(function(){return d.didOpen(m)}),ro(p,q["no-transition"])},AC=function b(d){var p=bt();if(d.target===p&&vt){var m=et();p.removeEventListener(vt,b),m.style.overflowY="auto"}},Yg=function(d,p){vt&&H(p)?(d.style.overflowY="hidden",p.addEventListener(vt,AC)):d.style.overflowY="auto"},Zb=function(d,p,m){(function(){if(ld&&!ri(document.body,q.iosfix)){var d=document.body.scrollTop;document.body.style.top="".concat(-1*d,"px"),Dt(document.body,q.iosfix),$o()}})(),p&&"hidden"!==m&&dC(m),setTimeout(function(){d.scrollTop=0})},fd=function(d,p,m){Dt(d,m.showClass.backdrop),m.animation?(p.style.setProperty("opacity","0","important"),dt(p,"grid"),setTimeout(function(){Dt(p,m.showClass.popup),p.style.removeProperty("opacity")},10)):dt(p,"grid"),Dt([document.documentElement,document.body],q.shown),m.heightAuto&&m.backdrop&&!m.toast&&Dt([document.documentElement,document.body],q["height-auto"])},RC={email:function(d,p){return/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(d)?Promise.resolve():Promise.resolve(p||"Invalid email address")},url:function(d,p){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(d)?Promise.resolve():Promise.resolve(p||"Invalid URL")}};function Zg(b){(function Kg(b){b.inputValidator||("email"===b.input&&(b.inputValidator=RC.email),"url"===b.input&&(b.inputValidator=RC.url))})(b),b.showLoaderOnConfirm&&!b.preConfirm&&ni("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function NC(b){(!b.target||"string"==typeof b.target&&!document.querySelector(b.target)||"string"!=typeof b.target&&!b.target.appendChild)&&(ni('Target parameter is not valid, defaulting to "body"'),b.target="body")}(b),"string"==typeof b.title&&(b.title=b.title.split("\n").join("<br />")),Eb(b)}var Rr,Pl=new WeakMap,Gt=function(){function b(){if(bs(this,b),Eg(this,Pl,{writable:!0,value:void 0}),!(typeof window>"u")){Rr=this;for(var d=arguments.length,p=new Array(d),m=0;m<d;m++)p[m]=arguments[m];var T=Object.freeze(this.constructor.argsToParams(p));this.params=T,this.isAwaitingPromise=!1,Cs(this,Pl,this._main(Rr.params))}}return Je(b,[{key:"_main",value:function(p){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(d){for(var p in!1===d.backdrop&&d.allowOutsideClick&&ni('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),d)Et(p),d.toast&&Ea(p),Pb(p)}(Object.assign({},m,p)),ut.currentInstance){var T=Is.swalPromiseResolve.get(ut.currentInstance),Z=ut.currentInstance.isAwaitingPromise;ut.currentInstance._destroy(),Z||T({isDismissed:!0}),Ig()&&cd()}ut.currentInstance=Rr;var Ce=Qg(p,m);Zg(Ce),Object.freeze(Ce),ut.timeout&&(ut.timeout.stop(),delete ut.timeout),clearTimeout(ut.restoreFocusTimeout);var ze=md(Rr);return El(Rr,Ce),_e.innerParams.set(Rr,Ce),OC(Rr,ze,Ce)}},{key:"then",value:function(p){return ws(this,Pl).then(p)}},{key:"finally",value:function(p){return ws(this,Pl).finally(p)}}]),b}(),OC=function(d,p,m){return new Promise(function(T,Z){var Ce=function(pt){d.close({isDismissed:!0,dismiss:pt})};Is.swalPromiseResolve.set(d,T),Is.swalPromiseReject.set(d,Z),p.confirmButton.onclick=function(){!function(d){var p=_e.innerParams.get(d);d.disableButtons(),p.input?Nb(d,"confirm"):wa(d,!0)}(d)},p.denyButton.onclick=function(){!function(d){var p=_e.innerParams.get(d);d.disableButtons(),p.returnInputValueOnDeny?Nb(d,"deny"):Ug(d,!1)}(d)},p.cancelButton.onclick=function(){!function(d,p){d.disableButtons(),p(W.cancel)}(d,Ce)},p.closeButton.onclick=function(){Ce(W.close)},function(d,p,m){d.toast?Nl(d,p,m):(wC(p),qg(p),CC(d,p,m))}(m,p,Ce),function(d,p,m){od(d),p.toast||(d.keydownHandler=function(T){return Fg(p,T,m)},d.keydownTarget=p.keydownListenerCapture?window:bt(),d.keydownListenerCapture=p.keydownListenerCapture,d.keydownTarget.addEventListener("keydown",d.keydownHandler,{capture:d.keydownListenerCapture}),d.keydownHandlerAdded=!0)}(ut,m,Ce),function(d,p){"select"===p.input||"radio"===p.input?fC(d,p):["text","email","number","tel","textarea"].some(function(m){return m===p.input})&&(ue(p.inputValue)||Ot(p.inputValue))&&(Ts(gr()),Ms(d,p))}(d,m),Fl(m),FC(ut,m,Ce),Xg(p,m),setTimeout(function(){p.container.scrollTop=0})})},Qg=function(d,p){var m=function(d){var p="string"==typeof d.template?document.querySelector(d.template):d.template;if(!p)return{};var m=p.content;return pd(m),Object.assign(ht(m),On(m),si(m),As(m),vi(m),qb(m),Yb(m,N))}(d),T=Object.assign({},kl,p,m,d);return T.showClass=Object.assign({},kl.showClass,T.showClass),T.hideClass=Object.assign({},kl.hideClass,T.hideClass),!1===T.animation&&(T.showClass={backdrop:"swal2-noanimation"},T.hideClass={}),T},md=function(d){var p={popup:bt(),container:et(),actions:_a(),confirmButton:gr(),denyButton:Qi(),cancelButton:io(),loader:gc(),closeButton:xg(),validationMessage:hc(),progressSteps:jo()};return _e.domCache.set(d,p),p},FC=function(d,p,m){var T=pc();oi(T),p.timer&&(d.timeout=new Wb(function(){m("timer"),delete d.timeout},p.timer),p.timerProgressBar&&(dt(T),Xi(T,p,"timerProgressBar"),setTimeout(function(){d.timeout&&d.timeout.running&&Es(p.timer)})))},Xg=function(d,p){if(!p.toast){if(!Ae(p.allowEnterKey))return void _i();bd(d,p)||sd(-1,1)}},bd=function(d,p){return p.focusDeny&&Me(d.denyButton)?(d.denyButton.focus(),!0):p.focusCancel&&Me(d.cancelButton)?(d.cancelButton.focus(),!0):!(!p.focusConfirm||!Me(d.confirmButton)||(d.confirmButton.focus(),0))},_i=function(){document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){var xa=new Date,vd=localStorage.getItem("swal-initiation");vd?(xa.getTime()-Date.parse(vd))/864e5>3&&setTimeout(function(){document.body.style.pointerEvents="none";var b=document.createElement("audio");b.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",b.loop=!0,document.body.appendChild(b),setTimeout(function(){b.play().catch(function(){})},2500)},500):localStorage.setItem("swal-initiation","".concat(xa))}Gt.prototype.disableButtons=Tl,Gt.prototype.enableButtons=jg,Gt.prototype.getInput=Fb,Gt.prototype.disableInput=hd,Gt.prototype.enableInput=Ml,Gt.prototype.hideLoading=dd,Gt.prototype.disableLoading=dd,Gt.prototype.showValidationMessage=_C,Gt.prototype.resetValidationMessage=Gg,Gt.prototype.close=tt,Gt.prototype.closePopup=tt,Gt.prototype.closeModal=tt,Gt.prototype.closeToast=tt,Gt.prototype.rejectPromise=Bg,Gt.prototype.update=Al,Gt.prototype._destroy=pr,Object.assign(Gt,re),Object.keys(Bb).forEach(function(b){Gt[b]=function(){var d;return Rr&&Rr[b]?(d=Rr)[b].apply(d,arguments):null}}),Gt.DismissReason=W,Gt.version="11.10.6";var _d=Gt;return _d.default=_d,_d}(),typeof this<"u"&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),typeof document<"u"&&function(Vo,Fi){var Ii=Vo.createElement("style");if(Vo.getElementsByTagName("head")[0].appendChild(Ii),Ii.styleSheet)Ii.styleSheet.disabled||(Ii.styleSheet.cssText=Fi);else try{Ii.innerHTML=Fi}catch{Ii.innerText=Fi}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')},73:()=>{"use strict";const ba=":";Error;const dc=function(P,...G){if(dc.translate){const ce=dc.translate(P,G);P=ce[0],G=ce[1]}let oe=ni(P[0],P.raw[0]);for(let ce=1;ce<P.length;ce++)oe+=G[ce-1]+ni(P[ce],P.raw[ce]);return oe},Qu=":";function ni(P,G){return G.charAt(0)===Qu?P.substring(function Dg(P,G){for(let oe=1,ce=1;oe<P.length;oe++,ce++)if("\\"===G[ce])ce++;else if(P[oe]===ba)return oe;throw new Error(`Unterminated $localize metadata block in "${G}".`)}(P,G)+1):P}globalThis.$localize=dc}},ba=>{var Vo=Ii=>ba(ba.s=Ii);Vo(73),Vo(426)}]);