"use strict";(self.webpackChunkorbit_admin_js=self.webpackChunkorbit_admin_js||[]).push([[792],{27:()=>{function $t(t){return"function"==typeof t}function qd(t){const e=t(n=>{Error.call(n),n.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Op=qd(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,o)=>`${o+1}) ${n.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ec(t,i){if(t){const e=t.indexOf(i);0<=e&&t.splice(e,1)}}class rt{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:n}=this;if($t(n))try{n()}catch(s){i=s instanceof Op?s.errors:[s]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const s of o)try{oS(s)}catch(a){i=i??[],a instanceof Op?i=[...i,...a.errors]:i.push(a)}}if(i)throw new Op(i)}}add(i){var e;if(i&&i!==this)if(this.closed)oS(i);else{if(i instanceof rt){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(i)}}_hasParent(i){const{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){const{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&ec(e,i)}remove(i){const{_finalizers:e}=this;e&&ec(e,i),i instanceof rt&&i._removeParent(this)}}rt.EMPTY=(()=>{const t=new rt;return t.closed=!0,t})();const nS=rt.EMPTY;function iS(t){return t instanceof rt||t&&"closed"in t&&$t(t.remove)&&$t(t.add)&&$t(t.unsubscribe)}function oS(t){$t(t)?t():t.unsubscribe()}const jr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Rp={setTimeout(t,i,...e){const{delegate:n}=Rp;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){const{delegate:i}=Rp;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function sS(t){Rp.setTimeout(()=>{const{onUnhandledError:i}=jr;if(!i)throw t;i(t)})}function Yd(){}const vL=Jg("C",void 0,void 0);function Jg(t,i,e){return{kind:t,value:i,error:e}}let Gr=null;function kp(t){if(jr.useDeprecatedSynchronousErrorHandling){const i=!Gr;if(i&&(Gr={errorThrown:!1,error:null}),t(),i){const{errorThrown:e,error:n}=Gr;if(Gr=null,e)throw n}}else t()}class e1 extends rt{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,iS(i)&&i.add(this)):this.destination=ML}static create(i,e,n){return new Qd(i,e,n)}next(i){this.isStopped?n1(function CL(t){return Jg("N",t,void 0)}(i),this):this._next(i)}error(i){this.isStopped?n1(function yL(t){return Jg("E",void 0,t)}(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?n1(vL,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const SL=Function.prototype.bind;function t1(t,i){return SL.call(t,i)}class TL{constructor(i){this.partialObserver=i}next(i){const{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){Ap(n)}}error(i){const{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){Ap(n)}else Ap(i)}complete(){const{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){Ap(e)}}}class Qd extends e1{constructor(i,e,n){let o;if(super(),$t(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let s;this&&jr.useDeprecatedNextContext?(s=Object.create(i),s.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&t1(i.next,s),error:i.error&&t1(i.error,s),complete:i.complete&&t1(i.complete,s)}):o=i}this.destination=new TL(o)}}function Ap(t){jr.useDeprecatedSynchronousErrorHandling?function wL(t){jr.useDeprecatedSynchronousErrorHandling&&Gr&&(Gr.errorThrown=!0,Gr.error=t)}(t):sS(t)}function n1(t,i){const{onStoppedNotification:e}=jr;e&&Rp.setTimeout(()=>e(t,i))}const ML={closed:!0,next:Yd,error:function DL(t){throw t},complete:Yd},o1="function"==typeof Symbol&&Symbol.observable||"@@observable";function ma(t){return t}function aS(t){return 0===t.length?ma:1===t.length?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}let dn=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){const s=function IL(t){return t&&t instanceof e1||function EL(t){return t&&$t(t.next)&&$t(t.error)&&$t(t.complete)}(t)&&iS(t)}(e)?e:new Qd(e,n,o);return kp(()=>{const{operator:a,source:r}=this;s.add(a?a.call(s,r):r?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return new(n=rS(n))((o,s)=>{const a=new Qd({next:r=>{try{e(r)}catch(u){s(u),a.unsubscribe()}},error:s,complete:o});this.subscribe(a)})}_subscribe(e){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(e)}[o1](){return this}pipe(...e){return aS(e)(this)}toPromise(e){return new(e=rS(e))((n,o)=>{let s;this.subscribe(a=>s=a,a=>o(a),()=>n(s))})}}return t.create=i=>new t(i),t})();function rS(t){var i;return null!==(i=t??jr.Promise)&&void 0!==i?i:Promise}const OL=qd(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let re=(()=>{class t extends dn{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const n=new lS(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new OL}next(e){kp(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const n of this.currentObservers)n.next(e)}})}error(e){kp(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){kp(()=>{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:n,isStopped:o,observers:s}=this;return n||o?nS:(this.currentObservers=null,s.push(e),new rt(()=>{this.currentObservers=null,ec(s,e)}))}_checkFinalizedStatuses(e){const{hasError:n,thrownError:o,isStopped:s}=this;n?e.error(o):s&&e.complete()}asObservable(){const e=new dn;return e.source=this,e}}return t.create=(i,e)=>new lS(i,e),t})();class lS extends re{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,i)}error(i){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,i)}complete(){var i,e;null===(e=null===(i=this.destination)||void 0===i?void 0:i.complete)||void 0===e||e.call(i)}_subscribe(i){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(i))&&void 0!==n?n:nS}}function cS(t){return $t(t?.lift)}function qn(t){return i=>{if(cS(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function On(t,i,e,n,o){return new RL(t,i,e,n,o)}class RL extends e1{constructor(i,e,n,o,s,a){super(i),this.onFinalize=s,this.shouldUnsubscribe=a,this._next=e?function(r){try{e(r)}catch(u){i.error(u)}}:super._next,this._error=o?function(r){try{o(r)}catch(u){i.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(r){i.error(r)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(i=this.onFinalize)||void 0===i||i.call(this))}}}function Le(t,i){return qn((e,n)=>{let o=0;e.subscribe(On(n,s=>{n.next(t.call(i,s,o++))}))})}function Ka(t){return this instanceof Ka?(this.v=t,this):new Ka(t)}function pS(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=function l1(t){var i="function"==typeof Symbol&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(s){e[s]=t[s]&&function(a){return new Promise(function(r,u){!function o(s,a,r,u){Promise.resolve(u).then(function(m){s({value:m,done:r})},a)}(r,u,(a=t[s](a)).done,a.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const c1=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function mS(t){return $t(t?.then)}function fS(t){return $t(t[o1])}function _S(t){return Symbol.asyncIterator&&$t(t?.[Symbol.asyncIterator])}function gS(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 bS=function JL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function vS(t){return $t(t?.[bS])}function yS(t){return function hS(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,n=e.apply(t,i||[]),s=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(S){n[S]&&(o[S]=function(x){return new Promise(function(R,k){s.push([S,x,R,k])>1||r(S,x)})})}function r(S,x){try{!function u(S){S.value instanceof Ka?Promise.resolve(S.value.v).then(m,g):y(s[0][2],S)}(n[S](x))}catch(R){y(s[0][3],R)}}function m(S){r("next",S)}function g(S){r("throw",S)}function y(S,x){S(x),s.shift(),s.length&&r(s[0][0],s[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:n,done:o}=yield Ka(e.read());if(o)return yield Ka(void 0);yield yield Ka(n)}}finally{e.releaseLock()}})}function CS(t){return $t(t?.getReader)}function yi(t){if(t instanceof dn)return t;if(null!=t){if(fS(t))return function e4(t){return new dn(i=>{const e=t[o1]();if($t(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(c1(t))return function t4(t){return new dn(i=>{for(let e=0;e<t.length&&!i.closed;e++)i.next(t[e]);i.complete()})}(t);if(mS(t))return function n4(t){return new dn(i=>{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,sS)})}(t);if(_S(t))return wS(t);if(vS(t))return function o4(t){return new dn(i=>{for(const e of t)if(i.next(e),i.closed)return;i.complete()})}(t);if(CS(t))return function s4(t){return wS(yS(t))}(t)}throw gS(t)}function wS(t){return new dn(i=>{(function a4(t,i){var e,n,o,s;return function dS(t,i,e,n){return new(e||(e=Promise))(function(s,a){function r(g){try{m(n.next(g))}catch(y){a(y)}}function u(g){try{m(n.throw(g))}catch(y){a(y)}}function m(g){g.done?s(g.value):function o(s){return s instanceof e?s:new e(function(a){a(s)})}(g.value).then(r,u)}m((n=n.apply(t,i||[])).next())})}(this,void 0,void 0,function*(){try{for(e=pS(t);!(n=yield e.next()).done;)if(i.next(n.value),i.closed)return}catch(a){o={error:a}}finally{try{n&&!n.done&&(s=e.return)&&(yield s.call(e))}finally{if(o)throw o.error}}i.complete()})})(t,i).catch(e=>i.error(e))})}function fa(t,i,e,n=0,o=!1){const s=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!o)return s}function Ci(t,i,e=1/0){return $t(i)?Ci((n,o)=>Le((s,a)=>i(n,s,o,a))(yi(t(n,o))),e):("number"==typeof i&&(e=i),qn((n,o)=>function r4(t,i,e,n,o,s,a,r){const u=[];let m=0,g=0,y=!1;const S=()=>{y&&!u.length&&!m&&i.complete()},x=k=>m<n?R(k):u.push(k),R=k=>{s&&i.next(k),m++;let V=!1;yi(e(k,g++)).subscribe(On(i,q=>{o?.(q),s?x(q):i.next(q)},()=>{V=!0},void 0,()=>{if(V)try{for(m--;u.length&&m<n;){const q=u.shift();a?fa(i,a,()=>R(q)):R(q)}S()}catch(q){i.error(q)}}))};return t.subscribe(On(i,x,()=>{y=!0,S()})),()=>{r?.()}}(n,o,t,e)))}function tc(t=1/0){return Ci(ma,t)}const io=new dn(t=>t.complete());function SS(t){return t&&$t(t.schedule)}function d1(t){return t[t.length-1]}function Pp(t){return $t(d1(t))?t.pop():void 0}function Zd(t){return SS(d1(t))?t.pop():void 0}function TS(t,i=0){return qn((e,n)=>{e.subscribe(On(n,o=>fa(n,t,()=>n.next(o),i),()=>fa(n,t,()=>n.complete(),i),o=>fa(n,t,()=>n.error(o),i)))})}function DS(t,i=0){return qn((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function MS(t,i){if(!t)throw new Error("Iterable cannot be null");return new dn(e=>{fa(e,i,()=>{const n=t[Symbol.asyncIterator]();fa(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function wi(t,i){return i?function f4(t,i){if(null!=t){if(fS(t))return function d4(t,i){return yi(t).pipe(DS(i),TS(i))}(t,i);if(c1(t))return function h4(t,i){return new dn(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}(t,i);if(mS(t))return function u4(t,i){return yi(t).pipe(DS(i),TS(i))}(t,i);if(_S(t))return MS(t,i);if(vS(t))return function p4(t,i){return new dn(e=>{let n;return fa(e,i,()=>{n=t[bS](),fa(e,i,()=>{let o,s;try{({value:o,done:s}=n.next())}catch(a){return void e.error(a)}s?e.complete():e.next(o)},0,!0)}),()=>$t(n?.return)&&n.return()})}(t,i);if(CS(t))return function m4(t,i){return MS(yS(t),i)}(t,i)}throw gS(t)}(t,i):yi(t)}function un(...t){const i=Zd(t),e=function c4(t,i){return"number"==typeof d1(t)?t.pop():i}(t,1/0),n=t;return n.length?1===n.length?yi(n[0]):tc(e)(wi(n,i)):io}class ii extends re{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){const e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){const{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}}function ve(...t){return wi(t,Zd(t))}function Np(t={}){const{connector:i=(()=>new re),resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return s=>{let a,r,u,m=0,g=!1,y=!1;const S=()=>{r?.unsubscribe(),r=void 0},x=()=>{S(),a=u=void 0,g=y=!1},R=()=>{const k=a;x(),k?.unsubscribe()};return qn((k,V)=>{m++,!y&&!g&&S();const q=u=u??i();V.add(()=>{m--,0===m&&!y&&!g&&(r=u1(R,o))}),q.subscribe(V),!a&&m>0&&(a=new Qd({next:j=>q.next(j),error:j=>{y=!0,S(),r=u1(x,e,j),q.error(j)},complete:()=>{g=!0,S(),r=u1(x,n),q.complete()}}),yi(k).subscribe(a))})(s)}}function u1(t,i,...e){if(!0===i)return void t();if(!1===i)return;const n=new Qd({next:()=>{n.unsubscribe(),t()}});return yi(i(...e)).subscribe(n)}function oi(t,i){return qn((e,n)=>{let o=null,s=0,a=!1;const r=()=>a&&!o&&n.complete();e.subscribe(On(n,u=>{o?.unsubscribe();let m=0;const g=s++;yi(t(u,g)).subscribe(o=On(n,y=>n.next(i?i(u,y,g,m++):y),()=>{o=null,r()}))},()=>{a=!0,r()}))})}function zr(t,i=ma){return t=t??_4,qn((e,n)=>{let o,s=!0;e.subscribe(On(n,a=>{const r=i(a);(s||!t(o,r))&&(s=!1,o=r,n.next(a))}))})}function _4(t,i){return t===i}function Rn(t){for(let i in t)if(t[i]===Rn)return i;throw Error("Could not find renamed property on target object.")}function Fp(t,i){for(const e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function Ei(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ei).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const e=i.indexOf("\n");return-1===e?i:i.substring(0,e)}function h1(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const g4=Rn({__forward_ref__:Rn});function Je(t){return t.__forward_ref__=Je,t.toString=function(){return Ei(this())},t}function dt(t){return p1(t)?t():t}function p1(t){return"function"==typeof t&&t.hasOwnProperty(g4)&&t.__forward_ref__===Je}function m1(t){return t&&!!t.\u0275providers}const xS="https://g.co/ng/security#xss";class ee extends Error{constructor(i,e){super(function Lp(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}(i,e)),this.code=i}}function ht(t){return"string"==typeof t?t:null==t?"":String(t)}function f1(t,i){throw new ee(-201,!1)}function qo(t,i){null==t&&function lt(t,i,e,n){throw new Error(`ASSERTION ERROR: ${t}`+(null==n?"":` [Expected=> ${e} ${n} ${i} <=Actual]`))}(i,t,null,"!=")}function K(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ye(t){return{providers:t.providers||[],imports:t.imports||[]}}function Bp(t){return ES(t,Hp)||ES(t,IS)}function ES(t,i){return t.hasOwnProperty(i)?t[i]:null}function Vp(t){return t&&(t.hasOwnProperty(_1)||t.hasOwnProperty(D4))?t[_1]:null}const Hp=Rn({\u0275prov:Rn}),_1=Rn({\u0275inj:Rn}),IS=Rn({ngInjectableDef:Rn}),D4=Rn({ngInjectorDef:Rn});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 g1;function _o(t){const i=g1;return g1=t,i}function RS(t,i,e){const n=Bp(t);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:e&Tt.Optional?null:void 0!==i?i:void f1(Ei(t))}const $n=globalThis;class Y{constructor(i,e){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=K({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Kd={},w1="__NG_DI_FLAG__",Up="ngTempTokenPath",E4=/\n/gm,AS="__source";let nc;function Xa(t){const i=nc;return nc=t,i}function R4(t,i=Tt.Default){if(void 0===nc)throw new ee(-203,!1);return null===nc?RS(t,void 0,i):nc.get(t,i&Tt.Optional?null:void 0,i)}function H(t,i=Tt.Default){return(function OS(){return g1}()||R4)(dt(t),i)}function he(t,i=Tt.Default){return H(t,$p(i))}function $p(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function S1(t){const i=[];for(let e=0;e<t.length;e++){const n=dt(t[e]);if(Array.isArray(n)){if(0===n.length)throw new ee(900,!1);let o,s=Tt.Default;for(let a=0;a<n.length;a++){const r=n[a],u=k4(r);"number"==typeof u?-1===u?o=r.token:s|=u:o=r}i.push(H(o,s))}else i.push(H(n))}return i}function Xd(t,i){return t[w1]=i,t.prototype[w1]=i,t}function k4(t){return t[w1]}function _a(t){return{toString:t}.toString()}var jp=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(jp||{}),Yo=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Yo||{});const Ls={},fn=[],Gp=Rn({\u0275cmp:Rn}),T1=Rn({\u0275dir:Rn}),D1=Rn({\u0275pipe:Rn}),NS=Rn({\u0275mod:Rn}),ga=Rn({\u0275fac:Rn}),Jd=Rn({__NG_ELEMENT_ID__:Rn}),FS=Rn({__NG_ENV_ID__:Rn});function LS(t,i,e){let n=t.length;for(;;){const o=t.indexOf(i,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const s=i.length;if(o+s===n||t.charCodeAt(o+s)<=32)return o}e=o+1}}function M1(t,i,e){let n=0;for(;n<e.length;){const o=e[n];if("number"==typeof o){if(0!==o)break;n++;const s=e[n++],a=e[n++],r=e[n++];t.setAttribute(i,a,r,s)}else{const s=o,a=e[++n];VS(s)?t.setProperty(i,s,a):t.setAttribute(i,s,a),n++}}return n}function BS(t){return 3===t||4===t||6===t}function VS(t){return 64===t.charCodeAt(0)}function eu(t,i){if(null!==i&&0!==i.length)if(null===t||0===t.length)t=i.slice();else{let e=-1;for(let n=0;n<i.length;n++){const o=i[n];"number"==typeof o?e=o:0===e||HS(t,e,o,null,-1===e||2===e?i[++n]:null)}}return t}function HS(t,i,e,n,o){let s=0,a=t.length;if(-1===i)a=-1;else for(;s<t.length;){const r=t[s++];if("number"==typeof r){if(r===i){a=-1;break}if(r>i){a=s-1;break}}}for(;s<t.length;){const r=t[s];if("number"==typeof r)break;if(r===e){if(null===n)return void(null!==o&&(t[s+1]=o));if(n===t[s+1])return void(t[s+2]=o)}s++,null!==n&&s++,null!==o&&s++}-1!==a&&(t.splice(a,0,i),s=a+1),t.splice(s++,0,e),null!==n&&t.splice(s++,0,n),null!==o&&t.splice(s++,0,o)}const US="ng-template";function N4(t,i,e){let n=0,o=!0;for(;n<t.length;){let s=t[n++];if("string"==typeof s&&o){const a=t[n++];if(e&&"class"===s&&-1!==LS(a.toLowerCase(),i,0))return!0}else{if(1===s){for(;n<t.length&&"string"==typeof(s=t[n++]);)if(s.toLowerCase()===i)return!0;return!1}"number"==typeof s&&(o=!1)}}return!1}function $S(t){return 4===t.type&&t.value!==US}function F4(t,i,e){return i===(4!==t.type||e?t.value:US)}function L4(t,i,e){let n=4;const o=t.attrs||[],s=function H4(t){for(let i=0;i<t.length;i++)if(BS(t[i]))return i;return t.length}(o);let a=!1;for(let r=0;r<i.length;r++){const u=i[r];if("number"!=typeof u){if(!a)if(4&n){if(n=2|1&n,""!==u&&!F4(t,u,e)||""===u&&1===i.length){if(ps(n))return!1;a=!0}}else{const m=8&n?u:i[++r];if(8&n&&null!==t.attrs){if(!N4(t.attrs,m,e)){if(ps(n))return!1;a=!0}continue}const y=B4(8&n?"class":u,o,$S(t),e);if(-1===y){if(ps(n))return!1;a=!0;continue}if(""!==m){let S;S=y>s?"":o[y+1].toLowerCase();const x=8&n?S:null;if(x&&-1!==LS(x,m,0)||2&n&&m!==S){if(ps(n))return!1;a=!0}}}}else{if(!a&&!ps(n)&&!ps(u))return!1;if(a&&ps(u))continue;a=!1,n=u|1&n}}return ps(n)||a}function ps(t){return 0==(1&t)}function B4(t,i,e,n){if(null===i)return-1;let o=0;if(n||!e){let s=!1;for(;o<i.length;){const a=i[o];if(a===t)return o;if(3===a||6===a)s=!0;else{if(1===a||2===a){let r=i[++o];for(;"string"==typeof r;)r=i[++o];continue}if(4===a)break;if(0===a){o+=4;continue}}o+=s?1:2}return-1}return function U4(t,i){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const n=t[e];if("number"==typeof n)return-1;if(n===i)return e;e++}return-1}(i,t)}function jS(t,i,e=!1){for(let n=0;n<i.length;n++)if(L4(t,i[n],e))return!0;return!1}function $4(t,i){e:for(let e=0;e<i.length;e++){const n=i[e];if(t.length===n.length){for(let o=0;o<t.length;o++)if(t[o]!==n[o])continue e;return!0}}return!1}function GS(t,i){return t?":not("+i.trim()+")":i}function j4(t){let i=t[0],e=1,n=2,o="",s=!1;for(;e<t.length;){let a=t[e];if("string"==typeof a)if(2&n){const r=t[++e];o+="["+a+(r.length>0?'="'+r+'"':"")+"]"}else 8&n?o+="."+a:4&n&&(o+=" "+a);else""!==o&&!ps(a)&&(i+=GS(s,o),o=""),n=a,s=s||!ps(n);e++}return""!==o&&(i+=GS(s,o)),i}function U(t){return _a(()=>{const i=WS(t),e={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===jp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Yo.Emulated,styles:t.styles||fn,_:null,schemas:t.schemas||null,tView:null,id:""};qS(e);const n=t.dependencies;return e.directiveDefs=zp(n,!1),e.pipeDefs=zp(n,!0),e.id=function K4(t){let i=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 o of e)i=Math.imul(31,i)+o.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(e),e})}function q4(t){return tn(t)||Li(t)}function Y4(t){return null!==t}function Ce(t){return _a(()=>({type:t.type,bootstrap:t.bootstrap||fn,declarations:t.declarations||fn,imports:t.imports||fn,exports:t.exports||fn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function zS(t,i){if(null==t)return Ls;const e={};for(const n in t)if(t.hasOwnProperty(n)){let o=t[n],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),e[o]=n,i&&(i[o]=s)}return e}function $(t){return _a(()=>{const i=WS(t);return qS(i),i})}function Yi(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 tn(t){return t[Gp]||null}function Li(t){return t[T1]||null}function oo(t){return t[D1]||null}function Oo(t,i){const e=t[NS]||null;if(!e&&!0===i)throw new Error(`Type ${Ei(t)} does not have '\u0275mod' property.`);return e}function WS(t){const i={};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:i,inputTransforms:null,inputConfig:t.inputs||Ls,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||fn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zS(t.inputs,i),outputs:zS(t.outputs)}}function qS(t){t.features?.forEach(i=>i(t))}function zp(t,i){if(!t)return null;const e=i?oo:q4;return()=>("function"==typeof t?t():t).map(n=>e(n)).filter(Y4)}const si=0,Ae=1,_t=2,Yn=3,ms=4,tu=5,Qi=6,oc=7,ui=8,Ja=9,sc=10,pt=11,nu=12,YS=13,ac=14,hi=15,iu=16,rc=17,Bs=18,ou=19,QS=20,er=21,ba=22,su=23,au=24,Rt=25,x1=1,ZS=2,Vs=7,lc=9,Bi=11;function go(t){return Array.isArray(t)&&"object"==typeof t[x1]}function so(t){return Array.isArray(t)&&!0===t[x1]}function E1(t){return 0!=(4&t.flags)}function qr(t){return t.componentOffset>-1}function qp(t){return 1==(1&t.flags)}function fs(t){return!!t.template}function I1(t){return 0!=(512&t[_t])}function Yr(t,i){return t.hasOwnProperty(ga)?t[ga]:null}let Vi=null,Yp=!1;function Qo(t){const i=Vi;return Vi=t,i}const JS={version: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:()=>{}};function tT(t){if(!lu(t)||t.dirty){if(!t.producerMustRecompute(t)&&!oT(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function iT(t){t.dirty=!0,function nT(t){if(void 0===t.liveConsumerNode)return;const i=Yp;Yp=!0;try{for(const e of t.liveConsumerNode)e.dirty||iT(e)}finally{Yp=i}}(t),t.consumerMarkedDirty?.(t)}function R1(t){return t&&(t.nextProducerIndex=0),Qo(t)}function k1(t,i){if(Qo(i),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(lu(t))for(let e=t.nextProducerIndex;e<t.producerNode.length;e++)Qp(t.producerNode[e],t.producerIndexOfThis[e]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function oT(t){cc(t);for(let i=0;i<t.producerNode.length;i++){const e=t.producerNode[i],n=t.producerLastReadVersion[i];if(n!==e.version||(tT(e),n!==e.version))return!0}return!1}function sT(t){if(cc(t),lu(t))for(let i=0;i<t.producerNode.length;i++)Qp(t.producerNode[i],t.producerIndexOfThis[i]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function Qp(t,i){if(function rT(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}(t),cc(t),1===t.liveConsumerNode.length)for(let n=0;n<t.producerNode.length;n++)Qp(t.producerNode[n],t.producerIndexOfThis[n]);const e=t.liveConsumerNode.length-1;if(t.liveConsumerNode[i]=t.liveConsumerNode[e],t.liveConsumerIndexOfThis[i]=t.liveConsumerIndexOfThis[e],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,i<t.liveConsumerNode.length){const n=t.liveConsumerIndexOfThis[i],o=t.liveConsumerNode[i];cc(o),o.producerIndexOfThis[n]=i}}function lu(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function cc(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let lT=null;function uT(t){const i=Qo(null);try{return t()}finally{Qo(i)}}const hT=()=>{},dB=(()=>({...JS,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:hT}))();class uB{constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function fe(){return pT}function pT(t){return t.type.prototype.ngOnChanges&&(t.setInput=pB),hB}function hB(){const t=fT(this),i=t?.current;if(i){const e=t.previous;if(e===Ls)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function pB(t,i,e,n){const o=this.declaredInputs[e],s=fT(t)||function mB(t,i){return t[mT]=i}(t,{previous:Ls,current:null}),a=s.current||(s.current={}),r=s.previous,u=r[o];a[o]=new uB(u&&u.currentValue,i,r===Ls),t[n]=i}fe.ngInherit=!0;const mT="__ngSimpleChanges__";function fT(t){return t[mT]||null}const Hs=function(t,i,e){},_T="svg";function jn(t){for(;Array.isArray(t);)t=t[si];return t}function Zp(t,i){return jn(i[t])}function bo(t,i){return jn(i[t.index])}function bT(t,i){return t.data[i]}function dc(t,i){return t[i]}function Ro(t,i){const e=i[t];return go(e)?e:e[si]}function nr(t,i){return null==i?null:t[i]}function vT(t){t[rc]=0}function yB(t){1024&t[_t]||(t[_t]|=1024,CT(t,1))}function yT(t){1024&t[_t]&&(t[_t]&=-1025,CT(t,-1))}function CT(t,i){let e=t[Yn];if(null===e)return;e[tu]+=i;let n=e;for(e=e[Yn];null!==e&&(1===i&&1===n[tu]||-1===i&&0===n[tu]);)e[tu]+=i,n=e,e=e[Yn]}const ct={lFrame:kT(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function TT(){return ct.bindingsEnabled}function uc(){return null!==ct.skipHydrationRootTNode}function ae(){return ct.lFrame.lView}function nn(){return ct.lFrame.tView}function E(t){return ct.lFrame.contextLView=t,t[ui]}function I(t){return ct.lFrame.contextLView=null,t}function Hi(){let t=DT();for(;null!==t&&64===t.type;)t=t.parent;return t}function DT(){return ct.lFrame.currentTNode}function Us(t,i){const e=ct.lFrame;e.currentTNode=t,e.isParent=i}function L1(){return ct.lFrame.isParent}function B1(){ct.lFrame.isParent=!1}function ao(){const t=ct.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function va(){return ct.lFrame.bindingIndex}function hc(){return ct.lFrame.bindingIndex++}function ya(t){const i=ct.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function kB(t,i){const e=ct.lFrame;e.bindingIndex=e.bindingRootIndex=t,V1(i)}function V1(t){ct.lFrame.currentDirectiveIndex=t}function H1(t){const i=ct.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}function IT(){return ct.lFrame.currentQueryIndex}function U1(t){ct.lFrame.currentQueryIndex=t}function PB(t){const i=t[Ae];return 2===i.type?i.declTNode:1===i.type?t[Qi]:null}function OT(t,i,e){if(e&Tt.SkipSelf){let o=i,s=t;for(;!(o=o.parent,null!==o||e&Tt.Host||(o=PB(s),null===o||(s=s[ac],10&o.type))););if(null===o)return!1;i=o,t=s}const n=ct.lFrame=RT();return n.currentTNode=i,n.lView=t,!0}function $1(t){const i=RT(),e=t[Ae];ct.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function RT(){const t=ct.lFrame,i=null===t?null:t.child;return null===i?kT(t):i}function kT(t){const i={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=i),i}function AT(){const t=ct.lFrame;return ct.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const PT=AT;function j1(){const t=AT();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 ro(){return ct.lFrame.selectedIndex}function Qr(t){ct.lFrame.selectedIndex=t}function Jn(){const t=ct.lFrame;return bT(t.tView,t.selectedIndex)}function ai(){ct.lFrame.currentNamespace=_T}function vo(){!function BB(){ct.lFrame.currentNamespace=null}()}let FT=!0;function Kp(){return FT}function ir(t){FT=t}function Xp(t,i){for(let e=i.directiveStart,n=i.directiveEnd;e<n;e++){const s=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:r,ngAfterViewInit:u,ngAfterViewChecked:m,ngOnDestroy:g}=s;a&&(t.contentHooks??=[]).push(-e,a),r&&((t.contentHooks??=[]).push(e,r),(t.contentCheckHooks??=[]).push(e,r)),u&&(t.viewHooks??=[]).push(-e,u),m&&((t.viewHooks??=[]).push(e,m),(t.viewCheckHooks??=[]).push(e,m)),null!=g&&(t.destroyHooks??=[]).push(e,g)}}function Jp(t,i,e){LT(t,i,3,e)}function em(t,i,e,n){(3&t[_t])===e&&LT(t,i,e,n)}function G1(t,i){let e=t[_t];(3&e)===i&&(e&=8191,e+=1,t[_t]=e)}function LT(t,i,e,n){const s=n??-1,a=i.length-1;let r=0;for(let u=void 0!==n?65535&t[rc]:0;u<a;u++)if("number"==typeof i[u+1]){if(r=i[u],null!=n&&r>=n)break}else i[u]<0&&(t[rc]+=65536),(r<s||-1==s)&&(HB(t,e,i,u),t[rc]=(4294901760&t[rc])+u+2),u++}function BT(t,i){Hs(4,t,i);const e=Qo(null);try{i.call(t)}finally{Qo(e),Hs(5,t,i)}}function HB(t,i,e,n){const o=e[n]<0,s=e[n+1],r=t[o?-e[n]:e[n]];o?t[_t]>>13<t[rc]>>16&&(3&t[_t])===i&&(t[_t]+=8192,BT(r,s)):BT(r,s)}const pc=-1;class du{constructor(i,e,n){this.factory=i,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function W1(t){return t!==pc}function uu(t){return 32767&t}function hu(t,i){let e=function GB(t){return t>>16}(t),n=i;for(;e>0;)n=n[ac],e--;return n}let q1=!0;function tm(t){const i=q1;return q1=t,i}const VT=255,HT=5;let zB=0;const $s={};function nm(t,i){const e=UT(t,i);if(-1!==e)return e;const n=i[Ae];n.firstCreatePass&&(t.injectorIndex=i.length,Y1(n.data,t),Y1(i,null),Y1(n.blueprint,null));const o=im(t,i),s=t.injectorIndex;if(W1(o)){const a=uu(o),r=hu(o,i),u=r[Ae].data;for(let m=0;m<8;m++)i[s+m]=r[a+m]|u[a+m]}return i[s+8]=o,s}function Y1(t,i){t.push(0,0,0,0,0,0,0,0,i)}function UT(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function im(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;null!==o;){if(n=YT(o),null===n)return pc;if(e++,o=o[ac],-1!==n.injectorIndex)return n.injectorIndex|e<<16}return pc}function Q1(t,i,e){!function WB(t,i,e){let n;"string"==typeof e?n=e.charCodeAt(0)||0:e.hasOwnProperty(Jd)&&(n=e[Jd]),null==n&&(n=e[Jd]=zB++);const o=n&VT;i.data[t+(o>>HT)]|=1<<o}(t,i,e)}function $T(t,i,e){if(e&Tt.Optional||void 0!==t)return t;f1()}function jT(t,i,e,n){if(e&Tt.Optional&&void 0===n&&(n=null),!(e&(Tt.Self|Tt.Host))){const o=t[Ja],s=_o(void 0);try{return o?o.get(i,n,e&Tt.Optional):RS(i,n,e&Tt.Optional)}finally{_o(s)}}return $T(n,0,e)}function GT(t,i,e,n=Tt.Default,o){if(null!==t){if(2048&i[_t]&&!(n&Tt.Self)){const a=function XB(t,i,e,n,o){let s=t,a=i;for(;null!==s&&null!==a&&2048&a[_t]&&!(512&a[_t]);){const r=zT(s,a,e,n|Tt.Self,$s);if(r!==$s)return r;let u=s.parent;if(!u){const m=a[QS];if(m){const g=m.get(e,$s,n);if(g!==$s)return g}u=YT(a),a=a[ac]}s=u}return o}(t,i,e,n,$s);if(a!==$s)return a}const s=zT(t,i,e,n,$s);if(s!==$s)return s}return jT(i,e,n,o)}function zT(t,i,e,n,o){const s=function QB(t){if("string"==typeof t)return t.charCodeAt(0)||0;const i=t.hasOwnProperty(Jd)?t[Jd]:void 0;return"number"==typeof i?i>=0?i&VT:KB:i}(e);if("function"==typeof s){if(!OT(i,t,n))return n&Tt.Host?$T(o,0,n):jT(i,e,n,o);try{let a;if(a=s(n),null!=a||n&Tt.Optional)return a;f1()}finally{PT()}}else if("number"==typeof s){let a=null,r=UT(t,i),u=pc,m=n&Tt.Host?i[hi][Qi]:null;for((-1===r||n&Tt.SkipSelf)&&(u=-1===r?im(t,i):i[r+8],u!==pc&&qT(n,!1)?(a=i[Ae],r=uu(u),i=hu(u,i)):r=-1);-1!==r;){const g=i[Ae];if(WT(s,r,g.data)){const y=YB(r,i,e,a,n,m);if(y!==$s)return y}u=i[r+8],u!==pc&&qT(n,i[Ae].data[r+8]===m)&&WT(s,r,i)?(a=g,r=uu(u),i=hu(u,i)):r=-1}}return o}function YB(t,i,e,n,o,s){const a=i[Ae],r=a.data[t+8],g=om(r,a,e,null==n?qr(r)&&q1:n!=a&&0!=(3&r.type),o&Tt.Host&&s===r);return null!==g?Zr(i,a,g,r):$s}function om(t,i,e,n,o){const s=t.providerIndexes,a=i.data,r=1048575&s,u=t.directiveStart,g=s>>20,S=o?r+g:t.directiveEnd;for(let x=n?r:r+g;x<S;x++){const R=a[x];if(x<u&&e===R||x>=u&&R.type===e)return x}if(o){const x=a[u];if(x&&fs(x)&&x.type===e)return u}return null}function Zr(t,i,e,n){let o=t[e];const s=i.data;if(function UB(t){return t instanceof du}(o)){const a=o;a.resolving&&function b4(t,i){const e=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new ee(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Mn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ht(t)}(s[e]));const r=tm(a.canSeeViewProviders);a.resolving=!0;const m=a.injectImpl?_o(a.injectImpl):null;OT(t,n,Tt.Default);try{o=t[e]=a.factory(void 0,s,t,n),i.firstCreatePass&&e>=n.directiveStart&&function VB(t,i,e){const{ngOnChanges:n,ngOnInit:o,ngDoCheck:s}=i.type.prototype;if(n){const a=pT(i);(e.preOrderHooks??=[]).push(t,a),(e.preOrderCheckHooks??=[]).push(t,a)}o&&(e.preOrderHooks??=[]).push(0-t,o),s&&((e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s))}(e,s[e],i)}finally{null!==m&&_o(m),tm(r),a.resolving=!1,PT()}}return o}function WT(t,i,e){return!!(e[i+(t>>HT)]&1<<t)}function qT(t,i){return!(t&Tt.Self||t&Tt.Host&&i)}class lo{constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return GT(this._tNode,this._lView,i,$p(n),e)}}function KB(){return new lo(Hi(),ae())}function Qe(t){return _a(()=>{const i=t.prototype.constructor,e=i[ga]||Z1(i),n=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){const s=o[ga]||Z1(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Z1(t){return p1(t)?()=>{const i=Z1(dt(t));return i&&i()}:Yr(t)}function YT(t){const i=t[Ae],e=i.type;return 2===e?i.declTNode:1===e?t[Qi]:null}function Si(t){return function qB(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const e=t.attrs;if(e){const n=e.length;let o=0;for(;o<n;){const s=e[o];if(BS(s))break;if(0===s)o+=2;else if("number"==typeof s)for(o++;o<n&&"string"==typeof e[o];)o++;else{if(s===i)return e[o+1];o+=2}}}return null}(Hi(),t)}const fc="__parameters__";function gc(t,i,e){return _a(()=>{const n=function K1(t){return function(...e){if(t){const n=t(...e);for(const o in n)this[o]=n[o]}}}(i);function o(...s){if(this instanceof o)return n.apply(this,s),this;const a=new o(...s);return r.annotation=a,r;function r(u,m,g){const y=u.hasOwnProperty(fc)?u[fc]:Object.defineProperty(u,fc,{value:[]})[fc];for(;y.length<=g;)y.push(null);return(y[g]=y[g]||[]).push(a),u}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function vc(t,i){t.forEach(e=>Array.isArray(e)?vc(e,i):i(e))}function ZT(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function sm(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function fu(t,i){const e=[];for(let n=0;n<t;n++)e.push(i);return e}function ko(t,i,e){let n=yc(t,i);return n>=0?t[1|n]=e:(n=~n,function a5(t,i,e,n){let o=t.length;if(o==i)t.push(e,n);else if(1===o)t.push(n,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>i;)t[o]=t[o-2],o--;t[i]=e,t[i+1]=n}}(t,n,i,e)),n}function X1(t,i){const e=yc(t,i);if(e>=0)return t[1|e]}function yc(t,i){return function KT(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){const s=n+(o-n>>1),a=t[s<<e];if(i===a)return s<<e;a>i?o=s:n=s+1}return~(o<<e)}(t,i,1)}const Ko=Xd(gc("Optional"),8),js=Xd(gc("SkipSelf"),4);function um(t){return 128==(128&t.flags)}var or=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(or||{});const x5=/^>|^->|<!--|-->|--!>|<!-$/g,E5=/(<|>)/g,I5="\u200b$1\u200b";const ib=new Map;let O5=0;const sb="__ngContext__";function Zi(t,i){go(i)?(t[sb]=i[ou],function k5(t){ib.set(t[ou],t)}(i)):t[sb]=i}let ab;function rb(t,i){return ab(t,i)}function bu(t){const i=t[Yn];return so(i)?i[Yn]:i}function b2(t){return y2(t[nu])}function v2(t){return y2(t[ms])}function y2(t){for(;null!==t&&!so(t);)t=t[ms];return t}function Sc(t,i,e,n,o){if(null!=n){let s,a=!1;so(n)?s=n:go(n)&&(a=!0,n=n[si]);const r=jn(n);0===t&&null!==e?null==o?T2(i,e,r):Kr(i,e,r,o||null,!0):1===t&&null!==e?Kr(i,e,r,o||null,!0):2===t?function bm(t,i,e){const n=_m(t,i);n&&function K5(t,i,e,n){t.removeChild(i,e,n)}(t,n,i,e)}(i,r,a):3===t&&i.destroyNode(r),null!=s&&function eV(t,i,e,n,o){const s=e[Vs];s!==jn(e)&&Sc(i,t,n,s,o);for(let r=Bi;r<e.length;r++){const u=e[r];yu(u[Ae],u,t,i,n,s)}}(i,t,s,e,o)}}function lb(t,i){return t.createComment(function d2(t){return t.replace(x5,i=>i.replace(E5,I5))}(i))}function mm(t,i,e){return t.createElement(i,e)}function w2(t,i){const e=t[lc],n=e.indexOf(i);yT(i),e.splice(n,1)}function fm(t,i){if(t.length<=Bi)return;const e=Bi+i,n=t[e];if(n){const o=n[iu];null!==o&&o!==t&&w2(o,n),i>0&&(t[e-1][ms]=n[ms]);const s=sm(t,Bi+i);!function j5(t,i){yu(t,i,i[pt],2,null,null),i[si]=null,i[Qi]=null}(n[Ae],n);const a=s[Bs];null!==a&&a.detachView(s[Ae]),n[Yn]=null,n[ms]=null,n[_t]&=-129}return n}function cb(t,i){if(!(256&i[_t])){const e=i[pt];i[su]&&sT(i[su]),i[au]&&sT(i[au]),e.destroyNode&&yu(t,i,e,3,null,null),function W5(t){let i=t[nu];if(!i)return db(t[Ae],t);for(;i;){let e=null;if(go(i))e=i[nu];else{const n=i[Bi];n&&(e=n)}if(!e){for(;i&&!i[ms]&&i!==t;)go(i)&&db(i[Ae],i),i=i[Yn];null===i&&(i=t),go(i)&&db(i[Ae],i),e=i&&i[ms]}i=e}}(i)}}function db(t,i){if(!(256&i[_t])){i[_t]&=-129,i[_t]|=256,function Z5(t,i){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let n=0;n<e.length;n+=2){const o=i[e[n]];if(!(o instanceof du)){const s=e[n+1];if(Array.isArray(s))for(let a=0;a<s.length;a+=2){const r=o[s[a]],u=s[a+1];Hs(4,r,u);try{u.call(r)}finally{Hs(5,r,u)}}else{Hs(4,o,s);try{s.call(o)}finally{Hs(5,o,s)}}}}}(t,i),function Q5(t,i){const e=t.cleanup,n=i[oc];if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const a=e[s+3];a>=0?n[a]():n[-a].unsubscribe(),s+=2}else e[s].call(n[e[s+1]]);null!==n&&(i[oc]=null);const o=i[er];if(null!==o){i[er]=null;for(let s=0;s<o.length;s++)(0,o[s])()}}(t,i),1===i[Ae].type&&i[pt].destroy();const e=i[iu];if(null!==e&&so(i[Yn])){e!==i[Yn]&&w2(e,i);const n=i[Bs];null!==n&&n.detachView(t)}!function A5(t){ib.delete(t[ou])}(i)}}function ub(t,i,e){return function S2(t,i,e){let n=i;for(;null!==n&&40&n.type;)n=(i=n).parent;if(null===n)return e[si];{const{componentOffset:o}=n;if(o>-1){const{encapsulation:s}=t.data[n.directiveStart+o];if(s===Yo.None||s===Yo.Emulated)return null}return bo(n,e)}}(t,i.parent,e)}function Kr(t,i,e,n,o){t.insertBefore(i,e,n,o)}function T2(t,i,e){t.appendChild(i,e)}function D2(t,i,e,n,o){null!==n?Kr(t,i,e,n,o):T2(t,i,e)}function _m(t,i){return t.parentNode(i)}function M2(t,i,e){return E2(t,i,e)}let hb,vm,_b,ym,E2=function x2(t,i,e){return 40&t.type?bo(t,e):null};function gm(t,i,e,n){const o=ub(t,n,i),s=i[pt],r=M2(n.parent||i[Qi],n,i);if(null!=o)if(Array.isArray(e))for(let u=0;u<e.length;u++)D2(s,o,e[u],r,!1);else D2(s,o,e,r,!1);void 0!==hb&&hb(s,n,i,e,o)}function vu(t,i){if(null!==i){const e=i.type;if(3&e)return bo(i,t);if(4&e)return pb(-1,t[i.index]);if(8&e){const n=i.child;if(null!==n)return vu(t,n);{const o=t[i.index];return so(o)?pb(-1,o):jn(o)}}if(32&e)return rb(i,t)()||jn(t[i.index]);{const n=O2(t,i);return null!==n?Array.isArray(n)?n[0]:vu(bu(t[hi]),n):vu(t,i.next)}}return null}function O2(t,i){return null!==i?t[hi][Qi].projection[i.projection]:null}function pb(t,i){const e=Bi+t+1;if(e<i.length){const n=i[e],o=n[Ae].firstChild;if(null!==o)return vu(n,o)}return i[Vs]}function mb(t,i,e,n,o,s,a){for(;null!=e;){const r=n[e.index],u=e.type;if(a&&0===i&&(r&&Zi(jn(r),n),e.flags|=2),32!=(32&e.flags))if(8&u)mb(t,i,e.child,n,o,s,!1),Sc(i,t,o,r,s);else if(32&u){const m=rb(e,n);let g;for(;g=m();)Sc(i,t,o,g,s);Sc(i,t,o,r,s)}else 16&u?k2(t,i,n,e,o,s):Sc(i,t,o,r,s);e=a?e.projectionNext:e.next}}function yu(t,i,e,n,o,s){mb(e,n,t.firstChild,i,o,s,!1)}function k2(t,i,e,n,o,s){const a=e[hi],u=a[Qi].projection[n.projection];if(Array.isArray(u))for(let m=0;m<u.length;m++)Sc(i,t,o,u[m],s);else{let m=u;const g=a[Yn];um(n)&&(m.flags|=128),mb(t,i,m,g,o,s,!0)}}function A2(t,i,e){""===e?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function P2(t,i,e){const{mergedAttrs:n,classes:o,styles:s}=e;null!==n&&M1(t,i,n),null!==o&&A2(t,i,o),null!==s&&function nV(t,i,e){t.setAttribute(i,"style",e)}(t,i,s)}function Tc(t){return function fb(){if(void 0===vm&&(vm=null,$n.trustedTypes))try{vm=$n.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return vm}()?.createHTML(t)||t}function Dc(){if(void 0!==_b)return _b;if(typeof document<"u")return document;throw new ee(210,!1)}function gb(){if(void 0===ym&&(ym=null,$n.trustedTypes))try{ym=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ym}function N2(t){return gb()?.createHTML(t)||t}function L2(t){return gb()?.createScriptURL(t)||t}class Xr{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xS})`}}class rV extends Xr{getTypeName(){return"HTML"}}class lV extends Xr{getTypeName(){return"Style"}}class cV extends Xr{getTypeName(){return"Script"}}class dV extends Xr{getTypeName(){return"URL"}}class uV extends Xr{getTypeName(){return"ResourceURL"}}function Ao(t){return t instanceof Xr?t.changingThisBreaksApplicationSecurity:t}function Gs(t,i){const e=function hV(t){return t instanceof Xr&&t.getTypeName()||null}(t);if(null!=e&&e!==i){if("ResourceURL"===e&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${xS})`)}return e===i}class bV{constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i="<body><remove></remove>"+i;try{const e=(new window.DOMParser).parseFromString(Tc(i),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(i):(e.removeChild(e.firstChild),e)}catch{return null}}}class vV{constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){const e=this.inertDocument.createElement("template");return e.innerHTML=Tc(i),e}}const CV=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cm(t){return(t=String(t)).match(CV)?t:"unsafe:"+t}function Ca(t){const i={};for(const e of t.split(","))i[e]=!0;return i}function Cu(...t){const i={};for(const e of t)for(const n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}const V2=Ca("area,br,col,hr,img,wbr"),H2=Ca("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),U2=Ca("rp,rt"),bb=Cu(V2,Cu(H2,Ca("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")),Cu(U2,Ca("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")),Cu(U2,H2)),vb=Ca("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$2=Cu(vb,Ca("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"),Ca("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")),wV=Ca("script,style,template");class SV{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(i){let e=i.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(i){const e=i.nodeName.toLowerCase();if(!bb.hasOwnProperty(e))return this.sanitizedSomething=!0,!wV.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=i.attributes;for(let o=0;o<n.length;o++){const s=n.item(o),a=s.name,r=a.toLowerCase();if(!$2.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let u=s.value;vb[r]&&(u=Cm(u)),this.buf.push(" ",a,'="',j2(u),'"')}return this.buf.push(">"),!0}endElement(i){const e=i.nodeName.toLowerCase();bb.hasOwnProperty(e)&&!V2.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(i){this.buf.push(j2(i))}checkClobberedElement(i,e){if(e&&(i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${i.outerHTML}`);return e}}const TV=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DV=/([^\#-~ |!])/g;function j2(t){return t.replace(/&/g,"&amp;").replace(TV,function(i){return"&#"+(1024*(i.charCodeAt(0)-55296)+(i.charCodeAt(1)-56320)+65536)+";"}).replace(DV,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let wm;function G2(t,i){let e=null;try{wm=wm||function B2(t){const i=new vV(t);return function yV(){try{return!!(new window.DOMParser).parseFromString(Tc(""),"text/html")}catch{return!1}}()?new bV(i):i}(t);let n=i?String(i):"";e=wm.getInertBodyElement(n);let o=5,s=n;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,n=s,s=e.innerHTML,e=wm.getInertBodyElement(n)}while(n!==s);return Tc((new SV).sanitizeChildren(yb(e)||e))}finally{if(e){const n=yb(e)||e;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function yb(t){return"content"in t&&function MV(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ui=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}(Ui||{});function z2(t){const i=wu();return i?N2(i.sanitize(Ui.HTML,t)||""):Gs(t,"HTML")?N2(Ao(t)):G2(Dc(),ht(t))}function kt(t){const i=wu();return i?i.sanitize(Ui.URL,t)||"":Gs(t,"URL")?Ao(t):Cm(ht(t))}function W2(t){const i=wu();if(i)return L2(i.sanitize(Ui.RESOURCE_URL,t)||"");if(Gs(t,"ResourceURL"))return L2(Ao(t));throw new ee(904,!1)}function wu(){const t=ae();return t&&t[sc].sanitizer}const Su=new Y("ENVIRONMENT_INITIALIZER"),Y2=new Y("INJECTOR",-1),Q2=new Y("INJECTOR_DEF_TYPES");class Cb{get(i,e=Kd){if(e===Kd){const n=new Error(`NullInjectorError: No provider for ${Ei(i)}!`);throw n.name="NullInjectorError",n}return e}}function wb(t){return{\u0275providers:t}}function Z2(...t){return{\u0275providers:K2(0,t),\u0275fromNgModule:!0}}function K2(t,...i){const e=[],n=new Set;let o;const s=a=>{e.push(a)};return vc(i,a=>{const r=a;Sm(r,s,[],n)&&(o||=[],o.push(r))}),void 0!==o&&X2(o,s),e}function X2(t,i){for(let e=0;e<t.length;e++){const{ngModule:n,providers:o}=t[e];Sb(o,s=>{i(s,n)})}}function Sm(t,i,e,n){if(!(t=dt(t)))return!1;let o=null,s=Vp(t);const a=!s&&tn(t);if(s||a){if(a&&!a.standalone)return!1;o=t}else{const u=t.ngModule;if(s=Vp(u),!s)return!1;o=u}const r=n.has(o);if(a){if(r)return!1;if(n.add(o),a.dependencies){const u="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const m of u)Sm(m,i,e,n)}}else{if(!s)return!1;{if(null!=s.imports&&!r){let m;n.add(o);try{vc(s.imports,g=>{Sm(g,i,e,n)&&(m||=[],m.push(g))})}finally{}void 0!==m&&X2(m,i)}if(!r){const m=Yr(o)||(()=>new o);i({provide:o,useFactory:m,deps:fn},o),i({provide:Q2,useValue:o,multi:!0},o),i({provide:Su,useValue:()=>H(o),multi:!0},o)}const u=s.providers;if(null!=u&&!r){const m=t;Sb(u,g=>{i(g,m)})}}}return o!==t&&void 0!==t.providers}function Sb(t,i){for(let e of t)m1(e)&&(e=e.\u0275providers),Array.isArray(e)?Sb(e,i):i(e)}const kV=Rn({provide:String,useValue:Rn});function Tb(t){return null!==t&&"object"==typeof t&&kV in t}function Jr(t){return"function"==typeof t}const Db=new Y("Set Injector scope."),Tm={},PV={};let Mb;function Dm(){return void 0===Mb&&(Mb=new Cb),Mb}class co{}class Mc extends co{get destroyed(){return this._destroyed}constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Eb(i,a=>this.processProvider(a)),this.records.set(Y2,xc(void 0,this)),o.has("environment")&&this.records.set(co,xc(void 0,this));const s=this.records.get(Db);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Q2.multi,fn,Tt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of i)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const e=Xa(this),n=_o(void 0);try{return i()}finally{Xa(e),_o(n)}}get(i,e=Kd,n=Tt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(FS))return i[FS](this);n=$p(n);const s=Xa(this),a=_o(void 0);try{if(!(n&Tt.SkipSelf)){let u=this.records.get(i);if(void 0===u){const m=function VV(t){return"function"==typeof t||"object"==typeof t&&t instanceof Y}(i)&&Bp(i);u=m&&this.injectableDefInScope(m)?xc(xb(i),Tm):null,this.records.set(i,u)}if(null!=u)return this.hydrate(i,u)}return(n&Tt.Self?Dm():this.parent).get(i,e=n&Tt.Optional&&e===Kd?null:e)}catch(r){if("NullInjectorError"===r.name){if((r[Up]=r[Up]||[]).unshift(Ei(i)),s)throw r;return function A4(t,i,e,n){const o=t[Up];throw i[AS]&&o.unshift(i[AS]),t.message=function P4(t,i,e,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Ei(i);if(Array.isArray(i))o=i.map(Ei).join(" -> ");else if("object"==typeof i){let s=[];for(let a in i)if(i.hasOwnProperty(a)){let r=i[a];s.push(a+":"+("string"==typeof r?JSON.stringify(r):Ei(r)))}o=`{${s.join(", ")}}`}return`${e}${n?"("+n+")":""}[${o}]: ${t.replace(E4,"\n  ")}`}("\n"+t.message,o,e,n),t.ngTokenPath=o,t[Up]=null,t}(r,i,"R3InjectorError",this.source)}throw r}finally{_o(a),Xa(s)}}resolveInjectorInitializers(){const i=Xa(this),e=_o(void 0);try{const o=this.get(Su.multi,fn,Tt.Self);for(const s of o)s()}finally{Xa(i),_o(e)}}toString(){const i=[],e=this.records;for(const n of e.keys())i.push(Ei(n));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ee(205,!1)}processProvider(i){let e=Jr(i=dt(i))?i:dt(i&&i.provide);const n=function FV(t){return Tb(t)?xc(void 0,t.useValue):xc(tD(t),Tm)}(i);if(Jr(i)||!0!==i.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=xc(void 0,Tm,!0),o.factory=()=>S1(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e){return e.value===Tm&&(e.value=PV,e.value=e.factory()),"object"==typeof e.value&&e.value&&function BV(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(i){if(!i.providedIn)return!1;const e=dt(i.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){const e=this._onDestroyHooks.indexOf(i);-1!==e&&this._onDestroyHooks.splice(e,1)}}function xb(t){const i=Bp(t),e=null!==i?i.factory:Yr(t);if(null!==e)return e;if(t instanceof Y)throw new ee(204,!1);if(t instanceof Function)return function NV(t){const i=t.length;if(i>0)throw fu(i,"?"),new ee(204,!1);const e=function T4(t){return t&&(t[Hp]||t[IS])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new ee(204,!1)}function tD(t,i,e){let n;if(Jr(t)){const o=dt(t);return Yr(o)||xb(o)}if(Tb(t))n=()=>dt(t.useValue);else if(function eD(t){return!(!t||!t.useFactory)}(t))n=()=>t.useFactory(...S1(t.deps||[]));else if(function J2(t){return!(!t||!t.useExisting)}(t))n=()=>H(dt(t.useExisting));else{const o=dt(t&&(t.useClass||t.provide));if(!function LV(t){return!!t.deps}(t))return Yr(o)||xb(o);n=()=>new o(...S1(t.deps))}return n}function xc(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Eb(t,i){for(const e of t)Array.isArray(e)?Eb(e,i):e&&m1(e)?Eb(e.\u0275providers,i):i(e)}const Tu=new Y("AppId",{providedIn:"root",factory:()=>HV}),HV="ng",nD=new Y("Platform Initializer"),wa=new Y("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Fn=new Y("AnimationModuleType"),Ib=new Y("CSP nonce",{providedIn:"root",factory:()=>Dc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let iD=(t,i,e)=>null;function Lb(t,i,e=!1){return iD(t,i,e)}class ZV{}class aD{}class XV{resolveComponentFactory(i){throw function KV(t){const i=Error(`No component factory found for ${Ei(t)}.`);return i.ngComponent=t,i}(i)}}let el=(()=>{class t{static#e=this.NULL=new XV}return t})();function JV(){return Oc(Hi(),ae())}function Oc(t,i){return new oe(bo(t,i))}let oe=(()=>{class t{constructor(e){this.nativeElement=e}static#e=this.__NG_ELEMENT_ID__=JV}return t})();function e8(t){return t instanceof oe?t.nativeElement:t}class Rc{}let Co=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function t8(){const t=ae(),e=Ro(Hi().index,t);return(go(e)?e:t)[pt]}()}return t})(),n8=(()=>{class t{static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:()=>null})}return t})();class tl{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const i8=new tl("16.2.12"),Hb={};function uD(t,i=null,e=null,n){const o=hD(t,i,e,n);return o.resolveInjectorInitializers(),o}function hD(t,i=null,e=null,n,o=new Set){const s=[e||fn,Z2(t)];return n=n||("object"==typeof t?void 0:Ei(t)),new Mc(s,i||Dm(),n||null,o)}let _n=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=Kd;static#t=this.NULL=new Cb;static create(e,n){if(Array.isArray(e))return uD({name:""},n,e,"");{const o=e.name??"";return uD({name:o},e.parent,e.providers,o)}}static#n=this.\u0275prov=K({token:t,providedIn:"any",factory:()=>H(Y2)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Ub(t){return t.ngOriginalError}class Po{constructor(){this._console=console}handleError(i){const e=this._findOriginalError(i);this._console.error("ERROR",i),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(i){let e=i&&Ub(i);for(;e&&Ub(e);)e=Ub(e);return e||null}}function $b(t){return i=>{setTimeout(t,void 0,i)}}const W=class u8 extends re{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,e,n){let o=i,s=e||(()=>null),a=n;if(i&&"object"==typeof i){const u=i;o=u.next?.bind(u),s=u.error?.bind(u),a=u.complete?.bind(u)}this.__isAsync&&(s=$b(s),o&&(o=$b(o)),a&&(a=$b(a)));const r=super.subscribe({next:o,error:s,complete:a});return i instanceof rt&&i.add(r),r}};function mD(...t){}class be{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new W(!1),this.onMicrotaskEmpty=new W(!1),this.onStable=new W(!1),this.onError=new W(!1),typeof Zone>"u")throw new ee(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&e,o.shouldCoalesceRunChangeDetection=n,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function h8(){const t="function"==typeof $n.requestAnimationFrame;let i=$n[t?"requestAnimationFrame":"setTimeout"],e=$n[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&e){const n=i[Zone.__symbol__("OriginalDelegate")];n&&(i=n);const o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function f8(t){const i=()=>{!function m8(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($n,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Gb(t),t.isCheckStableRunning=!0,jb(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Gb(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,o,s,a,r)=>{if(function g8(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(r))return e.invokeTask(o,s,a,r);try{return fD(t),e.invokeTask(o,s,a,r)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&i(),_D(t)}},onInvoke:(e,n,o,s,a,r,u)=>{try{return fD(t),e.invoke(o,s,a,r,u)}finally{t.shouldCoalesceRunChangeDetection&&i(),_D(t)}},onHasTask:(e,n,o,s)=>{e.hasTask(o,s),n===o&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Gb(t),jb(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,o,s)=>(e.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!be.isInAngularZone())throw new ee(909,!1)}static assertNotInAngularZone(){if(be.isInAngularZone())throw new ee(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+o,i,p8,mD,mD);try{return s.runTask(a,e,n)}finally{s.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}}const p8={};function jb(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 Gb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function fD(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function _D(t){t._nesting--,jb(t)}const gD=new Y("",{providedIn:"root",factory:bD});function bD(){const t=he(be);let i=!0;return un(new dn(o=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(i),o.complete()})}),new dn(o=>{let s;t.runOutsideAngular(()=>{s=t.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,o.next(!0))})})});const a=t.onUnstable.subscribe(()=>{be.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{s.unsubscribe(),a.unsubscribe()}}).pipe(Np()))}function vD(t){return t.ownerDocument.defaultView}function Sa(t){return t instanceof Function?t():t}let zb=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:()=>new t})}return t})();function xu(t){for(;t;){t[_t]|=64;const i=bu(t);if(I1(t)&&!i)return t;t=i}return null}const TD=new Y("",{providedIn:"root",factory:()=>!1});let Am=null;function ED(t,i){return t[i]??RD()}function ID(t,i){const e=RD();e.producerNode?.length&&(t[i]=Am,e.lView=t,Am=OD())}const M8={...JS,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{xu(t.lView)},lView:null};function OD(){return Object.create(M8)}function RD(){return Am??=OD(),Am}const mt={};function c(t){kD(nn(),ae(),ro()+t,!1)}function kD(t,i,e,n){if(!n)if(3==(3&i[_t])){const s=t.preOrderCheckHooks;null!==s&&Jp(i,s,e)}else{const s=t.preOrderHooks;null!==s&&em(i,s,0,e)}Qr(e)}function _(t,i=Tt.Default){const e=ae();return null===e?H(t,i):GT(Hi(),e,dt(t),i)}function zs(){throw new Error("invalid")}function Pm(t,i,e,n,o,s,a,r,u,m,g){const y=i.blueprint.slice();return y[si]=o,y[_t]=140|n,(null!==m||t&&2048&t[_t])&&(y[_t]|=2048),vT(y),y[Yn]=y[ac]=t,y[ui]=e,y[sc]=a||t&&t[sc],y[pt]=r||t&&t[pt],y[Ja]=u||t&&t[Ja]||null,y[Qi]=s,y[ou]=function R5(){return O5++}(),y[ba]=g,y[QS]=m,y[hi]=2==i.type?t[hi]:y,y}function Nc(t,i,e,n,o){let s=t.data[i];if(null===s)s=function Wb(t,i,e,n,o){const s=DT(),a=L1(),u=t.data[i]=function P8(t,i,e,n,o,s){let a=i?i.injectorIndex:-1,r=0;return uc()&&(r|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:r,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?s:s&&s.parent,e,i,n,o);return null===t.firstChild&&(t.firstChild=u),null!==s&&(a?null==s.child&&null!==u.parent&&(s.child=u):null===s.next&&(s.next=u,u.prev=s)),u}(t,i,e,n,o),function RB(){return ct.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=n,s.attrs=o;const a=function cu(){const t=ct.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();s.injectorIndex=null===a?-1:a.injectorIndex}return Us(s,!0),s}function Eu(t,i,e,n){if(0===e)return-1;const o=i.length;for(let s=0;s<e;s++)i.push(n),t.blueprint.push(n),t.data.push(null);return o}function AD(t,i,e,n,o){const s=ED(i,su),a=ro(),r=2&n;try{Qr(-1),r&&i.length>Rt&&kD(t,i,Rt,!1),Hs(r?2:0,o);const m=r?s:null,g=R1(m);try{null!==m&&(m.dirty=!1),e(n,o)}finally{k1(m,g)}}finally{r&&null===i[su]&&ID(i,su),Qr(a),Hs(r?3:1,o)}}function qb(t,i,e){if(E1(i)){const n=Qo(null);try{const s=i.directiveEnd;for(let a=i.directiveStart;a<s;a++){const r=t.data[a];r.contentQueries&&r.contentQueries(1,e[a],a)}}finally{Qo(n)}}}function Yb(t,i,e){TT()&&(function U8(t,i,e,n){const o=e.directiveStart,s=e.directiveEnd;qr(e)&&function Y8(t,i,e){const n=bo(i,t),o=PD(e);let a=16;e.signals?a=4096:e.onPush&&(a=64);const r=Nm(t,Pm(t,o,null,a,n,i,null,t[sc].rendererFactory.createRenderer(n,e),null,null,null));t[i.index]=r}(i,e,t.data[o+e.componentOffset]),t.firstCreatePass||nm(e,i),Zi(n,i);const a=e.initialInputs;for(let r=o;r<s;r++){const u=t.data[r],m=Zr(i,t,r,e);Zi(m,i),null!==a&&Q8(0,r-o,m,u,0,a),fs(u)&&(Ro(e.index,i)[ui]=Zr(i,t,r,e))}}(t,i,e,bo(e,i)),64==(64&e.flags)&&VD(t,i,e))}function Qb(t,i,e=bo){const n=i.localNames;if(null!==n){let o=i.index+1;for(let s=0;s<n.length;s+=2){const a=n[s+1],r=-1===a?e(i,t):t[a];t[o++]=r}}}function PD(t){const i=t.tView;return null===i||i.incompleteFirstPass?t.tView=Zb(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):i}function Zb(t,i,e,n,o,s,a,r,u,m,g){const y=Rt+n,S=y+o,x=function E8(t,i){const e=[];for(let n=0;n<i;n++)e.push(n<t?null:mt);return e}(y,S),R="function"==typeof m?m():m;return x[Ae]={type:t,blueprint:x,template:e,queries:null,viewQuery:r,declTNode:i,data:x.slice().fill(null,y),bindingStartIndex:y,expandoStartIndex:S,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 s?s():s,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:u,consts:R,incompleteFirstPass:!1,ssrId:g}}let ND=t=>null;function FD(t,i,e,n){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const s=t[o];null===n?LD(e,i,o,s):n.hasOwnProperty(o)&&LD(e,i,n[o],s)}return e}function LD(t,i,e,n){t.hasOwnProperty(e)?t[e].push(i,n):t[e]=[i,n]}function No(t,i,e,n,o,s,a,r){const u=bo(i,e);let g,m=i.inputs;!r&&null!=m&&(g=m[n])?(tv(t,e,g,n,o),qr(i)&&function L8(t,i){const e=Ro(i,t);16&e[_t]||(e[_t]|=64)}(e,i.index)):3&i.type&&(n=function F8(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(n),o=null!=a?a(o,i.value||"",n):o,s.setProperty(u,n,o))}function Kb(t,i,e,n){if(TT()){const o=null===n?null:{"":-1},s=function j8(t,i){const e=t.directiveRegistry;let n=null,o=null;if(e)for(let s=0;s<e.length;s++){const a=e[s];if(jS(i,a.selectors,!1))if(n||(n=[]),fs(a))if(null!==a.findHostDirectiveDefs){const r=[];o=o||new Map,a.findHostDirectiveDefs(a,r,o),n.unshift(...r,a),Xb(t,i,r.length)}else n.unshift(a),Xb(t,i,0);else o=o||new Map,a.findHostDirectiveDefs?.(a,n,o),n.push(a)}return null===n?null:[n,o]}(t,e);let a,r;null===s?a=r=null:[a,r]=s,null!==a&&BD(t,i,e,a,o,r),o&&function G8(t,i,e){if(i){const n=t.localNames=[];for(let o=0;o<i.length;o+=2){const s=e[i[o+1]];if(null==s)throw new ee(-301,!1);n.push(i[o],s)}}}(e,n,o)}e.mergedAttrs=eu(e.mergedAttrs,e.attrs)}function BD(t,i,e,n,o,s){for(let m=0;m<n.length;m++)Q1(nm(e,i),t,n[m].type);!function W8(t,i,e){t.flags|=1,t.directiveStart=i,t.directiveEnd=i+e,t.providerIndexes=i}(e,t.data.length,n.length);for(let m=0;m<n.length;m++){const g=n[m];g.providersResolver&&g.providersResolver(g)}let a=!1,r=!1,u=Eu(t,i,n.length,null);for(let m=0;m<n.length;m++){const g=n[m];e.mergedAttrs=eu(e.mergedAttrs,g.hostAttrs),q8(t,e,i,u,g),z8(u,g,o),null!==g.contentQueries&&(e.flags|=4),(null!==g.hostBindings||null!==g.hostAttrs||0!==g.hostVars)&&(e.flags|=64);const y=g.type.prototype;!a&&(y.ngOnChanges||y.ngOnInit||y.ngDoCheck)&&((t.preOrderHooks??=[]).push(e.index),a=!0),!r&&(y.ngOnChanges||y.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(e.index),r=!0),u++}!function N8(t,i,e){const o=i.directiveEnd,s=t.data,a=i.attrs,r=[];let u=null,m=null;for(let g=i.directiveStart;g<o;g++){const y=s[g],S=e?e.get(y):null,R=S?S.outputs:null;u=FD(y.inputs,g,u,S?S.inputs:null),m=FD(y.outputs,g,m,R);const k=null===u||null===a||$S(i)?null:Z8(u,g,a);r.push(k)}null!==u&&(u.hasOwnProperty("class")&&(i.flags|=8),u.hasOwnProperty("style")&&(i.flags|=16)),i.initialInputs=r,i.inputs=u,i.outputs=m}(t,e,s)}function VD(t,i,e){const n=e.directiveStart,o=e.directiveEnd,s=e.index,a=function AB(){return ct.lFrame.currentDirectiveIndex}();try{Qr(s);for(let r=n;r<o;r++){const u=t.data[r],m=i[r];V1(r),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&$8(u,m)}}finally{Qr(-1),V1(a)}}function $8(t,i){null!==t.hostBindings&&t.hostBindings(1,i)}function Xb(t,i,e){i.componentOffset=e,(t.components??=[]).push(i.index)}function z8(t,i,e){if(e){if(i.exportAs)for(let n=0;n<i.exportAs.length;n++)e[i.exportAs[n]]=t;fs(i)&&(e[""]=t)}}function q8(t,i,e,n,o){t.data[n]=o;const s=o.factory||(o.factory=Yr(o.type)),a=new du(s,fs(o),_);t.blueprint[n]=a,e[n]=a,function V8(t,i,e,n,o){const s=o.hostBindings;if(s){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const r=~i.index;(function H8(t){let i=t.length;for(;i>0;){const e=t[--i];if("number"==typeof e&&e<0)return e}return 0})(a)!=r&&a.push(r),a.push(e,n,s)}}(t,i,n,Eu(t,e,o.hostVars,mt),o)}function Ws(t,i,e,n,o,s){const a=bo(t,i);!function Jb(t,i,e,n,o,s,a){if(null==s)t.removeAttribute(i,o,e);else{const r=null==a?ht(s):a(s,n||"",o);t.setAttribute(i,o,r,e)}}(i[pt],a,s,t.value,e,n,o)}function Q8(t,i,e,n,o,s){const a=s[i];if(null!==a)for(let r=0;r<a.length;)HD(n,e,a[r++],a[r++],a[r++])}function HD(t,i,e,n,o){const s=Qo(null);try{const a=t.inputTransforms;null!==a&&a.hasOwnProperty(n)&&(o=a[n].call(i,o)),null!==t.setInput?t.setInput(i,o,e,n):i[n]=o}finally{Qo(s)}}function Z8(t,i,e){let n=null,o=0;for(;o<e.length;){const s=e[o];if(0!==s)if(5!==s){if("number"==typeof s)break;if(t.hasOwnProperty(s)){null===n&&(n=[]);const a=t[s];for(let r=0;r<a.length;r+=2)if(a[r]===i){n.push(s,a[r+1],e[o+1]);break}}o+=2}else o+=2;else o+=4}return n}function UD(t,i,e,n){return[t,!0,!1,i,null,0,n,e,null,null,null]}function $D(t,i){const e=t.contentQueries;if(null!==e)for(let n=0;n<e.length;n+=2){const s=e[n+1];if(-1!==s){const a=t.data[s];U1(e[n]),a.contentQueries(2,i[s],s)}}}function Nm(t,i){return t[nu]?t[YS][ms]=i:t[nu]=i,t[YS]=i,i}function ev(t,i,e){U1(0);const n=Qo(null);try{i(t,e)}finally{Qo(n)}}function jD(t){return t[oc]||(t[oc]=[])}function GD(t){return t.cleanup||(t.cleanup=[])}function zD(t,i,e){return(null===t||fs(t))&&(e=function F1(t){for(;Array.isArray(t);){if("object"==typeof t[x1])return t;t=t[si]}return null}(e[i.index])),e[pt]}function WD(t,i){const e=t[Ja],n=e?e.get(Po,null):null;n&&n.handleError(i)}function tv(t,i,e,n,o){for(let s=0;s<e.length;){const a=e[s++],r=e[s++];HD(t.data[a],i[a],n,r,o)}}function Ta(t,i,e){const n=Zp(i,t);!function C2(t,i,e){t.setValue(i,e)}(t[pt],n,e)}function K8(t,i){const e=Ro(i,t),n=e[Ae];!function X8(t,i){for(let e=i.length;e<t.blueprint.length;e++)i.push(t.blueprint[e])}(n,e);const o=e[si];null!==o&&null===e[ba]&&(e[ba]=Lb(o,e[Ja])),nv(n,e,e[ui])}function nv(t,i,e){$1(i);try{const n=t.viewQuery;null!==n&&ev(1,n,e);const o=t.template;null!==o&&AD(t,i,o,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&$D(t,i),t.staticViewQueries&&ev(2,t.viewQuery,e);const s=t.components;null!==s&&function J8(t,i){for(let e=0;e<i.length;e++)K8(t,i[e])}(i,s)}catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{i[_t]&=-5,j1()}}let qD=(()=>{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,n,o){const s=typeof Zone>"u"?null:Zone.current,a=function cB(t,i,e){const n=Object.create(dB);e&&(n.consumerAllowSignalWrites=!0),n.fn=t,n.schedule=i;const o=a=>{n.cleanupFn=a};return n.ref={notify:()=>iT(n),run:()=>{if(n.dirty=!1,n.hasRun&&!oT(n))return;n.hasRun=!0;const a=R1(n);try{n.cleanupFn(),n.cleanupFn=hT,n.fn(o)}finally{k1(n,a)}},cleanup:()=>n.cleanupFn()},n.ref}(e,m=>{this.all.has(m)&&this.queue.set(m,s)},o);let r;this.all.add(a),a.notify();const u=()=>{a.cleanup(),r?.(),this.all.delete(a),this.queue.delete(a)};return r=n?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[e,n]of this.queue)this.queue.delete(e),n?n.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:()=>new t})}return t})();function Fm(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,s=0;if(null!==i)for(let a=0;a<i.length;a++){const r=i[a];"number"==typeof r?s=r:1==s?o=h1(o,r):2==s&&(n=h1(n,r+": "+i[++a]+";"))}e?t.styles=n:t.stylesWithoutHost=n,e?t.classes=o:t.classesWithoutHost=o}function Iu(t,i,e,n,o=!1){for(;null!==e;){const s=i[e.index];null!==s&&n.push(jn(s)),so(s)&&YD(s,n);const a=e.type;if(8&a)Iu(t,i,e.child,n);else if(32&a){const r=rb(e,i);let u;for(;u=r();)n.push(u)}else if(16&a){const r=O2(i,e);if(Array.isArray(r))n.push(...r);else{const u=bu(i[hi]);Iu(u[Ae],u,r,n,!0)}}e=o?e.projectionNext:e.next}return n}function YD(t,i){for(let e=Bi;e<t.length;e++){const n=t[e],o=n[Ae].firstChild;null!==o&&Iu(n[Ae],n,o,i)}t[Vs]!==t[si]&&i.push(t[Vs])}function Lm(t,i,e,n=!0){const o=i[sc],s=o.rendererFactory,a=o.afterRenderEventManager;s.begin?.(),a?.begin();try{QD(t,i,t.template,e)}catch(u){throw n&&WD(i,u),u}finally{s.end?.(),o.effectManager?.flush(),a?.end()}}function QD(t,i,e,n){const o=i[_t];if(256!=(256&o)){i[sc].effectManager?.flush(),$1(i);try{vT(i),function xT(t){return ct.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&AD(t,i,e,2,n);const a=3==(3&o);if(a){const m=t.preOrderCheckHooks;null!==m&&Jp(i,m,null)}else{const m=t.preOrderHooks;null!==m&&em(i,m,0,null),G1(i,0)}if(function n6(t){for(let i=b2(t);null!==i;i=v2(i)){if(!i[ZS])continue;const e=i[lc];for(let n=0;n<e.length;n++){yB(e[n])}}}(i),ZD(i,2),null!==t.contentQueries&&$D(t,i),a){const m=t.contentCheckHooks;null!==m&&Jp(i,m)}else{const m=t.contentHooks;null!==m&&em(i,m,1),G1(i,1)}!function x8(t,i){const e=t.hostBindingOpCodes;if(null===e)return;const n=ED(i,au);try{for(let o=0;o<e.length;o++){const s=e[o];if(s<0)Qr(~s);else{const a=s,r=e[++o],u=e[++o];kB(r,a),n.dirty=!1;const m=R1(n);try{u(2,i[a])}finally{k1(n,m)}}}}finally{null===i[au]&&ID(i,au),Qr(-1)}}(t,i);const r=t.components;null!==r&&XD(i,r,0);const u=t.viewQuery;if(null!==u&&ev(2,u,n),a){const m=t.viewCheckHooks;null!==m&&Jp(i,m)}else{const m=t.viewHooks;null!==m&&em(i,m,2),G1(i,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i[_t]&=-73,yT(i)}finally{j1()}}}function ZD(t,i){for(let e=b2(t);null!==e;e=v2(e))for(let n=Bi;n<e.length;n++)KD(e[n],i)}function i6(t,i,e){KD(Ro(i,t),e)}function KD(t,i){if(!function bB(t){return 128==(128&t[_t])}(t))return;const e=t[Ae],n=t[_t];if(80&n&&0===i||1024&n||2===i)QD(e,t,e.template,t[ui]);else if(t[tu]>0){ZD(t,1);const o=e.components;null!==o&&XD(t,o,1)}}function XD(t,i,e){for(let n=0;n<i.length;n++)i6(t,i[n],e)}class Ou{get rootNodes(){const i=this._lView,e=i[Ae];return Iu(e,i,e.firstChild,[])}constructor(i,e){this._lView=i,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ui]}set context(i){this._lView[ui]=i}get destroyed(){return 256==(256&this._lView[_t])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const i=this._lView[Yn];if(so(i)){const e=i[8],n=e?e.indexOf(this):-1;n>-1&&(fm(i,n),sm(e,n))}this._attachedToViewContainer=!1}cb(this._lView[Ae],this._lView)}onDestroy(i){!function wT(t,i){if(256==(256&t[_t]))throw new ee(911,!1);null===t[er]&&(t[er]=[]),t[er].push(i)}(this._lView,i)}markForCheck(){xu(this._cdRefInjectingView||this._lView)}detach(){this._lView[_t]&=-129}reattach(){this._lView[_t]|=128}detectChanges(){Lm(this._lView[Ae],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ee(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function z5(t,i){yu(t,i,i[pt],2,null,null)}(this._lView[Ae],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new ee(902,!1);this._appRef=i}}class o6 extends Ou{constructor(i){super(i),this._view=i}detectChanges(){const i=this._view;Lm(i[Ae],i,i[ui],!1)}checkNoChanges(){}get context(){return null}}class JD extends el{constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){const e=tn(i);return new Ru(e,this.ngModule)}}function eM(t){const i=[];for(let e in t)t.hasOwnProperty(e)&&i.push({propName:t[e],templateName:e});return i}class a6{constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){n=$p(n);const o=this.injector.get(i,Hb,n);return o!==Hb||e===Hb?o:this.parentInjector.get(i,e,n)}}class Ru extends aD{get inputs(){const i=this.componentDef,e=i.inputTransforms,n=eM(i.inputs);if(null!==e)for(const o of n)e.hasOwnProperty(o.propName)&&(o.transform=e[o.propName]);return n}get outputs(){return eM(this.componentDef.outputs)}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=function G4(t){return t.map(j4).join(",")}(i.selectors),this.ngContentSelectors=i.ngContentSelectors?i.ngContentSelectors:[],this.isBoundToModule=!!e}create(i,e,n,o){let s=(o=o||this.ngModule)instanceof co?o:o?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const a=s?new a6(i,s):i,r=a.get(Rc,null);if(null===r)throw new ee(407,!1);const y={rendererFactory:r,sanitizer:a.get(n8,null),effectManager:a.get(qD,null),afterRenderEventManager:a.get(zb,null)},S=r.createRenderer(null,this.componentDef),x=this.componentDef.selectors[0][0]||"div",R=n?function I8(t,i,e,n){const s=n.get(TD,!1)||e===Yo.ShadowDom,a=t.selectRootElement(i,s);return function O8(t){ND(t)}(a),a}(S,n,this.componentDef.encapsulation,a):mm(S,x,function s6(t){const i=t.toLowerCase();return"svg"===i?_T:"math"===i?"math":null}(x)),q=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let j=null;null!==R&&(j=Lb(R,a,!0));const ie=Zb(0,null,null,1,0,null,null,null,null,null,null),se=Pm(null,ie,null,q,null,null,y,S,a,null,j);let De,Ge;$1(se);try{const nt=this.componentDef;let ft,bn=null;nt.findHostDirectiveDefs?(ft=[],bn=new Map,nt.findHostDirectiveDefs(nt,ft,bn),ft.push(nt)):ft=[nt];const Dn=function l6(t,i){const e=t[Ae],n=Rt;return t[n]=i,Nc(e,n,2,"#host",null)}(se,R),bi=function c6(t,i,e,n,o,s,a){const r=o[Ae];!function d6(t,i,e,n){for(const o of t)i.mergedAttrs=eu(i.mergedAttrs,o.hostAttrs);null!==i.mergedAttrs&&(Fm(i,i.mergedAttrs,!0),null!==e&&P2(n,e,i))}(n,t,i,a);let u=null;null!==i&&(u=Lb(i,o[Ja]));const m=s.rendererFactory.createRenderer(i,e);let g=16;e.signals?g=4096:e.onPush&&(g=64);const y=Pm(o,PD(e),null,g,o[t.index],t,s,m,null,null,u);return r.firstCreatePass&&Xb(r,t,n.length-1),Nm(o,y),o[t.index]=y}(Dn,R,nt,ft,se,y,S);Ge=bT(ie,Rt),R&&function h6(t,i,e,n){if(n)M1(t,e,["ng-version",i8.full]);else{const{attrs:o,classes:s}=function z4(t){const i=[],e=[];let n=1,o=2;for(;n<t.length;){let s=t[n];if("string"==typeof s)2===o?""!==s&&i.push(s,t[++n]):8===o&&e.push(s);else{if(!ps(o))break;o=s}n++}return{attrs:i,classes:e}}(i.selectors[0]);o&&M1(t,e,o),s&&s.length>0&&A2(t,e,s.join(" "))}}(S,nt,R,n),void 0!==e&&function p6(t,i,e){const n=t.projection=[];for(let o=0;o<i.length;o++){const s=e[o];n.push(null!=s?Array.from(s):null)}}(Ge,this.ngContentSelectors,e),De=function u6(t,i,e,n,o,s){const a=Hi(),r=o[Ae],u=bo(a,o);BD(r,o,a,e,null,n);for(let g=0;g<e.length;g++)Zi(Zr(o,r,a.directiveStart+g,a),o);VD(r,o,a),u&&Zi(u,o);const m=Zr(o,r,a.directiveStart+a.componentOffset,a);if(t[ui]=o[ui]=m,null!==s)for(const g of s)g(m,i);return qb(r,a,t),m}(bi,nt,ft,bn,se,[m6]),nv(ie,se,null)}finally{j1()}return new r6(this.componentType,De,Oc(Ge,se),se,Ge)}}class r6 extends ZV{constructor(i,e,n,o,s){super(),this.location=n,this._rootLView=o,this._tNode=s,this.previousInputValues=null,this.instance=e,this.hostView=this.changeDetectorRef=new o6(o),this.componentType=i}setInput(i,e){const n=this._tNode.inputs;let o;if(null!==n&&(o=n[i])){if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;const s=this._rootLView;tv(s[Ae],s,o,i,e),this.previousInputValues.set(i,e),xu(Ro(this._tNode.index,s))}}get injector(){return new lo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}}function m6(){const t=Hi();Xp(ae()[Ae],t)}function te(t){let i=function tM(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const n=[t];for(;i;){let o;if(fs(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new ee(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);const a=t;a.inputs=Bm(t.inputs),a.inputTransforms=Bm(t.inputTransforms),a.declaredInputs=Bm(t.declaredInputs),a.outputs=Bm(t.outputs);const r=o.hostBindings;r&&b6(t,r);const u=o.viewQuery,m=o.contentQueries;if(u&&_6(t,u),m&&g6(t,m),Fp(t.inputs,o.inputs),Fp(t.declaredInputs,o.declaredInputs),Fp(t.outputs,o.outputs),null!==o.inputTransforms&&(null===a.inputTransforms&&(a.inputTransforms={}),Fp(a.inputTransforms,o.inputTransforms)),fs(o)&&o.data.animation){const g=t.data;g.animation=(g.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let a=0;a<s.length;a++){const r=s[a];r&&r.ngInherit&&r(t),r===te&&(e=!1)}}i=Object.getPrototypeOf(i)}!function f6(t){let i=0,e=null;for(let n=t.length-1;n>=0;n--){const o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=eu(o.hostAttrs,e=eu(e,o.hostAttrs))}}(n)}function Bm(t){return t===Ls?{}:t===fn?[]:t}function _6(t,i){const e=t.viewQuery;t.viewQuery=e?(n,o)=>{i(n,o),e(n,o)}:i}function g6(t,i){const e=t.contentQueries;t.contentQueries=e?(n,o,s)=>{i(n,o,s),e(n,o,s)}:i}function b6(t,i){const e=t.hostBindings;t.hostBindings=e?(n,o)=>{i(n,o),e(n,o)}:i}function sM(t){const i=t.inputConfig,e={};for(const n in i)if(i.hasOwnProperty(n)){const o=i[n];Array.isArray(o)&&o[2]&&(e[n]=o[2])}t.inputTransforms=e}function Vm(t){return!!iv(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function iv(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function qs(t,i,e){return t[i]=e}function Ki(t,i,e){return!Object.is(t[i],e)&&(t[i]=e,!0)}function nl(t,i,e,n){const o=Ki(t,i,e);return Ki(t,i+1,n)||o}function J(t,i,e,n){const o=ae();return Ki(o,hc(),i)&&(nn(),Ws(Jn(),o,t,i,e,n)),J}function Lc(t,i,e,n){return Ki(t,hc(),e)?i+ht(e)+n:mt}function Bc(t,i,e,n,o,s){const r=nl(t,va(),e,o);return ya(2),r?i+ht(e)+n+ht(o)+s:mt}function Vc(t,i,e,n,o,s,a,r){const m=function Hm(t,i,e,n,o){const s=nl(t,i,e,n);return Ki(t,i+2,o)||s}(t,va(),e,o,a);return ya(3),m?i+ht(e)+n+ht(o)+s+ht(a)+r:mt}function Hc(t,i,e,n,o,s,a,r,u,m){const y=function Xo(t,i,e,n,o,s){const a=nl(t,i,e,n);return nl(t,i+2,o,s)||a}(t,va(),e,o,a,u);return ya(4),y?i+ht(e)+n+ht(o)+s+ht(a)+r+ht(u)+m:mt}function p(t,i,e,n,o,s,a,r){const u=ae(),m=nn(),g=t+Rt,y=m.firstCreatePass?function $6(t,i,e,n,o,s,a,r,u){const m=i.consts,g=Nc(i,t,4,a||null,nr(m,r));Kb(i,e,g,nr(m,u)),Xp(i,g);const y=g.tView=Zb(2,g,n,o,s,i.directiveRegistry,i.pipeRegistry,null,i.schemas,m,null);return null!==i.queries&&(i.queries.template(i,g),y.queries=i.queries.embeddedTView(g)),g}(g,m,u,i,e,n,o,s,a):m.data[g];Us(y,!1);const S=bM(m,u,y,t);Kp()&&gm(m,u,S,y),Zi(S,u),Nm(u,u[g]=UD(S,u,S,y)),qp(y)&&Yb(m,u,y),null!=a&&Qb(u,y,r)}let bM=function vM(t,i,e,n){return ir(!0),i[pt].createComment("")};function X(t){return dc(function OB(){return ct.lFrame.contextLView}(),Rt+t)}function f(t,i,e){const n=ae();return Ki(n,hc(),i)&&No(nn(),Jn(),n,t,i,n[pt],e,!1),f}function cv(t,i,e,n,o){const a=o?"class":"style";tv(t,e,i.inputs[a],a,n)}function l(t,i,e,n){const o=ae(),s=nn(),a=Rt+t,r=o[pt],u=s.firstCreatePass?function W6(t,i,e,n,o,s){const a=i.consts,u=Nc(i,t,2,n,nr(a,o));return Kb(i,e,u,nr(a,s)),null!==u.attrs&&Fm(u,u.attrs,!1),null!==u.mergedAttrs&&Fm(u,u.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,u),u}(a,s,o,i,e,n):s.data[a],m=yM(s,o,u,r,i,t);o[a]=m;const g=qp(u);return Us(u,!0),P2(r,m,u),32!=(32&u.flags)&&Kp()&&gm(s,o,m,u),0===function wB(){return ct.lFrame.elementDepthCount}()&&Zi(m,o),function SB(){ct.lFrame.elementDepthCount++}(),g&&(Yb(s,o,u),qb(s,u,o)),null!==n&&Qb(o,u),l}function d(){let t=Hi();L1()?B1():(t=t.parent,Us(t,!1));const i=t;(function DB(t){return ct.skipHydrationRootTNode===t})(i)&&function IB(){ct.skipHydrationRootTNode=null}(),function TB(){ct.lFrame.elementDepthCount--}();const e=nn();return e.firstCreatePass&&(Xp(e,t),E1(t)&&e.queries.elementEnd(t)),null!=i.classesWithoutHost&&function $B(t){return 0!=(8&t.flags)}(i)&&cv(e,i,ae(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function jB(t){return 0!=(16&t.flags)}(i)&&cv(e,i,ae(),i.stylesWithoutHost,!1),d}function D(t,i,e,n){return l(t,i,e,n),d(),D}let yM=(t,i,e,n,o,s)=>(ir(!0),mm(n,o,function NT(){return ct.lFrame.currentNamespace}()));function A(t,i,e){const n=ae(),o=nn(),s=t+Rt,a=o.firstCreatePass?function Q6(t,i,e,n,o){const s=i.consts,a=nr(s,n),r=Nc(i,t,8,"ng-container",a);return null!==a&&Fm(r,a,!0),Kb(i,e,r,nr(s,o)),null!==i.queries&&i.queries.elementStart(i,r),r}(s,o,n,i,e):o.data[s];Us(a,!0);const r=CM(o,n,a,t);return n[s]=r,Kp()&&gm(o,n,r,a),Zi(r,n),qp(a)&&(Yb(o,n,a),qb(o,a,n)),null!=e&&Qb(n,a),A}function P(){let t=Hi();const i=nn();return L1()?B1():(t=t.parent,Us(t,!1)),i.firstCreatePass&&(Xp(i,t),E1(t)&&i.queries.elementEnd(t)),P}function Jo(t,i,e){return A(t,i,e),P(),Jo}let CM=(t,i,e,n)=>(ir(!0),lb(i[pt],""));function F(){return ae()}function Lu(t){return!!t&&"function"==typeof t.then}function wM(t){return!!t&&"function"==typeof t.subscribe}function M(t,i,e,n){const o=ae(),s=nn(),a=Hi();return SM(s,o,o[pt],a,t,i,n),M}function zc(t,i){const e=Hi(),n=ae(),o=nn();return SM(o,n,zD(H1(o.data),e,n),e,t,i),zc}function SM(t,i,e,n,o,s,a){const r=qp(n),m=t.firstCreatePass&&GD(t),g=i[ui],y=jD(i);let S=!0;if(3&n.type||a){const k=bo(n,i),V=a?a(k):k,q=y.length,j=a?se=>a(jn(se[n.index])):n.index;let ie=null;if(!a&&r&&(ie=function X6(t,i,e,n){const o=t.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const a=o[s];if(a===e&&o[s+1]===n){const r=i[oc],u=o[s+2];return r.length>u?r[u]:null}"string"==typeof a&&(s+=2)}return null}(t,i,o,n.index)),null!==ie)(ie.__ngLastListenerFn__||ie).__ngNextListenerFn__=s,ie.__ngLastListenerFn__=s,S=!1;else{s=DM(n,i,g,s,!1);const se=e.listen(V,o,s);y.push(s,se),m&&m.push(o,j,q,q+1)}}else s=DM(n,i,g,s,!1);const x=n.outputs;let R;if(S&&null!==x&&(R=x[o])){const k=R.length;if(k)for(let V=0;V<k;V+=2){const De=i[R[V]][R[V+1]].subscribe(s),Ge=y.length;y.push(s,De),m&&m.push(o,n.index,Ge,-(Ge+1))}}}function TM(t,i,e,n){try{return Hs(6,i,e),!1!==e(n)}catch(o){return WD(t,o),!1}finally{Hs(7,i,e)}}function DM(t,i,e,n,o){return function s(a){if(a===Function)return n;xu(t.componentOffset>-1?Ro(t.index,i):i);let u=TM(i,e,n,a),m=s.__ngNextListenerFn__;for(;m;)u=TM(i,e,m,a)&&u,m=m.__ngNextListenerFn__;return o&&!1===u&&a.preventDefault(),u}}function b(t=1){return function NB(t){return(ct.lFrame.contextLView=function FB(t,i){for(;t>0;)i=i[ac],t--;return i}(t,ct.lFrame.contextLView))[ui]}(t)}function J6(t,i){let e=null;const n=function V4(t){const i=t.attrs;if(null!=i){const e=i.indexOf(5);if(!(1&e))return i[e+1]}return null}(t);for(let o=0;o<i.length;o++){const s=i[o];if("*"!==s){if(null===n?jS(t,s,!0):$4(n,s))return o}else e=o}return e}function Dt(t){const i=ae()[hi][Qi];if(!i.projection){const n=i.projection=fu(t?t.length:1,null),o=n.slice();let s=i.child;for(;null!==s;){const a=t?J6(s,t):0;null!==a&&(o[a]?o[a].projectionNext=s:n[a]=s,o[a]=s),s=s.next}}}function $e(t,i=0,e){const n=ae(),o=nn(),s=Nc(o,Rt+t,16,null,e||null);null===s.projection&&(s.projection=i),B1(),(!n[ba]||uc())&&32!=(32&s.flags)&&function J5(t,i,e){k2(i[pt],0,i,e,ub(t,e,i),M2(e.parent||i[Qi],e,i))}(o,n,s)}function N(t,i,e){return Da(t,"",i,"",e),N}function Da(t,i,e,n,o){const s=ae(),a=Lc(s,i,e,n);return a!==mt&&No(nn(),Jn(),s,t,a,s[pt],o,!1),Da}function _s(t,i,e,n,o,s,a){const r=ae(),u=Bc(r,i,e,n,o,s);return u!==mt&&No(nn(),Jn(),r,t,u,r[pt],a,!1),_s}function Gm(t,i){return t<<17|i<<2}function sr(t){return t>>17&32767}function dv(t){return 2|t}function il(t){return(131068&t)>>2}function uv(t,i){return-131069&t|i<<2}function hv(t){return 1|t}function AM(t,i,e,n,o){const s=t[e+1],a=null===i;let r=n?sr(s):il(s),u=!1;for(;0!==r&&(!1===u||a);){const g=t[r+1];sH(t[r],i)&&(u=!0,t[r+1]=n?hv(g):dv(g)),r=n?sr(g):il(g)}u&&(t[e+1]=n?dv(s):hv(s))}function sH(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&yc(t,i)>=0}const Oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function PM(t){return t.substring(Oi.key,Oi.keyEnd)}function aH(t){return t.substring(Oi.value,Oi.valueEnd)}function NM(t,i){const e=Oi.textEnd;return e===i?-1:(i=Oi.keyEnd=function cH(t,i,e){for(;i<e&&t.charCodeAt(i)>32;)i++;return i}(t,Oi.key=i,e),Wc(t,i,e))}function FM(t,i){const e=Oi.textEnd;let n=Oi.key=Wc(t,i,e);return e===n?-1:(n=Oi.keyEnd=function dH(t,i,e){let n;for(;i<e&&(45===(n=t.charCodeAt(i))||95===n||(-33&n)>=65&&(-33&n)<=90||n>=48&&n<=57);)i++;return i}(t,n,e),n=BM(t,n,e),n=Oi.value=Wc(t,n,e),n=Oi.valueEnd=function uH(t,i,e){let n=-1,o=-1,s=-1,a=i,r=a;for(;a<e;){const u=t.charCodeAt(a++);if(59===u)return r;34===u||39===u?r=a=VM(t,u,a,e):i===a-4&&85===s&&82===o&&76===n&&40===u?r=a=VM(t,41,a,e):u>32&&(r=a),s=o,o=n,n=-33&u}return r}(t,n,e),BM(t,n,e))}function LM(t){Oi.key=0,Oi.keyEnd=0,Oi.value=0,Oi.valueEnd=0,Oi.textEnd=t.length}function Wc(t,i,e){for(;i<e&&t.charCodeAt(i)<=32;)i++;return i}function BM(t,i,e,n){return(i=Wc(t,i,e))<e&&i++,i}function VM(t,i,e,n){let o=-1,s=e;for(;s<n;){const a=t.charCodeAt(s++);if(a==i&&92!==o)return s;o=92==a&&92===o?0:a}throw new Error}function it(t,i,e){return gs(t,i,e,!1),it}function de(t,i){return gs(t,i,null,!0),de}function es(t){bs($M,hH,t,!1)}function hH(t,i){for(let e=function lH(t){return LM(t),FM(t,Wc(t,0,Oi.textEnd))}(i);e>=0;e=FM(i,e))$M(t,PM(i),aH(i))}function Ln(t){bs(bH,Ys,t,!0)}function Ys(t,i){for(let e=function rH(t){return LM(t),NM(t,Wc(t,0,Oi.textEnd))}(i);e>=0;e=NM(i,e))ko(t,PM(i),!0)}function gs(t,i,e,n){const o=ae(),s=nn(),a=ya(2);s.firstUpdatePass&&UM(s,t,a,n),i!==mt&&Ki(o,a,i)&&jM(s,s.data[ro()],o,o[pt],t,o[a+1]=function yH(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Ei(Ao(t)))),t}(i,e),n,a)}function bs(t,i,e,n){const o=nn(),s=ya(2);o.firstUpdatePass&&UM(o,null,s,n);const a=ae();if(e!==mt&&Ki(a,s,e)){const r=o.data[ro()];if(zM(r,n)&&!HM(o,s)){let u=n?r.classesWithoutHost:r.stylesWithoutHost;null!==u&&(e=h1(u,e||"")),cv(o,r,a,e,n)}else!function vH(t,i,e,n,o,s,a,r){o===mt&&(o=fn);let u=0,m=0,g=0<o.length?o[0]:null,y=0<s.length?s[0]:null;for(;null!==g||null!==y;){const S=u<o.length?o[u+1]:void 0,x=m<s.length?s[m+1]:void 0;let k,R=null;g===y?(u+=2,m+=2,S!==x&&(R=y,k=x)):null===y||null!==g&&g<y?(u+=2,R=g):(m+=2,R=y,k=x),null!==R&&jM(t,i,e,n,R,k,a,r),g=u<o.length?o[u]:null,y=m<s.length?s[m]:null}}(o,r,a,a[pt],a[s+1],a[s+1]=function gH(t,i,e){if(null==e||""===e)return fn;const n=[],o=Ao(e);if(Array.isArray(o))for(let s=0;s<o.length;s++)t(n,o[s],!0);else if("object"==typeof o)for(const s in o)o.hasOwnProperty(s)&&t(n,s,o[s]);else"string"==typeof o&&i(n,o);return n}(t,i,e),n,s)}}function HM(t,i){return i>=t.expandoStartIndex}function UM(t,i,e,n){const o=t.data;if(null===o[e+1]){const s=o[ro()],a=HM(t,e);zM(s,n)&&null===i&&!a&&(i=!1),i=function pH(t,i,e,n){const o=H1(t);let s=n?i.residualClasses:i.residualStyles;if(null===o)0===(n?i.classBindings:i.styleBindings)&&(e=Bu(e=pv(null,t,i,e,n),i.attrs,n),s=null);else{const a=i.directiveStylingLast;if(-1===a||t[a]!==o)if(e=pv(o,t,i,e,n),null===s){let u=function mH(t,i,e){const n=e?i.classBindings:i.styleBindings;if(0!==il(n))return t[sr(n)]}(t,i,n);void 0!==u&&Array.isArray(u)&&(u=pv(null,t,i,u[1],n),u=Bu(u,i.attrs,n),function fH(t,i,e,n){t[sr(e?i.classBindings:i.styleBindings)]=n}(t,i,n,u))}else s=function _H(t,i,e){let n;const o=i.directiveEnd;for(let s=1+i.directiveStylingLast;s<o;s++)n=Bu(n,t[s].hostAttrs,e);return Bu(n,i.attrs,e)}(t,i,n)}return void 0!==s&&(n?i.residualClasses=s:i.residualStyles=s),e}(o,s,i,n),function iH(t,i,e,n,o,s){let a=s?i.classBindings:i.styleBindings,r=sr(a),u=il(a);t[n]=e;let g,m=!1;if(Array.isArray(e)?(g=e[1],(null===g||yc(e,g)>0)&&(m=!0)):g=e,o)if(0!==u){const S=sr(t[r+1]);t[n+1]=Gm(S,r),0!==S&&(t[S+1]=uv(t[S+1],n)),t[r+1]=function tH(t,i){return 131071&t|i<<17}(t[r+1],n)}else t[n+1]=Gm(r,0),0!==r&&(t[r+1]=uv(t[r+1],n)),r=n;else t[n+1]=Gm(u,0),0===r?r=n:t[u+1]=uv(t[u+1],n),u=n;m&&(t[n+1]=dv(t[n+1])),AM(t,g,n,!0),AM(t,g,n,!1),function oH(t,i,e,n,o){const s=o?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof i&&yc(s,i)>=0&&(e[n+1]=hv(e[n+1]))}(i,g,t,n,s),a=Gm(r,u),s?i.classBindings=a:i.styleBindings=a}(o,s,i,e,a,n)}}function pv(t,i,e,n,o){let s=null;const a=e.directiveEnd;let r=e.directiveStylingLast;for(-1===r?r=e.directiveStart:r++;r<a&&(s=i[r],n=Bu(n,s.hostAttrs,o),s!==t);)r++;return null!==t&&(e.directiveStylingLast=r),n}function Bu(t,i,e){const n=e?1:2;let o=-1;if(null!==i)for(let s=0;s<i.length;s++){const a=i[s];"number"==typeof a?o=a:o===n&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ko(t,a,!!e||i[++s]))}return void 0===t?null:t}function $M(t,i,e){ko(t,i,Ao(e))}function bH(t,i,e){const n=String(i);""!==n&&!n.includes(" ")&&ko(t,n,e)}function jM(t,i,e,n,o,s,a,r){if(!(3&i.type))return;const u=t.data,m=u[r+1],g=function nH(t){return 1==(1&t)}(m)?GM(u,i,e,o,il(m),a):void 0;zm(g)||(zm(s)||function eH(t){return 2==(2&t)}(m)&&(s=GM(u,null,e,o,r,a)),function tV(t,i,e,n,o){if(i)o?t.addClass(e,n):t.removeClass(e,n);else{let s=-1===n.indexOf("-")?void 0:or.DashCase;null==o?t.removeStyle(e,n,s):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),s|=or.Important),t.setStyle(e,n,o,s))}}(n,a,Zp(ro(),e),o,s))}function GM(t,i,e,n,o,s){const a=null===i;let r;for(;o>0;){const u=t[o],m=Array.isArray(u),g=m?u[1]:u,y=null===g;let S=e[o+1];S===mt&&(S=y?fn:void 0);let x=y?X1(S,n):g===n?S:void 0;if(m&&!zm(x)&&(x=X1(u,n)),zm(x)&&(r=x,a))return r;const R=t[o+1];o=a?sr(R):il(R)}if(null!==i){let u=s?i.residualClasses:i.residualStyles;null!=u&&(r=X1(u,n))}return r}function zm(t){return void 0!==t}function zM(t,i){return 0!=(t.flags&(i?8:16))}function h(t,i=""){const e=ae(),n=nn(),o=t+Rt,s=n.firstCreatePass?Nc(n,o,1,i,null):n.data[o],a=WM(n,e,s,i,t);e[o]=a,Kp()&&gm(n,e,a,s),Us(s,!1)}let WM=(t,i,e,n,o)=>(ir(!0),function pm(t,i){return t.createText(i)}(i[pt],n));function O(t){return T("",t,""),O}function T(t,i,e){const n=ae(),o=Lc(n,t,i,e);return o!==mt&&Ta(n,ro(),o),T}function We(t,i,e,n,o){const s=ae(),a=Bc(s,t,i,e,n,o);return a!==mt&&Ta(s,ro(),a),We}function Ma(t,i,e,n,o,s,a){const r=ae(),u=Vc(r,t,i,e,n,o,s,a);return u!==mt&&Ta(r,ro(),u),Ma}function mv(t,i,e,n,o,s,a,r,u){const m=ae(),g=Hc(m,t,i,e,n,o,s,a,r,u);return g!==mt&&Ta(m,ro(),g),mv}function fv(t,i,e){bs(ko,Ys,Lc(ae(),t,i,e),!0)}function _v(t,i,e,n,o){bs(ko,Ys,Bc(ae(),t,i,e,n,o),!0)}function Qn(t,i,e){const n=ae();return Ki(n,hc(),i)&&No(nn(),Jn(),n,t,i,n[pt],e,!0),Qn}function qc(t,i,e){const n=ae();if(Ki(n,hc(),i)){const s=nn(),a=Jn();No(s,a,n,t,i,zD(H1(s.data),a,n),e,!0)}return qc}const ol=void 0;var HH=["en",[["a","p"],["AM","PM"],ol],[["AM","PM"],ol,ol],[["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"]],ol,[["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"]],ol,[["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}",ol,"{1} 'at' {0}",ol],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function VH(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Yc={};function uo(t){const i=function UH(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=lx(i);if(e)return e;const n=i.split("-")[0];if(e=lx(n),e)return e;if("en"===n)return HH;throw new ee(701,!1)}function lx(t){return t in Yc||(Yc[t]=$n.ng&&$n.ng.common&&$n.ng.common.locales&&$n.ng.common.locales[t]),Yc[t]}var Gn=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}(Gn||{});const Qc="en-US";let cx=Qc;function vv(t,i,e,n,o){if(t=dt(t),Array.isArray(t))for(let s=0;s<t.length;s++)vv(t[s],i,e,n,o);else{const s=nn(),a=ae(),r=Hi();let u=Jr(t)?t:dt(t.provide);const m=tD(t),g=1048575&r.providerIndexes,y=r.directiveStart,S=r.providerIndexes>>20;if(Jr(t)||!t.multi){const x=new du(m,o,_),R=Cv(u,i,o?g:g+S,y);-1===R?(Q1(nm(r,a),s,u),yv(s,t,i.length),i.push(u),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),e.push(x),a.push(x)):(e[R]=x,a[R]=x)}else{const x=Cv(u,i,g+S,y),R=Cv(u,i,g,g+S),V=R>=0&&e[R];if(o&&!V||!o&&!(x>=0&&e[x])){Q1(nm(r,a),s,u);const q=function BU(t,i,e,n,o){const s=new du(t,e,_);return s.multi=[],s.index=i,s.componentProviders=0,Px(s,o,n&&!e),s}(o?LU:FU,e.length,o,n,m);!o&&V&&(e[R].providerFactory=q),yv(s,t,i.length,0),i.push(u),r.directiveStart++,r.directiveEnd++,o&&(r.providerIndexes+=1048576),e.push(q),a.push(q)}else yv(s,t,x>-1?x:R,Px(e[o?R:x],m,!o&&n));!o&&n&&V&&e[R].componentProviders++}}}function yv(t,i,e,n){const o=Jr(i),s=function AV(t){return!!t.useClass}(i);if(o||s){const u=(s?dt(i.useClass):i).prototype.ngOnDestroy;if(u){const m=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){const g=m.indexOf(e);-1===g?m.push(e,[n,u]):m[g+1].push(n,u)}else m.push(e,u)}}}function Px(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Cv(t,i,e,n){for(let o=e;o<n;o++)if(i[o]===t)return o;return-1}function FU(t,i,e,n){return wv(this.multi,[])}function LU(t,i,e,n){const o=this.multi;let s;if(this.providerFactory){const a=this.providerFactory.componentProviders,r=Zr(e,e[Ae],this.providerFactory.index,n);s=r.slice(0,a),wv(o,s);for(let u=a;u<r.length;u++)s.push(r[u])}else s=[],wv(o,s);return s}function wv(t,i){for(let e=0;e<t.length;e++)i.push((0,t[e])());return i}function me(t,i=[]){return e=>{e.providersResolver=(n,o)=>function NU(t,i,e){const n=nn();if(n.firstCreatePass){const o=fs(t);vv(e,n.data,n.blueprint,o,!0),vv(i,n.data,n.blueprint,o,!1)}}(n,o?o(t):t,i)}}class sl{}class Nx{}class Sv extends sl{constructor(i,e,n){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new JD(this);const o=Oo(i);this._bootstrapComponents=Sa(o.bootstrap),this._r3Injector=hD(i,e,[{provide:sl,useValue:this},{provide:el,useValue:this.componentFactoryResolver},...n],Ei(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class Tv extends Nx{constructor(i){super(),this.moduleType=i}create(i){return new Sv(this.moduleType,i,[])}}class Fx extends sl{constructor(i){super(),this.componentFactoryResolver=new JD(this),this.instance=null;const e=new Mc([...i.providers,{provide:sl,useValue:this},{provide:el,useValue:this.componentFactoryResolver}],i.parent||Dm(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function Dv(t,i,e=null){return new Fx({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}let UU=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const n=K2(0,e.type),o=n.length>0?Dv([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}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=K({token:t,providedIn:"environment",factory:()=>new t(H(co))})}return t})();function Z(t){t.getStandaloneInjector=i=>i.get(UU).getOrCreateStandaloneInjector(t)}function hn(t,i,e){const n=ao()+t,o=ae();return o[n]===mt?qs(o,n,e?i.call(e):i()):function Au(t,i){return t[i]}(o,n)}function zn(t,i,e,n){return jx(ae(),ao(),t,i,e,n)}function al(t,i,e,n,o){return Gx(ae(),ao(),t,i,e,n,o)}function zu(t,i){const e=t[i];return e===mt?void 0:e}function jx(t,i,e,n,o,s){const a=i+e;return Ki(t,a,o)?qs(t,a+1,s?n.call(s,o):n(o)):zu(t,a+1)}function Gx(t,i,e,n,o,s,a){const r=i+e;return nl(t,r,o,s)?qs(t,r+2,a?n.call(a,o,s):n(o,s)):zu(t,r+2)}function C(t,i){const e=nn();let n;const o=t+Rt;e.firstCreatePass?(n=function n7(t,i){if(i)for(let e=i.length-1;e>=0;e--){const n=i[e];if(t===n.name)return n}}(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];const s=n.factory||(n.factory=Yr(n.type)),r=_o(_);try{const u=tm(!1),m=s();return tm(u),function z6(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}(e,ae(),o,m),m}finally{_o(r)}}function w(t,i,e){const n=t+Rt,o=ae(),s=dc(o,n);return Wu(o,n)?jx(o,ao(),i,s.transform,e,s):s.transform(e)}function Zm(t,i,e,n){const o=t+Rt,s=ae(),a=dc(s,o);return Wu(s,o)?Gx(s,ao(),i,a.transform,e,n,a):a.transform(e,n)}function Wu(t,i){return t[Ae].data[i].pure}function r7(){return this._results[Symbol.iterator]()}class ar{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new W)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ar.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=r7)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){const n=this;n.dirty=!1;const o=function Zo(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function o5(t,i,e){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],s=i[n];if(e&&(o=e(o),s=e(s)),s!==o)return!1}return!0}(n._results,o,e))&&(n._results=o,n.length=o.length,n.last=o[this.length-1],n.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function c7(t,i,e,n=!0){const o=i[Ae];if(function q5(t,i,e,n){const o=Bi+n,s=e.length;n>0&&(e[o-1][ms]=i),n<s-Bi?(i[ms]=e[o],ZT(e,Bi+n,i)):(e.push(i),i[ms]=null),i[Yn]=e;const a=i[iu];null!==a&&e!==a&&function Y5(t,i){const e=t[lc];i[hi]!==i[Yn][Yn][hi]&&(t[ZS]=!0),null===e?t[lc]=[i]:e.push(i)}(a,i);const r=i[Bs];null!==r&&r.insertView(t),i[_t]|=128}(o,i,t,e),n){const s=pb(e,t),a=i[pt],r=_m(a,t[Vs]);null!==r&&function G5(t,i,e,n,o,s){n[si]=o,n[Qi]=i,yu(t,n,e,1,o,s)}(o,t[Qi],a,i,r,s)}}let bt=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=h7}return t})();const d7=bt,u7=class extends d7{constructor(i,e,n){super(),this._declarationLView=i,this._declarationTContainer=e,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,e){return this.createEmbeddedViewImpl(i,e)}createEmbeddedViewImpl(i,e,n){const o=function l7(t,i,e,n){const o=i.tView,r=Pm(t,o,e,4096&t[_t]?4096:16,null,i,null,null,null,n?.injector??null,n?.hydrationInfo??null);r[iu]=t[i.index];const m=t[Bs];return null!==m&&(r[Bs]=m.createEmbeddedView(o)),nv(o,r,e),r}(this._declarationLView,this._declarationTContainer,i,{injector:e,hydrationInfo:n});return new Ou(o)}};function h7(){return Km(Hi(),ae())}function Km(t,i){return 4&t.type?new u7(i,t,Oc(t,i)):null}let kn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=b7}return t})();function b7(){return eE(Hi(),ae())}const v7=kn,Xx=class extends v7{constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return Oc(this._hostTNode,this._hostLView)}get injector(){return new lo(this._hostTNode,this._hostLView)}get parentInjector(){const i=im(this._hostTNode,this._hostLView);if(W1(i)){const e=hu(i,this._hostLView),n=uu(i);return new lo(e[Ae].data[n+8],e)}return new lo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const e=Jx(this._lContainer);return null!==e&&e[i]||null}get length(){return this._lContainer.length-Bi}createEmbeddedView(i,e,n){let o,s;"number"==typeof n?o=n:null!=n&&(o=n.index,s=n.injector);const r=i.createEmbeddedViewImpl(e||{},s,null);return this.insertImpl(r,o,false),r}createComponent(i,e,n,o,s){const a=i&&!function mu(t){return"function"==typeof t}(i);let r;if(a)r=e;else{const k=e||{};r=k.index,n=k.injector,o=k.projectableNodes,s=k.environmentInjector||k.ngModuleRef}const u=a?i:new Ru(tn(i)),m=n||this.parentInjector;if(!s&&null==u.ngModule){const V=(a?m:this.parentInjector).get(co,null);V&&(s=V)}tn(u.componentType??{});const x=u.create(m,o,null,s);return this.insertImpl(x.hostView,r,false),x}insert(i,e){return this.insertImpl(i,e,!1)}insertImpl(i,e,n){const o=i._lView;if(function vB(t){return so(t[Yn])}(o)){const u=this.indexOf(i);if(-1!==u)this.detach(u);else{const m=o[Yn],g=new Xx(m,m[Qi],m[Yn]);g.detach(g.indexOf(i))}}const a=this._adjustIndex(e),r=this._lContainer;return c7(r,o,a,!n),i.attachToViewContainerRef(),ZT(Ev(r),a,i),i}move(i,e){return this.insert(i,e)}indexOf(i){const e=Jx(this._lContainer);return null!==e?e.indexOf(i):-1}remove(i){const e=this._adjustIndex(i,-1),n=fm(this._lContainer,e);n&&(sm(Ev(this._lContainer),e),cb(n[Ae],n))}detach(i){const e=this._adjustIndex(i,-1),n=fm(this._lContainer,e);return n&&null!=sm(Ev(this._lContainer),e)?new Ou(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function Jx(t){return t[8]}function Ev(t){return t[8]||(t[8]=[])}function eE(t,i){let e;const n=i[t.index];return so(n)?e=n:(e=UD(n,i,null,t),i[t.index]=e,Nm(i,e)),tE(e,i,t,n),new Xx(e,t,i)}let tE=function nE(t,i,e,n){if(t[Vs])return;let o;o=8&e.type?jn(n):function y7(t,i){const e=t[pt],n=e.createComment(""),o=bo(i,t);return Kr(e,_m(e,o),n,function X5(t,i){return t.nextSibling(i)}(e,o),!1),n}(i,e),t[Vs]=o};class Iv{constructor(i){this.queryList=i,this.matches=null}clone(){return new Iv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ov{constructor(i=[]){this.queries=i}createEmbeddedView(i){const e=i.queries;if(null!==e){const n=null!==i.contentQueries?i.contentQueries[0]:e.length,o=[];for(let s=0;s<n;s++){const a=e.getByIndex(s);o.push(this.queries[a.indexInDeclarationView].clone())}return new Ov(o)}return null}insertView(i){this.dirtyQueriesWithMatches(i)}detachView(i){this.dirtyQueriesWithMatches(i)}dirtyQueriesWithMatches(i){for(let e=0;e<this.queries.length;e++)null!==rE(i,e).matches&&this.queries[e].setDirty()}}class iE{constructor(i,e,n=null){this.predicate=i,this.flags=e,this.read=n}}class Rv{constructor(i=[]){this.queries=i}elementStart(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(i,e)}elementEnd(i){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(i)}embeddedTView(i){let e=null;for(let n=0;n<this.length;n++){const o=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(i,o);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Rv(e):null}template(i,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(i,e)}getByIndex(i){return this.queries[i]}get length(){return this.queries.length}track(i){this.queries.push(i)}}class kv{constructor(i,e=-1){this.metadata=i,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(i,e){this.isApplyingToNode(e)&&this.matchTNode(i,e)}elementEnd(i){this._declarationNodeIndex===i.index&&(this._appliesToNextNode=!1)}template(i,e){this.elementStart(i,e)}embeddedTView(i,e){return this.isApplyingToNode(i)?(this.crossesNgTemplate=!0,this.addMatch(-i.index,e),new kv(this.metadata)):null}isApplyingToNode(i){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let n=i.parent;for(;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(i,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let o=0;o<n.length;o++){const s=n[o];this.matchTNodeWithReadOption(i,e,S7(e,s)),this.matchTNodeWithReadOption(i,e,om(e,i,s,!1,!1))}else n===bt?4&e.type&&this.matchTNodeWithReadOption(i,e,-1):this.matchTNodeWithReadOption(i,e,om(e,i,n,!1,!1))}matchTNodeWithReadOption(i,e,n){if(null!==n){const o=this.metadata.read;if(null!==o)if(o===oe||o===kn||o===bt&&4&e.type)this.addMatch(e.index,-2);else{const s=om(e,i,o,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,n)}}addMatch(i,e){null===this.matches?this.matches=[i,e]:this.matches.push(i,e)}}function S7(t,i){const e=t.localNames;if(null!==e)for(let n=0;n<e.length;n+=2)if(e[n]===i)return e[n+1];return null}function D7(t,i,e,n){return-1===e?function T7(t,i){return 11&t.type?Oc(t,i):4&t.type?Km(t,i):null}(i,t):-2===e?function M7(t,i,e){return e===oe?Oc(i,t):e===bt?Km(i,t):e===kn?eE(i,t):void 0}(t,i,n):Zr(t,t[Ae],e,i)}function oE(t,i,e,n){const o=i[Bs].queries[n];if(null===o.matches){const s=t.data,a=e.matches,r=[];for(let u=0;u<a.length;u+=2){const m=a[u];r.push(m<0?null:D7(i,s[m],a[u+1],e.metadata.read))}o.matches=r}return o.matches}function Av(t,i,e,n){const o=t.queries.getByIndex(e),s=o.matches;if(null!==s){const a=oE(t,i,o,e);for(let r=0;r<s.length;r+=2){const u=s[r];if(u>0)n.push(a[r/2]);else{const m=s[r+1],g=i[-u];for(let y=Bi;y<g.length;y++){const S=g[y];S[iu]===S[Yn]&&Av(S[Ae],S,m,n)}if(null!==g[lc]){const y=g[lc];for(let S=0;S<y.length;S++){const x=y[S];Av(x[Ae],x,m,n)}}}}}return n}function G(t){const i=ae(),e=nn(),n=IT();U1(n+1);const o=rE(e,n);if(t.dirty&&function gB(t){return 4==(4&t[_t])}(i)===(2==(2&o.metadata.flags))){if(null===o.matches)t.reset([]);else{const s=o.crossesNgTemplate?Av(e,i,n,[]):oE(e,i,o,n);t.reset(s,e8),t.notifyOnChanges()}return!0}return!1}function ne(t,i,e){const n=nn();n.firstCreatePass&&(aE(n,new iE(t,i,e),-1),2==(2&i)&&(n.staticViewQueries=!0)),sE(n,ae(),i)}function Pe(t,i,e,n){const o=nn();if(o.firstCreatePass){const s=Hi();aE(o,new iE(i,e,n),s.index),function E7(t,i){const e=t.contentQueries||(t.contentQueries=[]);i!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,i)}(o,t),2==(2&e)&&(o.staticContentQueries=!0)}sE(o,ae(),e)}function z(){return function x7(t,i){return t[Bs].queries[i].queryList}(ae(),IT())}function sE(t,i,e){const n=new ar(4==(4&e));(function A8(t,i,e,n){const o=jD(i);o.push(e),t.firstCreatePass&&GD(t).push(n,o.length-1)})(t,i,n,n.destroy),null===i[Bs]&&(i[Bs]=new Ov),i[Bs].queries.push(new Iv(n))}function aE(t,i,e){null===t.queries&&(t.queries=new Rv),t.queries.track(new kv(i,e))}function rE(t,i){return t.queries.getByIndex(i)}function Nt(t,i){return Km(t,i)}const Vv=new Y("Application Initializer");let Hv=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n}),this.appInits=he(Vv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const s=o();if(Lu(s))e.push(s);else if(wM(s)){const a=new Promise((r,u)=>{s.subscribe({complete:r,error:u})});e.push(a)}}const n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),0===e.length&&n(),this.initialized=!0}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),TE=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const ts=new Y("LocaleId",{providedIn:"root",factory:()=>he(ts,Tt.Optional|Tt.SkipSelf)||function Q7(){return typeof $localize<"u"&&$localize.locale||Qc}()});let ef=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ii(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class X7{constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}}let DE=(()=>{class t{compileModuleSync(e){return new Tv(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const n=this.compileModuleSync(e),s=Sa(Oo(e).declarations).reduce((a,r)=>{const u=tn(r);return u&&a.push(new Ru(u)),a},[]);return new X7(n,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const IE=new Y(""),nf=new Y("");let zv,jv=(()=>{class t{constructor(e,n,o){this._ngZone=e,this.registry=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,zv||(function y$(t){zv=t}(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>!n.updateCb||!n.updateCb(e)||(clearTimeout(n.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let s=-1;n&&n>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),e(this._didWork,this.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:o})}whenStable(e,n,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static#e=this.\u0275fac=function(n){return new(n||t)(H(be),H(Gv),H(nf))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),Gv=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,n){this._applications.set(e,n)}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,n=!0){return zv?.findTestabilityInTree(this,e,n)??null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),rr=null;const Wv=new Y("PlatformDestroyListeners"),qv=new Y("appBootstrapListener");class kE{constructor(i,e){this.name=i,this.token=e}}function D$(t){try{const{rootComponent:i,appProviders:e,platformProviders:n}=t,o=function T$(t=[]){if(rr)return rr;const i=function PE(t=[],i){return _n.create({name:i,providers:[{provide:Db,useValue:"platform"},{provide:Wv,useValue:new Set([()=>rr=null])},...t]})}(t);return rr=i,function RE(){!function oB(t){lT=t}(()=>{throw new ee(600,!1)})}(),function AE(t){t.get(nD,null)?.forEach(e=>e())}(i),i}(n),s=[O$(),...e||[]],r=new Fx({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=r.get(be);return u.run(()=>{r.resolveInjectorInitializers();const m=r.get(Po,null);let g;u.runOutsideAngular(()=>{g=u.onError.subscribe({next:x=>{m.handleError(x)}})});const y=()=>r.destroy(),S=o.get(Wv);return S.add(y),r.onDestroy(()=>{g.unsubscribe(),S.delete(y)}),function LE(t,i,e){try{const n=e();return Lu(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t.handleError(n)),n}}(m,u,()=>{const x=r.get(Hv);return x.runInitializers(),x.donePromise.then(()=>{!function dx(t){qo(t,"Expected localeId to be defined"),"string"==typeof t&&(cx=t.toLowerCase().replace(/_/g,"-"))}(r.get(ts,Qc)||Qc);const k=r.get(vs);return void 0!==i&&k.bootstrap(i),k})})})}catch(i){return Promise.reject(i)}}let vs=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=he(HE),this.zoneIsStable=he(gD),this.componentTypes=[],this.components=[],this.isStable=he(ef).hasPendingTasks.pipe(oi(e=>e?ve(!1):this.zoneIsStable),zr(),Np()),this._injector=he(co)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,n){const o=e instanceof aD;if(!this._injector.get(Hv).done)throw!o&&function ic(t){const i=tn(t)||Li(t)||oo(t);return null!==i&&i.standalone}(e),new ee(405,!1);let a;a=o?e:this._injector.get(el).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const r=function w$(t){return t.isBoundToModule}(a)?void 0:this._injector.get(sl),m=a.create(_n.NULL,[],n||a.selector,r),g=m.location.nativeElement,y=m.injector.get(IE,null);return y?.registerApplication(g),m.onDestroy(()=>{this.detachView(m.hostView),sf(this.components,m),y?.unregisterApplication(g)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new ee(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){const n=e;sf(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const n=this._injector.get(qv,[]);n.push(...this._bootstrapListeners),n.forEach(o=>o(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),()=>sf(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new ee(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function sf(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}const HE=new Y("",{providedIn:"root",factory:()=>he(Po).handleError.bind(void 0)});function E$(){const t=he(be),i=he(Po);return e=>t.runOutsideAngular(()=>i.handleError(e))}let I$=(()=>{class t{constructor(){this.zone=he(be),this.applicationRef=he(vs)}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(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function UE(t){return[{provide:be,useFactory:t},{provide:Su,multi:!0,useFactory:()=>{const i=he(I$,{optional:!0});return()=>i.initialize()}},{provide:HE,useFactory:E$},{provide:gD,useFactory:bD}]}function O$(t){return wb([[],UE(()=>new be(function FE(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}(t)))])}let He=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=R$}return t})();function R$(t){return function k$(t,i,e){if(qr(t)&&!e){const n=Ro(t.index,i);return new Ou(n,n)}return 47&t.type?new Ou(i[hi],i):null}(Hi(),ae(),16==(16&t))}class WE{constructor(){}supports(i){return Vm(i)}create(i){return new L$(i)}}const F$=(t,i)=>i;class L${constructor(i){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=i||F$}forEachItem(i){let e;for(e=this._itHead;null!==e;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,s=null;for(;e||n;){const a=!n||e&&e.currentIndex<YE(n,o,s)?e:n,r=YE(a,o,s),u=a.currentIndex;if(a===n)o--,n=n._nextRemoved;else if(e=e._next,null==a.previousIndex)o++;else{s||(s=[]);const m=r-o,g=u-o;if(m!=g){for(let S=0;S<m;S++){const x=S<s.length?s[S]:s[S]=0,R=x+S;g<=R&&R<m&&(s[S]=x+1)}s[a.previousIndex]=g-m}}r!==u&&i(a,r,u)}}forEachPreviousItem(i){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachMovedItem(i){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}forEachIdentityChange(i){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)i(e)}diff(i){if(null==i&&(i=[]),!Vm(i))throw new ee(900,!1);return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let o,s,a,e=this._itHead,n=!1;if(Array.isArray(i)){this.length=i.length;for(let r=0;r<this.length;r++)s=i[r],a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),n=!0),e=e._next}else o=0,function T6(t,i){if(Array.isArray(t))for(let e=0;e<t.length;e++)i(t[e]);else{const e=t[Symbol.iterator]();let n;for(;!(n=e.next()).done;)i(n.value)}}(i,r=>{a=this._trackByFn(o,r),null!==e&&Object.is(e.trackById,a)?(n&&(e=this._verifyReinsertion(e,r,a,o)),Object.is(e.item,r)||this._addIdentityChange(e,r)):(e=this._mismatch(e,r,a,o),n=!0),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let s;return null===i?s=this._itTail:(s=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,s,o)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,s,o)):i=this._addAfter(new B$(e,n),s,o),i}_verifyReinsertion(i,e,n,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?i=this._reinsertAfter(s,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;null!==i;){const e=i._next;this._addToRemovals(this._unlink(i)),i=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(i,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const o=i._prevRemoved,s=i._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){const o=null===e?this._itHead:e._next;return i._next=o,i._prev=e,null===o?this._itTail=i:o._prev=i,null===e?this._itHead=i:e._next=i,null===this._linkedRecords&&(this._linkedRecords=new qE),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const e=i._prev,n=i._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new qE),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class B${constructor(i,e){this.item=i,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 V${constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){const e=i._prevDup,n=i._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class qE{constructor(){this.map=new Map}put(i){const e=i.trackById;let n=this.map.get(e);n||(n=new V$,this.map.set(e,n)),n.add(i)}get(i,e){const o=this.map.get(i);return o?o.get(i,e):null}remove(i){const e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function YE(t,i,e){const n=t.previousIndex;if(null===n)return n;let o=0;return e&&n<e.length&&(o=e[n]),n+i+o}class QE{constructor(){}supports(i){return i instanceof Map||iv(i)}create(){return new H$}}class H${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(i){let e;for(e=this._mapHead;null!==e;e=e._next)i(e)}forEachPreviousItem(i){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)i(e)}forEachChangedItem(i){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)i(e)}forEachAddedItem(i){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)i(e)}forEachRemovedItem(i){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)i(e)}diff(i){if(i){if(!(i instanceof Map||iv(i)))throw new ee(900,!1)}else i=new Map;return this.check(i)?this:null}onDestroy(){}check(i){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(i,(n,o)=>{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;null!==n;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){const n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){const o=this._records.get(i);this._maybeAddToChanges(o,e);const s=o._prev,a=o._next;return s&&(s._next=a),a&&(a._prev=s),o._next=null,o._prev=null,o}const n=new U$(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}}class U${constructor(i){this.key=i,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 ZE(){return new ns([new WE])}let ns=(()=>{class t{static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:ZE});constructor(e){this.factories=e}static create(e,n){if(null!=n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||ZE()),deps:[[t,new js,new Ko]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(null!=n)return n;throw new ee(901,!1)}}return t})();function KE(){return new Qu([new QE])}let Qu=(()=>{class t{static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:KE});constructor(e){this.factories=e}static create(e,n){if(n){const o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||KE()),deps:[[t,new js,new Ko]]}}find(e){const n=this.factories.find(o=>o.supports(e));if(n)return n;throw new ee(901,!1)}}return t})(),G$=(()=>{class t{constructor(e){}static#e=this.\u0275fac=function(n){return new(n||t)(H(vs))};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();function Xc(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}const To_apiURL="https://api.orbit-sportsdata.com/";let ij=new Y("app.config");const v={routes:{courses:"courses",chapters:"chapters",questions:"questions"},snackBarDuration:3e3,snackBarErrorDuration:6e3,loggedIn:!1,token:"",userId:0,userName:"",userLastName:"",userType:0,userLastDate:null,userLastIP:"",mobileCoverageURL:"https://reporter.football.orbit-sportsdata.com/",mobileCoverageURL_B:"https://reporter.basketball.orbit-sportsdata.com/",apiCoverageURL:"https://api.orbit-sportsdata.com/",apiURLs:{rootURL:To_apiURL,userAuthenticationURL:To_apiURL+"auth",userLoggingOutURL:To_apiURL+"auth/",adapterCoverageURL:"https://adapter.orbit-sportsdata.com/"},apiSuccessMsg:"OK",apiErrorMsg:"ERROR",apiAttachedMsg:"Message",delaySuccessMessage:200,stringLimits:{countryNameLimit:250,countryIsoCodeLimit:3,languageCodeLimit:2,regionNameLimit:250,sportNameLimit:250,stadiumNameLimit:250,refereeNameLimit:250,competitionNameLimit:250,paymentmethodNameLimit:250,firstNameLimit:150,lastNameLimit:150,skypeLimit:250,paymentDetailsLimit:250,teamNameLimit:250,clubNameLimit:250,clubNameShortLimit:3,playerNameLimit:250,stageNameLimit:250,seasonNameLimit:9},languages:[],sports:[],competitions:[],regions:[],paymentMethods:[],positions:[],stadiums:[],countries:[],eventsRefreshDelay:700,matchClockRefreshDelay:1e3,cookies:{token:"orbit_user_token",userId:"orbit_user_id",callme:"orbit_callme_",multimatches:"orbit_multimatch_",multimatchesmax:"orbit_multimatchmax_"},ApiUsersLimit:1};function Fo(t){return!!t&&(t instanceof dn||$t(t.lift)&&$t(t.subscribe))}const{isArray:lj}=Array,{getPrototypeOf:cj,prototype:dj,keys:uj}=Object;function aI(t){if(1===t.length){const i=t[0];if(lj(i))return{args:i,keys:null};if(function hj(t){return t&&"object"==typeof t&&cj(t)===dj}(i)){const e=uj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}const{isArray:pj}=Array;function ny(t){return Le(i=>function mj(t,i){return pj(i)?t(...i):t(i)}(t,i))}function rI(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function iy(...t){const i=Pp(t),{args:e,keys:n}=aI(t),o=new dn(s=>{const{length:a}=e;if(!a)return void s.complete();const r=new Array(a);let u=a,m=a;for(let g=0;g<a;g++){let y=!1;yi(e[g]).subscribe(On(s,S=>{y||(y=!0,m--),r[g]=S},()=>u--,void 0,()=>{(!u||!y)&&(m||s.next(n?rI(n,r):r),s.complete())}))}});return i?o.pipe(ny(i)):o}function lr(...t){return function fj(){return tc(1)}()(wi(t,Zd(t)))}function cr(t){return new dn(i=>{yi(t()).subscribe(i)})}function Xe(t){return t<=0?()=>io:qn((i,e)=>{let n=0;i.subscribe(On(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}const oy={now:()=>(oy.delegate||Date).now(),delegate:void 0};class _j extends re{constructor(i=1/0,e=1/0,n=oy){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){const{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:s,_windowTime:a}=this;e||(n.push(i),!o&&n.push(s.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,s=o.slice();for(let a=0;a<s.length&&!i.closed;a+=n?1:2)i.next(s[a]);return this._checkFinalizedStatuses(i),e}_trimBuffer(){const{_bufferSize:i,_timestampProvider:e,_buffer:n,_infiniteTimeWindow:o}=this,s=(o?1:2)*i;if(i<1/0&&s<n.length&&n.splice(0,n.length-s),!o){const a=e.now();let r=0;for(let u=1;u<n.length&&n[u]<=a;u+=2)r=u;r&&n.splice(0,r+1)}}}function lI(t,i,e){let n,o=!1;return t&&"object"==typeof t?({bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t):n=t??1/0,Np({connector:()=>new _j(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function ll(t,i){return $t(i)?Ci(t,i,1):Ci(t,1)}class Zu{}let cI=(()=>{class t extends Zu{getTranslation(e){return ve({})}static \u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class sy{}let dI=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function cf(t,i){if(t===i)return!0;if(null===t||null===i)return!1;if(t!=t&&i!=i)return!0;let o,s,a,e=typeof t;if(e==typeof i&&"object"==e){if(!Array.isArray(t)){if(Array.isArray(i))return!1;for(s in a=Object.create(null),t){if(!cf(t[s],i[s]))return!1;a[s]=!0}for(s in i)if(!(s in a)&&typeof i[s]<"u")return!1;return!0}if(!Array.isArray(i))return!1;if((o=t.length)==i.length){for(s=0;s<o;s++)if(!cf(t[s],i[s]))return!1;return!0}}return!1}function dr(t){return typeof t<"u"&&null!==t}function ay(t){return t&&"object"==typeof t&&!Array.isArray(t)}function uI(t,i){let e=Object.assign({},t);return ay(t)&&ay(i)&&Object.keys(i).forEach(n=>{ay(i[n])?n in t?e[n]=uI(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e}class df{}let hI=(()=>{class t extends df{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){let o;return o="string"==typeof e?this.interpolateString(e,n):"function"==typeof e?this.interpolateFunction(e,n):e,o}getValue(e,n){let o="string"==typeof n?n.split("."):[n];n="";do{n+=o.shift(),!dr(e)||!dr(e[n])||"object"!=typeof e[n]&&o.length?o.length?n+=".":e=void 0:(e=e[n],n="")}while(o.length);return e}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(o,s)=>{let a=this.getValue(n,s);return dr(a)?a:o}):e}static \u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class uf{}let pI=(()=>{class t extends uf{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class mI{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new W;onLangChange=new W;onDefaultLangChange=new W}const ry=new Y("USE_STORE"),ly=new Y("USE_DEFAULT_LANG"),cy=new Y("DEFAULT_LANGUAGE"),dy=new Y("USE_EXTEND");let Ze=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new W;_onLangChange=new W;_onDefaultLangChange=new W;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}constructor(e,n,o,s,a,r=!0,u=!1,m=!1,g){this.store=e,this.currentLoader=n,this.compiler=o,this.parser=s,this.missingTranslationHandler=a,this.useDefaultLang=r,this.isolate=u,this.extend=m,g&&this.setDefaultLang(g)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Xe(1)).subscribe(o=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return ve(this.translations[e]);let n=this.retrieveTranslations(e);return typeof n<"u"?(this.currentLang||(this.currentLang=e),n.pipe(Xe(1)).subscribe(o=>{this.changeLang(e)}),n):(this.changeLang(e),ve(this.translations[e]))}retrieveTranslations(e){let n;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}getTranslation(e){this.pending=!0;const n=this.currentLoader.getTranslation(e).pipe(lI(1),Xe(1));return this.loadingTranslations=n.pipe(Le(o=>this.compiler.compileTranslations(o,e)),lI(1),Xe(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?{...o,...this.translations[e]}:o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),n}setTranslation(e,n,o=!1){n=this.compiler.compileTranslations(n,e),this.translations[e]=(o||this.extend)&&this.translations[e]?uI(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(n=>{-1===this.langs.indexOf(n)&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,n,o){let s;if(n instanceof Array){let a={},r=!1;for(let u of n)a[u]=this.getParsedResult(e,u,o),Fo(a[u])&&(r=!0);return r?iy(n.map(m=>Fo(a[m])?a[m]:ve(a[m]))).pipe(Le(m=>{let g={};return m.forEach((y,S)=>{g[n[S]]=y}),g})):a}if(e&&(s=this.parser.interpolate(this.parser.getValue(e,n),o)),typeof s>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(s=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),o)),typeof s>"u"){let a={key:n,translateService:this};typeof o<"u"&&(a.interpolateParams=o),s=this.missingTranslationHandler.handle(a)}return typeof s<"u"?s:n}get(e,n){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(ll(o=>Fo(o=this.getParsedResult(o,e,n))?o:ve(o)));{let o=this.getParsedResult(this.translations[this.currentLang],e,n);return Fo(o)?o:ve(o)}}getStreamOnTranslationChange(e,n){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return lr(cr(()=>this.get(e,n)),this.onTranslationChange.pipe(oi(o=>{const s=this.getParsedResult(o.translations,e,n);return"function"==typeof s.subscribe?s:ve(s)})))}stream(e,n){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');return lr(cr(()=>this.get(e,n)),this.onLangChange.pipe(oi(o=>{const s=this.getParsedResult(o.translations,e,n);return Fo(s)?s:ve(s)})))}instant(e,n){if(!dr(e)||!e.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],e,n);if(Fo(o)){if(e instanceof Array){let s={};return e.forEach((a,r)=>{s[e[r]]=e[r]}),s}return e}return o}set(e,n,o=this.currentLang){this.translations[o][e]=this.compiler.compile(n,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}static \u0275fac=function(n){return new(n||t)(H(mI),H(Zu),H(uf),H(df),H(sy),H(ly),H(ry),H(dy),H(cy))};static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),we=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,o){let s=a=>{this.value=void 0!==a?a:e,this.lastKey=e,this._ref.markForCheck()};if(o){let a=this.translate.getParsedResult(o,e,n);Fo(a.subscribe)?a.subscribe(s):s(a)}this.translate.get(e,n).subscribe(s)}transform(e,...n){if(!e||!e.length)return e;if(cf(e,this.lastKey)&&cf(n,this.lastParams))return this.value;let o;if(dr(n[0])&&n.length)if("string"==typeof n[0]&&n[0].length){let s=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(s)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else"object"==typeof n[0]&&!Array.isArray(n[0])&&(o=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(s=>{this.lastKey&&s.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,s.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(s=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,s.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(_(Ze,16),_(He,16))};static \u0275pipe=Yi({name:"translate",type:t,pure:!1});static \u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),_e=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Zu,useClass:cI},e.compiler||{provide:uf,useClass:pI},e.parser||{provide:df,useClass:hI},e.missingTranslationHandler||{provide:sy,useClass:dI},mI,{provide:ry,useValue:e.isolate},{provide:ly,useValue:e.useDefaultLang},{provide:dy,useValue:e.extend},{provide:cy,useValue:e.defaultLanguage},Ze]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Zu,useClass:cI},e.compiler||{provide:uf,useClass:pI},e.parser||{provide:df,useClass:hI},e.missingTranslationHandler||{provide:sy,useClass:dI},{provide:ry,useValue:e.isolate},{provide:ly,useValue:e.useDefaultLang},{provide:dy,useValue:e.extend},{provide:cy,useValue:e.defaultLanguage},Ze]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Ce({type:t});static \u0275inj=ye({})}return t})(),uy=null;function ur(){return uy}class bj{}const Ue=new Y("DocumentToken");let hy=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return he(yj)},providedIn:"platform"})}return t})();const vj=new Y("Location Initialized");let yj=(()=>{class t extends hy{constructor(){super(),this._doc=he(Ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ur().getBaseHref(this._doc)}onPopState(e){const n=ur().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){const n=ur().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.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,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}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(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return new t},providedIn:"platform"})}return t})();function py(t,i){if(0==t.length)return i;if(0==i.length)return t;let e=0;return t.endsWith("/")&&e++,i.startsWith("/")&&e++,2==e?t+i.substring(1):1==e?t+i:t+"/"+i}function fI(t){const i=t.match(/#|\?|$/),e=i&&i.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function xa(t){return t&&"?"!==t[0]?"?"+t:t}let cl=(()=>{class t{historyGo(e){throw new Error("Not implemented")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return he(gI)},providedIn:"root"})}return t})();const _I=new Y("appBaseHref");let gI=(()=>{class t extends cl{constructor(e,n){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??he(Ue).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 py(this._baseHref,e)}path(e=!1){const n=this._platformLocation.pathname+xa(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,s){const a=this.prepareExternalUrl(o+xa(s));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,s){const a=this.prepareExternalUrl(o+xa(s));this._platformLocation.replaceState(e,n,a)}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(n){return new(n||t)(H(hy),H(_I,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cj=(()=>{class t extends cl{constructor(e,n){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=n&&(this._baseHref=n)}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){let n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n}prepareExternalUrl(e){const n=py(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,s){let a=this.prepareExternalUrl(o+xa(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,s){let a=this.prepareExternalUrl(o+xa(s));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,n,a)}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(n){return new(n||t)(H(hy),H(_I,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),Ku=(()=>{class t{constructor(e){this._subject=new W,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const n=this._locationStrategy.getBaseHref();this._basePath=function Tj(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(fI(bI(n))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+xa(n))}normalize(e){return t.stripTrailingSlash(function Sj(t,i){if(!t||!i.startsWith(t))return i;const e=i.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:i}(this._basePath,bI(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xa(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+xa(n)),o)}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._urlChangeSubscription=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)})),()=>{const n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n,complete:o})}static#e=this.normalizeQueryParams=xa;static#t=this.joinWithSlash=py;static#n=this.stripTrailingSlash=fI;static#i=this.\u0275fac=function(n){return new(n||t)(H(cl))};static#o=this.\u0275prov=K({token:t,factory:function(){return function wj(){return new Ku(H(cl))}()},providedIn:"root"})}return t})();function bI(t){return t.replace(/\/index.html$/,"")}var Pi=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(Pi||{}),pn=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(pn||{}),Lo=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(Lo||{}),pi=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t.Infinity=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}(pi||{});function pf(t,i){return os(uo(t)[Gn.DateFormat],i)}function mf(t,i){return os(uo(t)[Gn.TimeFormat],i)}function ff(t,i){return os(uo(t)[Gn.DateTimeFormat],i)}function is(t,i){const e=uo(t),n=e[Gn.NumberSymbols][i];if(typeof n>"u"){if(i===pi.CurrencyDecimal)return e[Gn.NumberSymbols][pi.Decimal];if(i===pi.CurrencyGroup)return e[Gn.NumberSymbols][pi.Group]}return n}function CI(t){if(!t[Gn.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Gn.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function os(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function _y(t){const[i,e]=t.split(":");return{hours:+i,minutes:+e}}const Fj=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Xu={},Lj=/((?:[^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 Ea=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(Ea||{}),vn=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}(vn||{}),yn=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(yn||{});function hr(t,i,e,n){let o=function Wj(t){if(TI(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[o,s=1,a=1]=t.split("-").map(r=>+r);return _f(o,s-1,a)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(Fj))return function qj(t){const i=new Date(0);let e=0,n=0;const o=t[8]?i.setUTCFullYear:i.setFullYear,s=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-e,r=Number(t[5]||0)-n,u=Number(t[6]||0),m=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(i,a,r,u,m),i}(n)}const i=new Date(t);if(!TI(i))throw new Error(`Unable to convert "${t}" into a date`);return i}(t);i=Ia(e,i)||i;let r,a=[];for(;i;){if(r=Lj.exec(i),!r){a.push(i);break}{a=a.concat(r.slice(1));const g=a.pop();if(!g)break;i=g}}let u=o.getTimezoneOffset();n&&(u=SI(n,u),o=function zj(t,i,e){const n=e?-1:1,o=t.getTimezoneOffset();return function Gj(t,i){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+i),t}(t,n*(SI(i,o)-o))}(o,n,!0));let m="";return a.forEach(g=>{const y=function jj(t){if(by[t])return by[t];let i;switch(t){case"G":case"GG":case"GGG":i=Wn(yn.Eras,pn.Abbreviated);break;case"GGGG":i=Wn(yn.Eras,pn.Wide);break;case"GGGGG":i=Wn(yn.Eras,pn.Narrow);break;case"y":i=Ti(vn.FullYear,1,0,!1,!0);break;case"yy":i=Ti(vn.FullYear,2,0,!0,!0);break;case"yyy":i=Ti(vn.FullYear,3,0,!1,!0);break;case"yyyy":i=Ti(vn.FullYear,4,0,!1,!0);break;case"Y":i=yf(1);break;case"YY":i=yf(2,!0);break;case"YYY":i=yf(3);break;case"YYYY":i=yf(4);break;case"M":case"L":i=Ti(vn.Month,1,1);break;case"MM":case"LL":i=Ti(vn.Month,2,1);break;case"MMM":i=Wn(yn.Months,pn.Abbreviated);break;case"MMMM":i=Wn(yn.Months,pn.Wide);break;case"MMMMM":i=Wn(yn.Months,pn.Narrow);break;case"LLL":i=Wn(yn.Months,pn.Abbreviated,Pi.Standalone);break;case"LLLL":i=Wn(yn.Months,pn.Wide,Pi.Standalone);break;case"LLLLL":i=Wn(yn.Months,pn.Narrow,Pi.Standalone);break;case"w":i=gy(1);break;case"ww":i=gy(2);break;case"W":i=gy(1,!0);break;case"d":i=Ti(vn.Date,1);break;case"dd":i=Ti(vn.Date,2);break;case"c":case"cc":i=Ti(vn.Day,1);break;case"ccc":i=Wn(yn.Days,pn.Abbreviated,Pi.Standalone);break;case"cccc":i=Wn(yn.Days,pn.Wide,Pi.Standalone);break;case"ccccc":i=Wn(yn.Days,pn.Narrow,Pi.Standalone);break;case"cccccc":i=Wn(yn.Days,pn.Short,Pi.Standalone);break;case"E":case"EE":case"EEE":i=Wn(yn.Days,pn.Abbreviated);break;case"EEEE":i=Wn(yn.Days,pn.Wide);break;case"EEEEE":i=Wn(yn.Days,pn.Narrow);break;case"EEEEEE":i=Wn(yn.Days,pn.Short);break;case"a":case"aa":case"aaa":i=Wn(yn.DayPeriods,pn.Abbreviated);break;case"aaaa":i=Wn(yn.DayPeriods,pn.Wide);break;case"aaaaa":i=Wn(yn.DayPeriods,pn.Narrow);break;case"b":case"bb":case"bbb":i=Wn(yn.DayPeriods,pn.Abbreviated,Pi.Standalone,!0);break;case"bbbb":i=Wn(yn.DayPeriods,pn.Wide,Pi.Standalone,!0);break;case"bbbbb":i=Wn(yn.DayPeriods,pn.Narrow,Pi.Standalone,!0);break;case"B":case"BB":case"BBB":i=Wn(yn.DayPeriods,pn.Abbreviated,Pi.Format,!0);break;case"BBBB":i=Wn(yn.DayPeriods,pn.Wide,Pi.Format,!0);break;case"BBBBB":i=Wn(yn.DayPeriods,pn.Narrow,Pi.Format,!0);break;case"h":i=Ti(vn.Hours,1,-12);break;case"hh":i=Ti(vn.Hours,2,-12);break;case"H":i=Ti(vn.Hours,1);break;case"HH":i=Ti(vn.Hours,2);break;case"m":i=Ti(vn.Minutes,1);break;case"mm":i=Ti(vn.Minutes,2);break;case"s":i=Ti(vn.Seconds,1);break;case"ss":i=Ti(vn.Seconds,2);break;case"S":i=Ti(vn.FractionalSeconds,1);break;case"SS":i=Ti(vn.FractionalSeconds,2);break;case"SSS":i=Ti(vn.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":i=bf(Ea.Short);break;case"ZZZZZ":i=bf(Ea.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=bf(Ea.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":i=bf(Ea.Long);break;default:return null}return by[t]=i,i}(g);m+=y?y(o,e,u):"''"===g?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),m}function _f(t,i,e){const n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function Ia(t,i){const e=function Mj(t){return uo(t)[Gn.LocaleId]}(t);if(Xu[e]=Xu[e]||{},Xu[e][i])return Xu[e][i];let n="";switch(i){case"shortDate":n=pf(t,Lo.Short);break;case"mediumDate":n=pf(t,Lo.Medium);break;case"longDate":n=pf(t,Lo.Long);break;case"fullDate":n=pf(t,Lo.Full);break;case"shortTime":n=mf(t,Lo.Short);break;case"mediumTime":n=mf(t,Lo.Medium);break;case"longTime":n=mf(t,Lo.Long);break;case"fullTime":n=mf(t,Lo.Full);break;case"short":const o=Ia(t,"shortTime"),s=Ia(t,"shortDate");n=gf(ff(t,Lo.Short),[o,s]);break;case"medium":const a=Ia(t,"mediumTime"),r=Ia(t,"mediumDate");n=gf(ff(t,Lo.Medium),[a,r]);break;case"long":const u=Ia(t,"longTime"),m=Ia(t,"longDate");n=gf(ff(t,Lo.Long),[u,m]);break;case"full":const g=Ia(t,"fullTime"),y=Ia(t,"fullDate");n=gf(ff(t,Lo.Full),[g,y])}return n&&(Xu[e][i]=n),n}function gf(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return null!=i&&n in i?i[n]:e})),t}function ys(t,i,e="-",n,o){let s="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,s=e));let a=String(t);for(;a.length<i;)a="0"+a;return n&&(a=a.slice(a.length-i)),s+a}function Ti(t,i,e=0,n=!1,o=!1){return function(s,a){let r=function Vj(t,i){switch(t){case vn.FullYear:return i.getFullYear();case vn.Month:return i.getMonth();case vn.Date:return i.getDate();case vn.Hours:return i.getHours();case vn.Minutes:return i.getMinutes();case vn.Seconds:return i.getSeconds();case vn.FractionalSeconds:return i.getMilliseconds();case vn.Day:return i.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((e>0||r>-e)&&(r+=e),t===vn.Hours)0===r&&-12===e&&(r=12);else if(t===vn.FractionalSeconds)return function Bj(t,i){return ys(t,3).substring(0,i)}(r,i);const u=is(a,pi.MinusSign);return ys(r,i,u,n,o)}}function Wn(t,i,e=Pi.Format,n=!1){return function(o,s){return function Hj(t,i,e,n,o,s){switch(e){case yn.Months:return function my(t,i,e){const n=uo(t),s=os([n[Gn.MonthsFormat],n[Gn.MonthsStandalone]],i);return os(s,e)}(i,o,n)[t.getMonth()];case yn.Days:return function yI(t,i,e){const n=uo(t),s=os([n[Gn.DaysFormat],n[Gn.DaysStandalone]],i);return os(s,e)}(i,o,n)[t.getDay()];case yn.DayPeriods:const a=t.getHours(),r=t.getMinutes();if(s){const m=function Rj(t){const i=uo(t);return CI(i),(i[Gn.ExtraData][2]||[]).map(n=>"string"==typeof n?_y(n):[_y(n[0]),_y(n[1])])}(i),g=function kj(t,i,e){const n=uo(t);CI(n);const s=os([n[Gn.ExtraData][0],n[Gn.ExtraData][1]],i)||[];return os(s,e)||[]}(i,o,n),y=m.findIndex(S=>{if(Array.isArray(S)){const[x,R]=S,k=a>=x.hours&&r>=x.minutes,V=a<R.hours||a===R.hours&&r<R.minutes;if(x.hours<R.hours){if(k&&V)return!0}else if(k||V)return!0}else if(S.hours===a&&S.minutes===r)return!0;return!1});if(-1!==y)return g[y]}return function xj(t,i,e){const n=uo(t),s=os([n[Gn.DayPeriodsFormat],n[Gn.DayPeriodsStandalone]],i);return os(s,e)}(i,o,n)[a<12?0:1];case yn.Eras:return function Ej(t,i){return os(uo(t)[Gn.Eras],i)}(i,n)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(o,s,t,i,e,n)}}function bf(t){return function(i,e,n){const o=-1*n,s=is(e,pi.MinusSign),a=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Ea.Short:return(o>=0?"+":"")+ys(a,2,s)+ys(Math.abs(o%60),2,s);case Ea.ShortGMT:return"GMT"+(o>=0?"+":"")+ys(a,1,s);case Ea.Long:return"GMT"+(o>=0?"+":"")+ys(a,2,s)+":"+ys(Math.abs(o%60),2,s);case Ea.Extended:return 0===n?"Z":(o>=0?"+":"")+ys(a,2,s)+":"+ys(Math.abs(o%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}const Uj=0,vf=4;function wI(t){return _f(t.getFullYear(),t.getMonth(),t.getDate()+(vf-t.getDay()))}function gy(t,i=!1){return function(e,n){let o;if(i){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+s)/7)}else{const s=wI(e),a=function $j(t){const i=_f(t,Uj,1).getDay();return _f(t,0,1+(i<=vf?vf:vf+7)-i)}(s.getFullYear()),r=s.getTime()-a.getTime();o=1+Math.round(r/6048e5)}return ys(o,t,is(n,pi.MinusSign))}}function yf(t,i=!1){return function(e,n){return ys(wI(e).getFullYear(),t,is(n,pi.MinusSign),i)}}const by={};function SI(t,i){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function TI(t){return t instanceof Date&&!isNaN(t.valueOf())}function EI(t,i){i=encodeURIComponent(i);for(const e of t.split(";")){const n=e.indexOf("="),[o,s]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(s)}return null}const Ty=/\s+/,II=[];let Qs=(()=>{class t{constructor(e,n,o,s){this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=o,this._renderer=s,this.initialClasses=II,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Ty):II}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Ty):e}ngDoCheck(){for(const n of this.initialClasses)this._updateState(n,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const n of e)this._updateState(n,!0);else if(null!=e)for(const n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){const o=this.stateMap.get(e);void 0!==o?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){(e=e.trim()).length>0&&e.split(Ty).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static#e=this.\u0275fac=function(n){return new(n||t)(_(ns),_(Qu),_(oe),_(Co))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return t})();class aG{constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}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 qe=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o,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 n=this._viewContainer;e.forEachOperation((o,s,a)=>{if(null==o.previousIndex)n.createEmbeddedView(this._template,new aG(o.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)n.remove(null===s?void 0:s);else if(null!==s){const r=n.get(s);n.move(r,a),RI(r,o)}});for(let o=0,s=n.length;o<s;o++){const r=n.get(o).context;r.index=o,r.count=s,r.ngForOf=this._ngForOf}e.forEachIdentityChange(o=>{RI(n.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(bt),_(ns))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return t})();function RI(t,i){t.context.$implicit=i.item}let le=(()=>{class t{constructor(e,n){this._viewContainer=e,this._context=new rG,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){kI("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){kI("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,n){return!0}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(bt))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return t})();class rG{constructor(){this.$implicit=null,this.ngIf=null}}function kI(t,i){if(i&&!i.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ei(i)}'.`)}class Dy{constructor(i,e){this._viewContainerRef=i,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}}let dl=(()=>{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 n=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const n of this._defaultViews)n.enforceState(e)}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=$({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return t})(),eh=(()=>{class t{constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new Dy(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(bt),_(dl,9))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return t})(),AI=(()=>{class t{constructor(e,n,o){o._addDefault(new Dy(e,n))}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(bt),_(dl,9))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return t})(),pr=(()=>{class t{constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o,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,n){const[o,s]=e.split("."),a=-1===o.indexOf("-")?void 0:or.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,o,s?`${n}${s}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_(Qu),_(Co))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return t})(),ul=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:s,ngTemplateOutletInjector:a}=this;this._viewRef=n.createEmbeddedView(o,s,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[fe]})}return t})();function Cs(t,i){return new ee(2100,!1)}class cG{createSubscription(i,e){return uT(()=>i.subscribe({next:e,error:n=>{throw n}}))}dispose(i){uT(()=>i.unsubscribe())}}class dG{createSubscription(i,e){return i.then(e,n=>{throw n})}dispose(i){}}const uG=new dG,hG=new cG;let mr=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n))}_selectStrategy(e){if(Lu(e))return uG;if(wM(e))return hG;throw Cs()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this._ref.markForCheck())}static#e=this.\u0275fac=function(n){return new(n||t)(_(He,16))};static#t=this.\u0275pipe=Yi({name:"async",type:t,pure:!1,standalone:!0})}return t})();const bG=new Y("DATE_PIPE_DEFAULT_TIMEZONE"),vG=new Y("DATE_PIPE_DEFAULT_OPTIONS");let wf=(()=>{class t{constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,s){if(null==e||""===e||e!=e)return null;try{return hr(e,n??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a){throw Cs()}}static#e=this.\u0275fac=function(n){return new(n||t)(_(ts,16),_(bG,24),_(vG,24))};static#t=this.\u0275pipe=Yi({name:"date",type:t,pure:!0,standalone:!0})}return t})(),NI=(()=>{class t{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=FI}transform(e,n=FI){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ||(this.differ=this.differs.find(e).create());const o=this.differ.diff(e),s=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(function TG(t,i){return{key:t,value:i}}(a.key,a.currentValue))})),(o||s)&&(this.keyValues.sort(n),this.compareFn=n),this.keyValues}static#e=this.\u0275fac=function(n){return new(n||t)(_(Qu,16))};static#t=this.\u0275pipe=Yi({name:"keyvalue",type:t,pure:!1,standalone:!0})}return t})();function FI(t,i){const e=t.key,n=i.key;if(e===n)return 0;if(void 0===e)return 1;if(void 0===n)return-1;if(null===e)return 1;if(null===n)return-1;if("string"==typeof e&&"string"==typeof n)return e<n?-1:1;if("number"==typeof e&&"number"==typeof n)return e-n;if("boolean"==typeof e&&"boolean"==typeof n)return e<n?-1:1;const o=String(e),s=String(n);return o==s?0:o<s?-1:1}let ce=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();const LI="browser";function BI(t){return t===LI}function VI(t){return"server"===t}let Oy,RG=(()=>{class t{static#e=this.\u0275prov=K({token:t,providedIn:"root",factory:()=>new kG(H(Ue),window)})}return t})();class kG{constructor(i,e){this.document=i,this.window=e,this.offset=()=>[0,0]}setOffset(i){this.offset=Array.isArray(i)?()=>i:i}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(i){this.supportsScrolling()&&this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){if(!this.supportsScrolling())return;const e=function AG(t,i){const e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=n.currentNode;for(;o;){const s=o.shadowRoot;if(s){const a=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}(this.document,i);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(i){this.supportsScrolling()&&(this.window.history.scrollRestoration=i)}scrollToElement(i){const e=i.getBoundingClientRect(),n=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],o-s[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class HI{}try{Oy=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Oy=!1}let ed,Bn=(()=>{class t{constructor(e){this._platformId=e,this.isBrowser=this._platformId?BI(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&&!Oy)&&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(n){return new(n||t)(H(wa))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const zI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function WI(){if(ed)return ed;if("object"!=typeof document||!document)return ed=new Set(zI),ed;let t=document.createElement("input");return ed=new Set(zI.filter(i=>(t.setAttribute("type",i),t.type===i))),ed}let nh,Df,pl,Ry;function hl(t){return function n9(){if(null==nh&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>nh=!0}))}finally{nh=nh||!1}return nh}()?t:!!t.capture}function qI(){if(null==pl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return pl=!1,pl;if("scrollBehavior"in document.documentElement.style)pl=!0;else{const t=Element.prototype.scrollTo;pl=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return pl}function ih(){if("object"!=typeof document||!document)return 0;if(null==Df){const t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";const e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Df=0,0===t.scrollLeft&&(t.scrollLeft=1,Df=0===t.scrollLeft?1:2),t.remove()}return Df}function YI(t){if(function i9(){if(null==Ry){const t=typeof document<"u"?document.head:null;Ry=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ry}()){const i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function oh(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){const i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function fr(t){return t.composedPath?t.composedPath()[0]:t.target}function ky(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function li(t,...i){return i.length?i.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Zn(t,i,e){const n=$t(t)||i||e?{next:t,error:i,complete:e}:t;return n?qn((o,s)=>{var a;null===(a=n.subscribe)||void 0===a||a.call(n);let r=!0;o.subscribe(On(s,u=>{var m;null===(m=n.next)||void 0===m||m.call(n,u),s.next(u)},()=>{var u;r=!1,null===(u=n.complete)||void 0===u||u.call(n),s.complete()},u=>{var m;r=!1,null===(m=n.error)||void 0===m||m.call(n,u),s.error(u)},()=>{var u,m;r&&(null===(u=n.unsubscribe)||void 0===u||u.call(n)),null===(m=n.finalize)||void 0===m||m.call(n)}))}):ma}class p9 extends rt{constructor(i,e){super()}schedule(i,e=0){return this}}const If={setInterval(t,i,...e){const{delegate:n}=If;return n?.setInterval?n.setInterval(t,i,...e):setInterval(t,i,...e)},clearInterval(t){const{delegate:i}=If;return(i?.clearInterval||clearInterval)(t)},delegate:void 0};class Ny extends p9{constructor(i,e){super(i,e),this.scheduler=i,this.work=e,this.pending=!1}schedule(i,e=0){var n;if(this.closed)return this;this.state=i;const o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,e)),this.pending=!0,this.delay=e,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(s,this.id,e),this}requestAsyncId(i,e,n=0){return If.setInterval(i.flush.bind(i,this),n)}recycleAsyncId(i,e,n=0){if(null!=n&&this.delay===n&&!1===this.pending)return e;null!=e&&If.clearInterval(e)}execute(i,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(i,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(i,e){let o,n=!1;try{this.work(i)}catch(s){n=!0,o=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:i,scheduler:e}=this,{actions:n}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ec(n,this),null!=i&&(this.id=this.recycleAsyncId(e,i,null)),this.delay=null,super.unsubscribe()}}}class rh{constructor(i,e=rh.now){this.schedulerActionCtor=i,this.now=e}schedule(i,e=0,n){return new this.schedulerActionCtor(this,i).schedule(n,e)}}rh.now=oy.now;class Fy extends rh{constructor(i,e=rh.now){super(i,e),this.actions=[],this._active=!1}flush(i){const{actions:e}=this;if(this._active)return void e.push(i);let n;this._active=!0;do{if(n=i.execute(i.state,i.delay))break}while(i=e.shift());if(this._active=!1,n){for(;i=e.shift();)i.unsubscribe();throw n}}}const Of=new Fy(Ny),m9=Of;function Rf(t,i=Of){return qn((e,n)=>{let o=null,s=null,a=null;const r=()=>{if(o){o.unsubscribe(),o=null;const m=s;s=null,n.next(m)}};function u(){const m=a+t,g=i.now();if(g<m)return o=this.schedule(void 0,m-g),void n.add(o);r()}e.subscribe(On(n,m=>{s=m,a=i.now(),o||(o=i.schedule(u,t),n.add(o))},()=>{r(),n.complete()},void 0,()=>{s=o=null}))})}function st(t,i){return qn((e,n)=>{let o=0;e.subscribe(On(n,s=>t.call(i,s,o++)&&n.next(s)))})}function kf(t){return st((i,e)=>t<=e)}function Se(t){return qn((i,e)=>{yi(t).subscribe(On(e,()=>e.complete(),Yd)),!e.closed&&i.subscribe(e)})}function pe(t){return null!=t&&"false"!=`${t}`}function ci(t,i=0){return QI(t)?Number(t):i}function QI(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Af(t){return Array.isArray(t)?t:[t]}function Di(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Oa(t){return t instanceof oe?t.nativeElement:t}function ZI(t,i=/\s+/){const e=[];if(null!=t){const n=Array.isArray(t)?t:`${t}`.split(i);for(const o of n){const s=`${o}`.trim();s&&e.push(s)}}return e}let KI=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),f9=(()=>{class t{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){const n=Oa(e);return new dn(o=>{const a=this._observeElement(n).subscribe(o);return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const n=new re,o=this._mutationObserverFactory.create(s=>n.next(s));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,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:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static#e=this.\u0275fac=function(n){return new(n||t)(H(KI))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Pf=(()=>{class t{get disabled(){return this._disabled}set disabled(e){this._disabled=pe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ci(e),this._subscribe()}constructor(e,n,o){this._contentObserver=e,this._elementRef=n,this._ngZone=o,this.event=new W,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(Rf(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)(_(f9),_(oe),_(be))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),lh=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({providers:[KI]})}return t})();function ml(...t){const i=Zd(t),e=Pp(t),{args:n,keys:o}=aI(t);if(0===n.length)return wi([],i);const s=new dn(function _9(t,i,e=ma){return n=>{XI(i,()=>{const{length:o}=t,s=new Array(o);let a=o,r=o;for(let u=0;u<o;u++)XI(i,()=>{const m=wi(t[u],i);let g=!1;m.subscribe(On(n,y=>{s[u]=y,g||(g=!0,r--),r||n.next(e(s.slice()))},()=>{--a||n.complete()}))},n)},n)}}(n,i,o?a=>rI(o,a):ma));return e?s.pipe(ny(e)):s}function XI(t,i,e){t?fa(e,t,i):i()}function jt(...t){const i=Zd(t);return qn((e,n)=>{(i?lr(t,e,i):lr(t,e)).subscribe(n)})}const JI=new Set;let fl,g9=(()=>{class t{constructor(e,n){this._platform=e,this._nonce=n,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v9}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function b9(t,i){if(!JI.has(t))try{fl||(fl=document.createElement("style"),i&&(fl.nonce=i),fl.setAttribute("type","text/css"),document.head.appendChild(fl)),fl.sheet&&(fl.sheet.insertRule(`@media ${t} {body{ }}`,0),JI.add(t))}catch(e){console.error(e)}}(e,this._nonce),this._matchMedia(e)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Bn),H(Ib,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function v9(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Ra=(()=>{class t{constructor(e,n){this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new re}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eO(Af(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let s=ml(eO(Af(e)).map(a=>this._registerQuery(a).observable));return s=lr(s.pipe(Xe(1)),s.pipe(kf(1),Rf(0))),s.pipe(Le(a=>{const r={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:m})=>{r.matches=r.matches||u,r.breakpoints[m]=u}),r}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const n=this._mediaMatcher.matchMedia(e),s={observable:new dn(a=>{const r=u=>this._zone.run(()=>a.next(u));return n.addListener(r),()=>{n.removeListener(r)}}).pipe(jt(n),Le(({matches:a})=>({query:e,matches:a})),Se(this._destroySubject)),mql:n};return this._queries.set(e,s),s}static#e=this.\u0275fac=function(n){return new(n||t)(H(g9),H(be))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eO(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function Nf(t,i){return(t.getAttribute(i)||"").match(/\S+/g)||[]}const iO="cdk-describedby-message",Ff="cdk-describedby-host";let Ly=0,oO=(()=>{class t{constructor(e,n){this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Ly++,this._document=e,this._id=he(Tu)+"-"+Ly++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;const s=By(n,o);"string"!=typeof n?(sO(n,this._id),this._messageRegistry.set(s,{messageElement:n,referenceCount:0})):this._messageRegistry.has(s)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,s)||this._addMessageReference(e,s)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;const s=By(n,o);if(this._isElementDescribedByMessage(e,s)&&this._removeMessageReference(e,s),"string"==typeof n){const a=this._messageRegistry.get(s);a&&0===a.referenceCount&&this._deleteMessageElement(s)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const e=this._document.querySelectorAll(`[${Ff}="${this._id}"]`);for(let n=0;n<e.length;n++)this._removeCdkDescribedByReferenceIds(e[n]),e[n].removeAttribute(Ff);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,n){const o=this._document.createElement("div");sO(o,this._id),o.textContent=e,n&&o.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(o),this._messageRegistry.set(By(e,n),{messageElement:o,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;const e="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let s=0;s<n.length;s++)n[s].remove();const o=this._document.createElement("div");o.style.visibility="hidden",o.classList.add(e),o.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&o.setAttribute("platform","server"),this._document.body.appendChild(o),this._messagesContainer=o}_removeCdkDescribedByReferenceIds(e){const n=Nf(e,"aria-describedby").filter(o=>0!=o.indexOf(iO));e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){const o=this._messageRegistry.get(n);(function y9(t,i,e){const n=Nf(t,i);n.some(o=>o.trim()==e.trim())||(n.push(e.trim()),t.setAttribute(i,n.join(" ")))})(e,"aria-describedby",o.messageElement.id),e.setAttribute(Ff,this._id),o.referenceCount++}_removeMessageReference(e,n){const o=this._messageRegistry.get(n);o.referenceCount--,function C9(t,i,e){const o=Nf(t,i).filter(s=>s!=e.trim());o.length?t.setAttribute(i,o.join(" ")):t.removeAttribute(i)}(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Ff)}_isElementDescribedByMessage(e,n){const o=Nf(e,"aria-describedby"),s=this._messageRegistry.get(n),a=s&&s.messageElement.id;return!!a&&-1!=o.indexOf(a)}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&"object"==typeof n)return!0;const o=null==n?"":`${n}`.trim(),s=e.getAttribute("aria-label");return!(!o||s&&s.trim()===o)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(Bn))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function By(t,i){return"string"==typeof t?`${i||""}/${t}`:t}function sO(t,i){t.id||(t.id=`${iO}-${i}-${Ly++}`)}class aO{constructor(i){this._items=i,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new re,this._typeaheadSubscription=rt.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 re,this.change=new re,i instanceof ar&&(this._itemChangesSubscription=i.changes.subscribe(e=>{if(this._activeItem){const o=e.toArray().indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}))}skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Zn(e=>this._pressedLetters.push(e)),Rf(i),st(()=>this._pressedLetters.length>0),Le(()=>this._pressedLetters.join(""))).subscribe(e=>{const n=this._getItemsArray();for(let o=1;o<n.length+1;o++){const s=(this._activeItemIndex+o)%n.length,a=n[s];if(!this._skipPredicateFn(a)&&0===a.getLabel().toUpperCase().trim().indexOf(e)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){const e=this._activeItem;this.updateActiveItem(i),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(i){const e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!i[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&o){this.setNextItemActive();break}return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&o){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&o){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}return;case 33:if(this._pageUpAndDown.enabled&&o){const s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}return;case 34:if(this._pageUpAndDown.enabled&&o){const s=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(s<a?s:a-1,-1);break}return;default:return void((o||li(i,"shiftKey"))&&(i.key&&1===i.key.length?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],i.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(i){const e=this._getItemsArray(),n="number"==typeof i?i:e.indexOf(i);this._activeItem=e[n]??null,this._activeItemIndex=n}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(i){this._wrap?this._setActiveInWrapMode(i):this._setActiveInDefaultMode(i)}_setActiveInWrapMode(i){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const o=(this._activeItemIndex+i*n+e.length)%e.length;if(!this._skipPredicateFn(e[o]))return void this.setActiveItem(o)}}_setActiveInDefaultMode(i){this._setActiveItemByIndex(this._activeItemIndex+i,i)}_setActiveItemByIndex(i,e){const n=this._getItemsArray();if(n[i]){for(;this._skipPredicateFn(n[i]);)if(!n[i+=e])return;this.setActiveItem(i)}}_getItemsArray(){return this._items instanceof ar?this._items.toArray():this._items}}class rO extends aO{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}}class Lf extends aO{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}}let ch=(()=>{class t{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function S9(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 n=function w9(t){try{return t.frameElement}catch{return null}}(function R9(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}(e));if(n&&(-1===cO(n)||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),s=cO(e);return e.hasAttribute("contenteditable")?-1!==s:!("iframe"===o||"object"===o||this._platform.WEBKIT&&this._platform.IOS&&!function I9(t){let i=t.nodeName.toLowerCase(),e="input"===i&&t.type;return"text"===e||"password"===e||"select"===i||"textarea"===i}(e))&&("audio"===o?!!e.hasAttribute("controls")&&-1!==s:"video"===o?-1!==s&&(null!==s||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,n){return function O9(t){return!function D9(t){return function x9(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function T9(t){let i=t.nodeName.toLowerCase();return"input"===i||"select"===i||"button"===i||"textarea"===i}(t)||function M9(t){return function E9(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||lO(t))}(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static#e=this.\u0275fac=function(n){return new(n||t)(H(Bn))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lO(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let i=t.getAttribute("tabindex");return!(!i||isNaN(parseInt(i,10)))}function cO(t){if(!lO(t))return null;const i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}class dO{get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}constructor(i,e,n,o,s=!1){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){const i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.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(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){const e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return"start"==i?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){const e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){const e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=0;n<e.length;n++){const o=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(o)return o}return null}_getLastTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;const e=i.children;for(let n=e.length-1;n>=0;n--){const o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){const i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._ngZone.isStable?i():this._ngZone.onStable.pipe(Xe(1)).subscribe(i)}}let dh=(()=>{class t{constructor(e,n,o){this._checker=e,this._ngZone=n,this._document=o}create(e,n=!1){return new dO(e,this._checker,this._ngZone,this._document,n)}static#e=this.\u0275fac=function(n){return new(n||t)(H(ch),H(be),H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),k9=(()=>{class t{get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=pe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=pe(e)}constructor(e,n,o){this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=oh(),this.focusTrap.focusInitialElementWhenReady()}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_(dh),_(Ue))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[fe]})}return t})();function Vy(t){return 0===t.buttons||0===t.detail}function Hy(t){const i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}const A9=new Y("cdk-input-modality-detector-options"),P9={ignoreKeys:[18,17,224,91,16]},td=hl({passive:!0,capture:!0});let N9=(()=>{class t{get mostRecentModality(){return this._modality.value}constructor(e,n,o,s){this._platform=e,this._mostRecentTarget=null,this._modality=new ii(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(r=>r===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=fr(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Vy(a)?"keyboard":"mouse"),this._mostRecentTarget=fr(a))},this._onTouchstart=a=>{Hy(a)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=fr(a))},this._options={...P9,...s},this.modalityDetected=this._modality.pipe(kf(1)),this.modalityChanged=this.modalityDetected.pipe(zr()),e.isBrowser&&n.runOutsideAngular(()=>{o.addEventListener("keydown",this._onKeydown,td),o.addEventListener("mousedown",this._onMousedown,td),o.addEventListener("touchstart",this._onTouchstart,td)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,td),document.removeEventListener("mousedown",this._onMousedown,td),document.removeEventListener("touchstart",this._onTouchstart,td))}static#e=this.\u0275fac=function(n){return new(n||t)(H(Bn),H(be),H(Ue),H(A9,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const F9=new Y("liveAnnouncerElement",{providedIn:"root",factory:function L9(){return null}}),B9=new Y("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let V9=0,Uy=(()=>{class t{constructor(e,n,o,s){this._ngZone=n,this._defaultOptions=s,this._document=o,this._liveElement=e||this._createLiveElement()}announce(e,...n){const o=this._defaultOptions;let s,a;return 1===n.length&&"number"==typeof n[0]?a=n[0]:[s,a]=n,this.clear(),clearTimeout(this._previousTimeout),s||(s=o&&o.politeness?o.politeness:"polite"),null==a&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",s),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(r=>this._currentResolve=r)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,"number"==typeof a&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let s=0;s<n.length;s++)n[s].remove();return o.classList.add(e),o.classList.add("cdk-visually-hidden"),o.setAttribute("aria-atomic","true"),o.setAttribute("aria-live","polite"),o.id="cdk-live-announcer-"+V9++,this._document.body.appendChild(o),o}_exposeAnnouncerToModals(e){const n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o<n.length;o++){const s=n[o],a=s.getAttribute("aria-owns");a?-1===a.indexOf(e)&&s.setAttribute("aria-owns",a+" "+e):s.setAttribute("aria-owns",e)}}static#e=this.\u0275fac=function(n){return new(n||t)(H(F9,8),H(be),H(Ue),H(B9,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const H9=new Y("cdk-focus-monitor-default-options"),Bf=hl({passive:!0,capture:!0});let $i=(()=>{class t{constructor(e,n,o,s,a){this._ngZone=e,this._platform=n,this._inputModalityDetector=o,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 re,this._rootNodeFocusAndBlurListener=r=>{for(let m=fr(r);m;m=m.parentElement)"focus"===r.type?this._onFocus(r,m):this._onBlur(r,m)},this._document=s,this._detectionMode=a?.detectionMode||0}monitor(e,n=!1){const o=Oa(e);if(!this._platform.isBrowser||1!==o.nodeType)return ve();const s=YI(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;const r={checkChildren:n,subject:new re,rootNode:s};return this._elementInfo.set(o,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(e){const n=Oa(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){const s=Oa(e);s===this._getDocument().activeElement?this._getClosestElementsInfo(s).forEach(([r,u])=>this._originChanged(r,n,u)):(this._setOrigin(n),"function"==typeof s.focus&&s.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_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 1===this._detectionMode||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused","touch"===n),e.classList.toggle("cdk-keyboard-focused","keyboard"===n),e.classList.toggle("cdk-mouse-focused","mouse"===n),e.classList.toggle("cdk-program-focused","program"===n)}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&n,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,n){const o=this._elementInfo.get(n),s=fr(e);!o||!o.checkChildren&&n!==s||this._originChanged(n,this._getFocusOrigin(s),o)}_onBlur(e,n){const o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,Bf),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,Bf)}),this._rootNodeFocusListenerCount.set(n,o+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Se(this._stopInputModalityDetector)).subscribe(s=>{this._setOrigin(s,!0)}))}_removeGlobalListeners(e){const n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){const o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bf),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bf),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){const n=[];return this._elementInfo.forEach((o,s)=>{(s===e||o.checkChildren&&s.contains(e))&&n.push([s,o])}),n}_isLastInteractionFromInputLabel(e){const{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if("mouse"!==o||!n||n===e||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.disabled)return!1;const s=e.labels;if(s)for(let a=0;a<s.length;a++)if(s[a].contains(n))return!0;return!1}static#e=this.\u0275fac=function(n){return new(n||t)(H(be),H(Bn),H(N9),H(Ue,8),H(H9,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$y=(()=>{class t{constructor(e,n){this._elementRef=e,this._focusMonitor=n,this._focusOrigin=null,this.cdkFocusChange=new W}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_($i))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();const hO="cdk-high-contrast-black-on-white",pO="cdk-high-contrast-white-on-black",jy="cdk-high-contrast-active";let mO=(()=>{class t{constructor(e,n){this._platform=e,this._document=n,this._breakpointSubscription=he(Ra).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,s=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),s){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(jy,hO,pO),this._hasCheckedHighContrastMode=!0;const n=this.getHighContrastMode();1===n?e.add(jy,hO):2===n&&e.add(jy,pO)}}static#e=this.\u0275fac=function(n){return new(n||t)(H(Bn),H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vf=(()=>{class t{constructor(e){e._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(n){return new(n||t)(H(mO))};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[lh]})}return t})();const U9=new Y("cdk-dir-doc",{providedIn:"root",factory:function $9(){return he(Ue)}}),j9=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Kn=(()=>{class t{constructor(e){this.value="ltr",this.change=new W,e&&(this.value=function G9(t){const i=t?.toLowerCase()||"";return"auto"===i&&typeof navigator<"u"&&navigator?.language?j9.test(navigator.language)?"rtl":"ltr":"rtl"===i?"rtl":"ltr"}((e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(n){return new(n||t)(H(U9,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uh=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();function z9(t,i){if(1&t&&D(0,"mat-pseudo-checkbox",4),2&t){const e=b();f("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function W9(t,i){if(1&t&&(l(0,"span",5),h(1),d()),2&t){const e=b();c(1),T("(",e.group.label,")")}}const q9=["*"];let Y9=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Q9=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const K9=new Y("mat-sanity-checks",{providedIn:"root",factory:function Z9(){return!0}});let ze=(()=>{class t{constructor(e,n,o){this._sanityChecks=n,this._document=o,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!ky()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return t.\u0275fac=function(e){return new(e||t)(H(mO),H(K9,8),H(Ue))},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[uh,uh]}),t})();function Ss(t){return class extends t{constructor(...i){super(...i),this._disabled=!1}get disabled(){return this._disabled}set disabled(i){this._disabled=pe(i)}}}function Ts(t,i){return class extends t{constructor(...e){super(...e),this.defaultColor=i,this.color=i}get color(){return this._color}set color(e){const n=e||this.defaultColor;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),n&&this._elementRef.nativeElement.classList.add(`mat-${n}`),this._color=n)}}}function as(t){return class extends t{constructor(...i){super(...i),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(i){this._disableRipple=pe(i)}}}function _l(t,i=0){return class extends t{constructor(...e){super(...e),this._tabIndex=i,this.defaultTabIndex=i}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?ci(e):this.defaultTabIndex}}}function Hf(t){return class extends t{constructor(...i){super(...i),this.errorState=!1}updateErrorState(){const i=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==i&&(this.errorState=s,this.stateChanges.next())}}}function gO(t){return class extends t{constructor(...i){super(...i),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new dn(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(i){i.next(),i.complete()}}}const X9=new Y("MAT_DATE_LOCALE",{providedIn:"root",factory:function J9(){return he(ts)}});class mi{constructor(){this._localeChanges=new re,this.localeChanges=this._localeChanges}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return null==i||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}}const Js=new Y("mat-date-formats"),ez=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gy(t,i){const e=Array(t);for(let n=0;n<t;n++)e[n]=i(n);return e}let tz=(()=>{class t extends mi{constructor(e,n){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Gy(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gy(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){const n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Gy(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){const n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let s=this._createDateWithOverflow(e,n,o);return s.getMonth(),s}today(){return new Date}parse(e,n){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const o=new Intl.DateTimeFormat(this.locale,{...n,timeZone:"utc"});return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,12*n)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(ez.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,n,o){const s=new Date;return s.setFullYear(e,n,o),s.setHours(0,0,0,0),s}_2digit(e){return("00"+e).slice(-2)}_format(e,n){const o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}}return t.\u0275fac=function(e){return new(e||t)(H(X9,8),H(Bn))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})();const nz={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let iz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[{provide:mi,useClass:tz}]}),t})(),oz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[{provide:Js,useValue:nz}],imports:[iz]}),t})(),_r=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Uf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})();class rz{constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const bO={enterDuration:225,exitDuration:150},zy=hl({passive:!0}),vO=["mousedown","touchstart"],yO=["mouseup","mouseleave","touchend","touchcancel"];class CO{constructor(i,e,n,o){this._target=i,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Oa(n))}fadeInRipple(i,e,n={}){const o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...bO,...n.animation};n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);const a=n.radius||function cz(t,i,e){const n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}(i,e,o),r=i-o.left,u=e-o.top,m=s.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=r-a+"px",g.style.top=u-a+"px",g.style.height=2*a+"px",g.style.width=2*a+"px",null!=n.color&&(g.style.backgroundColor=n.color),g.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(g);const y=window.getComputedStyle(g),x=y.transitionDuration,R="none"===y.transitionProperty||"0s"===x||"0s, 0s"===x,k=new rz(this,g,n,R);g.style.transform="scale3d(1, 1, 1)",k.state=0,n.persistent||(this._mostRecentTransientRipple=k);let V=null;return!R&&(m||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const q=()=>this._finishRippleTransition(k),j=()=>this._destroyRipple(k);g.addEventListener("transitionend",q),g.addEventListener("transitioncancel",j),V={onTransitionEnd:q,onTransitionCancel:j}}),this._activeRipples.set(k,V),(R||!m)&&this._finishRippleTransition(k),k}fadeOutRipple(i){if(2===i.state||3===i.state)return;const e=i.element,n={...bO,...i.config.animation};e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=2,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){const e=Oa(i);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(vO))}handleEvent(i){"mousedown"===i.type?this._onMousedown(i):"touchstart"===i.type?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(yO),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){0===i.state?this._startFadeOutTransition(i):2===i.state&&this._destroyRipple(i)}_startFadeOutTransition(i){const e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=1,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){const e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=3,null!==e&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel)),i.element.remove()}_onMousedown(i){const e=Vy(i),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!e&&!n&&(this._isPointerDown=!0,this.fadeInRipple(i.clientX,i.clientY,this._target.rippleConfig))}_onTouchStart(i){if(!this._target.rippleDisabled&&!Hy(i)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=i.changedTouches;for(let n=0;n<e.length;n++)this.fadeInRipple(e[n].clientX,e[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(i=>{!i.config.persistent&&(1===i.state||i.config.terminateOnPointerUp&&0===i.state)&&i.fadeOut()}))}_registerEvents(i){this._ngZone.runOutsideAngular(()=>{i.forEach(e=>{this._triggerElement.addEventListener(e,this,zy)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(vO.forEach(i=>{this._triggerElement.removeEventListener(i,this,zy)}),this._pointerUpEventsRegistered&&yO.forEach(i=>{this._triggerElement.removeEventListener(i,this,zy)}))}}const wO=new Y("mat-ripple-global-options");let Bo=(()=>{class t{constructor(e,n,o,s,a){this._elementRef=e,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new CO(this,n,e,o)}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()}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,n=0,o){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,n,{...this.rippleConfig,...o}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...e})}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(Bn),_(wO,8),_(Fn,8))},t.\u0275dir=$({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,n){2&e&&de("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),t})(),ka=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})(),SO=(()=>{class t{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,n){2&e&&de("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,n){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),t})(),Wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze]}),t})();const qy=new Y("MAT_OPTION_PARENT_COMPONENT"),Yy=new Y("MatOptgroup");let dz=0;class TO{constructor(i,e=!1){this.source=i,this.isUserInput=e}}let uz=(()=>{class t{constructor(e,n,o,s){this._element=e,this._changeDetectorRef=n,this._parent=o,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+dz++,this.onSelectionChange=new W,this._stateChanges=new re}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=pe(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,n){const o=this._getHostElement();"function"==typeof o.focus&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!li(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new TO(this,e))}}return t.\u0275fac=function(e){zs()},t.\u0275dir=$({type:t,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Ft=(()=>{class t extends uz{constructor(e,n,o,s){super(e,n,o,s)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(qy,8),_(Yy,8))},t.\u0275cmp=U({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,n){1&e&&M("click",function(){return n._selectViaInteraction()})("keydown",function(s){return n._handleKeydown(s)}),2&e&&(Qn("id",n.id),J("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),de("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[te],ngContentSelectors:q9,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,n){1&e&&(Dt(),p(0,z9,1,2,"mat-pseudo-checkbox",0),l(1,"span",1),$e(2),d(),p(3,W9,2,1,"span",2),D(4,"div",3)),2&e&&(f("ngIf",n.multiple),c(3),f("ngIf",n.group&&n.group._inert),c(1),f("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Bo,le,SO],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),t})();function Qy(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),s=0;for(let a=0;a<t+1;a++)n[a].group&&n[a].group===o[s]&&s++;return s}return 0}function DO(t,i,e,n){return t<e?t:t+i>e+n?Math.max(0,t-n+i):e}let Gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ka,ce,ze,Wy]}),t})();function Aa(t,i){const e=$t(t)?t:()=>t,n=o=>o.error(e());return new dn(i?o=>i.schedule(n,0,o):n)}function Ji(t){return qn((i,e)=>{let s,n=null,o=!1;n=i.subscribe(On(e,void 0,void 0,a=>{s=yi(t(a,Ji(t)(i))),n?(n.unsubscribe(),n=null,s.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,s.subscribe(e))})}function nd(t){return qn((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}class $f{}class jf{}class rs{constructor(i){this.normalizedNames=new Map,this.lazyUpdate=null,i?"string"==typeof i?this.lazyInit=()=>{this.headers=new Map,i.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const o=e.slice(0,n),s=o.toLowerCase(),a=e.slice(n+1).trim();this.maybeSetNormalizedName(o,s),this.headers.has(s)?this.headers.get(s).push(a):this.headers.set(s,[a])}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.setHeaderEntries(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();const e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof rs?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){const e=new rs;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof rs?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){const e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(i.name,e);const o=("a"===i.op?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":const s=i.value;if(s){let a=this.headers.get(e);if(!a)return;a=a.filter(r=>-1===s.indexOf(r)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}setHeaderEntries(i,e){const n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}}class hz{encodeKey(i){return MO(i)}encodeValue(i){return MO(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}}const mz=/%(\d[a-f0-9])/gi,fz={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function MO(t){return encodeURIComponent(t).replace(mz,(i,e)=>fz[e]??i)}function Gf(t){return`${t}`}class gr{constructor(i={}){if(this.updates=null,this.cloneFrom=null,this.encoder=i.encoder||new hz,i.fromString){if(i.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pz(t,i){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const s=o.indexOf("="),[a,r]=-1==s?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,s)),i.decodeValue(o.slice(s+1))],u=e.get(a)||[];u.push(r),e.set(a,u)}),e}(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{const n=i.fromObject[e],o=Array.isArray(n)?n.map(Gf):[Gf(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();const e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){const e=[];return Object.keys(i).forEach(n=>{const o=i[n];Array.isArray(o)?o.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{const e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>""!==i).join("&")}clone(i){const e=new gr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":const e=("a"===i.op?this.map.get(i.param):void 0)||[];e.push(Gf(i.value)),this.map.set(i.param,e);break;case"d":if(void 0===i.value){this.map.delete(i.param);break}{let n=this.map.get(i.param)||[];const o=n.indexOf(Gf(i.value));-1!==o&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}}}),this.cloneFrom=this.updates=null)}}class _z{constructor(){this.map=new Map}set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}}function xO(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function EO(t){return typeof Blob<"u"&&t instanceof Blob}function IO(t){return typeof FormData<"u"&&t instanceof FormData}class ph{constructor(i,e,n,o){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=i.toUpperCase(),function gz(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==n?n:null,s=o):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new rs),this.context||(this.context=new _z),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const r=e.indexOf("?");this.urlWithParams=e+(-1===r?"?":r<e.length-1?"&":"")+a}}else this.params=new gr,this.urlWithParams=e}serializeBody(){return null===this.body?null:xO(this.body)||EO(this.body)||IO(this.body)||function bz(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof gr?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||IO(this.body)?null:EO(this.body)?this.body.type||null:xO(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof gr?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(i={}){const e=i.method||this.method,n=i.url||this.url,o=i.responseType||this.responseType,s=void 0!==i.body?i.body:this.body,a=void 0!==i.withCredentials?i.withCredentials:this.withCredentials,r=void 0!==i.reportProgress?i.reportProgress:this.reportProgress;let u=i.headers||this.headers,m=i.params||this.params;const g=i.context??this.context;return void 0!==i.setHeaders&&(u=Object.keys(i.setHeaders).reduce((y,S)=>y.set(S,i.setHeaders[S]),u)),i.setParams&&(m=Object.keys(i.setParams).reduce((y,S)=>y.set(S,i.setParams[S]),m)),new ph(e,n,s,{params:m,headers:u,context:g,reportProgress:r,responseType:o,withCredentials:a})}}var id=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}(id||{});class Zy{constructor(i,e=200,n="OK"){this.headers=i.headers||new rs,this.status=void 0!==i.status?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.ok=this.status>=200&&this.status<300}}class Ky extends Zy{constructor(i={}){super(i),this.type=id.ResponseHeader}clone(i={}){return new Ky({headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class od extends Zy{constructor(i={}){super(i),this.type=id.Response,this.body=void 0!==i.body?i.body:null}clone(i={}){return new od({body:void 0!==i.body?i.body:this.body,headers:i.headers||this.headers,status:void 0!==i.status?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}}class OO extends Zy{constructor(i){super(i,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${i.url||"(unknown url)"}`:`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}}function Xy(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ee=(()=>{class t{constructor(e){this.handler=e}request(e,n,o={}){let s;if(e instanceof ph)s=e;else{let u,m;u=o.headers instanceof rs?o.headers:new rs(o.headers),o.params&&(m=o.params instanceof gr?o.params:new gr({fromObject:o.params})),s=new ph(e,n,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const a=ve(s).pipe(ll(u=>this.handler.handle(u)));if(e instanceof ph||"events"===o.observe)return a;const r=a.pipe(st(u=>u instanceof od));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(Le(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return r.pipe(Le(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return r.pipe(Le(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return r.pipe(Le(u=>u.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:(new gr).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,Xy(o,n))}post(e,n,o={}){return this.request("POST",e,Xy(o,n))}put(e,n,o={}){return this.request("PUT",e,Xy(o,n))}static#e=this.\u0275fac=function(n){return new(n||t)(H($f))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function AO(t,i){return i(t)}function yz(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}const wz=new Y(""),mh=new Y(""),PO=new Y("");function Sz(){let t=null;return(i,e)=>{null===t&&(t=(he(wz,{optional:!0})??[]).reduceRight(yz,AO));const n=he(ef),o=n.add();return t(i,e).pipe(nd(()=>n.remove(o)))}}let NO=(()=>{class t extends $f{constructor(e,n){super(),this.backend=e,this.injector=n,this.chain=null,this.pendingTasks=he(ef)}handle(e){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(mh),...this.injector.get(PO,[])]));this.chain=o.reduceRight((s,a)=>function Cz(t,i,e){return(n,o)=>e.runInContext(()=>i(n,s=>t(s,o)))}(s,a,this.injector),AO)}const n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(nd(()=>this.pendingTasks.remove(n)))}static#e=this.\u0275fac=function(n){return new(n||t)(H(jf),H(co))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();const xz=/^\)\]\}',?\n/;let LO=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new ee(-2800,!1);const n=this.xhrFactory;return(n.\u0275loadImpl?wi(n.\u0275loadImpl()):ve(null)).pipe(oi(()=>new dn(s=>{const a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((k,V)=>a.setRequestHeader(k,V.join(","))),e.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const k=e.detectContentTypeHeader();null!==k&&a.setRequestHeader("Content-Type",k)}if(e.responseType){const k=e.responseType.toLowerCase();a.responseType="json"!==k?k:"text"}const r=e.serializeBody();let u=null;const m=()=>{if(null!==u)return u;const k=a.statusText||"OK",V=new rs(a.getAllResponseHeaders()),q=function Ez(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(a)||e.url;return u=new Ky({headers:V,status:a.status,statusText:k,url:q}),u},g=()=>{let{headers:k,status:V,statusText:q,url:j}=m(),ie=null;204!==V&&(ie=typeof a.response>"u"?a.responseText:a.response),0===V&&(V=ie?200:0);let se=V>=200&&V<300;if("json"===e.responseType&&"string"==typeof ie){const De=ie;ie=ie.replace(xz,"");try{ie=""!==ie?JSON.parse(ie):null}catch(Ge){ie=De,se&&(se=!1,ie={error:Ge,text:ie})}}se?(s.next(new od({body:ie,headers:k,status:V,statusText:q,url:j||void 0})),s.complete()):s.error(new OO({error:ie,headers:k,status:V,statusText:q,url:j||void 0}))},y=k=>{const{url:V}=m(),q=new OO({error:k,status:a.status||0,statusText:a.statusText||"Unknown Error",url:V||void 0});s.error(q)};let S=!1;const x=k=>{S||(s.next(m()),S=!0);let V={type:id.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(V.total=k.total),"text"===e.responseType&&a.responseText&&(V.partialText=a.responseText),s.next(V)},R=k=>{let V={type:id.UploadProgress,loaded:k.loaded};k.lengthComputable&&(V.total=k.total),s.next(V)};return a.addEventListener("load",g),a.addEventListener("error",y),a.addEventListener("timeout",y),a.addEventListener("abort",y),e.reportProgress&&(a.addEventListener("progress",x),null!==r&&a.upload&&a.upload.addEventListener("progress",R)),a.send(r),s.next({type:id.Sent}),()=>{a.removeEventListener("error",y),a.removeEventListener("abort",y),a.removeEventListener("load",g),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",x),null!==r&&a.upload&&a.upload.removeEventListener("progress",R)),a.readyState!==a.DONE&&a.abort()}})))}static#e=this.\u0275fac=function(n){return new(n||t)(H(HI))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();const Jy=new Y("XSRF_ENABLED"),BO=new Y("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),VO=new Y("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class HO{}let Rz=(()=>{class t{constructor(e,n,o){this.doc=e,this.platform=n,this.cookieName=o,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=EI(e,this.cookieName),this.lastCookieString=e),this.lastToken}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(wa),H(BO))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function kz(t,i){const e=t.url.toLowerCase();if(!he(Jy)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return i(t);const n=he(HO).getToken(),o=he(VO);return null!=n&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),i(t)}var br=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}(br||{});const UO=new Y("LEGACY_INTERCEPTOR_FN");class Hz extends bj{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class eC extends Hz{static makeCurrent(){!function gj(t){uy||(uy=t)}(new eC)}onAndCancel(i,e,n){return i.addEventListener(e,n),()=>{i.removeEventListener(e,n)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.parentNode&&i.parentNode.removeChild(i)}createElement(i,e){return(e=e||this.getDefaultDocument()).createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return"window"===e?window:"document"===e?i:"body"===e?i.body:null}getBaseHref(i){const e=function Uz(){return fh=fh||document.querySelector("base"),fh?fh.getAttribute("href"):null}();return null==e?null:function $z(t){Wf=Wf||document.createElement("a"),Wf.setAttribute("href",t);const i=Wf.pathname;return"/"===i.charAt(0)?i:`/${i}`}(e)}resetBaseElement(){fh=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return EI(document.cookie,i)}}let Wf,fh=null,Gz=(()=>{class t{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();const tC=new Y("EventManagerPlugins");let $O=(()=>{class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,o){return this._findPluginFor(n).addEventListener(e,n,o)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new ee(5101,!1);return this._eventNameToPlugin.set(e,n),n}static#e=this.\u0275fac=function(n){return new(n||t)(H(tC),H(be))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class jO{constructor(i){this._doc=i}}const nC="ng-app-id";let GO=(()=>{class t{constructor(e,n,o,s={}){this.doc=e,this.appId=n,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=VI(s),this.resetHostNodes()}addStyles(e){for(const n of e)1===this.changeUsageCount(n,1)&&this.onStyleAdded(n)}removeStyles(e){for(const n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(const n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){const n=this.styleRef;n.get(e)?.elements?.forEach(o=>o.remove()),n.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${nC}="${this.appId}"]`);if(e?.length){const n=new Map;return e.forEach(o=>{null!=o.textContent&&n.set(o.textContent,o)}),n}return null}changeUsageCount(e,n){const o=this.styleRef;if(o.has(e)){const s=o.get(e);return s.usage+=n,s.usage}return o.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){const o=this.styleNodesInDOM,s=o?.get(n);if(s?.parentNode===e)return o.delete(n),s.removeAttribute(nC),s;{const a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(nC,this.appId),a}}addStyleToHost(e,n){const o=this.getStyleElement(e,n);e.appendChild(o);const s=this.styleRef,a=s.get(n)?.elements;a?a.push(o):s.set(n,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(Tu),H(Ib,8),H(wa))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();const iC={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/"},oC=/%COMP%/g,Yz=new Y("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function WO(t,i){return i.map(e=>e.replace(oC,t))}let sC=(()=>{class t{constructor(e,n,o,s,a,r,u,m=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=r,this.ngZone=u,this.nonce=m,this.rendererByCompId=new Map,this.platformIsServer=VI(r),this.defaultRenderer=new aC(e,a,u,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===Yo.ShadowDom&&(n={...n,encapsulation:Yo.Emulated});const o=this.getOrCreateRenderer(e,n);return o instanceof YO?o.applyToHost(e):o instanceof rC&&o.applyStyles(),o}getOrCreateRenderer(e,n){const o=this.rendererByCompId;let s=o.get(n.id);if(!s){const a=this.doc,r=this.ngZone,u=this.eventManager,m=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(n.encapsulation){case Yo.Emulated:s=new YO(u,m,n,this.appId,g,a,r,y);break;case Yo.ShadowDom:return new Xz(u,m,e,n,a,r,this.nonce,y);default:s=new rC(u,m,n,g,a,r,y)}o.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(n){return new(n||t)(H($O),H(GO),H(Tu),H(Yz),H(Ue),H(wa),H(be),H(Ib))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class aC{constructor(i,e,n,o){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(i,e){return e?this.doc.createElementNS(iC[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(qO(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(qO(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){i&&i.removeChild(e)}selectRootElement(i,e){let n="string"==typeof i?this.doc.querySelector(i):i;if(!n)throw new ee(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;const s=iC[o];s?i.setAttributeNS(s,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){const o=iC[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(or.DashCase|or.Important)?i.style.setProperty(e,n,o&or.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&or.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i[e]=n}setValue(i,e){i.nodeValue=e}listen(i,e,n){if("string"==typeof i&&!(i=ur().getGlobalEventTarget(this.doc,i)))throw new Error(`Unsupported event target ${i} for event ${e}`);return this.eventManager.addEventListener(i,e,this.decoratePreventDefault(n))}decoratePreventDefault(i){return e=>{if("__ngUnwrap__"===e)return i;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>i(e)):i(e))&&e.preventDefault()}}}function qO(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class Xz extends aC{constructor(i,e,n,o,s,a,r,u){super(i,s,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const m=WO(o.id,o.styles);for(const g of m){const y=document.createElement("style");r&&y.setAttribute("nonce",r),y.textContent=g,this.shadowRoot.appendChild(y)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(this.nodeOrShadowRoot(i),e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class rC extends aC{constructor(i,e,n,o,s,a,r,u){super(i,s,a,r),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=u?WO(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class YO extends rC{constructor(i,e,n,o,s,a,r,u){const m=o+"-"+n.id;super(i,e,n,s,a,r,u,m),this.contentAttr=function Qz(t){return"_ngcontent-%COMP%".replace(oC,t)}(m),this.hostAttr=function Zz(t){return"_nghost-%COMP%".replace(oC,t)}(m)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){const n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}}let Jz=(()=>{class t extends jO{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o){return e.addEventListener(n,o,!1),()=>this.removeEventListener(e,n,o)}removeEventListener(e,n,o){return e.removeEventListener(n,o)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();const QO=["alt","control","meta","shift"],eW={"\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"},tW={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let nW=(()=>{class t extends jO{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const s=t.parseEventName(n),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ur().onAndCancel(e,s.domEventName,a))}static parseEventName(e){const n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;const s=t._normalizeKey(n.pop());let a="",r=n.indexOf("code");if(r>-1&&(n.splice(r,1),a="code."),QO.forEach(m=>{const g=n.indexOf(m);g>-1&&(n.splice(g,1),a+=m+".")}),a+=s,0!=n.length||0===s.length)return null;const u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(e,n){let o=eW[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(o=e.code,s="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),QO.forEach(a=>{a!==o&&(0,tW[a])(e)&&(s+=a+".")}),s+=o,s===n)}static eventCallback(e,n,o){return s=>{t.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>n(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function ZO(t){return{appProviders:[...XO,...t?.providers??[]],platformProviders:rW}}const rW=[{provide:wa,useValue:LI},{provide:nD,useValue:function oW(){eC.makeCurrent()},multi:!0},{provide:Ue,useFactory:function aW(){return function aV(t){_b=t}(document),document},deps:[]}],lW=new Y(""),KO=[{provide:nf,useClass:class jz{addToWindow(i){$n.getAngularTestability=(n,o=!0)=>{const s=i.findTestabilityInTree(n,o);if(null==s)throw new ee(5103,!1);return s},$n.getAllAngularTestabilities=()=>i.getAllTestabilities(),$n.getAllAngularRootElements=()=>i.getAllRootElements(),$n.frameworkStabilizers||($n.frameworkStabilizers=[]),$n.frameworkStabilizers.push(n=>{const o=$n.getAllAngularTestabilities();let s=o.length,a=!1;const r=function(u){a=a||u,s--,0==s&&n(a)};o.forEach(u=>{u.whenStable(r)})})}findTestabilityInTree(i,e,n){return null==e?null:i.getTestability(e)??(n?ur().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},deps:[]},{provide:IE,useClass:jv,deps:[be,Gv,nf]},{provide:jv,useClass:jv,deps:[be,Gv,nf]}],XO=[{provide:Db,useValue:"root"},{provide:Po,useFactory:function sW(){return new Po},deps:[]},{provide:tC,useClass:Jz,multi:!0,deps:[Ue,be,wa]},{provide:tC,useClass:nW,multi:!0,deps:[Ue]},sC,GO,$O,{provide:Rc,useExisting:sC},{provide:HI,useClass:Gz,deps:[]},[]];let cW=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Tu,useValue:e.appId}]}}static#e=this.\u0275fac=function(n){return new(n||t)(H(lW,12))};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({providers:[...XO,...KO],imports:[ce,G$]})}return t})(),JO=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:function(n){let o=null;return o=n?new n:function uW(){return new JO(H(Ue))}(),o},providedIn:"root"})}return t})();typeof window<"u"&&window;let _h=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(n){let o=null;return o=n?new(n||t):H(nR),o},providedIn:"root"})}return t})(),nR=(()=>{class t extends _h{constructor(e){super(),this._doc=e}sanitize(e,n){if(null==n)return null;switch(e){case Ui.NONE:return n;case Ui.HTML:return Gs(n,"HTML")?Ao(n):G2(this._doc,String(n)).toString();case Ui.STYLE:return Gs(n,"Style")?Ao(n):n;case Ui.SCRIPT:if(Gs(n,"Script"))return Ao(n);throw new ee(5200,!1);case Ui.URL:return Gs(n,"URL")?Ao(n):Cm(String(n));case Ui.RESOURCE_URL:if(Gs(n,"ResourceURL"))return Ao(n);throw new ee(5201,!1);default:throw new ee(5202,!1)}}bypassSecurityTrustHtml(e){return function pV(t){return new rV(t)}(e)}bypassSecurityTrustStyle(e){return function mV(t){return new lV(t)}(e)}bypassSecurityTrustScript(e){return function fV(t){return new cV(t)}(e)}bypassSecurityTrustUrl(e){return function _V(t){return new dV(t)}(e)}bypassSecurityTrustResourceUrl(e){return function gV(t){return new uV(t)}(e)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:function(n){let o=null;return o=n?new n:function fW(t){return new nR(t.get(Ue))}(H(_n)),o},providedIn:"root"})}return t})();const _W=["*"];let qf;function gh(t){return function gW(){if(void 0===qf&&(qf=null,typeof window<"u")){const t=window;void 0!==t.trustedTypes&&(qf=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return qf}()?.createHTML(t)||t}function oR(t){return Error(`Unable to find icon with the name "${t}"`)}function sR(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function aR(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class bl{constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}}let sd=(()=>{class t{constructor(e,n,o,s){this._httpClient=e,this._sanitizer=n,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,s){return this._addSvgIconConfig(e,n,new bl(o,null,s))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,s){const a=this._sanitizer.sanitize(Ui.HTML,o);if(!a)throw aR(o);const r=gh(a);return this._addSvgIconConfig(e,n,new bl("",r,s))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new bl(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){const s=this._sanitizer.sanitize(Ui.HTML,n);if(!s)throw aR(n);const a=gh(s);return this._addSvgIconSetConfig(e,new bl("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const n=this._sanitizer.sanitize(Ui.RESOURCE_URL,e);if(!n)throw sR(e);const o=this._cachedIconsByUrl.get(n);return o?ve(Yf(o)):this._loadSvgIconFromConfig(new bl(e,null)).pipe(Zn(s=>this._cachedIconsByUrl.set(n,s)),Le(s=>Yf(s)))}getNamedSvgIcon(e,n=""){const o=rR(n,e);let s=this._svgIconConfigs.get(o);if(s)return this._getSvgFromConfig(s);if(s=this._getIconConfigFromResolvers(n,e),s)return this._svgIconConfigs.set(o,s),this._getSvgFromConfig(s);const a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Aa(oR(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?ve(Yf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(Le(n=>Yf(n)))}_getSvgFromIconSetConfigs(e,n){const o=this._extractIconWithNameFromAnySet(e,n);return o?ve(o):iy(n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Ji(r=>{const m=`Loading icon set URL: ${this._sanitizer.sanitize(Ui.RESOURCE_URL,a.url)} failed: ${r.message}`;return this._errorHandler.handleError(new Error(m)),ve(null)})))).pipe(Le(()=>{const a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw oR(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){const s=n[o];if(s.svgText&&s.svgText.toString().indexOf(e)>-1){const a=this._svgElementFromConfig(s),r=this._extractSvgIconFromSet(a,e,s.options);if(r)return r}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Zn(n=>e.svgText=n),Le(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?ve(null):this._fetchIcon(e).pipe(Zn(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){const s=e.querySelector(`[id="${n}"]`);if(!s)return null;const a=s.cloneNode(!0);if(a.removeAttribute("id"),"svg"===a.nodeName.toLowerCase())return this._setSvgAttributes(a,o);if("symbol"===a.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(a),o);const r=this._svgElementFromString(gh("<svg></svg>"));return r.appendChild(a),this._setSvgAttributes(r,o)}_svgElementFromString(e){const n=this._document.createElement("DIV");n.innerHTML=e;const o=n.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(e){const n=this._svgElementFromString(gh("<svg></svg>")),o=e.attributes;for(let s=0;s<o.length;s++){const{name:a,value:r}=o[s];"id"!==a&&n.setAttribute(a,r)}for(let s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&n.appendChild(e.childNodes[s].cloneNode(!0));return n}_setSvgAttributes(e,n){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),n&&n.viewBox&&e.setAttribute("viewBox",n.viewBox),e}_fetchIcon(e){const{url:n,options:o}=e,s=o?.withCredentials??!1;if(!this._httpClient)throw function bW(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const a=this._sanitizer.sanitize(Ui.RESOURCE_URL,n);if(!a)throw sR(n);const r=this._inProgressUrlFetches.get(a);if(r)return r;const u=this._httpClient.get(a,{responseType:"text",withCredentials:s}).pipe(Le(m=>gh(m)),nd(()=>this._inProgressUrlFetches.delete(a)),Np());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(rR(e,n),o),this}_addSvgIconSetConfig(e,n){const o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){const n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;o<this._resolvers.length;o++){const s=this._resolvers[o](n,e);if(s)return yW(s)?new bl(s.url,null,s.options):new bl(s,null)}}}return t.\u0275fac=function(e){return new(e||t)(H(Ee,8),H(_h),H(Ue,8),H(Po))},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Yf(t){return t.cloneNode(!0)}function rR(t,i){return t+":"+i}function yW(t){return!(!t.url||!t.options)}const CW=Ts(class{constructor(t){this._elementRef=t}}),wW=new Y("MAT_ICON_DEFAULT_OPTIONS"),SW=new Y("mat-icon-location",{providedIn:"root",factory:function TW(){const t=he(Ue),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),lR=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],DW=lR.map(t=>`[${t}]`).join(", "),MW=/^url\(['"]?#(.*?)['"]?\)$/;let Oe=(()=>{class t extends CW{constructor(e,n,o,s,a,r){super(e),this._iconRegistry=n,this._location=s,this._errorHandler=a,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=rt.EMPTY,r&&(r.color&&(this.color=this.defaultColor=r.color),r.fontSet&&(this.fontSet=r.fontSet)),o||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=pe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){const e=this._elementRef.nativeElement;let n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){const o=e.childNodes[n];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return"string"==typeof e?e.trim().split(" ")[0]:e}_prependPathToReferences(e){const n=this._elementsWithExternalReferences;n&&n.forEach((o,s)=>{o.forEach(a=>{s.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){const n=e.querySelectorAll(DW),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<n.length;s++)lR.forEach(a=>{const r=n[s],u=r.getAttribute(a),m=u?u.match(MW):null;if(m){let g=o.get(r);g||(g=[],o.set(r,g)),g.push({name:a,value:m[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(Xe(1)).subscribe(s=>this._setSvgElement(s),s=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${n}:${o}! ${s.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(sd),Si("aria-hidden"),_(SW),_(Po),_(wW,8))},t.\u0275cmp=U({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(e,n){2&e&&(J("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),de("mat-icon-inline",n.inline)("mat-icon-no-color","primary"!==n.color&&"accent"!==n.color&&"warn"!==n.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[te],ngContentSelectors:_W,decls:1,vars:0,template:function(e,n){1&e&&(Dt(),$e(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),Me=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})();class xW{constructor(){this.userId=null,this.token="",this.resource=null,this.details=!1}}let cR=(()=>{class t{constructor(){}handleError(e){return e&&404===e.status?(console.log(e.statusText),e.status):(e&&401===e.status&&console.log(e),e.status)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class cC{constructor(i){this.originalError=i,(new cR).handleError(i)}}class EW extends cC{}class IW extends cC{}let Qf={headers:new rs({"Content-Type":"application/json"})},Q=(()=>{class t{constructor(e,n){this.url=e,this.http=n}setURL(e){this.url=e}getAll(e,n,o){return this.http.get(this.url+"?userId="+n+"&token="+e+(o||"")).pipe(Ji(this.handleError))}getAllObservable(e,n,o){return this.http.get(this.url+"?userId="+n+"&token="+e+(o||"")).pipe(Ji(this.handleError))}get(e,n,o,s){return this.http.get(this.url+"/"+e+"?userId="+n+"&token="+o+(s||"")).pipe(Ji(this.handleError))}create(e,n,o){return Qf={headers:new rs({"Content-Type":"application/json",...o})},this.http.post(this.url,JSON.stringify(this.attachToAPIEntity(e,n)),Qf).pipe(Ji(this.handleError))}fileUpload(e,n){const o={params:{userId:v.userId,token:v.token,...n}};return this.http.post(this.url,e,o).pipe(Ji(this.handleError))}update(e,n){return this.http.put(this.url,JSON.stringify(this.attachToAPIEntity(e,n)),Qf).pipe(Ji(this.handleError))}put(e,n){return this.http.put(this.url,JSON.stringify(this.attachToAPIEntity(e,n)),Qf).pipe(Ji(this.handleError))}delete(e,n){const o={params:{userId:v.userId,token:v.token,...n}};return this.http.delete(this.url+"/"+e,o).pipe(Ji(this.handleError))}attachToAPIEntity(e,n){const o=new xW;return o.userId=+v.userId,o.token=v.token,o.resource=e,n&&(o.details=!0),o}handleError(e){return Aa(400===e.status?()=>new EW(e.message):404===e.status?()=>new IW:()=>new cC(e))}static#e=this.\u0275fac=function(n){return new(n||t)(H("URLSTRING"),H(Ee))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Be=(()=>{class t{constructor(){this.id=null,this.firstName="",this.lastName="",this.userType=t.ACCOUNT_TYPE_REPORTER,this.agreedToAGB=!1,this.email="",this.password="",this.isPasswordNew=!1,this.skype="",this.dateOfBirth=null,this.isActive=!0,this.country=null,this.sports=[],this.matches=[],this.matchEvents=[],this.timezone=0,this.personalIDFilename="",this.personalPhotoFilename="",this.contractFilename="",this.clubs="",this.cities="",this.token="",this.lastLoginTime=null,this.tokenIp="",this.allowedRegions=""}static#e=this.AGB_AGREED_YES=1;static#t=this.AGB_AGREED_NO=0;static#n=this.ACCOUNT_TYPE_REPORTER=0;static#i=this.ACCOUNT_TYPE_ADMIN=1;static#o=this.ACCOUNT_TYPE_CUSTOMER=2;static#s=this.ACCOUNT_TYPE_MODERATOR=3;static#a=this.ACCOUNT_TYPE_COUNTRY_MANAGER=4;static#r=this.ACCOUNT_TYPE_TRIAL=5;static#l=this.ACCOUNT_TYPE_NETWORK_MANAGER=6;static#c=this.ACCOUNT_TYPE_QUALITY_MANAGER=7;static#d=this.ACCOUNT_TYPE_COVERAGE_MANAGER=8}return t})(),dR=(()=>{class t{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Co),_(oe))};static#t=this.\u0275dir=$({type:t})}return t})(),vl=(()=>{class t extends dR{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static#t=this.\u0275dir=$({type:t,features:[te]})}return t})();const fi=new Y("NgValueAccessor"),RW={provide:fi,useExisting:Je(()=>Lt),multi:!0},AW=new Y("CompositionEventMode");let Lt=(()=>{class t extends dR{constructor(e,n,o){super(e,n),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function kW(){const t=ur()?ur().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(n){return new(n||t)(_(Co),_(oe),_(AW,8))};static#t=this.\u0275dir=$({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(n,o){1&n&&M("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[me([RW]),te]})}return t})();function yr(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function hR(t){return null!=t&&"number"==typeof t.length}const di=new Y("NgValidators"),Cr=new Y("NgAsyncValidators"),PW=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ue{static min(i){return function pR(t){return i=>{if(yr(i.value)||yr(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e<t?{min:{min:t,actual:i.value}}:null}}(i)}static max(i){return function mR(t){return i=>{if(yr(i.value)||yr(t))return null;const e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}(i)}static required(i){return fR(i)}static requiredTrue(i){return function _R(t){return!0===t.value?null:{required:!0}}(i)}static email(i){return function gR(t){return yr(t.value)||PW.test(t.value)?null:{email:!0}}(i)}static minLength(i){return function bR(t){return i=>yr(i.value)||!hR(i.value)?null:i.value.length<t?{minlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static maxLength(i){return function vR(t){return i=>hR(i.value)&&i.value.length>t?{maxlength:{requiredLength:t,actualLength:i.value.length}}:null}(i)}static pattern(i){return function yR(t){if(!t)return Zf;let i,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(yr(n.value))return null;const o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}(i)}static nullValidator(i){return null}static compose(i){return MR(i)}static composeAsync(i){return xR(i)}}function fR(t){return yr(t.value)?{required:!0}:null}function Zf(t){return null}function CR(t){return null!=t}function wR(t){return Lu(t)?wi(t):t}function SR(t){let i={};return t.forEach(e=>{i=null!=e?{...i,...e}:i}),0===Object.keys(i).length?null:i}function TR(t,i){return i.map(e=>e(t))}function DR(t){return t.map(i=>function NW(t){return!t.validate}(i)?i:e=>i.validate(e))}function MR(t){if(!t)return null;const i=t.filter(CR);return 0==i.length?null:function(e){return SR(TR(e,i))}}function dC(t){return null!=t?MR(DR(t)):null}function xR(t){if(!t)return null;const i=t.filter(CR);return 0==i.length?null:function(e){return iy(TR(e,i).map(wR)).pipe(Le(SR))}}function uC(t){return null!=t?xR(DR(t)):null}function ER(t,i){return null===t?[i]:Array.isArray(t)?[...t,i]:[t,i]}function IR(t){return t._rawValidators}function OR(t){return t._rawAsyncValidators}function hC(t){return t?Array.isArray(t)?t:[t]:[]}function Kf(t,i){return Array.isArray(t)?t.includes(i):t===i}function RR(t,i){const e=hC(i);return hC(t).forEach(o=>{Kf(e,o)||e.push(o)}),e}function kR(t,i){return hC(i).filter(e=>!Kf(t,e))}class AR{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(i){this._rawValidators=i||[],this._composedValidatorFn=dC(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=uC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return!!this.control&&this.control.hasError(i,e)}getError(i,e){return this.control?this.control.getError(i,e):null}}class eo extends AR{get formDirective(){return null}get path(){return null}}class ls extends AR{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PR{constructor(i){this._cd=i}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 Mt=(()=>{class t extends PR{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(ls,2))};static#t=this.\u0275dir=$({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){2&n&&de("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[te]})}return t})(),Bt=(()=>{class t extends PR{constructor(e){super(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(eo,10))};static#t=this.\u0275dir=$({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){2&n&&de("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[te]})}return t})();const bh="VALID",Jf="INVALID",ad="PENDING",vh="DISABLED";function fC(t){return(e_(t)?t.validators:t)||null}function _C(t,i){return(e_(i)?i.asyncValidators:t)||null}function e_(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function FR(t,i,e){const n=t.controls;if(!(i?Object.keys(n):n).length)throw new ee(1e3,"");if(!n[e])throw new ee(1001,"")}function LR(t,i,e){t._forEachChild((n,o)=>{if(void 0===e[o])throw new ee(1002,"")})}class t_{constructor(i,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(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get valid(){return this.status===bh}get invalid(){return this.status===Jf}get pending(){return this.status==ad}get disabled(){return this.status===vh}get enabled(){return this.status!==vh}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(RR(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(RR(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(kR(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(kR(i,this._rawAsyncValidators))}hasValidator(i){return Kf(this._rawValidators,i)}hasAsyncValidator(i){return Kf(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){this.touched=!0,this._parent&&!i.onlySelf&&this._parent.markAsTouched(i)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(i=>i.markAllAsTouched())}markAsUntouched(i={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}markAsDirty(i={}){this.pristine=!1,this._parent&&!i.onlySelf&&this._parent.markAsDirty(i)}markAsPristine(i={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}markAsPending(i={}){this.status=ad,!1!==i.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!i.onlySelf&&this._parent.markAsPending(i)}disable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=vh,this.errors=null,this._forEachChild(n=>{n.disable({...i,onlySelf:!0})}),this._updateValue(),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!0))}enable(i={}){const e=this._parentMarkedDirty(i.onlySelf);this.status=bh,this._forEachChild(n=>{n.enable({...i,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors({...i,skipPristineCheck:e}),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bh||this.status===ad)&&this._runAsyncValidator(i.emitEvent)),!1!==i.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(i)}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vh:bh}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i){if(this.asyncValidator){this.status=ad,this._hasOwnPendingAsyncValidator=!0;const e=wR(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:i})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(!1!==e.emitEvent)}get(i){let e=i;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(i)}_initObservables(){this.valueChanges=new W,this.statusChanges=new W}_calculateStatus(){return this._allControlsDisabled()?vh:this.errors?Jf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ad)?ad:this._anyControlsHaveStatus(Jf)?Jf:bh}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i={}){this.pristine=!this._anyControlsDirty(),this._parent&&!i.onlySelf&&this._parent._updatePristine(i)}_updateTouched(i={}){this.touched=this._anyControlsTouched(),this._parent&&!i.onlySelf&&this._parent._updateTouched(i)}_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){e_(i)&&null!=i.updateOn&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){return!i&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=function VW(t){return Array.isArray(t)?dC(t):t||null}(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=function HW(t){return Array.isArray(t)?uC(t):t||null}(this._rawAsyncValidators)}}class yh extends t_{constructor(i,e,n){super(fC(e),_C(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){LR(this,0,i),Object.keys(i).forEach(n=>{FR(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(Object.keys(i).forEach(n=>{const o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>!!n._syncPendingControls()||e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(const[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,s)=>{n=e(n,o,s)}),n}_allControlsDisabled(){for(const i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}}class BR extends yh{}const yl=new Y("CallSetDisabledState",{providedIn:"root",factory:()=>Ch}),Ch="always";function n_(t,i){return[...i.path,t]}function wh(t,i,e=Ch){gC(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&i.valueAccessor.setDisabledState?.(t.disabled),function $W(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&VR(t,i)})}(t,i),function GW(t,i){const e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,i),function jW(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&VR(t,i),"submit"!==t.updateOn&&t.markAsTouched()})}(t,i),function UW(t,i){if(i.valueAccessor.setDisabledState){const e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,i)}function i_(t,i,e=!0){const n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),s_(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function o_(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function gC(t,i){const e=IR(t);null!==i.validator?t.setValidators(ER(e,i.validator)):"function"==typeof e&&t.setValidators([e]);const n=OR(t);null!==i.asyncValidator?t.setAsyncValidators(ER(n,i.asyncValidator)):"function"==typeof n&&t.setAsyncValidators([n]);const o=()=>t.updateValueAndValidity();o_(i._rawValidators,o),o_(i._rawAsyncValidators,o)}function s_(t,i){let e=!1;if(null!==t){if(null!==i.validator){const o=IR(t);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==i.validator);s.length!==o.length&&(e=!0,t.setValidators(s))}}if(null!==i.asyncValidator){const o=OR(t);if(Array.isArray(o)&&o.length>0){const s=o.filter(a=>a!==i.asyncValidator);s.length!==o.length&&(e=!0,t.setAsyncValidators(s))}}}const n=()=>{};return o_(i._rawValidators,n),o_(i._rawAsyncValidators,n),e}function VR(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function HR(t,i){gC(t,i)}function vC(t,i){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(i,e.currentValue)}function UR(t,i){t._syncPendingControls(),i.forEach(e=>{const n=e.control;"submit"===n.updateOn&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function yC(t,i){if(!i)return null;let e,n,o;return Array.isArray(i),i.forEach(s=>{s.constructor===Lt?e=s:function qW(t){return Object.getPrototypeOf(t.constructor)===vl}(s)?n=s:o=s}),o||n||e||null}const QW={provide:eo,useExisting:Je(()=>Ds)},Sh=(()=>Promise.resolve())();let Ds=(()=>{class t extends eo{constructor(e,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new W,this.form=new yh({},dC(e),uC(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Sh.then(()=>{const n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),wh(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Sh.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Sh.then(()=>{const n=this._findContainer(e.path),o=new yh({});HR(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Sh.then(()=>{const n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){Sh.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,UR(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(n){return new(n||t)(_(di,10),_(Cr,10),_(yl,8))};static#t=this.\u0275dir=$({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){1&n&&M("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([QW]),te]})}return t})();function $R(t,i){const e=t.indexOf(i);e>-1&&t.splice(e,1)}function jR(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const ji=class extends t_{constructor(i=null,e,n){super(fC(e),_C(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),e_(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=jR(i)?i.value:i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(n=>n(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){$R(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){$R(this._onDisabledChange,i)}_forEachChild(i){}_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(i){jR(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}};let GR=(()=>{class t extends eo{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return n_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static#t=this.\u0275dir=$({type:t,features:[te]})}return t})();const XW={provide:ls,useExisting:Je(()=>rd)},WR=(()=>Promise.resolve())();let rd=(()=>{class t extends ls{constructor(e,n,o,s,a,r){super(),this._changeDetectorRef=a,this.callSetDisabledState=r,this.control=new ji,this._registered=!1,this.name="",this.update=new W,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=yC(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),vC(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(){wh(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){WR.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const n=e.isDisabled.currentValue,o=0!==n&&Xc(n);WR.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?n_(e,this._parent):[e]}static#e=this.\u0275fac=function(n){return new(n||t)(_(eo,9),_(di,10),_(Cr,10),_(fi,10),_(He,8),_(yl,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[me([XW]),te,fe]})}return t})(),Vt=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=$({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return t})();const JW={provide:fi,useExisting:Je(()=>Th),multi:!0};let Th=(()=>{class t extends vl{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=n=>{e(""==n?null:parseFloat(n))}}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static#t=this.\u0275dir=$({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){1&n&&M("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},features:[me([JW]),te]})}return t})(),qR=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();const CC=new Y("NgModelWithFormControlWarning"),iq={provide:ls,useExisting:Je(()=>wr)};let wr=(()=>{class t extends ls{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,n,o,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new W,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=yC(0,o)}ngOnChanges(e){if(this._isControlChanged(e)){const n=e.form.previousValue;n&&i_(n,this,!1),wh(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}vC(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&i_(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static#t=this.\u0275fac=function(n){return new(n||t)(_(di,10),_(Cr,10),_(fi,10),_(CC,8),_(yl,8))};static#n=this.\u0275dir=$({type:t,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[me([iq]),te,fe]})}return t})();const oq={provide:eo,useExisting:Je(()=>vt)};let vt=(()=>{class t extends eo{constructor(e,n,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new W,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(s_(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 n=this.form.get(e.path);return wh(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){i_(e.control||null,e,!1),function YW(t,i){const e=t.indexOf(i);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,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this.submitted=!0,UR(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 n=e.control,o=this.form.get(e.path);n!==o&&(i_(n||null,e),(t=>t instanceof ji)(o)&&(wh(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const n=this.form.get(e.path);HR(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const n=this.form.get(e.path);n&&function zW(t,i){return s_(t,i)}(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gC(this.form,this),this._oldForm&&s_(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(di,10),_(Cr,10),_(yl,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){1&n&&M("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([oq]),te,fe]})}return t})();const sq={provide:eo,useExisting:Je(()=>Dh)};let Dh=(()=>{class t extends GR{constructor(e,n,o){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){ZR(this._parent)}static#e=this.\u0275fac=function(n){return new(n||t)(_(eo,13),_(di,10),_(Cr,10))};static#t=this.\u0275dir=$({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[me([sq]),te]})}return t})();const aq={provide:eo,useExisting:Je(()=>a_)};let a_=(()=>{class t extends eo{constructor(e,n,o){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return n_(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ZR(this._parent)}static#e=this.\u0275fac=function(n){return new(n||t)(_(eo,13),_(di,10),_(Cr,10))};static#t=this.\u0275dir=$({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[me([aq]),te]})}return t})();function ZR(t){return!(t instanceof Dh||t instanceof vt||t instanceof a_)}const rq={provide:ls,useExisting:Je(()=>Cn)};let Cn=(()=>{class t extends ls{set isDisabled(e){}static#e=this._ngModelWarningSentOnce=!1;constructor(e,n,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new W,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=yC(0,s)}ngOnChanges(e){this._added||this._setUpControl(),vC(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 n_(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(n){return new(n||t)(_(eo,13),_(di,10),_(Cr,10),_(fi,10),_(CC,8))};static#n=this.\u0275dir=$({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[me([rq]),te,fe]})}return t})(),Cl=(()=>{class t{constructor(){this._validator=Zf}ngOnChanges(e){if(this.inputName in e){const n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Zf,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(n){return new(n||t)};static#t=this.\u0275dir=$({type:t,features:[fe]})}return t})();const _q={provide:di,useExisting:Je(()=>Vn),multi:!0};let Vn=(()=>{class t extends Cl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Xc,this.createValidator=e=>fR}enabled(e){return e}static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static#t=this.\u0275dir=$({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){2&n&&J("required",o._enabled?"":null)},inputs:{required:"required"},features:[me([_q]),te]})}return t})(),rk=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[qR]})}return t})();class lk extends t_{constructor(i,e,n){super(fC(e),_C(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){this.controls.push(i),this._registerControl(i),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){LR(this,0,i),i.forEach((n,o)=>{FR(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){null!=i&&(i.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,o)=>{n.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>!!n._syncPendingControls()||e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(const i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}}function ck(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let mn=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,n=null){const o=this._reduceControls(e);let s={};return ck(n)?s=n:null!==n&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new yh(o,s)}record(e,n=null){const o=this._reduceControls(e);return new BR(o,n)}control(e,n,o){let s={};return this.useNonNullable?(ck(n)?s=n:(s.validators=n,s.asyncValidators=o),new ji(e,{...s,nonNullable:!0})):new ji(e,n,o)}array(e,n,o){const s=e.map(a=>this._createControl(a));return new lk(s,n,o)}_reduceControls(e){const n={};return Object.keys(e).forEach(o=>{n[o]=this._createControl(e[o])}),n}_createControl(e){return e instanceof ji||e instanceof t_?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(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:yl,useValue:e.callSetDisabledState??Ch}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[rk]})}return t})(),xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:CC,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:yl,useValue:e.callSetDisabledState??Ch}]}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[rk]})}return t})();const dk=["mat-button",""],uk=["*"],Tq=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Dq=Ts(Ss(as(class{constructor(t){this._elementRef=t}})));let Re=(()=>{class t extends Dq{constructor(e,n,o){super(e),this._focusMonitor=n,this._animationMode=o,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of Tq)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(n=>this._getHostElement().hasAttribute(n))}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_($i),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,n){if(1&e&&ne(Bo,5),2&e){let o;G(o=z())&&(n.ripple=o.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,n){2&e&&(J("disabled",n.disabled||null),de("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[te],attrs:dk,ngContentSelectors:uk,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Dt(),l(0,"span",0),$e(1),d(),D(2,"span",1)(3,"span",2)),2&e&&(c(2),de("mat-button-ripple-round",n.isRoundButton||n.isIconButton),f("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},dependencies:[Bo],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),t})(),Sl=(()=>{class t extends Re{constructor(e,n,o,s){super(n,e,o),this._ngZone=s,this._haltDisabledEvents=a=>{this.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return t.\u0275fac=function(e){return new(e||t)(_($i),_(oe),_(Fn,8),_(be,8))},t.\u0275cmp=U({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(e,n){2&e&&(J("tabindex",n.disabled?-1:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),de("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[te],attrs:dk,ngContentSelectors:uk,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,n){1&e&&(Dt(),l(0,"span",0),$e(1),d(),D(2,"span",1)(3,"span",2)),2&e&&(c(2),de("mat-button-ripple-round",n.isRoundButton||n.isIconButton),f("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},dependencies:[Bo],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),t})(),Ne=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ka,ze,ze]}),t})();const hk=hl({passive:!0});let Mq=(()=>{class t{constructor(e,n){this._platform=e,this._ngZone=n,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return io;const n=Oa(e),o=this._monitoredElements.get(n);if(o)return o.subject;const s=new re,a="cdk-text-field-autofilled",r=u=>{"cdk-text-field-autofill-start"!==u.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===u.animationName&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>s.next({target:u.target,isAutofilled:!1}))):(n.classList.add(a),this._ngZone.run(()=>s.next({target:u.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{n.addEventListener("animationstart",r,hk),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:s,unlisten:()=>{n.removeEventListener("animationstart",r,hk)}}),s}stopMonitoring(e){const n=Oa(e),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static#e=this.\u0275fac=function(n){return new(n||t)(H(Bn),H(be))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pk=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();const xq=["addListener","removeListener"],Eq=["addEventListener","removeEventListener"],Iq=["on","off"];function Pn(t,i,e,n){if($t(e)&&(n=e,e=void 0),n)return Pn(t,i,e).pipe(ny(n));const[o,s]=function kq(t){return $t(t.addEventListener)&&$t(t.removeEventListener)}(t)?Eq.map(a=>r=>t[a](i,r,e)):function Oq(t){return $t(t.addListener)&&$t(t.removeListener)}(t)?xq.map(mk(t,i)):function Rq(t){return $t(t.on)&&$t(t.off)}(t)?Iq.map(mk(t,i)):[];if(!o&&c1(t))return Ci(a=>Pn(a,i,e))(yi(t));if(!o)throw new TypeError("Invalid event target");return new dn(a=>{const r=(...u)=>a.next(1<u.length?u:u[0]);return o(r),()=>s(r)})}function mk(t,i){return e=>n=>t[e](i,n)}class fk{}class Aq{}const Pa="*";function ei(t,i){return{type:7,name:t,definitions:i,options:{}}}function At(t,i=null){return{type:4,styles:i,timings:t}}function _k(t,i=null){return{type:3,steps:t,options:i}}function gk(t,i=null){return{type:2,steps:t,options:i}}function xe(t){return{type:6,styles:t,offset:null}}function ot(t,i,e){return{type:0,name:t,styles:i,options:e}}function Tl(t){return{type:5,steps:t}}function Et(t,i,e=null){return{type:1,expr:t,animation:i,options:e}}function l_(t=null){return{type:9,options:t}}function c_(t,i,e=null){return{type:11,selector:t,animation:i,options:e}}class Mh{constructor(i=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=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class bk{constructor(i){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=i;let e=0,n=0,o=0;const s=this.players.length;0==s?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==s&&this._onFinish()}),a.onDestroy(()=>{++n==s&&this._onDestroy()}),a.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((a,r)=>Math.max(a,r.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){const e=i*this.totalTime;this.players.forEach(n=>{const o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){const i=this.players.reduce((e,n)=>null===e||n.totalTime>e.totalTime?n:e,null);return null!=i?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){const e="start"==i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}const Pq=["connectionContainer"],Nq=["inputContainer"],Fq=["label"];function Lq(t,i){1&t&&(A(0),l(1,"div",14),D(2,"div",15)(3,"div",16)(4,"div",17),d(),l(5,"div",18),D(6,"div",15)(7,"div",16)(8,"div",17),d(),P())}function Bq(t,i){if(1&t){const e=F();l(0,"div",19),M("cdkObserveContent",function(){return E(e),I(b().updateOutlineGap())}),$e(1,1),d()}2&t&&f("cdkObserveContentDisabled","outline"!=b().appearance)}function Vq(t,i){if(1&t&&(A(0),$e(1,2),l(2,"span"),h(3),d(),P()),2&t){const e=b(2);c(3),O(e._control.placeholder)}}function Hq(t,i){1&t&&$e(0,3,["*ngSwitchCase","true"])}function Uq(t,i){1&t&&(l(0,"span",23),h(1," *"),d())}function $q(t,i){if(1&t){const e=F();l(0,"label",20,21),M("cdkObserveContent",function(){return E(e),I(b().updateOutlineGap())}),p(2,Vq,4,1,"ng-container",12),p(3,Hq,1,0,"ng-content",12),p(4,Uq,2,0,"span",22),d()}if(2&t){const e=b();de("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),f("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),J("for",e._control.id)("aria-owns",e._control.id),c(2),f("ngSwitchCase",!1),c(1),f("ngSwitchCase",!0),c(1),f("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function jq(t,i){1&t&&(l(0,"div",24),$e(1,4),d())}function Gq(t,i){if(1&t&&(l(0,"div",25),D(1,"span",26),d()),2&t){const e=b();c(1),de("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function zq(t,i){1&t&&(l(0,"div"),$e(1,5),d()),2&t&&f("@transitionMessages",b()._subscriptAnimationState)}function Wq(t,i){if(1&t&&(l(0,"div",30),h(1),d()),2&t){const e=b(2);f("id",e._hintLabelId),c(1),O(e.hintLabel)}}function qq(t,i){if(1&t&&(l(0,"div",27),p(1,Wq,2,2,"div",28),$e(2,6),D(3,"div",29),$e(4,7),d()),2&t){const e=b();f("@transitionMessages",e._subscriptAnimationState),c(1),f("ngIf",e.hintLabel)}}const Yq=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Qq=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Zq=0;const vk=new Y("MatError");let Sr=(()=>{class t{constructor(e,n){this.id="mat-error-"+Zq++,e||n.nativeElement.setAttribute("aria-live","polite")}}return t.\u0275fac=function(e){return new(e||t)(Si("aria-live"),_(oe))},t.\u0275dir=$({type:t,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,n){2&e&&J("id",n.id)},inputs:{id:"id"},features:[me([{provide:vk,useExisting:t}])]}),t})();const Kq={transitionMessages:ei("transitionMessages",[ot("enter",xe({opacity:1,transform:"translateY(0%)"})),Et("void => enter",[xe({opacity:0,transform:"translateY(-5px)"}),At("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ld=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t}),t})(),Xq=0;const yk=new Y("MatHint");let Ni=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Xq++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,n){2&e&&(J("id",n.id)("align",null),de("mat-form-field-hint-end","end"===n.align))},inputs:{align:"align",id:"id"},features:[me([{provide:yk,useExisting:t}])]}),t})(),Tr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-label"]]}),t})(),Jq=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-placeholder"]]}),t})();const eY=new Y("MatPrefix"),Ck=new Y("MatSuffix");let cd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["","matSuffix",""]],features:[me([{provide:Ck,useExisting:t}])]}),t})(),wk=0;const nY=Ts(class{constructor(t){this._elementRef=t}},"primary"),iY=new Y("MAT_FORM_FIELD_DEFAULT_OPTIONS"),dd=new Y("MatFormField");let gt=(()=>{class t extends nY{constructor(e,n,o,s,a,r,u){super(e),this._changeDetectorRef=n,this._dir=o,this._defaults=s,this._platform=a,this._ngZone=r,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new re,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+wk++,this._labelId="mat-form-field-label-"+wk++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==u,this.appearance=s?.appearance||"legacy",s&&(this._hideRequiredMarker=!!s.hideRequiredMarker,s.color&&(this.color=this.defaultColor=s.color))}get appearance(){return this._appearance}set appearance(e){const n=this._appearance;this._appearance=e||this._defaults?.appearance||"legacy","outline"===this._appearance&&n!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=pe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(jt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Se(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Se(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),un(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(jt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(jt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Se(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const n=this._control?this._control.ngControl:null;return n&&n[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Pn(this._label.nativeElement,"transitionend").pipe(Xe(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const n=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,o=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;n?e.push(n.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(n=>n.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,n=this._connectionContainerRef.nativeElement,o=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const g=n.querySelectorAll(`${o}, ${s}`);for(let y=0;y<g.length;y++)g[y].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let a=0,r=0;const u=n.querySelectorAll(o),m=n.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const g=n.getBoundingClientRect();if(0===g.width&&0===g.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const y=this._getStartEnd(g),S=e.children,x=this._getStartEnd(S[0].getBoundingClientRect());let R=0;for(let k=0;k<S.length;k++)R+=S[k].offsetWidth;a=Math.abs(x-y)-5,r=R>0?.75*R+10:0}for(let g=0;g<u.length;g++)u[g].style.width=`${a}px`;for(let g=0;g<m.length;g++)m[g].style.width=`${r}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}_isAttachedToDOM(){const e=this._elementRef.nativeElement;if(e.getRootNode){const n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(Kn,8),_(iY,8),_(Bn),_(be),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-form-field"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,ld,5),Pe(o,ld,7),Pe(o,Tr,5),Pe(o,Tr,7),Pe(o,Jq,5),Pe(o,vk,5),Pe(o,yk,5),Pe(o,eY,5),Pe(o,Ck,5)),2&e){let s;G(s=z())&&(n._controlNonStatic=s.first),G(s=z())&&(n._controlStatic=s.first),G(s=z())&&(n._labelChildNonStatic=s.first),G(s=z())&&(n._labelChildStatic=s.first),G(s=z())&&(n._placeholderChild=s.first),G(s=z())&&(n._errorChildren=s),G(s=z())&&(n._hintChildren=s),G(s=z())&&(n._prefixChildren=s),G(s=z())&&(n._suffixChildren=s)}},viewQuery:function(e,n){if(1&e&&(ne(Pq,7),ne(Nq,5),ne(Fq,5)),2&e){let o;G(o=z())&&(n._connectionContainerRef=o.first),G(o=z())&&(n._inputContainerRef=o.first),G(o=z())&&(n._label=o.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(e,n){2&e&&de("mat-form-field-appearance-standard","standard"==n.appearance)("mat-form-field-appearance-fill","fill"==n.appearance)("mat-form-field-appearance-outline","outline"==n.appearance)("mat-form-field-appearance-legacy","legacy"==n.appearance)("mat-form-field-invalid",n._control.errorState)("mat-form-field-can-float",n._canLabelFloat())("mat-form-field-should-float",n._shouldLabelFloat())("mat-form-field-has-label",n._hasFloatingLabel())("mat-form-field-hide-placeholder",n._hideControlPlaceholder())("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-focused",n._control.focused)("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))("_mat-animation-noopable",!n._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[me([{provide:dd,useExisting:t}]),te],ngContentSelectors:Qq,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,n){1&e&&(Dt(Yq),l(0,"div",0)(1,"div",1,2),M("click",function(s){return n._control.onContainerClick&&n._control.onContainerClick(s)}),p(3,Lq,9,0,"ng-container",3),p(4,Bq,2,1,"div",4),l(5,"div",5,6),$e(7),l(8,"span",7),p(9,$q,5,16,"label",8),d()(),p(10,jq,2,0,"div",9),d(),p(11,Gq,2,4,"div",10),l(12,"div",11),p(13,zq,2,1,"div",12),p(14,qq,5,2,"div",13),d()()),2&e&&(c(3),f("ngIf","outline"==n.appearance),c(1),f("ngIf",n._prefixChildren.length),c(5),f("ngIf",n._hasFloatingLabel()),c(1),f("ngIf",n._suffixChildren.length),c(1),f("ngIf","outline"!=n.appearance),c(1),f("ngSwitch",n._getDisplayedMessages()),c(1),f("ngSwitchCase","error"),c(1),f("ngSwitchCase","hint"))},dependencies:[le,dl,eh,Pf],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[Kq.transitionMessages]},changeDetection:0}),t})(),ut=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ce,ze,lh,ze]}),t})();const Tk=new Y("MAT_INPUT_VALUE_ACCESSOR"),oY=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let sY=0;const aY=Hf(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new re}});let wn=(()=>{class t extends aY{constructor(e,n,o,s,a,r,u,m,g,y){super(r,s,a,o),this._elementRef=e,this._platform=n,this._autofillMonitor=m,this._formField=y,this._uid="mat-input-"+sY++,this.focused=!1,this.stateChanges=new re,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(R=>WI().has(R)),this._iOSKeyupListener=R=>{const k=R.target;!k.value&&0===k.selectionStart&&0===k.selectionEnd&&(k.setSelectionRange(1,1),k.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,x=S.nodeName.toLowerCase();this._inputValueAccessor=u||S,this._previousNativeValue=this.value,this.id=this.id,n.IOS&&g.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===x,this._isTextarea="textarea"===x,this._isInFormField=!!y,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=pe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ue.required)??!1}set required(e){this._required=pe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&WI().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=pe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const e=this._formField,n=e&&"legacy"===e.appearance&&!e._hasLabel?.()?null:this.placeholder;if(n!==this._previousPlaceholder){const o=this._elementRef.nativeElement;this._previousPlaceholder=n,n?o.setAttribute("placeholder",n):o.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){oY.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Bn),_(ls,10),_(Ds,8),_(vt,8),_(_r),_(Tk,10),_(Mq),_(be),_(dd,8))},t.\u0275dir=$({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,n){1&e&&M("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&e&&(Qn("disabled",n.disabled)("required",n.required),J("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),de("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[me([{provide:ld,useExisting:t}]),te,fe]}),t})(),zt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[_r],imports:[pk,ut,ze,pk,ut]}),t})();const xh={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame;const{delegate:n}=xh;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);const o=i(s=>{e=void 0,t(s)});return new rt(()=>e?.(o))},requestAnimationFrame(...t){const{delegate:i}=xh;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:i}=xh;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};new class lY extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let o;i=i||n.shift();do{if(o=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}}(class rY extends Ny{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=xh.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:s}=i;null!=e&&(null===(o=s[s.length-1])||void 0===o?void 0:o.id)!==e&&(xh.cancelAnimationFrame(e),i._scheduled=void 0)}});let DC,dY=1;const d_={};function Dk(t){return t in d_&&(delete d_[t],!0)}const uY={setImmediate(t){const i=dY++;return d_[i]=!0,DC||(DC=Promise.resolve()),DC.then(()=>Dk(i)&&t()),i},clearImmediate(t){Dk(t)}},{setImmediate:hY,clearImmediate:pY}=uY,u_={setImmediate(...t){const{delegate:i}=u_;return(i?.setImmediate||hY)(...t)},clearImmediate(t){const{delegate:i}=u_;return(i?.clearImmediate||pY)(t)},delegate:void 0},MC=new class fY extends Fy{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let o;i=i||n.shift();do{if(o=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}}(class mY extends Ny{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=u_.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var o;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:s}=i;null!=e&&(null===(o=s[s.length-1])||void 0===o?void 0:o.id)!==e&&(u_.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}});function h_(t=0,i,e=m9){let n=-1;return null!=i&&(SS(i)?e=i:n=i),new dn(o=>{let s=function gY(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;s<0&&(s=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},s)})}function Mk(t,i=Of){return function _Y(t){return qn((i,e)=>{let n=!1,o=null,s=null,a=!1;const r=()=>{if(s?.unsubscribe(),s=null,n){n=!1;const m=o;o=null,e.next(m)}a&&e.complete()},u=()=>{s=null,a&&e.complete()};i.subscribe(On(e,m=>{n=!0,o=m,s||yi(t(m)).subscribe(s=On(e,r,u))},()=>{a=!0,(!n||!s||s.closed)&&e.complete()}))})}(()=>h_(t,i))}let Eh=(()=>{class t{constructor(e,n,o){this._ngZone=e,this._platform=n,this._scrolled=new re,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=o}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new dn(n=>{this._globalSubscription||this._addGlobalListener();const o=e>0?this._scrolled.pipe(Mk(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):ve()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(st(s=>!s||o.indexOf(s)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((o,s)=>{this._scrollableContainsElement(s,e)&&n.push(s)}),n}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,n){let o=Oa(n),s=e.getElementRef().nativeElement;do{if(o==s)return!0}while(o=o.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Pn(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(n){return new(n||t)(H(be),H(Bn),H(Ue,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ih=(()=>{class t{constructor(e,n,o,s){this.elementRef=e,this.scrollDispatcher=n,this.ngZone=o,this.dir=s,this._destroyed=new re,this._elementScrolled=new dn(a=>this.ngZone.runOutsideAngular(()=>Pn(this.elementRef.nativeElement,"scroll").pipe(Se(this._destroyed)).subscribe(a)))}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 n=this.elementRef.nativeElement,o=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=o?e.end:e.start),null==e.right&&(e.right=o?e.start:e.end),null!=e.bottom&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&0!=ih()?(null!=e.left&&(e.right=n.scrollWidth-n.clientWidth-e.left),2==ih()?e.left=e.right:1==ih()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const n=this.elementRef.nativeElement;qI()?n.scrollTo(e):(null!=e.top&&(n.scrollTop=e.top),null!=e.left&&(n.scrollLeft=e.left))}measureScrollOffset(e){const n="left",o="right",s=this.elementRef.nativeElement;if("top"==e)return s.scrollTop;if("bottom"==e)return s.scrollHeight-s.clientHeight-s.scrollTop;const a=this.dir&&"rtl"==this.dir.value;return"start"==e?e=a?o:n:"end"==e&&(e=a?n:o),a&&2==ih()?e==n?s.scrollWidth-s.clientWidth-s.scrollLeft:s.scrollLeft:a&&1==ih()?e==n?s.scrollLeft+s.scrollWidth-s.clientWidth:-s.scrollLeft:e==n?s.scrollLeft:s.scrollWidth-s.clientWidth-s.scrollLeft}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_(Eh),_(be),_(Kn,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return t})(),ea=(()=>{class t{constructor(e,n,o){this._platform=e,this._change=new re,this._changeListener=s=>{this._change.next(s)},this._document=o,n.runOutsideAngular(()=>{if(e.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.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:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),o=e.documentElement,s=o.getBoundingClientRect();return{top:-s.top||e.body.scrollTop||n.scrollY||o.scrollTop||0,left:-s.left||e.body.scrollLeft||n.scrollX||o.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Mk(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(n){return new(n||t)(H(Bn),H(be),H(Ue,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Na=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})(),xC=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[uh,Na,uh,Na]})}return t})();function yY(t,i){if(1&t&&(ai(),D(0,"circle",4)),2&t){const e=b(),n=X(1);it("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(n)),J("r",e._getCircleRadius())}}function CY(t,i){if(1&t&&(ai(),D(0,"circle",4)),2&t){const e=b(),n=X(1);it("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(n)),J("r",e._getCircleRadius())}}const SY=Ts(class{constructor(t){this._elementRef=t}},"primary"),TY=new Y("mat-progress-spinner-default-options",{providedIn:"root",factory:function DY(){return{diameter:100}}});class Fe extends SY{constructor(i,e,n,o,s,a,r,u){super(i),this._document=n,this._diameter=100,this._value=0,this._resizeSubscription=rt.EMPTY,this.mode="determinate";const m=Fe._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),m.has(n.head)||m.set(n.head,new Set([100])),this._noopAnimations="NoopAnimations"===o&&!!s&&!s._forceAnimations,"mat-spinner"===i.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),s&&(s.color&&(this.color=this.defaultColor=s.color),s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth)),e.isBrowser&&e.SAFARI&&r&&a&&u&&(this._resizeSubscription=r.change(150).subscribe(()=>{"indeterminate"===this.mode&&u.run(()=>a.markForCheck())}))}get diameter(){return this._diameter}set diameter(i){this._diameter=ci(i),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(i){this._strokeWidth=ci(i)}get value(){return"determinate"===this.mode?this._value:0}set value(i){this._value=Math.max(0,Math.min(100,ci(i)))}ngOnInit(){const i=this._elementRef.nativeElement;this._styleRoot=YI(i)||this._document.head,this._attachStyleNode(),i.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const i=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${i} ${i}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(i){const e=50*(i.currentScale??1);return`${e}% ${e}%`}_attachStyleNode(){const i=this._styleRoot,e=this._diameter,n=Fe._diameters;let o=n.get(i);if(!o||!o.has(e)){const s=this._document.createElement("style");s.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),s.textContent=this._getAnimationText(),i.appendChild(s),o||(o=new Set,n.set(i,o)),o.add(e)}}_getAnimationText(){const i=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*i).replace(/END_VALUE/g,""+.2*i).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Fe._diameters=new WeakMap,Fe.\u0275fac=function(i){return new(i||Fe)(_(oe),_(Bn),_(Ue,8),_(Fn,8),_(TY),_(He),_(ea),_(be))},Fe.\u0275cmp=U({type:Fe,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(i,e){2&i&&(J("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),it("width",e.diameter,"px")("height",e.diameter,"px"),de("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[te],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(i,e){1&i&&(ai(),l(0,"svg",0,1),p(2,yY,1,11,"circle",2),p(3,CY,1,9,"circle",3),d()),2&i&&(it("width",e.diameter,"px")("height",e.diameter,"px"),f("ngSwitch","indeterminate"===e.mode),J("viewBox",e._getViewBox()),c(2),f("ngSwitchCase",!0),c(1),f("ngSwitchCase",!1))},dependencies:[dl,eh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let je=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ce,ze]}),t})();const xY=["*",[["mat-card-footer"]]],EY=["*","mat-card-footer"],IY=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],OY=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"];let ud=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),p_=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(e,n){2&e&&de("mat-card-actions-align-end","end"===n.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),Fa=(()=>{class t{constructor(e){this._animationMode=e}}return t.\u0275fac=function(e){return new(e||t)(_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,n){2&e&&de("_mat-animation-noopable","NoopAnimations"===n._animationMode)},exportAs:["matCard"],ngContentSelectors:EY,decls:2,vars:0,template:function(e,n){1&e&&(Dt(xY),$e(0),$e(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}.mat-card._mat-animation-noopable{transition:none !important;animation:none !important}.mat-card>.mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card>.mat-divider-horizontal{left:auto;right:0}.mat-card>.mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card>.mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:2,changeDetection:0}),t})(),hd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=U({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:OY,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(e,n){1&e&&(Dt(IY),$e(0),l(1,"div",0),$e(2,1),d(),$e(3,2))},encapsulation:2,changeDetection:0}),t})(),ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})();const Rh=qd(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function IC(){return qn((t,i)=>{let e=null;t._refCount++;const n=On(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,s=e;e=null,o&&(!s||o===s)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}class OC extends dn{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,cS(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){const i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new rt;const e=this.getSubject();i.add(this.source.subscribe(On(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=rt.EMPTY)}return i}refCount(){return IC()(this)}}function m_(t){return qn((i,e)=>{let n=!1;i.subscribe(On(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function xk(t=RY){return qn((i,e)=>{let n=!1;i.subscribe(On(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function RY(){return new Rh}function Dl(t,i){const e=arguments.length>=2;return n=>n.pipe(t?st((o,s)=>t(o,s,n)):ma,Xe(1),e?m_(i):xk(()=>new Rh))}function RC(t){return t<=0?()=>io:qn((i,e)=>{let n=[];i.subscribe(On(e,o=>{n.push(o),t<n.length&&n.shift()},()=>{for(const o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function f_(t){return Le(()=>t)}const yt="primary",kh=Symbol("RouteTitle");class NY{constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){const e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function pd(t){return new NY(t)}function FY(t,i,e){const n=e.path.split("/");if(n.length>t.length||"full"===e.pathMatch&&(i.hasChildren()||n.length<t.length))return null;const o={};for(let s=0;s<n.length;s++){const a=n[s],r=t[s];if(a.startsWith(":"))o[a.substring(1)]=r;else if(a!==r.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function na(t,i){const e=t?Object.keys(t):void 0,n=i?Object.keys(i):void 0;if(!e||!n||e.length!=n.length)return!1;let o;for(let s=0;s<e.length;s++)if(o=e[s],!Ek(t[o],i[o]))return!1;return!0}function Ek(t,i){if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;const e=[...t].sort(),n=[...i].sort();return e.every((o,s)=>n[s]===o)}return t===i}function Ik(t){return t.length>0?t[t.length-1]:null}function Dr(t){return Fo(t)?t:Lu(t)?wi(Promise.resolve(t)):ve(t)}const BY={exact:function kk(t,i,e){if(!Ml(t.segments,i.segments)||!__(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(const n in i.children)if(!t.children[n]||!kk(t.children[n],i.children[n],e))return!1;return!0},subset:Ak},Ok={exact:function VY(t,i){return na(t,i)},subset:function HY(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>Ek(t[e],i[e]))},ignored:()=>!0};function Rk(t,i,e){return BY[e.paths](t.root,i.root,e.matrixParams)&&Ok[e.queryParams](t.queryParams,i.queryParams)&&!("exact"===e.fragment&&t.fragment!==i.fragment)}function Ak(t,i,e){return Pk(t,i,i.segments,e)}function Pk(t,i,e,n){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Ml(o,e)||i.hasChildren()||!__(o,e,n))}if(t.segments.length===e.length){if(!Ml(t.segments,e)||!__(t.segments,e,n))return!1;for(const o in i.children)if(!t.children[o]||!Ak(t.children[o],i.children[o],n))return!1;return!0}{const o=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(Ml(t.segments,o)&&__(t.segments,o,n)&&t.children[yt])&&Pk(t.children[yt],i,s,n)}}function __(t,i,e){return i.every((n,o)=>Ok[e](t[o].parameters,n.parameters))}class md{constructor(i=new An([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pd(this.queryParams)),this._queryParamMap}toString(){return jY.serialize(this)}}class An{constructor(i,e){this.segments=i,this.children=e,this.parent=null,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return g_(this)}}class Ah{constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=pd(this.parameters)),this._parameterMap}toString(){return Lk(this)}}function Ml(t,i){return t.length===i.length&&t.every((e,n)=>e.path===i[n].path)}let Ph=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return new kC},providedIn:"root"})}return t})();class kC{parse(i){const e=new eQ(i);return new md(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){const e=`/${Nh(i.root,!0)}`,n=function WY(t){const i=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(o=>`${b_(e)}=${b_(o)}`).join("&"):`${b_(e)}=${b_(n)}`}).filter(e=>!!e);return i.length?`?${i.join("&")}`:""}(i.queryParams);return`${e}${n}${"string"==typeof i.fragment?`#${function GY(t){return encodeURI(t)}(i.fragment)}`:""}`}}const jY=new kC;function g_(t){return t.segments.map(i=>Lk(i)).join("/")}function Nh(t,i){if(!t.hasChildren())return g_(t);if(i){const e=t.children[yt]?Nh(t.children[yt],!1):"",n=[];return Object.entries(t.children).forEach(([o,s])=>{o!==yt&&n.push(`${o}:${Nh(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function $Y(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===yt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==yt&&(e=e.concat(i(o,n)))}),e}(t,(n,o)=>o===yt?[Nh(t.children[yt],!1)]:[`${o}:${Nh(n,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[yt]?`${g_(t)}/${e[0]}`:`${g_(t)}/(${e.join("//")})`}}function Nk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function b_(t){return Nk(t).replace(/%3B/gi,";")}function AC(t){return Nk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function v_(t){return decodeURIComponent(t)}function Fk(t){return v_(t.replace(/\+/g,"%20"))}function Lk(t){return`${AC(t.path)}${function zY(t){return Object.keys(t).map(i=>`;${AC(i)}=${AC(t[i])}`).join("")}(t.parameters)}`}const qY=/^[^\/()?;#]+/;function PC(t){const i=t.match(qY);return i?i[0]:""}const YY=/^[^\/()?;=#]+/,ZY=/^[^=?&#]+/,XY=/^[^&#]+/;class eQ{constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new An([],{}):new An([],this.parseChildren())}parseQueryParams(){const i={};if(this.consumeOptional("?"))do{this.parseQueryParam(i)}while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[yt]=new An(i,e)),n}parseSegment(){const i=PC(this.remaining);if(""===i&&this.peekStartsWith(";"))throw new ee(4009,!1);return this.capture(i),new Ah(v_(i),this.parseMatrixParams())}parseMatrixParams(){const i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){const e=function QY(t){const i=t.match(YY);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const o=PC(this.remaining);o&&(n=o,this.capture(n))}i[v_(e)]=v_(n)}parseQueryParam(i){const e=function KY(t){const i=t.match(ZY);return i?i[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const a=function JY(t){const i=t.match(XY);return i?i[0]:""}(this.remaining);a&&(n=a,this.capture(n))}const o=Fk(e),s=Fk(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(s)}else i[o]=s}parseParens(i){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=PC(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new ee(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):i&&(s=yt);const a=this.parseChildren();e[s]=1===Object.keys(a).length?a[yt]:new An([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return!!this.peekStartsWith(i)&&(this.remaining=this.remaining.substring(i.length),!0)}capture(i){if(!this.consumeOptional(i))throw new ee(4011,!1)}}function Bk(t){return t.segments.length>0?new An([],{[yt]:t}):t}function Vk(t){const i={};for(const n of Object.keys(t.children)){const s=Vk(t.children[n]);if(n===yt&&0===s.segments.length&&s.hasChildren())for(const[a,r]of Object.entries(s.children))i[a]=r;else(s.segments.length>0||s.hasChildren())&&(i[n]=s)}return function tQ(t){if(1===t.numberOfChildren&&t.children[yt]){const i=t.children[yt];return new An(t.segments.concat(i.segments),i.children)}return t}(new An(t.segments,i))}function xl(t){return t instanceof md}function Hk(t){let i;const o=Bk(function e(s){const a={};for(const u of s.children){const m=e(u);a[u.outlet]=m}const r=new An(s.url,a);return s===t&&(i=r),r}(t.root));return i??o}function Uk(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(0===i.length)return NC(o,o,o,e,n);const s=function iQ(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new jk(!0,0,t);let i=0,e=!1;const n=t.reduce((o,s,a)=>{if("object"==typeof s&&null!=s){if(s.outlets){const r={};return Object.entries(s.outlets).forEach(([u,m])=>{r[u]="string"==typeof m?m.split("/"):m}),[...o,{outlets:r}]}if(s.segmentPath)return[...o,s.segmentPath]}return"string"!=typeof s?[...o,s]:0===a?(s.split("/").forEach((r,u)=>{0==u&&"."===r||(0==u&&""===r?e=!0:".."===r?i++:""!=r&&o.push(r))}),o):[...o,s]},[]);return new jk(e,i,n)}(i);if(s.toRoot())return NC(o,o,new An([],{}),e,n);const a=function oQ(t,i,e){if(t.isAbsolute)return new C_(i,!0,0);if(!e)return new C_(i,!1,NaN);if(null===e.parent)return new C_(e,!0,0);const n=y_(t.commands[0])?0:1;return function sQ(t,i,e){let n=t,o=i,s=e;for(;s>o;){if(s-=o,n=n.parent,!n)throw new ee(4005,!1);o=n.segments.length}return new C_(n,!1,o-s)}(e,e.segments.length-1+n,t.numberOfDoubleDots)}(s,o,t),r=a.processChildren?Lh(a.segmentGroup,a.index,s.commands):Gk(a.segmentGroup,a.index,s.commands);return NC(o,a.segmentGroup,r,e,n)}function y_(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Fh(t){return"object"==typeof t&&null!=t&&t.outlets}function NC(t,i,e,n,o){let a,s={};n&&Object.entries(n).forEach(([u,m])=>{s[u]=Array.isArray(m)?m.map(g=>`${g}`):`${m}`}),a=t===i?e:$k(t,i,e);const r=Bk(Vk(a));return new md(r,s,o)}function $k(t,i,e){const n={};return Object.entries(t.children).forEach(([o,s])=>{n[o]=s===i?e:$k(s,i,e)}),new An(t.segments,n)}class jk{constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&y_(n[0]))throw new ee(4003,!1);const o=n.find(Fh);if(o&&o!==Ik(n))throw new ee(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class C_{constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}}function Gk(t,i,e){if(t||(t=new An([],{})),0===t.segments.length&&t.hasChildren())return Lh(t,i,e);const n=function rQ(t,i,e){let n=0,o=i;const s={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(n>=e.length)return s;const a=t.segments[o],r=e[n];if(Fh(r))break;const u=`${r}`,m=n<e.length-1?e[n+1]:null;if(o>0&&void 0===u)break;if(u&&m&&"object"==typeof m&&void 0===m.outlets){if(!Wk(u,m,a))return s;n+=2}else{if(!Wk(u,{},a))return s;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){const s=new An(t.segments.slice(0,n.pathIndex),{});return s.children[yt]=new An(t.segments.slice(n.pathIndex),t.children),Lh(s,0,o)}return n.match&&0===o.length?new An(t.segments,{}):n.match&&!t.hasChildren()?FC(t,i,e):n.match?Lh(t,0,o):FC(t,i,e)}function Lh(t,i,e){if(0===e.length)return new An(t.segments,{});{const n=function aQ(t){return Fh(t[0])?t[0].outlets:{[yt]:t}}(e),o={};if(Object.keys(n).some(s=>s!==yt)&&t.children[yt]&&1===t.numberOfChildren&&0===t.children[yt].segments.length){const s=Lh(t.children[yt],i,e);return new An(t.segments,s.children)}return Object.entries(n).forEach(([s,a])=>{"string"==typeof a&&(a=[a]),null!==a&&(o[s]=Gk(t.children[s],i,a))}),Object.entries(t.children).forEach(([s,a])=>{void 0===n[s]&&(o[s]=a)}),new An(t.segments,o)}}function FC(t,i,e){const n=t.segments.slice(0,i);let o=0;for(;o<e.length;){const s=e[o];if(Fh(s)){const u=lQ(s.outlets);return new An(n,u)}if(0===o&&y_(e[0])){n.push(new Ah(t.segments[i].path,zk(e[0]))),o++;continue}const a=Fh(s)?s.outlets[yt]:`${s}`,r=o<e.length-1?e[o+1]:null;a&&r&&y_(r)?(n.push(new Ah(a,zk(r))),o+=2):(n.push(new Ah(a,{})),o++)}return new An(n,{})}function lQ(t){const i={};return Object.entries(t).forEach(([e,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(i[e]=FC(new An([],{}),0,n))}),i}function zk(t){const i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function Wk(t,i,e){return t==e.path&&na(i,e.parameters)}const Bh="imperative";class ia{constructor(i,e){this.id=i,this.url=e}}class w_ extends ia{constructor(i,e,n="imperative",o=null){super(i,e),this.type=0,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Mr extends ia{constructor(i,e,n){super(i,e),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vh extends ia{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fd extends ia{constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o,this.type=16}}class S_ extends ia{constructor(i,e,n,o){super(i,e),this.error=n,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qk extends ia{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cQ extends ia{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dQ extends ia{constructor(i,e,n,o,s){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class uQ extends ia{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hQ extends ia{constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pQ{constructor(i){this.route=i,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class mQ{constructor(i){this.route=i,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fQ{constructor(i){this.snapshot=i,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _Q{constructor(i){this.snapshot=i,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gQ{constructor(i){this.snapshot=i,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bQ{constructor(i){this.snapshot=i,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yk{constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class LC{}class BC{constructor(i){this.url=i}}class vQ{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Hh,this.attachRef=null}}let Hh=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new vQ,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class Qk{constructor(i){this._root=i}get root(){return this._root.value}parent(i){const e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){const e=VC(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){const e=VC(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){const e=HC(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return HC(i,this._root).map(e=>e.value)}}function VC(t,i){if(t===i.value)return i;for(const e of i.children){const n=VC(t,e);if(n)return n}return null}function HC(t,i){if(t===i.value)return[i];for(const e of i.children){const n=HC(t,e);if(n.length)return n.unshift(i),n}return[]}class La{constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}}function _d(t){const i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}class Zk extends Qk{constructor(i,e){super(i),this.snapshot=e,UC(this,i)}toString(){return this.snapshot.toString()}}function Kk(t,i){const e=function yQ(t,i){const a=new T_([],{},{},"",{},yt,i,null,{});return new Jk("",new La(a,[]))}(0,i),n=new ii([new Ah("",{})]),o=new ii({}),s=new ii({}),a=new ii({}),r=new ii(""),u=new cs(n,o,a,r,s,yt,i,e.root);return u.snapshot=e.root,new Zk(new La(u,[]),e)}class cs{constructor(i,e,n,o,s,a,r,u){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=s,this.outlet=a,this.component=r,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Le(m=>m[kh]))??ve(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Le(i=>pd(i)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Le(i=>pd(i)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xk(t,i="emptyOnly"){const e=t.pathFromRoot;let n=0;if("always"!==i)for(n=e.length-1;n>=1;){const o=e[n],s=e[n-1];if(o.routeConfig&&""===o.routeConfig.path)n--;else{if(s.component)break;n--}}return function CQ(t){return t.reduce((i,e)=>({params:{...i.params,...e.params},data:{...i.data,...e.data},resolve:{...e.data,...i.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(n))}class T_{get title(){return this.data?.[kh]}constructor(i,e,n,o,s,a,r,u,m){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=s,this.outlet=a,this.component=r,this.routeConfig=u,this._resolve=m}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=pd(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=pd(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(n=>n.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Jk extends Qk{constructor(i,e){super(e),this.url=i,UC(this,e)}toString(){return eA(this._root)}}function UC(t,i){i.value._routerState=t,i.children.forEach(e=>UC(t,e))}function eA(t){const i=t.children.length>0?` { ${t.children.map(eA).join(", ")} } `:"";return`${t.value}${i}`}function $C(t){if(t.snapshot){const i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,na(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),na(i.params,e.params)||t.paramsSubject.next(e.params),function LY(t,i){if(t.length!==i.length)return!1;for(let e=0;e<t.length;++e)if(!na(t[e],i[e]))return!1;return!0}(i.url,e.url)||t.urlSubject.next(e.url),na(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function jC(t,i){const e=na(t.params,i.params)&&function UY(t,i){return Ml(t,i)&&t.every((e,n)=>na(e.parameters,i[n].parameters))}(t.url,i.url);return e&&!(!t.parent!=!i.parent)&&(!t.parent||jC(t.parent,i.parent))}let GC=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=yt,this.activateEvents=new W,this.deactivateEvents=new W,this.attachEvents=new W,this.detachEvents=new W,this.parentContexts=he(Hh),this.location=he(kn),this.changeDetector=he(He),this.environmentInjector=he(co),this.inputBinder=he(D_,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 ee(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ee(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ee(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,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,n){if(this.isActivated)throw new ee(4013,!1);this._activatedRoute=e;const o=this.location,a=e.snapshot.component,r=this.parentContexts.getOrCreateContext(this.name).children,u=new wQ(e,r,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:n??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275dir=$({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[fe]})}return t})();class wQ{constructor(i,e,n){this.route=i,this.childContexts=e,this.parent=n}get(i,e){return i===cs?this.route:i===Hh?this.childContexts:this.parent.get(i,e)}}const D_=new Y("");let tA=(()=>{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:n}=e,o=ml([n.queryParams,n.params,n.data]).pipe(oi(([s,a,r],u)=>(r={...s,...a,...r},0===u?ve(r):Promise.resolve(r)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||null===n.component)return void this.unsubscribeFromRouteData(e);const a=function nj(t){const i=tn(t);if(!i)return null;const e=new Ru(i);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 i.standalone},get isSignal(){return i.signals}}}(n.component);if(a)for(const{templateName:r}of a.inputs)e.activatedComponentRef.setInput(r,s[r]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function Uh(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){const n=e.value;n._futureSnapshot=i.value;const o=function TQ(t,i,e){return i.children.map(n=>{for(const o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return Uh(t,n,o);return Uh(t,n)})}(t,i,e);return new La(n,o)}{if(t.shouldAttach(i.value)){const s=t.retrieve(i.value);if(null!==s){const a=s.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(r=>Uh(t,r)),a}}const n=function DQ(t){return new cs(new ii(t.url),new ii(t.params),new ii(t.queryParams),new ii(t.fragment),new ii(t.data),t.outlet,t.component,t)}(i.value),o=i.children.map(s=>Uh(t,s));return new La(n,o)}}const zC="ngNavigationCancelingError";function nA(t,i){const{redirectTo:e,navigationBehaviorOptions:n}=xl(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=iA(!1,0,i);return o.url=e,o.navigationBehaviorOptions=n,o}function iA(t,i,e){const n=new Error("NavigationCancelingError: "+(t||""));return n[zC]=!0,n.cancellationCode=i,e&&(n.url=e),n}function oA(t){return t&&t[zC]}let sA=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["ng-component"]],standalone:!0,features:[Z],decls:1,vars:0,template:function(n,o){1&n&&D(0,"router-outlet")},dependencies:[GC],encapsulation:2})}return t})();function WC(t){const i=t.children&&t.children.map(WC),e=i?{...t,children:i}:{...t};return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==yt&&(e.component=sA),e}function Ms(t){return t.outlet||yt}function $h(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){const e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class AQ{constructor(i,e,n,o,s){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=s}activate(i){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),$C(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){const o=_d(e);i.children.forEach(s=>{const a=s.value.outlet;this.deactivateRoutes(s,o[a],n),delete o[a]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if(o===s)if(o.component){const a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=_d(i);for(const a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],o);if(n&&n.outlet){const a=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:r})}}deactivateRouteAndOutlet(i,e){const n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,s=_d(i);for(const a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){const o=_d(e);i.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],n),this.forwardEvent(new bQ(s.value.snapshot))}),i.children.length&&this.forwardEvent(new _Q(i.value.snapshot))}activateRoutes(i,e,n){const o=i.value,s=e?e.value:null;if($C(o),o===s)if(o.component){const a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){const a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const r=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(r.contexts),a.attachRef=r.componentRef,a.route=r.route.value,a.outlet&&a.outlet.attach(r.componentRef,r.route.value),$C(r.route.value),this.activateChildRoutes(i,null,a.children)}else{const r=$h(o.snapshot);a.attachRef=null,a.route=o,a.injector=r,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}}else this.activateChildRoutes(i,null,n)}}class aA{constructor(i){this.path=i,this.route=this.path[this.path.length-1]}}class M_{constructor(i,e){this.component=i,this.route=e}}function PQ(t,i,e){const n=t._root;return jh(n,i?i._root:null,e,[n.value])}function gd(t,i){const e=Symbol(),n=i.get(t,e);return n===e?"function"!=typeof t||function S4(t){return null!==Bp(t)}(t)?i.get(t):t:n}function jh(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=_d(i);return t.children.forEach(a=>{(function FQ(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,a=i?i.value:null,r=e?e.getContext(t.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const u=function LQ(t,i,e){if("function"==typeof e)return e(t,i);switch(e){case"pathParamsChange":return!Ml(t.url,i.url);case"pathParamsOrQueryParamsChange":return!Ml(t.url,i.url)||!na(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!jC(t,i)||!na(t.queryParams,i.queryParams);default:return!jC(t,i)}}(a,s,s.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new aA(n)):(s.data=a.data,s._resolvedData=a._resolvedData),jh(t,i,s.component?r?r.children:null:e,n,o),u&&r&&r.outlet&&r.outlet.isActivated&&o.canDeactivateChecks.push(new M_(r.outlet.component,a))}else a&&Gh(i,r,o),o.canActivateChecks.push(new aA(n)),jh(t,null,s.component?r?r.children:null:e,n,o)})(a,s[a.value.outlet],e,n.concat([a.value]),o),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,r])=>Gh(r,e.getContext(a),o)),o}function Gh(t,i,e){const n=_d(t),o=t.value;Object.entries(n).forEach(([s,a])=>{Gh(a,o.component?i?i.children.getContext(s):null:i,e)}),e.canDeactivateChecks.push(new M_(o.component&&i&&i.outlet&&i.outlet.isActivated?i.outlet.component:null,o))}function zh(t){return"function"==typeof t}function rA(t){return t instanceof Rh||"EmptyError"===t?.name}const x_=Symbol("INITIAL_VALUE");function bd(){return oi(t=>ml(t.map(i=>i.pipe(Xe(1),jt(x_)))).pipe(Le(i=>{for(const e of i)if(!0!==e){if(e===x_)return x_;if(!1===e||e instanceof md)return e}return!0}),st(i=>i!==x_),Xe(1)))}function lA(t){return function xL(...t){return aS(t)}(Zn(i=>{if(xl(i))throw nA(0,i)}),Le(i=>!0===i))}class E_{constructor(i){this.segmentGroup=i||null}}class cA{constructor(i){this.urlTree=i}}function vd(t){return Aa(new E_(t))}function dA(t){return Aa(new cA(t))}class iZ{constructor(i,e){this.urlSerializer=i,this.urlTree=e}noMatchError(i){return new ee(4002,!1)}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return ve(n);if(o.numberOfChildren>1||!o.children[yt])return Aa(new ee(4e3,!1));o=o.children[yt]}}applyRedirectCommands(i,e,n){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),i,n)}applyRedirectCreateUrlTree(i,e,n,o){const s=this.createSegmentGroup(i,e.root,n,o);return new md(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){const n={};return Object.entries(i).forEach(([o,s])=>{if("string"==typeof s&&s.startsWith(":")){const r=s.substring(1);n[o]=e[r]}else n[o]=s}),n}createSegmentGroup(i,e,n,o){const s=this.createSegments(i,e.segments,n,o);let a={};return Object.entries(e.children).forEach(([r,u])=>{a[r]=this.createSegmentGroup(i,u,n,o)}),new An(s,a)}createSegments(i,e,n,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(i,s,o):this.findOrReturn(s,n))}findPosParam(i,e,n){const o=n[e.path.substring(1)];if(!o)throw new ee(4001,!1);return o}findOrReturn(i,e){let n=0;for(const o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}}const qC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oZ(t,i,e,n,o){const s=YC(t,i,e);return s.matched?(n=function xQ(t,i){return t.providers&&!t._injector&&(t._injector=Dv(t.providers,i,`Route: ${t.path}`)),t._injector??i}(i,n),function eZ(t,i,e,n){const o=i.canMatch;return o&&0!==o.length?ve(o.map(a=>{const r=gd(a,t);return Dr(function jQ(t){return t&&zh(t.canMatch)}(r)?r.canMatch(i,e):t.runInContext(()=>r(i,e)))})).pipe(bd(),lA()):ve(!0)}(n,i,e).pipe(Le(a=>!0===a?s:{...qC}))):ve(s)}function YC(t,i,e){if(""===i.path)return"full"===i.pathMatch&&(t.hasChildren()||e.length>0)?{...qC}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(i.matcher||FY)(e,t,i);if(!o)return{...qC};const s={};Object.entries(o.posParams??{}).forEach(([r,u])=>{s[r]=u.path});const a=o.consumed.length>0?{...s,...o.consumed[o.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function uA(t,i,e,n){return e.length>0&&function rZ(t,i,e){return e.some(n=>I_(t,i,n)&&Ms(n)!==yt)}(t,e,n)?{segmentGroup:new An(i,aZ(n,new An(e,t.children))),slicedSegments:[]}:0===e.length&&function lZ(t,i,e){return e.some(n=>I_(t,i,n))}(t,e,n)?{segmentGroup:new An(t.segments,sZ(t,0,e,n,t.children)),slicedSegments:e}:{segmentGroup:new An(t.segments,t.children),slicedSegments:e}}function sZ(t,i,e,n,o){const s={};for(const a of n)if(I_(t,e,a)&&!o[Ms(a)]){const r=new An([],{});s[Ms(a)]=r}return{...o,...s}}function aZ(t,i){const e={};e[yt]=i;for(const n of t)if(""===n.path&&Ms(n)!==yt){const o=new An([],{});e[Ms(n)]=o}return e}function I_(t,i,e){return(!(t.hasChildren()||i.length>0)||"full"!==e.pathMatch)&&""===e.path}class hZ{constructor(i,e,n,o,s,a,r){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=r,this.allowRedirects=!0,this.applyRedirects=new iZ(this.urlSerializer,this.urlTree)}noMatchError(i){return new ee(4002,!1)}recognize(){const i=uA(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,i,yt).pipe(Ji(e=>{if(e instanceof cA)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof E_?this.noMatchError(e):e}),Le(e=>{const n=new T_([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yt,this.rootComponentType,null,{}),o=new La(n,e),s=new Jk("",o),a=function nQ(t,i,e=null,n=null){return Uk(Hk(t),i,e,n)}(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root),{state:s,tree:a}}))}match(i){return this.processSegmentGroup(this.injector,this.config,i.root,yt).pipe(Ji(n=>{throw n instanceof E_?this.noMatchError(n):n}))}inheritParamsAndData(i){const e=i.value,n=Xk(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),i.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(i,e,n,o){return 0===n.segments.length&&n.hasChildren()?this.processChildren(i,e,n):this.processSegment(i,e,n,n.segments,o,!0)}processChildren(i,e,n){const o=[];for(const s of Object.keys(n.children))"primary"===s?o.unshift(s):o.push(s);return wi(o).pipe(ll(s=>{const a=n.children[s],r=function RQ(t,i){const e=t.filter(n=>Ms(n)===i);return e.push(...t.filter(n=>Ms(n)!==i)),e}(e,s);return this.processSegmentGroup(i,r,a,s)}),function AY(t,i){return qn(function kY(t,i,e,n,o){return(s,a)=>{let r=e,u=i,m=0;s.subscribe(On(a,g=>{const y=m++;u=r?t(u,g,y):(r=!0,g),n&&a.next(u)},o&&(()=>{r&&a.next(u),a.complete()})))}}(t,i,arguments.length>=2,!0))}((s,a)=>(s.push(...a),s)),m_(null),function PY(t,i){const e=arguments.length>=2;return n=>n.pipe(t?st((o,s)=>t(o,s,n)):ma,RC(1),e?m_(i):xk(()=>new Rh))}(),Ci(s=>{if(null===s)return vd(n);const a=hA(s);return function pZ(t){t.sort((i,e)=>i.value.outlet===yt?-1:e.value.outlet===yt?1:i.value.outlet.localeCompare(e.value.outlet))}(a),ve(a)}))}processSegment(i,e,n,o,s,a){return wi(e).pipe(ll(r=>this.processSegmentAgainstRoute(r._injector??i,e,r,n,o,s,a).pipe(Ji(u=>{if(u instanceof E_)return ve(null);throw u}))),Dl(r=>!!r),Ji(r=>{if(rA(r))return function dZ(t,i,e){return 0===i.length&&!t.children[e]}(n,o,s)?ve([]):vd(n);throw r}))}processSegmentAgainstRoute(i,e,n,o,s,a,r){return function cZ(t,i,e,n){return!!(Ms(t)===n||n!==yt&&I_(i,e,t))&&("**"===t.path||YC(i,t,e).matched)}(n,o,s,a)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(i,o,n,s,a,r):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,s,a):vd(o):vd(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,s,a){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(i,n,o,a):this.expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(i,e,n,o){const s=this.applyRedirects.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?dA(s):this.applyRedirects.lineralizeSegments(n,s).pipe(Ci(a=>{const r=new An(a,{});return this.processSegment(i,e,r,a,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(i,e,n,o,s,a){const{matched:r,consumedSegments:u,remainingSegments:m,positionalParamSegments:g}=YC(e,o,s);if(!r)return vd(e);const y=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,g);return o.redirectTo.startsWith("/")?dA(y):this.applyRedirects.lineralizeSegments(o,y).pipe(Ci(S=>this.processSegment(i,n,e,S.concat(m),a,!1)))}matchSegmentAgainstRoute(i,e,n,o,s,a){let r;if("**"===n.path){const u=o.length>0?Ik(o).parameters:{};r=ve({snapshot:new T_(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,pA(n),Ms(n),n.component??n._loadedComponent??null,n,mA(n)),consumedSegments:[],remainingSegments:[]}),e.children={}}else r=oZ(e,n,o,i).pipe(Le(({matched:u,consumedSegments:m,remainingSegments:g,parameters:y})=>u?{snapshot:new T_(m,y,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,pA(n),Ms(n),n.component??n._loadedComponent??null,n,mA(n)),consumedSegments:m,remainingSegments:g}:null));return r.pipe(oi(u=>null===u?vd(e):this.getChildConfig(i=n._injector??i,n,o).pipe(oi(({routes:m})=>{const g=n._loadedInjector??i,{snapshot:y,consumedSegments:S,remainingSegments:x}=u,{segmentGroup:R,slicedSegments:k}=uA(e,S,x,m);if(0===k.length&&R.hasChildren())return this.processChildren(g,m,R).pipe(Le(q=>null===q?null:[new La(y,q)]));if(0===m.length&&0===k.length)return ve([new La(y,[])]);const V=Ms(n)===s;return this.processSegment(g,m,R,k,V?yt:s,!0).pipe(Le(q=>[new La(y,q)]))}))))}getChildConfig(i,e,n){return e.children?ve({routes:e.children,injector:i}):e.loadChildren?void 0!==e._loadedRoutes?ve({routes:e._loadedRoutes,injector:e._loadedInjector}):function JQ(t,i,e,n){const o=i.canLoad;return void 0===o||0===o.length?ve(!0):ve(o.map(a=>{const r=gd(a,t);return Dr(function VQ(t){return t&&zh(t.canLoad)}(r)?r.canLoad(i,e):t.runInContext(()=>r(i,e)))})).pipe(bd(),lA())}(i,e,n).pipe(Ci(o=>o?this.configLoader.loadChildren(i,e).pipe(Zn(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function nZ(t){return Aa(iA(!1,3))}())):ve({routes:[],injector:i})}}function mZ(t){const i=t.value.routeConfig;return i&&""===i.path}function hA(t){const i=[],e=new Set;for(const n of t){if(!mZ(n)){i.push(n);continue}const o=i.find(s=>n.value.routeConfig===s.value.routeConfig);void 0!==o?(o.children.push(...n.children),e.add(o)):i.push(n)}for(const n of e){const o=hA(n.children);i.push(new La(n.value,o))}return i.filter(n=>!e.has(n))}function pA(t){return t.data||{}}function mA(t){return t.resolve||{}}function fA(t){return"string"==typeof t.title||null===t.title}function QC(t){return oi(i=>{const e=t(i);return e?wi(e).pipe(Le(()=>i)):ve(i)})}const yd=new Y("ROUTES");let ZC=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=he(DE)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ve(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const n=Dr(e.loadComponent()).pipe(Le(_A),Zn(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),nd(()=>{this.componentLoaders.delete(e)})),o=new OC(n,()=>new re).pipe(IC());return this.componentLoaders.set(e,o),o}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return ve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);const s=function CZ(t,i,e,n){return Dr(t.loadChildren()).pipe(Le(_A),Ci(o=>o instanceof Nx||Array.isArray(o)?ve(o):wi(i.compileModuleAsync(o))),Le(o=>{n&&n(t);let s,a,r=!1;return Array.isArray(o)?(a=o,!0):(s=o.create(e).injector,a=s.get(yd,[],{optional:!0,self:!0}).flat()),{routes:a.map(WC),injector:s}}))}(n,this.compiler,e,this.onLoadEndListener).pipe(nd(()=>{this.childrenLoaders.delete(n)})),a=new OC(s,()=>new re).pipe(IC());return this.childrenLoaders.set(n,a),a}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _A(t){return function wZ(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let O_=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new re,this.transitionAbortSubject=new re,this.configLoader=he(ZC),this.environmentInjector=he(co),this.urlSerializer=he(Ph),this.rootContexts=he(Hh),this.inputBindingEnabled=null!==he(D_,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ve(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new mQ(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new pQ(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const n=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:n})}setupNavigations(e,n,o){return this.transitions=new ii({id:0,currentUrlTree:n,currentRawUrl:n,currentBrowserUrl:n,extractedUrl:e.urlHandlingStrategy.extract(n),urlAfterRedirects:e.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Bh,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(st(s=>0!==s.id),Le(s=>({...s,extractedUrl:e.urlHandlingStrategy.extract(s.rawUrl)})),oi(s=>{this.currentTransition=s;let a=!1,r=!1;return ve(s).pipe(Zn(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),oi(u=>{const m=u.currentBrowserUrl.toString(),g=!e.navigated||u.extractedUrl.toString()!==m||m!==u.currentUrlTree.toString();if(!g&&"reload"!==(u.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const S="";return this.events.next(new fd(u.id,this.urlSerializer.serialize(u.rawUrl),S,0)),u.resolve(null),io}if(e.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return ve(u).pipe(oi(S=>{const x=this.transitions?.getValue();return this.events.next(new w_(S.id,this.urlSerializer.serialize(S.extractedUrl),S.source,S.restoredState)),x!==this.transitions?.getValue()?io:Promise.resolve(S)}),function fZ(t,i,e,n,o,s){return Ci(a=>function uZ(t,i,e,n,o,s,a="emptyOnly"){return new hZ(t,i,e,n,o,a,s).recognize()}(t,i,e,n,a.extractedUrl,o,s).pipe(Le(({state:r,tree:u})=>({...a,targetSnapshot:r,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Zn(S=>{s.targetSnapshot=S.targetSnapshot,s.urlAfterRedirects=S.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:S.urlAfterRedirects};const x=new qk(S.id,this.urlSerializer.serialize(S.extractedUrl),this.urlSerializer.serialize(S.urlAfterRedirects),S.targetSnapshot);this.events.next(x)}));if(g&&e.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:S,extractedUrl:x,source:R,restoredState:k,extras:V}=u,q=new w_(S,this.urlSerializer.serialize(x),R,k);this.events.next(q);const j=Kk(0,this.rootComponentType).snapshot;return this.currentTransition=s={...u,targetSnapshot:j,urlAfterRedirects:x,extras:{...V,skipLocationChange:!1,replaceUrl:!1}},ve(s)}{const S="";return this.events.next(new fd(u.id,this.urlSerializer.serialize(u.extractedUrl),S,1)),u.resolve(null),io}}),Zn(u=>{const m=new cQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(m)}),Le(u=>(this.currentTransition=s={...u,guards:PQ(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},s)),function zQ(t,i){return Ci(e=>{const{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:a}}=e;return 0===a.length&&0===s.length?ve({...e,guardsResult:!0}):function WQ(t,i,e,n){return wi(t).pipe(Ci(o=>function XQ(t,i,e,n,o){const s=i&&i.routeConfig?i.routeConfig.canDeactivate:null;return s&&0!==s.length?ve(s.map(r=>{const u=$h(i)??o,m=gd(r,u);return Dr(function $Q(t){return t&&zh(t.canDeactivate)}(m)?m.canDeactivate(t,i,e,n):u.runInContext(()=>m(t,i,e,n))).pipe(Dl())})).pipe(bd()):ve(!0)}(o.component,o.route,e,i,n)),Dl(o=>!0!==o,!0))}(a,n,o,t).pipe(Ci(r=>r&&function BQ(t){return"boolean"==typeof t}(r)?function qQ(t,i,e,n){return wi(i).pipe(ll(o=>lr(function QQ(t,i){return null!==t&&i&&i(new fQ(t)),ve(!0)}(o.route.parent,n),function YQ(t,i){return null!==t&&i&&i(new gQ(t)),ve(!0)}(o.route,n),function KQ(t,i,e){const n=i[i.length-1],s=i.slice(0,i.length-1).reverse().map(a=>function NQ(t){const i=t.routeConfig?t.routeConfig.canActivateChild:null;return i&&0!==i.length?{node:t,guards:i}:null}(a)).filter(a=>null!==a).map(a=>cr(()=>ve(a.guards.map(u=>{const m=$h(a.node)??e,g=gd(u,m);return Dr(function UQ(t){return t&&zh(t.canActivateChild)}(g)?g.canActivateChild(n,t):m.runInContext(()=>g(n,t))).pipe(Dl())})).pipe(bd())));return ve(s).pipe(bd())}(t,o.path,e),function ZQ(t,i,e){const n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||0===n.length)return ve(!0);const o=n.map(s=>cr(()=>{const a=$h(i)??e,r=gd(s,a);return Dr(function HQ(t){return t&&zh(t.canActivate)}(r)?r.canActivate(i,t):a.runInContext(()=>r(i,t))).pipe(Dl())}));return ve(o).pipe(bd())}(t,o.route,e))),Dl(o=>!0!==o,!0))}(n,s,t,i):ve(r)),Le(r=>({...e,guardsResult:r})))})}(this.environmentInjector,u=>this.events.next(u)),Zn(u=>{if(s.guardsResult=u.guardsResult,xl(u.guardsResult))throw nA(0,u.guardsResult);const m=new dQ(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(m)}),st(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),QC(u=>{if(u.guards.canActivateChecks.length)return ve(u).pipe(Zn(m=>{const g=new uQ(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(g)}),oi(m=>{let g=!1;return ve(m).pipe(function _Z(t,i){return Ci(e=>{const{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return ve(e);let s=0;return wi(o).pipe(ll(a=>function gZ(t,i,e,n){const o=t.routeConfig,s=t._resolve;return void 0!==o?.title&&!fA(o)&&(s[kh]=o.title),function bZ(t,i,e,n){const o=function vZ(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ve({});const s={};return wi(o).pipe(Ci(a=>function yZ(t,i,e,n){const o=$h(i)??n,s=gd(t,o);return Dr(s.resolve?s.resolve(i,e):o.runInContext(()=>s(i,e)))}(t[a],i,e,n).pipe(Dl(),Zn(r=>{s[a]=r}))),RC(1),f_(s),Ji(a=>rA(a)?io:Aa(a)))}(s,t,i,n).pipe(Le(a=>(t._resolvedData=a,t.data=Xk(t,e).resolve,o&&fA(o)&&(t.data[kh]=o.title),null)))}(a.route,n,t,i)),Zn(()=>s++),RC(1),Ci(a=>s===o.length?ve(e):io))})}(e.paramsInheritanceStrategy,this.environmentInjector),Zn({next:()=>g=!0,complete:()=>{g||this.cancelNavigationTransition(m,"",2)}}))}),Zn(m=>{const g=new hQ(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(g)}))}),QC(u=>{const m=g=>{const y=[];g.routeConfig?.loadComponent&&!g.routeConfig._loadedComponent&&y.push(this.configLoader.loadComponent(g.routeConfig).pipe(Zn(S=>{g.component=S}),Le(()=>{})));for(const S of g.children)y.push(...m(S));return y};return ml(m(u.targetSnapshot.root)).pipe(m_(),Xe(1))}),QC(()=>this.afterPreactivation()),Le(u=>{const m=function SQ(t,i,e){const n=Uh(t,i._root,e?e._root:void 0);return new Zk(n,i)}(e.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s={...u,targetRouterState:m},s}),Zn(()=>{this.events.next(new LC)}),((t,i,e,n)=>Le(o=>(new AQ(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),Xe(1),Zn({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Mr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),e.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),Se(this.transitionAbortSubject.pipe(Zn(u=>{throw u}))),nd(()=>{a||r||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Ji(u=>{if(r=!0,oA(u))this.events.next(new Vh(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),function MQ(t){return oA(t)&&xl(t.url)}(u)?this.events.next(new BC(u.url)):s.resolve(!1);else{this.events.next(new S_(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0));try{s.resolve(e.errorHandler(u))}catch(m){s.reject(m)}}return io}))}))}cancelNavigationTransition(e,n,o){const s=new Vh(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(s),e.resolve(!1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gA(t){return t!==Bh}let bA=(()=>{class t{buildTitle(e){let n,o=e.root;for(;void 0!==o;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(s=>s.outlet===yt);return n}getResolvedTitleForRoute(e){return e.data[kh]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return he(SZ)},providedIn:"root"})}return t})(),SZ=(()=>{class t extends bA{constructor(e){super(),this.title=e}updateTitle(e){const n=this.buildTitle(e);void 0!==n&&this.title.setTitle(n)}static#e=this.\u0275fac=function(n){return new(n||t)(H(JO))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),TZ=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return he(MZ)},providedIn:"root"})}return t})();class DZ{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}}let MZ=(()=>{class t extends DZ{static#e=this.\u0275fac=function(){let e;return function(o){return(e||(e=Qe(t)))(o||t)}}();static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const R_=new Y("",{providedIn:"root",factory:()=>({})});let xZ=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:function(){return he(EZ)},providedIn:"root"})}return t})(),EZ=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Wh=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Wh||{});function vA(t,i){t.events.pipe(st(e=>e instanceof Mr||e instanceof Vh||e instanceof S_||e instanceof fd),Le(e=>e instanceof Mr||e instanceof fd?Wh.COMPLETE:e instanceof Vh&&(0===e.code||1===e.code)?Wh.REDIRECTING:Wh.FAILED),st(e=>e!==Wh.REDIRECTING),Xe(1)).subscribe(()=>{i()})}function IZ(t){throw t}function OZ(t,i,e){return i.parse("/")}const RZ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kZ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let _i=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=he(TE),this.isNgZoneEnabled=!1,this._events=new re,this.options=he(R_,{optional:!0})||{},this.pendingTasks=he(ef),this.errorHandler=this.options.errorHandler||IZ,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||OZ,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=he(xZ),this.routeReuseStrategy=he(TZ),this.titleStrategy=he(bA),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=he(yd,{optional:!0})?.flat()??[],this.navigationTransitions=he(O_),this.urlSerializer=he(Ph),this.location=he(Ku),this.componentInputBindingEnabled=!!he(D_,{optional:!0}),this.eventsSubscription=new rt,this.isNgZoneEnabled=he(be)instanceof be&&be.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new md,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Kk(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe(n=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(yA(n)&&this._events.next(n));if(n instanceof w_)gA(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(n instanceof fd)this.rawUrlTree=o.rawUrl;else if(n instanceof qk){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const s=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(s,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(n instanceof LC)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(n instanceof Vh)0!==n.code&&1!==n.code&&(this.navigated=!0),(3===n.code||2===n.code)&&this.restoreHistory(o);else if(n instanceof BC){const s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),a={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||gA(o.source)};this.scheduleNavigation(s,Bh,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}n instanceof S_&&this.restoreHistory(o,!0),n instanceof Mr&&(this.navigated=!0),yA(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Bh,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const n="popstate"===e.type?"popstate":"hashchange";"popstate"===n&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,n,e.state)},0)}))}navigateToSyncWithBrowser(e,n,o){const s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}const r=this.parseUrl(e);this.scheduleNavigation(r,n,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(WC),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){const{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:r,preserveFragment:u}=n,m=u?this.currentUrlTree.fragment:a;let y,g=null;switch(r){case"merge":g={...this.currentUrlTree.queryParams,...s};break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=s||null}null!==g&&(g=this.removeEmptyProps(g));try{y=Hk(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),y=this.currentUrlTree.root}return Uk(y,e,g,m??null)}navigateByUrl(e,n={skipLocationChange:!1}){const o=xl(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Bh,null,n)}navigate(e,n={skipLocationChange:!1}){return function AZ(t){for(let i=0;i<t.length;i++)if(null==t[i])throw new ee(4008,!1)}(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let n;try{n=this.urlSerializer.parse(e)}catch(o){n=this.malformedUriErrorHandler(o,this.urlSerializer,e)}return n}isActive(e,n){let o;if(o=!0===n?{...RZ}:!1===n?{...kZ}:n,xl(e))return Rk(this.currentUrlTree,e,o);const s=this.parseUrl(e);return Rk(this.currentUrlTree,s,o)}removeEmptyProps(e){return Object.keys(e).reduce((n,o)=>{const s=e[o];return null!=s&&(n[o]=s),n},{})}scheduleNavigation(e,n,o,s,a){if(this.disposed)return Promise.resolve(!1);let r,u,m;a?(r=a.resolve,u=a.reject,m=a.promise):m=new Promise((y,S)=>{r=y,u=S});const g=this.pendingTasks.add();return vA(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:e,extras:s,resolve:r,reject:u,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(y=>Promise.reject(y))}setBrowserUrl(e,n){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||n.extras.replaceUrl){const a={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId)};this.location.replaceState(o,"",a)}else{const s={...n.extras.state,...this.generateNgRouterState(n.id,this.browserPageId+1)};this.location.go(o,"",s)}}restoreHistory(e,n=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-this.browserPageId;0!==s?this.location.historyGo(s):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yA(t){return!(t instanceof LC||t instanceof BC)}let Ba=(()=>{class t{constructor(e,n,o,s,a,r){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=r,this.href=null,this.commands=null,this.onChanges=new re,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=e.events.subscribe(m=>{m instanceof Mr&&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,n,o,s,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||n||o||s||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function q2(t,i,e){return function RV(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?W2:kt}(i,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,n){const o=this.renderer,s=this.el.nativeElement;null!==n?o.setAttribute(s,e,n):o.removeAttribute(s,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(n){return new(n||t)(_(_i),_(cs),Si("tabindex"),_(Co),_(oe),_(cl))};static#t=this.\u0275dir=$({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,o){1&n&&M("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),2&n&&J("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Xc],skipLocationChange:["skipLocationChange","skipLocationChange",Xc],replaceUrl:["replaceUrl","replaceUrl",Xc],routerLink:"routerLink"},standalone:!0,features:[sM,fe]})}return t})();class CA{}let FZ=(()=>{class t{constructor(e,n,o,s,a){this.router=e,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(st(e=>e instanceof Mr),ll(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){const o=[];for(const s of n){s.providers&&!s._injector&&(s._injector=Dv(s.providers,e,`Route: ${s.path}`));const a=s._injector??e,r=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(r,s.children??s._loadedRoutes))}return wi(o).pipe(tc())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;o=n.loadChildren&&void 0===n.canLoad?this.loader.loadChildren(e,n):ve(null);const s=o.pipe(Ci(a=>null===a?ve(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return n.loadComponent&&!n._loadedComponent?wi([s,this.loader.loadComponent(n)]).pipe(tc()):s})}static#e=this.\u0275fac=function(n){return new(n||t)(H(_i),H(DE),H(co),H(CA),H(ZC))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const KC=new Y("");let wA=(()=>{class t{constructor(e,n,o,s,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.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 w_?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Mr?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fd&&0===e.code&&(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 Yk&&(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,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Yk(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(n){zs()};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function Va(t,i){return{\u0275kind:t,\u0275providers:i}}function TA(){const t=he(_n);return i=>{const e=t.get(vs);if(i!==e.components[0])return;const n=t.get(_i),o=t.get(DA);1===t.get(XC)&&n.initialNavigation(),t.get(MA,null,Tt.Optional)?.setUpPreloading(),t.get(KC,null,Tt.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const DA=new Y("",{factory:()=>new re}),XC=new Y("",{providedIn:"root",factory:()=>1}),MA=new Y("");function HZ(t){return Va(0,[{provide:MA,useExisting:FZ},{provide:CA,useExisting:t}])}const xA=new Y("ROUTER_FORROOT_GUARD"),$Z=[Ku,{provide:Ph,useClass:kC},_i,Hh,{provide:cs,useFactory:function SA(t){return t.routerState.root},deps:[_i]},ZC,[]];function jZ(){return new kE("Router",_i)}let EA=(()=>{class t{constructor(e){}static forRoot(e,n){return{ngModule:t,providers:[$Z,[],{provide:yd,multi:!0,useValue:e},{provide:xA,useFactory:qZ,deps:[[_i,new Ko,new js]]},{provide:R_,useValue:n||{}},n?.useHash?{provide:cl,useClass:Cj}:{provide:cl,useClass:gI},{provide:KC,useFactory:()=>{const t=he(RG),i=he(be),e=he(R_),n=he(O_),o=he(Ph);return e.scrollOffset&&t.setOffset(e.scrollOffset),new wA(o,n,t,i,e)}},n?.preloadingStrategy?HZ(n.preloadingStrategy).\u0275providers:[],{provide:kE,multi:!0,useFactory:jZ},n?.initialNavigation?YZ(n):[],n?.bindToComponentInputs?Va(8,[tA,{provide:D_,useExisting:tA}]).\u0275providers:[],[{provide:IA,useFactory:TA},{provide:qv,multi:!0,useExisting:IA}]]}}static forChild(e){return{ngModule:t,providers:[{provide:yd,multi:!0,useValue:e}]}}static#e=this.\u0275fac=function(n){return new(n||t)(H(xA,8))};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();function qZ(t){return"guarded"}function YZ(t){return["disabled"===t.initialNavigation?Va(3,[{provide:Vv,multi:!0,useFactory:()=>{const i=he(_i);return()=>{i.setUpLocationChangeListener()}}},{provide:XC,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Va(2,[{provide:XC,useValue:0},{provide:Vv,multi:!0,deps:[_n],useFactory:i=>{const e=i.get(vj,Promise.resolve());return()=>e.then(()=>new Promise(n=>{const o=i.get(_i),s=i.get(DA);vA(o,()=>{n(!0)}),i.get(O_).afterPreactivation=()=>(n(!0),s.closed?ve(void 0):s),o.initialNavigation()}))}}]).\u0275providers:[]]}const IA=new Y("");let ZZ=(()=>{class t{constructor(e){this.router=e}ngOnInit(){this.router.navigate([OA()])}static#e=this.\u0275fac=function(n){return new(n||t)(_(_i))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-home"]],standalone:!0,features:[Z],decls:1,vars:0,consts:[[2,"padding","20px","color","white"]],template:function(n,o){1&n&&D(0,"div",0)}})}return t})();function OA(){if(!v.loggedIn)return"";switch(v.userType){case Be.ACCOUNT_TYPE_ADMIN:return"admin/matches";case Be.ACCOUNT_TYPE_COUNTRY_MANAGER:return"countrymanager/matches";case Be.ACCOUNT_TYPE_CUSTOMER:return"customer/purchases";case Be.ACCOUNT_TYPE_MODERATOR:return"moderator/matches";case Be.ACCOUNT_TYPE_REPORTER:return"reporter/matches";case Be.ACCOUNT_TYPE_TRIAL:return"trial/matches";case Be.ACCOUNT_TYPE_NETWORK_MANAGER:return"networkmanager/network";case Be.ACCOUNT_TYPE_QUALITY_MANAGER:return"qualitymanager/matches";case Be.ACCOUNT_TYPE_COVERAGE_MANAGER:return"coveragemanager/matches";default:return"myprofile"}}function RA(t,i){return i?e=>lr(i.pipe(Xe(1),function KZ(){return qn((t,i)=>{t.subscribe(On(i,Yd))})}()),e.pipe(RA(t))):Ci((e,n)=>yi(t(e,n)).pipe(Xe(1),f_(e)))}function k_(t,i=Of){const e=h_(t,i);return RA(()=>e)}class JC{attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;null!=i&&(this._attachedHost=null,i.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(i){this._attachedHost=i}}class xr extends JC{constructor(i,e,n,o,s){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=o,this.projectableNodes=s}}class Er extends JC{constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}}class XZ extends JC{constructor(i){super(),this.element=i instanceof oe?i.nativeElement:i}}class A_{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(i){return i instanceof xr?(this._attachedPortal=i,this.attachComponentPortal(i)):i instanceof Er?(this._attachedPortal=i,this.attachTemplatePortal(i)):this.attachDomPortal&&i instanceof XZ?(this._attachedPortal=i,this.attachDomPortal(i)):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(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class JZ extends A_{constructor(i,e,n,o,s){super(),this.outletElement=i,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=o,this.attachDomPortal=a=>{const r=a.element,u=this._document.createComment("dom-portal");r.parentNode.insertBefore(u,r),this.outletElement.appendChild(r),this._attachedPortal=a,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=s}attachComponentPortal(i){const n=(i.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(i.component);let o;return i.viewContainerRef?(o=i.viewContainerRef.createComponent(n,i.viewContainerRef.length,i.injector||i.viewContainerRef.injector,i.projectableNodes||void 0),this.setDisposeFn(()=>o.destroy())):(o=n.create(i.injector||this._defaultInjector||_n.NULL),this._appRef.attachView(o.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(o.hostView),o.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(o)),this._attachedPortal=i,o}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);-1!==o&&e.remove(o)}),this._attachedPortal=i,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}}let xs=(()=>{class t extends A_{constructor(e,n,o){super(),this._componentFactoryResolver=e,this._viewContainerRef=n,this._isInitialized=!1,this.attached=new W,this.attachDomPortal=s=>{const a=s.element,r=this._document.createComment("dom-portal");s.setAttachedHost(this),a.parentNode.insertBefore(r,a),this._getRootNode().appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(a,r)})},this._document=o}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 n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,s=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=n.createComponent(s,n.length,e.injector||n.injector,e.projectableNodes||void 0);return n!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(e){e.setAttachedHost(this);const n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static#e=this.\u0275fac=function(n){return new(n||t)(_(el),_(kn),_(Ue))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[te]})}return t})(),Ir=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();const kA=qI();class tK{constructor(i,e){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=Di(-this._previousScrollPosition.left),i.style.top=Di(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,n=i.style,o=this._document.body.style,s=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),kA&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),kA&&(n.scrollBehavior=s,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}}class nK{constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0).pipe(st(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=i.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class AA{enable(){}disable(){}attach(){}}function e0(t,i){return i.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function PA(t,i){return i.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class iK{constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o,this._scrollSubscription=null}attach(i){this._overlayRef=i}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:n,height:o}=this._viewportRuler.getViewportSize();e0(e,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let oK=(()=>{class t{constructor(e,n,o,s){this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=o,this.noop=()=>new AA,this.close=a=>new nK(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new tK(this._viewportRuler,this._document),this.reposition=a=>new iK(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=s}static#e=this.\u0275fac=function(n){return new(n||t)(H(Eh),H(ea),H(be),H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class El{constructor(i){if(this.scrollStrategy=new AA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const e=Object.keys(i);for(const n of e)void 0!==i[n]&&(this[n]=i[n])}}}class sK{constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}}let NA=(()=>{class t{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aK=(()=>{class t extends NA{constructor(e,n){super(e),this._ngZone=n,this._keydownListener=o=>{const s=this._attachedOverlays;for(let a=s.length-1;a>-1;a--)if(s[a]._keydownEvents.observers.length>0){const r=s[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>r.next(o)):r.next(o);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(n){return new(n||t)(H(Ue),H(be,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),rK=(()=>{class t extends NA{constructor(e,n,o){super(e),this._platform=n,this._ngZone=o,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=fr(s)},this._clickListener=s=>{const a=fr(s),r="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;const u=this._attachedOverlays.slice();for(let m=u.length-1;m>-1;m--){const g=u[m];if(g._outsidePointerEvents.observers.length<1||!g.hasAttached())continue;if(g.overlayElement.contains(a)||g.overlayElement.contains(r))break;const y=g._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>y.next(s)):y.next(s)}}}add(e){if(super.add(e),!this._isAttached){const n=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(n)):this._addEventListeners(n),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.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(n){return new(n||t)(H(Ue),H(Bn),H(be,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),P_=(()=>{class t{constructor(e,n){this._platform=n,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||ky()){const o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let s=0;s<o.length;s++)o[s].remove()}const n=this._document.createElement("div");n.classList.add(e),ky()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(Bn))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class qh{constructor(i,e,n,o,s,a,r,u,m,g=!1){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=s,this._keyboardDispatcher=a,this._document=r,this._location=u,this._outsideClickDispatcher=m,this._animationsDisabled=g,this._backdropElement=null,this._backdropClick=new re,this._attachments=new re,this._detachments=new re,this._locationChanges=rt.EMPTY,this._backdropClickHandler=y=>this._backdropClick.next(y),this._backdropTransitionendHandler=y=>{this._disposeBackdrop(y.target)},this._keydownEvents=new re,this._outsidePointerEvents=new re,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Xe(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 i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=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,i&&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(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=Di(this._config.width),i.height=Di(this._config.height),i.minWidth=Di(this._config.minWidth),i.minHeight=Di(this._config.minHeight),i.maxWidth=Di(this._config.maxWidth),i.maxHeight=Di(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="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(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,e,n){const o=Af(e||[]).filter(s=>!!s);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe(Se(un(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()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const FA="cdk-overlay-connected-position-bounding-box",lK=/([A-Za-z%]+)$/;class LA{get positions(){return this._preferredPositions}constructor(i,e,n,o,s){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=s,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 re,this._resizeSubscription=rt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}attach(i){this._validatePositions(),i.hostElement.classList.add(FA),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.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 i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,s=[];let a;for(let r of this._preferredPositions){let u=this._getOriginPoint(i,o,r),m=this._getOverlayPoint(u,e,r),g=this._getOverlayFit(m,e,n,r);if(g.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,u);this._canFitWithFlexibleDimensions(g,m,n)?s.push({position:r,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,r)}):(!a||a.overlayFit.visibleArea<g.visibleArea)&&(a={overlayFit:g,overlayPoint:m,originPoint:u,position:r,overlayRect:e})}if(s.length){let r=null,u=-1;for(const m of s){const g=m.boundingBoxRect.width*m.boundingBoxRect.height*(m.position.weight||1);g>u&&(u=g,r=m)}return this._isPushed=!1,void this._applyPosition(r.position,r.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(a.position,a.originPoint);this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Il(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(FA),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){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,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let o,s;if("center"==n.originX)o=i.left+i.width/2;else{const a=this._isRtl()?i.right:i.left,r=this._isRtl()?i.left:i.right;o="start"==n.originX?a:r}return e.left<0&&(o-=e.left),s="center"==n.originY?i.top+i.height/2:"top"==n.originY?i.top:i.bottom,e.top<0&&(s-=e.top),{x:o,y:s}}_getOverlayPoint(i,e,n){let o,s;return o="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:i.x+o,y:i.y+s}}_getOverlayFit(i,e,n,o){const s=VA(e);let{x:a,y:r}=i,u=this._getOffset(o,"x"),m=this._getOffset(o,"y");u&&(a+=u),m&&(r+=m);let S=0-r,x=r+s.height-n.height,R=this._subtractOverflows(s.width,0-a,a+s.width-n.width),k=this._subtractOverflows(s.height,S,x),V=R*k;return{visibleArea:V,isCompletelyWithinViewport:s.width*s.height===V,fitsInViewportVertically:k===s.height,fitsInViewportHorizontally:R==s.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){const o=n.bottom-e.y,s=n.right-e.x,a=BA(this._overlayRef.getConfig().minHeight),r=BA(this._overlayRef.getConfig().minWidth);return(i.fitsInViewportVertically||null!=a&&a<=o)&&(i.fitsInViewportHorizontally||null!=r&&r<=s)}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const o=VA(e),s=this._viewportRect,a=Math.max(i.x+o.width-s.width,0),r=Math.max(i.y+o.height-s.height,0),u=Math.max(s.top-n.top-i.y,0),m=Math.max(s.left-n.left-i.x,0);let g=0,y=0;return g=o.width<=s.width?m||-a:i.x<this._viewportMargin?s.left-n.left-i.x:0,y=o.height<=s.height?u||-r:i.y<this._viewportMargin?s.top-n.top-i.y:0,this._previousPushAmount={x:g,y},{x:i.x+g,y:i.y+y}}_applyPosition(i,e){if(this._setTransformOrigin(i),this._setOverlayElementStyles(e,i),this._setBoundingBoxStyles(e,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._lastPosition=i,this._positionChanges.observers.length){const n=this._getScrollVisibility(),o=new sK(i,n);this._positionChanges.next(o)}this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,o=i.overlayY;n="center"===i.overlayX?"center":this._isRtl()?"start"===i.overlayX?"right":"left":"start"===i.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${o}`}_calculateBoundingBoxRect(i,e){const n=this._viewportRect,o=this._isRtl();let s,a,r,g,y,S;if("top"===e.overlayY)a=i.y,s=n.height-a+this._viewportMargin;else if("bottom"===e.overlayY)r=n.height-i.y+2*this._viewportMargin,s=n.height-r+this._viewportMargin;else{const x=Math.min(n.bottom-i.y+n.top,i.y),R=this._lastBoundingBoxSize.height;s=2*x,a=i.y-x,s>R&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-R/2)}if("end"===e.overlayX&&!o||"start"===e.overlayX&&o)S=n.width-i.x+this._viewportMargin,g=i.x-this._viewportMargin;else if("start"===e.overlayX&&!o||"end"===e.overlayX&&o)y=i.x,g=n.right-i.x;else{const x=Math.min(n.right-i.x+n.left,i.x),R=this._lastBoundingBoxSize.width;g=2*x,y=i.x-x,g>R&&!this._isInitialRender&&!this._growAfterOpen&&(y=i.x-R/2)}return{top:a,left:y,bottom:r,right:S,width:g,height:s}}_setBoundingBoxStyles(i,e){const n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=Di(n.height),o.top=Di(n.top),o.bottom=Di(n.bottom),o.width=Di(n.width),o.left=Di(n.left),o.right=Di(n.right),o.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",o.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",s&&(o.maxHeight=Di(s)),a&&(o.maxWidth=Di(a))}this._lastBoundingBoxSize=n,Il(this._boundingBox.style,o)}_resetBoundingBoxStyles(){Il(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Il(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){const n={},o=this._hasExactPosition(),s=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){const g=this._viewportRuler.getViewportScrollPosition();Il(n,this._getExactOverlayY(e,i,g)),Il(n,this._getExactOverlayX(e,i,g))}else n.position="static";let r="",u=this._getOffset(e,"x"),m=this._getOffset(e,"y");u&&(r+=`translateX(${u}px) `),m&&(r+=`translateY(${m}px)`),n.transform=r.trim(),a.maxHeight&&(o?n.maxHeight=Di(a.maxHeight):s&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=Di(a.maxWidth):s&&(n.maxWidth="")),Il(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),"bottom"===i.overlayY?o.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":o.top=Di(s.y),o}_getExactOverlayX(i,e,n){let a,o={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,i);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),a=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===a?o.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":o.left=Di(s.x),o}_getScrollVisibility(){const i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:PA(i,n),isOriginOutsideView:e0(i,n),isOverlayClipped:PA(e,n),isOverlayOutsideView:e0(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return"x"===e?null==i.offsetX?this._offsetX:i.offsetX:null==i.offsetY?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Af(i).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof oe)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}}function Il(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function BA(t){if("number"!=typeof t&&null!=t){const[i,e]=t.split(lK);return e&&"px"!==e?null:parseFloat(i)}return t||null}function VA(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 HA="cdk-global-overlay-wrapper";class cK{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(HA),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:s,maxWidth:a,maxHeight:r}=n,u=!("100%"!==o&&"100vw"!==o||a&&"100%"!==a&&"100vw"!==a),m=!("100%"!==s&&"100vh"!==s||r&&"100%"!==r&&"100vh"!==r),g=this._xPosition,y=this._xOffset,S="rtl"===this._overlayRef.getConfig().direction;let x="",R="",k="";u?k="flex-start":"center"===g?(k="center",S?R=y:x=y):S?"left"===g||"end"===g?(k="flex-end",x=y):("right"===g||"start"===g)&&(k="flex-start",R=y):"left"===g||"start"===g?(k="flex-start",x=y):("right"===g||"end"===g)&&(k="flex-end",R=y),i.position=this._cssPosition,i.marginLeft=u?"0":x,i.marginTop=m?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=u?"0":R,e.justifyContent=k,e.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(HA),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let dK=(()=>{class t{constructor(e,n,o,s){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=s}global(){return new cK}flexibleConnectedTo(e){return new LA(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(n){return new(n||t)(H(ea),H(Ue),H(Bn),H(P_))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uK=0,Fi=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y,S,x){this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=o,this._positionBuilder=s,this._keyboardDispatcher=a,this._injector=r,this._ngZone=u,this._document=m,this._directionality=g,this._location=y,this._outsideClickDispatcher=S,this._animationsModuleType=x}create(e){const n=this._createHostElement(),o=this._createPaneElement(n),s=this._createPortalOutlet(o),a=new El(e);return a.direction=a.direction||this._directionality.value,new qh(s,n,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(e){const n=this._document.createElement("div");return n.id="cdk-overlay-"+uK++,n.classList.add("cdk-overlay-pane"),e.appendChild(n),n}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(vs)),new JZ(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(n){return new(n||t)(H(oK),H(P_),H(el),H(dK),H(aK),H(_n),H(be),H(Ue),H(Kn),H(Ku),H(rK),H(Fn,8))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const hK=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],UA=new Y("cdk-connected-overlay-scroll-strategy");let $A=(()=>{class t{constructor(e){this.elementRef=e}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return t})(),jA=(()=>{class t{get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=pe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=pe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=pe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=pe(e)}get push(){return this._push}set push(e){this._push=pe(e)}constructor(e,n,o,s,a){this._overlay=e,this._dir=a,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=rt.EMPTY,this._attachSubscription=rt.EMPTY,this._detachSubscription=rt.EMPTY,this._positionSubscription=rt.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new W,this.positionChange=new W,this.attach=new W,this.detach=new W,this.overlayKeydown=new W,this.overlayOutsideClick=new W,this._templatePortal=new Er(n,o),this._scrollStrategyFactory=s,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=hK);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),27===n.keyCode&&!this.disableClose&&!li(n)&&(n.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{this.overlayOutsideClick.next(n)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new El({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(n.width=this.width),(this.height||0===this.height)&&(n.height=this.height),(this.minWidth||0===this.minWidth)&&(n.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){const n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof $A?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function eK(t,i=!1){return qn((e,n)=>{let o=0;e.subscribe(On(n,s=>{const a=t(s,o++);(a||i)&&n.next(s),!a&&n.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Fi),_(bt),_(kn),_(UA),_(Kn,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[fe]})}return t})();const mK={provide:UA,deps:[Fi],useFactory:function pK(t){return()=>t.scrollStrategies.reposition()}};let Or=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({providers:[Fi,mK],imports:[uh,Ir,xC,xC]})}return t})();const fK=["mat-menu-item",""];function _K(t,i){1&t&&(ai(),l(0,"svg",2),D(1,"polygon",3),d())}const GA=["*"];function gK(t,i){if(1&t){const e=F();l(0,"div",0),M("keydown",function(o){return E(e),I(b()._handleKeydown(o))})("click",function(){return E(e),I(b().closed.emit("click"))})("@transformMenu.start",function(o){return E(e),I(b()._onAnimationStart(o))})("@transformMenu.done",function(o){return E(e),I(b()._onAnimationDone(o))}),l(1,"div",1),$e(2),d()()}if(2&t){const e=b();f("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),J("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const N_={transformMenu:ei("transformMenu",[ot("void",xe({opacity:0,transform:"scale(0.8)"})),Et("void => enter",At("120ms cubic-bezier(0, 0, 0.2, 1)",xe({opacity:1,transform:"scale(1)"}))),Et("* => void",At("100ms 25ms linear",xe({opacity:0})))]),fadeInItems:ei("fadeInItems",[ot("showing",xe({opacity:1})),Et("void => *",[xe({opacity:0}),At("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},bK=new Y("MatMenuContent"),t0=new Y("MAT_MENU_PANEL"),vK=as(Ss(class{}));let Ol=(()=>{class t extends vK{constructor(e,n,o,s,a){super(),this._elementRef=e,this._document=n,this._focusMonitor=o,this._parentMenu=s,this._changeDetectorRef=a,this.role="menuitem",this._hovered=new re,this._focused=new re,this._highlighted=!1,this._triggersSubmenu=!1,s?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o<n.length;o++)n[o].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Ue),_($i),_(t0,8),_(He))},t.\u0275cmp=U({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(e,n){1&e&&M("click",function(s){return n._checkDisabled(s)})("mouseenter",function(){return n._handleMouseEnter()}),2&e&&(J("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled.toString())("disabled",n.disabled||null),de("mat-menu-item",!0)("mat-menu-item-highlighted",n._highlighted)("mat-menu-item-submenu-trigger",n._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[te],attrs:fK,ngContentSelectors:GA,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(e,n){1&e&&(Dt(),$e(0),D(1,"div",0),p(2,_K,2,0,"svg",1)),2&e&&(c(1),f("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),c(1),f("ngIf",n._triggersSubmenu))},dependencies:[le,Bo],encapsulation:2,changeDetection:0}),t})();const zA=new Y("mat-menu-default-options",{providedIn:"root",factory:function yK(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let CK=0,Yh=(()=>{class t{constructor(e,n,o,s){this._elementRef=e,this._ngZone=n,this._defaultOptions=o,this._changeDetectorRef=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new ar,this._tabSubscription=rt.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new re,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new W,this.close=this.closed,this.panelId="mat-menu-panel-"+CK++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=pe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=pe(e)}set panelClass(e){const n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Lf(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(jt(this._directDescendantItems),oi(e=>un(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{const n=this._keyManager;if("enter"===this._panelAnimationState&&n.activeItem?._hasFocus()){const o=e.toArray(),s=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[s]&&!o[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(jt(this._directDescendantItems),oi(n=>un(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const n=e.keyCode,o=this._keyManager;switch(n){case 27:li(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===n||40===n)&&o.setFocusOrigin("keyboard"),void o.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{let n=null;if(this._directDescendantItems.length&&(n=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!n||!n.contains(document.activeElement)){const o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const n=Math.min(this._baseElevation+e,24),o=`${this._elevationPrefix}${n}`,s=Object.keys(this._classList).find(a=>a.startsWith(this._elevationPrefix));(!s||s===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(e=this.xPosition,n=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===e,o["mat-menu-after"]="after"===e,o["mat-menu-above"]="above"===n,o["mat-menu-below"]="below"===n,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(jt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(zA),_(He))},t.\u0275dir=$({type:t,contentQueries:function(e,n,o){if(1&e&&(Pe(o,bK,5),Pe(o,Ol,5),Pe(o,Ol,4)),2&e){let s;G(s=z())&&(n.lazyContent=s.first),G(s=z())&&(n._allItems=s),G(s=z())&&(n.items=s)}},viewQuery:function(e,n){if(1&e&&ne(bt,5),2&e){let o;G(o=z())&&(n.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t})(),F_=(()=>{class t extends Yh{constructor(e,n,o,s){super(e,n,o,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(zA),_(He))},t.\u0275cmp=U({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,n){2&e&&J("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[me([{provide:t0,useExisting:t}]),te],ngContentSelectors:GA,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,n){1&e&&(Dt(),p(0,gK,3,6,"ng-template"))},dependencies:[Qs],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[N_.transformMenu,N_.fadeInItems]},changeDetection:0}),t})();const WA=new Y("mat-menu-scroll-strategy"),SK={provide:WA,deps:[Fi],useFactory:function wK(t){return()=>t.scrollStrategies.reposition()}},qA=hl({passive:!0});let TK=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g){this._overlay=e,this._element=n,this._viewContainerRef=o,this._menuItemInstance=r,this._dir=u,this._focusMonitor=m,this._ngZone=g,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=rt.EMPTY,this._hoverSubscription=rt.EMPTY,this._menuCloseSubscription=rt.EMPTY,this._handleTouchStart=y=>{Hy(y)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new W,this.onMenuOpen=this.menuOpened,this.menuClosed=new W,this.onMenuClose=this.menuClosed,this._scrollStrategy=s,this._parentMaterialMenu=a instanceof Yh?a:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,qA),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),("click"===n||"tab"===n)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,qA),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const e=this.menu;if(this._menuOpen||!e)return;const n=this._createOverlay(e),o=n.getConfig(),s=o.positionStrategy;this._setPosition(e,s),o.hasBackdrop=null==e.hasBackdrop?!this.triggersSubmenu():e.hasBackdrop,n.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Yh&&(e._startAnimation(),e._directDescendantItems.changes.pipe(Se(e.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,n instanceof Yh?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(st(o=>"void"===o.toState),Xe(1),Se(n.lazyContent._attached)).subscribe({next:()=>n.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let n=0,o=e.parentMenu;for(;o;)n++,o=o.parentMenu;e.setElevation(n)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_createOverlay(e){if(!this._overlayRef){const n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new El({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{const s="start"===o.connectionPair.overlayX?"after":"before",a="top"===o.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(s,a)):e.setPositionClasses(s,a)})}_setPosition(e,n){let[o,s]="before"===e.xPosition?["end","start"]:["start","end"],[a,r]="above"===e.yPosition?["bottom","top"]:["top","bottom"],[u,m]=[a,r],[g,y]=[o,s],S=0;if(this.triggersSubmenu()){if(y=o="before"===e.xPosition?"start":"end",s=g="end"===o?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const x=this._parentMaterialMenu.items.first;this._parentInnerPadding=x?x._getHostElement().offsetTop:0}S="bottom"===a?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(u="top"===a?"bottom":"top",m="top"===r?"bottom":"top");n.withPositions([{originX:o,originY:u,overlayX:g,overlayY:a,offsetY:S},{originX:s,originY:u,overlayX:y,overlayY:a,offsetY:S},{originX:o,originY:m,overlayX:g,overlayY:r,offsetY:-S},{originX:s,originY:m,overlayX:y,overlayY:r,offsetY:-S}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return un(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:ve(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(st(a=>a!==this._menuItemInstance),st(()=>this._menuOpen)):ve(),n)}_handleMousedown(e){Vy(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const n=e.keyCode;(13===n||32===n)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===n&&"ltr"===this.dir||37===n&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(st(e=>e===this._menuItemInstance&&!e.disabled),k_(0,MC)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Yh&&this.menu._isAnimating?this.menu._animationDone.pipe(Xe(1),k_(0,MC),Se(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Er(e.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(_(Fi),_(oe),_(kn),_(WA),_(t0,8),_(Ol,10),_(Kn,8),_($i),_(be))},t.\u0275dir=$({type:t,hostVars:3,hostBindings:function(e,n){1&e&&M("click",function(s){return n._handleClick(s)})("mousedown",function(s){return n._handleMousedown(s)})("keydown",function(s){return n._handleKeydown(s)}),2&e&&J("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),t})(),Qh=(()=>{class t extends TK{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[te]}),t})(),Rl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[SK],imports:[ce,ze,ka,Or,Na,ze]}),t})();const DK=["*",[["mat-toolbar-row"]]],MK=["*","mat-toolbar-row"],xK=Ts(class{constructor(t){this._elementRef=t}});let EK=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),IK=(()=>{class t extends xK{constructor(e,n,o){super(e),this._platform=n,this._document=o}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Bn),_(Ue))},t.\u0275cmp=U({type:t,selectors:[["mat-toolbar"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,EK,5),2&e){let s;G(s=z())&&(n._toolbarRows=s)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,n){2&e&&de("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[te],ngContentSelectors:MK,decls:2,vars:0,template:function(e,n){1&e&&(Dt(DK),$e(0),$e(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0}),t})(),YA=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})();function n0(t,i){t.loggedIn=!1,t.token="",t.userId=0,t.userName="",t.userLastName="",t.userType=0,t.userLastIP="",t.userLastDate=null,t.languages=[],t.sports=[],t.competitions=[],t.regions=[],t.paymentMethods=[],t.positions=[],t.stadiums=[],t.countries=[],sessionStorage.removeItem("filteredMatches"),sessionStorage.removeItem("filterStorageMatch"),sessionStorage.removeItem("filterStorage"),sessionStorage.removeItem("filterStorageP"),sessionStorage.removeItem("isFilterExpanded"),i.set(t.cookies.token,"",0,"/","",!0,"Strict"),i.set(t.cookies.userId,"",0,"/","",!0,"Strict"),i.deleteAll("/")}function ZA(t,i,e,n){t.loggedIn=!0,t.userId=e.userId,t.userName=e.userName,t.userLastName=e.userLastName,t.userType=e.userType,t.userLastIP=e.userLastIP,t.userLastDate=new Date(e.userLastDate),t.languages=e.languages,t.sports=e.sports,t.competitions=e.competitions,t.regions=e.regions,t.paymentMethods=e.paymentMethods,t.positions=e.positions,t.stadiums=e.stadiums,t.countries=e.countries,i.set(t.cookies.userId,e.userId,.3,"/","",!0,"Strict"),n&&(t.token=e.token,i.set(t.cookies.token,e.token,.3,"/","",!0,"Strict"))}let Zh=(()=>{class t{constructor(e,n){this.document=e,this.platformId=n,this.documentIsAccessible=BI(this.platformId)}static getCookieRegExp(e){const n=e.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+n+"|;\\s*"+n+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(e){try{return decodeURIComponent(e)}catch{return e}}check(e){return!!this.documentIsAccessible&&(e=encodeURIComponent(e),t.getCookieRegExp(e).test(this.document.cookie))}get(e){if(this.documentIsAccessible&&this.check(e)){e=encodeURIComponent(e);const o=t.getCookieRegExp(e).exec(this.document.cookie);return o[1]?t.safeDecodeURIComponent(o[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const e={},n=this.document;return n.cookie&&""!==n.cookie&&n.cookie.split(";").forEach(o=>{const[s,a]=o.split("=");e[t.safeDecodeURIComponent(s.replace(/^ /,""))]=t.safeDecodeURIComponent(a)}),e}set(e,n,o,s,a,r,u){if(!this.documentIsAccessible)return;if("number"==typeof o||o instanceof Date||s||a||r||u)return void this.set(e,n,{expires:o,path:s,domain:a,secure:r,sameSite:u||"Lax"});let m=encodeURIComponent(e)+"="+encodeURIComponent(n)+";";const g=o||{};g.expires&&(m+="number"==typeof g.expires?"expires="+new Date((new Date).getTime()+1e3*g.expires*60*60*24).toUTCString()+";":"expires="+g.expires.toUTCString()+";"),g.path&&(m+="path="+g.path+";"),g.domain&&(m+="domain="+g.domain+";"),!1===g.secure&&"None"===g.sameSite&&(g.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${e} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),g.secure&&(m+="secure;"),g.sameSite||(g.sameSite="Lax"),m+="sameSite="+g.sameSite+";",this.document.cookie=m}delete(e,n,o,s,a="Lax"){this.documentIsAccessible&&this.set(e,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:n,domain:o,secure:s,sameSite:a})}deleteAll(e,n,o,s="Lax"){if(!this.documentIsAccessible)return;const a=this.getAll();for(const r in a)a.hasOwnProperty(r)&&this.delete(r,e,n,o,s)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(wa))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function OK(t,i){if(1&t){const e=F();l(0,"div")(1,"button",8),M("click",function(){return E(e),I(b().logUserOut())}),h(2),C(3,"translate"),d()()}if(2&t){const e=b();c(2),We("",w(3,2,"general_logout")," (",e.userName,")")}}const RK=["*"];let KA=(()=>{class t{constructor(e,n,o,s){this.http=n,this.cookieService=o,this.router=s,this.translateService=e}changeLanguage(e){this.translateService.use(e).subscribe(()=>{})}get isUserLoggedIn(){return v.loggedIn}get userName(){return v.userName}get userType(){return v.userType}logUserOut(){new Q(v.apiURLs.userLoggingOutURL+v.userId,this.http).getAll(v.token,v.userId).subscribe(),n0(v,this.cookieService),this.router.navigate([OA()])}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ze),_(Ee),_(Zh),_(_i))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-nav-bar"]],standalone:!0,features:[Z],ngContentSelectors:RK,decls:23,vars:8,consts:[["color","primary",2,"height","48px","align-items","center"],[2,"flex","1"],["routerLink","/",2,"margin-left","0.5em"],["src","assets/images/OSD_Logo.png","height","32","alt","OSD Logo"],[4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"click"]],template:function(n,o){if(1&n&&(Dt(),l(0,"mat-toolbar",0),$e(1),l(2,"div",1)(3,"a",2),D(4,"img",3),d()(),p(5,OK,4,4,"div",4),l(6,"button",5)(7,"mat-icon"),h(8,"public"),d()(),l(9,"mat-menu",null,6)(11,"button",7),M("click",function(){return o.changeLanguage("en")}),l(12,"mat-icon"),h(13,"flag"),d(),l(14,"span"),h(15),C(16,"translate"),d()(),l(17,"button",7),M("click",function(){return o.changeLanguage("ar")}),l(18,"mat-icon"),h(19,"flag"),d(),l(20,"span"),h(21),C(22,"translate"),d()()()()),2&n){const s=X(10);c(5),f("ngIf",1==o.isUserLoggedIn),c(1),f("matMenuTriggerFor",s),c(9),T(" ",w(16,4,"general_english")," "),c(6),T(" ",w(22,6,"general_arabic")," ")}},dependencies:[YA,IK,Ne,Re,Ba,ce,le,Rl,F_,Ol,Qh,Me,Oe,_e,we]})}return t})();function kK(t,i){1&t&&(l(0,"div",5),D(1,"mat-spinner"),d())}function AK(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_invalid")," "))}function PK(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_required")," "))}function NK(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function FK(t,i){if(1&t){const e=F();l(0,"div")(1,"form",6,7),M("ngSubmit",function(){E(e);const o=X(2);return I(b().onSubmit(o))}),l(3,"mat-card-content")(4,"mat-form-field",8),D(5,"input",9),C(6,"translate"),p(7,AK,3,3,"mat-error",4),p(8,PK,3,3,"mat-error",4),d(),l(9,"mat-form-field",8),D(10,"input",10),C(11,"translate"),p(12,NK,3,3,"mat-error",4),d(),l(13,"mat-error"),h(14),C(15,"translate"),d()(),l(16,"mat-card-actions")(17,"button",11),h(18),C(19,"translate"),d(),l(20,"button",12),h(21),C(22,"translate"),d()()()()}if(2&t){const e=b();c(1),f("formGroup",e.form),c(4),N("placeholder",w(6,9,"general_email")),c(2),f("ngIf",e.email.hasError("pattern")),c(1),f("ngIf",e.email.hasError("required")),c(2),N("placeholder",w(11,11,"general_password")),c(2),f("ngIf",e.password.hasError("required")),c(2),T(" ",w(15,13,e.errorMsg)," "),c(4),O(w(19,15,"login_login")),c(3),O(w(22,17,"login_clear"))}}const LK=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;let BK=(()=>{class t{constructor(e,n,o){this.http=e,this.cookieService=o,this.onProgress=!1,this.form=n.group({password:["",ue.required],email:["",[ue.required,ue.pattern(LK)]]})}get password(){return this.form.get("password")}get email(){return this.form.get("email")}ngOnInit(){this.service=new Q(v.apiURLs.userAuthenticationURL,this.http)}onSubmit(e){if(!0===e.valid){this.onProgress=!0;const n=new Be;n.email=this.email?.value,n.password=this.password?.value,this.service.create(n,!0).subscribe(o=>{""!==o.token&&0!==o.userId?ZA(v,this.cookieService,o,!0):this.onProgress=!1},o=>{this.errorMsg=406==o.originalError.status?"Wrong Email Or Password":429==o.originalError.status?o.originalError.error:o.originalError.statusText,this.onProgress=!1})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(mn),_(Zh))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-login-form"]],standalone:!0,features:[Z],decls:10,vars:5,consts:[[1,"login-container"],[1,"login-container-card"],[1,"mat-h2"],["style","width: 100%;display:flex;justify-content:center",4,"ngIf"],[4,"ngIf"],[2,"width","100%","display","flex","justify-content","center"],[3,"formGroup","ngSubmit"],["f","ngForm"],[1,"example-full-width"],["type","email","name","email","matInput","","required","","formControlName","email",3,"placeholder"],["type","password","name","password","matInput","","required","","formControlName","password",3,"placeholder"],["mat-button","","type","submit"],["mat-button","","type","reset"]],template:function(n,o){1&n&&(D(0,"app-nav-bar"),l(1,"div",0)(2,"mat-card",1)(3,"mat-card-header")(4,"mat-card-title")(5,"h2",2),h(6),C(7,"translate"),d()()(),p(8,kK,2,0,"div",3),p(9,FK,23,19,"div",4),d()()),2&n&&(c(6),O(w(7,3,"login_form")),c(2),f("ngIf",o.onProgress),c(1),f("ngIf",!o.onProgress))},dependencies:[KA,ta,Fa,hd,ud,Oh,p_,ce,le,je,Fe,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,zt,wn,Ne,Re,_e,we],styles:[".login-container-card[_ngcontent-%COMP%]{display:block;padding:20px!important}.example-full-width[_ngcontent-%COMP%]{width:100%}.login-container[_ngcontent-%COMP%]{display:flex;width:100%;height:80%;justify-content:center;align-items:center}.mat-card-header[_ngcontent-%COMP%]{justify-content:left}"]})}return t})();class L_{}function B_(t){return t&&"function"==typeof t.connect&&!(t instanceof OC)}class XA{applyChanges(i,e,n,o,s){i.forEachOperation((a,r,u)=>{let m,g;if(null==a.previousIndex){const y=n(a,r,u);m=e.createEmbeddedView(y.templateRef,y.context,y.index),g=1}else null==u?(e.remove(r),g=3):(m=e.get(r),e.move(m,u),g=2);s&&s({context:m?.context,operation:g,record:a})})}detach(){}}class kl{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new re,e&&e.length&&(i?e.forEach(s=>this._markSelected(s)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);const e=this.selected,n=new Set(i);i.forEach(s=>this._markSelected(s)),e.filter(s=>!n.has(s)).forEach(s=>this._unmarkSelected(s));const o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();const e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}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(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(i){if(this.compareWith){for(let e of this._selection)if(this.compareWith(i,e))return e;return i}return i}}let o0=(()=>{class t{constructor(){this._listeners=[]}notify(e,n){for(let o of this._listeners)o(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Kh=new Y("_ViewRepeater"),eP=new Y("CdkAccordion");let VK=0,HK=(()=>{class t{get expanded(){return this._expanded}set expanded(e){e=pe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=pe(e)}constructor(e,n,o){this.accordion=e,this._changeDetectorRef=n,this._expansionDispatcher=o,this._openCloseAllSubscription=rt.EMPTY,this.closed=new W,this.opened=new W,this.destroyed=new W,this.expandedChange=new W,this.id="cdk-accordion-child-"+VK++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=o.listen((s,a)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===a&&this.id!==s&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static#e=this.\u0275fac=function(n){return new(n||t)(_(eP,12),_(He),_(o0))};static#t=this.\u0275dir=$({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[me([{provide:eP,useValue:void 0}])]})}return t})(),UK=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();const $K=["body"];function jK(t,i){}const GK=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],zK=["mat-expansion-panel-header","*","mat-action-row"];function WK(t,i){1&t&&D(0,"span",2),2&t&&f("@indicatorRotate",b()._getExpandedState())}const qK=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],YK=["mat-panel-title","mat-panel-description","*"],tP=new Y("MAT_ACCORDION"),nP="225ms cubic-bezier(0.4,0.0,0.2,1)",iP={indicatorRotate:ei("indicatorRotate",[ot("collapsed, void",xe({transform:"rotate(0deg)"})),ot("expanded",xe({transform:"rotate(180deg)"})),Et("expanded <=> collapsed, void => collapsed",At(nP))]),bodyExpansion:ei("bodyExpansion",[ot("collapsed, void",xe({height:"0px",visibility:"hidden"})),ot("expanded",xe({height:"*",visibility:"visible"})),Et("expanded <=> collapsed, void => collapsed",At(nP))])},oP=new Y("MAT_EXPANSION_PANEL");let Ha=(()=>{class t{constructor(e,n){this._template=e,this._expansionPanel=n}}return t.\u0275fac=function(e){return new(e||t)(_(bt),_(oP,8))},t.\u0275dir=$({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),QK=0;const sP=new Y("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let oa=(()=>{class t extends HK{constructor(e,n,o,s,a,r,u){super(e,n,o),this._viewContainerRef=s,this._animationMode=r,this._hideToggle=!1,this.afterExpand=new W,this.afterCollapse=new W,this._inputChanges=new re,this._headerId="mat-expansion-panel-header-"+QK++,this._bodyAnimationDone=new re,this.accordion=e,this._document=a,this._bodyAnimationDone.pipe(zr((m,g)=>m.fromState===g.fromState&&m.toState===g.toState)).subscribe(m=>{"void"!==m.fromState&&("expanded"===m.toState?this.afterExpand.emit():"collapsed"===m.toState&&this.afterCollapse.emit())}),u&&(this.hideToggle=u.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=pe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(jt(null),st(()=>this.expanded&&!this._portal),Xe(1)).subscribe(()=>{this._portal=new Er(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}}return t.\u0275fac=function(e){return new(e||t)(_(tP,12),_(He),_(o0),_(kn),_(Ue),_(Fn,8),_(sP,8))},t.\u0275cmp=U({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,Ha,5),2&e){let s;G(s=z())&&(n._lazyContent=s.first)}},viewQuery:function(e,n){if(1&e&&ne($K,5),2&e){let o;G(o=z())&&(n._body=o.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,n){2&e&&de("mat-expanded",n.expanded)("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-expansion-panel-spacing",n._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[me([{provide:tP,useValue:void 0},{provide:oP,useExisting:t}]),te,fe],ngContentSelectors:zK,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,n){1&e&&(Dt(GK),$e(0),l(1,"div",0,1),M("@bodyExpansion.done",function(s){return n._bodyAnimationDone.next(s)}),l(3,"div",2),$e(4,1),p(5,jK,0,0,"ng-template",3),d(),$e(6,2),d()),2&e&&(c(1),f("@bodyExpansion",n._getExpandedState())("id",n.id),J("aria-labelledby",n._headerId),c(4),f("cdkPortalOutlet",n._portal))},dependencies:[xs],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[iP.bodyExpansion]},changeDetection:0}),t})();class ZK{}const KK=_l(ZK);let Ua=(()=>{class t extends KK{constructor(e,n,o,s,a,r,u){super(),this.panel=e,this._element=n,this._focusMonitor=o,this._changeDetectorRef=s,this._animationMode=r,this._parentChangeSubscription=rt.EMPTY;const m=e.accordion?e.accordion._stateChanges.pipe(st(g=>!(!g.hideToggle&&!g.togglePosition))):io;this.tabIndex=parseInt(u||"")||0,this._parentChangeSubscription=un(e.opened,e.closed,m,e._inputChanges.pipe(st(g=>!!(g.hideToggle||g.disabled||g.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(st(()=>e._containsFocus())).subscribe(()=>o.focusVia(n,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:li(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(_(oa,1),_(oe),_($i),_(He),_(sP,8),_(Fn,8),Si("tabindex"))},t.\u0275cmp=U({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&M("click",function(){return n._toggle()})("keydown",function(s){return n._keydown(s)}),2&e&&(J("id",n.panel._headerId)("tabindex",n.tabIndex)("aria-controls",n._getPanelId())("aria-expanded",n._isExpanded())("aria-disabled",n.panel.disabled),it("height",n._getHeaderHeight()),de("mat-expanded",n._isExpanded())("mat-expansion-toggle-indicator-after","after"===n._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===n._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[te],ngContentSelectors:YK,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,n){1&e&&(Dt(qK),l(0,"span",0),$e(1),$e(2,1),$e(3,2),d(),p(4,WK,1,1,"span",1)),2&e&&(de("mat-content-hide-toggle",!n._showToggle()),c(4),f("ngIf",n._showToggle()))},dependencies:[le],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[iP.indicatorRotate]},changeDetection:0}),t})(),Rr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),$a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),sa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ce,ze,UK,Ir]}),t})();const V_=["*"],XK=["content"];function JK(t,i){if(1&t){const e=F();l(0,"div",2),M("click",function(){return E(e),I(b()._onBackdropClicked())}),d()}2&t&&de("mat-drawer-shown",b()._isShowingBackdrop())}function eX(t,i){1&t&&(l(0,"mat-drawer-content"),$e(1,2),d())}const tX=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],nX=["mat-drawer","mat-drawer-content","*"];function iX(t,i){if(1&t){const e=F();l(0,"div",2),M("click",function(){return E(e),I(b()._onBackdropClicked())}),d()}2&t&&de("mat-drawer-shown",b()._isShowingBackdrop())}function oX(t,i){1&t&&(l(0,"mat-sidenav-content"),$e(1,2),d())}const sX=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],aX=["mat-sidenav","mat-sidenav-content","*"],aP={transformDrawer:ei("transform",[ot("open, open-instant",xe({transform:"none",visibility:"visible"})),ot("void",xe({"box-shadow":"none",visibility:"hidden"})),Et("void => open-instant",At("0ms")),Et("void <=> open, open-instant => void",At("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},lX=new Y("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function cX(){return!1}}),s0=new Y("MAT_DRAWER_CONTAINER");let H_=(()=>{class t extends Ih{constructor(e,n,o,s,a){super(o,s,a),this._changeDetectorRef=e,this._container=n}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Je(()=>lP)),_(oe),_(Eh),_(be))},t.\u0275cmp=U({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,n){2&e&&it("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[me([{provide:Ih,useExisting:t}]),te],ngContentSelectors:V_,decls:1,vars:0,template:function(e,n){1&e&&(Dt(),$e(0))},encapsulation:2,changeDetection:0}),t})(),rP=(()=>{class t{constructor(e,n,o,s,a,r,u,m){this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=o,this._platform=s,this._ngZone=a,this._interactivityChecker=r,this._doc=u,this._container=m,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new re,this._animationEnd=new re,this._animationState="void",this.openedChange=new W(!0),this._openedStream=this.openedChange.pipe(st(g=>g),Le(()=>{})),this.openedStart=this._animationStarted.pipe(st(g=>g.fromState!==g.toState&&0===g.toState.indexOf("open")),f_(void 0)),this._closedStream=this.openedChange.pipe(st(g=>!g),Le(()=>{})),this.closedStart=this._animationStarted.pipe(st(g=>g.fromState!==g.toState&&"void"===g.toState),f_(void 0)),this._destroyed=new re,this.onPositionChanged=new W,this._modeChanged=new re,this.openedChange.subscribe(g=>{g?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Pn(this._elementRef.nativeElement,"keydown").pipe(st(g=>27===g.keyCode&&!this.disableClose&&!li(g)),Se(this._destroyed)).subscribe(g=>this._ngZone.run(()=>{this.close(),g.stopPropagation(),g.preventDefault()}))}),this._animationEnd.pipe(zr((g,y)=>g.fromState===y.fromState&&g.toState===y.toState)).subscribe(g=>{const{fromState:y,toState:S}=g;(0===S.indexOf("open")&&"void"===y||"void"===S&&0===y.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=pe(e)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=pe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(pe(e))}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(n=>{!n&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);const o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,n,o){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",n&&this._restoreFocus(o)),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(Xe(1)).subscribe(a=>s(a?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const n=this._elementRef.nativeElement,o=n.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,n)),o.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(dh),_($i),_(Bn),_(be),_(ch),_(Ue,8),_(s0,8))},t.\u0275cmp=U({type:t,selectors:[["mat-drawer"]],viewQuery:function(e,n){if(1&e&&ne(XK,5),2&e){let o;G(o=z())&&(n._content=o.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,n){1&e&&zc("@transform.start",function(s){return n._animationStarted.next(s)})("@transform.done",function(s){return n._animationEnd.next(s)}),2&e&&(J("align",null),qc("@transform",n._animationState),de("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:V_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,n){1&e&&(Dt(),l(0,"div",0,1),$e(2),d())},dependencies:[Ih],encapsulation:2,data:{animation:[aP.transformDrawer]},changeDetection:0}),t})(),lP=(()=>{class t{constructor(e,n,o,s,a,r=!1,u){this._dir=e,this._element=n,this._ngZone=o,this._changeDetectorRef=s,this._animationMode=u,this._drawers=new ar,this.backdropClick=new W,this._destroyed=new re,this._doCheckSubject=new re,this._contentMargins={left:null,right:null},this._contentMarginChanges=new re,e&&e.change.pipe(Se(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Se(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=pe(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:pe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(jt(this._allDrawers),Se(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(jt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Rf(10),Se(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const o=this._left._getWidth();e+=o,n-=o}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){const o=this._right._getWidth();n+=o,e-=o}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(st(n=>n.fromState!==n.toState),Se(this._drawers.changes)).subscribe(n=>{"open-instant"!==n.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Se(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Se(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Se(un(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const n=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?n.add(o):n.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return t.\u0275fac=function(e){return new(e||t)(_(Kn,8),_(oe),_(be),_(He),_(ea),_(lX),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,H_,5),Pe(o,rP,5)),2&e){let s;G(s=z())&&(n._content=s.first),G(s=z())&&(n._allDrawers=s)}},viewQuery:function(e,n){if(1&e&&ne(H_,5),2&e){let o;G(o=z())&&(n._userContent=o.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,n){2&e&&de("mat-drawer-container-explicit-backdrop",n._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[me([{provide:s0,useExisting:t}])],ngContentSelectors:nX,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,n){1&e&&(Dt(tX),p(0,JK,1,2,"div",0),$e(1),$e(2,1),p(3,eX,2,0,"mat-drawer-content",1)),2&e&&(f("ngIf",n.hasBackdrop),c(3),f("ngIf",!n._content))},dependencies:[le,H_],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),cP=(()=>{class t extends H_{constructor(e,n,o,s,a){super(e,n,o,s,a)}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Je(()=>uP)),_(oe),_(Eh),_(be))},t.\u0275cmp=U({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,n){2&e&&it("margin-left",n._container._contentMargins.left,"px")("margin-right",n._container._contentMargins.right,"px")},features:[me([{provide:Ih,useExisting:t}]),te],ngContentSelectors:V_,decls:1,vars:0,template:function(e,n){1&e&&(Dt(),$e(0))},encapsulation:2,changeDetection:0}),t})(),dP=(()=>{class t extends rP{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=pe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=ci(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=ci(e)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,n){2&e&&(J("align",null),it("top",n.fixedInViewport?n.fixedTopGap:null,"px")("bottom",n.fixedInViewport?n.fixedBottomGap:null,"px"),de("mat-drawer-end","end"===n.position)("mat-drawer-over","over"===n.mode)("mat-drawer-push","push"===n.mode)("mat-drawer-side","side"===n.mode)("mat-drawer-opened",n.opened)("mat-sidenav-fixed",n.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[te],ngContentSelectors:V_,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,n){1&e&&(Dt(),l(0,"div",0,1),$e(2),d())},dependencies:[Ih],encapsulation:2,data:{animation:[aP.transformDrawer]},changeDetection:0}),t})(),uP=(()=>{class t extends lP{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,cP,5),Pe(o,dP,5)),2&e){let s;G(s=z())&&(n._content=s.first),G(s=z())&&(n._allDrawers=s)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,n){2&e&&de("mat-drawer-container-explicit-backdrop",n._backdropOverride)},exportAs:["matSidenavContainer"],features:[me([{provide:s0,useExisting:t}]),te],ngContentSelectors:aX,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,n){1&e&&(Dt(sX),p(0,iX,1,2,"div",0),$e(1),$e(2,1),p(3,oX,2,0,"mat-sidenav-content",1)),2&e&&(f("ngIf",n.hasBackdrop),c(3),f("ngIf",!n._content))},dependencies:[le,cP],styles:['.mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0}),t})(),hP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ce,ze,Na,Na,ze]}),t})(),dX=(()=>{class t{constructor(e){this.http=e,this.currentHash="f0cf10a77a7e3739"}initVersionCheck(e,n=18e5){setInterval(()=>{this.checkVersion(e)},n),this.checkVersion(e)}checkVersion(e){this.http.get(e+"?t="+(new Date).getTime()).subscribe(n=>{const o=n.hash;this.hasHashChanged(this.currentHash,o)&&(console.log("there is a new version of the app, app will refresh now..."),window.location.reload()),this.currentHash=o},n=>{console.error(n,"Could not get version")})}hasHashChanged(e,n){return!(!e||"{{POST_BUILD_ENTERS_HASH_HERE}}"===e)&&e!==n}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ee))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ds=(()=>{class t{constructor(){}get isLoggedIn(){return v.loggedIn}get isAdmin(){return v.userType===Be.ACCOUNT_TYPE_ADMIN}get isCustomer(){return v.userType===Be.ACCOUNT_TYPE_CUSTOMER}get isModerator(){return v.userType===Be.ACCOUNT_TYPE_MODERATOR}get isReporter(){return v.userType===Be.ACCOUNT_TYPE_REPORTER}get isCountryManager(){return v.userType===Be.ACCOUNT_TYPE_COUNTRY_MANAGER}get isTrial(){return v.userType===Be.ACCOUNT_TYPE_TRIAL}get isNetworkManager(){return v.userType===Be.ACCOUNT_TYPE_NETWORK_MANAGER}get isQualityManager(){return v.userType===Be.ACCOUNT_TYPE_QUALITY_MANAGER}get isCoverageManager(){return v.userType===Be.ACCOUNT_TYPE_COVERAGE_MANAGER}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function uX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",11),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",12),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d()()}2&t&&(c(3),T(" ",w(4,3,"navigation_mymatches_administration")," "),c(3),O(w(7,5,"general_mymatches")),c(3),O(w(10,7,"navigation_training_center")))}function hX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",13),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d()()}2&t&&(c(3),T(" ",w(4,2,"general_moderator_navigation")," "),c(3),O(w(7,4,"general_matches")))}function pX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",14),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",15),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d(),l(11,"a",16),M("click",function(){return E(e),b(),I(X(3).close())}),h(12),C(13,"translate"),d()()}2&t&&(c(3),T(" ",w(4,4,"general_customer_navigation")," "),c(3),O(w(7,6,"general_purchases")),c(3),O(w(10,8,"general_matches_available")),c(3),O(w(13,10,"general_purchase_log")))}function mX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",17),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",18),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d(),l(11,"a",19),M("click",function(){return E(e),b(),I(X(3).close())}),h(12),C(13,"translate"),d()()}2&t&&(c(3),T(" ",w(4,4,"general_administration")," "),c(3),O(w(7,6,"navigation_allmatches_administration")),c(3),O(w(10,8,"navigation_training_center_administration")),c(3),O(w(13,10,"navigation_scheduling_administration")))}function fX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",20),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",21),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d(),l(11,"a",22),M("click",function(){return E(e),b(),I(X(3).close())}),h(12),C(13,"translate"),d(),l(14,"a",23),M("click",function(){return E(e),b(),I(X(3).close())}),h(15),C(16,"translate"),d(),l(17,"a",24),M("click",function(){return E(e),b(),I(X(3).close())}),h(18),C(19,"translate"),d(),l(20,"a",25),M("click",function(){return E(e),b(),I(X(3).close())}),h(21),C(22,"translate"),d(),l(23,"a",26),M("click",function(){return E(e),b(),I(X(3).close())}),h(24),C(25,"translate"),d(),l(26,"a",27),M("click",function(){return E(e),b(),I(X(3).close())}),h(27),C(28,"translate"),d(),l(29,"a",28),M("click",function(){return E(e),b(),I(X(3).close())}),h(30),C(31,"translate"),d(),l(32,"a",29),M("click",function(){return E(e),b(),I(X(3).close())}),h(33),C(34,"translate"),d(),l(35,"a",30),M("click",function(){return E(e),b(),I(X(3).close())}),h(36),C(37,"translate"),d(),l(38,"a",31),M("click",function(){return E(e),b(),I(X(3).close())}),h(39),C(40,"translate"),d(),l(41,"a",32),M("click",function(){return E(e),b(),I(X(3).close())}),h(42),C(43,"translate"),d(),l(44,"a",33),M("click",function(){return E(e),b(),I(X(3).close())}),h(45),C(46,"translate"),d(),l(47,"a",34),M("click",function(){return E(e),b(),I(X(3).close())}),h(48),C(49,"translate"),d()()}2&t&&(c(3),T(" ",w(4,16,"general_database")," "),c(3),O(w(7,18,"navigation_countries_administration")),c(3),O(w(10,20,"navigation_regions_administration")),c(3),O(w(13,22,"navigation_users_administration")),c(3),O(w(16,24,"navigation_languages_administration")),c(3),O(w(19,26,"navigation_competitions_administration")),c(3),O(w(22,28,"navigation_players_administration")),c(3),O(w(25,30,"navigation_sports_administration")),c(3),O(w(28,32,"navigation_paymentmethods_administration")),c(3),O(w(31,34,"navigation_teams_administration")),c(3),O(w(34,36,"navigation_referees_administration")),c(3),O(w(37,38,"navigation_stadiums_administration")),c(3),O(w(40,40,"navigation_clubs_administration")),c(3),O(w(43,42,"navigation_seasons_administration")),c(3),O(w(46,44,"navigation_stages_administration")),c(3),O(w(49,46,"general_qrmistakes")))}function _X(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",35),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",36),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d(),l(11,"a",37),M("click",function(){return E(e),b(),I(X(3).close())}),h(12),C(13,"translate"),d()()}2&t&&(c(3),T(" ",w(4,4,"general_administration")," "),c(3),O(w(7,6,"navigation_allmatches_administration")),c(3),O(w(10,8,"general_network")),c(3),O(w(13,10,"general_scheduling")))}function gX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",38),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d()()}2&t&&(c(3),T(" ",w(4,2,"general_administration")," "),c(3),O(w(7,4,"navigation_allmatches_administration")))}function bX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",39),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d()()}2&t&&(c(3),T(" ",w(4,2,"general_administration")," "),c(3),O(w(7,4,"general_matches")))}function vX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",40),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d()()}2&t&&(c(3),T(" ",w(4,2,"general_administration")," "),c(3),O(w(7,4,"general_network")))}function yX(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),h(3),C(4,"translate"),d()(),l(5,"a",41),M("click",function(){return E(e),b(),I(X(3).close())}),h(6),C(7,"translate"),d(),l(8,"a",42),M("click",function(){return E(e),b(),I(X(3).close())}),h(9),C(10,"translate"),d(),l(11,"a",34),M("click",function(){return E(e),b(),I(X(3).close())}),h(12),C(13,"translate"),d()()}2&t&&(c(3),T(" ",w(4,4,"general_administration")," "),c(3),O(w(7,6,"navigation_allmatches_administration")),c(3),O(w(10,8,"general_network")),c(3),O(w(13,10,"general_qrmistakes")))}const CX=function(t){return{"background-image-container":t}};function wX(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-sidenav-container",1)(2,"mat-sidenav",2,3)(4,"mat-expansion-panel")(5,"mat-expansion-panel-header")(6,"mat-panel-title"),h(7),C(8,"translate"),d()(),l(9,"a",4),M("click",function(){return E(e),I(X(3).close())}),h(10),C(11,"translate"),d(),l(12,"a",5),M("click",function(){return E(e),I(X(3).close())}),h(13),C(14,"translate"),d()(),p(15,uX,11,9,"mat-expansion-panel",6),p(16,hX,8,6,"mat-expansion-panel",6),p(17,pX,14,12,"mat-expansion-panel",6),p(18,mX,14,12,"mat-expansion-panel",6),p(19,fX,50,48,"mat-expansion-panel",6),p(20,_X,14,12,"mat-expansion-panel",6),p(21,gX,8,6,"mat-expansion-panel",6),p(22,bX,8,6,"mat-expansion-panel",6),p(23,vX,8,6,"mat-expansion-panel",6),p(24,yX,14,12,"mat-expansion-panel",6),d(),l(25,"app-nav-bar",7)(26,"div")(27,"button",8),M("click",function(){return E(e),I(X(3).open())}),l(28,"mat-icon"),h(29,"menu"),d()()()(),l(30,"div",9),D(31,"router-outlet"),d()()()}if(2&t){const e=b();c(1),f("ngClass",zn(20,CX,e.usersService.isLoggedIn)),c(6),T(" ",w(8,14,"navigation_user_navigation")," "),c(3),O(w(11,16,"navigation_account_settings")),c(3),O(w(14,18,"general_accesslogs")),c(2),f("ngIf",e.usersService.isReporter),c(1),f("ngIf",e.usersService.isModerator),c(1),f("ngIf",e.usersService.isCustomer),c(1),f("ngIf",e.usersService.isAdmin),c(1),f("ngIf",e.usersService.isAdmin),c(1),f("ngIf",e.usersService.isCountryManager),c(1),f("ngIf",e.usersService.isCoverageManager),c(1),f("ngIf",e.usersService.isTrial),c(1),f("ngIf",e.usersService.isNetworkManager),c(1),f("ngIf",e.usersService.isQualityManager)}}function SX(t,i){1&t&&D(0,"app-login-form")}const TX=function(t){return{"background-image-container-no-up":t}};function DX(t,i){if(1&t&&(l(0,"div")(1,"mat-sidenav-container",43),p(2,SX,1,0,"app-login-form",0),d()()),2&t){const e=b();c(1),f("ngClass",zn(2,TX,!e.usersService.isLoggedIn)),c(1),f("ngIf",0==e.isloading)}}let MX=(()=>{class t{constructor(e,n,o,s,a,r,u){this.versionCheckService=e,this.usersService=n,this.translateService=o,this.iconRegistry=s,this.sanitizer=a,this.cookieService=r,this.http=u,this.isloading=!0}ngOnInit(){this.translateService.setDefaultLang("en"),this.translateService.use("en"),this.versionCheckService.checkVersion("https://admin.orbit-sportsdata.com/version.json"),this.iconRegistry.addSvgIcon("shirt",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/shirt.svg")),this.iconRegistry.addSvgIcon("short",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/short.svg")),this.iconRegistry.addSvgIcon("pitch",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/pitch.svg")),this.iconRegistry.addSvgIcon("pitch_color",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/pitch_color.svg")),this.iconRegistry.addSvgIcon("rainy",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/rainy.svg")),this.iconRegistry.addSvgIcon("snowy",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/snowy.svg")),this.iconRegistry.addSvgIcon("cloudy",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/cloudy.svg")),this.iconRegistry.addSvgIcon("sun",this.sanitizer.bypassSecurityTrustResourceUrl("assets/images/sun.svg"));const e=this.cookieService.get(v.cookies.token),n=this.cookieService.get(v.cookies.userId);this.isloading=!1,e&&n&&typeof e<"u"&&typeof n<"u"&&(v.token=e,v.userId=+n,this.isloading=!0,this.service=new Q(v.apiURLs.userAuthenticationURL,this.http),this.service.create(null,!0).subscribe(o=>{""!==o.userName?(ZA(v,this.cookieService,o,!1),this.isloading=!1):(n0(v,this.cookieService),this.isloading=!1)},o=>{this.isloading=!1,n0(v,this.cookieService)}))}static#e=this.\u0275fac=function(n){return new(n||t)(_(dX),_(ds),_(Ze),_(sd),_(_h),_(Zh),_(Ee))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-root"]],standalone:!0,features:[Z],decls:2,vars:2,consts:[[4,"ngIf"],[1,"sidenav-container",2,"height","100vh !important",3,"ngClass"],["mode","push",1,"example-sidenav"],["sidenav",""],["mat-menu-item","","routerLink","/myprofile",3,"click"],["mat-menu-item","","routerLink","/mylogs",3,"click"],["style","margin-top: 20px",4,"ngIf"],[1,"app-nav"],["type","button","mat-icon-button","",3,"click"],[1,"app-container"],[2,"margin-top","20px"],["mat-menu-item","","routerLink","/reporter/matches",3,"click"],["mat-menu-item","","routerLink","/reporter/trainingCenter",3,"click"],["mat-menu-item","","routerLink","/moderator/matches",3,"click"],["mat-menu-item","","routerLink","/customer/purchases",3,"click"],["mat-menu-item","","routerLink","/customer/available_matches",3,"click"],["mat-menu-item","","routerLink","/customer/purchase_log",3,"click"],["mat-menu-item","","routerLink","/admin/matches",3,"click"],["mat-menu-item","","routerLink","/admin/trainingCenter",3,"click"],["mat-menu-item","","routerLink","/admin/scheduling",3,"click"],["mat-menu-item","","routerLink","/admin/countries",3,"click"],["mat-menu-item","","routerLink","/admin/regions",3,"click"],["mat-menu-item","","routerLink","/admin/users",3,"click"],["mat-menu-item","","routerLink","/admin/languages",3,"click"],["mat-menu-item","","routerLink","/admin/competitions",3,"click"],["mat-menu-item","","routerLink","/admin/players",3,"click"],["mat-menu-item","","routerLink","/admin/sports",3,"click"],["mat-menu-item","","routerLink","/admin/payment_methods",3,"click"],["mat-menu-item","","routerLink","/admin/teams",3,"click"],["mat-menu-item","","routerLink","/admin/referees",3,"click"],["mat-menu-item","","routerLink","/admin/stadiums",3,"click"],["mat-menu-item","","routerLink","/admin/clubs",3,"click"],["mat-menu-item","","routerLink","/admin/seasons",3,"click"],["mat-menu-item","","routerLink","/admin/stages",3,"click"],["mat-menu-item","","routerLink","/qualitymanager/qrmistakes",3,"click"],["mat-menu-item","","routerLink","/countrymanager/matches",3,"click"],["mat-menu-item","","routerLink","/countrymanager/network",3,"click"],["mat-menu-item","","routerLink","/countrymanager/scheduling",3,"click"],["mat-menu-item","","routerLink","/coveragemanager/matches",3,"click"],["mat-menu-item","","routerLink","/trial/matches",3,"click"],["mat-menu-item","","routerLink","/networkmanager/network",3,"click"],["mat-menu-item","","routerLink","/qualitymanager/matches",3,"click"],["mat-menu-item","","routerLink","/qualitymanager/network",3,"click"],[1,"sidenav-container",3,"ngClass"]],template:function(n,o){1&n&&(p(0,wX,32,22,"div",0),p(1,DX,3,4,"div",0)),2&n&&(f("ngIf",1==o.usersService.isLoggedIn),c(1),f("ngIf",0==o.usersService.isLoggedIn))},dependencies:[ce,Qs,le,hP,dP,uP,sa,oa,Ua,$a,Rl,Ol,Ba,KA,Ne,Re,Me,Oe,GC,BK,_e,we],styles:[".example-container[_ngcontent-%COMP%]{width:100%;flex:1}.example-sidenav-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center}.example-sidenav[_ngcontent-%COMP%]{padding:20px}.unset[_ngcontent-%COMP%]{all:unset}.app-nav[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content;position:relative;width:100%;z-index:2;display:block}.app-container[_ngcontent-%COMP%]{height:calc(100% - 48px)}@media only screen and (max-width: 600px){.app-container[_ngcontent-%COMP%]{height:auto}}"]})}return t})();const{isArray:xX}=Array;function mP(...t){return 1===(t=function pP(t){return 1===t.length&&xX(t[0])?t[0]:t}(t)).length?yi(t[0]):new dn(function EX(t){return i=>{let e=[];for(let n=0;e&&!i.closed&&n<t.length;n++)e.push(yi(t[n]).subscribe(On(i,o=>{if(e){for(let s=0;s<e.length;s++)s!==n&&e[s].unsubscribe();e=null}i.next(o)})))}}(t))}Error;var WX={left:"right",right:"left",bottom:"top",top:"bottom"};function G_(t){return t.replace(/left|right|bottom|top/g,function(i){return WX[i]})}function aa(t){return t.split("-")[0]}var qX={start:"end",end:"start"};function DP(t){return t.replace(/start|end/g,function(i){return qX[i]})}var Vo="top",Es="bottom",Is="right",Ho="left",h0="auto",Jh=[Vo,Es,Is,Ho],wd="start",ep="end",MP="viewport",tp="popper",xP=Jh.reduce(function(t,i){return t.concat([i+"-"+wd,i+"-"+ep])},[]),EP=[].concat(Jh,[h0]).reduce(function(t,i){return t.concat([i,i+"-"+wd,i+"-"+ep])},[]),sJ=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Uo(t){if(null==t)return window;if("[object Window]"!==t.toString()){var i=t.ownerDocument;return i&&i.defaultView||window}return t}function Al(t){return t instanceof Uo(t).Element||t instanceof Element}function us(t){return t instanceof Uo(t).HTMLElement||t instanceof HTMLElement}function p0(t){return!(typeof ShadowRoot>"u")&&(t instanceof Uo(t).ShadowRoot||t instanceof ShadowRoot)}function Ar(t){return((Al(t)?t.ownerDocument:t.document)||window.document).documentElement}var Pl=Math.max,z_=Math.min,Sd=Math.round;function m0(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function IP(){return!/^((?!chrome|android).)*safari/i.test(m0())}function Td(t,i,e){void 0===i&&(i=!1),void 0===e&&(e=!1);var n=t.getBoundingClientRect(),o=1,s=1;i&&us(t)&&(o=t.offsetWidth>0&&Sd(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Sd(n.height)/t.offsetHeight||1);var r=(Al(t)?Uo(t):window).visualViewport,u=!IP()&&e,m=(n.left+(u&&r?r.offsetLeft:0))/o,g=(n.top+(u&&r?r.offsetTop:0))/s,y=n.width/o,S=n.height/s;return{width:y,height:S,top:g,right:m+y,bottom:g+S,left:m,x:m,y:g}}function f0(t){var i=Uo(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function _0(t){return Td(Ar(t)).left+f0(t).scrollLeft}function ja(t){return Uo(t).getComputedStyle(t)}function ra(t){return t?(t.nodeName||"").toLowerCase():null}function W_(t){return"html"===ra(t)?t:t.assignedSlot||t.parentNode||(p0(t)?t.host:null)||Ar(t)}function g0(t){var i=ja(t);return/auto|scroll|overlay|hidden/.test(i.overflow+i.overflowY+i.overflowX)}function OP(t){return["html","body","#document"].indexOf(ra(t))>=0?t.ownerDocument.body:us(t)&&g0(t)?t:OP(W_(t))}function np(t,i){var e;void 0===i&&(i=[]);var n=OP(t),o=n===(null==(e=t.ownerDocument)?void 0:e.body),s=Uo(n),a=o?[s].concat(s.visualViewport||[],g0(n)?n:[]):n,r=i.concat(a);return o?r:r.concat(np(W_(a)))}function lJ(t){return["table","td","th"].indexOf(ra(t))>=0}function RP(t){return us(t)&&"fixed"!==ja(t).position?t.offsetParent:null}function ip(t){for(var i=Uo(t),e=RP(t);e&&lJ(e)&&"static"===ja(e).position;)e=RP(e);return e&&("html"===ra(e)||"body"===ra(e)&&"static"===ja(e).position)?i:e||function cJ(t){var i=/firefox/i.test(m0());if(/Trident/i.test(m0())&&us(t)&&"fixed"===ja(t).position)return null;var o=W_(t);for(p0(o)&&(o=o.host);us(o)&&["html","body"].indexOf(ra(o))<0;){var s=ja(o);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||i&&"filter"===s.willChange||i&&s.filter&&"none"!==s.filter)return o;o=o.parentNode}return null}(t)||i}function kP(t,i){var e=i.getRootNode&&i.getRootNode();if(t.contains(i))return!0;if(e&&p0(e)){var n=i;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function b0(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function AP(t,i,e){return i===MP?b0(function aJ(t,i){var e=Uo(t),n=Ar(t),o=e.visualViewport,s=n.clientWidth,a=n.clientHeight,r=0,u=0;if(o){s=o.width,a=o.height;var m=IP();(m||!m&&"fixed"===i)&&(r=o.offsetLeft,u=o.offsetTop)}return{width:s,height:a,x:r+_0(t),y:u}}(t,e)):Al(i)?function dJ(t,i){var e=Td(t,!1,"fixed"===i);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(i,e):b0(function rJ(t){var i,e=Ar(t),n=f0(t),o=null==(i=t.ownerDocument)?void 0:i.body,s=Pl(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Pl(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),r=-n.scrollLeft+_0(t),u=-n.scrollTop;return"rtl"===ja(o||e).direction&&(r+=Pl(e.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:r,y:u}}(Ar(t)))}function Dd(t){return t.split("-")[1]}function v0(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function PP(t){var u,i=t.reference,e=t.element,n=t.placement,o=n?aa(n):null,s=n?Dd(n):null,a=i.x+i.width/2-e.width/2,r=i.y+i.height/2-e.height/2;switch(o){case Vo:u={x:a,y:i.y-e.height};break;case Es:u={x:a,y:i.y+i.height};break;case Is:u={x:i.x+i.width,y:r};break;case Ho:u={x:i.x-e.width,y:r};break;default:u={x:i.x,y:i.y}}var m=o?v0(o):null;if(null!=m){var g="y"===m?"height":"width";switch(s){case wd:u[m]=u[m]-(i[g]/2-e[g]/2);break;case ep:u[m]=u[m]+(i[g]/2-e[g]/2)}}return u}function FP(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function LP(t,i){return i.reduce(function(e,n){return e[n]=t,e},{})}function y0(t,i){void 0===i&&(i={});var n=i.placement,o=void 0===n?t.placement:n,s=i.strategy,a=void 0===s?t.strategy:s,r=i.boundary,u=void 0===r?"clippingParents":r,m=i.rootBoundary,g=void 0===m?MP:m,y=i.elementContext,S=void 0===y?tp:y,x=i.altBoundary,R=void 0!==x&&x,k=i.padding,V=void 0===k?0:k,q=FP("number"!=typeof V?V:LP(V,Jh)),ie=t.rects.popper,se=t.elements[R?S===tp?"reference":tp:S],De=function hJ(t,i,e,n){var o="clippingParents"===i?function uJ(t){var i=np(W_(t)),n=["absolute","fixed"].indexOf(ja(t).position)>=0&&us(t)?ip(t):t;return Al(n)?i.filter(function(o){return Al(o)&&kP(o,n)&&"body"!==ra(o)}):[]}(t):[].concat(i),s=[].concat(o,[e]),r=s.reduce(function(u,m){var g=AP(t,m,n);return u.top=Pl(g.top,u.top),u.right=z_(g.right,u.right),u.bottom=z_(g.bottom,u.bottom),u.left=Pl(g.left,u.left),u},AP(t,s[0],n));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Al(se)?se:se.contextElement||Ar(t.elements.popper),u,g,a),Ge=Td(t.elements.reference),nt=PP({reference:Ge,element:ie,strategy:"absolute",placement:o}),ft=b0(Object.assign({},ie,nt)),bn=S===tp?ft:Ge,Dn={top:De.top-bn.top+q.top,bottom:bn.bottom-De.bottom+q.bottom,left:De.left-bn.left+q.left,right:bn.right-De.right+q.right},bi=t.modifiersData.offset;if(S===tp&&bi){var qi=bi[o];Object.keys(Dn).forEach(function(ti){var ha=[Is,Es].indexOf(ti)>=0?1:-1,pa=[Vo,Es].indexOf(ti)>=0?"y":"x";Dn[ti]+=qi[pa]*ha})}return Dn}const _J={name:"flip",enabled:!0,phase:"main",fn:function fJ(t){var i=t.state,e=t.options,n=t.name;if(!i.modifiersData[n]._skip){for(var o=e.mainAxis,s=void 0===o||o,a=e.altAxis,r=void 0===a||a,u=e.fallbackPlacements,m=e.padding,g=e.boundary,y=e.rootBoundary,S=e.altBoundary,x=e.flipVariations,R=void 0===x||x,k=e.allowedAutoPlacements,V=i.options.placement,q=aa(V),ie=u||(q!==V&&R?function mJ(t){if(aa(t)===h0)return[];var i=G_(t);return[DP(t),i,DP(i)]}(V):[G_(V)]),se=[V].concat(ie).reduce(function(In,Fs){return In.concat(aa(Fs)===h0?function pJ(t,i){void 0===i&&(i={});var o=i.boundary,s=i.rootBoundary,a=i.padding,r=i.flipVariations,u=i.allowedAutoPlacements,m=void 0===u?EP:u,g=Dd(i.placement),y=g?r?xP:xP.filter(function(R){return Dd(R)===g}):Jh,S=y.filter(function(R){return m.indexOf(R)>=0});0===S.length&&(S=y);var x=S.reduce(function(R,k){return R[k]=y0(t,{placement:k,boundary:o,rootBoundary:s,padding:a})[aa(k)],R},{});return Object.keys(x).sort(function(R,k){return x[R]-x[k]})}(i,{placement:Fs,boundary:g,rootBoundary:y,padding:m,flipVariations:R,allowedAutoPlacements:k}):Fs)},[]),De=i.rects.reference,Ge=i.rects.popper,nt=new Map,ft=!0,bn=se[0],Dn=0;Dn<se.length;Dn++){var bi=se[Dn],qi=aa(bi),ti=Dd(bi)===wd,ha=[Vo,Es].indexOf(qi)>=0,pa=ha?"width":"height",Ie=y0(i,{placement:bi,boundary:g,rootBoundary:y,altBoundary:S,padding:m}),Ve=ha?ti?Is:Ho:ti?Es:Vo;De[pa]>Ge[pa]&&(Ve=G_(Ve));var Ke=G_(Ve),St=[];if(s&&St.push(Ie[qi]<=0),r&&St.push(Ie[Ve]<=0,Ie[Ke]<=0),St.every(function(In){return In})){bn=bi,ft=!1;break}nt.set(bi,St)}if(ft)for(var Eo=function(Fs){var Kl=se.find(function(vi){var fo=nt.get(vi);if(fo)return fo.slice(0,Fs).every(function(no){return no})});if(Kl)return bn=Kl,"break"},Ai=R?3:1;Ai>0&&"break"!==Eo(Ai);Ai--);i.placement!==bn&&(i.modifiersData[n]._skip=!0,i.placement=bn,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function op(t,i,e){return Pl(t,z_(i,e))}function C0(t){var i=Td(t),e=t.offsetWidth,n=t.offsetHeight;return Math.abs(i.width-e)<=1&&(e=i.width),Math.abs(i.height-n)<=1&&(n=i.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:n}}const yJ={name:"preventOverflow",enabled:!0,phase:"main",fn:function vJ(t){var i=t.state,e=t.options,n=t.name,o=e.mainAxis,s=void 0===o||o,a=e.altAxis,r=void 0!==a&&a,S=e.tether,x=void 0===S||S,R=e.tetherOffset,k=void 0===R?0:R,V=y0(i,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),q=aa(i.placement),j=Dd(i.placement),ie=!j,se=v0(q),De=function gJ(t){return"x"===t?"y":"x"}(se),Ge=i.modifiersData.popperOffsets,nt=i.rects.reference,ft=i.rects.popper,bn="function"==typeof k?k(Object.assign({},i.rects,{placement:i.placement})):k,Dn="number"==typeof bn?{mainAxis:bn,altAxis:bn}:Object.assign({mainAxis:0,altAxis:0},bn),bi=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,qi={x:0,y:0};if(Ge){if(s){var ti,ha="y"===se?Vo:Ho,pa="y"===se?Es:Is,Ie="y"===se?"height":"width",Ve=Ge[se],Ke=Ve+V[ha],St=Ve-V[pa],ni=x?-ft[Ie]/2:0,Eo=j===wd?nt[Ie]:ft[Ie],Ai=j===wd?-ft[Ie]:-nt[Ie],Wo=i.elements.arrow,In=x&&Wo?C0(Wo):{width:0,height:0},Fs=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Kl=Fs[ha],vi=Fs[pa],fo=op(0,nt[Ie],In[Ie]),no=ie?nt[Ie]/2-ni-fo-Kl-Dn.mainAxis:Eo-fo-Kl-Dn.mainAxis,Wd=ie?-nt[Ie]/2+ni+fo+vi+Dn.mainAxis:Ai+fo+vi+Dn.mainAxis,Xl=i.elements.arrow&&ip(i.elements.arrow),GAe=Xl?"y"===se?Xl.clientTop||0:Xl.clientLeft||0:0,dL=null!=(ti=bi?.[se])?ti:0,WAe=Ve+Wd-dL,uL=op(x?z_(Ke,Ve+no-dL-GAe):Ke,Ve,x?Pl(St,WAe):St);Ge[se]=uL,qi[se]=uL-Ve}if(r){var hL,Jl=Ge[De],Xg="y"===De?"height":"width",pL=Jl+V["x"===se?Vo:Ho],mL=Jl-V["x"===se?Es:Is],tS=-1!==[Vo,Ho].indexOf(q),fL=null!=(hL=bi?.[De])?hL:0,_L=tS?pL:Jl-nt[Xg]-ft[Xg]-fL+Dn.altAxis,gL=tS?Jl+nt[Xg]+ft[Xg]-fL-Dn.altAxis:mL,bL=x&&tS?function bJ(t,i,e){var n=op(t,i,e);return n>e?e:n}(_L,Jl,gL):op(x?_L:pL,Jl,x?gL:mL);Ge[De]=bL,qi[De]=bL-Jl}i.modifiersData[n]=qi}},requiresIfExists:["offset"]},TJ={name:"arrow",enabled:!0,phase:"main",fn:function wJ(t){var i,e=t.state,n=t.name,o=t.options,s=e.elements.arrow,a=e.modifiersData.popperOffsets,r=aa(e.placement),u=v0(r),g=[Ho,Is].indexOf(r)>=0?"height":"width";if(s&&a){var y=function(i,e){return FP("number"!=typeof(i="function"==typeof i?i(Object.assign({},e.rects,{placement:e.placement})):i)?i:LP(i,Jh))}(o.padding,e),S=C0(s),x="y"===u?Vo:Ho,R="y"===u?Es:Is,k=e.rects.reference[g]+e.rects.reference[u]-a[u]-e.rects.popper[g],V=a[u]-e.rects.reference[u],q=ip(s),j=q?"y"===u?q.clientHeight||0:q.clientWidth||0:0,Ge=j/2-S[g]/2+(k/2-V/2),nt=op(y[x],Ge,j-S[g]-y[R]);e.modifiersData[n]=((i={})[u]=nt,i.centerOffset=nt-Ge,i)}},effect:function SJ(t){var i=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=i.elements.popper.querySelector(o))||kP(i.elements.popper,o)&&(i.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function EJ(t,i,e){void 0===e&&(e=!1);var n=us(i),o=us(i)&&function xJ(t){var i=t.getBoundingClientRect(),e=Sd(i.width)/t.offsetWidth||1,n=Sd(i.height)/t.offsetHeight||1;return 1!==e||1!==n}(i),s=Ar(i),a=Td(t,o,e),r={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!e)&&(("body"!==ra(i)||g0(s))&&(r=function MJ(t){return t!==Uo(t)&&us(t)?function DJ(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(t):f0(t)}(i)),us(i)?((u=Td(i,!0)).x+=i.clientLeft,u.y+=i.clientTop):s&&(u.x=_0(s))),{x:a.left+r.scrollLeft-u.x,y:a.top+r.scrollTop-u.y,width:a.width,height:a.height}}function IJ(t){var i=new Map,e=new Set,n=[];function o(s){e.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(r){if(!e.has(r)){var u=i.get(r);u&&o(u)}}),n.push(s)}return t.forEach(function(s){i.set(s.name,s)}),t.forEach(function(s){e.has(s.name)||o(s)}),n}function RJ(t){var i;return function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(t())})})),i}}var BP={placement:"bottom",modifiers:[],strategy:"absolute"};function VP(){for(var t=arguments.length,i=new Array(t),e=0;e<t;e++)i[e]=arguments[e];return!i.some(function(n){return!(n&&"function"==typeof n.getBoundingClientRect)})}function AJ(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,o=t.defaultOptions,s=void 0===o?BP:o;return function(r,u,m){void 0===m&&(m=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},BP,s),modifiersData:{},elements:{reference:r,popper:u},attributes:{},styles:{}},y=[],S=!1,x={state:g,setOptions:function(q){var j="function"==typeof q?q(g.options):q;k(),g.options=Object.assign({},s,g.options,j),g.scrollParents={reference:Al(r)?np(r):r.contextElement?np(r.contextElement):[],popper:np(u)};var ie=function OJ(t){var i=IJ(t);return sJ.reduce(function(e,n){return e.concat(i.filter(function(o){return o.phase===n}))},[])}(function kJ(t){var i=t.reduce(function(e,n){var o=e[n.name];return e[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,e},{});return Object.keys(i).map(function(e){return i[e]})}([].concat(n,g.options.modifiers)));return g.orderedModifiers=ie.filter(function(se){return se.enabled}),function R(){g.orderedModifiers.forEach(function(V){var j=V.options,se=V.effect;if("function"==typeof se){var De=se({state:g,name:V.name,instance:x,options:void 0===j?{}:j});y.push(De||function(){})}})}(),x.update()},forceUpdate:function(){if(!S){var q=g.elements,j=q.reference,ie=q.popper;if(VP(j,ie)){g.rects={reference:EJ(j,ip(ie),"fixed"===g.options.strategy),popper:C0(ie)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(Dn){return g.modifiersData[Dn.name]=Object.assign({},Dn.data)});for(var se=0;se<g.orderedModifiers.length;se++)if(!0!==g.reset){var De=g.orderedModifiers[se],Ge=De.fn,nt=De.options;"function"==typeof Ge&&(g=Ge({state:g,options:void 0===nt?{}:nt,name:De.name,instance:x})||g)}else g.reset=!1,se=-1}}},update:RJ(function(){return new Promise(function(V){x.forceUpdate(),V(g)})}),destroy:function(){k(),S=!0}};if(!VP(r,u))return x;function k(){y.forEach(function(V){return V()}),y=[]}return x.setOptions(m).then(function(V){!S&&m.onFirstUpdate&&m.onFirstUpdate(V)}),x}}var q_={passive:!0},BJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function HP(t){var i,e=t.popper,n=t.popperRect,o=t.placement,s=t.variation,a=t.offsets,r=t.position,u=t.gpuAcceleration,m=t.adaptive,g=t.roundOffsets,y=t.isFixed,S=a.x,x=void 0===S?0:S,R=a.y,k=void 0===R?0:R,V="function"==typeof g?g({x,y:k}):{x,y:k};x=V.x,k=V.y;var q=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),ie=Ho,se=Vo,De=window;if(m){var Ge=ip(e),nt="clientHeight",ft="clientWidth";Ge===Uo(e)&&"static"!==ja(Ge=Ar(e)).position&&"absolute"===r&&(nt="scrollHeight",ft="scrollWidth"),(o===Vo||(o===Ho||o===Is)&&s===ep)&&(se=Es,k-=(y&&Ge===De&&De.visualViewport?De.visualViewport.height:Ge[nt])-n.height,k*=u?1:-1),o!==Ho&&(o!==Vo&&o!==Es||s!==ep)||(ie=Is,x-=(y&&Ge===De&&De.visualViewport?De.visualViewport.width:Ge[ft])-n.width,x*=u?1:-1)}var ti,bi=Object.assign({position:r},m&&BJ),qi=!0===g?function VJ(t,i){var n=t.y,o=i.devicePixelRatio||1;return{x:Sd(t.x*o)/o||0,y:Sd(n*o)/o||0}}({x,y:k},Uo(e)):{x,y:k};return x=qi.x,k=qi.y,Object.assign({},bi,u?((ti={})[se]=j?"0":"",ti[ie]=q?"0":"",ti.transform=(De.devicePixelRatio||1)<=1?"translate("+x+"px, "+k+"px)":"translate3d("+x+"px, "+k+"px, 0)",ti):((i={})[se]=j?k+"px":"",i[ie]=q?x+"px":"",i.transform="",i))}var zJ=AJ({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function PJ(t){var i=t.state,e=t.instance,n=t.options,o=n.scroll,s=void 0===o||o,a=n.resize,r=void 0===a||a,u=Uo(i.elements.popper),m=[].concat(i.scrollParents.reference,i.scrollParents.popper);return s&&m.forEach(function(g){g.addEventListener("scroll",e.update,q_)}),r&&u.addEventListener("resize",e.update,q_),function(){s&&m.forEach(function(g){g.removeEventListener("scroll",e.update,q_)}),r&&u.removeEventListener("resize",e.update,q_)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function FJ(t){var i=t.state;i.modifiersData[t.name]=PP({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function HJ(t){var i=t.state,e=t.options,n=e.gpuAcceleration,o=void 0===n||n,s=e.adaptive,a=void 0===s||s,r=e.roundOffsets,u=void 0===r||r,m={placement:aa(i.placement),variation:Dd(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:o,isFixed:"fixed"===i.options.strategy};null!=i.modifiersData.popperOffsets&&(i.styles.popper=Object.assign({},i.styles.popper,HP(Object.assign({},m,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:a,roundOffsets:u})))),null!=i.modifiersData.arrow&&(i.styles.arrow=Object.assign({},i.styles.arrow,HP(Object.assign({},m,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function $J(t){var i=t.state;Object.keys(i.elements).forEach(function(e){var n=i.styles[e]||{},o=i.attributes[e]||{},s=i.elements[e];!us(s)||!ra(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(a){var r=o[a];!1===r?s.removeAttribute(a):s.setAttribute(a,!0===r?"":r)}))})},effect:function jJ(t){var i=t.state,e={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,e.popper),i.styles=e,i.elements.arrow&&Object.assign(i.elements.arrow.style,e.arrow),function(){Object.keys(i.elements).forEach(function(n){var o=i.elements[n],s=i.attributes[n]||{},r=Object.keys(i.styles.hasOwnProperty(n)?i.styles[n]:e[n]).reduce(function(u,m){return u[m]="",u},{});!us(o)||!ra(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}},requires:["computeStyles"]}]});const YJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function qJ(t){var i=t.state,n=t.name,o=t.options.offset,s=void 0===o?[0,0]:o,a=EP.reduce(function(g,y){return g[y]=function WJ(t,i,e){var n=aa(t),o=[Ho,Vo].indexOf(n)>=0?-1:1,s="function"==typeof e?e(Object.assign({},i,{placement:t})):e,a=s[0],r=s[1];return a=a||0,r=(r||0)*o,[Ho,Is].indexOf(n)>=0?{x:r,y:a}:{x:a,y:r}}(y,i.rects,s),g},{}),r=a[i.placement],m=r.y;null!=i.modifiersData.popperOffsets&&(i.modifiersData.popperOffsets.x+=r.x,i.modifiersData.popperOffsets.y+=m),i.modifiersData[n]=a}},UP=["*"];function rte(t,i){1&t&&h(0),2&t&&O(b(2).title)}function lte(t,i){}function cte(t,i){if(1&t&&(l(0,"h3",3),p(1,rte,1,1,"ng-template",null,4,Nt),p(3,lte,0,0,"ng-template",5),d()),2&t){const e=X(2),n=b();c(3),f("ngTemplateOutlet",n.isTitleTemplate()?n.title:e)("ngTemplateOutletContext",n.context)}}const WP={animation:!0,transitionTimerDelayMs:5},Tte=()=>{},{transitionTimerDelayMs:Dte}=WP,sp=new Map,xo=(t,i,e,n)=>{let o=n.context||{};const s=sp.get(i);if(s)switch(n.runningTransition){case"continue":return io;case"stop":t.run(()=>s.transition$.complete()),o=Object.assign(s.context,o),sp.delete(i)}const a=e(i,n.animation,o)||Tte;if(!n.animation||"none"===window.getComputedStyle(i).transitionProperty)return t.run(()=>a()),ve(void 0).pipe(function wte(t){return i=>new dn(e=>i.subscribe({next:a=>t.run(()=>e.next(a)),error:a=>t.run(()=>e.error(a)),complete:()=>t.run(()=>e.complete())}))}(t));const r=new re,u=new re,m=r.pipe(function IX(...t){return i=>lr(i,ve(...t))}(!0));sp.set(i,{transition$:r,complete:()=>{u.next(),u.complete()},context:o});const g=function Ste(t){const{transitionDelay:i,transitionDuration:e}=window.getComputedStyle(t);return 1e3*(parseFloat(i)+parseFloat(e))}(i);return t.runOutsideAngular(()=>{const y=Pn(i,"transitionend").pipe(Se(m),st(({target:x})=>x===i));mP(h_(g+Dte).pipe(Se(m)),y,u).pipe(Se(m)).subscribe(()=>{sp.delete(i),t.run(()=>{a(),r.next(),r.complete()})})}),r.asObservable()};let ap=(()=>{class t{constructor(){this.animation=WP.animation}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Hn=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}(Hn||{});const J_=(t,i)=>!!i&&i.some(e=>e.contains(t)),rN=(t,i)=>!i||null!=function Cte(t,i){return!i||typeof t.closest>"u"?null:t.closest(i)}(t,i),one=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function k0(t,i,e,n,o,s,a,r){e&&t.runOutsideAngular((t=>one?()=>setTimeout(()=>t(),100):t)(()=>{const m=Pn(i,"keydown").pipe(Se(o),st(S=>S.which===Hn.Escape),Zn(S=>S.preventDefault())),g=Pn(i,"mousedown").pipe(Le(S=>{const x=S.target;return 2!==S.button&&!J_(x,a)&&("inside"===e?J_(x,s)&&rN(x,r):"outside"===e?!J_(x,s):rN(x,r)||!J_(x,s))}),Se(o)),y=Pn(i,"mouseup").pipe(function r0(...t){const i=Pp(t);return qn((e,n)=>{const o=t.length,s=new Array(o);let a=t.map(()=>!1),r=!1;for(let u=0;u<o;u++)yi(t[u]).subscribe(On(n,m=>{s[u]=m,!r&&!a[u]&&(a[u]=!0,(r=a.every(ma))&&(a=null))},Yd));e.subscribe(On(n,u=>{if(r){const m=[u,...s];n.next(i?i(...m):m)}}))})}(g),st(([S,x])=>x),k_(0),Se(o));mP([m.pipe(Le(S=>0)),y.pipe(Le(S=>1))]).subscribe(S=>t.run(()=>n(S)))}))}["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");let ane=(()=>{class t{constructor(e){this._element=e.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const rne=/\s+/,lne=/  +/gi,cne={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},une=/^left/,hne=/^right/,pne=/^start/,mne=/^end/;function uN({placement:t,baseClass:i},e){let n=Array.isArray(t)?t:t.split(rne),s=n.findIndex(m=>"auto"===m);s>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(m){null==n.find(g=>-1!==g.search("^"+m))&&n.splice(s++,1,m)});const a=n.map(m=>function dne(t,i){const[e,n]=cne[t];return i&&n||e}(m,e.isRTL()));return{placement:a.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!i,phase:"write",fn({state:m}){const g=new RegExp(i+"(-[a-z]+)*","gi"),y=m.elements.popper,S=m.placement;let x=y.className;x=x.replace(g,""),x+=` ${function fne(t,i){let[e,n]=i.split("-");const o=e.replace(une,"start").replace(hne,"end");let s=[o];if(n){let a=n;("left"===e||"right"===e)&&(a=a.replace(pne,"top").replace(mne,"bottom")),s.push(`${o}-${a}`)}return t&&(s=s.map(a=>`${t}-${a}`)),s.join(" ")}(i,S)}`,x=x.trim().replace(lne," "),y.className=x}},_J,yJ,TJ,{enabled:!0,name:"flip",options:{fallbackPlacements:a}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function hN(t){return t}new Date(1882,10,12),new Date(2174,10,25);class Hl{constructor(i,e,n){this.nodes=i,this.viewRef=e,this.componentRef=n}}class One{constructor(i,e,n,o,s,a){this._componentType=i,this._injector=e,this._viewContainerRef=n,this._renderer=o,this._ngZone=s,this._applicationRef=a,this._windowRef=null,this._contentRef=null}open(i,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(i,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:o}=this._windowRef.location,s=this._ngZone.onStable.pipe(Xe(1),Ci(()=>xo(this._ngZone,o,({classList:a})=>a.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(i=!1){return this._windowRef?xo(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:i,runningTransition:"stop"}).pipe(Zn(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):ve(void 0)}_getContentRef(i,e){if(i){if(i instanceof bt){const n=i.createEmbeddedView(e);return this._applicationRef.attachView(n),new Hl([n.rootNodes],n)}return new Hl([[this._renderer.createText(`${i}`)]])}return new Hl([])}}const Kne={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let eie=(()=>{class t{constructor(e){this._ngbConfig=e,this.autoClose=!0,this.placement="auto",this.popperOptions=n=>n,this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(e){this._animation=e}static#e=this.\u0275fac=function(n){return new(n||t)(H(ap))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),tie=0,nie=(()=>{class t{isTitleTemplate(){return this.title instanceof bt}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["ngb-popover-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(n,o){2&n&&(Qn("id",o.id),Ln("popover"+(o.popoverClass?" "+o.popoverClass:"")),de("fade",o.animation))},inputs:{animation:"animation",title:"title",id:"id",popoverClass:"popoverClass",context:"context"},standalone:!0,features:[Z],ngContentSelectors:UP,decls:4,vars:1,consts:[["data-popper-arrow","",1,"popover-arrow"],["class","popover-header",4,"ngIf"],[1,"popover-body"],[1,"popover-header"],["simpleTitle",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,o){1&n&&(Dt(),D(0,"div",0),p(1,cte,4,2,"h3",1),l(2,"div",2),$e(3),d()),2&n&&(c(1),f("ngIf",o.title))},dependencies:[ul,le],encapsulation:2,changeDetection:0})}return t})(),Ul=(()=>{class t{_isDisabled(){return!(!this.disablePopover&&(this.ngbPopover||this.popoverTitle))}constructor(e,n,o,s,a,r,u,m,g){this._elementRef=e,this._renderer=n,this._ngZone=r,this._document=u,this._changeDetector=m,this.shown=new W,this.hidden=new W,this._ngbPopoverWindowId="ngb-popover-"+tie++,this._windowRef=null,this.animation=a.animation,this.autoClose=a.autoClose,this.placement=a.placement,this.popperOptions=a.popperOptions,this.triggers=a.triggers,this.container=a.container,this.disablePopover=a.disablePopover,this.popoverClass=a.popoverClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._positioning=function A0(){const t=he(ane);let i=null;return{createPopper(e){if(!i){let o=(e.updatePopperOptions||hN)(uN(e,t));i=zJ(e.hostElement,e.targetElement,o)}},update(){i&&i.update()},setOptions(e){if(i){let o=(e.updatePopperOptions||hN)(uN(e,t));i.setOptions(o)}},destroy(){i&&(i.destroy(),i=null)}}}(),this._popupService=new One(nie,o,s,n,this._ngZone,g)}open(e){if(!this._windowRef&&!this._isDisabled()){const{windowRef:n,transition$:o}=this._popupService.open(this.ngbPopover,e??this.popoverContext,this.animation);this._windowRef=n,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("title",this.popoverTitle),this._windowRef.setInput("context",e??this.popoverContext),this._windowRef.setInput("popoverClass",this.popoverClass),this._windowRef.setInput("id",this._ngbPopoverWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-popover",updatePopperOptions:s=>this.popperOptions(function P0(t){return i=>(i.modifiers.push(YJ,{name:"offset",options:{offset:()=>t}}),i)}([0,8])(s))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),k0(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),o.subscribe(()=>this.shown.emit())}}close(e=this.animation){this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(e).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Jne(t,i,e,n,o,s=0,a=0){const r=function Xne(t){const i=(t||"").trim();if(0===i.length)return[];const e=i.split(/\s+/).map(o=>o.split(":")).map(o=>Kne[o[0]]||o),n=e.filter(o=>o.includes("manual"));if(n.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===n.length&&e.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return n.length?[]:e}(i);if(0===r.length)return()=>{};const u=new Set,m=[];let g;function y(x,R){t.addEventListener(x,R),m.push(()=>t.removeEventListener(x,R))}function S(x,R){clearTimeout(g),R>0?g=setTimeout(x,R):x()}for(const[x,R]of r)R?(y(x,()=>{u.add(x),S(()=>u.size>0&&n(),s)}),y(R,()=>{u.delete(x),S(()=>0===u.size&&o(),a)})):y(x,()=>e()?S(o,a):S(n,s));return()=>m.forEach(x=>x())}(this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:e,popoverTitle:n,disablePopover:o,popoverClass:s}){s&&this.isOpen()&&(this._windowRef.instance.popoverClass=s.currentValue),(e||n||o)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(function Pr(t){return"string"==typeof t}(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_(Co),_(_n),_(kn),_(eie),_(be),_(Ue),_(He),_(vs))};static#t=this.\u0275dir=$({type:t,selectors:[["","ngbPopover",""]],inputs:{animation:"animation",autoClose:"autoClose",ngbPopover:"ngbPopover",popoverTitle:"popoverTitle",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disablePopover:"disablePopover",popoverClass:"popoverClass",popoverContext:"popoverContext",openDelay:"openDelay",closeDelay:"closeDelay"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbPopover"],standalone:!0,features:[fe]})}return t})(),H0=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})();new Y("live announcer delay",{providedIn:"root",factory:function pie(){return 100}});const _ie=["primaryValueBar"],gie=Ts(class{constructor(t){this._elementRef=t}},"primary"),bie=new Y("mat-progress-bar-location",{providedIn:"root",factory:function vie(){const t=he(Ue),i=t?t.location:null;return{getPathname:()=>i?i.pathname+i.search:""}}}),yie=new Y("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let Cie=0,wie=(()=>{class t extends gie{constructor(e,n,o,s,a,r){super(e),this._ngZone=n,this._animationMode=o,this._changeDetectorRef=r,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new W,this._animationEndSubscription=rt.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+Cie++;const u=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${u}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===o,a&&(a.color&&(this.color=this.defaultColor=a.color),this.mode=a.mode||this.mode)}get value(){return this._value}set value(e){this._value=kN(ci(e)||0),this._changeDetectorRef?.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(e){this._bufferValue=kN(e||0),this._changeDetectorRef?.markForCheck()}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const e=this._primaryValueBar.nativeElement;this._animationEndSubscription=Pn(e,"transitionend").pipe(st(n=>n.target===e)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(Fn,8),_(bie,8),_(yie,8),_(He))},t.\u0275cmp=U({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(e,n){if(1&e&&ne(_ie,5),2&e){let o;G(o=z())&&(n._primaryValueBar=o.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(e,n){2&e&&(J("aria-valuenow","indeterminate"===n.mode||"query"===n.mode?null:n.value)("mode",n.mode),de("_mat-animation-noopable",n._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[te],decls:10,vars:4,consts:[["aria-hidden","true"],["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(e,n){1&e&&(l(0,"div",0),ai(),l(1,"svg",1)(2,"defs")(3,"pattern",2),D(4,"circle",3),d()(),D(5,"rect",4),d(),vo(),D(6,"div",5)(7,"div",6,7)(9,"div",8),d()),2&e&&(c(3),f("id",n.progressbarId),c(2),J("fill",n._rectangleFillValue),c(1),f("ngStyle",n._bufferTransform()),c(1),f("ngStyle",n._primaryTransform()))},dependencies:[pr],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}.mat-progress-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}'],encapsulation:2,changeDetection:0}),t})();function kN(t,i=0,e=100){return Math.max(i,Math.min(e,t))}let AN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ce,ze,ze]}),t})();function PN(t){return new ee(3e3,!1)}function Nr(t){switch(t.length){case 0:return new Mh;case 1:return t[0];default:return new bk(t)}}function NN(t,i,e=new Map,n=new Map){const o=[],s=[];let a=-1,r=null;if(i.forEach(u=>{const m=u.get("offset"),g=m==a,y=g&&r||new Map;u.forEach((S,x)=>{let R=x,k=S;if("offset"!==x)switch(R=t.normalizePropertyName(R,o),k){case"!":k=e.get(x);break;case Pa:k=n.get(x);break;default:k=t.normalizeStyleValue(x,R,k,o)}y.set(R,k)}),g||s.push(y),r=y,a=m}),o.length)throw function zie(t){return new ee(3502,!1)}();return s}function U0(t,i,e,n){switch(i){case"start":t.onStart(()=>n(e&&$0(e,"start",t)));break;case"done":t.onDone(()=>n(e&&$0(e,"done",t)));break;case"destroy":t.onDestroy(()=>n(e&&$0(e,"destroy",t)))}}function $0(t,i,e){const s=j0(t.element,t.triggerName,t.fromState,t.toState,i||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),a=t._data;return null!=a&&(s._data=a),s}function j0(t,i,e,n,o="",s=0,a){return{element:t,triggerName:i,fromState:e,toState:n,phaseName:o,totalTime:s,disabled:!!a}}function $o(t,i,e){let n=t.get(i);return n||t.set(i,n=e),n}function FN(t){const i=t.indexOf(":");return[t.substring(1,i),t.slice(i+1)]}const ioe=(()=>typeof document>"u"?null:document.documentElement)();function G0(t){const i=t.parentNode||t.host||null;return i===ioe?null:i}let $l=null,LN=!1;function BN(t,i){for(;i;){if(i===t)return!0;i=G0(i)}return!1}function VN(t,i,e){if(e)return Array.from(t.querySelectorAll(i));const n=t.querySelector(i);return n?[n]:[]}let HN=(()=>{class t{validateStyleProperty(e){return function soe(t){$l||($l=function aoe(){return typeof document<"u"?document.body:null}()||{},LN=!!$l.style&&"WebkitAppearance"in $l.style);let i=!0;return $l.style&&!function ooe(t){return"ebkit"==t.substring(1,6)}(t)&&(i=t in $l.style,!i&&LN&&(i="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in $l.style)),i}(e)}matchesElement(e,n){return!1}containsElement(e,n){return BN(e,n)}getParentElement(e){return G0(e)}query(e,n,o){return VN(e,n,o)}computeStyle(e,n,o){return o||""}animate(e,n,o,s,a,r=[],u){return new Mh(o,s)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),z0=(()=>{class t{static#e=this.NOOP=new HN}return t})();const roe=1e3,W0="ng-enter",ag="ng-leave",rg="ng-trigger",lg=".ng-trigger",$N="ng-animating",q0=".ng-animating";function Ga(t){if("number"==typeof t)return t;const i=t.match(/^(-?[\.\d]+)(m?s)/);return!i||i.length<2?0:Y0(parseFloat(i[1]),i[2])}function Y0(t,i){return"s"===i?t*roe:t}function cg(t,i,e){return t.hasOwnProperty("duration")?t:function coe(t,i,e){let o,s=0,a="";if("string"==typeof t){const r=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===r)return i.push(PN()),{duration:0,delay:0,easing:""};o=Y0(parseFloat(r[1]),r[2]);const u=r[3];null!=u&&(s=Y0(parseFloat(u),r[4]));const m=r[5];m&&(a=m)}else o=t;if(!e){let r=!1,u=i.length;o<0&&(i.push(function Sie(){return new ee(3100,!1)}()),r=!0),s<0&&(i.push(function Tie(){return new ee(3101,!1)}()),r=!0),r&&i.splice(u,0,PN())}return{duration:o,delay:s,easing:a}}(t,i,e)}function up(t,i={}){return Object.keys(t).forEach(e=>{i[e]=t[e]}),i}function jN(t){const i=new Map;return Object.keys(t).forEach(e=>{i.set(e,t[e])}),i}function Fr(t,i=new Map,e){if(e)for(let[n,o]of e)i.set(n,o);for(let[n,o]of t)i.set(n,o);return i}function la(t,i,e){i.forEach((n,o)=>{const s=Z0(o);e&&!e.has(o)&&e.set(o,t.style[s]),t.style[s]=n})}function jl(t,i){i.forEach((e,n)=>{const o=Z0(n);t.style[o]=""})}function hp(t){return Array.isArray(t)?1==t.length?t[0]:gk(t):t}const Q0=new RegExp("{{\\s*(.+?)\\s*}}","g");function zN(t){let i=[];if("string"==typeof t){let e;for(;e=Q0.exec(t);)i.push(e[1]);Q0.lastIndex=0}return i}function pp(t,i,e){const n=t.toString(),o=n.replace(Q0,(s,a)=>{let r=i[a];return null==r&&(e.push(function Mie(t){return new ee(3003,!1)}()),r=""),r.toString()});return o==n?t:o}function dg(t){const i=[];let e=t.next();for(;!e.done;)i.push(e.value),e=t.next();return i}const hoe=/-+([a-z0-9])/g;function Z0(t){return t.replace(hoe,(...i)=>i[1].toUpperCase())}function jo(t,i,e){switch(i.type){case 7:return t.visitTrigger(i,e);case 0:return t.visitState(i,e);case 1:return t.visitTransition(i,e);case 2:return t.visitSequence(i,e);case 3:return t.visitGroup(i,e);case 4:return t.visitAnimate(i,e);case 5:return t.visitKeyframes(i,e);case 6:return t.visitStyle(i,e);case 8:return t.visitReference(i,e);case 9:return t.visitAnimateChild(i,e);case 10:return t.visitAnimateRef(i,e);case 11:return t.visitQuery(i,e);case 12:return t.visitStagger(i,e);default:throw function xie(t){return new ee(3004,!1)}()}}function WN(t,i){return window.getComputedStyle(t)[i]}const ug="*";function foe(t,i){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(n=>function _oe(t,i,e){if(":"==t[0]){const u=function goe(t,i){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,n)=>parseFloat(n)>parseFloat(e);case":decrement":return(e,n)=>parseFloat(n)<parseFloat(e);default:return i.push(function Uie(t){return new ee(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof u)return void i.push(u);t=u}const n=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return e.push(function Hie(t){return new ee(3015,!1)}()),i;const o=n[1],s=n[2],a=n[3];i.push(qN(o,a));"<"==s[0]&&!(o==ug&&a==ug)&&i.push(qN(a,o))}(n,e,i)):e.push(t),e}const hg=new Set(["true","1"]),pg=new Set(["false","0"]);function qN(t,i){const e=hg.has(t)||pg.has(t),n=hg.has(i)||pg.has(i);return(o,s)=>{let a=t==ug||t==o,r=i==ug||i==s;return!a&&e&&"boolean"==typeof o&&(a=o?hg.has(t):pg.has(t)),!r&&n&&"boolean"==typeof s&&(r=s?hg.has(i):pg.has(i)),a&&r}}const boe=new RegExp("s*:selfs*,?","g");function K0(t,i,e,n){return new voe(t).build(i,e,n)}class voe{constructor(i){this._driver=i}build(i,e,n){const o=new woe(e);return this._resetContextStyleTimingState(o),jo(this,hp(i),o)}_resetContextStyleTimingState(i){i.currentQuerySelector="",i.collectedStyles=new Map,i.collectedStyles.set("",new Map),i.currentTime=0}visitTrigger(i,e){let n=e.queryCount=0,o=e.depCount=0;const s=[],a=[];return"@"==i.name.charAt(0)&&e.errors.push(function Iie(){return new ee(3006,!1)}()),i.definitions.forEach(r=>{if(this._resetContextStyleTimingState(e),0==r.type){const u=r,m=u.name;m.toString().split(/\s*,\s*/).forEach(g=>{u.name=g,s.push(this.visitState(u,e))}),u.name=m}else if(1==r.type){const u=this.visitTransition(r,e);n+=u.queryCount,o+=u.depCount,a.push(u)}else e.errors.push(function Oie(){return new ee(3007,!1)}())}),{type:7,name:i.name,states:s,transitions:a,queryCount:n,depCount:o,options:null}}visitState(i,e){const n=this.visitStyle(i.styles,e),o=i.options&&i.options.params||null;if(n.containsDynamicStyles){const s=new Set,a=o||{};n.styles.forEach(r=>{r instanceof Map&&r.forEach(u=>{zN(u).forEach(m=>{a.hasOwnProperty(m)||s.add(m)})})}),s.size&&(dg(s.values()),e.errors.push(function Rie(t,i){return new ee(3008,!1)}()))}return{type:0,name:i.name,style:n,options:o?{params:o}:null}}visitTransition(i,e){e.queryCount=0,e.depCount=0;const n=jo(this,hp(i.animation),e);return{type:1,matchers:foe(i.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Gl(i.options)}}visitSequence(i,e){return{type:2,steps:i.steps.map(n=>jo(this,n,e)),options:Gl(i.options)}}visitGroup(i,e){const n=e.currentTime;let o=0;const s=i.steps.map(a=>{e.currentTime=n;const r=jo(this,a,e);return o=Math.max(o,e.currentTime),r});return e.currentTime=o,{type:3,steps:s,options:Gl(i.options)}}visitAnimate(i,e){const n=function Toe(t,i){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return X0(cg(t,i).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=X0(0,0,"");return s.dynamic=!0,s.strValue=e,s}const o=cg(e,i);return X0(o.duration,o.delay,o.easing)}(i.timings,e.errors);e.currentAnimateTimings=n;let o,s=i.styles?i.styles:xe({});if(5==s.type)o=this.visitKeyframes(s,e);else{let a=i.styles,r=!1;if(!a){r=!0;const m={};n.easing&&(m.easing=n.easing),a=xe(m)}e.currentTime+=n.duration+n.delay;const u=this.visitStyle(a,e);u.isEmptyStep=r,o=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:o,options:null}}visitStyle(i,e){const n=this._makeStyleAst(i,e);return this._validateStyleAst(n,e),n}_makeStyleAst(i,e){const n=[],o=Array.isArray(i.styles)?i.styles:[i.styles];for(let r of o)"string"==typeof r?r===Pa?n.push(r):e.errors.push(new ee(3002,!1)):n.push(jN(r));let s=!1,a=null;return n.forEach(r=>{if(r instanceof Map&&(r.has("easing")&&(a=r.get("easing"),r.delete("easing")),!s))for(let u of r.values())if(u.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:n,easing:a,offset:i.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(i,e){const n=e.currentAnimateTimings;let o=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),i.styles.forEach(a=>{"string"!=typeof a&&a.forEach((r,u)=>{const m=e.collectedStyles.get(e.currentQuerySelector),g=m.get(u);let y=!0;g&&(s!=o&&s>=g.startTime&&o<=g.endTime&&(e.errors.push(function Aie(t,i,e,n,o){return new ee(3010,!1)}()),y=!1),s=g.startTime),y&&m.set(u,{startTime:s,endTime:o}),e.options&&function uoe(t,i,e){const n=i.params||{},o=zN(t);o.length&&o.forEach(s=>{n.hasOwnProperty(s)||e.push(function Die(t){return new ee(3001,!1)}())})}(r,e.options,e.errors)})})}visitKeyframes(i,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function Pie(){return new ee(3011,!1)}()),n;let s=0;const a=[];let r=!1,u=!1,m=0;const g=i.steps.map(q=>{const j=this._makeStyleAst(q,e);let ie=null!=j.offset?j.offset:function Soe(t){if("string"==typeof t)return null;let i=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const n=e;i=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;i=parseFloat(e.get("offset")),e.delete("offset")}return i}(j.styles),se=0;return null!=ie&&(s++,se=j.offset=ie),u=u||se<0||se>1,r=r||se<m,m=se,a.push(se),j});u&&e.errors.push(function Nie(){return new ee(3012,!1)}()),r&&e.errors.push(function Fie(){return new ee(3200,!1)}());const y=i.steps.length;let S=0;s>0&&s<y?e.errors.push(function Lie(){return new ee(3202,!1)}()):0==s&&(S=1/(y-1));const x=y-1,R=e.currentTime,k=e.currentAnimateTimings,V=k.duration;return g.forEach((q,j)=>{const ie=S>0?j==x?1:S*j:a[j],se=ie*V;e.currentTime=R+k.delay+se,k.duration=se,this._validateStyleAst(q,e),q.offset=ie,n.styles.push(q)}),n}visitReference(i,e){return{type:8,animation:jo(this,hp(i.animation),e),options:Gl(i.options)}}visitAnimateChild(i,e){return e.depCount++,{type:9,options:Gl(i.options)}}visitAnimateRef(i,e){return{type:10,animation:this.visitReference(i.animation,e),options:Gl(i.options)}}visitQuery(i,e){const n=e.currentQuerySelector,o=i.options||{};e.queryCount++,e.currentQuery=i;const[s,a]=function yoe(t){const i=!!t.split(/\s*,\s*/).find(e=>":self"==e);return i&&(t=t.replace(boe,"")),t=t.replace(/@\*/g,lg).replace(/@\w+/g,e=>lg+"-"+e.slice(1)).replace(/:animating/g,q0),[t,i]}(i.selector);e.currentQuerySelector=n.length?n+" "+s:s,$o(e.collectedStyles,e.currentQuerySelector,new Map);const r=jo(this,hp(i.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:a,animation:r,originalSelector:i.selector,options:Gl(i.options)}}visitStagger(i,e){e.currentQuery||e.errors.push(function Bie(){return new ee(3013,!1)}());const n="full"===i.timings?{duration:0,delay:0,easing:"full"}:cg(i.timings,e.errors,!0);return{type:12,animation:jo(this,hp(i.animation),e),timings:n,options:null}}}class woe{constructor(i){this.errors=i,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 Gl(t){return t?(t=up(t)).params&&(t.params=function Coe(t){return t?up(t):null}(t.params)):t={},t}function X0(t,i,e){return{duration:t,delay:i,easing:e}}function J0(t,i,e,n,o,s,a=null,r=!1){return{type:1,element:t,keyframes:i,preStyleProps:e,postStyleProps:n,duration:o,delay:s,totalTime:o+s,easing:a,subTimeline:r}}class mg{constructor(){this._map=new Map}get(i){return this._map.get(i)||[]}append(i,e){let n=this._map.get(i);n||this._map.set(i,n=[]),n.push(...e)}has(i){return this._map.has(i)}clear(){this._map.clear()}}const xoe=new RegExp(":enter","g"),Ioe=new RegExp(":leave","g");function ew(t,i,e,n,o,s=new Map,a=new Map,r,u,m=[]){return(new Ooe).buildKeyframes(t,i,e,n,o,s,a,r,u,m)}class Ooe{buildKeyframes(i,e,n,o,s,a,r,u,m,g=[]){m=m||new mg;const y=new tw(i,e,m,o,s,g,[]);y.options=u;const S=u.delay?Ga(u.delay):0;y.currentTimeline.delayNextStep(S),y.currentTimeline.setStyles([a],null,y.errors,u),jo(this,n,y);const x=y.timelines.filter(R=>R.containsAnimation());if(x.length&&r.size){let R;for(let k=x.length-1;k>=0;k--){const V=x[k];if(V.element===e){R=V;break}}R&&!R.allowOnlyTimelineStyles()&&R.setStyles([r],null,y.errors,u)}return x.length?x.map(R=>R.buildKeyframes()):[J0(e,[],[],[],0,S,"",!1)]}visitTrigger(i,e){}visitState(i,e){}visitTransition(i,e){}visitAnimateChild(i,e){const n=e.subInstructions.get(e.element);if(n){const o=e.createSubContext(i.options),s=e.currentTimeline.currentTime,a=this._visitSubInstructions(n,o,o.options);s!=a&&e.transformIntoNewTimeline(a)}e.previousNode=i}visitAnimateRef(i,e){const n=e.createSubContext(i.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([i.options,i.animation.options],e,n),this.visitReference(i.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=i}_applyAnimationRefDelays(i,e,n){for(const o of i){const s=o?.delay;if(s){const a="number"==typeof s?s:Ga(pp(s,o?.params??{},e.errors));n.delayNextStep(a)}}}_visitSubInstructions(i,e,n){let s=e.currentTimeline.currentTime;const a=null!=n.duration?Ga(n.duration):null,r=null!=n.delay?Ga(n.delay):null;return 0!==a&&i.forEach(u=>{const m=e.appendInstructionToTimeline(u,a,r);s=Math.max(s,m.duration+m.delay)}),s}visitReference(i,e){e.updateOptions(i.options,!0),jo(this,i.animation,e),e.previousNode=i}visitSequence(i,e){const n=e.subContextCount;let o=e;const s=i.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=fg);const a=Ga(s.delay);o.delayNextStep(a)}i.steps.length&&(i.steps.forEach(a=>jo(this,a,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>n&&o.transformIntoNewTimeline()),e.previousNode=i}visitGroup(i,e){const n=[];let o=e.currentTimeline.currentTime;const s=i.options&&i.options.delay?Ga(i.options.delay):0;i.steps.forEach(a=>{const r=e.createSubContext(i.options);s&&r.delayNextStep(s),jo(this,a,r),o=Math.max(o,r.currentTimeline.currentTime),n.push(r.currentTimeline)}),n.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(o),e.previousNode=i}_visitTiming(i,e){if(i.dynamic){const n=i.strValue;return cg(e.params?pp(n,e.params,e.errors):n,e.errors)}return{duration:i.duration,delay:i.delay,easing:i.easing}}visitAnimate(i,e){const n=e.currentAnimateTimings=this._visitTiming(i.timings,e),o=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),o.snapshotCurrentStyles());const s=i.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=i}visitStyle(i,e){const n=e.currentTimeline,o=e.currentAnimateTimings;!o&&n.hasCurrentStyleProperties()&&n.forwardFrame();const s=o&&o.easing||i.easing;i.isEmptyStep?n.applyEmptyStep(s):n.setStyles(i.styles,s,e.errors,e.options),e.previousNode=i}visitKeyframes(i,e){const n=e.currentAnimateTimings,o=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,i.styles.forEach(u=>{r.forwardTime((u.offset||0)*s),r.setStyles(u.styles,u.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(o+s),e.previousNode=i}visitQuery(i,e){const n=e.currentTimeline.currentTime,o=i.options||{},s=o.delay?Ga(o.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=fg);let a=n;const r=e.invokeQuery(i.selector,i.originalSelector,i.limit,i.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=r.length;let u=null;r.forEach((m,g)=>{e.currentQueryIndex=g;const y=e.createSubContext(i.options,m);s&&y.delayNextStep(s),m===e.element&&(u=y.currentTimeline),jo(this,i.animation,y),y.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,y.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=i}visitStagger(i,e){const n=e.parentContext,o=e.currentTimeline,s=i.timings,a=Math.abs(s.duration),r=a*(e.currentQueryTotal-1);let u=a*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":u=r-u;break;case"full":u=n.currentStaggerTime}const g=e.currentTimeline;u&&g.delayNextStep(u);const y=g.currentTime;jo(this,i.animation,e),e.previousNode=i,n.currentStaggerTime=o.currentTime-y+(o.startTime-n.currentTimeline.startTime)}}const fg={};class tw{constructor(i,e,n,o,s,a,r,u){this._driver=i,this.element=e,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=s,this.errors=a,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=fg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new _g(this._driver,e,0),r.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(i,e){if(!i)return;const n=i;let o=this.options;null!=n.duration&&(o.duration=Ga(n.duration)),null!=n.delay&&(o.delay=Ga(n.delay));const s=n.params;if(s){let a=o.params;a||(a=this.options.params={}),Object.keys(s).forEach(r=>{(!e||!a.hasOwnProperty(r))&&(a[r]=pp(s[r],a,this.errors))})}}_copyOptions(){const i={};if(this.options){const e=this.options.params;if(e){const n=i.params={};Object.keys(e).forEach(o=>{n[o]=e[o]})}}return i}createSubContext(i=null,e,n){const o=e||this.element,s=new tw(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(i),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(i){return this.previousNode=fg,this.currentTimeline=this.currentTimeline.fork(this.element,i),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(i,e,n){const o={duration:e??i.duration,delay:this.currentTimeline.currentTime+(n??0)+i.delay,easing:""},s=new Roe(this._driver,i.element,i.keyframes,i.preStyleProps,i.postStyleProps,o,i.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(i){this.currentTimeline.forwardTime(this.currentTimeline.duration+i)}delayNextStep(i){i>0&&this.currentTimeline.delayNextStep(i)}invokeQuery(i,e,n,o,s,a){let r=[];if(o&&r.push(this.element),i.length>0){i=(i=i.replace(xoe,"."+this._enterClassName)).replace(Ioe,"."+this._leaveClassName);let m=this._driver.query(this.element,i,1!=n);0!==n&&(m=n<0?m.slice(m.length+n,m.length):m.slice(0,n)),r.push(...m)}return!s&&0==r.length&&a.push(function Vie(t){return new ee(3014,!1)}()),r}}class _g{constructor(i,e,n,o){this._driver=i,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=o,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(i){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+i),e&&this.snapshotCurrentStyles()):this.startTime+=i}fork(i,e){return this.applyStylesToKeyframe(),new _g(this._driver,i,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(i){this.applyStylesToKeyframe(),this.duration=i,this._loadKeyframe()}_updateStyle(i,e){this._localTimelineStyles.set(i,e),this._globalTimelineStyles.set(i,e),this._styleSummary.set(i,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(i){i&&this._previousKeyframe.set("easing",i);for(let[e,n]of this._globalTimelineStyles)this._backFill.set(e,n||Pa),this._currentKeyframe.set(e,Pa);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(i,e,n,o){e&&this._previousKeyframe.set("easing",e);const s=o&&o.params||{},a=function koe(t,i){const e=new Map;let n;return t.forEach(o=>{if("*"===o){n=n||i.keys();for(let s of n)e.set(s,Pa)}else Fr(o,e)}),e}(i,this._globalTimelineStyles);for(let[r,u]of a){const m=pp(u,s,n);this._pendingStyles.set(r,m),this._localTimelineStyles.has(r)||this._backFill.set(r,this._globalTimelineStyles.get(r)??Pa),this._updateStyle(r,m)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((i,e)=>{this._currentKeyframe.set(e,i)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((i,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,i)}))}snapshotCurrentStyles(){for(let[i,e]of this._localTimelineStyles)this._pendingStyles.set(i,e),this._updateStyle(i,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const i=[];for(let e in this._currentKeyframe)i.push(e);return i}mergeTimelineCollectedStyles(i){i._styleSummary.forEach((e,n)=>{const o=this._styleSummary.get(n);(!o||e.time>o.time)&&this._updateStyle(n,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const i=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let o=[];this._keyframes.forEach((r,u)=>{const m=Fr(r,new Map,this._backFill);m.forEach((g,y)=>{"!"===g?i.add(y):g===Pa&&e.add(y)}),n||m.set("offset",u/this.duration),o.push(m)});const s=i.size?dg(i.values()):[],a=e.size?dg(e.values()):[];if(n){const r=o[0],u=new Map(r);r.set("offset",0),u.set("offset",1),o=[r,u]}return J0(this.element,o,s,a,this.duration,this.startTime,this.easing,!1)}}class Roe extends _g{constructor(i,e,n,o,s,a,r=!1){super(i,e,a.delay),this.keyframes=n,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=r,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let i=this.keyframes,{delay:e,duration:n,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],a=n+e,r=e/a,u=Fr(i[0]);u.set("offset",0),s.push(u);const m=Fr(i[0]);m.set("offset",ZN(r)),s.push(m);const g=i.length-1;for(let y=1;y<=g;y++){let S=Fr(i[y]);const x=S.get("offset");S.set("offset",ZN((e+x*n)/a)),s.push(S)}n=a,e=0,o="",i=s}return J0(this.element,i,this.preStyleProps,this.postStyleProps,n,e,o,!0)}}function ZN(t,i=3){const e=Math.pow(10,i-1);return Math.round(t*e)/e}class nw{}const Aoe=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 Poe extends nw{normalizePropertyName(i,e){return Z0(i)}normalizeStyleValue(i,e,n,o){let s="";const a=n.toString().trim();if(Aoe.has(e)&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const r=n.match(/^[+-]?[\d\.]+([a-z]*)$/);r&&0==r[1].length&&o.push(function Eie(t,i){return new ee(3005,!1)}())}return a+s}}function KN(t,i,e,n,o,s,a,r,u,m,g,y,S){return{type:0,element:t,triggerName:i,isRemovalTransition:o,fromState:e,fromStyles:s,toState:n,toStyles:a,timelines:r,queriedElements:u,preStyleProps:m,postStyleProps:g,totalTime:y,errors:S}}const iw={};class XN{constructor(i,e,n){this._triggerName=i,this.ast=e,this._stateStyles=n}match(i,e,n,o){return function Noe(t,i,e,n,o){return t.some(s=>s(i,e,n,o))}(this.ast.matchers,i,e,n,o)}buildStyles(i,e,n){let o=this._stateStyles.get("*");return void 0!==i&&(o=this._stateStyles.get(i?.toString())||o),o?o.buildStyles(e,n):new Map}build(i,e,n,o,s,a,r,u,m,g){const y=[],S=this.ast.options&&this.ast.options.params||iw,R=this.buildStyles(n,r&&r.params||iw,y),k=u&&u.params||iw,V=this.buildStyles(o,k,y),q=new Set,j=new Map,ie=new Map,se="void"===o,De={params:Foe(k,S),delay:this.ast.options?.delay},Ge=g?[]:ew(i,e,this.ast.animation,s,a,R,V,De,m,y);let nt=0;if(Ge.forEach(bn=>{nt=Math.max(bn.duration+bn.delay,nt)}),y.length)return KN(e,this._triggerName,n,o,se,R,V,[],[],j,ie,nt,y);Ge.forEach(bn=>{const Dn=bn.element,bi=$o(j,Dn,new Set);bn.preStyleProps.forEach(ti=>bi.add(ti));const qi=$o(ie,Dn,new Set);bn.postStyleProps.forEach(ti=>qi.add(ti)),Dn!==e&&q.add(Dn)});const ft=dg(q.values());return KN(e,this._triggerName,n,o,se,R,V,Ge,ft,j,ie,nt)}}function Foe(t,i){const e=up(i);for(const n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e[n]=t[n]);return e}class Loe{constructor(i,e,n){this.styles=i,this.defaultParams=e,this.normalizer=n}buildStyles(i,e){const n=new Map,o=up(this.defaultParams);return Object.keys(i).forEach(s=>{const a=i[s];null!==a&&(o[s]=a)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,r)=>{a&&(a=pp(a,o,e));const u=this.normalizer.normalizePropertyName(r,e);a=this.normalizer.normalizeStyleValue(r,u,a,e),n.set(r,a)})}),n}}class Voe{constructor(i,e,n){this.name=i,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{this.states.set(o.name,new Loe(o.style,o.options&&o.options.params||{},n))}),JN(this.states,"true","1"),JN(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new XN(i,o,this.states))}),this.fallbackTransition=function Hoe(t,i,e){return new XN(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(a,r)=>!0],options:null,queryCount:0,depCount:0},i)}(i,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(i,e,n,o){return this.transitionFactories.find(a=>a.match(i,e,n,o))||null}matchStyles(i,e,n){return this.fallbackTransition.buildStyles(i,e,n)}}function JN(t,i,e){t.has(i)?t.has(e)||t.set(e,t.get(i)):t.has(e)&&t.set(i,t.get(e))}const Uoe=new mg;class $oe{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(i,e){const n=[],s=K0(this._driver,e,n,[]);if(n.length)throw function Wie(t){return new ee(3503,!1)}();this._animations.set(i,s)}_buildPlayer(i,e,n){const o=i.element,s=NN(this._normalizer,i.keyframes,e,n);return this._driver.animate(o,s,i.duration,i.delay,i.easing,[],!0)}create(i,e,n={}){const o=[],s=this._animations.get(i);let a;const r=new Map;if(s?(a=ew(this._driver,e,s,W0,ag,new Map,new Map,n,Uoe,o),a.forEach(g=>{const y=$o(r,g.element,new Map);g.postStyleProps.forEach(S=>y.set(S,null))})):(o.push(function qie(){return new ee(3300,!1)}()),a=[]),o.length)throw function Yie(t){return new ee(3504,!1)}();r.forEach((g,y)=>{g.forEach((S,x)=>{g.set(x,this._driver.computeStyle(y,x,Pa))})});const m=Nr(a.map(g=>{const y=r.get(g.element);return this._buildPlayer(g,new Map,y)}));return this._playersById.set(i,m),m.onDestroy(()=>this.destroy(i)),this.players.push(m),m}destroy(i){const e=this._getPlayer(i);e.destroy(),this._playersById.delete(i);const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(i){const e=this._playersById.get(i);if(!e)throw function Qie(t){return new ee(3301,!1)}();return e}listen(i,e,n,o){const s=j0(e,"","","");return U0(this._getPlayer(i),n,s,o),()=>{}}command(i,e,n,o){if("register"==n)return void this.register(i,o[0]);if("create"==n)return void this.create(i,e,o[0]||{});const s=this._getPlayer(i);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(i)}}}const e3="ng-animate-queued",ow="ng-animate-disabled",qoe=[],t3={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Yoe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Rs="__ng_removed";class sw{get params(){return this.options.params}constructor(i,e=""){this.namespaceId=e;const n=i&&i.hasOwnProperty("value");if(this.value=function Xoe(t){return t??null}(n?i.value:i),n){const s=up(i);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(i){const e=i.params;if(e){const n=this.options.params;Object.keys(e).forEach(o=>{null==n[o]&&(n[o]=e[o])})}}}const mp="void",aw=new sw(mp);class Qoe{constructor(i,e,n){this.id=i,this.hostElement=e,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+i,hs(e,this._hostClassName)}listen(i,e,n,o){if(!this._triggers.has(e))throw function Zie(t,i){return new ee(3302,!1)}();if(null==n||0==n.length)throw function Kie(t){return new ee(3303,!1)}();if(!function Joe(t){return"start"==t||"done"==t}(n))throw function Xie(t,i){return new ee(3400,!1)}();const s=$o(this._elementListeners,i,[]),a={name:e,phase:n,callback:o};s.push(a);const r=$o(this._engine.statesByElement,i,new Map);return r.has(e)||(hs(i,rg),hs(i,rg+"-"+e),r.set(e,aw)),()=>{this._engine.afterFlush(()=>{const u=s.indexOf(a);u>=0&&s.splice(u,1),this._triggers.has(e)||r.delete(e)})}}register(i,e){return!this._triggers.has(i)&&(this._triggers.set(i,e),!0)}_getTrigger(i){const e=this._triggers.get(i);if(!e)throw function Jie(t){return new ee(3401,!1)}();return e}trigger(i,e,n,o=!0){const s=this._getTrigger(e),a=new rw(this.id,e,i);let r=this._engine.statesByElement.get(i);r||(hs(i,rg),hs(i,rg+"-"+e),this._engine.statesByElement.set(i,r=new Map));let u=r.get(e);const m=new sw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&m.absorbOptions(u.options),r.set(e,m),u||(u=aw),m.value!==mp&&u.value===m.value){if(!function nse(t,i){const e=Object.keys(t),n=Object.keys(i);if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++){const s=e[o];if(!i.hasOwnProperty(s)||t[s]!==i[s])return!1}return!0}(u.params,m.params)){const k=[],V=s.matchStyles(u.value,u.params,k),q=s.matchStyles(m.value,m.params,k);k.length?this._engine.reportError(k):this._engine.afterFlush(()=>{jl(i,V),la(i,q)})}return}const S=$o(this._engine.playersByElement,i,[]);S.forEach(k=>{k.namespaceId==this.id&&k.triggerName==e&&k.queued&&k.destroy()});let x=s.matchTransition(u.value,m.value,i,m.params),R=!1;if(!x){if(!o)return;x=s.fallbackTransition,R=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:e,transition:x,fromState:u,toState:m,player:a,isFallbackTransition:R}),R||(hs(i,e3),a.onStart(()=>{Od(i,e3)})),a.onDone(()=>{let k=this.players.indexOf(a);k>=0&&this.players.splice(k,1);const V=this._engine.playersByElement.get(i);if(V){let q=V.indexOf(a);q>=0&&V.splice(q,1)}}),this.players.push(a),S.push(a),a}deregister(i){this._triggers.delete(i),this._engine.statesByElement.forEach(e=>e.delete(i)),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(o=>o.name!=i))})}clearElementCache(i){this._engine.statesByElement.delete(i),this._elementListeners.delete(i);const e=this._engine.playersByElement.get(i);e&&(e.forEach(n=>n.destroy()),this._engine.playersByElement.delete(i))}_signalRemovalForInnerTriggers(i,e){const n=this._engine.driver.query(i,lg,!0);n.forEach(o=>{if(o[Rs])return;const s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(a=>a.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(i,e,n,o){const s=this._engine.statesByElement.get(i),a=new Map;if(s){const r=[];if(s.forEach((u,m)=>{if(a.set(m,u.value),this._triggers.has(m)){const g=this.trigger(i,m,mp,o);g&&r.push(g)}}),r.length)return this._engine.markElementAsRemoved(this.id,i,!0,e,a),n&&Nr(r).onDone(()=>this._engine.processLeaveNode(i)),!0}return!1}prepareLeaveAnimationListeners(i){const e=this._elementListeners.get(i),n=this._engine.statesByElement.get(i);if(e&&n){const o=new Set;e.forEach(s=>{const a=s.name;if(o.has(a))return;o.add(a);const u=this._triggers.get(a).fallbackTransition,m=n.get(a)||aw,g=new sw(mp),y=new rw(this.id,a,i);this._engine.totalQueuedPlayers++,this._queue.push({element:i,triggerName:a,transition:u,fromState:m,toState:g,player:y,isFallbackTransition:!0})})}}removeNode(i,e){const n=this._engine;if(i.childElementCount&&this._signalRemovalForInnerTriggers(i,e),this.triggerLeaveAnimation(i,e,!0))return;let o=!1;if(n.totalAnimations){const s=n.players.length?n.playersByQueriedElement.get(i):[];if(s&&s.length)o=!0;else{let a=i;for(;a=a.parentNode;)if(n.statesByElement.get(a)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(i),o)n.markElementAsRemoved(this.id,i,!1,e);else{const s=i[Rs];(!s||s===t3)&&(n.afterFlush(()=>this.clearElementCache(i)),n.destroyInnerAnimations(i),n._onRemovalComplete(i,e))}}insertNode(i,e){hs(i,this._hostClassName)}drainQueuedTransitions(i){const e=[];return this._queue.forEach(n=>{const o=n.player;if(o.destroyed)return;const s=n.element,a=this._elementListeners.get(s);a&&a.forEach(r=>{if(r.name==n.triggerName){const u=j0(s,n.triggerName,n.fromState.value,n.toState.value);u._data=i,U0(n.player,r.phase,u,r.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(n)}),this._queue=[],e.sort((n,o)=>{const s=n.transition.ast.depCount,a=o.transition.ast.depCount;return 0==s||0==a?s-a:this._engine.driver.containsElement(n.element,o.element)?1:-1})}destroy(i){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,i)}}class Zoe{_onRemovalComplete(i,e){this.onRemovalComplete(i,e)}constructor(i,e,n){this.bodyNode=i,this.driver=e,this._normalizer=n,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 i=[];return this._namespaceList.forEach(e=>{e.players.forEach(n=>{n.queued&&i.push(n)})}),i}createNamespace(i,e){const n=new Qoe(i,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[i]=n}_balanceNamespaceList(i,e){const n=this._namespaceList,o=this.namespacesByHostElement;if(n.length-1>=0){let a=!1,r=this.driver.getParentElement(e);for(;r;){const u=o.get(r);if(u){const m=n.indexOf(u);n.splice(m+1,0,i),a=!0;break}r=this.driver.getParentElement(r)}a||n.unshift(i)}else n.push(i);return o.set(e,i),i}register(i,e){let n=this._namespaceLookup[i];return n||(n=this.createNamespace(i,e)),n}registerTrigger(i,e,n){let o=this._namespaceLookup[i];o&&o.register(e,n)&&this.totalAnimations++}destroy(i,e){i&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const n=this._fetchNamespace(i);this.namespacesByHostElement.delete(n.hostElement);const o=this._namespaceList.indexOf(n);o>=0&&this._namespaceList.splice(o,1),n.destroy(e),delete this._namespaceLookup[i]}))}_fetchNamespace(i){return this._namespaceLookup[i]}fetchNamespacesByElement(i){const e=new Set,n=this.statesByElement.get(i);if(n)for(let o of n.values())if(o.namespaceId){const s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}return e}trigger(i,e,n,o){if(gg(e)){const s=this._fetchNamespace(i);if(s)return s.trigger(e,n,o),!0}return!1}insertNode(i,e,n,o){if(!gg(e))return;const s=e[Rs];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(i){const a=this._fetchNamespace(i);a&&a.insertNode(e,n)}o&&this.collectEnterElement(e)}collectEnterElement(i){this.collectedEnterElements.push(i)}markElementAsDisabled(i,e){e?this.disabledNodes.has(i)||(this.disabledNodes.add(i),hs(i,ow)):this.disabledNodes.has(i)&&(this.disabledNodes.delete(i),Od(i,ow))}removeNode(i,e,n){if(gg(e)){const o=i?this._fetchNamespace(i):null;o?o.removeNode(e,n):this.markElementAsRemoved(i,e,!1,n);const s=this.namespacesByHostElement.get(e);s&&s.id!==i&&s.removeNode(e,n)}else this._onRemovalComplete(e,n)}markElementAsRemoved(i,e,n,o,s){this.collectedLeaveElements.push(e),e[Rs]={namespaceId:i,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(i,e,n,o,s){return gg(e)?this._fetchNamespace(i).listen(e,n,o,s):()=>{}}_buildInstruction(i,e,n,o,s){return i.transition.build(this.driver,i.element,i.fromState.value,i.toState.value,n,o,i.fromState.options,i.toState.options,e,s)}destroyInnerAnimations(i){let e=this.driver.query(i,lg,!0);e.forEach(n=>this.destroyActiveAnimationsForElement(n)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(i,q0,!0),e.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(i){const e=this.playersByElement.get(i);e&&e.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(i){const e=this.playersByQueriedElement.get(i);e&&e.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(i=>{if(this.players.length)return Nr(this.players).onDone(()=>i());i()})}processLeaveNode(i){const e=i[Rs];if(e&&e.setForRemoval){if(i[Rs]=t3,e.namespaceId){this.destroyInnerAnimations(i);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(i)}this._onRemovalComplete(i,e.setForRemoval)}i.classList?.contains(ow)&&this.markElementAsDisabled(i,!1),this.driver.query(i,".ng-animate-disabled",!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(i=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,o)=>this._balanceNamespaceList(n,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)hs(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,i)}finally{for(let o=0;o<n.length;o++)n[o]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(n=>n()),this._flushFns=[],this._whenQuietFns.length){const n=this._whenQuietFns;this._whenQuietFns=[],e.length?Nr(e).onDone(()=>{n.forEach(o=>o())}):n.forEach(o=>o())}}reportError(i){throw function eoe(t){return new ee(3402,!1)}()}_flushAnimations(i,e){const n=new mg,o=[],s=new Map,a=[],r=new Map,u=new Map,m=new Map,g=new Set;this.disabledNodes.forEach(Ie=>{g.add(Ie);const Ve=this.driver.query(Ie,".ng-animate-queued",!0);for(let Ke=0;Ke<Ve.length;Ke++)g.add(Ve[Ke])});const y=this.bodyNode,S=Array.from(this.statesByElement.keys()),x=s3(S,this.collectedEnterElements),R=new Map;let k=0;x.forEach((Ie,Ve)=>{const Ke=W0+k++;R.set(Ve,Ke),Ie.forEach(St=>hs(St,Ke))});const V=[],q=new Set,j=new Set;for(let Ie=0;Ie<this.collectedLeaveElements.length;Ie++){const Ve=this.collectedLeaveElements[Ie],Ke=Ve[Rs];Ke&&Ke.setForRemoval&&(V.push(Ve),q.add(Ve),Ke.hasAnimation?this.driver.query(Ve,".ng-star-inserted",!0).forEach(St=>q.add(St)):j.add(Ve))}const ie=new Map,se=s3(S,Array.from(q));se.forEach((Ie,Ve)=>{const Ke=ag+k++;ie.set(Ve,Ke),Ie.forEach(St=>hs(St,Ke))}),i.push(()=>{x.forEach((Ie,Ve)=>{const Ke=R.get(Ve);Ie.forEach(St=>Od(St,Ke))}),se.forEach((Ie,Ve)=>{const Ke=ie.get(Ve);Ie.forEach(St=>Od(St,Ke))}),V.forEach(Ie=>{this.processLeaveNode(Ie)})});const De=[],Ge=[];for(let Ie=this._namespaceList.length-1;Ie>=0;Ie--)this._namespaceList[Ie].drainQueuedTransitions(e).forEach(Ke=>{const St=Ke.player,ni=Ke.element;if(De.push(St),this.collectedEnterElements.length){const vi=ni[Rs];if(vi&&vi.setForMove){if(vi.previousTriggersValues&&vi.previousTriggersValues.has(Ke.triggerName)){const fo=vi.previousTriggersValues.get(Ke.triggerName),no=this.statesByElement.get(Ke.element);if(no&&no.has(Ke.triggerName)){const Wd=no.get(Ke.triggerName);Wd.value=fo,no.set(Ke.triggerName,Wd)}}return void St.destroy()}}const Eo=!y||!this.driver.containsElement(y,ni),Ai=ie.get(ni),Wo=R.get(ni),In=this._buildInstruction(Ke,n,Wo,Ai,Eo);if(In.errors&&In.errors.length)return void Ge.push(In);if(Eo)return St.onStart(()=>jl(ni,In.fromStyles)),St.onDestroy(()=>la(ni,In.toStyles)),void o.push(St);if(Ke.isFallbackTransition)return St.onStart(()=>jl(ni,In.fromStyles)),St.onDestroy(()=>la(ni,In.toStyles)),void o.push(St);const Fs=[];In.timelines.forEach(vi=>{vi.stretchStartingKeyframe=!0,this.disabledNodes.has(vi.element)||Fs.push(vi)}),In.timelines=Fs,n.append(ni,In.timelines),a.push({instruction:In,player:St,element:ni}),In.queriedElements.forEach(vi=>$o(r,vi,[]).push(St)),In.preStyleProps.forEach((vi,fo)=>{if(vi.size){let no=u.get(fo);no||u.set(fo,no=new Set),vi.forEach((Wd,Xl)=>no.add(Xl))}}),In.postStyleProps.forEach((vi,fo)=>{let no=m.get(fo);no||m.set(fo,no=new Set),vi.forEach((Wd,Xl)=>no.add(Xl))})});if(Ge.length){const Ie=[];Ge.forEach(Ve=>{Ie.push(function toe(t,i){return new ee(3505,!1)}())}),De.forEach(Ve=>Ve.destroy()),this.reportError(Ie)}const nt=new Map,ft=new Map;a.forEach(Ie=>{const Ve=Ie.element;n.has(Ve)&&(ft.set(Ve,Ve),this._beforeAnimationBuild(Ie.player.namespaceId,Ie.instruction,nt))}),o.forEach(Ie=>{const Ve=Ie.element;this._getPreviousPlayers(Ve,!1,Ie.namespaceId,Ie.triggerName,null).forEach(St=>{$o(nt,Ve,[]).push(St),St.destroy()})});const bn=V.filter(Ie=>r3(Ie,u,m)),Dn=new Map;o3(Dn,this.driver,j,m,Pa).forEach(Ie=>{r3(Ie,u,m)&&bn.push(Ie)});const qi=new Map;x.forEach((Ie,Ve)=>{o3(qi,this.driver,new Set(Ie),u,"!")}),bn.forEach(Ie=>{const Ve=Dn.get(Ie),Ke=qi.get(Ie);Dn.set(Ie,new Map([...Ve?.entries()??[],...Ke?.entries()??[]]))});const ti=[],ha=[],pa={};a.forEach(Ie=>{const{element:Ve,player:Ke,instruction:St}=Ie;if(n.has(Ve)){if(g.has(Ve))return Ke.onDestroy(()=>la(Ve,St.toStyles)),Ke.disabled=!0,Ke.overrideTotalTime(St.totalTime),void o.push(Ke);let ni=pa;if(ft.size>1){let Ai=Ve;const Wo=[];for(;Ai=Ai.parentNode;){const In=ft.get(Ai);if(In){ni=In;break}Wo.push(Ai)}Wo.forEach(In=>ft.set(In,ni))}const Eo=this._buildAnimation(Ke.namespaceId,St,nt,s,qi,Dn);if(Ke.setRealPlayer(Eo),ni===pa)ti.push(Ke);else{const Ai=this.playersByElement.get(ni);Ai&&Ai.length&&(Ke.parentPlayer=Nr(Ai)),o.push(Ke)}}else jl(Ve,St.fromStyles),Ke.onDestroy(()=>la(Ve,St.toStyles)),ha.push(Ke),g.has(Ve)&&o.push(Ke)}),ha.forEach(Ie=>{const Ve=s.get(Ie.element);if(Ve&&Ve.length){const Ke=Nr(Ve);Ie.setRealPlayer(Ke)}}),o.forEach(Ie=>{Ie.parentPlayer?Ie.syncPlayerEvents(Ie.parentPlayer):Ie.destroy()});for(let Ie=0;Ie<V.length;Ie++){const Ve=V[Ie],Ke=Ve[Rs];if(Od(Ve,ag),Ke&&Ke.hasAnimation)continue;let St=[];if(r.size){let Eo=r.get(Ve);Eo&&Eo.length&&St.push(...Eo);let Ai=this.driver.query(Ve,q0,!0);for(let Wo=0;Wo<Ai.length;Wo++){let In=r.get(Ai[Wo]);In&&In.length&&St.push(...In)}}const ni=St.filter(Eo=>!Eo.destroyed);ni.length?ese(this,Ve,ni):this.processLeaveNode(Ve)}return V.length=0,ti.forEach(Ie=>{this.players.push(Ie),Ie.onDone(()=>{Ie.destroy();const Ve=this.players.indexOf(Ie);this.players.splice(Ve,1)}),Ie.play()}),ti}afterFlush(i){this._flushFns.push(i)}afterFlushAnimationsDone(i){this._whenQuietFns.push(i)}_getPreviousPlayers(i,e,n,o,s){let a=[];if(e){const r=this.playersByQueriedElement.get(i);r&&(a=r)}else{const r=this.playersByElement.get(i);if(r){const u=!s||s==mp;r.forEach(m=>{m.queued||!u&&m.triggerName!=o||a.push(m)})}}return(n||o)&&(a=a.filter(r=>!(n&&n!=r.namespaceId||o&&o!=r.triggerName))),a}_beforeAnimationBuild(i,e,n){const s=e.element,a=e.isRemovalTransition?void 0:i,r=e.isRemovalTransition?void 0:e.triggerName;for(const u of e.timelines){const m=u.element,g=m!==s,y=$o(n,m,[]);this._getPreviousPlayers(m,g,a,r,e.toState).forEach(x=>{const R=x.getRealPlayer();R.beforeDestroy&&R.beforeDestroy(),x.destroy(),y.push(x)})}jl(s,e.fromStyles)}_buildAnimation(i,e,n,o,s,a){const r=e.triggerName,u=e.element,m=[],g=new Set,y=new Set,S=e.timelines.map(R=>{const k=R.element;g.add(k);const V=k[Rs];if(V&&V.removedBeforeQueried)return new Mh(R.duration,R.delay);const q=k!==u,j=function tse(t){const i=[];return a3(t,i),i}((n.get(k)||qoe).map(nt=>nt.getRealPlayer())).filter(nt=>!!nt.element&&nt.element===k),ie=s.get(k),se=a.get(k),De=NN(this._normalizer,R.keyframes,ie,se),Ge=this._buildPlayer(R,De,j);if(R.subTimeline&&o&&y.add(k),q){const nt=new rw(i,r,k);nt.setRealPlayer(Ge),m.push(nt)}return Ge});m.forEach(R=>{$o(this.playersByQueriedElement,R.element,[]).push(R),R.onDone(()=>function Koe(t,i,e){let n=t.get(i);if(n){if(n.length){const o=n.indexOf(e);n.splice(o,1)}0==n.length&&t.delete(i)}return n}(this.playersByQueriedElement,R.element,R))}),g.forEach(R=>hs(R,$N));const x=Nr(S);return x.onDestroy(()=>{g.forEach(R=>Od(R,$N)),la(u,e.toStyles)}),y.forEach(R=>{$o(o,R,[]).push(x)}),x}_buildPlayer(i,e,n){return e.length>0?this.driver.animate(i.element,e,i.duration,i.delay,i.easing,n):new Mh(i.duration,i.delay)}}class rw{constructor(i,e,n){this.namespaceId=i,this.triggerName=e,this.element=n,this._player=new Mh,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(i){this._containsRealPlayer||(this._player=i,this._queuedCallbacks.forEach((e,n)=>{e.forEach(o=>U0(i,n,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(i.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(i){this.totalTime=i}syncPlayerEvents(i){const e=this._player;e.triggerCallback&&i.onStart(()=>e.triggerCallback("start")),i.onDone(()=>this.finish()),i.onDestroy(()=>this.destroy())}_queueEvent(i,e){$o(this._queuedCallbacks,i,[]).push(e)}onDone(i){this.queued&&this._queueEvent("done",i),this._player.onDone(i)}onStart(i){this.queued&&this._queueEvent("start",i),this._player.onStart(i)}onDestroy(i){this.queued&&this._queueEvent("destroy",i),this._player.onDestroy(i)}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(i){this.queued||this._player.setPosition(i)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(i){const e=this._player;e.triggerCallback&&e.triggerCallback(i)}}function gg(t){return t&&1===t.nodeType}function n3(t,i){const e=t.style.display;return t.style.display=i??"none",e}function o3(t,i,e,n,o){const s=[];e.forEach(u=>s.push(n3(u)));const a=[];n.forEach((u,m)=>{const g=new Map;u.forEach(y=>{const S=i.computeStyle(m,y,o);g.set(y,S),(!S||0==S.length)&&(m[Rs]=Yoe,a.push(m))}),t.set(m,g)});let r=0;return e.forEach(u=>n3(u,s[r++])),a}function s3(t,i){const e=new Map;if(t.forEach(r=>e.set(r,[])),0==i.length)return e;const o=new Set(i),s=new Map;function a(r){if(!r)return 1;let u=s.get(r);if(u)return u;const m=r.parentNode;return u=e.has(m)?m:o.has(m)?1:a(m),s.set(r,u),u}return i.forEach(r=>{const u=a(r);1!==u&&e.get(u).push(r)}),e}function hs(t,i){t.classList?.add(i)}function Od(t,i){t.classList?.remove(i)}function ese(t,i,e){Nr(e).onDone(()=>t.processLeaveNode(i))}function a3(t,i){for(let e=0;e<t.length;e++){const n=t[e];n instanceof bk?a3(n.players,i):i.push(n)}}function r3(t,i,e){const n=e.get(t);if(!n)return!1;let o=i.get(t);return o?n.forEach(s=>o.add(s)):i.set(t,n),e.delete(t),!0}class bg{constructor(i,e,n){this.bodyNode=i,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(o,s)=>{},this._transitionEngine=new Zoe(i,e,n),this._timelineEngine=new $oe(i,e,n),this._transitionEngine.onRemovalComplete=(o,s)=>this.onRemovalComplete(o,s)}registerTrigger(i,e,n,o,s){const a=i+"-"+o;let r=this._triggerCache[a];if(!r){const u=[],g=K0(this._driver,s,u,[]);if(u.length)throw function Gie(t,i){return new ee(3404,!1)}();r=function Boe(t,i,e){return new Voe(t,i,e)}(o,g,this._normalizer),this._triggerCache[a]=r}this._transitionEngine.registerTrigger(e,o,r)}register(i,e){this._transitionEngine.register(i,e)}destroy(i,e){this._transitionEngine.destroy(i,e)}onInsert(i,e,n,o){this._transitionEngine.insertNode(i,e,n,o)}onRemove(i,e,n){this._transitionEngine.removeNode(i,e,n)}disableAnimations(i,e){this._transitionEngine.markElementAsDisabled(i,e)}process(i,e,n,o){if("@"==n.charAt(0)){const[s,a]=FN(n);this._timelineEngine.command(s,e,a,o)}else this._transitionEngine.trigger(i,e,n,o)}listen(i,e,n,o,s){if("@"==n.charAt(0)){const[a,r]=FN(n);return this._timelineEngine.listen(a,e,r,s)}return this._transitionEngine.listen(i,e,n,o,s)}flush(i=-1){this._transitionEngine.flush(i)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(i){this._transitionEngine.afterFlushAnimationsDone(i)}}let ose=(()=>{class t{static#e=this.initialStylesByElement=new WeakMap;constructor(e,n,o){this._element=e,this._startStyles=n,this._endStyles=o,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&la(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(la(this._element,this._initialStyles),this._endStyles&&(la(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(jl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(jl(this._element,this._endStyles),this._endStyles=null),la(this._element,this._initialStyles),this._state=3)}}return t})();function lw(t){let i=null;return t.forEach((e,n)=>{(function sse(t){return"display"===t||"position"===t})(n)&&(i=i||new Map,i.set(n,e))}),i}class l3{constructor(i,e,n,o){this.element=i,this.keyframes=e,this.options=n,this._specialStyles=o,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const i=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,i,this.options),this._finalKeyframe=i.length?i[i.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(i){const e=[];return i.forEach(n=>{e.push(Object.fromEntries(n))}),e}_triggerWebAnimation(i,e,n){return i.animate(this._convertKeyframesToObject(e),n)}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(i=>i()),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(i=>i()),this._onDestroyFns=[])}setPosition(i){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=i*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const i=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,o)=>{"offset"!==o&&i.set(o,this._finished?n:WN(this.element,o))}),this.currentSnapshot=i}triggerCallback(i){const e="start"===i?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}}class ase{validateStyleProperty(i){return!0}validateAnimatableStyleProperty(i){return!0}matchesElement(i,e){return!1}containsElement(i,e){return BN(i,e)}getParentElement(i){return G0(i)}query(i,e,n){return VN(i,e,n)}computeStyle(i,e,n){return window.getComputedStyle(i)[e]}animate(i,e,n,o,s,a=[]){const u={duration:n,delay:o,fill:0==o?"both":"forwards"};s&&(u.easing=s);const m=new Map,g=a.filter(x=>x instanceof l3);(function poe(t,i){return 0===t||0===i})(n,o)&&g.forEach(x=>{x.currentSnapshot.forEach((R,k)=>m.set(k,R))});let y=function doe(t){return t.length?t[0]instanceof Map?t:t.map(i=>jN(i)):[]}(e).map(x=>Fr(x));y=function moe(t,i,e){if(e.size&&i.length){let n=i[0],o=[];if(e.forEach((s,a)=>{n.has(a)||o.push(a),n.set(a,s)}),o.length)for(let s=1;s<i.length;s++){let a=i[s];o.forEach(r=>a.set(r,WN(t,r)))}}return i}(i,y,m);const S=function ise(t,i){let e=null,n=null;return Array.isArray(i)&&i.length?(e=lw(i[0]),i.length>1&&(n=lw(i[i.length-1]))):i instanceof Map&&(e=lw(i)),e||n?new ose(t,e,n):null}(i,y);return new l3(i,y,u,S)}}let rse=(()=>{class t extends fk{constructor(e,n){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Yo.None,styles:[],data:{animation:[]}})}build(e){const n=this._nextAnimationId.toString();this._nextAnimationId++;const o=Array.isArray(e)?gk(e):e;return c3(this._renderer,null,n,"register",[o]),new lse(n,this._renderer)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Rc),H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class lse extends Aq{constructor(i,e){super(),this._id=i,this._renderer=e}create(i,e){return new cse(this._id,i,e||{},this._renderer)}}class cse{constructor(i,e,n,o){this.id=i,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(i,e){return this._renderer.listen(this.element,`@@${this.id}:${i}`,e)}_command(i,...e){return c3(this._renderer,this.element,this.id,i,e)}onDone(i){this._listen("done",i)}onStart(i){this._listen("start",i)}onDestroy(i){this._listen("destroy",i)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(i){this._command("setPosition",i)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function c3(t,i,e,n,o){return t.setProperty(i,`@@${e}:${n}`,o)}const d3="@.disabled";let dse=(()=>{class t{constructor(e,n,o){this.delegate=e,this.engine=n,this._zone=o,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,n.onRemovalComplete=(s,a)=>{const r=a?.parentNode(s);r&&a.removeChild(r,s)}}createRenderer(e,n){const s=this.delegate.createRenderer(e,n);if(!(e&&n&&n.data&&n.data.animation)){let g=this._rendererCache.get(s);return g||(g=new u3("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,g)),g}const a=n.id,r=n.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);const u=g=>{Array.isArray(g)?g.forEach(u):this.engine.registerTrigger(a,r,e,g.name,g)};return n.data.animation.forEach(u),new use(this,r,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,n,o){e>=0&&e<this._microtaskId?this._zone.run(()=>n(o)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[a,r]=s;a(r)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,o]))}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()}static#e=this.\u0275fac=function(n){return new(n||t)(H(Rc),H(bg),H(be))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();class u3{constructor(i,e,n,o){this.namespaceId=i,this.delegate=e,this.engine=n,this._onDestroy=o}get data(){return this.delegate.data}destroyNode(i){this.delegate.destroyNode?.(i)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(i,e){return this.delegate.createElement(i,e)}createComment(i){return this.delegate.createComment(i)}createText(i){return this.delegate.createText(i)}appendChild(i,e){this.delegate.appendChild(i,e),this.engine.onInsert(this.namespaceId,e,i,!1)}insertBefore(i,e,n,o=!0){this.delegate.insertBefore(i,e,n),this.engine.onInsert(this.namespaceId,e,i,o)}removeChild(i,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(i,e){return this.delegate.selectRootElement(i,e)}parentNode(i){return this.delegate.parentNode(i)}nextSibling(i){return this.delegate.nextSibling(i)}setAttribute(i,e,n,o){this.delegate.setAttribute(i,e,n,o)}removeAttribute(i,e,n){this.delegate.removeAttribute(i,e,n)}addClass(i,e){this.delegate.addClass(i,e)}removeClass(i,e){this.delegate.removeClass(i,e)}setStyle(i,e,n,o){this.delegate.setStyle(i,e,n,o)}removeStyle(i,e,n){this.delegate.removeStyle(i,e,n)}setProperty(i,e,n){"@"==e.charAt(0)&&e==d3?this.disableAnimations(i,!!n):this.delegate.setProperty(i,e,n)}setValue(i,e){this.delegate.setValue(i,e)}listen(i,e,n){return this.delegate.listen(i,e,n)}disableAnimations(i,e){this.engine.disableAnimations(i,e)}}class use extends u3{constructor(i,e,n,o,s){super(e,n,o,s),this.factory=i,this.namespaceId=e}setProperty(i,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&e==d3?this.disableAnimations(i,n=void 0===n||!!n):this.engine.process(this.namespaceId,i,e.slice(1),n):this.delegate.setProperty(i,e,n)}listen(i,e,n){if("@"==e.charAt(0)){const o=function hse(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(i);let s=e.slice(1),a="";return"@"!=s.charAt(0)&&([s,a]=function pse(t){const i=t.indexOf(".");return[t.substring(0,i),t.slice(i+1)]}(s)),this.engine.listen(this.namespaceId,o,s,a,r=>{this.factory.scheduleListenerCallback(r._data||-1,n,r)})}return this.delegate.listen(i,e,n)}}const h3=[{provide:fk,useClass:rse},{provide:nw,useFactory:function fse(){return new Poe}},{provide:bg,useClass:(()=>{class t extends bg{constructor(e,n,o,s){super(e.body,n,o)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue),H(z0),H(nw),H(vs))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})()},{provide:Rc,useFactory:function _se(t,i,e){return new dse(t,i,e)},deps:[sC,bg,be]}],gse=[{provide:z0,useFactory:()=>new ase},{provide:Fn,useValue:"BrowserAnimations"},...h3],bse=[{provide:z0,useClass:HN},{provide:Fn,useValue:"NoopAnimations"},...h3],Cse=["button"],wse=["*"],p3=new Y("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),m3=new Y("MatButtonToggleGroup"),Sse={provide:fi,useExisting:Je(()=>cw),multi:!0};let f3=0;class _3{constructor(i,e){this.source=i,this.value=e}}let cw=(()=>{class t{constructor(e,n){this._changeDetector=e,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+f3++,this.valueChange=new W,this.change=new W,this.appearance=n&&n.appearance?n.appearance:"standard"}get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}get vertical(){return this._vertical}set vertical(e){this._vertical=pe(e)}get value(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(n=>n.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}get selected(){const e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=pe(e),this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=pe(e),this._markButtonsForCheck()}ngOnInit(){this._selectionModel=new kl(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked))}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_emitChangeEvent(e){const n=new _3(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(e,n,o=!1,s=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(e):this._selectionModel.deselect(e):s=!0,s?Promise.resolve().then(()=>this._updateModelValue(e,o)):this._updateModelValue(e,o)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return!(typeof this._rawValue>"u")&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>null!=e.value&&n===e.value):e.value===this._rawValue)}_setSelectionByValue(e){this._rawValue=e,this._buttonToggles&&(this.multiple&&e?(Array.isArray(e),this._clearSelection(),e.forEach(n=>this._selectValue(n))):(this._clearSelection(),this._selectValue(e)))}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>e.checked=!1)}_selectValue(e){const n=this._buttonToggles.find(o=>null!=o.value&&o.value===e);n&&(n.checked=!0,this._selectionModel.select(n))}_updateModelValue(e,n){n&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(p3,8))},t.\u0275dir=$({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,dw,5),2&e){let s;G(s=z())&&(n._buttonToggles=s)}},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(e,n){2&e&&(J("aria-disabled",n.disabled),de("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[me([Sse,{provide:m3,useExisting:t}])]}),t})();const Tse=as(class{});let dw=(()=>{class t extends Tse{constructor(e,n,o,s,a,r){super(),this._changeDetectorRef=n,this._elementRef=o,this._focusMonitor=s,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new W;const u=Number(a);this.tabIndex=u||0===u?u:null,this.buttonToggleGroup=e,this.appearance=r&&r.appearance?r.appearance:"standard"}get buttonId(){return`${this.id}-button`}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){const n=pe(e);n!==this._checked&&(this._checked=n,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=pe(e)}ngOnInit(){const e=this.buttonToggleGroup;this.id=this.id||"mat-button-toggle-"+f3++,e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){const e=!!this._isSingleSelector()||!this._checked;e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new _3(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this._isSingleSelector()?this.buttonToggleGroup.name:this.name||null}_isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}}return t.\u0275fac=function(e){return new(e||t)(_(m3,8),_(He),_(oe),_($i),Si("tabindex"),_(p3,8))},t.\u0275cmp=U({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(e,n){if(1&e&&ne(Cse,5),2&e){let o;G(o=z())&&(n._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(e,n){1&e&&M("focus",function(){return n.focus()}),2&e&&(J("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),de("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[te],ngContentSelectors:wse,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(e,n){if(1&e&&(Dt(),l(0,"button",0,1),M("click",function(){return n._onButtonClick()}),l(2,"span",2),$e(3),d()(),D(4,"span",3)(5,"span",4)),2&e){const o=X(1);f("id",n.buttonId)("disabled",n.disabled||null),J("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n._getButtonName())("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),c(5),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)}},dependencies:[Bo],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:rgba(0,0,0,0);transform:translateZ(0)}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px;opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),t})(),uw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ka,ze]}),t})();const Dse=["mat-sort-header",""];function Mse(t,i){if(1&t){const e=F();l(0,"div",3),M("@arrowPosition.start",function(){return E(e),I(b()._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){return E(e),I(b()._disableViewStateAnimation=!1)}),D(1,"div",4),l(2,"div",5),D(3,"div",6)(4,"div",7)(5,"div",8),d()()}if(2&t){const e=b();f("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),c(2),f("@indicator",e._getArrowDirectionState()),c(1),f("@leftPointer",e._getArrowDirectionState()),c(1),f("@rightPointer",e._getArrowDirectionState())}}const xse=["*"],g3=new Y("MAT_SORT_DEFAULT_OPTIONS"),Ese=gO(Ss(class{}));let Nn=(()=>{class t extends Ese{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new re,this.start="asc",this._direction="",this.sortChange=new W}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=pe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let o=function Ise(t,i){let e=["asc","desc"];return"desc"==t&&e.reverse(),i||e.push(""),e}(e.start||this.start,e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(_(g3,8))},t.\u0275dir=$({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[te,fe]}),t})();const Lr=Q9.ENTERING+" "+Y9.STANDARD_CURVE,Rd={indicator:ei("indicator",[ot("active-asc, asc",xe({transform:"translateY(0px)"})),ot("active-desc, desc",xe({transform:"translateY(10px)"})),Et("active-asc <=> active-desc",At(Lr))]),leftPointer:ei("leftPointer",[ot("active-asc, asc",xe({transform:"rotate(-45deg)"})),ot("active-desc, desc",xe({transform:"rotate(45deg)"})),Et("active-asc <=> active-desc",At(Lr))]),rightPointer:ei("rightPointer",[ot("active-asc, asc",xe({transform:"rotate(45deg)"})),ot("active-desc, desc",xe({transform:"rotate(-45deg)"})),Et("active-asc <=> active-desc",At(Lr))]),arrowOpacity:ei("arrowOpacity",[ot("desc-to-active, asc-to-active, active",xe({opacity:1})),ot("desc-to-hint, asc-to-hint, hint",xe({opacity:.54})),ot("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",xe({opacity:0})),Et("* => asc, * => desc, * => active, * => hint, * => void",At("0ms")),Et("* <=> *",At(Lr))]),arrowPosition:ei("arrowPosition",[Et("* => desc-to-hint, * => desc-to-active",At(Lr,Tl([xe({transform:"translateY(-25%)"}),xe({transform:"translateY(0)"})]))),Et("* => hint-to-desc, * => active-to-desc",At(Lr,Tl([xe({transform:"translateY(0)"}),xe({transform:"translateY(25%)"})]))),Et("* => asc-to-hint, * => asc-to-active",At(Lr,Tl([xe({transform:"translateY(25%)"}),xe({transform:"translateY(0)"})]))),Et("* => hint-to-asc, * => active-to-asc",At(Lr,Tl([xe({transform:"translateY(0)"}),xe({transform:"translateY(-25%)"})]))),ot("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",xe({transform:"translateY(0)"})),ot("hint-to-desc, active-to-desc, desc",xe({transform:"translateY(-25%)"})),ot("hint-to-asc, active-to-asc, asc",xe({transform:"translateY(25%)"}))]),allowChildren:ei("allowChildren",[Et("* <=> *",[c_("@*",l_(),{optional:!0})])])};let yg=(()=>{class t{constructor(){this.changes=new re}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Rse={provide:yg,deps:[[new Ko,new js,yg]],useFactory:function Ose(t){return t||new yg}},kse=Ss(class{});let kd=(()=>{class t extends kse{constructor(e,n,o,s,a,r,u,m){super(),this._intl=e,this._changeDetectorRef=n,this._sort=o,this._columnDef=s,this._focusMonitor=a,this._elementRef=r,this._ariaDescriber=u,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",m?.arrowPosition&&(this.arrowPosition=m?.arrowPosition),this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=pe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const n=!!e;n!==this._showIndicatorHint&&(this._setIndicatorHintVisible(n),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=un(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(_(yg),_(He),_(Nn,8),_("MAT_SORT_HEADER_COLUMN_DEF",8),_($i),_(oe),_(oO,8),_(g3,8))},t.\u0275cmp=U({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,n){1&e&&M("click",function(){return n._handleClick()})("keydown",function(s){return n._handleKeydown(s)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&e&&(J("aria-sort",n._getAriaSortAttribute()),de("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[te],attrs:Dse,ngContentSelectors:xse,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,n){1&e&&(Dt(),l(0,"div",0)(1,"div",1),$e(2),d(),p(3,Mse,6,6,"div",2),d()),2&e&&(de("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"===n.arrowPosition),J("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),c(3),f("ngIf",n._renderArrow()))},dependencies:[le],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[Rd.indicator,Rd.leftPointer,Rd.rightPointer,Rd.arrowOpacity,Rd.arrowPosition,Rd.allowChildren]},changeDetection:0}),t})(),ks=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[Rse],imports:[ce,ze]}),t})(),Lse=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({})}return t})(),zse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[Lse,ze,ze]}),t})(),Yse=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[Uf,ze,Uf,ze]}),t})();const Qse=["panel"];function Zse(t,i){if(1&t&&(l(0,"div",0,1),$e(2),d()),2&t){const e=i.id,n=b();f("id",n.id)("ngClass",n._classList),J("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}const Kse=["*"];let Xse=0;class Jse{constructor(i,e){this.source=i,this.option=e}}const eae=as(class{}),C3=new Y("mat-autocomplete-default-options",{providedIn:"root",factory:function tae(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let nae=(()=>{class t extends eae{constructor(e,n,o,s){super(),this._changeDetectorRef=e,this._elementRef=n,this._activeOptionChanges=rt.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new W,this.opened=new W,this.closed=new W,this.optionActivated=new W,this._classList={},this.id="mat-autocomplete-"+Xse++,this.inertGroups=s?.SAFARI||!1,this._autoActiveFirstOption=!!o.autoActiveFirstOption,this._autoSelectActiveOption=!!o.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=pe(e)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(e){this._autoSelectActiveOption=pe(e)}set classList(e){this._classList=e&&e.length?ZI(e).reduce((n,o)=>(n[o]=!0,n),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new rO(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const n=new Jse(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(oe),_(C3),_(Bn))},t.\u0275dir=$({type:t,viewQuery:function(e,n){if(1&e&&(ne(bt,7),ne(Qse,5)),2&e){let o;G(o=z())&&(n.template=o.first),G(o=z())&&(n.panel=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[te]}),t})(),Ad=(()=>{class t extends nae{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,Yy,5),Pe(o,Ft,5)),2&e){let s;G(s=z())&&(n.optionGroups=s),G(s=z())&&(n.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[me([{provide:qy,useExisting:t}]),te],ngContentSelectors:Kse,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,n){1&e&&(Dt(),p(0,Zse,3,4,"ng-template"))},dependencies:[Qs],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),t})();const w3=new Y("mat-autocomplete-scroll-strategy"),oae={provide:w3,deps:[Fi],useFactory:function iae(t){return()=>t.scrollStrategies.reposition()}},sae={provide:fi,useExisting:Je(()=>Wl),multi:!0};let aae=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y,S){this._element=e,this._overlay=n,this._viewContainerRef=o,this._zone=s,this._changeDetectorRef=a,this._dir=u,this._formField=m,this._document=g,this._viewportRuler=y,this._defaults=S,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=rt.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new re,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=cr(()=>{const x=this.autocomplete?this.autocomplete.options:null;return x?x.changes.pipe(jt(x),oi(()=>un(...x.map(R=>R.onSelectionChange)))):this._zone.onStable.pipe(Xe(1),oi(()=>this.optionSelections))}),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=pe(e)}ngAfterViewInit(){const e=this._getWindow();typeof e<"u"&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();typeof e<"u"&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return un(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(st(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(st(()=>this._overlayAttached)):ve()).pipe(Le(e=>e instanceof TO?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return un(Pn(this._document,"click"),Pn(this._document,"auxclick"),Pn(this._document,"touchend")).pipe(st(e=>{const n=fr(e),o=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!s||!s.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const n=e.keyCode,o=li(e);if(27===n&&!o&&e.preventDefault(),this.activeOption&&13===n&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,a=38===n||40===n;9===n||a&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(e):a&&this._canOpen()&&this.openPanel(),(a||this.autocomplete._keyManager.activeItem!==s)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let n=e.target,o=n.value;"number"===n.type&&(o=""==o?null:parseFloat(o)),this._previousValue!==o&&(this._previousValue=o,this._pendingAutoselectedOption=null,this._onChange(o),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return un(this._zone.onStable.pipe(Xe(1)),this.autocomplete.options.changes.pipe(Zn(()=>this._positionStrategy.reapplyLastPosition()),k_(0))).pipe(oi(()=>(this._zone.run(()=>{const o=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),Xe(1)).subscribe(o=>this._setValueAndClose(o))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(e){const n=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e;this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){const n=e?e.source:this._pendingAutoselectedOption;n&&(this._clearPreviousSelectedOption(n),this._assignOptionValue(n.value),this._onChange(n.value),this.autocomplete._emitSelectEvent(n),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(n=>{n!==e&&n.selected&&n.deselect()})}_attachOverlay(){let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new Er(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,this._handleOverlayEvents(e),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new El({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}];let a;a="above"===this.position?s:"below"===this.position?n:[...n,...s],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(e){const n=this.autocomplete,o=Qy(e,n.options,n.optionGroups);if(0===e&&1===o)n._setScrollTop(0);else if(n.panel){const s=n.options.toArray()[e];if(s){const a=s._getHostElement(),r=DO(a.offsetTop,a.offsetHeight,n._getScrollTop(),n.panel.nativeElement.offsetHeight);n._setScrollTop(r)}}}_handleOverlayEvents(e){e.keydownEvents().subscribe(n=>{(27===n.keyCode&&!li(n)||38===n.keyCode&&li(n,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),n.stopPropagation(),n.preventDefault())}),e.outsidePointerEvents().subscribe()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Fi),_(kn),_(be),_(He),_(w3),_(Kn,8),_(dd,9),_(Ue,8),_(ea),_(C3,8))},t.\u0275dir=$({type:t,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[fe]}),t})(),Wl=(()=>{class t extends aae{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,n){1&e&&M("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(s){return n._handleInput(s)})("keydown",function(s){return n._handleKeydown(s)})("click",function(){return n._handleClick()}),2&e&&J("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[me([sae]),te]}),t})(),ql=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[oae],imports:[Or,Gt,ze,ce,Na,Gt,ze]}),t})();function rae(t,i){1&t&&$e(0)}const S3=["*"];function lae(t,i){}const cae=function(t){return{animationDuration:t}},dae=function(t,i){return{value:t,params:i}},uae=["tabListContainer"],hae=["tabList"],pae=["tabListInner"],mae=["nextPaginator"],fae=["previousPaginator"],_ae=["tabBodyWrapper"],gae=["tabHeader"];function bae(t,i){}function vae(t,i){1&t&&p(0,bae,0,0,"ng-template",10),2&t&&f("cdkPortalOutlet",b().$implicit.templateLabel)}function yae(t,i){1&t&&h(0),2&t&&O(b().$implicit.textLabel)}function Cae(t,i){if(1&t){const e=F();l(0,"div",6),M("click",function(){const o=E(e),s=o.$implicit,a=o.index,r=b(),u=X(1);return I(r._handleClick(s,u,a))})("cdkFocusChange",function(o){const a=E(e).index;return I(b()._tabFocusChanged(o,a))}),l(1,"div",7),p(2,vae,1,1,"ng-template",8),p(3,yae,1,1,"ng-template",null,9,Nt),d()()}if(2&t){const e=i.$implicit,n=i.index,o=X(4),s=b();de("mat-tab-label-active",s.selectedIndex===n),f("id",s._getTabLabelId(n))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||s.disableRipple),J("tabIndex",s._getTabIndex(e,n))("aria-posinset",n+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(n))("aria-selected",s.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),c(2),f("ngIf",e.templateLabel)("ngIfElse",o)}}function wae(t,i){if(1&t){const e=F();l(0,"mat-tab-body",11),M("_onCentered",function(){return E(e),I(b()._removeTabBodyWrapperHeight())})("_onCentering",function(o){return E(e),I(b()._setTabBodyWrapperHeight(o))}),d()}if(2&t){const e=i.$implicit,n=i.index,o=b();de("mat-tab-body-active",o.selectedIndex===n),f("id",o._getTabContentId(n))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),J("tabindex",null!=o.contentTabIndex&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(n))}}const Sae=new Y("MatInkBarPositioner",{providedIn:"root",factory:function Tae(){return i=>({left:i?(i.offsetLeft||0)+"px":"0",width:i?(i.offsetWidth||0)+"px":"0"})}});let T3=(()=>{class t{constructor(e,n,o,s){this._elementRef=e,this._ngZone=n,this._inkBarPositioner=o,this._animationMode=s}alignToElement(e){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{const n=this._inkBarPositioner(e),o=this._elementRef.nativeElement;o.style.left=n.left,o.style.width=n.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(Sae),_(Fn,8))},t.\u0275dir=$({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,n){2&e&&de("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),t})();const Dae=new Y("MatTabContent"),Mae=new Y("MatTabLabel"),xae=new Y("MAT_TAB"),Eae=Ss(class{}),D3=new Y("MAT_TAB_GROUP");let Sg=(()=>{class t extends Eae{constructor(e,n){super(),this._viewContainerRef=e,this._closestTabGroup=n,this.textLabel="",this._contentPortal=null,this._stateChanges=new re,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Er(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return t.\u0275fac=function(e){return new(e||t)(_(kn),_(D3,8))},t.\u0275cmp=U({type:t,selectors:[["mat-tab"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,Mae,5),Pe(o,Dae,7,bt)),2&e){let s;G(s=z())&&(n.templateLabel=s.first),G(s=z())&&(n._explicitContent=s.first)}},viewQuery:function(e,n){if(1&e&&ne(bt,7),2&e){let o;G(o=z())&&(n._implicitContent=o.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[me([{provide:xae,useExisting:t}]),te,fe],ngContentSelectors:S3,decls:1,vars:0,template:function(e,n){1&e&&(Dt(),p(0,rae,1,0,"ng-template"))},encapsulation:2}),t})();const Iae={translateTab:ei("translateTab",[ot("center, void, left-origin-center, right-origin-center",xe({transform:"none"})),ot("left",xe({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),ot("right",xe({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),Et("* => left, * => right, left => center, right => center",At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Et("void => left-origin-center",[xe({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Et("void => right-origin-center",[xe({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),At("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Oae=(()=>{class t extends xs{constructor(e,n,o,s){super(e,n,s),this._host=o,this._centeringSub=rt.EMPTY,this._leavingSub=rt.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(jt(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()}}return t.\u0275fac=function(e){return new(e||t)(_(el),_(kn),_(Je(()=>M3)),_(Ue))},t.\u0275dir=$({type:t,selectors:[["","matTabBodyHost",""]],features:[te]}),t})(),Rae=(()=>{class t{constructor(e,n,o){this._elementRef=e,this._dir=n,this._dirChangeSubscription=rt.EMPTY,this._translateTabComplete=new re,this._onCentering=new W,this._beforeCentering=new W,this._afterLeavingCenter=new W,this._onCentered=new W(!0),this.animationDuration="500ms",this.preserveContent=!1,n&&(this._dirChangeSubscription=n.change.subscribe(s=>{this._computePositionAnimationState(s),o.markForCheck()})),this._translateTabComplete.pipe(zr((s,a)=>s.fromState===a.fromState&&s.toState===a.toState)).subscribe(s=>{this._isCenterPosition(s.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(s.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const n=this._isCenterPosition(e.toState);this._beforeCentering.emit(n),n&&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 n=this._getLayoutDirection();return"ltr"==n&&e<=0||"rtl"==n&&e>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Kn,8),_(He))},t.\u0275dir=$({type:t,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),M3=(()=>{class t extends Rae{constructor(e,n,o){super(e,n,o)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(Kn,8),_(He))},t.\u0275cmp=U({type:t,selectors:[["mat-tab-body"]],viewQuery:function(e,n){if(1&e&&ne(xs,5),2&e){let o;G(o=z())&&(n._portalHost=o.first)}},hostAttrs:[1,"mat-tab-body"],features:[te],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,n){1&e&&(l(0,"div",0,1),M("@translateTab.start",function(s){return n._onTranslateTabStarted(s)})("@translateTab.done",function(s){return n._translateTabComplete.next(s)}),p(2,lae,0,0,"ng-template",2),d()),2&e&&f("@translateTab",al(3,dae,n._position,zn(1,cae,n.animationDuration)))},dependencies:[Oae],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Iae.translateTab]}}),t})();const x3=new Y("MAT_TABS_CONFIG"),kae=Ss(class{});let E3=(()=>{class t extends kae{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(_(oe))},t.\u0275dir=$({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,n){2&e&&(J("aria-disabled",!!n.disabled),de("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[te]}),t})();const I3=hl({passive:!0});let Nae=(()=>{class t{constructor(e,n,o,s,a,r,u){this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=o,this._dir=s,this._ngZone=a,this._platform=r,this._animationMode=u,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new re,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new re,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new W,this.indexFocused=new W,a.runOutsideAngular(()=>{Pn(e.nativeElement,"mouseleave").pipe(Se(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=pe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=ci(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){Pn(this._previousPaginator.nativeElement,"touchstart",I3).pipe(Se(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Pn(this._nextPaginator.nativeElement,"touchstart",I3).pipe(Se(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:ve("ltr"),n=this._viewportRuler.change(150),o=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Lf(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(Xe(1)).subscribe(o),un(e,n,this._items.changes,this._itemsResized()).pipe(Se(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),o()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Se(this._destroyed)).subscribe(s=>{this.indexFocused.emit(s),this._setTabFocus(s)})}_itemsResized(){return"function"!=typeof ResizeObserver?io:this._items.changes.pipe(jt(this._items),oi(e=>new dn(n=>this._ngZone.runOutsideAngular(()=>{const o=new ResizeObserver(s=>n.next(s));return e.forEach(s=>o.observe(s.elementRef.nativeElement)),()=>{o.disconnect()}}))),kf(1),st(e=>e.some(n=>n.contentRect.width>0&&n.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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!li(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(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){if(!this._items)return!0;const n=this._items?this._items.toArray()[e]:null;return!!n&&!n.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const n=this._tabListContainer.nativeElement;n.scrollLeft="ltr"==this._getLayoutDirection()?0:n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,n="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}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 n=this._items?this._items.toArray()[e]:null;if(!n)return;const o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:a}=n.elementRef.nativeElement;let r,u;"ltr"==this._getLayoutDirection()?(r=s,u=r+a):(u=this._tabListInner.nativeElement.offsetWidth-s,r=u-a);const m=this.scrollDistance,g=this.scrollDistance+o;r<m?this.scrollDistance-=m-r+60:u>g&&(this.scrollDistance+=u-g+60)}_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,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&null!=n.button&&0!==n.button||(this._stopInterval(),h_(650,100).pipe(Se(un(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:o,distance:s}=this._scrollHeader(e);(0===s||s>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(ea),_(Kn,8),_(be),_(Bn),_(Fn,8))},t.\u0275dir=$({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),Fae=(()=>{class t extends Nae{constructor(e,n,o,s,a,r,u){super(e,n,o,s,a,r,u),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=pe(e)}_itemSelected(e){e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(ea),_(Kn,8),_(be),_(Bn),_(Fn,8))},t.\u0275dir=$({type:t,inputs:{disableRipple:"disableRipple"},features:[te]}),t})(),Lae=(()=>{class t extends Fae{constructor(e,n,o,s,a,r,u){super(e,n,o,s,a,r,u)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(ea),_(Kn,8),_(be),_(Bn),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-tab-header"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,E3,4),2&e){let s;G(s=z())&&(n._items=s)}},viewQuery:function(e,n){if(1&e&&(ne(T3,7),ne(uae,7),ne(hae,7),ne(pae,7),ne(mae,5),ne(fae,5)),2&e){let o;G(o=z())&&(n._inkBar=o.first),G(o=z())&&(n._tabListContainer=o.first),G(o=z())&&(n._tabList=o.first),G(o=z())&&(n._tabListInner=o.first),G(o=z())&&(n._nextPaginator=o.first),G(o=z())&&(n._previousPaginator=o.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,n){2&e&&de("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[te],ngContentSelectors:S3,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,n){1&e&&(Dt(),l(0,"button",0,1),M("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(s){return n._handlePaginatorPress("before",s)})("touchend",function(){return n._stopInterval()}),D(2,"div",2),d(),l(3,"div",3,4),M("keydown",function(s){return n._handleKeydown(s)}),l(5,"div",5,6),M("cdkObserveContent",function(){return n._onContentChanges()}),l(7,"div",7,8),$e(9),d(),D(10,"mat-ink-bar"),d()(),l(11,"button",9,10),M("mousedown",function(s){return n._handlePaginatorPress("after",s)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),D(13,"div",2),d()),2&e&&(de("mat-tab-header-pagination-disabled",n._disableScrollBefore),f("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),c(5),de("_mat-animation-noopable","NoopAnimations"===n._animationMode),c(6),de("mat-tab-header-pagination-disabled",n._disableScrollAfter),f("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},dependencies:[Bo,Pf,T3],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-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-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),t})(),Bae=0;class Vae{}const Hae=Ts(as(class{constructor(t){this._elementRef=t}}),"primary");let Uae=(()=>{class t extends Hae{constructor(e,n,o,s){super(e),this._changeDetectorRef=n,this._animationMode=s,this._tabs=new ar,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=rt.EMPTY,this._tabLabelSubscription=rt.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new W,this.focusChange=new W,this.animationDone=new W,this.selectedTabChange=new W(!0),this._groupId=Bae++,this.animationDuration=o&&o.animationDuration?o.animationDuration:"500ms",this.disablePagination=!(!o||null==o.disablePagination)&&o.disablePagination,this.dynamicHeight=!(!o||null==o.dynamicHeight)&&o.dynamicHeight,this.contentTabIndex=o?.contentTabIndex??null,this.preserveContent=!!o?.preserveContent}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=pe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=ci(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=ci(e,null)}get disablePagination(){return this._disablePagination}set disablePagination(e){this._disablePagination=pe(e)}get preserveContent(){return this._preserveContent}set preserveContent(e){this._preserveContent=pe(e)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const n=this._elementRef.nativeElement;n.classList.remove(`mat-background-${this.backgroundColor}`),e&&n.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));const o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,s)=>o.isActive=s===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,null!=this._selectedIndex&&0==n.position&&!n.origin&&(n.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 n=this._tabs.toArray();let o;for(let s=0;s<n.length;s++)if(n[s].isActive){this._indexToSelect=this._selectedIndex=s,this._lastFocusedTabIndex=null,o=n[s];break}!o&&n[e]&&Promise.resolve().then(()=>{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(jt(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._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 n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const n=new Vae;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=un(...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 n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,n,o){e.disabled||(this.selectedIndex=n.focusIndex=o)}_getTabIndex(e,n){return e.disabled?null:n===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(e,n){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=n)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(x3,8),_(Fn,8))},t.\u0275dir=$({type:t,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[te]}),t})(),_w=(()=>{class t extends Uae{constructor(e,n,o,s){super(e,n,o,s)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(x3,8),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-tab-group"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,Sg,5),2&e){let s;G(s=z())&&(n._allTabs=s)}},viewQuery:function(e,n){if(1&e&&(ne(_ae,5),ne(gae,5)),2&e){let o;G(o=z())&&(n._tabBodyWrapper=o.first),G(o=z())&&(n._tabHeader=o.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,n){2&e&&de("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[me([{provide:D3,useExisting:t}]),te],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(e,n){1&e&&(l(0,"mat-tab-header",0,1),M("indexFocused",function(s){return n._focusChanged(s)})("selectFocusedIndex",function(s){return n.selectedIndex=s}),p(2,Cae,5,15,"div",2),d(),l(3,"div",3,4),p(5,wae,1,11,"mat-tab-body",5),d()),2&e&&(f("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),c(2),f("ngForOf",n._tabs),c(1),de("_mat-animation-noopable","NoopAnimations"===n._animationMode),c(2),f("ngForOf",n._tabs))},dependencies:[Qs,qe,le,xs,Bo,$y,E3,M3,Lae],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2}),t})(),Tg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ce,ze,Ir,ka,lh,Vf,ze]}),t})();const $ae=["input"],jae=function(t){return{enterDuration:t}},Gae=["*"],zae=new Y("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Wae=0;const qae={provide:fi,useExisting:Je(()=>R3),multi:!0};class Yae{constructor(i,e){this.source=i,this.checked=e}}const Qae=_l(Ts(as(Ss(class{constructor(t){this._elementRef=t}}))));let Zae=(()=>{class t extends Qae{constructor(e,n,o,s,a,r,u){super(e),this._focusMonitor=n,this._changeDetectorRef=o,this.defaults=a,this._onChange=m=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new W,this.toggleChange=new W,this.tabIndex=parseInt(s)||0,this.color=this.defaultColor=a.color||"accent",this._noopAnimations="NoopAnimations"===r,this.id=this._uniqueId=`${u}${++Wae}`}get required(){return this._required}set required(e){this._required=pe(e)}get checked(){return this._checked}set checked(e){this._checked=pe(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{"keyboard"===e||"program"===e?this._focused=!0:e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}}return t.\u0275fac=function(e){zs()},t.\u0275dir=$({type:t,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},features:[te]}),t})(),R3=(()=>{class t extends Zae{constructor(e,n,o,s,a,r){super(e,n,o,s,a,r,"mat-slide-toggle-")}_createChangeEvent(e){return new Yae(this,e)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_($i),_(He),Si("tabindex"),_(zae),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(e,n){if(1&e&&ne($ae,5),2&e){let o;G(o=z())&&(n._inputElement=o.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(e,n){2&e&&(Qn("id",n.id),J("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),de("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[me([qae]),te],ngContentSelectors:Gae,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,n){if(1&e&&(Dt(),l(0,"label",0,1)(2,"span",2)(3,"input",3,4),M("change",function(s){return n._onChangeEvent(s)})("click",function(s){return n._onInputClick(s)}),d(),l(5,"span",5),D(6,"span",6),l(7,"span",7),D(8,"span",8),d()()(),l(9,"span",9,10),M("cdkObserveContent",function(){return n._onLabelTextChange()}),l(11,"span",11),h(12,"\xa0"),d(),$e(13),d()()),2&e){const o=X(1),s=X(10);J("for",n.inputId),c(2),de("mat-slide-toggle-bar-no-side-margin",!s.textContent||!s.textContent.trim()),c(1),f("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),J("name",n.name)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),c(4),f("matRippleTrigger",o)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",zn(18,jae,n._noopAnimations?0:150))}},dependencies:[Bo,Pf],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0}),t})(),k3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({}),t})(),A3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[k3,ka,ze,lh,k3,ze]}),t})(),xn=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(e){this._vertical=pe(e)}get inset(){return this._inset}set inset(e){this._inset=pe(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=U({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(e,n){2&e&&(J("aria-orientation",n.vertical?"vertical":"horizontal"),de("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(e,n){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t})(),gn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ze,ze]}),t})(),N3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[Uf,ka,ze,Wy,ce,Uf,ze,Wy,gn]}),t})();const hre=["input"],pre=["label"],mre=function(t){return{enterDuration:t}},fre=["*"],_re=new Y("mat-checkbox-default-options",{providedIn:"root",factory:F3});function F3(){return{color:"accent",clickAction:"check-indeterminate"}}let gre=0;const L3=F3(),bre={provide:fi,useExisting:Je(()=>Pd),multi:!0};class vre{}const yre=_l(Ts(as(Ss(class{constructor(t){this._elementRef=t}}))));let Cre=(()=>{class t extends yre{constructor(e,n,o,s,a,r,u){super(n),this._changeDetectorRef=o,this._ngZone=s,this._animationMode=r,this._options=u,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new W,this.indeterminateChange=new W,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||L3,this.color=this.defaultColor=this._options.color||L3.color,this.tabIndex=parseInt(a)||0,this.id=this._uniqueId=`${e}${++gre}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=pe(e)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){const n=pe(e);n!=this.checked&&(this._checked=n,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const n=pe(e);n!==this.disabled&&(this._disabled=n,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const n=e!=this._indeterminate;this._indeterminate=pe(e),n&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),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}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(n!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const s=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(s)},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?1:2),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if("NoopAnimations"===this._animationMode)return"";switch(e){case 0:if(1===n)return this._animationClasses.uncheckedToChecked;if(3==n)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===n?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===n?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===n?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}}return t.\u0275fac=function(e){zs()},t.\u0275dir=$({type:t,viewQuery:function(e,n){if(1&e&&(ne(hre,5),ne(pre,5),ne(Bo,5)),2&e){let o;G(o=z())&&(n._inputElement=o.first),G(o=z())&&(n._labelElement=o.first),G(o=z())&&(n.ripple=o.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[te]}),t})(),Pd=(()=>{class t extends Cre{constructor(e,n,o,s,a,r,u){super("mat-checkbox-",e,n,s,a,r,u),this._focusMonitor=o,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(e){const n=new vre;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(e){e.stopPropagation(),super._handleInputClick()}focus(e,n){e?this._focusMonitor.focusVia(this._inputElement,e,n):this._inputElement.nativeElement.focus(n)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_($i),_(be),Si("tabindex"),_(Fn,8),_(_re,8))},t.\u0275cmp=U({type:t,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(e,n){2&e&&(Qn("id",n.id),J("tabindex",null)("aria-label",null)("aria-labelledby",null),de("mat-checkbox-indeterminate",n.indeterminate)("mat-checkbox-checked",n.checked)("mat-checkbox-disabled",n.disabled)("mat-checkbox-label-before","before"==n.labelPosition)("_mat-animation-noopable","NoopAnimations"===n._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[me([bre]),te],ngContentSelectors:fre,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,n){if(1&e&&(Dt(),l(0,"label",0,1)(2,"span",2)(3,"input",3,4),M("change",function(s){return n._onInteractionEvent(s)})("click",function(s){return n._onInputClick(s)}),d(),l(5,"span",5),D(6,"span",6),d(),D(7,"span",7),l(8,"span",8),ai(),l(9,"svg",9),D(10,"path",10),d(),vo(),D(11,"span",11),d()(),l(12,"span",12,13),M("cdkObserveContent",function(){return n._onLabelTextChange()}),l(14,"span",14),h(15,"\xa0"),d(),$e(16),d()()),2&e){const o=X(1),s=X(13);J("for",n.inputId),c(2),de("mat-checkbox-inner-container-no-side-margin",!s.textContent||!s.textContent.trim()),c(1),f("id",n.inputId)("required",n.required)("checked",n.checked)("disabled",n.disabled)("tabIndex",n.tabIndex),J("value",n.value)("name",n.name)("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-checked",n._getAriaChecked())("aria-describedby",n.ariaDescribedby),c(2),f("matRippleTrigger",o)("matRippleDisabled",n._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",zn(19,mre,"NoopAnimations"===n._animationMode?0:150))}},dependencies:[Bo,Pf],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-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 mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})(),B3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({}),t})(),Nd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ka,ze,lh,B3,ze,B3]}),t})(),Fre=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[ka,ze,ze]}),t})();const Lre=["*"],$3=new Y("MatChipRemove"),j3=new Y("MatChipAvatar"),G3=new Y("MatChipTrailingIcon");class Bre{constructor(i){this._elementRef=i}}const Vre=_l(Ts(as(Bre),"primary"),-1);let Br=(()=>{class t extends Vre{constructor(e,n,o,s,a,r,u,m){super(e),this._ngZone=n,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new re,this._onBlur=new re,this.selectionChange=new W,this.destroyed=new W,this.removed=new W,this._addHostClassName(),this._chipRippleTarget=r.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new CO(this,n,this._chipRippleTarget,o),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=s||{},this._animationsDisabled="NoopAnimations"===u,this.tabIndex=null!=m&&parseInt(m)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const n=pe(e);n!==this._selected&&(this._selected=n,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=pe(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=pe(e)}get removable(){return this._removable}set removable(e){this._removable=pe(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",n=this._elementRef.nativeElement;n.hasAttribute(e)||n.tagName.toLowerCase()===e?n.classList.add(e):n.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be),_(Bn),_(wO,8),_(He),_(Ue),_(Fn,8),Si("tabindex"))},t.\u0275dir=$({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,j3,5),Pe(o,G3,5),Pe(o,$3,5)),2&e){let s;G(s=z())&&(n.avatar=s.first),G(s=z())&&(n.trailingIcon=s.first),G(s=z())&&(n.removeIcon=s.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(e,n){1&e&&M("click",function(s){return n._handleClick(s)})("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&e&&(J("tabindex",n.disabled?null:n.tabIndex)("role",n.role)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),de("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[te]}),t})(),Fd=(()=>{class t{constructor(e,n){this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}_handleClick(e){const n=this._parentChip;n.removable&&!n.disabled&&n.remove(),e.stopPropagation(),e.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(_(Br),_(oe))},t.\u0275dir=$({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,n){1&e&&M("click",function(s){return n._handleClick(s)})},features:[me([{provide:$3,useExisting:t}])]}),t})();const z3=new Y("mat-chips-default-options"),$re=Hf(class{constructor(t,i,e,n){this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=e,this.ngControl=n,this.stateChanges=new re}});let jre=0;class Gre{constructor(i,e){this.source=i,this.value=e}}let Ld=(()=>{class t extends $re{constructor(e,n,o,s,a,r,u){super(r,s,a,u),this._elementRef=e,this._changeDetectorRef=n,this._dir=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new re,this._uid="mat-chip-list-"+jre++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(m,g)=>m===g,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new W,this.valueChange=new W,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(e){this._explicitRole=e}get multiple(){return this._multiple}set multiple(e){this._multiple=pe(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(ue.required)??!1}set required(e){this._required=pe(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=pe(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=pe(e),this._syncChipsState()}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return un(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return un(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return un(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return un(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Lf(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Se(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(Se(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(jt(null),Se(this._destroyed)).subscribe(()=>{(this.disabled||!this.selectable)&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new kl(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const n=e.target;n&&n.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&e<this.chips.length}_setSelectionByValue(e,n=!0){if(this._clearSelection(),this.chips.forEach(o=>o.deselect()),Array.isArray(e))e.forEach(o=>this._selectValue(o,n)),this._sortValues();else{const o=this._selectValue(e,n);o&&n&&this._keyManager.setActiveItem(o)}}_selectValue(e,n=!0){const o=this.chips.find(s=>null!=s.value&&this._compareWith(s.value,e));return o&&(n?o.selectViaInteraction():o.select(),this._selectionModel.select(o)),o}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(n=>{n!==e&&n.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let n=null;n=Array.isArray(this.selected)?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=n,this.change.emit(new Gre(this,n)),this.valueChange.emit(n),this._onChange(n),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(n=>{!this._selectionModel.isSelected(n)&&n.selected&&n.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let n=this.chips.toArray().indexOf(e.chip);this._isValidIndex(n)&&this._keyManager.updateActiveItem(n),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const n=e.chip,o=this.chips.toArray().indexOf(e.chip);this._isValidIndex(o)&&n._hasFocus&&(this._lastDestroyedChipIndex=o)})}_originatesFromChip(e){let n=e.target;for(;n&&n!==this._elementRef.nativeElement;){if(n.classList.contains("mat-chip"))return!0;n=n.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple,e.chipListSelectable=this._selectable})}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(Kn,8),_(Ds,8),_(vt,8),_(_r),_(ls,10))},t.\u0275cmp=U({type:t,selectors:[["mat-chip-list"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,Br,5),2&e){let s;G(s=z())&&(n.chips=s)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(e,n){1&e&&M("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(s){return n._keydown(s)}),2&e&&(Qn("id",n._uid),J("tabindex",n.disabled?null:n._tabIndex)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),de("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[me([{provide:ld,useExisting:t}]),te],ngContentSelectors:Lre,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,n){1&e&&(Dt(),l(0,"div",0),$e(1),d())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}.mat-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}'],encapsulation:2,changeDetection:0}),t})(),Bd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[_r,{provide:z3,useValue:{separatorKeyCodes:[13]}}],imports:[ze]}),t})();const qre=["tooltip"],W3="tooltip-panel",q3=hl({passive:!0}),Y3=new Y("mat-tooltip-scroll-strategy"),Kre={provide:Y3,deps:[Fi],useFactory:function Zre(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Xre=new Y("mat-tooltip-default-options",{providedIn:"root",factory:function Jre(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let ele=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y,S,x){this._overlay=e,this._elementRef=n,this._scrollDispatcher=o,this._viewContainerRef=s,this._ngZone=a,this._platform=r,this._ariaDescriber=u,this._focusMonitor=m,this._dir=y,this._defaultOptions=S,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new re,this._scrollStrategy=g,this._document=x,S&&(S.position&&(this.position=S.position),S.touchGestures&&(this.touchGestures=S.touchGestures)),y.change.pipe(Se(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=pe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ci(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ci(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Se(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{e.removeEventListener(n,o,q3)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const n=this._createOverlay();this._detach(),this._portal=this._portal||new xr(this._tooltipComponent,this._viewContainerRef);const o=this._tooltipInstance=n.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Se(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){const n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(Se(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:`${this._cssClassPrefix}-${W3}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Se(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Se(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Se(this._destroyed)).subscribe(o=>{this._isTooltipVisible()&&27===o.keyCode&&!li(o)&&(o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const n=e.getConfig().positionStrategy,o=this._getOrigin(),s=this._getOverlayPosition();n.withPositions([this._addOffset({...o.main,...s.main}),this._addOffset({...o.fallback,...s.fallback})])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let o;"above"==n||"below"==n?o={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?o={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(o={originX:"end",originY:"center"});const{x:s,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:s,originY:a}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,n=this.position;let o;"above"==n?o={overlayX:"center",overlayY:"bottom"}:"below"==n?o={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?o={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(o={overlayX:"start",overlayY:"center"});const{x:s,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:s,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Xe(1),Se(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return"above"===this.position||"below"===this.position?"top"===n?n="bottom":"bottom"===n&&(n="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){const{overlayY:n,originX:o,originY:s}=e;let a;if(a="center"===n?this._dir&&"rtl"===this._dir.value?"end"===o?"left":"right":"start"===o?"left":"right":"bottom"===n&&"top"===s?"above":"below",a!==this._currentPosition){const r=this._overlayRef;if(r){const u=`${this._cssClassPrefix}-${W3}-`;r.removePanelClass(u+this._currentPosition),r.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{const o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const n=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,q3)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const n=this._document.elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const n=this._elementRef.nativeElement,o=n.style;("on"===e||"INPUT"!==n.nodeName&&"TEXTAREA"!==n.nodeName)&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),("on"===e||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){zs()},t.\u0275dir=$({type:t,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t})(),mo=(()=>{class t extends ele{constructor(e,n,o,s,a,r,u,m,g,y,S,x){super(e,n,o,s,a,r,u,m,g,y,S,x),this._tooltipComponent=nle}}return t.\u0275fac=function(e){return new(e||t)(_(Fi),_(oe),_(Eh),_(kn),_(be),_(Bn),_(oO),_($i),_(Y3),_(Kn,8),_(Xre,8),_(Ue))},t.\u0275dir=$({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[te]}),t})(),tle=(()=>{class t{constructor(e,n){this._changeDetectorRef=e,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new re,this._animationsDisabled="NoopAnimations"===n}show(e){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){const n=this._tooltip.nativeElement,o=this._showAnimation,s=this._hideAnimation;if(n.classList.remove(e?s:o),n.classList.add(e?o:s),this._isVisible=e,e&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const a=getComputedStyle(n);("0s"===a.getPropertyValue("animation-duration")||"none"===a.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Fn,8))},t.\u0275dir=$({type:t}),t})(),nle=(()=>{class t extends tle{constructor(e,n,o){super(e,o),this._breakpointObserver=n,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Ra),_(Fn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(e,n){if(1&e&&ne(qre,7),2&e){let o;G(o=z())&&(n._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){1&e&&M("mouseleave",function(s){return n._handleMouseLeave(s)}),2&e&&it("zoom",n.isVisible()?1:null)},features:[te],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(e,n){if(1&e&&(l(0,"div",0,1),M("animationend",function(s){return n._handleAnimationEnd(s)}),C(2,"async"),h(3),d()),2&e){let o;de("mat-tooltip-handset",null==(o=w(2,4,n._isHandset))?null:o.matches),f("ngClass",n.tooltipClass),c(3),O(n.message)}},dependencies:[Qs,mr],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),t})(),ki=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[Kre],imports:[Vf,ce,Or,ze,ze,Na]}),t})();function ile(t,i){if(1&t){const e=F();l(0,"div",2)(1,"button",3),M("click",function(){return E(e),I(b().action())}),h(2),d()()}if(2&t){const e=b();c(2),O(e.data.action)}}function ole(t,i){}const Q3=new Y("MatSnackBarData");class Dg{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const sle=Math.pow(2,31)-1;class gw{constructor(i,e){this._overlayRef=e,this._afterDismissed=new re,this._afterOpened=new re,this._onAction=new re,this._dismissedByAction=!1,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,sle))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let ale=(()=>{class t{constructor(e,n){this.snackBarRef=e,this.data=n}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(_(gw),_(Q3))},t.\u0275cmp=U({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,n){1&e&&(l(0,"span",0),h(1),d(),p(2,ile,3,1,"div",1)),2&e&&(c(1),O(n.data.message),c(1),f("ngIf",n.hasAction))},dependencies:[le,Re],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),t})();const rle={snackBarState:ei("state",[ot("void, hidden",xe({transform:"scale(0.8)",opacity:0})),ot("visible",xe({transform:"scale(1)",opacity:1})),Et("* => visible",At("150ms cubic-bezier(0, 0, 0.2, 1)")),Et("* => void, * => hidden",At("75ms cubic-bezier(0.4, 0.0, 1, 1)",xe({opacity:0})))])};let lle=(()=>{class t extends A_{constructor(e,n,o,s,a){super(),this._ngZone=e,this._elementRef=n,this._changeDetectorRef=o,this._platform=s,this.snackBarConfig=a,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new re,this._onExit=new re,this._onEnter=new re,this._animationState="void",this.attachDomPortal=r=>{this._assertNotAttached();const u=this._portalOutlet.attachDomPortal(r);return this._afterPortalAttached(),u},this._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}onAnimationEnd(e){const{fromState:n,toState:o}=e;if(("void"===o&&"void"!==n||"hidden"===o)&&this._completeExit(),"visible"===o){const s=this._onEnter;this._ngZone.run(()=>{s.next(),s.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Xe(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(o=>e.classList.add(o)):e.classList.add(n))}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const e=this._elementRef.nativeElement.querySelector("[aria-hidden]"),n=this._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(o=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(_(be),_(oe),_(He),_(Bn),_(Dg))},t.\u0275dir=$({type:t,viewQuery:function(e,n){if(1&e&&ne(xs,7),2&e){let o;G(o=z())&&(n._portalOutlet=o.first)}},features:[te]}),t})(),cle=(()=>{class t extends lle{_afterPortalAttached(){super._afterPortalAttached(),"center"===this.snackBarConfig.horizontalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&this._elementRef.nativeElement.classList.add("mat-snack-bar-top")}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(e,n){1&e&&zc("@state.done",function(s){return n.onAnimationEnd(s)}),2&e&&qc("@state",n._animationState)},features:[te],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(e,n){1&e&&(l(0,"div",0),p(1,ole,0,0,"ng-template",1),d(),D(2,"div")),2&e&&(c(2),J("aria-live",n._live)("role",n._role))},dependencies:[xs],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[rle.snackBarState]}}),t})(),Z3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[Or,Ir,ce,Ne,ze,ze]}),t})();const K3=new Y("mat-snack-bar-default-options",{providedIn:"root",factory:function dle(){return new Dg}});let ule=(()=>{class t{constructor(e,n,o,s,a,r){this._overlay=e,this._live=n,this._injector=o,this._breakpointObserver=s,this._parentSnackBar=a,this._defaultConfig=r,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){const s={...this._defaultConfig,...o};return s.data={message:e,action:n},s.announcementMessage===e&&(s.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,s)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){const s=_n.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:Dg,useValue:n}]}),a=new xr(this.snackBarContainerComponent,n.viewContainerRef,s),r=e.attach(a);return r.instance.snackBarConfig=n,r.instance}_attach(e,n){const o={...new Dg,...this._defaultConfig,...n},s=this._createOverlay(o),a=this._attachSnackBarContainer(s,o),r=new gw(a,s);if(e instanceof bt){const u=new Er(e,null,{$implicit:o.data,snackBarRef:r});r.instance=a.attachTemplatePortal(u)}else{const u=this._createInjector(o,r),m=new xr(e,void 0,u),g=a.attachComponentPortal(m);r.instance=g.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Se(s.detachments())).subscribe(u=>{s.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(r,o),this._openedSnackBarRef=r,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration))}_createOverlay(e){const n=new El;n.direction=e.direction;let o=this._overlay.position().global();const s="rtl"===e.direction,a="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!s||"end"===e.horizontalPosition&&s,r=!a&&"center"!==e.horizontalPosition;return a?o.left("0"):r?o.right("0"):o.centerHorizontally(),"top"===e.verticalPosition?o.top("0"):o.bottom("0"),n.positionStrategy=o,this._overlay.create(n)}_createInjector(e,n){return _n.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:gw,useValue:n},{provide:Q3,useValue:e.data}]})}}return t.\u0275fac=function(e){return new(e||t)(H(Fi),H(Uy),H(_n),H(Ra),H(t,12),H(K3))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})(),Sn=(()=>{class t extends ule{constructor(e,n,o,s,a,r){super(e,n,o,s,a,r),this.simpleSnackBarComponent=ale,this.snackBarContainerComponent=cle,this.handsetCssClass="mat-snack-bar-handset"}}return t.\u0275fac=function(e){return new(e||t)(H(Fi),H(Uy),H(_n),H(Ra),H(t,12),H(K3))},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:Z3}),t})();const hle=["trigger"],ple=["panel"];function mle(t,i){if(1&t&&(l(0,"span",8),h(1),d()),2&t){const e=b();c(1),O(e.placeholder)}}function fle(t,i){if(1&t&&(l(0,"span",12),h(1),d()),2&t){const e=b(2);c(1),O(e.triggerValue)}}function _le(t,i){1&t&&$e(0,0,["*ngSwitchCase","true"])}function gle(t,i){1&t&&(l(0,"span",9),p(1,fle,2,1,"span",10),p(2,_le,1,0,"ng-content",11),d()),2&t&&(f("ngSwitch",!!b().customTrigger),c(2),f("ngSwitchCase",!0))}function ble(t,i){if(1&t){const e=F();l(0,"div",13)(1,"div",14,15),M("@transformPanel.done",function(o){return E(e),I(b()._panelDoneAnimatingStream.next(o.toState))})("keydown",function(o){return E(e),I(b()._handleKeydown(o))}),$e(3,1),d()()}if(2&t){const e=b();f("@transformPanelWrap",void 0),c(1),fv("mat-select-panel ",e._getPanelTheme(),""),it("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),f("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),J("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const vle=[[["mat-select-trigger"]],"*"],yle=["mat-select-trigger","*"],X3={transformPanelWrap:ei("transformPanelWrap",[Et("* => void",c_("@transformPanel",[l_()],{optional:!0}))]),transformPanel:ei("transformPanel",[ot("void",xe({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),ot("showing",xe({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),ot("showing-multiple",xe({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Et("void => *",At("120ms cubic-bezier(0, 0, 0.2, 1)")),Et("* => void",At("100ms 25ms linear",xe({opacity:0})))])};let J3=0;const tF=new Y("mat-select-scroll-strategy"),Tle=new Y("MAT_SELECT_CONFIG"),Dle={provide:tF,deps:[Fi],useFactory:function Sle(t){return()=>t.scrollStrategies.reposition()}};class Mle{constructor(i,e){this.source=i,this.value=e}}const xle=as(_l(Ss(Hf(class{constructor(t,i,e,n,o){this._elementRef=t,this._defaultErrorStateMatcher=i,this._parentForm=e,this._parentFormGroup=n,this.ngControl=o,this.stateChanges=new re}})))),Ele=new Y("MatSelectTrigger");let Ile=(()=>{class t extends xle{constructor(e,n,o,s,a,r,u,m,g,y,S,x,R,k){super(a,s,u,m,y),this._viewportRuler=e,this._changeDetectorRef=n,this._ngZone=o,this._dir=r,this._parentFormField=g,this._liveAnnouncer=R,this._defaultOptions=k,this._panelOpen=!1,this._compareWith=(V,q)=>V===q,this._uid="mat-select-"+J3++,this._triggerAriaLabelledBy=null,this._destroy=new re,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+J3++,this._panelDoneAnimatingStream=new re,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=cr(()=>{const V=this.options;return V?V.changes.pipe(jt(V),oi(()=>un(...V.map(q=>q.onSelectionChange)))):this._ngZone.onStable.pipe(Xe(1),oi(()=>this.optionSelectionChanges))}),this.openedChange=new W,this._openedStream=this.openedChange.pipe(st(V=>V),Le(()=>{})),this._closedStream=this.openedChange.pipe(st(V=>!V),Le(()=>{})),this.selectionChange=new W,this.valueChange=new W,this.ngControl&&(this.ngControl.valueAccessor=this),null!=k?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=k.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(S)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(ue.required)??!1}set required(e){this._required=pe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=pe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=pe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=ci(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new kl(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(zr(),Se(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Se(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(jt(null),Se(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(void 0!==this._previousControl&&null!==n.disabled&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const n=e.keyCode,o=40===n||38===n||37===n||39===n,s=13===n||32===n,a=this._keyManager;if(!a.isTyping()&&s&&!li(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){const r=this.selected;a.onKeydown(e);const u=this.selected;u&&r!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){const n=this._keyManager,o=e.keyCode,s=40===o||38===o,a=n.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(a||13!==o&&32!==o||!n.activeItem||li(e))if(!a&&this._multiple&&65===o&&e.ctrlKey){e.preventDefault();const r=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(r?u.select():u.deselect())})}else{const r=n.activeItemIndex;n.onKeydown(e),this._multiple&&s&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==r&&n.activeItem._selectViaInteraction()}else e.preventDefault(),n.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(Xe(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{const n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){const n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return null!=o.value&&this._compareWith(o.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return!!(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e,!0)}_initKeyManager(){this._keyManager=new rO(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Se(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Se(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=un(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Se(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),un(...this.options.map(n=>n._stateChanges)).pipe(Se(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,n){const o=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n=null;n=this.multiple?this.selected.map(o=>o.value):this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const e=this._parentFormField?.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return t.\u0275fac=function(e){return new(e||t)(_(ea),_(He),_(be),_(_r),_(oe),_(Kn,8),_(Ds,8),_(vt,8),_(dd,8),_(ls,10),Si("tabindex"),_(tF),_(Uy),_(Tle,8))},t.\u0275dir=$({type:t,viewQuery:function(e,n){if(1&e&&(ne(hle,5),ne(ple,5),ne(jA,5)),2&e){let o;G(o=z())&&(n.trigger=o.first),G(o=z())&&(n.panel=o.first),G(o=z())&&(n._overlayDir=o.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[te,fe]}),t})(),Tn=(()=>{class t extends Ile{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,n,o){const s=this._getItemHeight();return Math.min(Math.max(0,s*e-n+s/2),o)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Se(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const n=Qy(e,this.options,this.optionGroups),o=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===n?0:DO((e+n)*o,o,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Mle(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),o=this._isRtl(),s=this.multiple?56:32;let a;if(this.multiple)a=40;else if(this.disableOptionCentering)a=16;else{let m=this._selectionModel.selected[0]||this.options.first;a=m&&m.group?32:16}o||(a*=-1);const r=0-(e.left+a-(o?s:0)),u=e.right+a-n.width+(o?0:s);r>0?a+=r+8:u>0&&(a-=u+8),this._overlayDir.offsetX=Math.round(a),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,n,o){const s=this._getItemHeight(),a=(s-this._triggerRect.height)/2,r=Math.floor(256/s);let u;return this.disableOptionCentering?0:(u=0===this._scrollTop?e*s:this._scrollTop===o?(e-(this._getItemCount()-r))*s+(s-(this._getItemCount()*s-256)%s):n-s/2,Math.round(-1*u-a))}_checkOverlayWithinViewport(e){const n=this._getItemHeight(),o=this._viewportRuler.getViewportSize(),s=this._triggerRect.top-8,a=o.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),m=Math.min(this._getItemCount()*n,256)-r-this._triggerRect.height;m>a?this._adjustPanelUp(m,a):r>s?this._adjustPanelDown(r,s,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,n){const o=Math.round(e-n);this._scrollTop-=o,this._offsetY-=o,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,n,o){const s=Math.round(e-n);if(this._scrollTop+=s,this._offsetY+=s,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=o)return this._scrollTop=o,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),n=this._getItemCount(),o=Math.min(n*e,256),a=n*e-o;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=Qy(r,this.options,this.optionGroups);const u=o/2;this._scrollTop=this._calculateOverlayScroll(r,u,a),this._offsetY=this._calculateOverlayOffsetY(r,u,a),this._checkOverlayWithinViewport(a)}_getOriginBasedOnOption(){const e=this._getItemHeight(),n=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-n+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-select"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,Ele,5),Pe(o,Ft,5),Pe(o,Yy,5)),2&e){let s;G(s=z())&&(n.customTrigger=s.first),G(s=z())&&(n.options=s),G(s=z())&&(n.optionGroups=s)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(e,n){1&e&&M("keydown",function(s){return n._handleKeydown(s)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&e&&(J("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),de("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[me([{provide:ld,useExisting:t},{provide:qy,useExisting:t}]),te],ngContentSelectors:yle,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,n){if(1&e&&(Dt(vle),l(0,"div",0,1),M("click",function(){return n.toggle()}),l(3,"div",2),p(4,mle,2,1,"span",3),p(5,gle,3,2,"span",4),d(),l(6,"div",5),D(7,"div",6),d()(),p(8,ble,4,14,"ng-template",7),M("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&e){const o=X(1);J("aria-owns",n.panelOpen?n.id+"-panel":null),c(3),f("ngSwitch",n.empty),J("id",n._valueId),c(1),f("ngSwitchCase",!0),c(1),f("ngSwitchCase",!1),c(3),f("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},dependencies:[Qs,dl,eh,AI,jA,$A],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[X3.transformPanelWrap,X3.transformPanel]},changeDetection:0}),t})(),on=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[Dle],imports:[ce,Or,Gt,ze,Na,ut,Gt,ze]}),t})();function Ole(t,i){}class xg{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 nF=(()=>{class t extends A_{constructor(e,n,o,s,a,r,u,m){super(),this._elementRef=e,this._focusTrapFactory=n,this._config=s,this._interactivityChecker=a,this._ngZone=r,this._overlayRef=u,this._focusMonitor=m,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=g=>{this._portalOutlet.hasAttached();const y=this._portalOutlet.attachDomPortal(g);return this._contentAttached(),y},this._document=o,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();const n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const o=()=>{e.removeEventListener("blur",o),e.removeEventListener("mousedown",o),e.removeAttribute("tabindex")};e.addEventListener("blur",o),e.addEventListener("mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_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(n=>{n||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 n=null;if("string"==typeof e?n=this._document.querySelector(e):"boolean"==typeof e?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&"function"==typeof n.focus){const o=oh(),s=this._elementRef.nativeElement;(!o||o===this._document.body||o===s||s.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,n=oh();return e===n||e.contains(n)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=oh())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe),_(dh),_(Ue,8),_(xg),_(ch),_(be),_(qh),_($i))};static#t=this.\u0275cmp=U({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(1&n&&ne(xs,7),2&n){let s;G(s=z())&&(o._portalOutlet=s.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){2&n&&J("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){1&n&&p(0,Ole,0,0,"ng-template",0)},dependencies:[xs],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return t})();class bw{constructor(i,e){this.overlayRef=i,this.config=e,this.closed=new re,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{27===n.keyCode&&!this.disableClose&&!li(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{!1!==e.closeOnOverlayDetachments&&this.close()})}close(i,e){if(this.containerInstance){const n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}}const iF=new Y("DialogScrollStrategy"),Rle=new Y("DialogData"),kle=new Y("DefaultDialogConfig"),Ple={provide:iF,deps:[Fi],useFactory:function Ale(t){return()=>t.scrollStrategies.block()}};let Nle=0,oF=(()=>{class t{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(e,n,o,s,a,r){this._overlay=e,this._injector=n,this._defaultOptions=o,this._parentDialog=s,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new re,this._afterOpenedAtThisLevel=new re,this._ariaHiddenElements=new Map,this.afterAllClosed=cr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jt(void 0))),this._scrollStrategy=r}open(e,n){(n={...this._defaultOptions||new xg,...n}).id=n.id||"cdk-dialog-"+Nle++,n.id&&this.getDialogById(n.id);const s=this._getOverlayConfig(n),a=this._overlay.create(s),r=new bw(a,n),u=this._attachContainer(a,r,n);return r.containerInstance=u,this._attachDialogContent(e,r,u,n),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,!0)),this.afterOpened.next(r),r}closeAll(){vw(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){vw(this._openDialogsAtThisLevel,e=>{!1===e.config.closeOnDestroy&&this._removeOpenDialog(e,!1)}),vw(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){const n=new El({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&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){const s=o.injector||o.viewContainerRef?.injector,a=[{provide:xg,useValue:o},{provide:bw,useValue:n},{provide:qh,useValue:e}];let r;o.container?"function"==typeof o.container?r=o.container:(r=o.container.type,a.push(...o.container.providers(o))):r=nF;const u=new xr(r,o.viewContainerRef,_n.create({parent:s||this._injector,providers:a}),o.componentFactoryResolver);return e.attach(u).instance}_attachDialogContent(e,n,o,s){if(e instanceof bt){const a=this._createInjector(s,n,o,void 0);let r={$implicit:s.data,dialogRef:n};s.templateContext&&(r={...r,..."function"==typeof s.templateContext?s.templateContext():s.templateContext}),o.attachTemplatePortal(new Er(e,null,r,a))}else{const a=this._createInjector(s,n,o,this._injector),r=o.attachComponentPortal(new xr(e,s.viewContainerRef,a,s.componentFactoryResolver));n.componentRef=r,n.componentInstance=r.instance}}_createInjector(e,n,o,s){const a=e.injector||e.viewContainerRef?.injector,r=[{provide:Rle,useValue:e.data},{provide:bw,useValue:n}];return e.providers&&("function"==typeof e.providers?r.push(...e.providers(n,e,o)):r.push(...e.providers)),e.direction&&(!a||!a.get(Kn,null,{optional:!0}))&&r.push({provide:Kn,useValue:{value:e.direction,change:ve()}}),_n.create({parent:a||s,providers:r})}_removeOpenDialog(e,n){const o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,a)=>{s?a.setAttribute("aria-hidden",s):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){const s=n[o];s!==e&&"SCRIPT"!==s.nodeName&&"STYLE"!==s.nodeName&&!s.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(s,s.getAttribute("aria-hidden")),s.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(n){return new(n||t)(H(Fi),H(_n),H(kle,8),H(t,12),H(P_),H(iF))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})();function vw(t,i){let e=t.length;for(;e--;)i(t[e])}let Fle=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({providers:[oF,Ple],imports:[Or,Ir,Vf,Ir]})}return t})();function Lle(t,i){}const Hd={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},Ble={dialogContainer:ei("dialogContainer",[ot("void, exit",xe({opacity:0,transform:"scale(0.7)"})),ot("enter",xe({transform:"none"})),Et("* => enter",_k([At("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",xe({transform:"none",opacity:1})),c_("@*",l_(),{optional:!0})]),Hd),Et("* => void, * => exit",_k([At("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",xe({opacity:0})),c_("@*",l_(),{optional:!0})]),Hd)])};class Eg{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",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,this.enterAnimationDuration=Hd.params.enterAnimationDuration,this.exitAnimationDuration=Hd.params.exitAnimationDuration}}let Vle=(()=>{class t extends nF{constructor(e,n,o,s,a,r,u,m){super(e,n,o,s,a,r,u,m),this._animationStateChanged=new W}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(dh),_(Ue,8),_(Eg),_(ch),_(be),_(qh),_($i))},t.\u0275cmp=U({type:t,selectors:[["ng-component"]],features:[te],decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})(),Hle=(()=>{class t extends Vle{constructor(e,n,o,s,a,r,u,m,g){super(e,n,o,s,a,r,u,g),this._changeDetectorRef=m,this._state="enter"}_onAnimationDone({toState:e,totalTime:n}){"enter"===e?this._openAnimationDone(n):"exit"===e&&this._animationStateChanged.next({state:"closed",totalTime:n})}_onAnimationStart({toState:e,totalTime:n}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:n})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||Hd.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||Hd.params.exitAnimationDuration}}}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(dh),_(Ue,8),_(Eg),_(ch),_(be),_(qh),_(He),_($i))},t.\u0275cmp=U({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(e,n){1&e&&zc("@dialogContainer.start",function(s){return n._onAnimationStart(s)})("@dialogContainer.done",function(s){return n._onAnimationDone(s)}),2&e&&(Qn("id",n._config.id),J("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),qc("@dialogContainer",n._getAnimationState()))},features:[te],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,n){1&e&&p(0,Lle,0,0,"ng-template",0)},dependencies:[xs],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[Ble.dialogContainer]}}),t})();class It{constructor(i,e,n){this._ref=i,this._containerInstance=n,this._afterOpened=new re,this._beforeClosed=new re,this._state=0,this.disableClose=e.disableClose,this.id=i.id,n._animationStateChanged.pipe(st(o=>"opened"===o.state),Xe(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(st(o=>"closed"===o.state),Xe(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),un(this.backdropClick(),this.keydownEvents().pipe(st(o=>27===o.keyCode&&!this.disableClose&&!li(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),sF(this,"keydown"===o.type?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(st(e=>"closing"===e.state),Xe(1)).subscribe(e=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,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(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function sF(t,i,e){return t._closeInteractionType=i,t.close(e)}const Pt=new Y("MatDialogData"),Ule=new Y("mat-dialog-default-options"),aF=new Y("mat-dialog-scroll-strategy"),jle={provide:aF,deps:[Fi],useFactory:function $le(t){return()=>t.scrollStrategies.block()}};let Gle=0,zle=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y){this._overlay=e,this._defaultOptions=o,this._parentDialog=s,this._dialogRefConstructor=u,this._dialogContainerType=m,this._dialogDataToken=g,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new re,this._afterOpenedAtThisLevel=new re,this._idPrefix="mat-dialog-",this.afterAllClosed=cr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(jt(void 0))),this._scrollStrategy=r,this._dialog=n.get(oF)}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}open(e,n){let o;(n={...this._defaultOptions||new Eg,...n}).id=n.id||`${this._idPrefix}${Gle++}`,n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();const s=this._dialog.open(e,{...n,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Eg,useValue:n},{provide:xg,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,r,u)=>(o=new this._dialogRefConstructor(a,n,u),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:o}])});return o.componentInstance=s.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{const a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}}return t.\u0275fac=function(e){zs()},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})(),Wt=(()=>{class t extends zle{constructor(e,n,o,s,a,r,u,m){super(e,n,s,r,u,a,It,Hle,Pt,m)}}return t.\u0275fac=function(e){return new(e||t)(H(Fi),H(_n),H(Ku,8),H(Ule,8),H(aF),H(t,12),H(P_),H(Fn,8))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})(),Wle=0,qle=(()=>{class t{constructor(e,n,o){this.dialogRef=e,this._elementRef=n,this._dialog=o,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=cF(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){const n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){sF(this.dialogRef,0===e.screenX&&0===e.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(_(It,8),_(oe),_(Wt))},t.\u0275dir=$({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,n){1&e&&M("click",function(s){return n._onButtonClick(s)}),2&e&&J("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[fe]}),t})(),rF=(()=>{class t{constructor(e,n,o){this._dialogRef=e,this._elementRef=n,this._dialog=o,this.id="mat-dialog-title-"+Wle++}ngOnInit(){this._dialogRef||(this._dialogRef=cF(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(_(It,8),_(oe),_(Wt))},t.\u0275dir=$({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,n){2&e&&Qn("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),qt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),lF=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(e,n){2&e&&de("mat-dialog-actions-align-center","center"===n.align)("mat-dialog-actions-align-end","end"===n.align)},inputs:{align:"align"}}),t})();function cF(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}let Ot=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[Wt,jle],imports:[Fle,Or,Ir,ze,ze]}),t})();function Yle(t,i){if(1&t&&(l(0,"mat-option",19),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T(" ",e," ")}}function Qle(t,i){if(1&t){const e=F();l(0,"mat-form-field",16)(1,"mat-select",17),M("selectionChange",function(o){return E(e),I(b(2)._changePageSize(o.value))}),p(2,Yle,2,2,"mat-option",18),d()()}if(2&t){const e=b(2);f("appearance",e._formFieldAppearance)("color",e.color),c(1),f("value",e.pageSize)("disabled",e.disabled)("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering)("aria-label",e._intl.itemsPerPageLabel),c(1),f("ngForOf",e._displayedPageSizeOptions)}}function Zle(t,i){if(1&t&&(l(0,"div",20),h(1),d()),2&t){const e=b(2);c(1),O(e.pageSize)}}function Kle(t,i){if(1&t&&(l(0,"div",12)(1,"div",13),h(2),d(),p(3,Qle,3,8,"mat-form-field",14),p(4,Zle,2,1,"div",15),d()),2&t){const e=b();c(2),T(" ",e._intl.itemsPerPageLabel," "),c(1),f("ngIf",e._displayedPageSizeOptions.length>1),c(1),f("ngIf",e._displayedPageSizeOptions.length<=1)}}function Xle(t,i){if(1&t){const e=F();l(0,"button",21),M("click",function(){return E(e),I(b().firstPage())}),ai(),l(1,"svg",7),D(2,"path",22),d()()}if(2&t){const e=b();f("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),J("aria-label",e._intl.firstPageLabel)}}function Jle(t,i){if(1&t){const e=F();ai(),vo(),l(0,"button",23),M("click",function(){return E(e),I(b().lastPage())}),ai(),l(1,"svg",7),D(2,"path",24),d()()}if(2&t){const e=b();f("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),J("aria-label",e._intl.lastPageLabel)}}let Ig=(()=>{class t{constructor(){this.changes=new re,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,n,o)=>{if(0==o||0==n)return`0 of ${o}`;const s=e*n;return`${s+1} \u2013 ${s<(o=Math.max(o,0))?Math.min(s+n,o):s+n} of ${o}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const tce={provide:Ig,deps:[[new Ko,new js,Ig]],useFactory:function ece(t){return t||new Ig}},ice=new Y("MAT_PAGINATOR_DEFAULT_OPTIONS"),oce=Ss(gO(class{}));let sce=(()=>{class t extends oce{constructor(e,n,o){if(super(),this._intl=e,this._changeDetectorRef=n,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new W,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),o){const{pageSize:s,pageSizeOptions:a,hidePageSize:r,showFirstLastButtons:u}=o;null!=s&&(this._pageSize=s),null!=a&&(this._pageSizeOptions=a),null!=r&&(this._hidePageSize=r),null!=u&&(this._showFirstLastButtons=u)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(ci(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=ci(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(ci(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ci(n)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=pe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=pe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndex<e&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(e){const o=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/e)||0,this.pageSize=e,this._emitPageEvent(o)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((e,n)=>e-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){zs()},t.\u0275dir=$({type:t,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[te]}),t})(),Ct=(()=>{class t extends sce{constructor(e,n,o){super(e,n,o),o&&null!=o.formFieldAppearance&&(this._formFieldAppearance=o.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(_(Ig),_(He),_(ice,8))},t.\u0275cmp=U({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[te],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","panelClass","disableOptionCentering","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,n){1&e&&(l(0,"div",0)(1,"div",1),p(2,Kle,5,3,"div",2),l(3,"div",3)(4,"div",4),h(5),d(),p(6,Xle,3,5,"button",5),l(7,"button",6),M("click",function(){return n.previousPage()}),ai(),l(8,"svg",7),D(9,"path",8),d()(),vo(),l(10,"button",9),M("click",function(){return n.nextPage()}),ai(),l(11,"svg",7),D(12,"path",10),d()(),p(13,Jle,3,5,"button",11),d()()()),2&e&&(c(2),f("ngIf",!n.hidePageSize),c(3),T(" ",n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)," "),c(1),f("ngIf",n.showFirstLastButtons),c(1),f("matTooltip",n._intl.previousPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),J("aria-label",n._intl.previousPageLabel),c(3),f("matTooltip",n._intl.nextPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),J("aria-label",n._intl.nextPageLabel),c(3),f("ngIf",n.showFirstLastButtons))},dependencies:[qe,le,Re,gt,Tn,Ft,mo],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{display:inline-block;width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}"],encapsulation:2,changeDetection:0}),t})(),Mi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[tce],imports:[ce,Ne,on,ki,ze]}),t})();const ace=[[["caption"]],[["colgroup"],["col"]]],rce=["caption","colgroup, col"];function yw(t){return class extends t{get sticky(){return this._sticky}set sticky(i){const e=this._sticky;this._sticky=pe(i),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const i=this._hasStickyChanged;return this._hasStickyChanged=!1,i}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...i){super(...i),this._sticky=!1,this._hasStickyChanged=!1}}}const Ud=new Y("CDK_TABLE");let $d=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),jd=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),Og=(()=>{class t{constructor(e){this.template=e}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})();class uce{}const hce=yw(uce);let Wa=(()=>{class t extends hce{get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const n=this._stickyEnd;this._stickyEnd=pe(e),this._hasStickyChanged=n!==this._stickyEnd}constructor(e){super(),this._table=e,this._stickyEnd=!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(n){return new(n||t)(_(Ud,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,s){if(1&n&&(Pe(s,$d,5),Pe(s,jd,5),Pe(s,Og,5)),2&n){let a;G(a=z())&&(o.cell=a.first),G(a=z())&&(o.headerCell=a.first),G(a=z())&&(o.footerCell=a.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[me([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),te]})}return t})();class Cw{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}}let ww=(()=>{class t extends Cw{constructor(e,n){super(e,n)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Wa),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[te]})}return t})(),Sw=(()=>{class t extends Cw{constructor(e,n){if(super(e,n),1===e._table?._elementRef.nativeElement.nodeType){const o=e._table._elementRef.nativeElement.getAttribute("role");n.nativeElement.setAttribute("role","grid"===o||"treegrid"===o?"gridcell":"cell")}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Wa),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[te]})}return t})();class uF{constructor(){this.tasks=[],this.endTasks=[]}}const Tw=new Y("_COALESCED_STYLE_SCHEDULER");let hF=(()=>{class t{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new re}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 uF,this._getScheduleObservable().pipe(Se(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new uF;for(const n of e.tasks)n();for(const n of e.endTasks)n()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?wi(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Xe(1))}static#e=this.\u0275fac=function(n){return new(n||t)(H(be))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac})}return t})(),Dw=(()=>{class t{constructor(e,n){this.template=e,this._differs=n}ngOnChanges(e){if(!this._columnsDiffer){const n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof gp?e.headerCell.template:this instanceof bp?e.footerCell.template:e.cell.template}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt),_(ns))};static#t=this.\u0275dir=$({type:t,features:[fe]})}return t})();class pce extends Dw{}const mce=yw(pce);let gp=(()=>{class t extends mce{constructor(e,n,o){super(e,n),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt),_(ns),_(Ud,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[te,fe]})}return t})();class fce extends Dw{}const _ce=yw(fce);let bp=(()=>{class t extends _ce{constructor(e,n,o){super(e,n),this._table=o}ngOnChanges(e){super.ngOnChanges(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt),_(ns),_(Ud,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[te,fe]})}return t})(),Rg=(()=>{class t extends Dw{constructor(e,n,o){super(e,n),this._table=o}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt),_(ns),_(Ud,8))};static#t=this.\u0275dir=$({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[te]})}return t})(),qa=(()=>{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(n){return new(n||t)(_(kn))};static#n=this.\u0275dir=$({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),Mw=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){1&n&&Jo(0,0)},dependencies:[qa],encapsulation:2})}return t})(),Ew=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){1&n&&Jo(0,0)},dependencies:[qa],encapsulation:2})}return t})(),kg=(()=>{class t{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(n){return new(n||t)(_(bt))};static#t=this.\u0275dir=$({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})();const pF=["top","bottom","left","right"];class gce{constructor(i,e,n,o,s=!0,a=!0,r){this._isNativeHtmlTable=i,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=o,this._isBrowser=s,this._needsPositionStickyOnElement=a,this._positionListener=r,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(i,e){const n=[];for(const o of i)if(o.nodeType===o.ELEMENT_NODE){n.push(o);for(let s=0;s<o.children.length;s++)n.push(o.children[s])}this._coalescedStyleScheduler.schedule(()=>{for(const o of n)this._removeStickyStyle(o,e)})}updateStickyColumns(i,e,n,o=!0){if(!i.length||!this._isBrowser||!e.some(S=>S)&&!n.some(S=>S))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=i[0],a=s.children.length,r=this._getCellWidths(s,o),u=this._getStickyStartColumnPositions(r,e),m=this._getStickyEndColumnPositions(r,n),g=e.lastIndexOf(!0),y=n.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const S="rtl"===this.direction,x=S?"right":"left",R=S?"left":"right";for(const k of i)for(let V=0;V<a;V++){const q=k.children[V];e[V]&&this._addStickyStyle(q,x,u[V],V===g),n[V]&&this._addStickyStyle(q,R,m[V],V===y)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===g?[]:r.slice(0,g+1).map((k,V)=>e[V]?k:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===y?[]:r.slice(y).map((k,V)=>n[V+y]?k:null).reverse()}))})}stickRows(i,e,n){if(!this._isBrowser)return;const o="bottom"===n?i.slice().reverse():i,s="bottom"===n?e.slice().reverse():e,a=[],r=[],u=[];for(let g=0,y=0;g<o.length;g++){if(!s[g])continue;a[g]=y;const S=o[g];u[g]=this._isNativeHtmlTable?Array.from(S.children):[S];const x=S.getBoundingClientRect().height;y+=x,r[g]=x}const m=s.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let g=0;g<o.length;g++){if(!s[g])continue;const y=a[g],S=g===m;for(const x of u[g])this._addStickyStyle(x,n,y,S)}"top"===n?this._positionListener?.stickyHeaderRowsUpdated({sizes:r,offsets:a,elements:u}):this._positionListener?.stickyFooterRowsUpdated({sizes:r,offsets:a,elements:u})})}updateStickyFooterContainer(i,e){if(!this._isNativeHtmlTable)return;const n=i.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(i,e){for(const o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);pF.some(o=>-1===e.indexOf(o)&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const o of pF)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],o=i.children;for(let s=0;s<o.length;s++)n.push(o[s].getBoundingClientRect().width);return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(i,e){const n=[];let o=0;for(let s=0;s<i.length;s++)e[s]&&(n[s]=o,o+=i[s]);return n}_getStickyEndColumnPositions(i,e){const n=[];let o=0;for(let s=i.length;s>0;s--)e[s]&&(n[s]=o,o+=i[s]);return n}}const Iw=new Y("CDK_SPL");let Ag=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Pg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Ng=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Fg=(()=>{class t{constructor(e,n){this.viewContainer=e,this.elementRef=n}static#e=this.\u0275fac=function(n){return new(n||t)(_(kn),_(oe))};static#t=this.\u0275dir=$({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),Lg=(()=>{class t{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=pe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=pe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(e,n,o,s,a,r,u,m,g,y,S,x){this._differs=e,this._changeDetectorRef=n,this._elementRef=o,this._dir=a,this._platform=u,this._viewRepeater=m,this._coalescedStyleScheduler=g,this._viewportRuler=y,this._stickyPositioningListener=S,this._ngZone=x,this._onDestroy=new re,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._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new W,this.viewChange=new ii({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","table"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,n)=>this.trackBy?this.trackBy(n.dataIndex,n.data):n),this._viewportRuler.change().pipe(Se(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,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()}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(),B_(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 n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,s,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{1===o.operation&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{n.get(o.currentIndex).context.$implicit=o.item.data}),this._updateNoDataRow(),this._ngZone&&be.isInAngularZone()?this._ngZone.onStable.pipe(Xe(1),Se(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),o=this._elementRef.nativeElement.querySelector("thead");o&&(o.style.display=e.length?"":"none");const s=this._headerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,s,"top"),this._headerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),o=this._elementRef.nativeElement.querySelector("tfoot");o&&(o.style.display=e.length?"":"none");const s=this._footerRowDefs.map(a=>a.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,s,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,s),this._footerRowDefs.forEach(a=>a.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((s,a)=>{this._addStickyColumnStyles([s],this._headerRowDefs[a])}),this._rowDefs.forEach(s=>{const a=[];for(let r=0;r<n.length;r++)this._renderRows[r].rowDef===s&&a.push(n[r]);this._addStickyColumnStyles(a,s)}),o.forEach((s,a)=>{this._addStickyColumnStyles([s],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(s=>s.resetStickyChanged())}_getAllRenderRows(){const e=[],n=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let o=0;o<this._data.length;o++){let s=this._data[o];const a=this._getRenderRowsForData(s,o,n.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let r=0;r<a.length;r++){let u=a[r];const m=this._cachedRenderRowsMap.get(u.data);m.has(u.rowDef)?m.get(u.rowDef).push(u):m.set(u.rowDef,[u]),e.push(u)}}return e}_getRenderRowsForData(e,n,o){return this._getRowDefs(e,n).map(a=>{const r=o&&o.has(a)?o.get(a):[];if(r.length){const u=r.shift();return u.dataIndex=n,u}return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Bg(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=Bg(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Bg(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Bg(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(n=>!n.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(a,r)=>a||!!r.getColumnsDiff(),n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();const o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),n||o||s}_switchDataSource(e){this._data=[],B_(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;B_(this.dataSource)?e=this.dataSource.connect(this):Fo(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=ve(this.dataSource)),this._renderChangeSubscription=e.pipe(Se(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){const o=Array.from(n.columns||[]).map(r=>this._columnDefsByName.get(r)),s=o.map(r=>r.sticky),a=o.map(r=>r.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const n=[];for(let o=0;o<e.viewContainer.length;o++){const s=e.viewContainer.get(o);n.push(s.rootNodes[0])}return n}_getRowDefs(e,n){if(1==this._rowDefs.length)return[this._rowDefs[0]];let o=[];if(this.multiTemplateDataRows)o=this._rowDefs.filter(s=>!s.when||s.when(n,e));else{let s=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;s&&o.push(s)}return o}_getEmbeddedViewArgs(e,n){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:n}}_renderRow(e,n,o,s={}){const a=e.viewContainer.createEmbeddedView(n.template,s,o);return this._renderCellTemplateForItem(n,s),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))qa.mostRecentCellOutlet&&qa.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n<o;n++){const a=e.get(n).context;a.count=o,a.first=0===n,a.last=n===o-1,a.even=n%2==0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[n].dataIndex,a.renderIndex=n):a.index=this._renderRows[n].dataIndex}}_getCellTemplates(e){return e&&e.columns?Array.from(e.columns,n=>{const o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),n=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const o of n){const s=this._document.createElement(o.tag);s.setAttribute("role","rowgroup");for(const a of o.outlets)s.appendChild(a.elementRef.nativeElement);e.appendChild(s)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(n,o)=>n||o.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 gce(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:ve()).pipe(Se(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const n=0===this._rowOutlet.viewContainer.length;if(n===this._isShowingNoDataRow)return;const o=this._noDataRowOutlet.viewContainer;if(n){const s=o.createEmbeddedView(e.templateRef),a=s.rootNodes[0];1===s.rootNodes.length&&a?.nodeType===this._document.ELEMENT_NODE&&(a.setAttribute("role","row"),a.classList.add(e._contentClassName))}else o.clear();this._isShowingNoDataRow=n,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(n){return new(n||t)(_(ns),_(He),_(oe),Si("role"),_(Kn,8),_(Ue),_(Bn),_(Kh),_(Tw),_(ea),_(Iw,12),_(be,8))};static#t=this.\u0275cmp=U({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(n,o,s){if(1&n&&(Pe(s,kg,5),Pe(s,Wa,5),Pe(s,Rg,5),Pe(s,gp,5),Pe(s,bp,5)),2&n){let a;G(a=z())&&(o._noDataRow=a.first),G(a=z())&&(o._contentColumnDefs=a),G(a=z())&&(o._contentRowDefs=a),G(a=z())&&(o._contentHeaderRowDefs=a),G(a=z())&&(o._contentFooterRowDefs=a)}},viewQuery:function(n,o){if(1&n&&(ne(Ag,7),ne(Pg,7),ne(Ng,7),ne(Fg,7)),2&n){let s;G(s=z())&&(o._rowOutlet=s.first),G(s=z())&&(o._headerRowOutlet=s.first),G(s=z())&&(o._footerRowOutlet=s.first),G(s=z())&&(o._noDataRowOutlet=s.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(n,o){2&n&&de("cdk-table-fixed-layout",o.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[me([{provide:Ud,useExisting:t},{provide:Kh,useClass:XA},{provide:Tw,useClass:hF},{provide:Iw,useValue:null}])],ngContentSelectors:rce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){1&n&&(Dt(ace),$e(0),$e(1,1),Jo(2,0)(3,1)(4,2)(5,3))},dependencies:[Ag,Pg,Ng,Fg],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return t})();function Bg(t,i){return t.concat(Array.from(i))}let vce=(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[xC]})}return t})();const yce=[[["caption"]],[["colgroup"],["col"]]],Cce=["caption","colgroup, col"];let sn=(()=>{class t extends Lg{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,n){2&e&&de("mat-table-fixed-layout",n.fixedLayout)},exportAs:["matTable"],features:[me([{provide:Kh,useClass:XA},{provide:Lg,useExisting:t},{provide:Ud,useExisting:t},{provide:Tw,useClass:hF},{provide:Iw,useValue:null}]),te],ngContentSelectors:Cce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,n){1&e&&(Dt(yce),$e(0),$e(1,1),Jo(2,0)(3,1)(4,2)(5,3))},dependencies:[Ag,Pg,Ng,Fg],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),t})(),Yt=(()=>{class t extends $d{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","matCellDef",""]],features:[me([{provide:$d,useExisting:t}]),te]}),t})(),Qt=(()=>{class t extends jd{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","matHeaderCellDef",""]],features:[me([{provide:jd,useExisting:t}]),te]}),t})(),Zt=(()=>{class t extends Wa{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[me([{provide:Wa,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),te]}),t})(),Kt=(()=>{class t extends ww{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[te]}),t})(),Xt=(()=>{class t extends Sw{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[te]}),t})(),an=(()=>{class t extends gp{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[me([{provide:gp,useExisting:t}]),te]}),t})(),rn=(()=>{class t extends Rg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275dir=$({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[me([{provide:Rg,useExisting:t}]),te]}),t})(),ln=(()=>{class t extends Mw{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[me([{provide:Mw,useExisting:t}]),te],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jo(0,0)},dependencies:[qa],encapsulation:2}),t})(),cn=(()=>{class t extends Ew{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[me([{provide:Ew,useExisting:t}]),te],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,n){1&e&&Jo(0,0)},dependencies:[qa],encapsulation:2}),t})(),Jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({imports:[vce,ze,ze]}),t})();class kce extends L_{constructor(i=[]){super(),this._renderData=new ii([]),this._filter=new ii(""),this._internalPageChanges=new re,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,n)=>{const o=e[n];if(QI(o)){const s=Number(o);return s<9007199254740991?s:o}return o},this.sortData=(e,n)=>{const o=n.active,s=n.direction;return o&&""!=s?e.sort((a,r)=>{let u=this.sortingDataAccessor(a,o),m=this.sortingDataAccessor(r,o);const g=typeof u,y=typeof m;g!==y&&("number"===g&&(u+=""),"number"===y&&(m+=""));let S=0;return null!=u&&null!=m?u>m?S=1:u<m&&(S=-1):null!=u?S=1:null!=m&&(S=-1),S*("asc"==s?1:-1)}):e},this.filterPredicate=(e,n)=>{const o=Object.keys(e).reduce((a,r)=>a+e[r]+"\u25ec","").toLowerCase(),s=n.trim().toLowerCase();return-1!=o.indexOf(s)},this._data=new ii(i),this._updateChangeSubscription()}get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_updateChangeSubscription(){const i=this._sort?un(this._sort.sortChange,this._sort.initialized):ve(null),e=this._paginator?un(this._paginator.page,this._internalPageChanges,this._paginator.initialized):ve(null),o=ml([this._data,this._filter]).pipe(Le(([r])=>this._filterData(r))),s=ml([o,i]).pipe(Le(([r])=>this._orderData(r))),a=ml([s,e]).pipe(Le(([r])=>this._pageData(r)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(r=>this._renderData.next(r))}_filterData(i){return this.filteredData=null==this.filter||""===this.filter?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;const e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){const n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}class ke extends kce{}class Ace{http;prefix;suffix;constructor(i,e="/assets/i18n/",n=".json"){this.http=i,this.prefix=e,this.suffix=n}getTranslation(i){return this.http.get(`${this.prefix}${i}${this.suffix}`)}}class fF{constructor(){this.id=null,this.name="",this.password="",this.user=null}}class _F{static MatchPassword(i){const e=i.get("newPassword")?.value,n=i.get("confirmPassword")?.value;return e===n||i.get("confirmPassword")?.setErrors({MatchPassword:!0}),null}}function Nce(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function Fce(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}let Lce=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0;let e=v.userId;this.entity?this.entity.user&&(e=this.entity.user.id):(this.entity=new fF,e=v.userId),this.service=new Q(v.apiURLs.rootURL+"users/"+e+"/apiusers",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],newPassword:["",ue.required],confirmPassword:["",ue.required]},{validator:_F.MatchPassword})}get newPassword(){return this.options.get("newPassword")}get confirmPassword(){return this.options.get("confirmPassword")}get title(){return this.translateService.instant(null==this.entity.id?"apiuser_add_new":"apiuser_edit")}onNoClick(){this.inputOnClose()}onSave(){if(!0===this.options.valid){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.password=this.options.value.newPassword;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}}get nameLimit(){return 250}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-api-user-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:29,vars:23,consts:[[3,"formGroup","ngSubmit"],["f","ngForm"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["type","password","name","newPassword","matInput","","required","","formControlName","newPassword",3,"placeholder"],[4,"ngIf"],["type","password","name","confirmPassword","matInput","","required","","formControlName","confirmPassword",3,"placeholder"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"]],template:function(n,o){if(1&n&&(l(0,"form",0,1),M("ngSubmit",function(){return o.onSave()}),l(2,"p",2),h(3),d(),l(4,"mat-form-field",3),D(5,"input",4,5),C(7,"translate"),l(8,"mat-hint",6),h(9),d()(),D(10,"br"),l(11,"mat-form-field",3),D(12,"input",7),C(13,"translate"),p(14,Nce,3,3,"mat-error",8),d(),D(15,"br"),l(16,"mat-form-field",3),D(17,"input",9),C(18,"translate"),p(19,Fce,3,3,"mat-error",8),d(),D(20,"mat-divider"),l(21,"p")(22,"button",10),h(23),C(24,"translate"),d(),h(25," \xa0"),l(26,"button",11),M("click",function(){return o.onNoClick()}),h(27),C(28,"translate"),d()()()),2&n){const s=X(6);f("formGroup",o.options),c(3),O(o.title),c(2),N("placeholder",w(7,13,"general_name")),J("maxlength",o.nameLimit),c(4),We("",s.value.length," / ",o.nameLimit,""),c(3),N("placeholder",w(13,15,"settings_password_new")),c(2),f("ngIf",null==o.newPassword?null:o.newPassword.hasError("required")),c(3),N("placeholder",w(18,17,"settings_password_confirm")),c(2),f("ngIf",null==o.confirmPassword?null:o.confirmPassword.hasError("required")),c(3),f("disabled",o.options.invalid),c(1),O(w(24,19,"general_save")),c(4),O(w(28,21,"general_close"))}},dependencies:[xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,Ni,zt,wn,ce,le,gn,xn,Ne,Re,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Bce=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-api-user-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-api-user-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Lce]})}return t})();function Vce(t,i){if(1&t&&(l(0,"span"),h(1),d()),2&t){const e=b();c(1),O(e.data.title)}}function Hce(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_deleting_message")))}let en=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n}onNoClick(){this.dialogRef.close(!1)}onYesClick(){this.dialogRef.close(!0)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-confirmation-dialog"]],standalone:!0,features:[Z],decls:13,vars:9,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"mat-body",3,"innerHTML"],["mat-raised-button","",3,"click"]],template:function(n,o){1&n&&(l(0,"h1",0),p(1,Vce,2,1,"span",1),p(2,Hce,3,3,"span",1),d(),l(3,"mat-dialog-content"),D(4,"span",2),d(),l(5,"mat-dialog-actions")(6,"button",3),M("click",function(){return o.onYesClick()}),h(7),C(8,"translate"),d(),h(9," \xa0"),l(10,"button",3),M("click",function(){return o.onNoClick()}),h(11),C(12,"translate"),d()()),2&n&&(c(1),f("ngIf",o.data.title),c(1),f("ngIf",!o.data.title),c(2),f("innerHTML",o.data.content,z2),c(3),O(w(8,5,"general_yes")),c(4),O(w(12,7,"general_no")))},dependencies:[Ot,rF,qt,lF,ce,le,Ne,Re,_e,we]})}return t})();function Uce(t,i){1&t&&(l(0,"th",15),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function $ce(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function jce(t,i){1&t&&(l(0,"th",15),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function Gce(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function zce(t,i){1&t&&(l(0,"th",15),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function Wce(t,i){if(1&t){const e=F();l(0,"td",16)(1,"span")(2,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",18),h(4,"create"),d()()()()}}function qce(t,i){1&t&&(l(0,"th",15),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Yce(t,i){if(1&t){const e=F();l(0,"td",16)(1,"span")(2,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",18),h(4,"delete"),d()()()()}}function Qce(t,i){1&t&&D(0,"tr",19)}function Zce(t,i){1&t&&D(0,"tr",20)}function Kce(t,i){if(1&t&&(l(0,"table",6),A(1,7),p(2,Uce,3,3,"th",8),p(3,$ce,2,1,"td",9),P(),A(4,10),p(5,jce,3,3,"th",8),p(6,Gce,2,1,"td",9),P(),A(7,11),p(8,zce,3,3,"th",8),p(9,Wce,5,0,"td",9),P(),A(10,12),p(11,qce,3,3,"th",8),p(12,Yce,5,0,"td",9),P(),p(13,Qce,1,0,"tr",13),p(14,Zce,1,0,"tr",14),d()),2&t){const e=b();f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function Xce(t,i){if(1&t){const e=F();l(0,"button",21),M("click",function(){return E(e),I(b().openEditDialog())}),l(1,"mat-icon",18),h(2,"add"),d()()}}function Jce(t,i){1&t&&(l(0,"div",22),D(1,"mat-spinner",23),d())}function ede(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",24),h(2,"done"),d()())}function tde(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",25),h(2,"clear"),d()())}const nde=function(){return[5,10,25,100]};let gF=(()=>{class t{set content(e){this.dataSource&&(this.dataSource.sort=e)}constructor(e,n,o,s){this.http=e,this.updateDialog=n,this.snackBar=o,this.route=s,this.onProgress=0,this.columnsToDisplay=["id","name","edit","delete"],this.apiUsers=[],this.userId=0}ngOnInit(){this.ngOnChanges()}ngOnChanges(){this.onProgress=0,this.route.paramMap.subscribe(e=>{this.userId=+e.get("userId"),this.inputUser&&(this.userId=this.inputUser.id),this.userId?(this.service=new Q(v.apiURLs.rootURL+"users/"+this.userId+"/apiusers",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(n=>{this.apiUsers=n,Array.isArray(this.apiUsers)&&(this.dataSource=new ke(this.apiUsers),this.dataSource.paginator=this.paginator)}),v.userType===Be.ACCOUNT_TYPE_ADMIN&&(this.columnsToDisplay=["id","name","edit","delete"])):(this.service=new Q(v.apiURLs.rootURL+"users/"+v.userId+"/apiusers",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(n=>{this.apiUsers=n,Array.isArray(this.apiUsers)&&(this.dataSource=new ke(this.apiUsers),this.dataSource.paginator=this.paginator)}))})}get dataSize(){return 0}openEditDialog(e){null==e&&((e=new fF).id=null),this.inputUser&&(e.user={id:this.inputUser.id});const n=this.updateDialog.open(Bce,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnChanges())}get showAddButton(){return v.userType===Be.ACCOUNT_TYPE_ADMIN||this.apiUsers.length<v.ApiUsersLimit}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnChanges())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn),_(cs))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-api-users-list"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,5)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.content=s.first)}},inputs:{inputUser:"inputUser"},standalone:!0,features:[fe,Z],decls:8,vars:10,consts:[[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["mat-fab","","color","accent","class","",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],[1,"mat-24"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-fab","","color","accent",1,"",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,Kce,15,3,"table",1),D(2,"mat-paginator",2,3),p(4,Xce,3,0,"button",4),d(),p(5,Jce,2,0,"div",5),p(6,ede,3,0,"div",5),p(7,tde,3,0,"div",5)),2&n&&(c(1),f("ngIf",0==o.onProgress),c(1),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,nde)),c(2),f("ngIf",o.showAddButton),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();function ide(t,i){1&t&&(l(0,"div",7),D(1,"mat-spinner"),d())}function ode(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function sde(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function ade(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function rde(t,i){if(1&t){const e=F();l(0,"div")(1,"form",8,9),M("ngSubmit",function(){E(e);const o=X(2);return I(b(2).onSubmit(o))}),l(3,"mat-card-content")(4,"mat-form-field",10),D(5,"input",11),C(6,"translate"),p(7,ode,3,3,"mat-error",6),d(),l(8,"mat-form-field",10),D(9,"input",12),C(10,"translate"),p(11,sde,3,3,"mat-error",6),d(),l(12,"mat-form-field",10),D(13,"input",13),C(14,"translate"),p(15,ade,3,3,"mat-error",6),d()(),l(16,"mat-card-actions")(17,"button",14),h(18),C(19,"translate"),d(),l(20,"button",15),h(21),C(22,"translate"),d()()()()}if(2&t){const e=b(2);c(1),f("formGroup",e.form),c(4),N("placeholder",w(6,9,"settings_password_current")),c(2),f("ngIf",e.currentPassword.hasError("required")),c(2),N("placeholder",w(10,11,"settings_password_new")),c(2),f("ngIf",e.newPassword.hasError("required")),c(2),N("placeholder",w(14,13,"settings_password_confirm")),c(2),f("ngIf",e.confirmPassword.hasError("required")),c(3),O(w(19,15,"general_submit")),c(3),O(w(22,17,"login_clear"))}}function lde(t,i){if(1&t&&(l(0,"mat-card",3)(1,"mat-card-header")(2,"mat-card-title")(3,"h2",4),h(4),C(5,"translate"),d()()(),p(6,ide,2,0,"div",5),p(7,rde,23,19,"div",6),d()),2&t){const e=b();c(4),O(w(5,3,"settings_password_form")),c(2),f("ngIf",e.onProgress),c(1),f("ngIf",!e.onProgress)}}function cde(t,i){1&t&&(l(0,"div",16),D(1,"mat-spinner",7),d())}function dde(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",17),h(2,"done"),d()())}function ude(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",18),h(2,"clear"),d()())}let hde=(()=>{class t{constructor(e,n,o,s){this.http=e,this.snackBar=o,this.translateService=s,this.onProgress=0,this.form=n.group({currentPassword:["",ue.required],newPassword:["",ue.required],confirmPassword:["",ue.required]},{validator:_F.MatchPassword})}get currentPassword(){return this.form.get("currentPassword")}get newPassword(){return this.form.get("newPassword")}get confirmPassword(){return this.form.get("confirmPassword")}ngOnInit(){this.service=new Q(v.apiURLs.rootURL+"users/"+v.userId+"/password",this.http)}onSubmit(e){!0===e.valid&&(this.onProgress=1,this.service.put(e.value).subscribe(n=>{this.onProgress=2,this.snackBar.open(this.translateService.instant("settings_password_success"),"",{duration:v.snackBarDuration}),v.loggedIn=!1},n=>{this.onProgress=3,this.snackBar.open(n.originalError,"",{duration:v.snackBarDuration})}))}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(mn),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-password-admin-form"]],standalone:!0,features:[Z],decls:5,vars:4,consts:[[2,"flex","1","text-align","center","position","sticky"],["class","example-card",4,"ngIf"],["class","screen-centered",4,"ngIf"],[1,"example-card"],[1,"mat-h2"],["style","display: inline-block;",4,"ngIf"],[4,"ngIf"],[2,"display","inline-block"],[3,"formGroup","ngSubmit"],["f","ngForm"],[1,"example-full-width"],["type","password","name","currentPassword","matInput","","required","","formControlName","currentPassword",3,"placeholder"],["type","password","name","newPassword","matInput","","required","","formControlName","newPassword",3,"placeholder"],["type","password","name","confirmPassword","matInput","","required","","formControlName","confirmPassword",3,"placeholder"],["mat-button","","type","submit"],["mat-button","","type","reset"],[1,"screen-centered"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,lde,8,5,"mat-card",1),p(2,cde,2,0,"div",2),p(3,dde,3,0,"div",2),p(4,ude,3,0,"div",2),d()),2&n&&(c(1),f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,ta,Fa,hd,ud,Oh,p_,je,Fe,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,zt,wn,Ne,Re,Me,Oe,_e,we],styles:[".example-card[_ngcontent-%COMP%]{display:inline-block;margin:20px;padding:1em!important}.example-full-width[_ngcontent-%COMP%]{width:100%}"]})}return t})();class pde{static MatchEmail(i){const e=i.get("email")?.value,n=i.get("confirmEmail")?.value;return e===n||i.get("confirmEmail")?.setErrors({MatchEmail:!0}),null}}function mde(t,i){1&t&&(l(0,"div",7),D(1,"mat-spinner"),d())}function fde(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_invalid")," "))}function _de(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_required")," "))}function gde(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_invalid")," "))}function bde(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_required")," "))}function vde(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_password_required")," "))}function yde(t,i){if(1&t){const e=F();l(0,"div")(1,"form",8,9),M("ngSubmit",function(){E(e);const o=X(2);return I(b(2).onSubmit(o))}),l(3,"mat-card-content")(4,"mat-form-field",10),D(5,"input",11),C(6,"translate"),p(7,fde,3,3,"mat-error",6),p(8,_de,3,3,"mat-error",6),d(),l(9,"mat-form-field",10),D(10,"input",12),C(11,"translate"),p(12,gde,3,3,"mat-error",6),p(13,bde,3,3,"mat-error",6),d(),l(14,"mat-form-field",10),D(15,"input",13),C(16,"translate"),p(17,vde,3,3,"mat-error",6),d()(),l(18,"mat-card-actions")(19,"button",14),h(20),C(21,"translate"),d(),l(22,"button",15),h(23),C(24,"translate"),d()()()()}if(2&t){const e=b(2);c(1),f("formGroup",e.form),c(4),N("placeholder",w(6,11,"settings_email_new")),c(2),f("ngIf",e.email.hasError("pattern")),c(1),f("ngIf",e.email.hasError("required")),c(2),N("placeholder",w(11,13,"settings_email_new_confirm")),c(2),f("ngIf",e.confirmEmail.hasError("pattern")),c(1),f("ngIf",e.confirmEmail.hasError("required")),c(2),N("placeholder",w(16,15,"general_password")),c(2),f("ngIf",e.password.hasError("required")),c(3),O(w(21,17,"general_submit")),c(3),O(w(24,19,"login_clear"))}}function Cde(t,i){if(1&t&&(l(0,"mat-card",3)(1,"mat-card-header")(2,"mat-card-title")(3,"h2",4),h(4),C(5,"translate"),d()()(),p(6,mde,2,0,"div",5),p(7,yde,25,21,"div",6),d()),2&t){const e=b();c(4),O(w(5,3,"settings_email_form")),c(2),f("ngIf",e.onProgress),c(1),f("ngIf",!e.onProgress)}}function wde(t,i){1&t&&(l(0,"div",16),D(1,"mat-spinner",7),d())}function Sde(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",17),h(2,"done"),d()())}function Tde(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",18),h(2,"clear"),d()())}const bF=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;let Dde=(()=>{class t{constructor(e,n,o,s){this.http=e,this.snackBar=o,this.translateService=s,this.onProgress=0,this.form=n.group({password:["",ue.required],email:["",[ue.required,ue.pattern(bF)]],confirmEmail:["",[ue.required,ue.pattern(bF)]]},{validator:pde.MatchEmail})}get password(){return this.form.get("password")}get email(){return this.form.get("email")}get confirmEmail(){return this.form.get("confirmEmail")}ngOnInit(){this.service=new Q(v.apiURLs.rootURL+"users/"+v.userId+"/email",this.http)}onSubmit(e){!0===e.valid&&(this.onProgress=1,this.service.put(e.value).subscribe(n=>{this.onProgress=2,this.snackBar.open(this.translateService.instant("settings_email_success"),"",{duration:v.snackBarDuration}),v.loggedIn=!1},n=>{this.onProgress=3,this.snackBar.open(n.originalError,"",{duration:v.snackBarDuration})}))}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(mn),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-email-admin-form"]],standalone:!0,features:[Z],decls:5,vars:4,consts:[[1,"",2,"flex","1","text-align","center"],["class","example-card email-form",4,"ngIf"],["class","screen-centered",4,"ngIf"],[1,"example-card","email-form"],[1,"mat-h2"],["style","display: inline-block;",4,"ngIf"],[4,"ngIf"],[2,"display","inline-block"],[3,"formGroup","ngSubmit"],["f","ngForm"],[1,"example-full-width"],["type","email","name","email","matInput","","required","","formControlName","email",3,"placeholder"],["type","confirmEmail","name","confirmEmail","matInput","","required","","formControlName","confirmEmail",3,"placeholder"],["type","password","name","password","matInput","","required","","formControlName","password",3,"placeholder"],["mat-button","","type","submit"],["mat-button","","type","reset"],[1,"screen-centered"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,Cde,8,5,"mat-card",1),p(2,wde,2,0,"div",2),p(3,Sde,3,0,"div",2),p(4,Tde,3,0,"div",2),d()),2&n&&(c(1),f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,ta,Fa,hd,ud,Oh,p_,je,Fe,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,zt,wn,Ne,Re,Me,Oe,_e,we],styles:[".example-card[_ngcontent-%COMP%]{display:inline-block;margin:20px}.example-full-width[_ngcontent-%COMP%]{width:100%}.email-form[_ngcontent-%COMP%]{padding:1em!important}"]})}return t})();function Mde(t,i){1&t&&(l(0,"mat-tab",1),C(1,"translate"),D(2,"app-api-users-list"),d()),2&t&&N("label",w(1,1,"general_api_users"))}let xde=(()=>{class t{constructor(){}get isCustomer(){return v.userType===Be.ACCOUNT_TYPE_CUSTOMER}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-user-settings"]],standalone:!0,features:[Z],decls:8,vars:7,consts:[[2,"height","100%"],[3,"label"],[3,"label",4,"ngIf"]],template:function(n,o){1&n&&(l(0,"mat-tab-group",0)(1,"mat-tab",1),C(2,"translate"),D(3,"app-email-admin-form"),d(),l(4,"mat-tab",1),C(5,"translate"),D(6,"app-password-admin-form"),d(),p(7,Mde,3,3,"mat-tab",2),d()),2&n&&(c(1),N("label",w(2,3,"settings_email")),c(3),N("label",w(5,5,"settings_password")),c(3),f("ngIf",o.isCustomer))},dependencies:[Tg,_w,Sg,Dde,hde,ce,le,gF,_e,we]})}return t})(),da=(()=>{class t{constructor(){this.id=null,this.footballStat=null,this.basketballStat=null,this.plannedStartingTime=null,this.coverageMethod=t.COVERAGE_VOICE,this.assignedReporter=null,this.assignedModerators=null,this.matchPurchases=null,this.coverageSuggestions=null,this.comment=null,this.trainingMatch=!1,this.homeTeam=null,this.awayTeam=null,this.homeColorPrimary=null,this.homeColorSecondary=null,this.awayColorPrimary=null,this.awayColorSecondary=null,this.groundSide=t.GROUND_HOME,this.attendance=null,this.competition=null,this.matchFormat=null,this.__eventsList__=[],this.weatherCondition=null,this.pitchCondition=null,this.closedGame=!1,this.masterClosedGame=!1,this.reportingBlocked=!1,this.reporterInsideVenue=!1,this.reporterCommunication=null,this.matchFinished=!1,this.price=0,this.region=null,this.coverageStatus="pending",this.homeLineup="",this.awayLineup="",this.isReporterOffline=!1,this.stadium=null,this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.stage=null,this.sport=null,this.currentWeek="1",this.coverageDepth="1",this.canBeCovered=!1,this.qualityIncidents=[],this.alreadyPurchased=!1}static#e=this.COVERAGE_MOBILE="M";static#t=this.COVERAGE_VOICE="V";static#n=this.GROUND_NEUTRAL="N";static#i=this.GROUND_HOME="H";static#o=this.GROUND_AWAY="A";static#s=this.KICKOFF_HOME="H";static#a=this.KICKOFF_AWAY="A"}return t})();class Gd{constructor(){this.id=null,this.name="",this.description="",this.sport=null}static#e=this.regularTime={id:1,name:"regular time",sport:{id:1},description:"match ends with regular time"};static#t=this.regularAndPenalties={id:3,name:"regular time & penalties",sport:{id:1},description:"match goes to penalties directly after a draw in regular time"};static#n=this.regularExtraPenalties={id:4,name:"regular time & extra time & penalties",sport:{id:1},description:"match will go to extra time then penalties in case of draw"};static#i=this.MatchFormatz=[Gd.regularTime,Gd.regularAndPenalties,Gd.regularExtraPenalties]}const Ede=["mat-calendar-body",""];function Ide(t,i){if(1&t&&(l(0,"tr",2)(1,"td",3),h(2),d()()),2&t){const e=b();c(1),it("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),J("colspan",e.numCols),c(1),T(" ",e.label," ")}}function Ode(t,i){if(1&t&&(l(0,"td",3),h(1),d()),2&t){const e=b(2);it("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),J("colspan",e._firstRowOffset),c(1),T(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Rde(t,i){if(1&t){const e=F();l(0,"td",7)(1,"button",8),M("click",function(o){const a=E(e).$implicit;return I(b(2)._cellClicked(a,o))})("focus",function(o){const a=E(e).$implicit;return I(b(2)._emitActiveDateChange(a,o))}),l(2,"div",9),h(3),d(),D(4,"div",10),d()()}if(2&t){const e=i.$implicit,n=i.index,o=b().index,s=b();it("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),J("data-mat-row",o)("data-mat-col",n),c(1),de("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",s._isActiveCell(o,n))("mat-calendar-body-range-start",s._isRangeStart(e.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",s._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",s._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",s._isInPreview(e.compareValue)),f("ngClass",e.cssClasses)("tabindex",s._isActiveCell(o,n)?0:-1),J("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",s._isSelected(e.compareValue))("aria-current",s.todayValue===e.compareValue?"date":null),c(1),de("mat-calendar-body-selected",s._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",s.todayValue===e.compareValue),c(1),T(" ",e.displayValue," ")}}function kde(t,i){if(1&t&&(l(0,"tr",4),p(1,Ode,2,6,"td",5),p(2,Rde,5,47,"td",6),d()),2&t){const e=i.$implicit,n=i.index,o=b();c(1),f("ngIf",0===n&&o._firstRowOffset),c(1),f("ngForOf",e)}}function Ade(t,i){if(1&t&&(l(0,"th",5)(1,"span",6),h(2),d(),l(3,"span",7),h(4),d()()),2&t){const e=i.$implicit;c(2),O(e.long),c(2),O(e.narrow)}}const Pde=["*"];function Nde(t,i){}function Fde(t,i){if(1&t){const e=F();l(0,"mat-month-view",5),M("activeDateChange",function(o){return E(e),I(b().activeDate=o)})("_userSelection",function(o){return E(e),I(b()._dateSelected(o))}),d()}if(2&t){const e=b();f("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function Lde(t,i){if(1&t){const e=F();l(0,"mat-year-view",6),M("activeDateChange",function(o){return E(e),I(b().activeDate=o)})("monthSelected",function(o){return E(e),I(b()._monthSelectedInYearView(o))})("selectedChange",function(o){return E(e),I(b()._goToDateInView(o,"month"))}),d()}if(2&t){const e=b();f("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Bde(t,i){if(1&t){const e=F();l(0,"mat-multi-year-view",7),M("activeDateChange",function(o){return E(e),I(b().activeDate=o)})("yearSelected",function(o){return E(e),I(b()._yearSelectedInMultiYearView(o))})("selectedChange",function(o){return E(e),I(b()._goToDateInView(o,"year"))}),d()}if(2&t){const e=b();f("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Vde(t,i){}const Hde=["button"];function Ude(t,i){1&t&&(ai(),l(0,"svg",3),D(1,"path",4),d())}const $de=[[["","matDatepickerToggleIcon",""]]],jde=["[matDatepickerToggleIcon]"],Gde=[[["input","matStartDate",""]],[["input","matEndDate",""]]],zde=["input[matStartDate]","input[matEndDate]"];let vp=(()=>{class t{constructor(){this.changes=new re,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Ow{constructor(i,e,n,o,s={},a=i,r){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.cssClasses=s,this.compareValue=a,this.rawValue=r}}let zd=(()=>{class t{constructor(e,n){this._elementRef=e,this._ngZone=n,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new W,this.previewChange=new W,this.activeDateChange=new W,this._enterHandler=o=>{if(this._skipNextFocus&&"focus"===o.type)this._skipNextFocus=!1;else if(o.target&&this.isRange){const s=this._getCellFromElement(o.target);s&&this._ngZone.run(()=>this.previewChange.emit({value:s.enabled?s:null,event:o}))}},this._leaveHandler=o=>{null!==this.previewEnd&&this.isRange&&o.target&&this._getCellFromElement(o.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:o}))},n.runOutsideAngular(()=>{const o=e.nativeElement;o.addEventListener("mouseenter",this._enterHandler,!0),o.addEventListener("focus",this._enterHandler,!0),o.addEventListener("mouseleave",this._leaveHandler,!0),o.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,n){e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const n=e.numCols,{rows:o,numCols:s}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?s-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/s+"%"),(n||!this._cellWidth)&&(this._cellWidth=100/s+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>{setTimeout(()=>{const n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Rw(e,this.startValue,this.endValue)}_isRangeEnd(e){return kw(e,this.startValue,this.endValue)}_isInRange(e){return Aw(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Rw(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let s=this.rows[n][o-1];if(!s){const a=this.rows[n-1];s=a&&a[a.length-1]}return s&&!this._isRangeEnd(s.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let s=this.rows[n][o+1];if(!s){const a=this.rows[n+1];s=a&&a[0]}return s&&!this._isRangeStart(s.compareValue)}_isComparisonEnd(e){return kw(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Aw(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Rw(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return kw(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Aw(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let n;if(vF(e)?n=e:vF(e.parentNode)&&(n=e.parentNode),n){const o=n.getAttribute("data-mat-row"),s=n.getAttribute("data-mat-col");if(o&&s)return this.rows[parseInt(o)][parseInt(s)]}return null}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(be))},t.\u0275cmp=U({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[fe],attrs:Ede,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,n){1&e&&(p(0,Ide,3,6,"tr",0),p(1,kde,3,2,"tr",1)),2&e&&(f("ngIf",n._firstRowOffset<n.labelMinRequiredCells),c(1),f("ngForOf",n.rows))},dependencies:[Qs,qe,le],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),t})();function vF(t){return"TD"===t.nodeName}function Rw(t,i,e){return null!==e&&i!==e&&t<e&&t===i}function kw(t,i,e){return null!==i&&i!==e&&t>=i&&t===e}function Aw(t,i,e,n){return n&&null!==i&&null!==e&&i!==e&&t>=i&&t<=e}class to{constructor(i,e){this.start=i,this.end=e}}let Vr=(()=>{class t{constructor(e,n){this.selection=e,this._adapter=n,this._selectionChanged=new re,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,n){const o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return t.\u0275fac=function(e){zs()},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})(),Wde=(()=>{class t extends Vr{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(H(mi))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})(),qde=(()=>{class t extends Vr{constructor(e){super(new to(null,null),e)}add(e){let{start:n,end:o}=this.selection;null==n?n=e:null==o?o=e:(n=e,o=null),super.updateSelection(new to(n,o),this)}isValid(){const{start:e,end:n}=this.selection;return null==e&&null==n||(null!=e&&null!=n?this._isValidDateInstance(e)&&this._isValidDateInstance(n)&&this._adapter.compareDate(e,n)<=0:(null==e||this._isValidDateInstance(e))&&(null==n||this._isValidDateInstance(n)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new t(this._adapter);return e.updateSelection(this.selection,this),e}}return t.\u0275fac=function(e){return new(e||t)(H(mi))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})();const yF={provide:Vr,deps:[[new Ko,new js,Vr],mi],useFactory:function Yde(t,i){return t||new Wde(i)}},Zde={provide:Vr,deps:[[new Ko,new js,Vr],mi],useFactory:function Qde(t,i){return t||new qde(i)}},Vg=new Y("MAT_DATE_RANGE_SELECTION_STRATEGY");let Kde=(()=>{class t{constructor(e){this._dateAdapter=e}selectionFinished(e,n){let{start:o,end:s}=n;return null==o?o=e:null==s&&e&&this._dateAdapter.compareDate(e,o)>=0?s=e:(o=e,s=null),new to(o,s)}createPreview(e,n){let o=null,s=null;return n.start&&!n.end&&e&&(o=n.start,s=e),new to(o,s)}}return t.\u0275fac=function(e){return new(e||t)(H(mi))},t.\u0275prov=K({token:t,factory:t.\u0275fac}),t})();const Jde={provide:Vg,deps:[[new Ko,new js,Vg],mi],useFactory:function Xde(t,i){return t||new Kde(i)}};let CF=(()=>{class t{constructor(e,n,o,s,a){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=o,this._dir=s,this._rangeStrategy=a,this._rerenderSubscription=rt.EMPTY,this.selectedChange=new W,this._userSelection=new W,this.activeDateChange=new W,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof to?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnChanges(e){const n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const n=e.value,o=this._getDateFromDayOfMonth(n);let s,a;this._selected instanceof to?(s=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):s=a=this._getDateInCurrentMonth(this._selected),(s!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!li(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){const s=this._rangeStrategy.createPreview(n?n.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow");let s=this._dateAdapter.getDayOfWeekNames("long").map((a,r)=>({long:a,narrow:n[r]}));this._weekdays=s.slice(e).concat(s.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,s=this._firstWeekOffset;o<e;o++,s++){7==s&&(this._weeks.push([]),s=0);const a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),o+1),r=this._shouldEnableDate(a),u=this._dateAdapter.format(a,this._dateFormats.display.dateA11yLabel),m=this.dateClass?this.dateClass(a,"month"):void 0;this._weeks[this._weeks.length-1].push(new Ow(o+1,n[o],u,r,m,this._getCellCompareValue(a),a))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!(!e||!n||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(n)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){const n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),s=this._dateAdapter.getDate(e);return new Date(n,o,s).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof to?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Js,8),_(mi,8),_(Kn,8),_(Vg,8))},t.\u0275cmp=U({type:t,selectors:[["mat-month-view"]],viewQuery:function(e,n){if(1&e&&ne(zd,5),2&e){let o;G(o=z())&&(n._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[fe],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,n){1&e&&(l(0,"table",0)(1,"thead",1)(2,"tr"),p(3,Ade,5,2,"th",2),d(),l(4,"tr"),D(5,"th",3),d()(),l(6,"tbody",4),M("selectedValueChange",function(s){return n._dateSelected(s)})("activeDateChange",function(s){return n._updateActiveDate(s)})("previewChange",function(s){return n._previewChanged(s)})("keyup",function(s){return n._handleCalendarBodyKeyup(s)})("keydown",function(s){return n._handleCalendarBodyKeydown(s)}),d()()),2&e&&(c(3),f("ngForOf",n._weekdays),c(3),f("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},dependencies:[qe,zd],encapsulation:2,changeDetection:0}),t})();const Go=24;let wF=(()=>{class t{constructor(e,n,o){this._changeDetectorRef=e,this._dateAdapter=n,this._dir=o,this._rerenderSubscription=rt.EMPTY,this.selectedChange=new W,this.yearSelected=new W,this.activeDateChange=new W,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),SF(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof to?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const n=this._dateAdapter.getYear(this._activeDate)-yp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,s=[];o<Go;o++)s.push(n+o),4==s.length&&(this._years.push(s.map(a=>this._createCellForYear(a))),s=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const n=e.value,o=this._dateAdapter.createDate(n,0,1),s=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(s)}_updateActiveDate(e){const o=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-yp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Go-yp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*-Go:-Go);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10*Go:Go);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return yp(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){const n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),s=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new Ow(e,o,o,this._shouldEnableYear(e),s)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let o=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof to){const n=e.start||e.end;n&&(this._selectedYear=this._dateAdapter.getYear(n))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(mi,8),_(Kn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(e,n){if(1&e&&ne(zd,5),2&e){let o;G(o=z())&&(n._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,n){1&e&&(l(0,"table",0)(1,"thead",1)(2,"tr"),D(3,"th",2),d()(),l(4,"tbody",3),M("selectedValueChange",function(s){return n._yearSelected(s)})("activeDateChange",function(s){return n._updateActiveDate(s)})("keyup",function(s){return n._handleCalendarBodyKeyup(s)})("keydown",function(s){return n._handleCalendarBodyKeydown(s)}),d()()),2&e&&(c(4),f("rows",n._years)("todayValue",n._todayYear)("startValue",n._selectedYear)("endValue",n._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",n._getActiveCell()))},dependencies:[zd],encapsulation:2,changeDetection:0}),t})();function SF(t,i,e,n,o){const s=t.getYear(i),a=t.getYear(e),r=TF(t,n,o);return Math.floor((s-r)/Go)===Math.floor((a-r)/Go)}function yp(t,i,e,n){return function eue(t,i){return(t%i+i)%i}(t.getYear(i)-TF(t,e,n),Go)}function TF(t,i,e){let n=0;return e?n=t.getYear(e)-Go+1:i&&(n=t.getYear(i)),n}let DF=(()=>{class t{constructor(e,n,o,s){this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=o,this._dir=s,this._rerenderSubscription=rt.EMPTY,this.selectedChange=new W,this.monthSelected=new W,this.activeDateChange=new W,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate;const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof to?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(jt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);const s=this._getDateFromMonth(n);this.selectedChange.emit(s)}_updateActiveDate(e){const o=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),s=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Ow(e,n.toLocaleUpperCase(),s,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){const n=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;for(let s=this._dateAdapter.createDate(n,e,1);this._dateAdapter.getMonth(s)==e;s=this._dateAdapter.addCalendarDays(s,1))if(this.dateFilter(s))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){const o=this._dateAdapter.getYear(this.maxDate),s=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>s}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){const o=this._dateAdapter.getYear(this.minDate),s=this._dateAdapter.getMonth(this.minDate);return e<o||e===o&&n<s}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof to?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(Js,8),_(mi,8),_(Kn,8))},t.\u0275cmp=U({type:t,selectors:[["mat-year-view"]],viewQuery:function(e,n){if(1&e&&ne(zd,5),2&e){let o;G(o=z())&&(n._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,n){1&e&&(l(0,"table",0)(1,"thead",1)(2,"tr"),D(3,"th",2),d()(),l(4,"tbody",3),M("selectedValueChange",function(s){return n._monthSelected(s)})("activeDateChange",function(s){return n._updateActiveDate(s)})("keyup",function(s){return n._handleCalendarBodyKeyup(s)})("keydown",function(s){return n._handleCalendarBodyKeydown(s)}),d()()),2&e&&(c(4),f("label",n._yearLabel)("rows",n._months)("todayValue",n._todayMonth)("startValue",n._selectedMonth)("endValue",n._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",n._dateAdapter.getMonth(n.activeDate)))},dependencies:[zd],encapsulation:2,changeDetection:0}),t})(),tue=0,nue=(()=>{class t{constructor(e,n,o,s,a){this._intl=e,this.calendar=n,this._dateAdapter=o,this._dateFormats=s,this._buttonDescriptionId="mat-calendar-button-"+tue++,this.calendar.stateChanges.subscribe(()=>a.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const n=this._dateAdapter.getYear(this.calendar.activeDate)-yp(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Go-1,s=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return this._intl.formatYearRange(s,a)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Go)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Go)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,n){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):SF(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(_(vp),_(Je(()=>Fw)),_(mi,8),_(Js,8),_(He))},t.\u0275cmp=U({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Pde,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,n){1&e&&(Dt(),l(0,"div",0)(1,"div",1)(2,"button",2),M("click",function(){return n.currentPeriodClicked()}),l(3,"span"),h(4),d(),ai(),l(5,"svg",3),D(6,"polygon",4),d()(),vo(),D(7,"div",5),$e(8),l(9,"button",6),M("click",function(){return n.previousClicked()}),d(),l(10,"button",7),M("click",function(){return n.nextClicked()}),d()()()),2&e&&(c(2),J("aria-label",n.periodButtonLabel)("aria-describedby",n._buttonDescriptionId),c(1),J("id",n._buttonDescriptionId),c(1),O(n.periodButtonText),c(1),de("mat-calendar-invert","month"!==n.calendar.currentView),c(4),f("disabled",!n.previousEnabled()),J("aria-label",n.prevButtonLabel),c(1),f("disabled",!n.nextEnabled()),J("aria-label",n.nextButtonLabel))},dependencies:[Re],encapsulation:2,changeDetection:0}),t})(),Fw=(()=>{class t{constructor(e,n,o,s){this._dateAdapter=n,this._dateFormats=o,this._changeDetectorRef=s,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new W,this.yearSelected=new W,this.monthSelected=new W,this.viewChanged=new W(!0),this._userSelection=new W,this.stateChanges=new re,this._intlChanges=e.changes.subscribe(()=>{s.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof to?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&this.viewChanged.emit(n)}ngAfterContentInit(){this._calendarHeaderPortal=new xr(this.headerComponent||nue),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,s=n||o||e.dateFilter;if(s&&!s.firstChange){const a=this._getCurrentViewComponent();a&&(this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const n=e.value;(this.selected instanceof to||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(_(vp),_(mi,8),_(Js,8),_(He))},t.\u0275cmp=U({type:t,selectors:[["mat-calendar"]],viewQuery:function(e,n){if(1&e&&(ne(CF,5),ne(DF,5),ne(wF,5)),2&e){let o;G(o=z())&&(n.monthView=o.first),G(o=z())&&(n.yearView=o.first),G(o=z())&&(n.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[me([yF]),fe],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,n){1&e&&(p(0,Nde,0,0,"ng-template",0),l(1,"div",1),p(2,Fde,1,8,"mat-month-view",2),p(3,Lde,1,6,"mat-year-view",3),p(4,Bde,1,6,"mat-multi-year-view",4),d()),2&e&&(f("cdkPortalOutlet",n._calendarHeaderPortal),c(1),f("ngSwitch",n.currentView),c(1),f("ngSwitchCase","month"),c(1),f("ngSwitchCase","year"),c(1),f("ngSwitchCase","multi-year"))},dependencies:[dl,eh,$y,xs,CF,DF,wF],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),t})();const MF={transformPanel:ei("transformPanel",[Et("void => enter-dropdown",At("120ms cubic-bezier(0, 0, 0.2, 1)",Tl([xe({opacity:0,transform:"scale(1, 0.8)"}),xe({opacity:1,transform:"scale(1, 1)"})]))),Et("void => enter-dialog",At("150ms cubic-bezier(0, 0, 0.2, 1)",Tl([xe({opacity:0,transform:"scale(0.7)"}),xe({transform:"none",opacity:1})]))),Et("* => void",At("100ms linear",xe({opacity:0})))]),fadeInCalendar:ei("fadeInCalendar",[ot("void",xe({opacity:0})),ot("enter",xe({opacity:1})),Et("void => *",At("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let iue=0;const xF=new Y("mat-datepicker-scroll-strategy"),sue={provide:xF,deps:[Fi],useFactory:function oue(t){return()=>t.scrollStrategies.reposition()}},aue=Ts(class{constructor(t){this._elementRef=t}});let rue=(()=>{class t extends aue{constructor(e,n,o,s,a,r){super(e),this._changeDetectorRef=n,this._globalModel=o,this._dateAdapter=s,this._rangeSelectionStrategy=a,this._subscriptions=new rt,this._animationDone=new re,this._actionsPortal=null,this._closeButtonText=r.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const n=this._model.selection,o=e.value,s=n instanceof to;if(s&&this._rangeSelectionStrategy){const a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(s||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(He),_(Vr),_(mi),_(Vg,8),_(vp))},t.\u0275cmp=U({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(e,n){if(1&e&&ne(Fw,5),2&e){let o;G(o=z())&&(n._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,n){1&e&&zc("@transformPanel.done",function(){return n._animationDone.next()}),2&e&&(qc("@transformPanel",n._animationState),de("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[te],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,n){if(1&e&&(l(0,"div",0)(1,"mat-calendar",1),M("yearSelected",function(s){return n.datepicker._selectYear(s)})("monthSelected",function(s){return n.datepicker._selectMonth(s)})("viewChanged",function(s){return n.datepicker._viewChanged(s)})("_userSelection",function(s){return n._handleUserSelection(s)}),d(),p(2,Vde,0,0,"ng-template",2),l(3,"button",3),M("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),h(4),d()()),2&e){let o;de("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),J("aria-modal",!0)("aria-labelledby",null!==(o=n._dialogLabelId)&&void 0!==o?o:void 0),c(1),f("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),c(1),f("cdkPortalOutlet",n._actionsPortal),c(1),de("cdk-visually-hidden",!n._closeButtonFocused),f("color",n.color||"primary"),c(1),O(n._closeButtonText)}},dependencies:[Qs,Re,k9,xs,Fw],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[MF.transformPanel,MF.fadeInCalendar]},changeDetection:0}),t})(),Hg=(()=>{class t{constructor(e,n,o,s,a,r,u){this._overlay=e,this._ngZone=n,this._viewContainerRef=o,this._dateAdapter=a,this._dir=r,this._model=u,this._inputStateChanges=rt.EMPTY,this._document=he(Ue),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new W,this.monthSelected=new W,this.viewChanged=new W(!0),this.openedStream=new W,this.closedStream=new W,this._opened=!1,this.id="mat-datepicker-"+iue++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new re,this._scrollStrategy=s}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=pe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const n=pe(e);n!==this._disabled&&(this._disabled=n,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=pe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=ZI(e)}get opened(){return this._opened}set opened(e){pe(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){const o=this._overlayRef.getConfig().positionStrategy;o instanceof LA&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=oh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;const e=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:o,location:s}=this._componentRef;o._startExitAnimation(),o._animationDone.pipe(Xe(1)).subscribe(()=>{const a=this._document.activeElement;e&&(!a||a===this._document.activeElement||s.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,n=new xr(rue,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new El({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(o).subscribe(s=>{s&&s.preventDefault(),this.close()}),o.keydownEvents().subscribe(s=>{const a=s.keyCode;(38===a||40===a||37===a||39===a||33===a||34===a)&&s.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Xe(1)).subscribe(()=>o.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const n="end"===this.xPosition?"end":"start",o="start"===n?"end":"start",s="above"===this.yPosition?"bottom":"top",a="top"===s?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:s},{originX:n,originY:s,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:s},{originX:o,originY:s,overlayX:o,overlayY:a}])}_getCloseStream(e){return un(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(st(n=>27===n.keyCode&&!li(n)||this.datepickerInput&&li(n,"altKey")&&38===n.keyCode)))}}return t.\u0275fac=function(e){return new(e||t)(_(Fi),_(be),_(kn),_(xF),_(mi,8),_(Kn,8),_(Vr))},t.\u0275dir=$({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[fe]}),t})(),Lw=(()=>{class t extends Hg{}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[me([yF,{provide:Hg,useExisting:t}]),te],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})();class Ug{constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}}let EF=(()=>{class t{constructor(e,n,o){this._elementRef=e,this._dateAdapter=n,this._dateFormats=o,this.dateChange=new W,this.dateInput=new W,this.stateChanges=new re,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=rt.EMPTY,this._localeSubscription=rt.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=s=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}},this._minValidator=s=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),r=this._getMinDate();return!r||!a||this._dateAdapter.compareDate(r,a)<=0?null:{matDatepickerMin:{min:r,actual:a}}},this._maxValidator=s=>{const a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(s.value)),r=this._getMaxDate();return!r||!a||this._dateAdapter.compareDate(r,a)>=0?null:{matDatepickerMax:{max:r,actual:a}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const n=pe(e),o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){const o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Ug(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ug(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){IF(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const n=this._lastValueValid;let o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);const s=!this._dateAdapter.sameDate(o,this.value);!o||s?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),n!==this._lastValueValid&&this._validatorOnChange()),s&&(this._assignValue(o),this.dateInput.emit(new Ug(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ug(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const n=this._getDateFilter();return!n||n(e)}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(mi,8),_(Js,8))},t.\u0275dir=$({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[fe]}),t})();function IF(t,i){const e=Object.keys(t);for(let n of e){const{previousValue:o,currentValue:s}=t[n];if(!i.isDateInstance(o)||!i.isDateInstance(s))return!0;if(!i.sameDate(o,s))return!0}return!1}const lue={provide:fi,useExisting:Je(()=>Cp),multi:!0},cue={provide:di,useExisting:Je(()=>Cp),multi:!0};let Cp=(()=>{class t extends EF{constructor(e,n,o,s){super(e,n,o),this._formField=s,this._closedSubscription=rt.EMPTY,this._validator=ue.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}get max(){return this._max}set max(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return t.\u0275fac=function(e){return new(e||t)(_(oe),_(mi,8),_(Js,8),_(dd,8))},t.\u0275dir=$({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,n){1&e&&M("input",function(s){return n._onInput(s.target.value)})("change",function(){return n._onChange()})("blur",function(){return n._onBlur()})("keydown",function(s){return n._onKeydown(s)}),2&e&&(Qn("disabled",n.disabled),J("aria-haspopup",n._datepicker?"dialog":null)("aria-owns",(null==n._datepicker?null:n._datepicker.opened)&&n._datepicker.id||null)("min",n.min?n._dateAdapter.toIso8601(n.min):null)("max",n.max?n._dateAdapter.toIso8601(n.max):null)("data-mat-calendar",n._datepicker?n._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[me([lue,cue,{provide:Tk,useExisting:t}]),te]}),t})(),due=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=$({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),wp=(()=>{class t{constructor(e,n,o){this._intl=e,this._changeDetectorRef=n,this._stateChanges=rt.EMPTY;const s=Number(o);this.tabIndex=s||0===s?s:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=pe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:ve(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:ve(),o=this.datepicker?un(this.datepicker.openedStream,this.datepicker.closedStream):ve();this._stateChanges.unsubscribe(),this._stateChanges=un(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(_(vp),_(He),Si("tabindex"))},t.\u0275cmp=U({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,n,o){if(1&e&&Pe(o,due,5),2&e){let s;G(s=z())&&(n._customIcon=s.first)}},viewQuery:function(e,n){if(1&e&&ne(Hde,5),2&e){let o;G(o=z())&&(n._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,n){1&e&&M("click",function(s){return n._open(s)}),2&e&&(J("tabindex",null)("data-mat-calendar",n.datepicker?n.datepicker.id:null),de("mat-datepicker-toggle-active",n.datepicker&&n.datepicker.opened)("mat-accent",n.datepicker&&"accent"===n.datepicker.color)("mat-warn",n.datepicker&&"warn"===n.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[fe],ngContentSelectors:jde,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,n){1&e&&(Dt($de),l(0,"button",0,1),p(2,Ude,2,0,"svg",2),$e(3),d()),2&e&&(f("disabled",n.disabled)("disableRipple",n.disableRipple),J("aria-haspopup",n.datepicker?"dialog":null)("aria-label",n.ariaLabel||n._intl.openCalendarLabel)("tabindex",n.disabled?-1:n.tabIndex),c(2),f("ngIf",!n._customIcon))},dependencies:[le,Re],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),t})();const $g=new Y("MAT_DATE_RANGE_INPUT_PARENT"),OF=Hf((()=>{class t extends EF{constructor(e,n,o,s,a,r,u,m){super(n,u,m),this._rangeInput=e,this._elementRef=n,this._defaultErrorStateMatcher=o,this._injector=s,this._parentForm=a,this._parentFormGroup=r,this._dir=he(Kn,Tt.Optional)}ngOnInit(){const e=this._injector.get(ls,null,Tt.Self|Tt.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}}return t.\u0275fac=function(e){return new(e||t)(_($g),_(oe),_(_r),_(_n),_(Ds,8),_(vt,8),_(mi,8),_(Js,8))},t.\u0275dir=$({type:t,features:[te]}),t})());let Bw=(()=>{class t extends OF{constructor(e,n,o,s,a,r,u,m){super(e,n,o,s,a,r,u,m),this._startValidator=g=>{const y=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(g.value)),S=this._model?this._model.selection.end:null;return!y||!S||this._dateAdapter.compareDate(y,S)<=0?null:{matStartDateInvalid:{end:S,actual:y}}},this._validator=ue.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const n=new to(e,this._model.selection.end);this._model.updateSelection(n,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,n=e.value;return n.length>0?n:e.placeholder}_onKeydown(e){const n=this._rangeInput._endInput,o=this._elementRef.nativeElement,s="rtl"!==this._dir?.value;(39===e.keyCode&&s||37===e.keyCode&&!s)&&o.selectionStart===o.value.length&&o.selectionEnd===o.value.length?(e.preventDefault(),n._elementRef.nativeElement.setSelectionRange(0,0),n.focus()):super._onKeydown(e)}}return t.\u0275fac=function(e){return new(e||t)(_($g),_(oe),_(_r),_(_n),_(Ds,8),_(vt,8),_(mi,8),_(Js,8))},t.\u0275dir=$({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,n){1&e&&M("input",function(s){return n._onInput(s.target.value)})("change",function(){return n._onChange()})("keydown",function(s){return n._onKeydown(s)})("blur",function(){return n._onBlur()}),2&e&&(Qn("disabled",n.disabled),J("id",n._rangeInput.id)("aria-haspopup",n._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==n._rangeInput.rangePicker?null:n._rangeInput.rangePicker.opened)&&n._rangeInput.rangePicker.id||null)("min",n._getMinDate()?n._dateAdapter.toIso8601(n._getMinDate()):null)("max",n._getMaxDate()?n._dateAdapter.toIso8601(n._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[me([{provide:fi,useExisting:t,multi:!0},{provide:di,useExisting:t,multi:!0}]),te]}),t})(),Vw=(()=>{class t extends OF{constructor(e,n,o,s,a,r,u,m){super(e,n,o,s,a,r,u,m),this._endValidator=g=>{const y=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(g.value)),S=this._model?this._model.selection.start:null;return!y||!S||this._dateAdapter.compareDate(y,S)>=0?null:{matEndDateInvalid:{start:S,actual:y}}},this._validator=ue.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const n=new to(this._model.selection.start,e);this._model.updateSelection(n,this)}}_onKeydown(e){const n=this._rangeInput._startInput,o=this._elementRef.nativeElement,s="rtl"!==this._dir?.value;if(8!==e.keyCode||o.value)if((37===e.keyCode&&s||39===e.keyCode&&!s)&&0===o.selectionStart&&0===o.selectionEnd){e.preventDefault();const a=n._elementRef.nativeElement.value.length;n._elementRef.nativeElement.setSelectionRange(a,a),n.focus()}else super._onKeydown(e);else n.focus()}}return t.\u0275fac=function(e){return new(e||t)(_($g),_(oe),_(_r),_(_n),_(Ds,8),_(vt,8),_(mi,8),_(Js,8))},t.\u0275dir=$({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,n){1&e&&M("input",function(s){return n._onInput(s.target.value)})("change",function(){return n._onChange()})("keydown",function(s){return n._onKeydown(s)})("blur",function(){return n._onBlur()}),2&e&&(Qn("disabled",n.disabled),J("aria-haspopup",n._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==n._rangeInput.rangePicker?null:n._rangeInput.rangePicker.opened)&&n._rangeInput.rangePicker.id||null)("min",n._getMinDate()?n._dateAdapter.toIso8601(n._getMinDate()):null)("max",n._getMaxDate()?n._dateAdapter.toIso8601(n._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[me([{provide:fi,useExisting:t,multi:!0},{provide:di,useExisting:t,multi:!0}]),te]}),t})(),uue=0,RF=(()=>{class t{constructor(e,n,o,s,a){if(this._changeDetectorRef=e,this._elementRef=n,this._dateAdapter=s,this._formField=a,this._closedSubscription=rt.EMPTY,this.id="mat-date-range-input-"+uue++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new re,a?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const r=n.nativeElement.classList;r.add("mat-mdc-input-element"),r.add("mat-mdc-form-field-input-control")}this.ngControl=o}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const e=this._startInput?._getPlaceholder()||"",n=this._endInput?._getPlaceholder()||"";return e||n?`${e} ${this.separator} ${n}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=pe(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const n=this._startInput,o=this._endInput,s=n&&n._matchesFilter(n.value),a=o&&o._matchesFilter(n.value);this._dateFilter=e,n&&n._matchesFilter(n.value)!==s&&n._validatorOnChange(),o&&o._matchesFilter(o.value)!==a&&o._validatorOnChange()}get min(){return this._min}set min(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._revalidate())}get max(){return this._max}set max(e){const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const n=pe(e);n!==this._groupDisabled&&(this._groupDisabled=n,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),n=!!this._endInput&&this._endInput.isEmpty();return e&&n}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),un(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){IF(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return t.\u0275fac=function(e){return new(e||t)(_(He),_(oe),_(eo,10),_(mi,8),_(dd,8))},t.\u0275cmp=U({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(e,n,o){if(1&e&&(Pe(o,Bw,5),Pe(o,Vw,5)),2&e){let s;G(s=z())&&(n._startInput=s.first),G(s=z())&&(n._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,n){2&e&&(J("id",null)("aria-labelledby",n._getAriaLabelledby())("aria-describedby",n._ariaDescribedBy)("data-mat-calendar",n.rangePicker?n.rangePicker.id:null),de("mat-date-range-input-hide-placeholders",n._shouldHidePlaceholders())("mat-date-range-input-required",n.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[me([{provide:ld,useExisting:t},{provide:$g,useExisting:t}]),fe],ngContentSelectors:zde,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,n){1&e&&(Dt(Gde),l(0,"div",0),M("cdkFocusChange",function(s){return n._updateFocus(s)}),l(1,"div",1),$e(2),l(3,"span",2),h(4),d()(),l(5,"span",3),h(6),d(),l(7,"div",4),$e(8,1),d()()),2&e&&(c(4),O(n._getInputMirrorValue()),c(1),de("mat-date-range-input-separator-hidden",n._shouldHideSeparator()),c(1),O(n.separator))},dependencies:[$y],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),t})(),kF=(()=>{class t extends Hg{_forwardContentValues(e){super._forwardContentValues(e);const n=this.datepickerInput;n&&(e.comparisonStart=n.comparisonStart,e.comparisonEnd=n.comparisonEnd)}}return t.\u0275fac=function(){let i;return function(n){return(i||(i=Qe(t)))(n||t)}}(),t.\u0275cmp=U({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[me([Zde,Jde,{provide:Hg,useExisting:t}]),te],decls:0,vars:0,template:function(e,n){},encapsulation:2,changeDetection:0}),t})(),Yl=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Ce({type:t}),t.\u0275inj=ye({providers:[vp,sue],imports:[ce,Ne,Or,Vf,Ir,ze,Na]}),t})();function AF(t){return 1==Array.isArray(t)}function gi(t,i){switch(t){case"W":return i.instant("general_waiting");case"F":return i.instant("general_confirmed");case"C":return i.instant("general_cancelled");case"S":return i.instant("general_scored");case"M":return i.instant("general_missed");case"O":return i.instant("general_open");case"E":return i.instant("general_close");case"D":return i.instant("general_deleted")}return""}function Ye(t,i){return i.instant("A"===t?"general_away":"general_home")}function Hw(t){let i=new Date(t);return("0"+i.getHours()).slice(-2)+":"+("0"+i.getMinutes()).slice(-2)}function PF(t){let i=new Date(t);return("0"+i.getDate()).slice(-2)+"."+("0"+(+i.getMonth()+1)).slice(-2)+"."+i.getFullYear()}function zo(t,i){let e="";if(t.player){if(e=t.player.shirtNumber?"("+t.player.shirtNumber+", ":"(","en"!=i.currentLang)return e+(t.player.foreignName?t.player.foreignName+")":t.player.name+")");e+=t.player.name+")"}if(t.value&&AF(t.value)){const n=t.value[0],o=n.shirtNumber,s="en"==i.currentLang?n.name:n.foreignName,a=t.value[1],r=a.shirtNumber,u="en"==i.currentLang?a.name:a.foreignName;e="en"==i.currentLang?n.id&&a.id?` (In ${o} ${s}, Out ${r} ${u})`:n.id?` (In ${o} ${s})`:a.id?` (Out ${r} ${u})`:"":n.id&&a.id?` (\u062f\u062e\u0644 ${o} ${s}, \u062e\u0631\u062c ${r} ${u})`:n.id?` (\u062f\u062e\u0644 ${o} ${s})`:a.id?` (\u062e\u0631\u062c ${r} ${u})`:""}return e}function Wi(t,i){return t.player?"en"==i.currentLang?(t.player.shirtNumber?t.player.shirtNumber+" ":"")+t.player.name:(t.player.shirtNumber?t.player.shirtNumber+" ":"")+t.player.foreignName?t.player.foreignName:t.player.name:t.value&&("string"==typeof t.value&&function hue(t){try{JSON.parse(t)}catch{return!1}return!0}(t.value)&&(t.value=JSON.parse(t.value)),AF(t.value))?"en"==i.currentLang?" (In "+(t.value[0].shirtNumber||"")+" "+(t.value[0].name||"")+", Out "+(t.value[1].shirtNumber||"")+" "+(t.value[1].name||"")+")":t.value[0].foreignName&&t.value[1].foreignName?" (\u062f\u062e\u0644 "+(t.value[0].shirtNumber||"")+" "+(t.value[0].foreignName||"")+", \u062e\u0631\u062c "+(t.value[1].shirtNumber||"")+" "+(t.value[1].foreignName||"")+")":" (In "+(t.value[0].shirtNumber||"")+" "+(t.value[0].name||"")+", Out "+(t.value[1].shirtNumber||"")+" "+(t.value[1].name||"")+")":""}function NF(t){let i=[];for(let e=0;e<t.length;e++){let n=t[e].directChildren;Array.isArray(n)&&n.length>0||i.push(t[e])}return i}function xi(t,i="asc"){return function(n,o){if(!n.hasOwnProperty(t)||!o.hasOwnProperty(t))return 0;const s="string"==typeof n[t]?n[t].toUpperCase():n[t],a="string"==typeof o[t]?o[t].toUpperCase():o[t];let r=0;return s>a?r=1:s<a&&(r=-1),"desc"===i?-1*r:r}}function Sp(t,i){const e={homeTeam:n=>n.homeTeam.name,awayTeam:n=>n.awayTeam.name,competition:n=>n.competition.name,assignedReporter:n=>n.assignedReporter?n.assignedReporter.firstName:null,plannedStartingTime:n=>new Date(n.plannedStartingTime).getTime()};return e[i]?e[i](t):t.id}function vue(t,i){if(1&t&&(l(0,"mat-option",48),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T(" ",e.season.competition.name+" | "+e.season.seasonYear+" | "+e.type," ")}}function yue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e.name),c(1),O(e.name)}}function Cue(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_required")))}function wue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e.name),c(1),O(e.name)}}function Sue(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_required")))}function Tue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e)}}function Due(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e)}}function Mue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function xue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Eue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e)}}function Iue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function Oue(t,i){if(1&t&&(l(0,"span")(1,"mat-form-field",5)(2,"mat-select",50,51),C(4,"translate"),p(5,Iue,2,2,"mat-option",15),d()()()),2&t){const e=b();c(2),N("placeholder",w(4,3,"general_assigned_reporter")),f("compareWith",e.compareFn),c(3),f("ngForOf",e.reporters)}}function Rue(t,i){if(1&t&&(l(0,"mat-option",49),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function kue(t,i){1&t&&(l(0,"mat-form-field",5)(1,"mat-select",52,53),C(3,"translate"),l(4,"mat-option",49),h(5,"10"),d(),l(6,"mat-option",49),h(7,"12"),d()()()),2&t&&(c(1),N("placeholder",w(3,3,"general_period_length")),c(3),f("value",10),c(2),f("value",12))}function Aue(t,i){1&t&&(l(0,"mat-form-field",5)(1,"mat-select",54,55),C(3,"translate"),l(4,"mat-option",49),h(5,"1"),d(),l(6,"mat-option",49),h(7,"2"),d(),l(8,"mat-option",49),h(9,"3"),d(),l(10,"mat-option",49),h(11,"4"),d()()()),2&t&&(c(1),N("placeholder",w(3,5,"general_num_of_periods")),c(3),f("value",1),c(2),f("value",2),c(2),f("value",3),c(2),f("value",4))}function Pue(t,i){1&t&&(l(0,"span")(1,"mat-form-field",5)(2,"mat-select",56,57),C(4,"translate"),l(5,"mat-option",58),h(6,"1"),d(),l(7,"mat-option",59),h(8,"2"),d(),l(9,"mat-option",60),h(10,"3"),d(),l(11,"mat-option",61),h(12,"4"),d(),l(13,"mat-option",62),h(14,"5"),d()()()()),2&t&&(c(2),N("placeholder",w(4,1,"general_coverage_depth")))}function Nue(t,i){1&t&&(l(0,"span")(1,"mat-form-field",5),D(2,"input",63),C(3,"translate"),d()()),2&t&&(c(2),N("placeholder",w(3,1,"general_price")))}function Fue(t,i){1&t&&(l(0,"div",64),D(1,"mat-spinner",65),d())}function Lue(t,i){1&t&&(l(0,"div",64)(1,"mat-icon",66),h(2,"done"),d(),l(3,"div",67),h(4,"Continue Adding Matches"),d()())}function Bue(t,i){1&t&&(l(0,"div",64)(1,"mat-icon",68),h(2,"clear"),d(),l(3,"div",69),h(4,"Adding Match Failed"),d()())}function Vue(t,i){1&t&&(l(0,"div",64)(1,"mat-icon",66),h(2,"done"),d()())}function Hue(t,i){1&t&&(l(0,"div",64)(1,"mat-icon",68),h(2,"clear"),d()())}let Uue=(()=>{class t{constructor(e,n,o,s){this.http=e,this.translateService=n,this.fb=o,this.usersService=s,this.onProgress=0,this.weekType=["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","1/256","1/128","1/64","1/32","1/16","1/8","1/4","1/2","final"],this.teams=[],this.unfilteredTeams=[],this.reporters=[],this.moderators=[],this.stages=[],this.matchFormats=Gd.MatchFormatz,this.lastMatchAddedText="",this.hours=Array.from({length:24},(a,r)=>r),this.minutes=Array.from({length:12},(a,r)=>5*r),this.hourCtrl=new ji(0,ue.required),this.minuteCtrl=new ji(0,ue.required),this.homeTeamCtrl=new ji(""),this.awayTeamCtrl=new ji(""),this.filteredStages=[]}displayFn(e){return e??""}_filter(e){const n=e.toLowerCase();return this.teams.filter(o=>o.name?.toLowerCase().includes(n))}selectedStageChange(e){if(this.unfilteredTeams)try{e.value?(this.handleEventWithValue(e),this.options.controls.region.setValue(e.value?.season?.competition?.region)):e.competition?.region?this.handleEventWithCompetitionRegion(e):this.teams=this.unfilteredTeams;const n=["international","europe","asia","africa","oceania","south america","north america"];e.value?.season?.competition?.region?.name&&n.includes(e.value?.season?.competition?.region?.name.toLowerCase())&&this.options.controls.region.setValue(null)}catch(n){console.error("Error processing event data:",n),this.teams=this.unfilteredTeams}else console.error("Unfiltered teams data is not available.")}handleEventWithValue(e){const n=e.value?.season;let o=null,s=null,a=null;if(n){const r=n.competition;if(o=r?.region,a=r?.sport,n.seasonTeams&&(s=JSON.parse(n.seasonTeams),!Array.isArray(s)))throw new Error("seasonTeams is not an array.")}this.applyFilters(o,s,a)}onSportChange(e){this.filterStagesBySport(e)}filterStagesBySport(e){this.filteredStages=e&&e.name?this.stages.filter(n=>n.season?.competition?.sport?.name==e.name):this.stages}handleEventWithCompetitionRegion(e){const n=e.competition?.region,o=e.competition?.sport;let s=null;if(e.stage?.season?.seasonTeams&&(s=JSON.parse(e.stage.season.seasonTeams),!Array.isArray(s)))throw new Error("seasonTeams is not an array.");n&&this.applyFilters(n,s,o)}applyFilters(e,n,o){const a=e?.name,r=["international","europe","asia","africa","oceania","south america","north america"].some(m=>m.toLowerCase()===a?.toLowerCase());let u=this.unfilteredTeams;!r&&e&&(u=u.filter(m=>m.club?.region?.id===e.id)),n&&n.length>0&&(u=u.filter(m=>m.id&&n.includes(m.id))),o&&o.name&&(u=u.filter(m=>m.sport?.name.toLowerCase()==o.name.toLowerCase())),this.teams=u}getSessionStorageDate(){let e,n,o=JSON.parse(sessionStorage.getItem("filterStorageMatch")??"{}");if(0!==Object.keys(o).length){if(o?.selectedEndDate){e=new Date(parseInt(o.selectedEndDate));const s=e.getTimezoneOffset();e.setMinutes(e.getMinutes()-s)}if(o?.selectedStartDate){n=new Date(parseInt(o.selectedStartDate));const s=n.getTimezoneOffset();n.setMinutes(n.getMinutes()-s)}}return{selectedEndDate:e,selectedStartDate:n}}ngOnInit(){if(this.options.controls.sport.valueChanges.subscribe(e=>{this.filterStagesBySport(e)}),setTimeout(()=>{this.filterStagesBySport(this.options.controls.sport.value)},1e3),this.entity.plannedStartingTime){const e=new Date(this.entity.plannedStartingTime);this.hourCtrl.setValue(e.getHours()),this.minuteCtrl.setValue(e.getMinutes())}}ngOnChanges(e){this.onProgress=0,null===this.entity&&(this.entity=new da);const n=this.getSessionStorageDate().selectedStartDate?this.getSessionStorageDate().selectedStartDate:new Date;if(this.service=new Q(v.apiURLs.rootURL+"matches",this.http),this.options=this.fb.group({stage:[this.entity.stage,ue.required],sport:[this.entity.sport??v.sports[0],ue.required],plannedStartingDate:[this.entity.plannedStartingTime?new Date(this.entity.plannedStartingTime):n,ue.required],plannedStartingTime:[Hw(""+this.entity.plannedStartingTime),ue.required],coverageMethod:[this.entity.coverageMethod],assignedReporter:[this.entity.assignedReporter,this.usersService.isCountryManager&&ue.required],assignedModerators:[this.entity.assignedModerators],matchFormat:[this.entity.matchFormat??Gd.regularTime],trainingMatch:[this.entity.trainingMatch],region:[{value:this.entity?.region??this.entity?.competition?.region??"",disabled:this.usersService.isCountryManager},ue.required],price:[this.entity.price],groundSide:[this.entity.groundSide],currentWeek:[this.entity.currentWeek],coverageDepth:[this.entity.coverageDepth],periodLength:[this.entity.basketballStat?.periodLength??10],numOfPeriods:[this.entity.basketballStat?.numOfPeriods??4]}),this.teamService=new Q(v.apiURLs.rootURL+"teams",this.http),this.teamService.getAll(v.token,v.userId).subscribe(o=>{this.onProgress=0,this.teams=o,this.teams.sort(xi("name")),this.unfilteredTeams=this.teams,this.selectedStageChange(this.entity)}),this.reporterService=new Q(v.apiURLs.rootURL+"users/reporters",this.http),this.reporterService.getAll(v.token,v.userId,this.usersService.isCountryManager?"&manager=true":void 0).subscribe(o=>{this.onProgress=0,this.reporters=o,this.reporters.sort(xi("firstName"))}),this.moderatorService=new Q(v.apiURLs.rootURL+"users/moderators",this.http),this.moderatorService.getAll(v.token,v.userId).subscribe(o=>{this.onProgress=0,this.moderators=o,this.moderators.sort(xi("firstName"))}),this.stageService=new Q(v.apiURLs.rootURL+"stages",this.http),this.stageService.getAll(v.token,v.userId).subscribe(o=>{this.onProgress=0,this.stages=o,this.stages.sort(xi("id")),this.stages.sort((s,a)=>(s?.season?.competition?.name??"").localeCompare(a?.season?.competition?.name??""))}),this.homeFilteredTeams=this.homeTeamCtrl.valueChanges.pipe(jt(""),Le(o=>this._filter(o??""))),this.awayFilteredTeams=this.awayTeamCtrl.valueChanges.pipe(jt(""),Le(o=>this._filter(o??""))),this.homeTeamCtrl.setValue(this.entity.homeTeam?.name??""),this.awayTeamCtrl.setValue(this.entity.awayTeam?.name??""),this.entity.plannedStartingTime){const o=new Date(this.entity.plannedStartingTime);this.hourCtrl.setValue(o.getHours()),this.minuteCtrl.setValue(o.getMinutes())}}get regions(){const e=["international","europe","asia","africa","oceania","south america","north america"];return v.regions.filter(n=>!e.includes(n.name.toLowerCase()))}get sports(){return v.sports}get title(){return this.translateService.instant(null==this.entity.id?"match_add_new":"match_edit")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,this.entity.homeTeam=this.teams.find(a=>a.name==this.homeTeamCtrl.value)??null,this.entity.awayTeam=this.teams.find(a=>a.name==this.awayTeamCtrl.value)??null,"object"==typeof this.entity.refereeList&&(this.entity.refereeList=JSON.stringify(this.entity.refereeList)),this.entity.trainingMatch=null!=this.options.value.trainingMatch&&this.options.value.trainingMatch,this.entity.assignedReporter=this.options.value.assignedReporter,"null"===this.options.value.assignedReporter&&(this.entity.assignedReporter=null),this.entity.assignedModerators=this.options.value.assignedModerators,"null"===this.options.value.assignedModerators&&(this.entity.assignedModerators=null),this.entity.matchFormat=this.options.value.matchFormat,"null"===this.options.value.matchFormat&&(this.entity.matchFormat=null),this.entity.competition=this.options.value.stage.season.competition,"null"===this.options.value.stage.season.competition&&(this.entity.competition=null),this.entity.region="null"===this.options.value.region?null:this.options.value.region??this.entity.competition?.region??null,this.entity.price=this.options.value.price,this.entity.groundSide=this.options.value.groundSide;let e=new Date(this.options.value.plannedStartingDate);e.setHours(this.hourCtrl.value??0,this.minuteCtrl.value??0),this.entity.plannedStartingTime=e,this.entity.coverageMethod=this.options.value.coverageMethod,this.entity.currentWeek=this.options.value.currentWeek,this.entity.coverageDepth=this.options.value.coverageDepth,this.entity.sport=this.options.value.sport,this.entity.stage=this.options.value.stage,this.options.value.sport&&"Basketball"==this.options.value.sport.name&&(this.entity.periodLength=this.options.value.periodLength?+this.options.value.periodLength:"",this.entity.numOfPeriods=this.options.value.numOfPeriods?+this.options.value.numOfPeriods:"");const s=this;null!=this.entity?.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(a=>{this.lastMatchAddedText="Saved: "+this.entity.plannedStartingTime?.toString()+" "+this.entity.competition?.name+" "+this.entity.stage?.type+" "+this.entity.stage?.season?.seasonYear+" "+this.entity.homeTeam?.name+" vs "+this.entity.awayTeam?.name||0,this.onProgress=4,setTimeout(function(){s.inputOnSuccess(a)},v.delaySuccessMessage)},a=>{this.onProgress=5,setTimeout(function(){s.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(a=>{this.lastMatchAddedText="Saved: "+this.entity.plannedStartingTime?.toString().split("T")[0]+" "+this.entity.competition?.name+" "+this.entity.stage?.type+" "+this.entity.stage?.season?.seasonYear+" "+this.entity.homeTeam?.name+" vs "+this.entity.awayTeam?.name||0,setTimeout(()=>{this.onProgress=2},500),setTimeout(()=>{this.onProgress=0},2e3)},a=>{setTimeout(()=>{this.onProgress=3},500),setTimeout(()=>{this.onProgress=0},2e3)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:118,vars:95,consts:[[1,"adjustable_main_margin"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"reflex"],[1,"adjustable_left_side_width"],[1,"full-width"],["matInput","","formControlName","plannedStartingDate","name","plannedStartingDate","required","",3,"matDatepicker","placeholder"],["matSuffix","",3,"for"],["picker",""],["formControlName","stage","name","stage","required","",1,"capitalize",3,"compareWith","placeholder","selectionChange"],["stage",""],["class","capitalize",3,"value",4,"ngFor","ngForOf"],["type","text","matInput","","required","",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["homeTeamAutocomplete","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["awayTeamAutocomplete","matAutocomplete"],[1,"time-selectors",2,"padding-left","0.5em"],[1,"time-selector",2,"width","50%"],[3,"formControl"],[1,"time-selector",2,"padding-left","0.5em","width","48%"],["formControlName","matchFormat","name","matchFormat",3,"compareWith","placeholder"],["matchFormat",""],["value","null"],["formControlName","region","name","region","required","",3,"compareWith","placeholder"],["region",""],["formControlName","currentWeek","name","currentWeek",3,"placeholder"],["currentWeek",""],[1,"adjustable_right_side_width"],["formControlName","sport","name","sport","tabindex","-1","required","",3,"compareWith","placeholder"],["sport",""],["formControlName","groundSide","name","groundSide","tabindex","-1",3,"placeholder"],["groundSide",""],["value",""],["value","H"],["value","A"],["formControlName","coverageMethod","name","coverageMethod","tabindex","-1",3,"compareWith","placeholder"],["coverageMethod",""],["value","M"],["value","V"],["class","full-width",4,"ngIf"],["formControlName","trainingMatch","tabindex","-1",1,"full-width"],[2,"display","flex"],["mat-raised-button","","color","primary","type","button",3,"disabled","click"],["mat-raised-button","","type","button",3,"click"],[1,"last_saved"],["class","screen-centered",4,"ngIf"],[1,"capitalize",3,"value"],[3,"value"],["formControlName","assignedReporter","name","assignedReporter",3,"compareWith","placeholder"],["assignedReporter",""],["formControlName","periodLength","name","periodLength",3,"placeholder"],["periodLength",""],["formControlName","numOfPeriods","name","numOfPeriods",3,"placeholder"],["numOfPeriods",""],["formControlName","coverageDepth","name","coverageDepth","tabindex","-1",3,"placeholder"],["coverageDepth",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["matInput","","formControlName","price","tabindex","-1","type","number",3,"placeholder"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","block"],[1,"STT",2,"color","#61b1dc"],["color","warn",1,"mat-172",2,"display","block"],[1,"STT",2,"color","red"]],template:function(n,o){if(1&n&&(l(0,"div")(1,"div",0)(2,"form",1),M("ngSubmit",function(){return o.onSave()}),l(3,"p",2),h(4),d(),l(5,"div",3)(6,"div",4)(7,"div")(8,"mat-form-field",5),D(9,"input",6),C(10,"translate"),D(11,"mat-datepicker-toggle",7)(12,"mat-datepicker",null,8),d(),l(14,"mat-form-field",5)(15,"mat-select",9,10),M("selectionChange",function(a){return o.selectedStageChange(a)}),C(17,"translate"),p(18,vue,2,2,"mat-option",11),d()(),l(19,"div")(20,"mat-form-field",5),D(21,"input",12),C(22,"translate"),l(23,"mat-autocomplete",13,14),p(25,yue,2,2,"mat-option",15),C(26,"async"),d(),p(27,Cue,3,3,"mat-error",16),d(),l(28,"mat-form-field",5),D(29,"input",12),C(30,"translate"),l(31,"mat-autocomplete",13,17),p(33,wue,2,2,"mat-option",15),C(34,"async"),d(),p(35,Sue,3,3,"mat-error",16),d()(),l(36,"div",18)(37,"mat-form-field",19)(38,"mat-label"),h(39,"Hour"),d(),l(40,"mat-select",20),p(41,Tue,2,2,"mat-option",15),d()(),l(42,"mat-form-field",21)(43,"mat-label"),h(44,"Minute"),d(),l(45,"mat-select",20),p(46,Due,2,2,"mat-option",15),d()()(),l(47,"mat-form-field",5)(48,"mat-select",22,23),C(50,"translate"),l(51,"mat-option",24),h(52,"--"),d(),p(53,Mue,2,2,"mat-option",15),d()(),l(54,"mat-form-field",5)(55,"mat-select",25,26),C(57,"translate"),l(58,"mat-option",24),h(59,"--"),d(),p(60,xue,2,2,"mat-option",15),d()(),l(61,"mat-form-field",5)(62,"mat-select",27,28),C(64,"translate"),p(65,Eue,2,2,"mat-option",15),d()(),p(66,Oue,6,5,"span",16),d()(),l(67,"div",29)(68,"mat-form-field",5)(69,"mat-select",30,31),C(71,"translate"),p(72,Rue,2,2,"mat-option",15),d()(),l(73,"mat-form-field",5)(74,"mat-select",32,33),C(76,"translate"),l(77,"mat-option",34),h(78,"--"),d(),l(79,"mat-option",35),h(80),C(81,"translate"),d(),l(82,"mat-option",36),h(83),C(84,"translate"),d()()(),l(85,"mat-form-field",5)(86,"mat-select",37,38),C(88,"translate"),l(89,"mat-option",39),h(90),C(91,"translate"),d(),l(92,"mat-option",40),h(93),C(94,"translate"),d()()(),p(95,kue,8,5,"mat-form-field",41),p(96,Aue,12,7,"mat-form-field",41),p(97,Pue,15,3,"span",16),p(98,Nue,4,3,"span",16),l(99,"mat-checkbox",42),h(100),C(101,"translate"),d()()(),D(102,"mat-divider"),l(103,"div",43)(104,"button",44),M("click",function(){return o.onSave()}),h(105),C(106,"translate"),d(),h(107," \xa0 "),l(108,"button",45),M("click",function(){return o.onNoClick()}),h(109),C(110,"translate"),d(),l(111,"div",46),h(112),d()()()()(),p(113,Fue,2,0,"div",47),p(114,Lue,5,0,"div",47),p(115,Bue,5,0,"div",47),p(116,Vue,3,0,"div",47),p(117,Hue,3,0,"div",47)),2&n){const s=X(13),a=X(24),r=X(32);c(2),f("formGroup",o.options),c(2),O(o.title),c(5),N("placeholder",w(10,57,"match_planned_date_start")),f("matDatepicker",s),c(2),f("for",s),c(4),N("placeholder",w(17,59,"general_stage")),f("compareWith",o.compareFn),c(3),f("ngForOf",o.filteredStages),c(3),N("placeholder",w(22,61,"general_home_team")),f("formControl",o.homeTeamCtrl)("matAutocomplete",a),c(2),f("displayWith",o.displayFn),c(2),f("ngForOf",w(26,63,o.homeFilteredTeams)),c(2),f("ngIf",o.homeTeamCtrl.hasError("required")),c(2),N("placeholder",w(30,65,"general_away_team")),f("formControl",o.awayTeamCtrl)("matAutocomplete",r),c(2),f("displayWith",o.displayFn),c(2),f("ngForOf",w(34,67,o.awayFilteredTeams)),c(2),f("ngIf",o.awayTeamCtrl.hasError("required")),c(5),f("formControl",o.hourCtrl),c(1),f("ngForOf",o.hours),c(4),f("formControl",o.minuteCtrl),c(1),f("ngForOf",o.minutes),c(2),N("placeholder",w(50,69,"general_matchFormat")),f("compareWith",o.compareFn),c(5),f("ngForOf",o.matchFormats),c(2),N("placeholder",w(57,71,"general_region")),f("compareWith",o.compareFn),c(5),f("ngForOf",o.regions),c(2),N("placeholder",w(64,73,"general_current_week")),c(3),f("ngForOf",o.weekType),c(1),f("ngIf",o.usersService.isCountryManager),c(3),N("placeholder",w(71,75,"general_sport")),f("compareWith",o.compareFn),c(3),f("ngForOf",o.sports),c(2),N("placeholder",w(76,77,"general_ground_side")),c(6),O(w(81,79,"general_home")),c(3),O(w(84,81,"general_away")),c(3),N("placeholder",w(88,83,"general_coverage_method")),f("compareWith",o.compareFn),c(4),O(w(91,85,"general_mobile")),c(3),O(w(94,87,"general_voice")),c(2),f("ngIf","Basketball"==(null==o.options.value.sport?null:o.options.value.sport.name)),c(1),f("ngIf","Basketball"==(null==o.options.value.sport?null:o.options.value.sport.name)),c(1),f("ngIf",!o.usersService.isCountryManager),c(1),f("ngIf",!o.usersService.isCountryManager),c(2),T(" ",w(101,89,"general_training_match")," "),c(4),f("disabled",o.options.invalid),c(1),T(" ",w(106,91,"general_save")," "),c(4),T(" ",w(110,93,"general_close")," "),c(3),T(" ",o.lastMatchAddedText," "),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress),c(1),f("ngIf",4==o.onProgress),c(1),f("ngIf",5==o.onProgress)}},dependencies:[xt,Vt,Lt,Th,Mt,Bt,Vn,wr,vt,Cn,ut,Sr,gt,Tr,cd,on,Tn,Ft,Gt,ce,qe,le,mr,zt,wn,ql,Ad,Wl,Yl,Lw,Cp,wp,Nd,Pd,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:100%;padding:0 10px}.example-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:10px 0}.screen-centered[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;justify-content:center;align-items:center}.mat-dialog-content[_ngcontent-%COMP%]{overflow:inherit!important}.STT[_ngcontent-%COMP%]{display:block;font-size:xx-large;font-family:sans-serif}.reflex[_ngcontent-%COMP%]{display:flex}.adjustable_main_margin[_ngcontent-%COMP%]{margin:40px}.adjustable_right_side_width[_ngcontent-%COMP%]{width:25%}.adjustable_left_side_width[_ngcontent-%COMP%]{width:75%}.last_saved[_ngcontent-%COMP%]{text-align:center;width:100%;margin:10px 0}@media only screen and (max-width: 600px){.adjustable_right_side_width[_ngcontent-%COMP%], .adjustable_left_side_width[_ngcontent-%COMP%]{width:auto}.reflex[_ngcontent-%COMP%]{display:block}.adjustable_main_margin[_ngcontent-%COMP%]{margin:0}}"]})}return t})(),$ue=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Uue]})}return t})(),Hr=(()=>{class t{constructor(){this.id=null,this.match=null,this.status=t.STATUS_CONFIRMED,this.customer=null,this.price=0}static#e=this.STATUS_WAITING="W";static#t=this.STATUS_CONFIRMED="F";static#n=this.STATUS_DELETED="D"}return t})();function jue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Gue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function zue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Wue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function que(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Yue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Que(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Zue(t,i){if(1&t&&(l(0,"mat-option",26),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),We("",e.name," (",null==e.country?null:e.country.isoCode,")")}}function Kue(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),l(9,"mat-option",8),h(10,"--"),d(),p(11,jue,2,3,"mat-option",9),d()(),l(12,"mat-form-field",5)(13,"mat-select",10,11),C(15,"translate"),l(16,"mat-option",8),h(17,"--"),d(),p(18,Gue,2,3,"mat-option",9),d()(),l(19,"mat-form-field",5)(20,"mat-select",12,13),C(22,"translate"),l(23,"mat-option",8),h(24,"--"),d(),p(25,zue,2,3,"mat-option",9),d()(),l(26,"mat-form-field",5)(27,"mat-select",14,15),C(29,"translate"),l(30,"mat-option",8),h(31,"--"),d(),p(32,Wue,2,3,"mat-option",9),d()(),l(33,"mat-form-field",5)(34,"mat-select",16,17),C(36,"translate"),l(37,"mat-option",8),h(38,"--"),d(),p(39,que,2,3,"mat-option",9),d()(),l(40,"mat-form-field",5)(41,"mat-select",18,19),C(43,"translate"),l(44,"mat-option",8),h(45,"--"),d(),p(46,Yue,2,3,"mat-option",9),d()(),l(47,"mat-form-field",5)(48,"mat-select",20,21),C(50,"translate"),l(51,"mat-option",8),h(52,"--"),d(),p(53,Que,2,3,"mat-option",9),d()(),l(54,"mat-form-field",5)(55,"mat-select",22,23),C(57,"translate"),l(58,"mat-option",8),h(59,"--"),d(),p(60,Zue,2,3,"mat-option",9),d()(),D(61,"mat-divider"),l(62,"p")(63,"button",24),h(64),C(65,"translate"),d(),h(66," \xa0 "),l(67,"button",25),M("click",function(){return E(e),I(b().onNoClick())}),h(68),C(69,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),O(e.title),c(2),N("placeholder",w(8,29,"refereeMain")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(15,31,"refereeLine1st")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(22,33,"refereeLine2nd")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(29,35,"referee4th")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(36,37,"refereeVar1st")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(43,39,"refereeVar2nd")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(50,41,"refereeVar3rd")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(2),N("placeholder",w(57,43,"refereeVar4th")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.referees),c(3),f("disabled",e.options.invalid),c(1),O(w(65,45,"general_save")),c(4),O(w(69,47,"general_close"))}}function Xue(t,i){1&t&&(l(0,"div",27),D(1,"mat-spinner",28),d())}function Jue(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",29),h(2,"done"),d()())}function ehe(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",30),h(2,"clear"),d()())}let the=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.referees=[]}ngOnChanges(e){this.onProgress=0,null===this.entity&&(this.entity=new da),this.service=new Q(v.apiURLs.rootURL+"matches",this.http),this.options=this.fb.group({refereeMain:[this.entity.refereeList?.refereeMain],refereeLine1st:[this.entity.refereeList?.refereeLine1st],refereeLine2nd:[this.entity.refereeList?.refereeLine2nd],referee4th:[this.entity.refereeList?.referee4th],refereeVar1st:[this.entity.refereeList?.refereeVar1st],refereeVar2nd:[this.entity.refereeList?.refereeVar2nd],refereeVar3rd:[this.entity.refereeList?.refereeVar3rd],refereeVar4th:[this.entity.refereeList?.refereeVar4th]}),this.refereeService=new Q(v.apiURLs.rootURL+"referees",this.http),this.refereeService.getAll(v.token,v.userId).subscribe(n=>{this.onProgress=0,this.referees=n,this.referees.sort(xi("name"))})}get title(){return this.translateService.instant(null==this.entity.id?"match_referees_add_new":"match_referees_edit")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,this.entity.refereeList=JSON.stringify({refereeMain:this.options.value.refereeMain||null,refereeLine1st:this.options.value.refereeLine1st||null,refereeLine2nd:this.options.value.refereeLine2nd||null,referee4th:this.options.value.referee4th||null,refereeVar1st:this.options.value.refereeVar1st||null,refereeVar2nd:this.options.value.refereeVar2nd||null,refereeVar3rd:this.options.value.refereeVar3rd||null,refereeVar4th:this.options.value.refereeVar4th||null});const e=this;this.entity?.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-referees-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","refereeMain","name","refereeMain",3,"compareWith","placeholder"],["refereeMain",""],["value","null"],[3,"value",4,"ngFor","ngForOf"],["formControlName","refereeLine1st","name","refereeLine1st",3,"compareWith","placeholder"],["refereeLine1st",""],["formControlName","refereeLine2nd","name","refereeLine2nd",3,"compareWith","placeholder"],["refereeLine2nd",""],["formControlName","referee4th","name","referee4th",3,"compareWith","placeholder"],["referee4th",""],["formControlName","refereeVar1st","name","refereeVar1st",3,"compareWith","placeholder"],["refereeVar1st",""],["formControlName","refereeVar2nd","name","refereeVar2nd",3,"compareWith","placeholder"],["refereeVar2nd",""],["formControlName","refereeVar3rd","name","refereeVar3rd",3,"compareWith","placeholder"],["refereeVar3rd",""],["formControlName","refereeVar4th","name","refereeVar4th",3,"compareWith","placeholder"],["refereeVar4th",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Kue,70,49,"div",0),p(1,Xue,2,0,"div",1),p(2,Jue,3,0,"div",1),p(3,ehe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Mt,Bt,vt,Cn,ut,gt,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),nhe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-referees-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-referees-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,the]})}return t})();function ihe(t,i){if(1&t&&(l(0,"mat-option",13),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function ohe(t,i){if(1&t&&(l(0,"mat-option",13),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function she(t,i){if(1&t&&(l(0,"mat-form-field",5)(1,"mat-select",14,15),C(3,"translate"),p(4,ohe,2,2,"mat-option",9),d()()),2&t){const e=b(2);c(1),N("placeholder",w(3,3,"general_assigned_moderators")),f("compareWith",e.compareFn),c(3),f("ngForOf",e.moderators)}}function ahe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),l(9,"mat-option",8),h(10,"--"),d(),p(11,ihe,2,2,"mat-option",9),d()(),p(12,she,5,5,"mat-form-field",10),D(13,"mat-divider"),l(14,"p")(15,"button",11),h(16),C(17,"translate"),d(),h(18," \xa0 "),l(19,"button",12),M("click",function(){return E(e),I(b().onNoClick())}),h(20),C(21,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),O(e.title),c(2),N("placeholder",w(8,9,"general_assigned_reporter")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.reporters),c(1),f("ngIf",!e.usersService.isCountryManager),c(3),f("disabled",e.options.invalid),c(1),O(w(17,11,"general_save")),c(4),O(w(21,13,"general_close"))}}function rhe(t,i){1&t&&(l(0,"div",16),D(1,"mat-spinner",17),d())}function lhe(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",18),h(2,"done"),d()())}function che(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",19),h(2,"clear"),d()())}let dhe=(()=>{class t{constructor(e,n,o,s){this.http=e,this.translateService=n,this.fb=o,this.usersService=s,this.onProgress=0,this.reporters=[],this.moderators=[]}ngOnChanges(e){this.onProgress=0,null===this.entity&&(this.entity=new da),this.service=new Q(v.apiURLs.rootURL+"matches",this.http),this.options=this.fb.group({assignedModerators:[this.entity.assignedModerators],assignedReporter:[this.entity.assignedReporter]});let n="&manager=true";n+=this.entity.sport?.id?"&matchSportId="+this.entity.sport.id:"",n+=this.entity.coverageMethod?"&matchCoverageMethod="+this.entity.coverageMethod:"";const o=this.entity?.region??this.entity?.competition?.region??null;n+=o?.id?"&matchRegionId="+o.id:"",this.reporterService=new Q(v.apiURLs.rootURL+"users/reporters",this.http),this.reporterService.getAll(v.token,v.userId,n).subscribe(s=>{this.onProgress=0,this.reporters=s,this.reporters.sort(xi("firstName"))}),this.usersService.isCountryManager||(this.moderatorService=new Q(v.apiURLs.rootURL+"users/moderators",this.http),this.moderatorService.getAll(v.token,v.userId).subscribe(s=>{this.onProgress=0,this.moderators=s,this.moderators.sort(xi("firstName"))}))}get title(){return this.translateService.instant(null==this.entity.id?"match_staff_add_new":"match_staff_edit")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,this.entity.assignedReporter=this.options.value.assignedReporter,"null"===this.options.value.assignedReporter&&(this.entity.assignedReporter=null),this.usersService.isCountryManager||(this.entity.assignedModerators=this.options.value.assignedModerators,"null"===this.options.value.assignedModerators&&(this.entity.assignedModerators=null)),"object"==typeof this.entity.refereeList&&(this.entity.refereeList=JSON.stringify(this.entity.refereeList));const e=this;void 0!==this.entity?.id&&0!==this.entity?.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-staff-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","assignedReporter","name","assignedReporter",3,"compareWith","placeholder"],["assignedReporter",""],["value","null"],[3,"value",4,"ngFor","ngForOf"],["class","full-width",4,"ngIf"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],["formControlName","assignedModerators","name","assignedModerators","multiple","",3,"compareWith","placeholder"],["assignedModerators",""],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,ahe,22,15,"div",0),p(1,rhe,2,0,"div",1),p(2,lhe,3,0,"div",1),p(3,che,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Mt,Bt,vt,Cn,ut,gt,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),uhe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-staff-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-staff-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,dhe]})}return t})(),Ur=(()=>{class t{constructor(){}shouldAcceptTargetBy(e,n,o,s){return!n||0===n.length||n.some(a=>!!(s?s(e,a):e[o]&&e[o].id===a?.id))}removeElementFromArray(e,n){let o=-1;for(let s=0;s<n.length;s++)if(n[s].id===e.id){o=s;break}n.splice(o,1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function L(t){return"https://upload.wikimedia.org/wikipedia/".concat(t)}const FF={ABW:L("commons/f/f6/Flag_of_Aruba.svg"),AFG:L("commons/9/9a/Flag_of_Afghanistan.svg"),AGO:L("commons/9/9d/Flag_of_Angola.svg"),AIA:L("commons/b/b4/Flag_of_Anguilla.svg"),ALA:L("commons/5/52/Flag_of_%C3%85land.svg"),ALB:L("commons/3/36/Flag_of_Albania.svg"),AND:L("commons/1/19/Flag_of_Andorra.svg"),ANT:L("commons/e/eb/Flag_of_the_Netherlands_Antilles_(1959%E2%80%931986).svg"),ARE:L("commons/c/cb/Flag_of_the_United_Arab_Emirates.svg"),ARG:L("commons/1/1a/Flag_of_Argentina.svg"),ARM:L("commons/2/2f/Flag_of_Armenia.svg"),ASM:L("commons/8/87/Flag_of_American_Samoa.svg"),ATG:L("commons/8/89/Flag_of_Antigua_and_Barbuda.svg"),AUS:L("commons/8/88/Flag_of_Australia_(converted).svg"),AUT:L("commons/4/41/Flag_of_Austria.svg"),AZE:L("commons/d/dd/Flag_of_Azerbaijan.svg"),BDI:L("commons/5/50/Flag_of_Burundi.svg"),BEL:L("commons/6/65/Flag_of_Belgium.svg"),BEN:L("commons/0/0a/Flag_of_Benin.svg"),BES:L("commons/2/20/Flag_of_the_Netherlands.svg"),BFA:L("commons/3/31/Flag_of_Burkina_Faso.svg"),BGD:L("commons/f/f9/Flag_of_Bangladesh.svg"),BGR:L("commons/9/9a/Flag_of_Bulgaria.svg"),BHR:L("commons/2/2c/Flag_of_Bahrain.svg"),BHS:L("commons/9/93/Flag_of_the_Bahamas.svg"),BIH:L("commons/b/bf/Flag_of_Bosnia_and_Herzegovina.svg"),BLM:L("commons/0/03/Saint-Barthel\xe9my_Ic\xf4ne.svg"),BLR:L("commons/8/85/Flag_of_Belarus.svg"),BLZ:L("commons/e/e7/Flag_of_Belize.svg"),BMU:L("commons/b/bf/Flag_of_Bermuda.svg"),BOL:L("commons/5/5b/Bolivia_Flag.svg"),BRA:L("commons/0/05/Flag_of_Brazil.svg"),BRB:L("commons/e/ef/Flag_of_Barbados.svg"),BRN:L("commons/9/9c/Flag_of_Brunei.svg"),BTN:L("commons/9/91/Flag_of_Bhutan.svg"),BWA:L("commons/f/fa/Flag_of_Botswana.svg"),CAF:L("commons/6/6f/Flag_of_the_Central_African_Republic.svg"),CAN:L("commons/d/d9/Flag_of_Canada_(Pantone).svg"),CCK:L("commons/7/74/Flag_of_the_Cocos_(Keeling)_Islands.svg"),CHE:L("commons/f/f3/Flag_of_Switzerland.svg"),CHL:L("commons/7/78/Flag_of_Chile.svg"),CHN:L("commons/f/fa/Flag_of_the_People%27s_Republic_of_China.svg"),CIV:L("commons/f/fe/Flag_of_C\xf4te_d%27Ivoire.svg"),CMR:L("commons/4/4f/Flag_of_Cameroon.svg"),COD:L("commons/1/11/Flag_of_the_Democratic_Republic_of_the_Congo_(3-2).svg"),COG:L("commons/9/92/Flag_of_the_Republic_of_the_Congo.svg"),COK:L("commons/3/35/Flag_of_the_Cook_Islands.svg"),COL:L("commons/2/21/Flag_of_Colombia.svg"),COM:L("commons/d/df/Flag_of_the_Comoros_(3-2).svg"),CPV:L("commons/3/38/Flag_of_Cape_Verde.svg"),CRI:L("commons/b/bc/Flag_of_Costa_Rica_(state).svg"),CUB:L("commons/b/bd/Flag_of_Cuba.svg"),CUW:L("commons/b/b1/Flag_of_Cura\xe7ao.svg"),CXR:L("commons/6/67/Flag_of_Christmas_Island.svg"),CYM:L("commons/0/0f/Flag_of_the_Cayman_Islands.svg"),CYP:L("commons/d/d4/Flag_of_Cyprus.svg"),CZE:L("commons/c/cb/Flag_of_the_Czech_Republic.svg"),DEU:L("commons/b/ba/Flag_of_Germany.svg"),DJI:L("commons/3/34/Flag_of_Djibouti.svg"),DMA:L("commons/c/c4/Flag_of_Dominica.svg"),DNK:L("commons/9/9c/Flag_of_Denmark.svg"),DOM:L("commons/9/9f/Flag_of_the_Dominican_Republic.svg"),DZA:L("commons/7/77/Flag_of_Algeria.svg"),ECU:L("commons/e/e8/Flag_of_Ecuador.svg"),EGY:L("commons/f/fe/Flag_of_Egypt.svg"),ERI:L("commons/2/29/Flag_of_Eritrea.svg"),ESH:L("commons/2/26/Flag_of_the_Sahrawi_Arab_Democratic_Republic.svg"),ESP:L("commons/9/9a/Flag_of_Spain.svg"),EST:L("commons/8/8f/Flag_of_Estonia.svg"),ETH:L("commons/7/71/Flag_of_Ethiopia.svg"),FIN:L("commons/b/bc/Flag_of_Finland.svg"),FJI:L("commons/b/ba/Flag_of_Fiji.svg"),FLK:L("commons/8/83/Flag_of_the_Falkland_Islands.svg"),FRA:L("commons/c/c3/Flag_of_France.svg"),FRO:L("commons/3/3c/Flag_of_the_Faroe_Islands.svg"),FSM:L("commons/e/e4/Flag_of_the_Federated_States_of_Micronesia.svg"),GAB:L("commons/0/04/Flag_of_Gabon.svg"),GBR:L("commons/a/ae/Flag_of_the_United_Kingdom.svg"),GEO:L("commons/0/0f/Flag_of_Georgia.svg"),GGY:L("commons/f/fa/Flag_of_Guernsey.svg"),GHA:L("commons/1/19/Flag_of_Ghana.svg"),GIB:L("commons/0/02/Flag_of_Gibraltar.svg"),GIN:L("commons/e/ed/Flag_of_Guinea.svg"),GLP:L("commons/9/9f/Flag_of_France_%287x10%29.svg"),GMB:L("commons/7/77/Flag_of_The_Gambia.svg"),GNB:L("commons/0/01/Flag_of_Guinea-Bissau.svg"),GNQ:L("commons/3/31/Flag_of_Equatorial_Guinea.svg"),GRC:L("commons/5/5c/Flag_of_Greece.svg"),GRD:L("commons/b/bc/Flag_of_Grenada.svg"),GRL:L("commons/0/09/Flag_of_Greenland.svg"),GTM:L("commons/e/ec/Flag_of_Guatemala.svg"),GUF:L("commons/e/ed/Flag_of_France_%28Pantone%29.svg"),GUM:L("commons/0/07/Flag_of_Guam.svg"),GUY:L("commons/9/99/Flag_of_Guyana.svg"),HKG:L("commons/5/5b/Flag_of_Hong_Kong.svg"),HND:L("commons/8/82/Flag_of_Honduras.svg"),HRV:L("commons/1/1b/Flag_of_Croatia.svg"),HTI:L("commons/5/56/Flag_of_Haiti.svg"),HUN:L("commons/c/c1/Flag_of_Hungary.svg"),IDN:L("commons/9/9f/Flag_of_Indonesia.svg"),IMN:L("commons/b/bc/Flag_of_the_Isle_of_Man.svg"),IND:L("commons/4/41/Flag_of_India.svg"),IRL:L("commons/c/c0/Republic_of_Ireland_Flag.svg"),IRN:L("commons/c/ca/Flag_of_Iran.svg"),IRQ:L("commons/f/f6/Flag_of_Iraq.svg"),ISL:L("commons/c/ce/Flag_of_Iceland.svg"),ISR:L("commons/d/d4/Flag_of_Israel.svg"),ITA:L("commons/0/03/Flag_of_Italy.svg"),JAM:L("commons/0/0a/Flag_of_Jamaica.svg"),JEY:L("commons/1/1c/Flag_of_Jersey.svg"),JOR:L("commons/c/c0/Flag_of_Jordan.svg"),JPN:L("commons/b/bc/Flag_of_Japan%28bordered%29.svg"),KAZ:L("commons/d/d3/Flag_of_Kazakhstan.svg"),KEN:L("commons/4/49/Flag_of_Kenya.svg"),KGZ:L("commons/c/c7/Flag_of_Kyrgyzstan.svg"),KHM:L("commons/8/83/Flag_of_Cambodia.svg"),KIR:L("commons/d/d3/Flag_of_Kiribati.svg"),KNA:L("commons/f/fe/Flag_of_Saint_Kitts_and_Nevis.svg"),KOR:L("commons/0/09/Flag_of_South_Korea.svg"),KWT:L("commons/a/aa/Flag_of_Kuwait.svg"),LAO:L("commons/5/56/Flag_of_Laos.svg"),LBN:L("commons/5/59/Flag_of_Lebanon.svg"),LBR:L("commons/b/b8/Flag_of_Liberia.svg"),LBY:L("commons/0/05/Flag_of_Libya.svg"),LCA:L("commons/9/9f/Flag_of_Saint_Lucia.svg"),LIE:L("commons/4/47/Flag_of_Liechtenstein.svg"),LKA:L("commons/1/11/Flag_of_Sri_Lanka.svg"),LSO:L("commons/4/4a/Flag_of_Lesotho.svg"),LTU:L("commons/1/11/Flag_of_Lithuania.svg"),LUX:L("commons/d/da/Flag_of_Luxembourg.svg"),LVA:L("commons/8/84/Flag_of_Latvia.svg"),MAC:L("commons/6/63/Flag_of_Macau.svg"),MAF:L("commons/d/dd/Flag_of_Saint-Martin_%28fictional%29.svg"),MAR:L("commons/2/2c/Flag_of_Morocco.svg"),MCO:L("commons/e/ea/Flag_of_Monaco.svg"),MDA:L("commons/2/27/Flag_of_Moldova.svg"),MDG:L("commons/b/bc/Flag_of_Madagascar.svg"),MDV:L("commons/0/0f/Flag_of_Maldives.svg"),MEX:L("commons/f/fc/Flag_of_Mexico.svg"),MHL:L("commons/2/2e/Flag_of_the_Marshall_Islands.svg"),MKD:L("commons/7/79/Flag_of_North_Macedonia.svg"),MLI:L("commons/9/92/Flag_of_Mali.svg"),MLT:L("commons/7/73/Flag_of_Malta.svg"),MMR:L("commons/8/8c/Flag_of_Myanmar.svg"),MNE:L("commons/6/64/Flag_of_Montenegro.svg"),MNG:L("commons/4/4c/Flag_of_Mongolia.svg"),MNP:L("commons/e/e0/Flag_of_the_Northern_Mariana_Islands.svg"),MOZ:L("commons/d/d0/Flag_of_Mozambique.svg"),MRT:L("commons/4/43/Flag_of_Mauritania.svg"),MSR:L("commons/d/d0/Flag_of_Montserrat.svg"),MTQ:L("commons/2/21/Flag_of_the_Territorial_Collectivity_of_Martinique.svg"),MUS:L("commons/7/77/Flag_of_Mauritius.svg"),MWI:L("commons/d/d1/Flag_of_Malawi.svg"),MYS:L("commons/6/66/Flag_of_Malaysia.svg"),MYT:L("commons/c/c3/Flag_of_France.svg"),NAM:L("commons/0/00/Flag_of_Namibia.svg"),NCL:L("commons/6/66/Flag_of_FLNKS.svg"),NER:L("commons/f/f4/Flag_of_Niger.svg"),NFK:L("commons/4/48/Flag_of_Norfolk_Island.svg"),NGA:L("commons/7/79/Flag_of_Nigeria.svg"),NIC:L("commons/1/19/Flag_of_Nicaragua.svg"),NIU:L("commons/0/01/Flag_of_Niue.svg"),NLD:L("commons/2/20/Flag_of_the_Netherlands.svg"),NOR:L("commons/d/d9/Flag_of_Norway.svg"),NPL:L("commons/9/9b/Flag_of_Nepal.svg"),NRU:L("commons/3/30/Flag_of_Nauru.svg"),NZL:L("commons/3/3e/Flag_of_New_Zealand.svg"),OMN:L("commons/d/dd/Flag_of_Oman.svg"),PAK:L("commons/3/32/Flag_of_Pakistan.svg"),PAN:L("commons/a/ab/Flag_of_Panama.svg"),PCN:L("commons/8/88/Flag_of_the_Pitcairn_Islands.svg"),PER:L("commons/c/cf/Flag_of_Peru.svg"),PHL:L("commons/9/99/Flag_of_the_Philippines.svg"),PLW:L("commons/4/48/Flag_of_Palau.svg"),PNG:L("commons/e/e3/Flag_of_Papua_New_Guinea.svg"),POL:L("commons/1/12/Flag_of_Poland.svg"),PRI:L("commons/2/28/Flag_of_Puerto_Rico.svg"),PRK:L("commons/5/51/Flag_of_North_Korea.svg"),PRT:L("commons/5/5c/Flag_of_Portugal.svg"),PRY:L("commons/2/27/Flag_of_Paraguay.svg"),PSE:L("commons/f/f4/Palestine_Flag.svg"),PYF:L("commons/d/db/Flag_of_French_Polynesia.svg"),QAT:L("commons/6/65/Flag_of_Qatar.svg"),REU:L("commons/5/5a/Flag_of_R\xe9union.svg"),ROU:L("commons/7/73/Flag_of_Romania.svg"),RUS:L("commons/f/f3/Flag_of_Russia.svg"),RWA:L("commons/1/17/Flag_of_Rwanda.svg"),SAU:L("commons/0/0d/Flag_of_Saudi_Arabia.svg"),SDN:L("commons/0/01/Flag_of_Sudan.svg"),SEN:L("commons/f/fd/Flag_of_Senegal.svg"),SGP:L("commons/4/48/Flag_of_Singapore.svg"),SGS:L("commons/e/ed/Flag_of_South_Georgia_and_the_South_Sandwich_Islands.svg"),SHN:L("commons/0/00/Flag_of_Saint_Helena.svg"),SJM:L("commons/d/d9/Flag_of_Norway.svg"),SLB:L("commons/7/74/Flag_of_the_Solomon_Islands.svg"),SLE:L("commons/1/17/Flag_of_Sierra_Leone.svg"),SLV:L("commons/3/34/Flag_of_El_Salvador.svg"),SMR:L("commons/b/b1/Flag_of_San_Marino.svg"),SOM:L("commons/a/a0/Flag_of_Somalia.svg"),SPM:L("commons/7/74/Flag_of_Saint-Pierre_and_Miquelon.svg"),SRB:L("commons/f/ff/Flag_of_Serbia.svg"),SSD:L("commons/7/7a/Flag_of_South_Sudan.svg"),STP:L("commons/4/4f/Flag_of_Sao_Tome_and_Principe.svg"),SUR:L("commons/6/60/Flag_of_Suriname.svg"),SVK:L("commons/e/e6/Flag_of_Slovakia.svg"),SVN:L("commons/f/f0/Flag_of_Slovenia.svg"),SWE:L("commons/4/4c/Flag_of_Sweden.svg"),SWZ:L("commons/f/fb/Flag_of_Eswatini.svg"),SXM:L("commons/d/d3/Flag_of_Sint_Maarten.svg"),SYC:L("commons/f/fc/Flag_of_Seychelles.svg"),SYR:L("commons/5/53/Flag_of_Syria.svg"),TCA:L("commons/a/a0/Flag_of_the_Turks_and_Caicos_Islands.svg"),TCD:L("commons/4/4b/Flag_of_Chad.svg"),TGO:L("commons/6/68/Flag_of_Togo.svg"),THA:L("commons/a/a9/Flag_of_Thailand.svg"),TJK:L("commons/d/d0/Flag_of_Tajikistan.svg"),TKL:L("commons/8/8e/Flag_of_Tokelau.svg"),TKM:L("commons/1/1b/Flag_of_Turkmenistan.svg"),TLS:L("commons/2/26/Flag_of_East_Timor.svg"),TON:L("commons/9/9a/Flag_of_Tonga.svg"),TTO:L("commons/6/64/Flag_of_Trinidad_and_Tobago.svg"),TUN:L("commons/c/ce/Flag_of_Tunisia.svg"),TUR:L("commons/b/b4/Flag_of_Turkey.svg"),TUV:L("commons/3/38/Flag_of_Tuvalu.svg"),TWN:L("commons/7/72/Flag_of_the_Republic_of_China.svg"),TZA:L("commons/3/38/Flag_of_Tanzania.svg"),UGA:L("commons/4/4e/Flag_of_Uganda.svg"),UKR:L("commons/4/49/Flag_of_Ukraine.svg"),UMI:L("commons/0/05/Flag_of_the_U.S..svg"),URY:L("commons/f/fe/Flag_of_Uruguay.svg"),USA:L("commons/a/a4/Flag_of_the_United_States.svg"),UZB:L("commons/8/84/Flag_of_Uzbekistan.svg"),VAT:L("commons/0/00/Flag_of_the_Vatican_City.svg"),VCT:L("commons/6/6d/Flag_of_Saint_Vincent_and_the_Grenadines.svg"),VEN:L("commons/7/7b/Flag_of_Venezuela_(state).svg"),VGB:L("commons/4/42/Flag_of_the_British_Virgin_Islands.svg"),VIR:L("commons/f/f8/Flag_of_the_United_States_Virgin_Islands.svg"),VNM:L("commons/2/21/Flag_of_Vietnam.svg"),VUT:L("commons/6/6e/Flag_of_Vanuatu_(official).svg"),WLF:L("commons/d/d2/Flag_of_Wallis_and_Futuna.svg"),WSM:L("commons/3/31/Flag_of_Samoa.svg"),XXK:L("commons/1/1f/Flag_of_Kosovo.svg"),YEM:L("commons/8/89/Flag_of_Yemen.svg"),ZAF:L("commons/a/af/Flag_of_South_Africa.svg"),ZMB:L("commons/0/06/Flag_of_Zambia.svg"),ZWE:L("commons/6/6a/Flag_of_Zimbabwe.svg")};let B=function t(i,e,n,o,s){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(function hhe(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t),this.name=i,this.demonym=e,this.flag=FF[o],this.iso2=n,this.iso3=o,this.altSpellings=a};const Tp=[new B("Afghanistan","Afghan","AF","AFG"),new B("Aland Islands","Alandic","AX","ALA"),new B("Albania","Albanian","AL","ALB"),new B("Algeria","Algerian","DZ","DZA"),new B("American Samoa","American Samoan","AS","ASM"),new B("Andorra","Andorran","AD","AND"),new B("Angola","Angolan","AO","AGO"),new B("Anguilla","Anguillian","AI","AIA"),new B("Antigua and Barbuda","Antiguan Barbudan","AG","ATG"),new B("Argentina","Argentinian","AR","ARG"),new B("Armenia","Armenian","AM","ARM"),new B("Aruba","Arubian","AW","ABW"),new B("Australia","Australian","AU","AUS"),new B("Austria","Austrian","AT","AUT"),new B("Azerbaijan","Azerbaijani","AZ","AZE"),new B("Bahamas","Bahamian","BS","BHS"),new B("Bahrain","Bahraini","BH","BHR"),new B("Bangladesh","Bengali","BD","BGD"),new B("Barbados","Barbadian","BB","BRB"),new B("Belarus","Belarusian","BY","BLR"),new B("Belgium","Belgian","BE","BEL"),new B("Belize","Belizean","BZ","BLZ"),new B("Benin","Beninese","BJ","BEN"),new B("Bermuda","Bermudian","BM","BMU"),new B("Bhutan","Bhutanese","BT","BTN"),new B("Bolivia","Bolivian","BO","BOL"),new B("Bonaire, Sint Eustatius and Saba","Dutch","BQ","BES"),new B("Bosnia and Herzegovina","Bosnian","BA","BIH"),new B("Botswana","Batswana","BW","BWA"),new B("Brazil","Brazilian","BR","BRA"),new B("British Virgin Islands","Virgin Islander","VG","VGB"),new B("Brunei","Bruneian","BN","BRN"),new B("Bulgaria","Bulgarian","BG","BGR"),new B("Burkina Faso","Burkinab\xe9","BF","BFA"),new B("Burundi","Burundian","BI","BDI"),new B("Cambodia","Cambodian","KH","KHM"),new B("Cameroon","Cameroonian","CM","CMR"),new B("Canada","Canadian","CA","CAN"),new B("Cape Verde","Cape Verdean","CV","CPV"),new B("Cayman Islands","Caymanian","KY","CYM"),new B("Central African Republic","Central African","CF","CAF"),new B("Chad","Chadian","TD","TCD"),new B("Chile","Chilean","CL","CHL"),new B("China","Chinese","CN","CHN"),new B("Christmas Island","Christmas Islander","CX","CXR"),new B("Cocos Islands","Taiwanese","CC","CCK"),new B("Colombia","Colombian","CO","COL"),new B("Comoros","Comorian","KM","COM"),new B("Congo","Congolese","CG","COG"),new B("Cook Islands","Cook Islander","CK","COK"),new B("Costa Rica","Costa Rican","CR","CRI"),new B("C\xf4te d'Ivoire","Ivorian","CI","CIV"),new B("Croatia","Croatian","HR","HRV"),new B("Cuba","Cuban","CU","CUB"),new B("Cura\xe7ao","Dutch","CW","CUW"),new B("Cyprus","Cypriot","CY","CYP"),new B("Czech Republic","Czech","CZ","CZE"),new B("Democratic Republic of the Congo","Congolese","KP","COD"),new B("Denmark","Danish","DK","DNK"),new B("Djibouti","Djiboutian","DJ","DJI"),new B("Dominica","Dominican","DM","DMA"),new B("Dominican Republic","Dominican","DO","DOM"),new B("Ecuador","Ecuadorian","EC","ECU"),new B("Egypt","Egyptian","EG","EGY"),new B("El Salvador","Salvadoran","SV","SLV"),new B("Equatorial Guinea","Equatoguinean","GQ","GNQ"),new B("Eritrea","Eritrean","ER","ERI"),new B("Estonia","Estonian","EE","EST"),new B("Ethiopia","Ethiopian","ET","ETH"),new B("Falkland Islands","Falkland Islander","FK","FLK"),new B("Faroe Islands","Faroese","FO","FRO"),new B("Fiji","Fijian","FJ","FJI"),new B("Finland","Finnish","FI","FIN"),new B("France","French","FR","FRA"),new B("French Guiana","Guianan","GF","GUF"),new B("French Polynesia","French Polynesian","PF","PYF"),new B("Gabon","Gabonese","GA","GAB"),new B("Gambia","Gambian","GM","GMB"),new B("Georgia","Georgian","GE","GEO"),new B("Germany","German","DE","DEU"),new B("Ghana","Ghanaian","GH","GHA"),new B("Gibraltar","Gibraltarian","GI","GIB"),new B("Greece","Greek","GR","GRC"),new B("Greenland","Greenlander","GL","GRL"),new B("Grenada","Grenadian","GD","GRD"),new B("Guadeloupe","Guadeloupean","GP","GLP"),new B("Guam","Guamanian","GU","GUM"),new B("Guatemala","Guatemalan","GT","GTM"),new B("Guernsey","Guernseymen","GG","GGY"),new B("Guinea-Bissau","Bissau-Guinean","GW","GNB"),new B("Guinea","Guinean","GN","GIN"),new B("Guyana","Guyanese","GY","GUY"),new B("Haiti","Haitian","HT","HTI"),new B("Holy See","Papal","VA","VAT",["Vatican"]),new B("Honduras","Honduran","HN","HND"),new B("Hong Kong","Hong Kongese","HK","HKG"),new B("Hungary","Hungarian","HU","HUN"),new B("Iceland","Icelander","IS","ISL"),new B("India","Indian","IN","IND"),new B("Indonesia","Indonesian","ID","IDN"),new B("Iran","Iranian","IR","IRN"),new B("Iraq","Iraqi","IQ","IRQ"),new B("Ireland","Irish","IE","IRL"),new B("Isle of Man","Manx","IM","IMN"),new B("Israel","Israeli","IL","ISR"),new B("Italy","Italian","IT","ITA"),new B("Jamaica","Jamaican","JM","JAM"),new B("Japan","Japanese","JP","JPN"),new B("Jersey","Jerseyman","JE","JEY"),new B("Jordan","Jordanian","JO","JOR"),new B("Kazakhstan","Kazakhstani","KZ","KAZ"),new B("Kenya","Kenyan","KE","KEN"),new B("Kiribati","I-Kiribati","KI","KIR"),new B("Kosovo","Kosovar","XK","XXK"),new B("Kuwait","\tKuwaiti","KW","KWT"),new B("Kyrgyzstan","Kyrgyzstani","KG","KGZ"),new B("Laos","Lao","LA","LAO"),new B("Latvia","Latvian","LV","LVA"),new B("Lebanon","Lebanese","LB","LBN"),new B("Lesotho","Lesothonian","LS","LSO"),new B("Liberia","Liberian","LR","LBR"),new B("Libya","Libyan","LY","LBY"),new B("Liechtenstein","Liechtensteiner","LI","LIE"),new B("Lithuania","Lithuanian","LT","LTU"),new B("Luxembourg","Luxembourgish","LU","LUX"),new B("Macao","Macau","MO","MAC"),new B("Madagascar","Malagasy","MG","MDG"),new B("Malawi","Malawian","MW","MWI"),new B("Malaysia","Malaysian","MY","MYS"),new B("Maldives","Maldivian","MV","MDV"),new B("Mali","Malian","ML","MLI"),new B("Malta","Maltese","MT","MLT"),new B("Marshall Islands","Marshallese","MH","MHL"),new B("Martinique","Martinican","MQ","MTQ"),new B("Mauritania","Mauritanian","MR","MRT"),new B("Mauritius","Mauritian","MU","MUS"),new B("Mayotte","Mahoran","YT","MYT"),new B("Mexico","Mexican","MX","MEX"),new B("Micronesia","Micronesian","FM","FSM"),new B("Moldova","Moldovan","MD","MDA"),new B("Monaco","Monegasque","MC","MCO"),new B("Mongolia","Mongolian","MN","MNG"),new B("Montenegro","Montenegrin","ME","MNE"),new B("Montserrat","Montserratian","MS","MSR"),new B("Morocco","Moroccan","MA","MAR"),new B("Mozambique","Mozambican","MZ","MOZ"),new B("Myanmar","Myanma","MM","MMR"),new B("Namibia","Namibian","NA","NAM"),new B("Nauru","Nauruan","NR","NRU"),new B("Nepal","Nepalese","NP","NPL"),new B("Netherlands Antilles","Netherlands Antillean","AN","ANT"),new B("Netherlands","Dutch","NL","NLD"),new B("New Caledonia","New Caledonian","NC","NCL"),new B("New Zealand","New Zealander","NZ","NZL"),new B("Nicaragua","Nicaraguan","NI","NIC"),new B("Niger","Nigerien","NE","NER"),new B("Nigeria","Nigerian","NG","NGA"),new B("Niue","Niuean","NU","NIU"),new B("Norfolk Island","Norfolk Islander","NF","NFK"),new B("North Korea","North Korea","KP","PRK"),new B("North Macedonia","Macedonian","MK","MKD"),new B("Northern Mariana Islands","Northern Mariana Islander","MP","MNP"),new B("Norway","Norwegian","NO","NOR"),new B("Oman","Omani","OM","OMN"),new B("Pakistan","Pakistani","PK","PAK"),new B("Palau","Palauan","PW","PLW"),new B("Palestine","Palestinian","PS","PSE"),new B("Panama","Panamanian","PA","PAN"),new B("Papua New Guinea","Papua New Guinean","PG","PNG"),new B("Paraguay","Paraguayan","PY","PRY"),new B("Peru","Peruvian","PE","PER"),new B("Philippines","Filipino","PH","PHL"),new B("Pitcairn","Pitcairn Islander","PN","PCN"),new B("Poland","Polish","PL","POL"),new B("Portugal","Portuguese","PT","PRT"),new B("Puerto Rico","Puerto Rican","PR","PRI"),new B("Qatar","Qatari","QA","QAT"),new B("R\xe9union","R\xe9unionese","RE","REU"),new B("Romania","Romanian","RO","ROU"),new B("Russia","Russian","RU","RUS"),new B("Rwanda","Rwandan","RW","RWA"),new B("Saint Barth\xe9lemy","Barth\xe9lemois","BL","BLM"),new B("Saint Helena, Ascension and Tristan da Cunha","Ascensionian","SH","SHN",["Saint Helenian","Tristanian"]),new B("Saint Kitts and Nevis","Kittitian","KN","KNA",["Nevisian"]),new B("Saint Lucia","Saint Lucian","LC","LCA"),new B("Saint Martin","Saint-Martinois","MF","MAF"),new B("Saint Pierre and Miquelon","Saint-Pierrais","PM","SPM"),new B("Saint Vincent and the Grenadines","Saint Vincentian","VC","VCT"),new B("Samoa","Samoan","WS","WSM"),new B("San Marino","Sammarinese","SM","SMR"),new B("Sao Tome and Principe","S\xe3o Tom\xe9an","ST","STP"),new B("Saudi Arabia","Saudi","SA","SAU"),new B("Senegal","Senegalese","SN","SEN"),new B("Serbia","Serbian","RS","SRB"),new B("Seychelles","Seychellois","SC","SYC"),new B("Sierra Leone","Sierra Leonean","SL","SLE"),new B("Singapore","Singaporean","SG","SGP",["SG","Singapura","Republik Singapura"]),new B("Sint Maarten","St. Maartener","SX","SXM"),new B("Slovakia","Slovak","SK","SVK"),new B("Slovenia","Slovenian","SI","SVN"),new B("Solomon Islands","Solomon Islander","SB","SLB"),new B("Somalia","Somali","SO","SOM"),new B("South Africa","South African","ZA","ZAF"),new B("South Georgia and the South Sandwich Islands","South Georgian","GS","SGS"),new B("South Korea","South Korean","KR","KOR",["Republic of Korea"]),new B("South Sudan","South Sudanese","SS","SSD"),new B("Spain","Spanish","ES","ESP"),new B("Sri Lanka","Sri Lankan","LK","LKA"),new B("Sudan","Sudanese","SD","SDN"),new B("Suriname","Surinamese","SR","SUR"),new B("Svalbard and Jan Mayen","Svalbard","SJ","SJM"),new B("Swaziland","Swazi","SZ","SWZ"),new B("Sweden","Swedish","SE","SWE"),new B("Switzerland","Swiss","CH","CHE"),new B("Syria","Syrian","SY","SYR"),new B("Taiwan","Taiwanese","TW","TWN"),new B("Tajikistan","Tajik","TJ","TJK"),new B("Tanzania","Tanzanian","TZ","TZA"),new B("Thailand","Thai","TH","THA"),new B("Timor-Leste","Timorese","TL","TLS"),new B("Togo","Togolese","TG","TGO"),new B("Tokelau","Tokelauan","TK","TKL"),new B("Tonga","Tongan","TO","TON"),new B("Trinidad and Tobago","Trinidadian and Tobagonian","TT","TTO"),new B("Tunisia","Tunisian","TN","TUN"),new B("Turkey","Turkish","TR","TUR"),new B("Turkmenistan","Turkmenistani","TM","TKM"),new B("Turks and Caicos Islands","Turks and Caicos Islander","TC","TCA"),new B("Tuvalu","Tuvaluan","TV","TUV"),new B("Uganda","Ugandan","UG","UGA"),new B("Ukraine","Ukrainian","UA","UKR"),new B("United Arab Emirates","Emirati","AE","ARE",["AE","UAE"]),new B("United Kingdom","British","GB","GBR",["UK"]),new B("United States Minor Outlying Islands","American Islander","UM","UMI"),new B("United States","American","US","USA",["USA"]),new B("Uruguay","Uruguayan","UY","URY"),new B("Uzbekistan","Uzbek","UZ","UZB"),new B("Vanuatu","Vanuatuan","VU","VUT"),new B("Venezuela","Venezuelan","VE","VEN"),new B("Vietnam","Vietnamese","VN","VNM",["Viet Nam","Republic of Viet Nam","South Vietnam"]),new B("Virgin Islands of the United States","Virgin Islander","VI","VIR"),new B("Wallis and Futuna","Wallisian","WF","WLF",["Futunan"]),new B("Western Sahara","Western Saharan","EH","ESH"),new B("Yemen","Yemeni","YE","YEM"),new B("Zambia","Zambian","ZM","ZMB"),new B("Zimbabwe","Zimbabwean","ZW","ZWE")];function Dp(t,i){return t.toUpperCase()===i.toUpperCase()}function jg(t,i){var e=t.find(i);return e?e.flag:""}const Mp={findFlagUrlByCountryName:function(i){return jg(Tp,function(e){var o=e.altSpellings;return Dp(e.name,i)||o.some(function(s){return Dp(s,i)})})},findFlagUrlByNationality:function(i){return jg(Tp,function(e){return Dp(e.demonym,i)})},findFlagUrlByIso2Code:function(i){return jg(Tp,function(e){return Dp(e.iso2,i)})},findFlagUrlByIso3Code:function(i){return jg(Tp,function(e){return Dp(e.iso3,i)})}},xp={countries:Tp,flagUrls:FF,findFlagUrlByCountryName:Mp.findFlagUrlByCountryName,findFlagUrlByNationality:Mp.findFlagUrlByNationality,findFlagUrlByIso2Code:Mp.findFlagUrlByIso2Code,findFlagUrlByIso3Code:Mp.findFlagUrlByIso3Code};var Te=function(t){return t.StartHalf="StartHalf",t.BallPosition="BallPosition",t.KickOff="KickOff",t.ThrowIn="ThrowIn",t.FreeKick="FreeKick",t.Corner="Corner",t.Shot="Shot",t.Card="Card",t.Goal="Goal",t.Penalty="Penalty",t.PenaltyResult="PenaltyResult",t.GoalKick="GoalKick",t.EndHalf="EndHalf",t.PenaltyShootout="PenaltyShootout",t.WeatherCondition="WeatherCondition",t.PitchCondition="PitchCondition",t.PlayersCount="PlayersCount",t.PlayersOnField="PlayersOnField",t}(Te||{}),et=function(t){return t.Possession="Possession",t.TimeStop="TimeStop",t.TimeRun="TimeRun",t.TwoPoint="TwoPoint",t.ThreePoint="ThreePoint",t.Foul="Foul",t.FreeThrowAward="FreeThrowAward",t.FreeThrow="FreeThrow",t.TurnOver="TurnOver",t.TimeOut="TimeOut",t.TimeOutOver="TimeOutOver",t.ConfirmScore="ConfirmScore",t.StartQuarter="StartQuarter",t.EndQuarter="EndQuarter",t.PlayerStatus="PlayerStatus",t.PlayersOnCourt="PlayersOnCourt",t}(et||{}),ge=function(t){return t.StandBy="StandBy",t.CloseGame="CloseGame",t.OpenGame="OpenGame",t.Substitution="Substitution",t.Comment="Comment",t.ReporterPosition="ReporterPosition",t.Attendance="Attendance",t.TeamColor="TeamColor",t.EndGame="EndGame",t.CallMe="CallMe",t.VAR="VAR",t.TimeAdjust="TimeAdjust",t.LineupChange="LineupChange",t}(ge||{});function Ep(t,i){let e;if("football"==t.sport?.name.toLowerCase()?(e=function _he(t){return t.footballStat?.serverStartTime&&!t.footballStat?.serverEnd1stTime?(new Date).getTime()-new Date(t.footballStat?.serverStartTime).getTime():t.footballStat?.serverStartTime&&t.footballStat?.serverEnd1stTime&&!t.footballStat?.serverStart2ndTime?27e5:t.footballStat?.serverStart2ndTime&&!t.footballStat?.serverEnd2ndTime?27e5+(new Date).getTime()-new Date(t.footballStat?.serverStart2ndTime).getTime():t.footballStat?.serverStart2ndTime&&t.footballStat?.serverEnd2ndTime&&!t.footballStat?.serverStart1stExtraTime?54e5:t.footballStat?.serverStart1stExtraTime&&!t.footballStat?.serverEnd1stExtraTime?54e5+(new Date).getTime()-new Date(t.footballStat?.serverStart1stExtraTime).getTime():t.footballStat?.serverStart1stExtraTime&&t.footballStat?.serverEnd1stExtraTime&&!t.footballStat?.serverStart2ndExtraTime?63e5:t.footballStat?.serverStart2ndExtraTime&&!t.footballStat?.serverEnd2ndExtraTime?Math.floor((new Date).getTime()-new Date(t.footballStat?.serverStart2ndExtraTime).getTime()+63e5):t.footballStat?.serverStart1stExtraTime&&t.footballStat?.serverEnd1stExtraTime?72e5:-1}(t),i&&27e5!==e&&54e5!==e&&63e5!==e&&72e5!==e&&(e-=i)):"basketball"==t.sport?.name.toLowerCase()&&(e=function yhe(t){return t.matchFinished?0:t.basketballStat?.fifthOvertimeStartTime&&!t.basketballStat?.fifthOvertimeEndTime?Ya(t,t.basketballStat?.fifthOvertimeStartTime):t.basketballStat?.fourthOvertimeEndTime&&!t.basketballStat?.fifthOvertimeStartTime?As(t):t.basketballStat?.fourthOvertimeStartTime&&!t.basketballStat?.fourthOvertimeEndTime?Ya(t,t.basketballStat?.fourthOvertimeStartTime):t.basketballStat?.thirdOvertimeEndTime&&!t.basketballStat?.fourthOvertimeStartTime?As(t):t.basketballStat?.thirdOvertimeStartTime&&!t.basketballStat?.thirdOvertimeEndTime?Ya(t,t.basketballStat?.thirdOvertimeStartTime):t.basketballStat?.secondOvertimeEndTime&&!t.basketballStat?.thirdOvertimeStartTime?As(t):t.basketballStat?.secondOvertimeStartTime&&!t.basketballStat?.secondOvertimeEndTime?Ya(t,t.basketballStat?.secondOvertimeStartTime):t.basketballStat?.firstOvertimeEndTime&&!t.basketballStat?.secondOvertimeStartTime?As(t):t.basketballStat?.firstOvertimeStartTime&&!t.basketballStat?.firstOvertimeEndTime?Ya(t,t.basketballStat?.firstOvertimeStartTime):t.basketballStat?.fourthQuarterEndTime&&!t.basketballStat?.firstOvertimeStartTime?As(t):t.basketballStat?.fourthQuarterStartTime&&!t.basketballStat?.fourthQuarterEndTime?Ya(t,t.basketballStat?.fourthQuarterStartTime):t.basketballStat?.thirdQuarterEndTime&&!t.basketballStat?.fourthQuarterStartTime?As(t):t.basketballStat?.thirdQuarterStartTime&&!t.basketballStat?.thirdQuarterEndTime?Ya(t,t.basketballStat?.thirdQuarterStartTime):t.basketballStat?.secondQuarterEndTime&&!t.basketballStat?.thirdQuarterStartTime?As(t):t.basketballStat?.secondQuarterStartTime&&!t.basketballStat?.secondQuarterEndTime?Ya(t,t.basketballStat?.secondQuarterStartTime):t.basketballStat?.firstQuarterEndTime&&!t.basketballStat?.secondQuarterStartTime?As(t):t.basketballStat?.firstQuarterStartTime&&!t.basketballStat?.firstQuarterEndTime?Ya(t,t.basketballStat?.firstQuarterStartTime):As(t)}(t)),e&&e>0){let n=(Math.floor(e/1e3)%60).toString().padStart(2,"0");return Math.floor(e/6e4).toString().padStart(2,"0")+":"+n}return"00:00"}const bhe=6e4,LF=1e3,vhe=10;function As(t){return(t.basketballStat?.periodLength??vhe)*bhe}function Ya(t,i){const e=function ghe(t,i){return t.matchInfo.lastEvents.filter(e=>!!(e.timeServer&&e.timeServer>i))}(t,i);let u,n=0,o=!1,s=i,a=As(t),r=a;for(let g=e.length-1;g>=0;g--){const y=e[g];y.name===et.StartQuarter&&(n=0,s=y.timeServer,a=As(t)),y.name===ge.TimeAdjust&&(y.value.startsWith("TA")?(n=0,s=y.timeServer,a=parseInt(y.value.substring(6))):"MS|+2000"===y.value?n+=2:"MS|-2000"===y.value&&(n-=2)),[et.TimeOutOver,et.TimeOut,et.TimeStop,et.Foul,et.FreeThrow,et.FreeThrowAward,et.TurnOver].includes(y.name)&&(o=!0,n=0,s=y.timeServer,a=BF(y.timeMatch)),[et.Possession,et.TimeRun].includes(y.name)&&(o=!1,n=0,s=y.timeServer,a=BF(y.timeMatch))}return o?(r=a,u=0):(r=a,u=(new Date).getTime()-new Date(s).getTime()),r-u+n*LF}function BF(t){const[i,e]=t.split(":").map(Number);return(60*i+e)*LF}let ua=(()=>{class t{constructor(){}injectOneFlag(e){let n="",o=this.getRegionFromMatchOrCompetition(e);return o&&(n=xp.findFlagUrlByCountryName(o.name)),""==n&&(n="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Flag_of_FIFA.svg/640px-Flag_of_FIFA.svg.png"),Object.assign({flag:n},e)}getSportIcon(e){return"football"==e.toLowerCase()?"https://img.icons8.com/?size=120&id=xsj5Zlx99Bjv&format=png":"basketball"==e.toLowerCase()?"https://img.icons8.com/?size=120&id=khlCdbEXD0Sp&format=png":"tennis"==e.toLowerCase()?"https://img.icons8.com/?size=120&id=AF2FJWsPaMoY&format=png":"https://img.icons8.com/?size=120&id=xsj5Zlx99Bjv&format=png"}getRegionFromMatchOrCompetition(e){return e?.region?e.region:e?.competition?.region?e.competition.region:null}injectFlags(e){let n=[];return e.forEach(o=>{let s="",a=this.getRegionFromMatchOrCompetition(o);a&&(s=xp.findFlagUrlByCountryName(a.name)),""==s&&(s="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Flag_of_FIFA.svg/640px-Flag_of_FIFA.svg.png"),o=Object.assign({flag:s},o),n.push(o)}),n}getMatchStatus(e,n){return"football"==e.sport?.name.toLowerCase()?this.getFootballMatchStatus(e,n):"basketball"==e.sport?.name.toLowerCase()?this.getBasketballMatchStatus(e,n):{}}getMobileCoverageURL(e){return"football"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:"basketball"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL_B+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:""}getBasketballMatchStatus(e,n){const o=new Date(e.plannedStartingTime),s=new Date;return e?e.matchFinished?{status:n.instant("general_Finished"),color:"red"}:e.plannedStartingTime&&!e.basketballStat?.firstQuarterStartTime?s.getTime()<o.getTime()||s.getTime()<o.getTime()+72e5?{status:n.instant("general_upcoming"),color:"orange"}:{status:n.instant("general_Finished"),color:"red"}:e.basketballStat?.firstQuarterStartTime&&!e.basketballStat?.firstQuarterEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_1st")+" "+n.instant("general_quarter"),color:"green"}:e.basketballStat?.firstQuarterEndTime&&!e.basketballStat?.secondQuarterStartTime?{status:n.instant("general_running")+" 1st "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.secondQuarterStartTime&&!e.basketballStat?.secondQuarterEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_2st")+" "+n.instant("general_quarter"),color:"green"}:e.basketballStat?.secondQuarterEndTime&&!e.basketballStat?.thirdQuarterStartTime?{status:n.instant("general_running")+" 2nd "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.thirdQuarterStartTime&&!e.basketballStat?.thirdQuarterEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_3rd")+" "+n.instant("general_quarter"),color:"green"}:e.basketballStat?.thirdQuarterEndTime&&!e.basketballStat?.fourthQuarterStartTime?{status:n.instant("general_running")+" 3rd "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.fourthQuarterStartTime&&!e.basketballStat?.fourthQuarterEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_4th")+" "+n.instant("general_quarter"),color:"green"}:e.basketballStat?.fourthQuarterEndTime&&!e.basketballStat?.firstOvertimeStartTime?{status:n.instant("general_running")+" 4th "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.firstOvertimeStartTime&&!e.basketballStat?.firstOvertimeEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_1st")+" "+n.instant("general_overtime"),color:"green"}:e.basketballStat?.firstOvertimeEndTime&&!e.basketballStat?.secondOvertimeStartTime?{status:n.instant("general_running")+" 1st "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.secondOvertimeStartTime&&!e.basketballStat?.secondOvertimeEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_2nd")+" "+n.instant("general_overtime"),color:"green"}:e.basketballStat?.secondOvertimeEndTime&&!e.basketballStat?.thirdOvertimeStartTime?{status:n.instant("general_running")+" 2nd "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.thirdOvertimeStartTime&&!e.basketballStat?.thirdOvertimeEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_3rd")+" "+n.instant("general_overtime"),color:"green"}:e.basketballStat?.thirdOvertimeEndTime&&!e.basketballStat?.fourthOvertimeStartTime?{status:n.instant("general_running")+" 3rd "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.fourthOvertimeStartTime&&!e.basketballStat?.fourthOvertimeEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_4th")+" "+n.instant("general_overtime"),color:"green"}:e.basketballStat?.fourthOvertimeEndTime&&!e.basketballStat?.firstOvertimeEndTime?{status:n.instant("general_running")+" 4th "+n.instant("general_period_quarter_time"),color:"green"}:e.basketballStat?.fifthOvertimeStartTime&&!e.basketballStat?.fifthOvertimeEndTime?{status:n.instant("general_running")+" "+n.instant("general_period_5th")+" "+n.instant("general_overtime"),color:"green"}:e.basketballStat?.fifthOvertimeEndTime?{status:n.instant("general_running")+" 5th "+n.instant("general_period_quarter_time"),color:"green"}:{status:n.instant("general_paused"),color:"red"}:{status:null,color:""}}getFootballMatchStatus(e,n){const o=new Date(e.plannedStartingTime),s=new Date;return e?e.matchFinished?{status:n.instant("general_Finished"),color:"red"}:e.plannedStartingTime&&!e.footballStat?.serverStartTime?s.getTime()<o.getTime()||s.getTime()<o.getTime()+72e5?{status:n.instant("general_upcoming"),color:"orange"}:{status:n.instant("general_Finished"),color:"red"}:e.footballStat?.serverStartTime&&!e.footballStat?.serverEnd1stTime?{status:n.instant("general_running")+" "+n.instant("general_period_1st")+" "+n.instant("general_half"),color:"green"}:e.footballStat?.serverEnd1stTime&&!e.footballStat?.serverStart2ndTime?{status:n.instant("general_running")+" "+n.instant("general_period_half_time"),color:"green"}:e.footballStat?.serverStart2ndTime&&!e.footballStat?.serverEnd2ndTime?{status:n.instant("general_running")+" "+n.instant("general_period_2st")+" "+n.instant("general_half"),color:"green"}:e.footballStat?.serverStart1stExtraTime&&!e.footballStat?.serverEnd1stExtraTime?{status:n.instant("general_running")+" "+n.instant("general_period_1st_ex")+" "+n.instant("general_half"),color:"green"}:e.footballStat?.serverStart2ndExtraTime&&!e.footballStat?.serverEnd2ndExtraTime?{status:n.instant("general_running")+" "+n.instant("general_period_2nd_ex")+" "+n.instant("general_half"),color:"green"}:e.footballStat?.goingToPenaltyShootout?{status:n.instant("general_penalties"),color:"green"}:{status:n.instant("general_paused"),color:"red"}:{status:null,color:""}}formatMatchDetails(e){const n=new Date(e.plannedStartingTime),o=n.toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),s=n.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"}),a="\u23f1\ufe0f"+Ep(e);let r=`${e.id}\n`;return r+=`${s} ${e.competition?.name}\n`,r+=`${e.homeTeam?.name} vs ${e.awayTeam?.name}\n\n`,r+=`\u{1f4cc} ${o}\n`,r+=`${a}\n`,e.footballStat&&(r+=`${e.footballStat.homeGoals} \u26bd ${e.footballStat.awayGoals}\n`,r+=`${e.footballStat.homeYellowCards} \u{1f7e8} ${e.footballStat.awayYellowCards}\n`,r+=`${e.footballStat.homeRedCards+e.footballStat.homeSecondYellowCards} \u{1f7e5} ${e.footballStat.awayRedCards+e.footballStat.awaySecondYellowCards}\n`,r+=`${e.footballStat.homeCorners} \u26f3 ${e.footballStat.awayCorners}`),r}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Che=["regionsSelect"];function whe(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(null==e?null:e.name)}}function She(t,i){if(1&t&&(l(0,"mat-option",16),h(1),d()),2&t){const e=i.$implicit,n=b(2);f("value",e.name)("displayWith",n.displayFn),c(1),We(" ",e.name," ",e.city&&"("+e.city+")"," ")}}function The(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_required")," "))}function Dhe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(8,"translate"),p(9,whe,2,2,"mat-option",8),d()(),l(10,"mat-form-field",9),D(11,"input",10),C(12,"translate"),l(13,"mat-autocomplete",null,11),p(15,She,2,4,"mat-option",12),C(16,"async"),d(),p(17,The,3,3,"mat-error",0),d(),D(18,"mat-divider"),l(19,"p")(20,"button",13),h(21),C(22,"translate"),d(),h(23," \xa0 "),l(24,"button",14),M("click",function(){return E(e),I(b().onNoClick())}),h(25),C(26,"translate"),d()()()()()}if(2&t){const e=X(14),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,13,"general_region")),f("value",n.selectedRegions)("compareWith",n.compareFn),c(3),f("ngForOf",n.regions),c(2),N("placeholder",w(12,15,"general_stadium")),f("formControl",n.stadiumCtrl)("matAutocomplete",e),c(4),f("ngForOf",w(16,17,n.autocompleteFilteredStadiums)),c(2),f("ngIf",n.stadiumCtrl.hasError("required")),c(4),O(w(22,19,"general_save")),c(4),O(w(26,21,"general_close"))}}function Mhe(t,i){1&t&&(l(0,"div",17),D(1,"mat-spinner",18),d())}function xhe(t,i){1&t&&(l(0,"div",17)(1,"mat-icon",19),h(2,"done"),d()())}function Ehe(t,i){1&t&&(l(0,"div",17)(1,"mat-icon",20),h(2,"clear"),d()())}let Ihe=(()=>{class t{constructor(e,n,o,s,a){this.filterService=e,this.http=n,this.translateService=o,this.fb=s,this.matchesService=a,this.onProgress=0,this.stadiumCtrl=new ji(""),this.regions=[],this.stadiums=[],this.selectedRegions=[]}displayFn(e){return e||""}_filter(e){const n=e.toLowerCase();return this.filteredStadiums.filter(o=>o.name?.toLowerCase().includes(n))}ngOnChanges(e){this.onProgress=0,this.stadiums=v.stadiums,this.service=new Q(v.apiURLs.rootURL+"matches",this.http),this.regions=v.regions.filter(o=>this.stadiums.some(s=>s.region?.name==o.name));let n=this.matchesService.getRegionFromMatchOrCompetition(this.entity);this.entity.stadium?.region?(this.selectedRegions=[this.entity.stadium.region],this.onFilter()):n&&(this.selectedRegions=[n],this.onFilter()),null===this.entity&&(this.entity=new da),this.options=this.fb.group({stadium:[this.entity.stadium]}),this.autocompleteFilteredStadiums=this.stadiumCtrl.valueChanges.pipe(jt(""),Le(o=>this._filter(o||""))),this.stadiumCtrl.setValue(this.entity.stadium?.name??"")}onFilter(){let e=[];for(let n of this.stadiums)this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region")&&e.push(n);this.filteredStadiums=e}get title(){return this.translateService.instant(null==this.entity.id?"match_stadium_add_new":"match_stadium_edit")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,"object"==typeof this.entity.refereeList&&(this.entity.refereeList=JSON.stringify(this.entity.refereeList)),this.entity.stadium=this.stadiums.find(n=>n.name==this.stadiumCtrl.value)??null;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur),_(Ee),_(Ze),_(mn),_(ua))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-stadium-dialog-content"]],viewQuery:function(n,o){if(1&n&&ne(Che,5),2&n){let s;G(s=z())&&(o.regionsSelect=s.first)}},inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["regionsSelect",""],[3,"value",4,"ngFor","ngForOf"],[1,"full-width"],["type","text","matInput","","required","",3,"formControl","matAutocomplete","placeholder"],["stadiumAutocomplete","matAutocomplete"],[3,"value","displayWith",4,"ngFor","ngForOf"],["mat-raised-button","","type","submit"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[3,"value","displayWith"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Dhe,27,23,"div",0),p(1,Mhe,2,0,"div",1),p(2,xhe,3,0,"div",1),p(3,Ehe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[zt,Sr,gt,wn,ql,Ad,Wl,Ft,gn,xn,Ne,Re,je,Fe,Me,Oe,ce,qe,le,mr,_e,we,xt,Vt,Lt,Mt,Bt,Vn,wr,vt,ut,on,Tn,Gt],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Ohe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-stadium-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-stadium-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Ihe]})}return t})();function Rhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function khe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Ahe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Phe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Nhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",e.firstName+" "+e.lastName," ")}}function Fhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",28)(1,"mat-select",16),M("valueChange",function(o){return E(e),I(b(2).selectedReporters=o)}),C(2,"translate"),p(3,Nhe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,4,"general_reporters")),f("value",e.selectedReporters)("compareWith",e.compareFn),c(2),f("ngForOf",e.reporters)}}function Lhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",e.firstName+" "+e.lastName," ")}}function Bhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",29)(1,"mat-select",16),M("valueChange",function(o){return E(e),I(b(2).selectedModerators=o)}),C(2,"translate"),p(3,Lhe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,4,"general_moderators")),f("value",e.selectedModerators)("compareWith",e.compareFn),c(2),f("ngForOf",e.moderators)}}function Vhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e)}}function Hhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",30)(1,"mat-select",31),M("valueChange",function(o){return E(e),I(b(2).selectedCoverageStatus=o)}),C(2,"translate"),p(3,Vhe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,3,"general_coverage_status")),f("value",e.selectedCoverageStatus),c(2),f("ngForOf",e.coverageStatuses)}}function Uhe(t,i){if(1&t){const e=F();l(0,"mat-icon",32),M("click",function(){return E(e),I(b(2).onResetClick())}),h(1," replay "),d()}}function $he(t,i){if(1&t){const e=F();A(0),l(1,"div")(2,"button",13),h(3,"Filters"),d(),l(4,"mat-menu",null,14)(6,"mat-form-field",15)(7,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedSports=o)}),C(8,"translate"),p(9,Rhe,2,2,"mat-option",17),d()(),l(10,"mat-form-field",18)(11,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedCompetitions=o)}),C(12,"translate"),p(13,khe,2,2,"mat-option",17),d()(),l(14,"mat-form-field",19)(15,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)}),C(16,"translate"),p(17,Ahe,2,2,"mat-option",17),d()(),l(18,"mat-form-field",20)(19,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedTeams=o)}),C(20,"translate"),p(21,Phe,2,2,"mat-option",17),d()(),p(22,Fhe,4,6,"mat-form-field",21),p(23,Bhe,4,6,"mat-form-field",22),p(24,Hhe,4,5,"mat-form-field",23),d(),l(25,"button",24),M("click",function(){return E(e),I(b().onFilter())}),h(26," Filter "),d(),l(27,"button",25),p(28,Uhe,2,0,"mat-icon",26),d()(),P()}if(2&t){const e=X(5),n=b();c(2),f("matMenuTriggerFor",e),c(5),N("placeholder",w(8,21,"general_sports")),f("value",n.selectedSports)("compareWith",n.compareFn),c(2),f("ngForOf",n.sports),c(2),N("placeholder",w(12,23,"general_competitions")),f("value",n.selectedCompetitions)("compareWith",n.compareFn),c(2),f("ngForOf",n.competitions),c(2),N("placeholder",w(16,25,"general_regions")),f("value",n.selectedRegions)("compareWith",n.compareFn),c(2),f("ngForOf",n.regions),c(2),N("placeholder",w(20,27,"general_teams")),f("value",n.selectedTeams)("compareWith",n.compareFn),c(2),f("ngForOf",n.teams),c(1),f("ngIf",n.showReporters),c(1),f("ngIf",n.showModerators),c(1),f("ngIf",n.usersService.isAdmin||n.usersService.isCustomer||n.usersService.isCoverageManager),c(4),f("ngIf",n.showResetButton)}}function jhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Ghe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function zhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Whe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function qhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",e.firstName+" "+e.lastName," ")}}function Yhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",28)(1,"mat-select",16),M("valueChange",function(o){return E(e),I(b(2).selectedReporters=o)}),C(2,"translate"),p(3,qhe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,4,"general_reporters")),f("value",e.selectedReporters)("compareWith",e.compareFn),c(2),f("ngForOf",e.reporters)}}function Qhe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",e.firstName+" "+e.lastName," ")}}function Zhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",29)(1,"mat-select",16),M("valueChange",function(o){return E(e),I(b(2).selectedModerators=o)}),C(2,"translate"),p(3,Qhe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,4,"general_moderators")),f("value",e.selectedModerators)("compareWith",e.compareFn),c(2),f("ngForOf",e.moderators)}}function Khe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e)}}function Xhe(t,i){if(1&t){const e=F();l(0,"mat-form-field",30)(1,"mat-select",31),M("valueChange",function(o){return E(e),I(b(2).selectedCoverageStatus=o)}),C(2,"translate"),p(3,Khe,2,2,"mat-option",17),d()()}if(2&t){const e=b(2);c(1),N("placeholder",w(2,3,"general_coverage_status")),f("value",e.selectedCoverageStatus),c(2),f("ngForOf",e.coverageStatuses)}}function Jhe(t,i){if(1&t){const e=F();l(0,"mat-icon",32),M("click",function(){return E(e),I(b(2).onResetClick())}),h(1," replay "),d()}}function epe(t,i){if(1&t){const e=F();l(0,"mat-form-field",15)(1,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedSports=o)}),C(2,"translate"),p(3,jhe,2,2,"mat-option",17),d()(),l(4,"mat-form-field",18)(5,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedCompetitions=o)}),C(6,"translate"),p(7,Ghe,2,2,"mat-option",17),d()(),l(8,"mat-form-field",19)(9,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)}),C(10,"translate"),p(11,zhe,2,2,"mat-option",17),d()(),l(12,"mat-form-field",20)(13,"mat-select",16),M("valueChange",function(o){return E(e),I(b().selectedTeams=o)}),C(14,"translate"),p(15,Whe,2,2,"mat-option",17),d()(),p(16,Yhe,4,6,"mat-form-field",21),p(17,Zhe,4,6,"mat-form-field",22),p(18,Xhe,4,5,"mat-form-field",23),l(19,"button",24),M("click",function(){return E(e),I(b().onFilter())}),h(20," Filter "),d(),l(21,"button",25),p(22,Jhe,2,0,"mat-icon",26),d()}if(2&t){const e=b();c(1),N("placeholder",w(2,20,"general_sports")),f("value",e.selectedSports)("compareWith",e.compareFn),c(2),f("ngForOf",e.sports),c(2),N("placeholder",w(6,22,"general_competitions")),f("value",e.selectedCompetitions)("compareWith",e.compareFn),c(2),f("ngForOf",e.competitions),c(2),N("placeholder",w(10,24,"general_regions")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(2),f("ngForOf",e.regions),c(2),N("placeholder",w(14,26,"general_teams")),f("value",e.selectedTeams)("compareWith",e.compareFn),c(2),f("ngForOf",e.teams),c(1),f("ngIf",e.showReporters),c(1),f("ngIf",e.showModerators),c(1),f("ngIf",e.usersService.isAdmin||e.usersService.isCustomer||e.usersService.isCoverageManager),c(4),f("ngIf",e.showResetButton)}}const tpe=function(t){return{color:t}},$w=function(t){return{"background-color":t}};let npe=(()=>{class t{constructor(e,n,o){this.http=e,this.filterService=n,this.usersService=o,this.showReporters=!1,this.showModerators=!1,this.showTrainingMatches=!1,this.onResetFilters=new W,this.onFilterdMatches=new W,this.onFilterdDates=new W,this.sports=[],this.selectedSports=[],this.competitions=[],this.selectedCompetitions=[],this.regions=[],this.selectedRegions=[],this.reporters=[],this.selectedReporters=[],this.teams=[],this.selectedTeams=[],this.tempModerators=[],this.moderators=[],this.selectedModerators=[],this.coverageStatuses=["pending","approved","canceled","declined"],this.selectedCoverageStatus=[],this.isMobileView=!1,this.firstrun=!0}onResize(e){this.isMobileView=window.innerWidth<=920}ngOnInit(){this.isMobileView=window.innerWidth<=920}get showResetButton(){return!!(Array.isArray(this.selectedCompetitions)&&this.selectedCompetitions.length>0||Array.isArray(this.selectedSports)&&this.selectedSports.length>0||Array.isArray(this.selectedModerators)&&this.selectedModerators.length>0||Array.isArray(this.selectedReporters)&&this.selectedReporters.length>0||Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0||Array.isArray(this.selectedTeams)&&this.selectedTeams.length>0||Array.isArray(this.selectedCoverageStatus)&&this.selectedCoverageStatus.length>0)}initFilterOptions(e){this.sports=[],this.competitions=[],this.regions=[],this.teams=[],this.reporters=[],this.moderators=[];const n=new Set,o=new Set,s=new Set,a=new Set,r=new Set,u=new Set;if(e&&e.length>0&&(e.forEach(m=>{m.sport&&null!==m.sport.id&&!n.has(m.sport.id)&&(this.sports.push(m.sport),n.add(m.sport.id)),m.competition&&null!==m.competition.id&&!o.has(m.competition.id)&&(this.competitions.push(m.competition),o.add(m.competition.id)),m.region&&null!==m.region.id&&!a.has(m.region.id)?(this.regions.push(m.region),a.add(m.region.id)):m.competition?.region&&null!==m.competition.region.id&&!a.has(m.competition.region.id)&&(this.regions.push(m.competition.region),a.add(m.competition.region.id)),m.awayTeam&&null!==m.awayTeam.id&&!s.has(m.awayTeam.id)&&(this.teams.push(m.awayTeam),s.add(m.awayTeam.id)),m.homeTeam&&null!==m.homeTeam.id&&!s.has(m.homeTeam.id)&&(this.teams.push(m.homeTeam),s.add(m.homeTeam.id)),m.assignedReporter&&null!==m.assignedReporter.id&&!r.has(m.assignedReporter.id)&&(this.reporters.push(m.assignedReporter),r.add(m.assignedReporter.id)),m.assignedModerators&&m.assignedModerators.forEach(g=>{null!==g.id&&!u.has(g.id)&&(this.moderators.push(g),u.add(g.id))})}),this.sports.sort(xi("name")),this.competitions.sort(xi("name")),this.regions.sort(xi("name")),this.teams.sort(xi("name")),this.reporters.sort(xi("name")),this.moderators.sort(xi("lastName")),this.firstrun&&!this.usersService.isCountryManager&&!this.usersService.isCoverageManager)){const m=this.sports.find(g=>1==g.id);m&&this.selectedSports.push(m),this.firstrun=!1}}ngOnChanges(e){e.matches&&e.matches.currentValue&&e.matches.previousValue&&!Object.is(e.matches.currentValue,e.matches.previousValue)&&this.onFilter()}ngAfterContentInit(){this.initDateAs("Today"),this.getSessionStorage(),this.onFilter()}onFilter(){this.updateFilterOptions();let e=[];e=this.matches,e=e.filter(n=>this.filterService.shouldAcceptTargetBy(n,this.selectedTeams,"team",this.shouldAcceptMatchByTeam)&&this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region",this.shouldAcceptMatchByRegion)&&this.filterService.shouldAcceptTargetBy(n,this.selectedSports,"sport",this.shouldAcceptMatchBySport)&&this.filterService.shouldAcceptTargetBy(n,this.selectedCompetitions,"competition",this.shouldAcceptMatchByCompetition)&&this.filterService.shouldAcceptTargetBy(n,this.selectedReporters,"reporter",this.shouldAcceptMatchByReporter)&&this.filterService.shouldAcceptTargetBy(n,this.selectedModerators,"moderator",this.shouldAcceptMatchByModerator)&&this.filterService.shouldAcceptTargetBy(n,this.selectedCoverageStatus,"coverageStatus",this.shouldAcceptMatchByCoverageStatus)),this.setSessionStorage(),this.onFilterdMatches.emit(e)}updateFilterOptions(){let e=this.matches;this.selectedCompetitions.length>0&&(e=e.filter(n=>this.selectedCompetitions.some(o=>o.id===n.competition?.id))),this.selectedSports.length>0&&(e=e.filter(n=>this.selectedSports.some(o=>o.id===n.sport?.id))),this.selectedRegions.length>0&&(e=e.filter(n=>this.selectedRegions.some(o=>o.id===n.region?.id||o.id===n.competition?.region?.id))),this.selectedTeams.length>0&&(e=e.filter(n=>this.selectedTeams.some(o=>o.id===n.homeTeam?.id||o.id===n.awayTeam?.id))),this.selectedReporters.length>0&&(e=e.filter(n=>this.selectedReporters.some(o=>o.id===n.assignedReporter?.id))),this.selectedModerators.length>0&&(e=e.filter(n=>n.assignedModerators?.some(o=>this.selectedModerators.some(s=>s.id===o.id)))),this.selectedCoverageStatus.length>0&&(e=e.filter(n=>this.selectedCoverageStatus.some(o=>o===n.coverageStatus))),this.initFilterOptions(e)}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStorageMatch")??"{}");0!==Object.keys(e).length&&(this.selectedCompetitions=e.selectedCompetitions||[],this.selectedSports=e.selectedSports||[],this.selectedModerators=e.selectedModerators||[],this.selectedRegions=e.selectedRegions||[],this.selectedReporters=e.selectedReporters||[],this.selectedCoverageStatus=e.selectedCoverageStatus||[],e?.selectedEndDate&&(this.selectedEndDate=new Date(parseInt(e.selectedEndDate))),e?.selectedStartDate&&(this.selectedStartDate=new Date(parseInt(e.selectedStartDate))),this.selectedTeams=e.selectedTeams||[])}setSessionStorage(){sessionStorage.setItem("filterStorageMatch",JSON.stringify({selectedCompetitions:this.selectedCompetitions||[],selectedSports:this.selectedSports||[],selectedRegions:this.selectedRegions||[],selectedTeams:this.selectedTeams||[],selectedModerators:this.selectedModerators||[],selectedReporters:this.selectedReporters||[],selectedEndDate:+this.selectedEndDate||null,selectedStartDate:+this.selectedStartDate||null,selectedCoverageStatus:this.selectedCoverageStatus||[]}))}shouldAcceptMatchByModerator(e,n){if(e.assignedModerators&&Array.isArray(e.assignedModerators))for(const o of e.assignedModerators)if(o.id===n.id)return!0;return!1}shouldAcceptMatchBySport(e,n){return!(!e.sport||n.id!==e.sport.id)}shouldAcceptMatchByCoverageStatus(e,n){return e.coverageStatus===n}shouldAcceptMatchByCompetition(e,n){return!(!e.competition||n.id!==e.competition.id)}shouldAcceptMatchByRegion(e,n){return!(!e.region||n.id!==e.region.id)||!(!e.competition?.region||n.id!==e.competition.region.id)}shouldAcceptMatchByTeam(e,n){return e.homeTeam?.id===n.id||e.awayTeam?.id===n.id}shouldAcceptMatchByReporter(e,n){return!(!e.assignedReporter||n.id!==e.assignedReporter.id)}compareDates(){const e=new Date,n=this.selectedStartDate;if(n){const a=n.getTime()-6e4*n.getTimezoneOffset(),r=e.setHours(0,0,0,0);if(r===a)return"TODAY";if(r<a){const u=new Date(e);if(u.setDate(e.getDate()+1),a<=u.setHours(0,0,0,0))return"TOMORROW"}else if(r>a){const u=new Date(e);if(u.setDate(e.getDate()-1),a>=u.setHours(0,0,0,0))return"YESTERDAY"}}return null}initDateAs(e){if(e){const n={Today:0,Tomorrow:1,Yesterday:-1},o=new Date;o.setDate(o.getDate()+(n[e]||0)),this.displayStartDate=new Date(o),this.displayEndDate=new Date(o);const s=o.getTimezoneOffset();this.selectedStartDate=new Date(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0,0),this.selectedEndDate=new Date(o.getFullYear(),o.getMonth(),o.getDate(),23,59,59,59),this.selectedStartDate.setMinutes(this.selectedStartDate.getMinutes()+s),this.selectedEndDate.setMinutes(this.selectedEndDate.getMinutes()+s)}}addFilterDate(e,n){const o=n.value;if(null!=o){const s=new Date(o),a=o.getTimezoneOffset();"S"===e?(s.setHours(0,0,0,0),s.setMinutes(s.getMinutes()+a),this.selectedStartDate=s):"E"===e&&(s.setHours(23,59,59,999),s.setMinutes(s.getMinutes()+a),this.selectedEndDate=s),this.onDatesFilter()}}addDisplayFilterDate(e,n){const o=n.value;null!=o&&("S"===e?this.displayStartDate=o:"E"===e&&(this.displayEndDate=o),this.addFilterDate(e,n))}onDatesFilter(){this.onFilterdDates.emit({selectedStartDate:this.selectedStartDate,selectedEndDate:this.selectedEndDate})}changeBoolean(e,n){"TM"===e?(this.initDateAs("Today"),this.onDatesFilter()):"TOM"===e?(this.initDateAs("Tomorrow"),this.onDatesFilter()):"YES"===e&&(this.initDateAs("Yesterday"),this.onDatesFilter())}onResetClick(){this.selectedCompetitions=[],this.selectedSports=[],this.selectedRegions=[],this.selectedReporters=[],this.selectedModerators=[],this.selectedTeams=[],this.selectedCoverageStatus=[],this.initFilterOptions(this.matches),this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ur),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-matches-filter"]],hostBindings:function(n,o){1&n&&M("resize",function(a){return o.onResize(a)},0,vD)},inputs:{matches:"matches",showReporters:"showReporters",showModerators:"showModerators",showTrainingMatches:"showTrainingMatches"},outputs:{onResetFilters:"onResetFilters",onFilterdMatches:"onFilterdMatches",onFilterdDates:"onFilterdDates"},standalone:!0,features:[fe,Z],decls:23,vars:33,consts:[[1,"filter-container"],["appearance","fill",1,"filter",2,"visibility","hidden","width","0px","height","0px"],[3,"rangePicker"],["matStartDate","",3,"ngModel","placeholder","dateInput","ngModelChange"],["matEndDate","",3,"ngModel","placeholder","dateInput","ngModelChange"],["picker",""],["matSuffix","",2,"height","2.5em",3,"ngStyle","for"],["role","group","aria-label","Basic example",1,"btn-group",2,"height","2.5em"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white","border-radius","15px 0px 0px 15px",3,"ngStyle","click"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white",3,"ngStyle","click"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white","border-radius","0px 15px 15px 0px",3,"ngStyle","click"],[4,"ngIf","ngIfElse"],["desktopView",""],["mat-button","",3,"matMenuTriggerFor"],["menu","matMenu"],[1,"filter","filter_spr"],["multiple","",3,"value","compareWith","placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"filter","filter_com"],[1,"filter","filter_reg"],[1,"filter","filter_tem"],["class","filter filter_rep",4,"ngIf"],["class","filter filter_mod",4,"ngIf"],["class","filter filter_cov",4,"ngIf"],["mat-raised-button","",1,"blue-themed-button",3,"click"],["mat-icon-button",""],["color","grey","selected","","matTooltip","Reset","class","reset",3,"click",4,"ngIf"],[3,"value"],[1,"filter","filter_rep"],[1,"filter","filter_mod"],[1,"filter","filter_cov"],["multiple","",3,"value","placeholder","valueChange"],["color","grey","selected","","matTooltip","Reset",1,"reset",3,"click"]],template:function(n,o){if(1&n&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-date-range-input",2)(3,"input",3),M("dateInput",function(a){return o.addDisplayFilterDate("S",a)})("ngModelChange",function(a){return o.displayStartDate=a}),C(4,"translate"),d(),l(5,"input",4),M("dateInput",function(a){return o.addDisplayFilterDate("E",a)})("ngModelChange",function(a){return o.displayEndDate=a}),C(6,"translate"),d()(),D(7,"mat-date-range-picker",null,5),d(),D(9,"mat-datepicker-toggle",6),l(10,"div",7)(11,"button",8),M("click",function(a){return o.changeBoolean("YES",a)}),h(12),C(13,"translate"),d(),l(14,"button",9),M("click",function(a){return o.changeBoolean("TM",a)}),h(15),C(16,"translate"),d(),l(17,"button",10),M("click",function(a){return o.changeBoolean("TOM",a)}),h(18),C(19,"translate"),d()(),p(20,$he,29,29,"ng-container",11),p(21,epe,23,28,"ng-template",null,12,Nt),d()),2&n){const s=X(8),a=X(22);c(2),f("rangePicker",s),c(1),N("placeholder",w(4,15,"general_date_start")),f("ngModel",o.displayStartDate),c(2),N("placeholder",w(6,17,"general_date_end")),f("ngModel",o.displayEndDate),c(4),f("ngStyle",zn(25,tpe,o.displayStartDate?"red":"black"))("for",s),c(2),f("ngStyle",zn(27,$w,"YESTERDAY"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(13,19,"general_yesterday")," "),c(2),f("ngStyle",zn(29,$w,"TODAY"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(16,21,"general_today")," "),c(2),f("ngStyle",zn(31,$w,"TOMORROW"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(19,23,"general_tomorrow")," "),c(2),f("ngIf",o.isMobileView)("ngIfElse",a)}},dependencies:[ut,gt,cd,Yl,wp,RF,Bw,Vw,kF,xt,Lt,Mt,wl,rd,ce,qe,le,pr,Ne,Re,on,Tn,Ft,Gt,Me,Oe,ki,mo,_e,we,Rl,F_,Qh],styles:[".filter[_ngcontent-%COMP%]{margin:8px;font-size:14px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}.filter-container[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;height:6em;align-items:center}"]})}return t})(),VF=(()=>{class t{transform(e){return e&&e.charAt(0).toUpperCase()+e.slice(1)}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275pipe=Yi({name:"capitalizeFirst",type:t,pure:!0,standalone:!0})}return t})();function ipe(t,i){if(1&t&&(l(0,"div")(1,"p"),h(2),d()()),2&t){const e=i.$implicit;c(2),We("",e.reportingMistake.name," - ",e.comment,"")}}let ope=(()=>{class t{constructor(e){this.data=e,console.log(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-quality-report-dialog"]],standalone:!0,features:[Z],decls:7,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[4,"ngFor","ngForOf"],["mat-dialog-actions",""],["mat-button","","mat-dialog-close",""]],template:function(n,o){1&n&&(l(0,"h1",0),h(1,"Validated Mistakes"),d(),l(2,"div",1),p(3,ipe,3,2,"div",2),d(),l(4,"div",3)(5,"button",4),h(6,"Close"),d()()),2&n&&(c(3),f("ngForOf",o.data))},dependencies:[Ot,qle,rF,qt,lF,Me,Ne,Re,ce,qe],encapsulation:2})}return t})(),Ps=(()=>{class t{removeFromConfig(e,n){const o=v[n].findIndex(s=>e.id===s.id);o>-1&&v[n].splice(o,1)}getformatedDate(e){const n=new Date(e);return n.getMonth()+1+"/"+n.getDate()+"/"+n.getFullYear().toString().slice(-2)+" "+("0"+n.getHours()).slice(-2)+":"+("0"+n.getMinutes()).slice(-2)}isValidJSON(e){try{return JSON.parse(e)}catch{return null}}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function spe(t,i){if(1&t){const e=F();l(0,"app-matches-filter",55),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdMatches",function(o){return E(e),I(b().onFilterdMatches(o))})("onFilterdDates",function(o){return E(e),I(b().onFilterdDates(o))}),d()}if(2&t){const e=b();f("matches",e.matches)("showModerators",e.showModeratorsFilter)("showReporters",e.showReportersFilter)("showTrainingMatches",e.showTrainingMatchesFilter)}}const ape=function(){return{filter:"hue-rotate(165deg)"}};function rpe(t,i){if(1&t){const e=F();l(0,"span")(1,"button",56),M("click",function(){E(e);const o=b();return I(o.multiselectToggle=!o.multiselectToggle)}),D(2,"img",57),d()()}if(2&t){const e=b();c(2),f("ngStyle",e.multiselectToggle&&hn(1,ape))}}function lpe(t,i){1&t&&(l(0,"mat-option",62),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_purchase_multi")))}function cpe(t,i){1&t&&(l(0,"mat-option",63),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_change_status")))}function dpe(t,i){if(1&t&&(l(0,"mat-option",70),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function upe(t,i){if(1&t){const e=F();l(0,"mat-form-field",66)(1,"mat-label"),h(2,"Customer"),d(),l(3,"mat-select",67),M("ngModelChange",function(o){return E(e),I(b(3).selectedCustomer=o)}),C(4,"translate"),l(5,"mat-option",68),h(6,"--"),d(),p(7,dpe,2,2,"mat-option",69),d()()}if(2&t){const e=b(3);c(3),N("placeholder",w(4,3,"general_customer")),f("ngModel",e.selectedCustomer),c(4),f("ngForOf",e.customers)}}function hpe(t,i){if(1&t){const e=F();l(0,"div"),p(1,upe,8,5,"mat-form-field",64),l(2,"button",65),M("click",function(){return E(e),I(b(2).purchaseSelectedMatches())}),h(3,"Confirm"),d()()}if(2&t){const e=b(2);c(1),f("ngIf",e.userService.isAdmin)}}function ppe(t,i){if(1&t){const e=F();l(0,"button",65),M("click",function(){return E(e),I(b(3).changeSelectedMatchesStatus("pending"))}),h(1,"Pending"),d()}}function mpe(t,i){if(1&t){const e=F();l(0,"div"),p(1,ppe,2,0,"button",71),l(2,"button",65),M("click",function(){return E(e),I(b(2).changeSelectedMatchesStatus("approved"))}),h(3,"Approved"),d(),l(4,"button",65),M("click",function(){return E(e),I(b(2).changeSelectedMatchesStatus("declined"))}),h(5,"Declined"),d(),l(6,"button",65),M("click",function(){return E(e),I(b(2).changeSelectedMatchesStatus("canceled"))}),h(7,"Canceled"),d()()}if(2&t){const e=b(2);c(1),f("ngIf",!e.userService.isCoverageManager)}}function fpe(t,i){if(1&t){const e=F();l(0,"div",58)(1,"mat-form-field")(2,"mat-label"),h(3,"Operation"),d(),l(4,"mat-select",59),M("valueChange",function(o){return E(e),I(b().selectedOperation=o)}),p(5,lpe,3,3,"mat-option",60),p(6,cpe,3,3,"mat-option",61),d()(),p(7,hpe,4,1,"div",3),p(8,mpe,8,1,"div",3),d()}if(2&t){const e=b();c(4),f("value",e.selectedOperation),c(1),f("ngIf",!e.userService.isCoverageManager),c(1),f("ngIf",!e.userService.isCustomer),c(1),f("ngIf","buyMulti"===e.selectedOperation),c(1),f("ngIf","changeStatus"===e.selectedOperation)}}function _pe(t,i){1&t&&(l(0,"div",72),D(1,"mat-spinner",73),d())}function gpe(t,i){if(1&t){const e=F();l(0,"mat-checkbox",76),M("change",function(o){E(e);const s=b(2);return I(o?s.masterToggle():null)}),d()}if(2&t){const e=b(2);f("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function bpe(t,i){if(1&t&&(l(0,"th",74),p(1,gpe,1,2,"mat-checkbox",75),d()),2&t){const e=b();c(1),f("ngIf",e.multiselectToggle)}}function vpe(t,i){if(1&t){const e=F();l(0,"mat-checkbox",79),M("click",function(o){return o.stopPropagation()})("change",function(o){E(e);const s=b().$implicit,a=b();return I(o?a.selection.toggle(s):null)}),d()}if(2&t){const e=b().$implicit;f("checked",b().selection.isSelected(e))}}function ype(t,i){if(1&t&&(l(0,"td",77),p(1,vpe,1,1,"mat-checkbox",78),d()),2&t){const e=b();c(1),f("ngIf",e.multiselectToggle)}}function Cpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_id")))}function wpe(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Spe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_match_status")))}const Tpe=function(t){return{color:t}};function Dpe(t,i){if(1&t&&(l(0,"td",81),h(1),d()),2&t){const e=i.$implicit,n=b();f("ngStyle",zn(2,Tpe,n.matchesService.getMatchStatus(e,n.translateService).color)),c(1),T(" ",n.matchesService.getMatchStatus(e,n.translateService).status," ")}}function Mpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_stage")))}function xpe(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.stage&&e.stage.type?e.stage.type:"")}}function Epe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_sport")))}function Ipe(t,i){if(1&t&&(l(0,"td",77),D(1,"img",82),d()),2&t){const e=i.$implicit,n=b();c(1),N("matTooltip",e.sport.name),f("src",n.matchesService.getSportIcon(e.sport.name),kt)}}function Ope(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function Rpe(t,i){if(1&t&&(l(0,"td",77),h(1),C(2,"date"),d()),2&t){const e=i.$implicit;c(1),O(Zm(2,1,e.plannedStartingTime,"M/d/yy HH:mm"))}}function kpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_current_week")))}function Ape(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.currentWeek&&e.currentWeek)}}function Ppe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),T("",w(2,1,"general_coverage_depth")," "))}function Npe(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.coverageDepth&&e.coverageDepth)}}function Fpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_country")))}function Lpe(t,i){if(1&t&&(l(0,"div")(1,"div"),h(2),d()()),2&t){const e=b().$implicit,n=b();let o;c(2),T(" ",null!==(o=null==(o=n.matchesService.getRegionFromMatchOrCompetition(e))?null:o.name)&&void 0!==o?o:""," ")}}function Bpe(t,i){1&t&&h(0,"Region")}function Vpe(t,i){if(1&t&&(l(0,"td",77),D(1,"img",83),p(2,Lpe,3,1,"ng-template",null,84,Nt),p(4,Bpe,1,0,"ng-template",null,85,Nt),d()),2&t){const e=i.$implicit,n=X(3),o=X(5);c(1),N("src",e.flag,kt),f("ngbPopover",n)("popoverTitle",o)}}function Hpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_region")))}function Upe(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit,n=b();let o;c(1),T("",null!==(o=null==(o=n.matchesService.getRegionFromMatchOrCompetition(e))?null:o.name)&&void 0!==o?o:""," ")}}function $pe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_qr_status")))}function jpe(t,i){if(1&t&&(l(0,"td",86),D(1,"img",87),C(2,"translate"),C(3,"translate"),d()),2&t){const e=i.$implicit;c(1),f("src","pending"===e.qrStatus?"assets/images/qr_pending.svg":"assets/images/qr_finalized.webp",kt)("alt","pending"===e.qrStatus?"pending":"finalized")("matTooltip","pending"===e.qrStatus?w(2,3,"qr_status_pending"):w(3,5,"qr_status_finalized"))}}function Gpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_competition")))}function zpe(t,i){if(1&t&&(l(0,"div")(1,"div")(2,"b"),h(3,"Season: "),d(),h(4),d(),l(5,"div",91)(6,"b"),h(7,"Stage: "),d(),h(8),d(),l(9,"div",91)(10,"b"),h(11,"Age: "),d(),h(12),d(),l(13,"div",91)(14,"b"),h(15,"Gender: "),d(),h(16),d(),l(17,"div")(18,"b"),h(19,"Current Week: "),d(),h(20),d(),l(21,"div")(22,"b"),h(23,"Coverage Depth: "),d(),h(24),d()()),2&t){const e=b().$implicit;c(4),T("",null!=e.stage&&e.stage.season?e.stage.season.seasonYear:""," "),c(4),T("",e.stage?e.stage.type:""," "),c(4),T("",e.competition?e.competition.age:""," "),c(4),T("",e.competition?e.competition.gender:""," "),c(4),T("",e.currentWeek&&e.currentWeek," "),c(4),T("",e.coverageDepth&&e.coverageDepth," ")}}function Wpe(t,i){1&t&&h(0,"Competition")}function qpe(t,i){if(1&t&&(l(0,"td",77)(1,"div",88),h(2),p(3,zpe,25,6,"ng-template",null,89,Nt),p(5,Wpe,1,0,"ng-template",null,90,Nt),d()()),2&t){const e=i.$implicit,n=X(4),o=X(6);c(1),f("ngbPopover",n)("popoverTitle",o),c(1),T(" ",e.competition?e.competition.name:""," ")}}function Ype(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_home")))}function Qpe(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit;c(1),O(null==e.homeTeam?null:e.homeTeam.name)}}function Zpe(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_away")))}function Kpe(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit;c(1),O(null==e.awayTeam?null:e.awayTeam.name)}}function Xpe(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_coverage_method")))}function Jpe(t,i){1&t&&(l(0,"span",95),C(1,"translate"),h(2),C(3,"translate"),d()),2&t&&(N("matTooltip",w(1,2,"general_coverage_venue_by")),c(2),O(w(3,4,"general_venue")))}function eme(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_voice")))}function tme(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_mobile")))}function nme(t,i){if(1&t&&(l(0,"td",93),p(1,Jpe,4,6,"span",94),p(2,eme,3,3,"span",3),p(3,tme,3,3,"span",3),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",2===n.userType&&("V"===e.coverageMethod||"M"===e.coverageMethod)),c(1),f("ngIf",2!==n.userType&&"V"===e.coverageMethod),c(1),f("ngIf",2!==n.userType&&"M"===e.coverageMethod)}}function ime(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_reporter")))}function ome(t,i){if(1&t&&(l(0,"td",77),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),O(n.showReporter(e))}}function sme(t,i){1&t&&(l(0,"th",80),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_training")))}function ame(t,i){1&t&&(l(0,"mat-icon"),h(1,"check"),d())}function rme(t,i){1&t&&(l(0,"mat-icon"),h(1,"close"),d())}function lme(t,i){if(1&t){const e=F();l(0,"mat-icon",98),M("click",function(){E(e);const o=b().$implicit;return I(b().clearMatch(o.id))}),h(1," replay"),d()}}function cme(t,i){if(1&t&&(l(0,"td",77)(1,"div",96),p(2,ame,2,0,"mat-icon",3),p(3,rme,2,0,"mat-icon",3),p(4,lme,2,0,"mat-icon",97),d()()),2&t){const e=i.$implicit;c(2),f("ngIf",e.trainingMatch),c(1),f("ngIf",!e.trainingMatch),c(1),f("ngIf",e.trainingMatch)}}function dme(t,i){1&t&&(l(0,"th",99),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_moderators")," "))}function ume(t,i){if(1&t&&(l(0,"div"),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e?e.firstName+" "+e.lastName:""," ")}}function hme(t,i){if(1&t&&(l(0,"td",77),p(1,ume,2,1,"div",100),d()),2&t){const e=i.$implicit;c(1),f("ngForOf",e.assignedModerators)}}function pme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_staff")," "))}function mme(t,i){1&t&&(l(0,"mat-icon",106),h(1," perm_identity "),d())}function fme(t,i){1&t&&(l(0,"mat-icon",107),h(1," perm_identity "),d())}function _me(t,i){if(1&t&&(l(0,"div")(1,"b"),h(2,"Reporter:"),d(),h(3),d()),2&t){const e=b(2).$implicit;c(3),T(" ",e.assignedReporter.firstName+" "+e.assignedReporter.lastName," ")}}function gme(t,i){if(1&t&&(l(0,"div")(1,"b"),h(2,"Moderator:"),d(),h(3),d()),2&t){const e=i.$implicit;c(3),T(" ",e?e.firstName+" "+e.lastName:""," ")}}function bme(t,i){if(1&t&&(l(0,"span"),p(1,gme,4,1,"div",100),d()),2&t){const e=b(2).$implicit;c(1),f("ngForOf",e.assignedModerators)}}function vme(t,i){if(1&t&&(l(0,"div"),p(1,_me,4,1,"div",3),p(2,bme,2,1,"span",3),d()),2&t){const e=b().$implicit,n=b();c(1),f("ngIf",e.assignedReporter),c(1),f("ngIf",!n.userService.isCountryManager)}}function yme(t,i){1&t&&h(0,"Staff")}function Cme(t,i){if(1&t){const e=F();l(0,"td",93)(1,"span")(2,"button",101),M("click",function(){const s=E(e).$implicit;return I(b().openStaffEditDialog(s))}),p(3,mme,2,0,"mat-icon",102),p(4,fme,2,0,"mat-icon",103),d()(),p(5,vme,3,2,"ng-template",null,104,Nt),p(7,yme,1,0,"ng-template",null,105,Nt),d()}if(2&t){const e=i.$implicit,n=X(6),o=X(8),s=b();c(2),f("ngbPopover",n)("disabled",s.disableStaffEditDialog(e))("popoverTitle",o),c(1),f("ngIf",e.assignedReporter||e.assignedModerators.length>0),c(1),f("ngIf",!e.assignedReporter&&0==e.assignedModerators.length)}}function wme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_cover")," "))}function Sme(t,i){if(1&t&&(l(0,"span")(1,"a",108)(2,"mat-icon",106),h(3,"mobile_screen_share"),d()()()),2&t){const e=b().$implicit,n=b();c(1),f("href",n.getMobileCoverageURL(e),kt)}}function Tme(t,i){1&t&&(l(0,"span")(1,"a",108)(2,"mat-icon",109),h(3,"mobile_screen_share"),d()()())}function Dme(t,i){if(1&t&&(l(0,"td",93),p(1,Sme,4,1,"span",3),p(2,Tme,4,0,"span",3),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",n.showCoverIcon(e)),c(1),f("ngIf",!n.showCoverIcon(e))}}function Mme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_events")," "))}function xme(t,i){if(1&t&&(l(0,"td",93)(1,"a",110)(2,"mat-icon",106),h(3,"list"),d()()()),2&t){const e=i.$implicit,n=b();c(1),_s("routerLink","/",n.routerPrefix,"/matches/",e.id,"/events")}}function Eme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_stadium")," "))}function Ime(t,i){1&t&&(l(0,"mat-icon",106),h(1," stadium "),d())}function Ome(t,i){1&t&&(l(0,"mat-icon",107),h(1," stadium "),d())}function Rme(t,i){if(1&t&&(l(0,"div")(1,"div"),h(2),d()()),2&t){const e=b().$implicit;c(2),T(" ",e.stadium?e.stadium.name:""," ")}}function kme(t,i){1&t&&h(0,"Stadium")}function Ame(t,i){if(1&t){const e=F();l(0,"td",93)(1,"span")(2,"button",111),M("click",function(){const s=E(e).$implicit;return I(b().openStadiumEditDialog(s))}),p(3,Ime,2,0,"mat-icon",102),p(4,Ome,2,0,"mat-icon",103),d()(),p(5,Rme,3,1,"ng-template",null,112,Nt),p(7,kme,1,0,"ng-template",null,113,Nt),d()}if(2&t){const e=i.$implicit,n=X(6),o=X(8),s=b();c(2),f("disabled",s.userService.isCoverageManager)("ngbPopover",n)("popoverTitle",o),c(1),f("ngIf",e.stadium),c(1),f("ngIf",!e.stadium)}}function Pme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_referee")," "))}function Nme(t,i){1&t&&(l(0,"mat-icon",106),h(1," sports "),d())}function Fme(t,i){1&t&&(l(0,"mat-icon",107),h(1," sports "),d())}function Lme(t,i){if(1&t){const e=F();l(0,"td",93)(1,"span")(2,"button",114),M("click",function(){const s=E(e).$implicit;return I(b().openRefereesEditDialog(s))}),p(3,Nme,2,0,"mat-icon",102),p(4,Fme,2,0,"mat-icon",103),d()()()}if(2&t){const e=i.$implicit;c(3),f("ngIf",(null==e.refereeList?null:e.refereeList.refereeMain)&&"null"!=e.refereeList.refereeMain),c(1),f("ngIf",!(null!=e.refereeList&&e.refereeList.refereeMain)||"null"==e.refereeList.refereeMain)}}function Bme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_multi")," "))}function Vme(t,i){if(1&t&&(l(0,"td",93)(1,"a",110)(2,"mat-icon",106),h(3,"developer_board"),d()()()),2&t){const e=i.$implicit,n=b();c(1),_s("routerLink","/",n.routerPrefix,"/multi/",e.id,"")}}function Hme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function Ume(t,i){if(1&t){const e=F();l(0,"td",93)(1,"span")(2,"button",115),M("click",function(){const s=E(e).$implicit;return I(b().openEditDialog(s))}),l(3,"mat-icon",116),h(4,"create"),d()()()()}if(2&t){const e=i.$implicit,n=b();c(2),f("disabled",n.userService.isCountryManager&&e.matchPurchases>0)}}function $me(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function jme(t,i){if(1&t){const e=F();l(0,"td",93)(1,"span")(2,"button",115),M("click",function(){const s=E(e).$implicit;return I(b().openDeleteDialog(s))}),l(3,"mat-icon",116),h(4,"delete"),d()()()()}if(2&t){const e=i.$implicit,n=b();c(2),f("disabled",n.userService.isCountryManager&&e.matchPurchases>0)}}function Gme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_customers")," "))}function zme(t,i){if(1&t&&(l(0,"span",118)(1,"button",119)(2,"mat-icon",116),h(3,"people"),d(),l(4,"div",120),h(5),d()()()),2&t){const e=b().$implicit,n=b();c(1),_s("routerLink","/",n.routerPrefix,"/matches/",e.id,"/customers"),c(4),O(e.matchPurchases)}}function Wme(t,i){if(1&t&&(l(0,"span")(1,"button",121)(2,"mat-icon",116),h(3,"people"),d()()()),2&t){const e=b().$implicit,n=b();c(1),_s("routerLink","/",n.routerPrefix,"/matches/",e.id,"/customers")}}function qme(t,i){if(1&t&&(l(0,"td",93),p(1,zme,6,3,"span",117),p(2,Wme,4,2,"span",3),d()),2&t){const e=i.$implicit;c(1),f("ngIf",e.matchPurchases>0),c(1),f("ngIf",0==e.matchPurchases||!e.matchPurchases)}}function Yme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_price")," "))}function Qme(t,i){if(1&t&&(l(0,"td",93),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.price," ")}}function Zme(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_purchase")," "))}function Kme(t,i){if(1&t){const e=F();l(0,"button",124),M("click",function(){E(e);const o=b().$implicit;return I(b().openConfirmPurchaseDialog(o))}),l(1,"mat-icon",116),h(2,"shopping_cart"),d()()}}function Xme(t,i){1&t&&(l(0,"button",125)(1,"mat-icon",116),h(2,"check_circle"),d()())}function Jme(t,i){if(1&t&&(l(0,"td",93)(1,"span"),p(2,Kme,3,0,"button",122),p(3,Xme,3,0,"button",123),d()()),2&t){const e=i.$implicit;c(2),f("ngIf",!e.alreadyPurchased),c(1),f("ngIf",e.alreadyPurchased)}}function efe(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_api")," "))}function tfe(t,i){if(1&t&&(l(0,"td",93)(1,"a",108)(2,"mat-icon",106),h(3,"input"),d()()()),2&t){const e=i.$implicit,n=b();c(1),f("href",n.getApiURL(e),kt)}}function nfe(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_canBeCovered")," "))}function ife(t,i){if(1&t){const e=F();l(0,"td",93)(1,"mat-slide-toggle",126),M("change",function(o){const a=E(e).$implicit;return I(b().openCanBeCoveredEditDialog(o.checked,a))}),d()()}if(2&t){const e=i.$implicit,n=b();c(1),f("checked",e.canBeCovered)("disabled",n.userService.isCountryManager&&"pending"!=(null==e.coverageStatus?null:e.coverageStatus.toLowerCase()))}}function ofe(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_coverage_status")))}function sfe(t,i){if(1&t){const e=F();l(0,"button",131),M("click",function(){E(e);const o=b().$implicit;return I(b().changeCoverageUIStatus(o,"approved"))}),l(1,"mat-icon",132),h(2,"check"),d(),l(3,"span"),h(4,"Approved"),d()()}}function afe(t,i){if(1&t){const e=F();l(0,"button",131),M("click",function(){E(e);const o=b().$implicit;return I(b().changeCoverageUIStatus(o,"canceled"))}),l(1,"mat-icon",133),h(2,"block"),d(),l(3,"span"),h(4,"Canceled"),d()()}}function rfe(t,i){if(1&t){const e=F();l(0,"button",131),M("click",function(){E(e);const o=b().$implicit;return I(b().changeCoverageUIStatus(o,"declined"))}),l(1,"mat-icon",133),h(2,"clear"),d(),l(3,"span"),h(4,"Declined"),d()()}}function lfe(t,i){if(1&t){const e=F();l(0,"button",131),M("click",function(){E(e);const o=b().$implicit;return I(b().changeCoverageUIStatus(o,"pending"))}),l(1,"mat-icon",134),h(2,"hourglass_top"),d(),l(3,"span"),h(4,"Pending"),d()()}}function cfe(t,i){if(1&t&&(l(0,"td",93)(1,"button",127),C(2,"capitalizeFirst"),l(3,"mat-icon",128),h(4),d()(),l(5,"mat-menu",null,129),p(7,sfe,5,0,"button",130),p(8,afe,5,0,"button",130),p(9,rfe,5,0,"button",130),p(10,lfe,5,0,"button",130),d()()),2&t){const e=i.$implicit,n=X(6),o=b();let s,a;c(1),Da("matTooltip"," ",w(2,10,e.coverageStatus),""),f("matMenuTriggerFor",n)("disabled",!o.displayCoverageUIMenu(e)),c(2),es("color:"+(null==(s=o.getCoverageUIStatusIcon(e.coverageStatus))?null:s.color)),c(1),T(" ",(null==(a=o.getCoverageUIStatusIcon(e.coverageStatus))?null:a.icon)+".png",""),c(3),f("ngIf",o.displayCoverageUIButton(e,"approved")),c(1),f("ngIf",o.displayCoverageUIButton(e,"canceled")),c(1),f("ngIf",o.displayCoverageUIButton(e,"declined")),c(1),f("ngIf",o.displayCoverageUIButton(e,"pending"))}}function dfe(t,i){1&t&&(l(0,"th",74),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_hasBeenPurchased")," "))}function ufe(t,i){1&t&&(l(0,"span")(1,"a",108)(2,"mat-icon",106),h(3,"check"),d()()())}function hfe(t,i){1&t&&(l(0,"span")(1,"a",108)(2,"mat-icon",109),h(3,"block"),d()()())}function pfe(t,i){if(1&t&&(l(0,"td",77),p(1,ufe,4,0,"span",3),p(2,hfe,4,0,"span",3),d()),2&t){const e=i.$implicit;c(1),f("ngIf",e.matchPurchases>0),c(1),f("ngIf",0==e.matchPurchases||!e.matchPurchases)}}function mfe(t,i){1&t&&(l(0,"th",80),h(1,"Quality Report"),d())}function ffe(t,i){if(1&t){const e=F();l(0,"button",114),M("click",function(){E(e);const o=b().$implicit;return I(b().openQualityReportDialog(o))}),l(1,"mat-icon",137),h(2,"error"),d()()}}function _fe(t,i){1&t&&(l(0,"mat-icon",138),h(1,"check_circle"),d())}function gfe(t,i){if(1&t&&(l(0,"td",86),p(1,ffe,3,0,"button",135),p(2,_fe,2,0,"mat-icon",136),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",n.hasValidatedMistakes(e)),c(1),f("ngIf",!n.hasValidatedMistakes(e))}}function bfe(t,i){1&t&&D(0,"tr",139)}const vfe=function(t){return{"background-color":t}};function yfe(t,i){if(1&t&&D(0,"tr",140),2&t){const e=i.$implicit,n=b();f("ngStyle",zn(1,vfe,n.getRowBgColor(e)))}}function Cfe(t,i){if(1&t){const e=F();l(0,"button",141),M("click",function(){return E(e),I(b().openEditDialog())}),l(1,"mat-icon",116),h(2,"add"),d()()}}function wfe(t,i){if(1&t){const e=F();l(0,"span")(1,"button",142),M("click",function(){return E(e),I(b().exportTableToCSV())}),l(2,"mat-icon"),h(3,"file_download"),d()(),l(4,"button",143),M("click",function(){return E(e),I(b().copyTableToClipboard())}),l(5,"mat-icon"),h(6,"content_copy"),d()()()}}function Sfe(t,i){if(1&t){const e=F();l(0,"span")(1,"button",144),M("click",function(){return E(e),I(b().exportTableToCSVForAdmin())}),l(2,"mat-icon"),h(3,"file_download"),d()(),l(4,"button",145),M("click",function(){return E(e),I(b().copyTableToClipboardForAdmin())}),l(5,"mat-icon"),h(6,"content_copy"),d()()()}}function Tfe(t,i){1&t&&(l(0,"div",146),D(1,"mat-spinner",147),d())}function Dfe(t,i){1&t&&(l(0,"div",146)(1,"mat-icon",148),h(2,"done"),d()())}function Mfe(t,i){1&t&&(l(0,"div",146)(1,"mat-icon",149),h(2,"clear"),d()())}const xfe=function(t){return{height:t}},Efe=function(t){return{display:t}};let Qa=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y){this.userService=e,this.generalService=n,this.matchesService=o,this.router=s,this.http=a,this.updateDialog=r,this.snackBar=u,this.translateService=m,this.dialog=g,this.breakpointObserver=y,this.onProgress=0,this.columnsToDisplay=["id","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam"],this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!1,this.selection=new kl(!0,[]),this.selectedOperation="",this.selectedCustomer=null,this.multiselectToggle=!1,this.customers=[],this.selectedStatus="pending",this.filteredMatches=[],this.findTimedMatchesInterval=0,this.fetchTimedMatchesInterval=0,this.TimedMatchesIdAndIndex=[],this.MatchesToUpdate=[],this.matchProperties=["matchFinished","serverStartTime","serverEnd1stTime","serverStart2ndTime","serverEnd2ndTime","serverStart1stExtraTime","serverEnd1stExtraTime","serverStart2ndExtraTime","serverEnd2ndExtraTime","goingToPenaltyShootout","closedGame","masterClosedGame"]}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:(this.isAllSelected()?"select":"deselect")+" all"}purchaseSelectedMatches(){this.selection.selected.forEach(e=>{const n=new Hr;n.match=e,n.customer=new Be,this.userService.isCustomer?(this.service=new Q(v.apiURLs.rootURL+"customer/purchases",this.http),n.customer.id=v.userId):(this.service=new Q(v.apiURLs.rootURL+"matches/purchases",this.http),n.customer=this.selectedCustomer),this.onProgress=1,this.service.create(n).subscribe(o=>{this.onProgress=2,this.snackBar.open("Multiple matches purchased","",{duration:v.snackBarDuration}),this.ngOnInit()},o=>{this.onProgress=3,this.snackBar.open("Multiple matches could not be purchased ","",{duration:v.snackBarDuration}),this.ngOnInit()})})}get routerPrefix(){return v.userType===Be.ACCOUNT_TYPE_ADMIN||v.userType===Be.ACCOUNT_TYPE_MODERATOR?"admin":"customer"}capitalizeFirstLetter(e){return e.charAt(0).toUpperCase()+e.slice(1)}showCoverIcon(e){const n=new Date,o=new Date(e.plannedStartingTime),s=new Date(o.getTime()-72e5),a=new Date(o.getTime()+72e5);return!((0!=v.userType||"M"!=e.coverageMethod||"approved"!=e.coverageStatus||1!=e.canBeCovered||e.matchFinished||!(n>=s&&n<=a))&&0==v.userType)}injectStartEndDateQuery(){const e=this.getSessionStorageDate();return e.selectedStartDate&&e.selectedEndDate?`&selectedStartDate=${e.selectedStartDate.toString()}&selectedEndDate=${e.selectedEndDate.toString()}`:"&today=true"}displayModerator(){this.columnsToDisplay=["id","matchStatus","plannedStartingTime","sport","flag","homeTeam","awayTeam","coverageMethod","trainingMatch","multi","cover","events"],this.service=new Q(v.apiURLs.rootURL+"moderator/matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!0}displayTrial(){this.columnsToDisplay=["id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","coverageMethod","events","api"],this.service=new Q(v.apiURLs.rootURL+"trial/matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!1}displayAdmin(){this.columnsToDisplay=["select","id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","coverageMethod","staff","stadium","referee","cover","events","multi","edit","delete","customers","api","qrStatus","canBeCovered","coverageUIStatus"],this.service=new Q(v.apiURLs.rootURL+"matches",this.http);let e=this.injectStartEndDateQuery();-1!==this.router.url.indexOf("/admin/trainingCenter")&&(e+="&training=true"),e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!0,this.showReportersFilter=!0,this.showTrainingMatchesFilter=!0,this.customerService=new Q(v.apiURLs.rootURL+"users/customers",this.http),this.customerService.getAll(v.token,v.userId).subscribe(n=>{this.onProgress=0,this.customers=n,this.customers.sort(xi("firstName"))})}displayQM(){this.columnsToDisplay=["id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","stadium","events","qrStatus"],this.service=new Q(v.apiURLs.rootURL+"matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!0,this.showTrainingMatchesFilter=!1}displayCM(){this.columnsToDisplay=["select","id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","assignedReporter","stadium","coverageUIStatus"],this.service=new Q(v.apiURLs.rootURL+"coveragemanager/matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!0,this.showTrainingMatchesFilter=!1}displayCountryManager(){this.columnsToDisplay=["id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","coverageMethod","staff","stadium","canBeCovered","coverageUIStatus","qualityReport"],this.service=new Q(v.apiURLs.rootURL+"countrymanager/matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.updateMatchesView(this.matches)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!0,this.showTrainingMatchesFilter=!1}displayCustomer(){this.columnsToDisplay=["select","id","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","coverageMethod","price","purchase"],this.service=new Q(v.apiURLs.rootURL+"customer/available",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?new Q(v.apiURLs.rootURL+"mypurchases",this.http).getAllObservable(v.token,v.userId,"&future=true").subscribe(s=>{let a=s;if(a&&Array.isArray(a)){let r=this.flagMatchAsPurchased(n,a);this.matches=this.matchesService.injectFlags(r)}else this.matches=this.matchesService.injectFlags(n),this.TimedMatchesTimerStart(6e4,5e3);this.updateMatchesView(this.matches)}):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!1}displayReporter(){this.columnsToDisplay=["id","matchStatus","plannedStartingTime","sport","flag","homeTeam","awayTeam","coverageMethod","coverageUIStatus","cover","qualityReport"],this.service=new Q(v.apiURLs.rootURL+"reporter/matches",this.http);let e=this.injectStartEndDateQuery();e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,e).subscribe({next:n=>{n?(this.matches=this.matchesService.injectFlags(n),this.matches=this.matches.filter(o=>0==o.trainingMatch),this.updateMatchesView(this.matches),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:n=>{console.log(n)}}),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!1}hasValidatedMistakes(e){return e.qualityIncidents?.some(n=>"validated"===n.status)??!1}showReporter(e){return"basketball"==e.sport?.name.toLowerCase()&&e.assignedReporter?e.assignedReporter.firstName+" "+e.assignedReporter.lastName:""}openQualityReportDialog(e){const n=e.qualityIncidents?.filter(o=>"validated"===o.status);this.dialog.open(ope,{data:n})}changeSelectedMatchesStatus(e){const n=this.selection.selected.filter(s=>this.validateStatusChange([s],e));0!==n.length?this.updateDialog.open(en,{data:{title:"Are you sure you want to change the coverage status for the selected matches?",content:`New Status: ${this.capitalizeFirstLetter(e)}`}}).afterClosed().subscribe(s=>{if(!0===s){const a={matchIds:n.map(r=>r.id),newStatus:e};new Q(v.apiURLs.rootURL+"matches/status-update",this.http).create(a).subscribe(()=>{this.snackBar.open("Selected matches status updated successfully","",{duration:v.snackBarDuration}),this.selection.clear(),this.ngOnInit()},r=>{this.snackBar.open("Failed to update selected matches status","",{duration:v.snackBarDuration}),console.error(r)})}}):this.snackBar.open("No valid matches selected for status change","",{duration:v.snackBarDuration})}validateStatusChange(e,n){for(const o of e)if(this.userService.isCoverageManager&&("approved"===o.coverageStatus&&"canceled"!==n||"pending"===o.coverageStatus&&!["approved","declined"].includes(n)||"canceled"===o.coverageStatus||"declined"===o.coverageStatus))return!1;return!0}exportTableToCSV(){const n=this.filteredMatches.sort((u,m)=>(u.plannedStartingTime?new Date(u.plannedStartingTime).getTime():0)-(m.plannedStartingTime?new Date(m.plannedStartingTime).getTime():0)).map(u=>({"Match DateTime":u.plannedStartingTime?hr(new Date(u.plannedStartingTime),"yyyy-MM-dd HH:mm:ss","en-US"):"",Competition:u.competition?.name,"Home Team":u.homeTeam?.name,"Away Team":u.awayTeam?.name,Stadium:u.stadium?.name||"N/A"})),o=this.convertToCSV(n),s=new Blob([o],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a"),r=URL.createObjectURL(s);a.setAttribute("href",r),a.setAttribute("download","matches.csv"),a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a)}exportTableToCSVForAdmin(){const n=this.filteredMatches.sort((u,m)=>(u.plannedStartingTime?new Date(u.plannedStartingTime).getTime():0)-(m.plannedStartingTime?new Date(m.plannedStartingTime).getTime():0)).map(u=>{const m=u.plannedStartingTime?hr(new Date(u.plannedStartingTime),"yyyy-MM-dd","en-US"):"",g=u.plannedStartingTime?hr(new Date(u.plannedStartingTime),"HH:mm:ss","en-US"):"",y=u.assignedModerators?.map(S=>`${S.firstName} ${S.lastName}`).join(" | ")||"N/A";return{Date:m,Time:g,Competition:u.competition?.name,"Home Team":u.homeTeam?.name,"Away Team":u.awayTeam?.name,Reporter:u.assignedReporter?`${u.assignedReporter.firstName} ${u.assignedReporter.lastName}`:"N/A",Moderators:y}}),o=this.convertToCSV(n),s=new Blob([o],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a"),r=URL.createObjectURL(s);a.setAttribute("href",r),a.setAttribute("download","matches_admin.csv"),a.style.visibility="hidden",document.body.appendChild(a),a.click(),document.body.removeChild(a)}convertToCSV(e){const n="object"!=typeof e?JSON.parse(e):e;let o="",s="";for(const a in n[0])n[0].hasOwnProperty(a)&&(s+=a+",");s=s.slice(0,-1),o+=s+"\r\n";for(let a=0;a<n.length;a++){let r="";for(const u in n[a])n[a].hasOwnProperty(u)&&(""!==r&&(r+=","),r+=n[a][u]);o+=r+"\r\n"}return o}copyTableToClipboard(){const n=this.filteredMatches.sort((s,a)=>(s.plannedStartingTime?new Date(s.plannedStartingTime).getTime():0)-(a.plannedStartingTime?new Date(a.plannedStartingTime).getTime():0)).map(s=>({"Match DateTime":s.plannedStartingTime?hr(new Date(s.plannedStartingTime),"yyyy-MM-dd HH:mm:ss","en-US"):"",Competition:s.competition?.name,"Home Team":s.homeTeam?.name,"Away Team":s.awayTeam?.name,Stadium:s.stadium?.name||"N/A"})),o=this.convertToCSV(n);this.copyToClipboard(o)}copyTableToClipboardForAdmin(){const n=this.filteredMatches.sort((s,a)=>(s.plannedStartingTime?new Date(s.plannedStartingTime).getTime():0)-(a.plannedStartingTime?new Date(a.plannedStartingTime).getTime():0)).map(s=>{const a=s.plannedStartingTime?hr(new Date(s.plannedStartingTime),"yyyy-MM-dd","en-US"):"",r=s.plannedStartingTime?hr(new Date(s.plannedStartingTime),"HH:mm:ss","en-US"):"",u=s.assignedModerators?.map(m=>`${m.firstName} ${m.lastName}`).join(" | ")||"N/A";return{Date:a,Time:r,Competition:s.competition?.name,"Home Team":s.homeTeam?.name,"Away Team":s.awayTeam?.name,Reporter:s.assignedReporter?`${s.assignedReporter.firstName} ${s.assignedReporter.lastName}`:"N/A",Moderators:u}}),o=this.convertToCSV(n);this.copyToClipboard(o)}copyToClipboard(e){if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(e).then(()=>{this.snackBar.open("Table copied to clipboard","",{duration:v.snackBarDuration})}).catch(n=>{console.error("Failed to copy text: ",n)});else{const n=document.createElement("textarea");n.style.position="fixed",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.select();try{document.execCommand("copy"),this.snackBar.open("Table copied to clipboard","",{duration:v.snackBarDuration})}catch(o){console.error("Fallback: Oops, unable to copy",o)}document.body.removeChild(n)}}getSessionStorageDate(){let e,n,o=JSON.parse(sessionStorage.getItem("filterStorageMatch")??"{}");return 0!==Object.keys(o).length&&(o?.selectedEndDate&&(e=new Date(parseInt(o.selectedEndDate))),o?.selectedStartDate&&(n=new Date(parseInt(o.selectedStartDate)))),{selectedEndDate:e,selectedStartDate:n}}displayCoverageUIButton(e,n){return this.userService.isCoverageManager?!("pending"!==e.coverageStatus||!["approved","declined"].includes(n))||"approved"===e.coverageStatus&&"canceled"===n:!this.userService.isCountryManager||!["pending","canceled"].includes(n)}displayCoverageUIMenu(e){const n=e.coverageStatus;return!!this.userService.isAdmin||!!this.userService.isCoverageManager&&("pending"===n||"approved"===n)}ngOnInit(){this.TimedMatchesTimerClear(),this.onProgress=0,-1!==this.router.url.indexOf("available_matches")&&v.userType===Be.ACCOUNT_TYPE_CUSTOMER&&this.displayCustomer(),-1!==this.router.url.indexOf("moderator/matches")&&v.userType===Be.ACCOUNT_TYPE_MODERATOR&&this.displayModerator(),-1!==this.router.url.indexOf("reporter/matches")&&v.userType===Be.ACCOUNT_TYPE_REPORTER&&this.displayReporter(),-1!==this.router.url.indexOf("countrymanager/matches")&&v.userType===Be.ACCOUNT_TYPE_COUNTRY_MANAGER&&this.displayCountryManager(),-1!==this.router.url.indexOf("trial/matches")&&v.userType===Be.ACCOUNT_TYPE_TRIAL&&this.displayTrial(),-1!==this.router.url.indexOf("qualitymanager/matches")&&v.userType===Be.ACCOUNT_TYPE_QUALITY_MANAGER&&this.displayQM(),-1!==this.router.url.indexOf("coveragemanager/matches")&&v.userType===Be.ACCOUNT_TYPE_COVERAGE_MANAGER?this.displayCM():v.userType===Be.ACCOUNT_TYPE_ADMIN&&this.displayAdmin()}updateMatchesView(e){if(e.length>0)for(const n of e)"string"==typeof n.refereeList&&(n.refereeList=this.generalService.isValidJSON(n.refereeList));this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=Sp,this.dataSource.sort=this.sort}flagMatchAsPurchased(e,n){for(const o of e)for(const s of n)if(s?.match?.id===o.id&&s.status===Hr.STATUS_CONFIRMED){o.alreadyPurchased=!0;break}return e}getApiURL(e){return v.apiCoverageURL+(v.userType==Be.ACCOUNT_TYPE_CUSTOMER||v.userType==Be.ACCOUNT_TYPE_TRIAL?"customer/":"")+"matches/"+e.id+"/matchEvents?userId="+v.userId+"&token="+v.token}getMobileCoverageURL(e){return"football"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:"basketball"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL_B+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:""}get dataSize(){return 0}get userType(){return v.userType}onFilterdMatches(e){this.filteredMatches=e,this.updateMatchesView(e)}onFilterdDates(e){let n=`&selectedStartDate=${e.selectedStartDate.toString()}&selectedEndDate=${e.selectedEndDate.toString()}`;-1!==this.router.url.indexOf("/admin/trainingCenter")&&(n+="&training=true"),n+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,n).subscribe({next:o=>{o?-1!==this.router.url.indexOf("available_matches")?new Q(v.apiURLs.rootURL+"mypurchases",this.http).getAllObservable(v.token,v.userId,"&future=true").subscribe(a=>{let r=a;if(r&&Array.isArray(r)){let u=this.flagMatchAsPurchased(o,r);this.matches=this.matchesService.injectFlags(u)}else this.matches=this.matchesService.injectFlags(o),this.TimedMatchesTimerClear(),this.TimedMatchesTimerStart(6e4,5e3);this.updateMatchesView(this.matches)}):(this.matches=this.matchesService.injectFlags(o),this.filteredMatches=this.matches,this.updateMatchesView(this.matches),this.TimedMatchesTimerClear(),this.TimedMatchesTimerStart(6e4,5e3)):this.onProgress=3},error:o=>{console.log(o)}})}onResetFilters(){this.filteredMatches=this.matches,this.updateMatchesView(this.matches)}isFiltersEmpty(){const e=JSON.parse(sessionStorage.getItem("filterStorage")??"{}"),n=[e.selectedCompetitions,e.selectedRegions,e.selectedTeams,e.selectedModerators,e.selectedReporters];for(const o of n)if(o.length>0)return!1;return!e.selectedEndDate&&!e.selectedStartDate&&null==e.hideTrainingMatches}getCoverageUIStatusIcon(e){return"pending"==e?{icon:"hourglass_top",color:"black"}:"canceled"==e?{icon:"block",color:"red"}:"declined"==e?{icon:"clear",color:"red"}:"approved"==e?{icon:"check",color:"green"}:{icon:"hourglass_top",color:"black"}}changeCoverageUIStatus(e,n){if(null!=e){"object"==typeof e.refereeList&&(e.refereeList=JSON.stringify(e.refereeList));const o=this.updateDialog.open(en,{data:{title:"Are you sure you want to change the coverage status?",content:`\n          <b>Match:</b> ${e.id} - ${e.homeTeam?.name} vs ${e.awayTeam?.name}\n          <br>\n          <b>Coverage Status:</b> ${this.capitalizeFirstLetter(e.coverageStatus)} -> <b>${this.capitalizeFirstLetter(n)}</b>\n          <br>\n          <br>\n          ${this.userService.isAdmin?"":"<b>Note:</b> Decision Final"}\n          `,refId:e.id}});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{!0===s&&(e.coverageStatus=n,new Q(v.apiURLs.rootURL+"matches",this.http).create(e).subscribe(a=>{this.snackBar.open(`Match ${e.id} coverage status updated to `+n,"",{duration:v.snackBarDuration})},a=>{this.snackBar.open(`Match ${e.id} coverage status update FAILED!`,"",{duration:v.snackBarDuration})}))})}}getRowBgColor(e){return"pending"===e.coverageStatus?"#ececec":"approved"===e.coverageStatus?"#bdddcb":"canceled"===e.coverageStatus||"declined"===e.coverageStatus?"#e1a0ab":"transparent"}clearMatch(e){if(null!=e){this.serviceClear=new Q(v.apiURLs.rootURL+"matches/"+e+"/clear",this.http);const n=this.updateDialog.open(en,{data:{title:null,content:this.translateService.instant("message_confirm_resetting_match"),refId:e}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{if(!0===o){try{this.serviceClear.create({id:e}).subscribe(),this.ngOnInit()}catch(s){console.log(s)}this.onProgress=0}else this.onProgress=0})}}openGenericEditDialog(e,n,o){const s=this.updateDialog.open(o,{width:"50%",data:e});s.componentInstance.dialogRef=s,s.afterClosed().subscribe({next:a=>{!a||a[n]==e[n]||(this.matches=this.matches.filter(r=>r.id!==e.id),this.matches.push({...e,[n]:a[n]}),this.updateMatchesView(this.matches),this.TimedMatchesTimerClear(),this.TimedMatchesTimerStart(6e4,5e3),this.onProgress=0)},error:()=>{}})}openEditDialog(e){null==e&&(e=new da);const n=this.updateDialog.open($ue,{width:"60%",height:"80%",data:e,panelClass:"dialog-content-ma"});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>{this.ngOnInit()})}openRefereesEditDialog(e){this.openGenericEditDialog(e,"refereeList",nhe)}openStaffEditDialog(e){(this.userService.isAdmin||this.userService.isCountryManager||this.userService.isModerator)&&this.openGenericEditDialog(e,"assignedReporter",uhe)}disableStaffEditDialog(e){const n=e.footballStat?.serverStartTime,o=e?.plannedStartingTime&&new Date(e.plannedStartingTime);return!(!this.userService.isCountryManager||!(n||o&&o.getTime()-Date.now()<864e5))}openStadiumEditDialog(e){this.openGenericEditDialog(e,"stadium",Ohe)}openCanBeCoveredEditDialog(e,n){"object"==typeof n.refereeList&&(n.refereeList=JSON.stringify(n.refereeList)),n.canBeCovered=e,new Q(v.apiURLs.rootURL+"matches",this.http).create(n).subscribe(o=>{this.snackBar.open(`Match ${n.id} coverable updated to `+e,"",{duration:v.snackBarDuration})},o=>{this.snackBar.open(`Match ${n.id} coverable update FAILED!`,"",{duration:v.snackBarDuration})})}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.homeTeam?.name+" vs "+e.awayTeam?.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Match Deleted","",{duration:v.snackBarDuration}),this.matches=this.matches.filter(a=>a.id!==e.id),this.updateMatchesView(this.matches),this.TimedMatchesTimerClear(),this.TimedMatchesTimerStart(6e4,5e3),this.onProgress=0)}):this.onProgress=0})}}getConfirmationDialogContent(e,n){return`${n.instant("general_purchase_confirmation_message")}<br/>\n    ${e.match?.homeTeam?.name} vs ${e.match?.awayTeam?.name}<br/>\n    ${n.instant("general_price")}: <b>${e.price}</b>`}openConfirmPurchaseDialog(e){if(null!=e){let n=new Hr;n.id=null,n.match=e,n.customer={id:v.userId},n.price=e.price;const o=this.updateDialog.open(en,{data:{title:this.translateService.instant("general_purchase_confirmation"),content:this.getConfirmationDialogContent(n,this.translateService),refId:e.id}});o.componentInstance.dialogRef=o,this.onProgress=1,o.afterClosed().subscribe(s=>{!0===s?new Q(v.apiURLs.rootURL+"customer/purchases",this.http).create(n).subscribe(r=>{this.snackBar.open(this.translateService.instant("general_operation_success"),"",{duration:v.snackBarDuration}),this.onProgress=0,this.ngOnInit()},r=>{this.snackBar.open(this.translateService.instant("general_operation_failed"),"",{duration:v.snackBarDuration}),this.onProgress=0,this.ngOnInit()}):this.onProgress=0})}}TimedMatchesTimerStart(e,n){const o=new Q(v.apiURLs.rootURL+"matches/check",this.http);this.findTimedMatches(this.filteredMatches),this.findTimedMatchesInterval=window.setInterval(()=>{this.findTimedMatches(this.filteredMatches)},e),this.fetchTimedMatchesInterval=window.setInterval(()=>{this.MatchesToUpdate.length>0&&o.create({MatchesToUpdate:this.MatchesToUpdate,token:v.token,userId:v.userId},!1,{sender:this.routerPrefix}).subscribe({next:s=>this.replaceMatchesInArray(s,this.filteredMatches),error:s=>console.error(s),complete:()=>{}})},n)}TimedMatchesTimerClear(){clearInterval(this.findTimedMatchesInterval),clearInterval(this.fetchTimedMatchesInterval)}ngOnDestroy(){this.TimedMatchesTimerClear()}findTimedMatches(e){if(e.length>0){const n=[],o=[],r=new Date;for(let u=0;u<e.length;u++){const m=e[u],g=new Date(m.plannedStartingTime);!m.matchFinished&&r.getTime()>g.getTime()-6e5&&r.getTime()<g.getTime()+72e5&&(n.push(m.id),o.push({matchId:+m.id,matchIndex:u}))}this.TimedMatchesIdAndIndex=o,this.MatchesToUpdate=n}}replaceMatchesInArray(e,n){if(0!==e.length&&0!==this.TimedMatchesIdAndIndex.length)for(const o of this.TimedMatchesIdAndIndex){const s=e.find(a=>a.id===n[o.matchIndex].id);if(s){const a=n[o.matchIndex];let r=!1;for(const u of this.matchProperties)if(a[u]!==s[u]){r=!0;break}r&&(n[o.matchIndex].closedGame=s.closedGame,n[o.matchIndex].masterClosedGame=s.masterClosedGame,n[o.matchIndex].matchFinished=s.matchFinished,s.footballStat?this.updateFootballStats(n[o.matchIndex],s.footballStat):s.basketballStat&&this.updateBasketballStats(n[o.matchIndex],s.basketballStat),this.updateMatchesView(n))}}}updateFootballStats(e,n){e.footballStat||(e.footballStat={}),["goingToExtraTime","playersOnField","serverStartTime","serverStart2ndTime","serverStart1stExtraTime","serverStart2ndExtraTime","serverEnd1stTime","serverEnd2ndTime","serverEnd1stExtraTime","serverEnd2ndExtraTime","reporterStartTime","reporterStart2ndTime","reporterStart1stExtraTime","reporterStart2ndExtraTime","reporterEnd1stTime","reporterEnd2ndTime","reporterEnd1stExtraTime","reporterEnd2ndExtraTime","goingToPenaltyShootout"].forEach(s=>{n.hasOwnProperty(s)&&(e.footballStat[s]=n[s])})}updateBasketballStats(e,n){e.basketballStat||(e.basketballStat={}),["firstQuarterStartTime","secondQuarterStartTime","thirdQuarterStartTime","fourthQuarterStartTime","firstQuarterEndTime","secondQuarterEndTime","thirdQuarterEndTime","fourthQuarterEndTime","firstOvertimeStartTime","secondOvertimeStartTime","thirdOvertimeStartTime","fourthOvertimeStartTime","fifthOvertimeStartTime","firstOvertimeEndTime","secondOvertimeEndTime","thirdOvertimeEndTime","fourthOvertimeEndTime","fifthOvertimeEndTime"].forEach(s=>{n.hasOwnProperty(s)&&(e.basketballStat[s]=n[s])})}static#e=this.\u0275fac=function(n){return new(n||t)(_(ds),_(Ps),_(ua),_(_i),_(Ee),_(Wt),_(Sn),_(Ze),_(Wt),_(Ra))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-matches-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:120,vars:21,consts:[[1,"menu-capture"],[1,"matches-table-container",2,"position","relative"],[3,"matches","showModerators","showReporters","showTrainingMatches","onResetFilters","onFilterdMatches","onFilterdDates",4,"ngIf"],[4,"ngIf"],["style","display: flex; flex-direction: row; justify-content: center; background-color: white; align-items: baseline;",4,"ngIf"],[1,"matches-table-container-main",3,"ngStyle"],["style","height: 100%; width: 100%; display: flex; justify-content: center; align-items: center;",4,"ngIf"],["mat-table","","matSort","","matSortActive","plannedStartingTime","matSortDirection","asc",2,"margin-bottom","5em",3,"ngStyle","dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","matchStatus"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","stage"],["matColumnDef","sport"],["matColumnDef","plannedStartingTime"],["matColumnDef","currentWeek"],["matColumnDef","CoverageDepth"],["matColumnDef","flag"],["matColumnDef","region"],["matColumnDef","qrStatus"],["mat-cell","","style","text-align: center;",4,"matCellDef"],["matColumnDef","competition"],["matColumnDef","homeTeam"],["mat-cell","","style","white-space: break-spaces;",4,"matCellDef"],["matColumnDef","awayTeam"],["matColumnDef","coverageMethod"],["mat-cell","","style","text-align: center !important;",4,"matCellDef"],["matColumnDef","assignedReporter"],["matColumnDef","trainingMatch"],["matColumnDef","assignedModerators"],["mat-header-cell","","style","padding: 0px 30px;",4,"matHeaderCellDef"],["matColumnDef","staff"],["matColumnDef","cover"],["matColumnDef","events"],["matColumnDef","stadium"],["matColumnDef","referee"],["matColumnDef","multi"],["matColumnDef","edit"],["matColumnDef","delete"],["matColumnDef","customers"],["matColumnDef","price"],["matColumnDef","purchase"],["matColumnDef","api"],["matColumnDef","canBeCovered"],["matColumnDef","coverageUIStatus"],["matColumnDef","hasBeenPurchased"],["matColumnDef","qualityReport"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","","class","example-element-row",3,"ngStyle",4,"matRowDef","matRowDefColumns"],[2,"color","white","margin-top","1em"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],[3,"matches","showModerators","showReporters","showTrainingMatches","onResetFilters","onFilterdMatches","onFilterdDates"],["mat-icon-button","","matTooltip","Multi Select",2,"position","absolute","left","0.5em","top","0.5em",3,"click"],["src","/assets/svg/Multi_Select.svg","alt","Multi Select","height","32px","width","32px",3,"ngStyle"],[2,"display","flex","flex-direction","row","justify-content","center","background-color","white","align-items","baseline"],[3,"value","valueChange"],["value","buyMulti",4,"ngIf"],["value","changeStatus",4,"ngIf"],["value","buyMulti"],["value","changeStatus"],["style","margin: 0em 0.5em;",4,"ngIf"],["mat-raised-button","","color","primary",2,"margin","0em 0.5em",3,"click"],[2,"margin","0em 0.5em"],["name","customer",3,"ngModel","placeholder","ngModelChange"],["value","null"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["mat-raised-button","","color","primary","style","margin: 0em 0.5em;",3,"click",4,"ngIf"],[2,"height","100%","width","100%","display","flex","justify-content","center","align-items","center"],[2,"display","inline-block","align-self","center","justify-self","center"],["mat-header-cell",""],["aria-label","Select all matches",3,"checked","indeterminate","change",4,"ngIf"],["aria-label","Select all matches",3,"checked","indeterminate","change"],["mat-cell",""],["aria-label","Select row",3,"checked","click","change",4,"ngIf"],["aria-label","Select row",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["height","32px","alt","sport",3,"src","matTooltip"],["width","32px","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right","alt","flag",2,"margin","0px 0.6em",3,"src","ngbPopover","popoverTitle"],["COU_POP",""],["COU_POP_T",""],["mat-cell","",2,"text-align","center"],["height","28",1,"qr-image",3,"src","alt","matTooltip"],["popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","popoverTitle"],["COM_POP",""],["COM_POP_T",""],[1,"capitalize"],["mat-cell","",2,"white-space","break-spaces"],["mat-cell","",2,"text-align","center !important"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],[2,"width","4em"],["class","resetT","color","white",3,"click",4,"ngIf"],["color","white",1,"resetT",3,"click"],["mat-header-cell","",2,"padding","0px 30px"],[4,"ngFor","ngForOf"],["mat-icon-button","","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","disabled","popoverTitle","click"],["class","mat-24","color","primary",4,"ngIf"],["class","mat-24","color","warn",4,"ngIf"],["R_POP",""],["R_POP_T",""],["color","primary",1,"mat-24"],["color","warn",1,"mat-24"],["mat-button","","target","_blank",3,"href"],[1,"mat-24",2,"color","red"],["mat-button","",3,"routerLink"],["mat-icon-button","","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","left",3,"disabled","ngbPopover","popoverTitle","click"],["S_POP",""],["S_POP_T",""],["mat-icon-button","",3,"click"],["mat-icon-button","",3,"disabled","click"],[1,"mat-24"],["style","display: flex; align-items: center",4,"ngIf"],[2,"display","flex","align-items","center"],["mat-icon-button","","color","primary",1,"icon-container","hoverable-icon",2,"margin","0 0.1em",3,"routerLink"],[1,"icon-text"],["mat-icon-button","","color","red",3,"routerLink"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","primary",4,"ngIf"],["mat-icon-button","","color","primary",3,"click"],["mat-icon-button","","color","primary"],[3,"checked","disabled","change"],["mat-icon-button","","aria-label","Coverage UI Status",3,"matMenuTriggerFor","disabled","matTooltip"],["height","32"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],["height","32",2,"color","green"],["height","32",2,"color","red"],["height","32",2,"color","black"],["mat-icon-button","",3,"click",4,"ngIf"],["color","primary",4,"ngIf"],["color","warn"],["color","primary"],["mat-header-row",""],["mat-row","",1,"example-element-row",3,"ngStyle"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],["mat-fab","","color","primary","matTooltip","Export to CSV",1,"md-fab-bottom-right",3,"click"],["mat-fab","","color","primary","matTooltip","Copy to Clipboard",1,"md-fab-bottom-right","br-lw",3,"click"],["mat-fab","","color","primary","matTooltip","Export to CSV",1,"md-fab-bottom-right","br-lw",3,"click"],["mat-fab","","color","primary","matTooltip","Copy to Clipboard",1,"md-fab-bottom-right","br-lw","br-lw-2",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,spe,1,4,"app-matches-filter",2),p(3,rpe,3,2,"span",3),p(4,fpe,9,5,"div",4),l(5,"div",5),p(6,_pe,2,0,"div",6),l(7,"table",7),A(8,8),p(9,bpe,2,1,"th",9),p(10,ype,2,1,"td",10),P(),A(11,11),p(12,Cpe,3,3,"th",12),p(13,wpe,2,1,"td",10),P(),A(14,13),p(15,Spe,3,3,"th",12),p(16,Dpe,2,4,"td",14),P(),A(17,15),p(18,Mpe,3,3,"th",12),p(19,xpe,2,1,"td",10),P(),A(20,16),p(21,Epe,3,3,"th",12),p(22,Ipe,2,2,"td",10),P(),A(23,17),p(24,Ope,3,3,"th",12),p(25,Rpe,3,4,"td",10),P(),A(26,18),p(27,kpe,3,3,"th",12),p(28,Ape,2,1,"td",10),P(),A(29,19),p(30,Ppe,3,3,"th",12),p(31,Npe,2,1,"td",10),P(),A(32,20),p(33,Fpe,3,3,"th",12),p(34,Vpe,6,3,"td",10),P(),A(35,21),p(36,Hpe,3,3,"th",12),p(37,Upe,2,1,"td",10),P(),A(38,22),p(39,$pe,3,3,"th",12),p(40,jpe,4,7,"td",23),P(),A(41,24),p(42,Gpe,3,3,"th",12),p(43,qpe,7,3,"td",10),P(),A(44,25),p(45,Ype,3,3,"th",12),p(46,Qpe,2,1,"td",26),P(),A(47,27),p(48,Zpe,3,3,"th",12),p(49,Kpe,2,1,"td",26),P(),A(50,28),p(51,Xpe,3,3,"th",9),p(52,nme,4,3,"td",29),P(),A(53,30),p(54,ime,3,3,"th",12),p(55,ome,2,1,"td",10),P(),A(56,31),p(57,sme,3,3,"th",12),p(58,cme,5,3,"td",10),P(),A(59,32),p(60,dme,3,3,"th",33),p(61,hme,2,1,"td",10),P(),A(62,34),p(63,pme,3,3,"th",9),p(64,Cme,9,5,"td",29),P(),A(65,35),p(66,wme,3,3,"th",9),p(67,Dme,3,2,"td",29),P(),A(68,36),p(69,Mme,3,3,"th",9),p(70,xme,4,2,"td",29),P(),A(71,37),p(72,Eme,3,3,"th",9),p(73,Ame,9,5,"td",29),P(),A(74,38),p(75,Pme,3,3,"th",9),p(76,Lme,5,2,"td",29),P(),A(77,39),p(78,Bme,3,3,"th",9),p(79,Vme,4,2,"td",29),P(),A(80,40),p(81,Hme,3,3,"th",9),p(82,Ume,5,1,"td",29),P(),A(83,41),p(84,$me,3,3,"th",9),p(85,jme,5,1,"td",29),P(),A(86,42),p(87,Gme,3,3,"th",9),p(88,qme,3,2,"td",29),P(),A(89,43),p(90,Yme,3,3,"th",9),p(91,Qme,2,1,"td",29),P(),A(92,44),p(93,Zme,3,3,"th",9),p(94,Jme,4,2,"td",29),P(),A(95,45),p(96,efe,3,3,"th",9),p(97,tfe,4,1,"td",29),P(),A(98,46),p(99,nfe,3,3,"th",9),p(100,ife,2,2,"td",29),P(),A(101,47),p(102,ofe,3,3,"th",9),p(103,cfe,11,12,"td",29),P(),A(104,48),p(105,dfe,3,3,"th",9),p(106,pfe,3,2,"td",10),P(),A(107,49),p(108,mfe,2,0,"th",12),p(109,gfe,3,2,"td",23),P(),p(110,bfe,1,0,"tr",50),p(111,yfe,1,3,"tr",51),d()()(),l(112,"div",52),h(113),d()(),p(114,Cfe,3,0,"button",53),p(115,wfe,7,0,"span",3),p(116,Sfe,7,0,"span",3),p(117,Tfe,2,0,"div",54),p(118,Dfe,3,0,"div",54),p(119,Mfe,3,0,"div",54)),2&n&&(c(2),f("ngIf",o.dataSource),c(1),f("ngIf",o.userService.isAdmin||o.userService.isCustomer||o.userService.isCoverageManager),c(1),f("ngIf",o.multiselectToggle),c(1),f("ngStyle",zn(17,xfe,o.dataSource?"85%":"100%")),c(1),f("ngIf",!o.dataSource&&3!=o.onProgress),c(1),f("ngStyle",zn(19,Efe,o.dataSource?"table":"none"))("dataSource",o.dataSource),c(103),f("matHeaderRowDef",o.columnsToDisplay)("matHeaderRowDefSticky",!0),c(1),f("matRowDefColumns",o.columnsToDisplay),c(2),T(" ",(null==o.filteredMatches?null:o.filteredMatches.length)>0?null==o.filteredMatches?null:o.filteredMatches.length:null==o.matches?null:o.matches.length," Match "),c(1),f("ngIf",1===o.userType||4===o.userType),c(1),f("ngIf",o.userService.isCoverageManager),c(1),f("ngIf",o.userService.isAdmin),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[Rl,F_,Ol,Qh,wl,Mt,rd,ut,gt,Tr,Gt,Ft,zt,on,Tn,Nd,Pd,VF,ce,qe,le,pr,wf,A3,R3,npe,je,Fe,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,kd,Ul,ki,mo,Me,Oe,Ne,Re,Sl,Ba,_e,we],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}.old_event[_ngcontent-%COMP%]{filter:brightness(.9)}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}th[_ngcontent-%COMP%]{text-align:center!important}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow:none!important;height:100%;width:100%;justify-content:center;align-items:center}.icon-container[_ngcontent-%COMP%]{position:relative}.icon-text[_ngcontent-%COMP%]{position:absolute;bottom:-.25em;right:-.3em;color:#61b1dc;font-weight:700;width:16px;height:16px;border-radius:100%;font-size:small;text-align:center;-webkit-user-select:none;user-select:none;line-height:normal}.hoverable-icon[_ngcontent-%COMP%]:hover   .hover-x[_ngcontent-%COMP%]{display:block}.hover-x[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:.25em;cursor:pointer;color:red;font-size:x-large}.br-lw[_ngcontent-%COMP%]{bottom:20px!important;transform:scale(.7)}.br-lw-2[_ngcontent-%COMP%]{right:65px!important}"]})}return t})(),Un=(()=>{class t{constructor(){this.id=null,this.index=0,this.speed=0,this.match=null,this.timeReporter=null,this.name="",this.team="",this.varUsage=!1,this.status="",this.reporter=null,this.type=0,this.timeMatch="",this.parentMatchEvent=null,this.originalMatchEvent=null,this.player=null,this.value="",this.__directChildren__=[],this.directChildren=[]}static#e=this.STATUS_WAITING="W";static#t=this.STATUS_CONFIRMED="F";static#n=this.STATUS_CANCELLED="C";static#i=this.STATUS_SCORED="S";static#o=this.STATUS_MISSED="M";static#s=this.STATUS_OPEN="O";static#a=this.STATUS_CLOSE="E";static#r=this.STATUS_DELETED="D";static#l=this.TEAM_HOME="H";static#c=this.TEAM_AWAY="A"}return t})();class Gg{}class Ht{static#e=this.Safe={id:1,name:"Safe"};static#t=this.Attack={id:2,name:"Attack"};static#n=this.Danger={id:3,name:"Danger"};static#i=this.YellowCard={id:4,name:"YellowCard"};static#o=this.SecondYellowCard={id:5,name:"SecondYellowCard"};static#s=this.RedCard={id:6,name:"RedCard"};static#a=this.ShotOn={id:7,name:"ShotOn"};static#r=this.ShotOff={id:8,name:"ShotOff"};static#l=this.ShotWoodwork={id:9,name:"ShotWoodwork"};static#c=this.PenaltyScored={id:10,name:"PenaltyScored"};static#d=this.PenaltyMissed={id:11,name:"PenaltyMissed"};static#u=this.PenaltyReTake={id:12,name:"PenaltyReTake"};static#h=this.Start1stHalf={id:13,name:"Start1stHalf"};static#p=this.Start2ndHalf={id:14,name:"Start2ndHalf"};static#m=this.Start1stExtraHalf={id:15,name:"Start1stExtraHalf"};static#f=this.Start2ndExtraHalf={id:16,name:"Start2ndExtraHalf"};static#_=this.End1stHalf={id:17,name:"End1stHalf"};static#g=this.End2ndHalf={id:18,name:"End2ndHalf"};static#b=this.End1stExtraHalf={id:19,name:"End1stExtraHalf"};static#v=this.End2ndExtraHalf={id:20,name:"End2ndExtraHalf"};static#y=this.PossibleGoal={id:21,name:"PossibleGoal"};static#C=this.PossibleRed={id:22,name:"PossibleRed"};static#w=this.PossiblePenalty={id:23,name:"PossiblePenalty"};static#S=this.PossibleUnsure={id:24,name:"PossibleUnsure"};static#T=this.PlayersCountIncrease={id:27,name:"PlayersCountIncrease"};static#D=this.PlayersCountDecrease={id:28,name:"PlayersCountDecrease"};static#M=this.WeatherSun={id:29,name:"WeatherSun"};static#x=this.WeatherCloud={id:30,name:"WeatherCloud"};static#E=this.WeatherRain={id:31,name:"WeatherRain"};static#I=this.WeatherSnow={id:32,name:"WeatherSnow"};static#O=this.PitchGood={id:33,name:"PitchGood"};static#R=this.PitchBad={id:34,name:"PitchBad"};static#k=this.GameEnded={id:41,name:"GameEnded"};static#A=this.GameGoingExtra={id:42,name:"GameGoingExtra"};static#P=this.GameGoingPenalties={id:43,name:"GameGoingPenalties"};static#N=this.ShotBlocked={id:44,name:"ShotBlocked"};static#F=this.GoalByFoot={id:45,name:"GoalByFoot"};static#L=this.GoalByHead={id:46,name:"GoalByHead"};static#B=this.GoalOwnGoal={id:47,name:"GoalOwnGoal"};static#V=this.VARGoal={id:48,name:"VARGoal"};static#H=this.VARCard={id:49,name:"VARCard"};static#U=this.VARPenalty={id:50,name:"VARPenalty"};static#$=this.TimeAdjustIncrease={id:51,name:"TimeAdjustIncrease"};static#j=this.TimeAdjustDecrease={id:52,name:"TimeAdjustDecrease"};static#G=this.Offside={id:53,name:"Offside"}}class Ut{static#e=this.In={id:1,name:"In"};static#t=this.Miss={id:2,name:"Miss"};static#n=this.Personal={id:3,name:"Personal"};static#i=this.Offensive={id:4,name:"Offensive"};static#o=this.Technical={id:5,name:"Technical"};static#s=this.Flagrant={id:6,name:"Flagrant"};static#a=this.Increase={id:7,name:"Increase"};static#r=this.Decrease={id:8,name:"Decrease"};static#l=this.newTime={id:9,name:"newTime"};static#c=this.started={id:10,name:"started"};static#d=this.finished={id:11,name:"finished"};static#u=this.Start1stQuarter={id:12,name:"Start1stQuarter"};static#h=this.Start2ndQuarter={id:13,name:"Start2ndQuarter"};static#p=this.Start3rdQuarter={id:14,name:"Start3rdQuarter"};static#m=this.Start4thQuarter={id:15,name:"Start4thQuarter"};static#f=this.Start1stOvertime={id:16,name:"Start1stOvertime"};static#_=this.Start2ndOvertime={id:17,name:"Start2ndOvertime"};static#g=this.Start3rdOvertime={id:18,name:"Start3rdOvertime"};static#b=this.Start4thOvertime={id:19,name:"Start4thOvertime"};static#v=this.Start5thOvertime={id:20,name:"Start5thOvertime"};static#y=this.WarmingUp={id:21,name:"WarmingUp"};static#C=this.CustomComment={id:22,name:"CustomComment"};static#w=this.HomeInjured={id:23,name:"HomeInjured"};static#S=this.AwayInjured={id:24,name:"AwayInjured"};static#T=this["HomeCoach Challenge"]={id:27,name:"HomeCoachChallenge"};static#D=this["AwayCoach Challenge"]={id:28,name:"AwayCoachChallenge"};static#M=this.MatchAboutToStart={id:29,name:"MatchAboutToStart"};static#x=this.One={id:43,name:"One"};static#E=this.Two={id:44,name:"Two"};static#I=this.Three={id:45,name:"One"};static#O=this.Var={id:46,name:"Var"};static#R=this.End1stQuarter={id:47,name:"End1stQuarter"};static#k=this.End2ndQuarter={id:48,name:"End2ndQuarter"};static#A=this.End3rdQuarter={id:49,name:"End3rdQuarter"};static#P=this.End4thQuarter={id:50,name:"Start4thQuarter"};static#N=this.End1stOvertime={id:51,name:"End1stOvertime"};static#F=this.End2ndOvertime={id:52,name:"End2ndOvertime"};static#L=this.End3rdOvertime={id:53,name:"End3rdOvertime"};static#B=this.End4thOvertime={id:54,name:"End4thOvertime"};static#V=this.End5thOvertime={id:55,name:"End5thOvertime"};static#H=this.GameEnded={id:56,name:"GameEnded"}}class Ns{constructor(){this.id=0,this.name=""}static#e=this.PlayersInside={id:25,name:"PlayersInside"};static#t=this.PlayersOutSide={id:26,name:"PlayersOutSide"};static#n=this.ReporterInside={id:35,name:"ReporterInside"};static#i=this.ReporterOutside={id:36,name:"ReporterOutside"};static#o=this.TeamColorPrimary={id:37,name:"TeamColorPrimary"};static#s=this.TeamColorSecondary={id:38,name:"TeamColorSecondary"};static#a=this.CloseGameReporter={id:39,name:"CloseGameReporter"};static#r=this.CloseOpenGameMaster={id:40,name:"CloseOpenGameMaster"};static#l=this.Delayed={id:100,name:"Delayed"};static#c=this.Cancelled={id:101,name:"Cancelled"};static#d=this.Postponed={id:102,name:"Postponed"};static#u=this.Abandoned={id:103,name:"Abandoned"};static#h=this.Interrupted={id:104,name:"Interrupted"};static#p=this.Resumed={id:105,name:"Resumed"};static#m=this["Technical problems"]={id:106,name:"Technical problems"}}var Ip=function(t){return t.Sun="Sunny",t.Cloud="Cloudy",t.Rain="Rainy",t.Snow="Snowy",t}(Ip||{}),jw=function(t){return t.Good="Good",t.Bad="Bad",t}(jw||{});function Ife(t,i){if(1&t&&(l(0,"mat-option",12),h(1),C(2,"translate"),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",w(2,2,""+e.name)," ")}}function Ofe(t,i){1&t&&(l(0,"mat-form-field",4)(1,"mat-select",13,14),C(3,"translate"),l(4,"mat-option"),h(5,"--"),d(),l(6,"mat-option",15),h(7),C(8,"translate"),d(),l(9,"mat-option",16),h(10),C(11,"translate"),d()()()),2&t&&(c(1),N("placeholder",w(3,3,"general_team")),c(6),O(w(8,5,"general_home_team")),c(3),O(w(11,7,"general_away_team")))}function Rfe(t,i){if(1&t&&(l(0,"mat-option",12),h(1),C(2,"translate"),d()),2&t){const e=i.$implicit;f("value",e),c(1),T("",w(2,2,"event_type_"+e)," ")}}function kfe(t,i){if(1&t&&(l(0,"mat-form-field",4)(1,"mat-select",17,18),C(3,"translate"),l(4,"mat-option"),h(5,"--"),d(),p(6,Rfe,3,4,"mat-option",7),d()()),2&t){const e=b(2);c(1),N("placeholder",w(3,3,"general_type")),f("compareWith",e.compareFn3),c(5),f("ngForOf",e.types)}}function Afe(t,i){1&t&&(l(0,"mat-form-field",4)(1,"mat-select",19,20),C(3,"translate"),l(4,"mat-option"),h(5,"--"),d(),l(6,"mat-option",21),h(7),C(8,"translate"),d(),l(9,"mat-option",22),h(10),C(11,"translate"),d(),l(12,"mat-option",23),h(13),C(14,"translate"),d(),l(15,"mat-option",24),h(16),C(17,"translate"),d(),l(18,"mat-option",25),h(19),C(20,"translate"),d()()()),2&t&&(c(1),N("placeholder",w(3,6,"general_status")),c(6),O(w(8,8,"general_cancelled")),c(3),O(w(11,10,"general_waiting")),c(3),O(w(14,12,"general_confirmed")),c(3),O(w(17,14,"general_scored")),c(3),O(w(20,16,"general_missed")))}function Pfe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"mat-form-field",4)(4,"mat-select",5,6),C(6,"translate"),l(7,"mat-option"),h(8,"--"),d(),p(9,Ife,3,4,"mat-option",7),d()(),D(10,"br"),p(11,Ofe,12,9,"mat-form-field",8),D(12,"br"),p(13,kfe,7,5,"mat-form-field",8),D(14,"br"),l(15,"mat-form-field",4),D(16,"input",9),C(17,"translate"),d(),D(18,"br"),p(19,Afe,21,18,"mat-form-field",8),D(20,"mat-divider"),l(21,"p")(22,"button",10),h(23),C(24,"translate"),d(),h(25," \xa0"),l(26,"button",11),M("click",function(){return E(e),I(b().onNoClick())}),h(27),C(28,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),N("placeholder",w(6,11,"general_event")),f("compareWith",e.compareFn2),c(5),f("ngForOf",e.names),c(2),f("ngIf",e.showTeam),c(2),f("ngIf",e.showType),c(3),N("placeholder",w(17,13,"general_time")),c(3),f("ngIf",e.showStatus),c(3),f("disabled",e.options.invalid),c(1),O(w(24,15,"general_save")),c(4),O(w(28,17,"general_close"))}}function Nfe(t,i){1&t&&(l(0,"div",26),D(1,"mat-spinner",27),d())}function Ffe(t,i){1&t&&(l(0,"div",26)(1,"mat-icon",28),h(2,"done"),d()())}function Lfe(t,i){1&t&&(l(0,"div",26)(1,"mat-icon",29),h(2,"clear"),d()())}let Bfe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.types=[],this.names=[],this.names=Object.keys(ge).map(s=>({id:s,name:this.translateService.instant("event_name_"+ge[s])})),this.types=Object.keys(Gg).map(s=>{if(Gg[s]&&Gg[s].id)return Gg[s].id})}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Un),this.service=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/matchEvents",this.http),this.options=this.fb.group({team:[this.entity.team,this.isTeamRequired(this.entity.name,!0)],name:[this.entity.name,ue.required],type:[this.entity.type,this.isTypeRequired(this.entity.name,!0)],timeMatch:[this.entity.timeMatch,ue.required],status:[this.entity.status,this.isStatusRequired(this.entity.name,!0)]})}isTeamRequired(e,n){return e===ge.StandBy||e===Te.EndHalf||e===Te.PitchCondition||e===Te.WeatherCondition||e===Te.PlayersOnField||e===ge.ReporterPosition||e===ge.Comment||e===ge.CallMe||e===ge.CloseGame||e===ge.OpenGame||e===ge.VAR||e===ge.TimeAdjust||e===ge.Attendance||e===ge.EndGame?!!n&&"":!n||ue.required}get showTeam(){return this.isTeamRequired(this.options.value.name,!1)}isTypeRequired(e,n){return e===ge.StandBy||e===Te.Goal||e===ge.Substitution||e===Te.Corner?!!n&&"":!n||ue.required}get showType(){return this.isTypeRequired(this.options.value.name,!1)}isStatusRequired(e,n){return e===Te.Goal||e===Te.Card||e===Te.Penalty||e===Te.Corner||e===Te.FreeKick||e===ge.Substitution||e===Te.PenaltyResult||e===Te.PenaltyShootout||e===Te.Shot||e===Te.ThrowIn?!n||ue.required:!!n&&""}get showStatus(){return this.isStatusRequired(this.options.value.name,!1)}onSave(){this.onProgress=1,this.entity.team=this.options.value.team,this.entity.name=this.options.value.name,this.entity.type=this.options.value.type,this.entity.timeMatch=this.options.value.timeMatch,this.entity.status=this.options.value.status,this.entity.speed=0,this.entity.index=0,this.entity.reporter={id:v.userId},this.entity.timeReporter=new Date,this.entity.match={id:this.matchId};const e=Object.assign({},this.entity);delete e.originalMatchEvent,delete e.parentMatchEvent,this.entity.parentMatchEvent=e,this.entity.originalMatchEvent=this.entity.originalMatchEvent?this.entity.originalMatchEvent:this.entity.parentMatchEvent;const n=this;this.entity?.id?(delete this.entity.id,delete this.entity.timeServer,delete this.entity.__directChildren__,delete this.entity.directChildren,this.service.update(this.entity).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnSuccess(o)},v.delaySuccessMessage)},o=>{this.onProgress=3,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)})):this.service.create(this.entity).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnSuccess(o)},v.delaySuccessMessage)},o=>{this.onProgress=3,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}compareFn2(e,n){return!(!e||!n||e.id!==n)}compareFn3(e,n){return!(!e||!n||e!==n)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess",matchId:"matchId"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"full-width"],["formControlName","name","name","name","required","",3,"compareWith","placeholder"],["name",""],[3,"value",4,"ngFor","ngForOf"],["class","full-width",4,"ngIf"],["matInput","","formControlName","timeMatch","type","text","required","",3,"placeholder"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],["formControlName","team","name","team",3,"placeholder"],["team",""],["value","H"],["value","A"],["formControlName","type","name","type",3,"compareWith","placeholder"],["type",""],["formControlName","status","name","status",3,"placeholder"],["status",""],["value","C"],["value","W"],["value","F"],["value","S"],["value","M"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Pfe,29,19,"div",0),p(1,Nfe,2,0,"div",1),p(2,Ffe,3,0,"div",1),p(3,Lfe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,on,Tn,Ft,Gt,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Vfe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-dialog"]],standalone:!0,features:[Z],decls:2,vars:4,consts:[[3,"entity","matchId","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-event-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data[0])("matchId",o.data[1])("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Bfe]})}return t})(),Ql=(()=>{class t{constructor(e){this.translateService=e}getTranslatedName(e){return"en"==this.translateService.currentLang?e?.name:e?.foreignName?e.foreignName:e.name}getDirectionCss(){return"en"==this.translateService.currentLang?"ltr":"rtl"}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ze))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),HF=(()=>{class t{constructor(e,n){this.breakpointObserver=e,this.NameTranslationHandlerService=n,this.showContainer=!1}ngOnInit(){this.breakpointObserver.observe(["(min-width: 768px)"]).subscribe(e=>{this.showContainer=!!e.matches})}getStartingTime(){if(this.match.plannedStartingTime){let e=new Date(this.match.plannedStartingTime);return this.showContainer?`${e.getHours()<10?"0"+e.getHours():e.getHours()}:${e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes()}\xa0\xa0\xa0\xa0${e.getDate()} ${e.toString().split(" ")[1]} ${e.getFullYear()}`:`${e.getDate()} ${e.toString().split(" ")[1]} ${e.getFullYear()}`}return""}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ra),_(Ql))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-header"]],inputs:{match:"match",matchClock:"matchClock"},standalone:!0,features:[Z],decls:9,vars:3,consts:[[1,"match-event-header","header-border-center"],[1,"match-event-header-title"],[2,"padding","3px"],[1,"vertical-column","matchClock"],[1,"horizontal-center"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2),h(3),d(),l(4,"div",3)(5,"div",4),h(6),d()(),l(7,"div",2),h(8),d()()()),2&n&&(c(3),T(" ",null!=o.match&&o.match.competition?o.NameTranslationHandlerService.getTranslatedName(o.match.competition):"Competition Name"," "),c(3),T(" ",o.matchClock," "),c(2),O(o.getStartingTime()||"Starting Time - Date"))},styles:[".vertical-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:.3em}.match-event-header-title[_ngcontent-%COMP%]{width:100%;background-color:#d3d3d3;color:#000;padding:0 30px 2px;display:flex;justify-content:space-between}.matchClock[_ngcontent-%COMP%]{position:absolute;left:47%;top:-.1em}.cloth[_ngcontent-%COMP%]{stroke:#000;stroke-width:20px}.match-event-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:larger;align-items:center}.cloth-Container[_ngcontent-%COMP%]{padding:0;margin:0 2em;align-items:center}.header-border-center[_ngcontent-%COMP%]{width:70%;border-radius:0 0 15px 15px;position:relative;left:50%;transform:translate(-50%);overflow:hidden}@media only screen and (max-width: 768px){.header-border-center[_ngcontent-%COMP%]{width:95%}.matchClock[_ngcontent-%COMP%]{position:inherit}.match-event-header[_ngcontent-%COMP%]{font-size:12px}}"]})}return t})(),Hfe=(()=>{class t{constructor(e){this.NameTranslationHandlerService=e,this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.panelOpenState=!1}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ql))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-referees"]],inputs:{refereeList:"refereeList"},standalone:!0,features:[Z],decls:34,vars:33,consts:[[2,"padding","15px 15px","font-size","small"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"h4"),h(2),C(3,"translate"),d(),l(4,"p"),h(5),C(6,"translate"),d(),l(7,"p"),h(8),C(9,"translate"),d(),l(10,"h4"),h(11),C(12,"translate"),d(),l(13,"p"),h(14),C(15,"translate"),d(),l(16,"p"),h(17),C(18,"translate"),d(),l(19,"h4"),h(20),C(21,"translate"),d(),l(22,"p"),h(23),C(24,"translate"),d(),l(25,"p"),h(26),C(27,"translate"),d(),l(28,"p"),h(29),C(30,"translate"),d(),l(31,"p"),h(32),C(33,"translate"),d()()),2&n&&(c(2),O(w(3,11,"general_main_referees")),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeMain&&o.refereeList.refereeMain.name?w(6,13,"general_main")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeMain):""),c(3),O(null!=o.refereeList&&null!=o.refereeList.referee4th&&o.refereeList.referee4th.name?w(9,15,"general_4th")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.referee4th):""),c(3),O(w(12,17,"general_line_referees")),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeLine1st&&o.refereeList.refereeLine1st.name?w(15,19,"general_1st")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeLine1st):""),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeLine2nd&&o.refereeList.refereeLine2nd.name?w(18,21,"general_2nd")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeLine2nd):""),c(3),O(w(21,23,"general_var_referees")),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeVar1st&&o.refereeList.refereeVar1st.name?w(24,25,"general_1st")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeVar1st):""),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeVar2nd&&o.refereeList.refereeVar2nd.name?w(27,27,"general_2nd")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeVar2nd):""),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeVar3rd&&o.refereeList.refereeVar3rd.name?w(30,29,"general_3rd")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeVar3rd):""),c(3),O(null!=o.refereeList&&null!=o.refereeList.refereeVar4th&&o.refereeList.refereeVar4th.name?w(33,31,"general_4th")+": "+o.NameTranslationHandlerService.getTranslatedName(o.refereeList.refereeVar4th):""))},dependencies:[_e,we],styles:[".mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}h4[_ngcontent-%COMP%]{margin:0;text-align:center;font-size:larger}p[_ngcontent-%COMP%]{margin:.8em 0}"]})}return t})();const zg={production:!1,assetBaseUrl:"/assets/",versionCheckURL:"http://localhost:4200/version.json",apiURL:"http://localhost:3000/",apiCoverageURL:"http://localhost:3000/",mobileCoverageURL:"http://localhost:8000/",mobileCoverageURL_B:"http://localhost:8200/",adapterCoverageURL:"http://localhost:3500/"};function Ufe(t,i){1&t&&(l(0,"mat-icon",12),C(1,"translate"),h(2," fiber_manual_record "),d()),2&t&&N("matTooltip",w(1,1,"event_name_PlayersOnField"))}function $fe(t,i){1&t&&(l(0,"mat-icon",13),C(1,"translate"),h(2," fiber_manual_record "),d()),2&t&&N("matTooltip",w(1,1,"event_name_PlayersOffField"))}let jfe=(()=>{class t{constructor(e){this.NameTranslationHandlerService=e,this.panelOpenState=!1}ngOnInit(){}get weatherIconName(){if(this.match&&this.match.weatherCondition){if("Rainy"===this.match.weatherCondition)return"rainy";if("Snowy"===this.match.weatherCondition)return"snowy";if("Cloudy"===this.match.weatherCondition)return"cloudy"}return"sun"}getAssetPath(e){return zg.assetBaseUrl.replace("assets/","")+e}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ql))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-stadium"]],inputs:{stadium:"stadium",match:"match"},standalone:!0,features:[Z],decls:35,vars:39,consts:[[2,"padding","15px","font-size","medium"],[3,"matTooltip"],["height","16",3,"src"],["target","_blank","rel","noopener noreferrer",3,"matTooltip","href"],[2,"color","#ee5418"],[1,"horizontal-center",2,"font-size","small",3,"matTooltip"],[3,"svgIcon"],[1,"horizontal-center"],["width","30",2,"transform","rotate(90deg)",3,"src","matTooltip"],[2,"display","flex","align-items","center"],["class","green-icon",3,"matTooltip",4,"ngIf"],["class","red-icon",3,"matTooltip",4,"ngIf"],[1,"green-icon",3,"matTooltip"],[1,"red-icon",3,"matTooltip"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),C(2,"translate"),D(3,"img",2),h(4),d(),l(5,"div")(6,"span",1),C(7,"translate"),C(8,"translate"),D(9,"img",2),h(10),d(),l(11,"a",3),C(12,"translate"),l(13,"mat-icon",4),h(14,"place"),d()()(),l(15,"div",1),C(16,"translate"),D(17,"img",2),h(18),d(),l(19,"div",5),C(20,"translate"),D(21,"mat-icon",6),h(22),d(),l(23,"div",7)(24,"mat-icon",1),C(25,"translate"),h(26,"people_outline"),d(),h(27),d(),l(28,"div",7),D(29,"img",8),C(30,"translate"),h(31),d(),l(32,"div",9),p(33,Ufe,3,3,"mat-icon",10),p(34,$fe,3,3,"mat-icon",11),d()()),2&n&&(c(1),N("matTooltip",w(2,23,"name")),c(2),f("src",o.getAssetPath("assets/images/match_info_icons/stadium.webp"),kt),c(1),T(" ",null!=o.stadium&&o.stadium.name?o.NameTranslationHandlerService.getTranslatedName(o.stadium):""," "),c(2),_s("matTooltip","",w(7,25,"region"),"/",w(8,27,"city"),""),c(3),f("src",o.getAssetPath("assets/images/match_info_icons/flag.webp"),kt),c(1),We(" ",null!=o.stadium.region&&o.stadium.region.name?null==o.stadium.region?null:o.stadium.region.name:""," ",o.stadium.city?o.stadium.city:""," "),c(1),N("matTooltip",w(12,29,"general_googleMapslink")),N("href",o.stadium.googleMapslink,kt),c(4),N("matTooltip",w(16,31,"capacity")),c(2),f("src",o.getAssetPath("assets/images/match_info_icons/crowd.webp"),kt),c(1),T(" ",o.stadium.capacity?o.stadium.capacity:""," "),c(1),N("matTooltip",w(20,33,"event_name_WeatherCondition")),c(2),N("svgIcon",o.weatherIconName),c(1),T(" \xa0",o.match&&o.match.weatherCondition?o.match.weatherCondition:""," "),c(2),N("matTooltip",w(25,35,"event_name_Attendance")),c(3),T(" \xa0\xa0\xa0",o.match&&o.match.attendance?+o.match.attendance+" %":""," "),c(2),N("matTooltip",w(30,37,"event_name_PitchCondition")),f("src",o.getAssetPath("assets/images/pitch_color.svg"),kt),c(2),T(" \xa0",o.match&&o.match.pitchCondition?o.match.pitchCondition:""," "),c(2),f("ngIf",o.match&&(null==o.match.footballStat?null:o.match.footballStat.playersOnField)),c(1),f("ngIf",!o.match||!(null!=o.match.footballStat&&o.match.footballStat.playersOnField)))},dependencies:[ki,mo,Me,Oe,ce,le,_e,we],styles:[".mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}","div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n        margin: 0.5em 0em;\n    }"]})}return t})();function Gfe(t,i){1&t&&D(0,"th",16)}function zfe(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit;Ln(b().rowClass(e)),c(1),O(e.shirtNumber)}}function Wfe(t,i){1&t&&D(0,"th",18)}function qfe(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.NameTranslationHandlerService.getTranslatedName(e)," ")}}function Yfe(t,i){1&t&&D(0,"tr",19)}function Qfe(t,i){1&t&&D(0,"tr",20)}function Zfe(t,i){1&t&&D(0,"th",16)}function Kfe(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit;Ln(b().rowClass(e)),c(1),O(e.shirtNumber)}}function Xfe(t,i){1&t&&D(0,"th",18)}function Jfe(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.NameTranslationHandlerService.getTranslatedName(e)," ")}}function e_e(t,i){1&t&&D(0,"tr",19)}function t_e(t,i){1&t&&D(0,"tr",20)}function n_e(t,i){1&t&&D(0,"th",16)}function i_e(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit;Ln(b().rowClass(e)),c(1),O(e.shirtNumber)}}function o_e(t,i){1&t&&D(0,"th",18)}function s_e(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.NameTranslationHandlerService.getTranslatedName(e)," ")}}function a_e(t,i){1&t&&D(0,"tr",19)}function r_e(t,i){1&t&&D(0,"tr",20)}function l_e(t,i){1&t&&D(0,"th",16)}function c_e(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit;Ln(b().rowClass(e)),c(1),O(e.shirtNumber)}}function d_e(t,i){1&t&&D(0,"th",18)}function u_e(t,i){if(1&t&&(l(0,"td",17),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.NameTranslationHandlerService.getTranslatedName(e)," ")}}function h_e(t,i){1&t&&D(0,"tr",19)}function p_e(t,i){1&t&&D(0,"tr",20)}const $r=function(){return["shirtNumber","name"]};let m_e=(()=>{class t{constructor(e){this.NameTranslationHandlerService=e,this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]}}ngOnInit(){}rowClass(e){return e&&Array.isArray(e.__directChildren__)&&e.__directChildren__.length>0?"old_event":""}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ql))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-events-lineups"]],inputs:{homeMatchLineup:"homeMatchLineup",awayMatchLineup:"awayMatchLineup"},standalone:!0,features:[Z],decls:53,vars:25,consts:[[1,"Lineup"],[1,"Lineup-content"],[1,"table-container-lineup","starting"],[1,"Away"],[1,"blue-title"],["mat-table","","matSort","",1,"lineupTable",3,"dataSource"],["matColumnDef","shirtNumber"],["mat-header-cell","","mat-sort-header","shirtNumber",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"Home"],[1,"table-container-lineup","bench"],["mat-header-cell","","mat-sort-header","shirtNumber"],["mat-cell",""],["mat-header-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4),h(5),d(),D(6,"br"),l(7,"table",5),A(8,6),p(9,Gfe,1,0,"th",7),p(10,zfe,2,3,"td",8),P(),A(11,9),p(12,Wfe,1,0,"th",10),p(13,qfe,2,1,"td",11),P(),p(14,Yfe,1,0,"tr",12),p(15,Qfe,1,0,"tr",13),d()(),l(16,"div",14)(17,"label",4),h(18),d(),D(19,"br"),l(20,"table",5),A(21,6),p(22,Zfe,1,0,"th",7),p(23,Kfe,2,3,"td",8),P(),A(24,9),p(25,Xfe,1,0,"th",10),p(26,Jfe,2,1,"td",11),P(),p(27,e_e,1,0,"tr",12),p(28,t_e,1,0,"tr",13),d()()(),l(29,"label",4),h(30),C(31,"translate"),d(),l(32,"div",15)(33,"div",3)(34,"table",5),A(35,6),p(36,n_e,1,0,"th",7),p(37,i_e,2,3,"td",8),P(),A(38,9),p(39,o_e,1,0,"th",10),p(40,s_e,2,1,"td",11),P(),p(41,a_e,1,0,"tr",12),p(42,r_e,1,0,"tr",13),d()(),l(43,"div",14)(44,"table",5),A(45,6),p(46,l_e,1,0,"th",7),p(47,c_e,2,3,"td",8),P(),A(48,9),p(49,d_e,1,0,"th",10),p(50,u_e,2,1,"td",11),P(),p(51,h_e,1,0,"tr",12),p(52,p_e,1,0,"tr",13),d()()()()()),2&n&&(c(5),T("",null!=o.awayMatchLineup&&null!=o.awayMatchLineup.formation&&o.awayMatchLineup.formation.name?o.awayMatchLineup.formation.name[0]+"-"+o.awayMatchLineup.formation.name[1]+"-"+o.awayMatchLineup.formation.name[2]:"A-W-Y"," "),c(2),f("dataSource",o.awayMatchLineup.starting),c(7),f("matHeaderRowDef",hn(17,$r)),c(1),f("matRowDefColumns",hn(18,$r)),c(3),T(" ",null!=o.homeMatchLineup&&null!=o.homeMatchLineup.formation&&o.homeMatchLineup.formation.name?o.homeMatchLineup.formation.name[0]+"-"+o.homeMatchLineup.formation.name[1]+"-"+o.homeMatchLineup.formation.name[2]:"H-O-M"," "),c(2),f("dataSource",o.homeMatchLineup.starting),c(7),f("matHeaderRowDef",hn(19,$r)),c(1),f("matRowDefColumns",hn(20,$r)),c(2),O(w(31,15,"BENCH")),c(4),f("dataSource",o.awayMatchLineup.bench),c(7),f("matHeaderRowDef",hn(21,$r)),c(1),f("matRowDefColumns",hn(22,$r)),c(2),f("dataSource",o.homeMatchLineup.bench),c(7),f("matHeaderRowDef",hn(23,$r)),c(1),f("matRowDefColumns",hn(24,$r)))},dependencies:[Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,kd,_e,we],styles:[".blue-title[_ngcontent-%COMP%]{font-weight:700}.mat-table[_ngcontent-%COMP%]{background:none;font-family:Montserrat}.mat-cell[_ngcontent-%COMP%]{padding:0!important;margin:0!important;font-size:small!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:0!important}tr.mat-header-row[_ngcontent-%COMP%]{visibility:collapse}table[_ngcontent-%COMP%]{width:100%;font-weight:500}.lineupTable[_ngcontent-%COMP%]{box-shadow:none!important}.starting[_ngcontent-%COMP%], .bench[_ngcontent-%COMP%]{display:flex;flex-direction:row}.Away[_ngcontent-%COMP%]{direction:rtl;width:50%;padding:2%}.Home[_ngcontent-%COMP%]{direction:ltr;width:50%;padding:2%}.Lineup[_ngcontent-%COMP%]{width:100%;height:100%;box-shadow:none!important;direction:rtl;text-align:center;padding:15px}.Lineup-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;color:#fff;height:10%;font-size:1.5em;border-radius:15px 0 0}.Lineup-content[_ngcontent-%COMP%]{height:100%;overflow-y:scroll;font-family:Montserrat,sans-serif}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#308fa373}.table-container-lineup[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex:1}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}tr.mat-row[_ngcontent-%COMP%], tr.mat-footer-row[_ngcontent-%COMP%]{height:32px}"]})}return t})();function UF(t,i,e,n,o,s,a){try{var r=t[s](a),u=r.value}catch(m){return void e(m)}r.done?i(u):Promise.resolve(u).then(n,o)}function Za(t){return function(){var i=this,e=arguments;return new Promise(function(n,o){var s=t.apply(i,e);function a(u){UF(s,n,o,a,r,"next",u)}function r(u){UF(s,n,o,a,r,"throw",u)}a(void 0)})}}class Wg{constructor(){this.id=null,this.name="",this.foreignName="",this.region=null,this.position=null,this.avatar=""}}function $F(t,i){const e="object"==typeof i;return new Promise((n,o)=>{let a,s=!1;t.subscribe({next:r=>{a=r,s=!0},error:o,complete:()=>{s?n(a):e?n(i.defaultValue):o(new Rh)}})})}let jF=(()=>{class t{constructor(){this.selectedFile=null,this.imageResponse=new W}ngOnInit(){}onFileSelected(e){this.selectedFile=e.target?.files[0],this.selectedFile?this.imageResponse.emit(this.selectedFile):alert("Please select an image to upload.")}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-image-uploader"]],outputs:{imageResponse:"imageResponse"},standalone:!0,features:[Z],decls:6,vars:0,consts:[[1,"input-container"],["type","file","id","fileInput",2,"display","none",3,"change"],["fileInput",""],["for","fileInput","mat-icon-button","",2,"cursor","pointer"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"input",1,2),M("change",function(a){return o.onFileSelected(a)}),d(),l(3,"label",3)(4,"mat-icon"),h(5,"attach_file"),d()()())},dependencies:[Me,Oe]})}return t})();function f_e(t,i){if(1&t&&(l(0,"mat-option",24),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function __e(t,i){if(1&t&&(l(0,"mat-option",24),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function g_e(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"br"),l(12,"mat-form-field",5),D(13,"input",9,10),C(15,"translate"),l(16,"mat-hint",8),h(17),d()(),D(18,"br"),l(19,"mat-form-field",5),D(20,"input",11,12),C(22,"translate"),l(23,"mat-hint",8),h(24),d()(),D(25,"br"),l(26,"mat-form-field",5),D(27,"input",13,14),C(29,"translate"),l(30,"mat-hint",8),h(31),d()(),D(32,"br"),l(33,"mat-form-field",5),D(34,"input",15),C(35,"translate"),D(36,"mat-datepicker-toggle",16)(37,"mat-datepicker",17,18),d(),D(39,"br"),l(40,"mat-form-field",5)(41,"mat-select",19,20),C(43,"translate"),l(44,"mat-option"),h(45,"--"),d(),p(46,f_e,2,2,"mat-option",21),d()(),D(47,"br"),l(48,"mat-form-field",5)(49,"mat-select",22,23),C(51,"translate"),l(52,"mat-option",24),h(53,"--"),d(),p(54,__e,2,2,"mat-option",21),d()(),D(55,"br"),l(56,"mat-form-field",5)(57,"span",25),D(58,"input",26,27),C(60,"translate"),l(61,"app-image-uploader",28),M("imageResponse",function(o){return E(e),I(b().handleImageResponse(o))}),d()(),l(62,"mat-hint",8),h(63),d()(),D(64,"mat-divider"),l(65,"p")(66,"button",29),h(67),C(68,"translate"),d(),h(69," \xa0 "),l(70,"button",30),M("click",function(){return E(e),I(b().onNoClick())}),h(71),C(72,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(14),o=X(21),s=X(28),a=X(38),r=X(59),u=b();c(2),f("formGroup",u.options),c(2),O(u.title),c(2),N("placeholder",w(8,32,"general_name")),J("maxlength",50),c(4),T("",e.value.length," / 50"),c(3),N("placeholder",w(15,34,"general_arabic_name")),J("maxlength",50),c(4),T("",n.value.length," / 50"),c(3),N("placeholder",w(22,36,"general_shirt_number")),J("maxlength",2),c(4),T("",o.value.length," / 2"),c(3),N("placeholder",w(29,38,"general_height")),J("maxlength",3),c(4),T("",s.value.length," / 250 (cm)"),c(3),N("placeholder",w(35,40,"general_date_of_birth")),f("matDatepicker",a),c(2),f("for",a),c(1),f("startAt",u.startDate),c(4),N("placeholder",w(43,42,"general_region")),f("compareWith",u.compareFn),c(5),f("ngForOf",u.regions),c(3),N("placeholder",w(51,44,"general_position")),f("compareWith",u.compareFn),c(3),f("value",null),c(2),f("ngForOf",u.positions),c(4),N("placeholder",w(60,46,"general_avatar")),J("maxlength",250),c(5),We("",r.value.length," / ",250,""),c(3),f("disabled",u.options.invalid),c(1),O(w(68,48,"general_save")),c(4),O(w(72,50,"general_close"))}}function b_e(t,i){1&t&&(l(0,"div",31),D(1,"mat-spinner",32),d())}function v_e(t,i){1&t&&(l(0,"div",31)(1,"mat-icon",33),h(2,"done"),d()())}function y_e(t,i){1&t&&(l(0,"div",31)(1,"mat-icon",34),h(2,"clear"),d()())}let C_e=(()=>{class t{changeAddMatchCheckbox(){this.addMatchCheckbox=!this.addMatchCheckbox}constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.selectedFile=null}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Wg),this.service=new Q(v.apiURLs.rootURL+"players",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],foreignName:[this.entity.foreignName],shirtNumber:[this.entity.shirtNumber,ue.maxLength(2)&&ue.min(1)],height:[this.entity.height,ue.max(250)&&ue.min(1)],dateOfBirth:[this.entity.dateOfBirth],region:[this.entity.region,ue.required],position:[this.entity.position],avatar:[this.entity.avatar]})}get positions(){return v.positions}get regions(){return v.regions}get sports(){return v.sports}get title(){return this.translateService.instant(null==this.entity.id?"player_add_new":"player_edit")}get playerNameLimit(){return v.stringLimits.playerNameLimit}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}handleImageResponse(e){e&&(this.selectedFile=e,this.options.controls.avatar.setValue(this.selectedFile.name))}handleImageUpload(){var e=this;return Za(function*(){if(!e.selectedFile)return;const n=new FormData;n.append("image",e.selectedFile,e.selectedFile.name),e.uploadService=new Q(v.apiURLs.rootURL+"images",e.http);try{const o=yield $F(e.uploadService.fileUpload(n));e.options.controls.avatar.setValue(v.apiURLs.rootURL+"images/"+o.location.split("/")[1])}catch(o){console.log(o)}})()}onSave(){var e=this;return Za(function*(){e.onProgress=1,yield e.handleImageUpload(),e.entity.name=e.options.value.name,e.entity.foreignName=e.options.value.foreignName;let n=e.options.value.dateOfBirth?new Date(e.options.value.dateOfBirth):null;null!=n?(n.getDate(),e.entity.dateOfBirth=n):e.entity.dateOfBirth=null,e.entity.shirtNumber=e.options.value.shirtNumber,e.entity.height=e.options.value.height,e.entity.region=e.options.value.region,e.entity.position=e.options.value.position,"null"===e.options.value.position&&(e.entity.position=null),e.entity.avatar=e.options.value.avatar,"null"===e.options.value.avatar&&(e.entity.avatar=null);const o=e;null!=e.entity&&null!=e.entity.id&&0!==e.entity.id?e.service.update(e.entity).subscribe(s=>{e.onProgress=2,setTimeout(function(){o.inputOnSuccess(s)},v.delaySuccessMessage)},s=>{e.onProgress=3,setTimeout(function(){o.inputOnClose()},v.delaySuccessMessage)}):e.service.create(e.entity).subscribe(s=>{e.onProgress=2,setTimeout(function(){o.inputOnSuccess(s)},v.delaySuccessMessage)},s=>{e.onProgress=3,setTimeout(function(){o.inputOnClose()},v.delaySuccessMessage)})})()}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-player-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","foreignName","name","foreignName","matInput","",3,"placeholder"],["foreignName",""],["type","number","formControlName","shirtNumber","name","shirtNumber","matInput","",3,"placeholder"],["shirtNumber",""],["type","number","formControlName","height","name","height","matInput","",3,"placeholder"],["height",""],["matInput","","formControlName","dateOfBirth","name","dateOfBirth",3,"matDatepicker","placeholder"],["matSuffix","",3,"for"],["startView","year",3,"startAt"],["picker",""],["formControlName","region","name","region","required","",3,"compareWith","placeholder"],["region",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","position","name","position",3,"compareWith","placeholder"],["position",""],[3,"value"],[2,"display","flex","justify-content","space-between"],["formControlName","avatar","name","avatar","matInput","",3,"placeholder"],["avatar",""],[3,"imageResponse"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,g_e,73,52,"div",0),p(1,b_e,2,0,"div",1),p(2,v_e,3,0,"div",1),p(3,y_e,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Th,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,cd,zt,wn,Yl,Lw,Cp,wp,on,Tn,Ft,Gt,jF,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Gw=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-player-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-player-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,C_e]})}return t})();function w_e(t,i){if(1&t&&(l(0,"mat-option",14),h(1),d()),2&t){const e=i.$implicit;f("value",(e.shirtNumber?e.shirtNumber:"N")+" - "+e.name+(null!=e.position&&e.position.name?" - "+e.position.name:"")),c(1),Ma(" ",e.shirtNumber?e.shirtNumber:"N"," - ",e.name,"",null!=e.position&&e.position.name?" - "+e.position.name:""," ")}}function S_e(t,i){if(1&t&&(l(0,"mat-form-field",10)(1,"mat-label"),h(2),C(3,"translate"),d(),D(4,"input",11),C(5,"translate"),l(6,"mat-autocomplete",null,12),p(8,w_e,2,4,"mat-option",13),C(9,"async"),d()()),2&t){const e=X(7),n=b(3);c(2),O(w(3,5,"general_add_player")),c(2),N("placeholder",w(5,7,"general_player")),f("formControl",n.PlayerOne)("matAutocomplete",e),c(4),f("ngForOf",w(9,9,n.filteredPlayers))}}function T_e(t,i){if(1&t){const e=F();l(0,"div",7),p(1,S_e,10,11,"mat-form-field",8),l(2,"div")(3,"button",9),M("click",function(){return E(e),I(b(2).openPlayerAddDialog("NO"))}),h(4," Create Player "),d()()()}if(2&t){const e=b(2);c(1),f("ngIf",e.showPlayer)}}function D_e(t,i){if(1&t&&(l(0,"mat-option",14),h(1),d()),2&t){const e=i.$implicit;f("value",(e.shirtNumber?e.shirtNumber:"N")+" - "+e.name+(null!=e.position&&e.position.name?" - "+e.position.name:"")),c(1),Ma(" ",e.shirtNumber?e.shirtNumber:"N"," - ",e.name,"",null!=e.position&&e.position.name?" - "+e.position.name:""," ")}}function M_e(t,i){if(1&t&&(l(0,"mat-form-field",10)(1,"mat-label"),h(2),C(3,"translate"),d(),D(4,"input",11),C(5,"translate"),l(6,"mat-autocomplete",null,12),p(8,D_e,2,4,"mat-option",13),C(9,"async"),d()()),2&t){const e=X(7),n=b(3);c(2),O(w(3,5,"general_add_player_in")),c(2),N("placeholder",w(5,7,"general_player")),f("formControl",n.PlayerIn)("matAutocomplete",e),c(4),f("ngForOf",w(9,9,n.filteredPlayersIn))}}function x_e(t,i){if(1&t&&(l(0,"mat-option",14),h(1),d()),2&t){const e=i.$implicit;f("value",(e.shirtNumber?e.shirtNumber:"N")+" - "+e.name+(null!=e.position&&e.position.name?" - "+e.position.name:"")),c(1),Ma(" ",e.shirtNumber?e.shirtNumber:"N"," - ",e.name,"",null!=e.position&&e.position.name?" - "+e.position.name:""," ")}}function E_e(t,i){if(1&t&&(l(0,"mat-form-field",10)(1,"mat-label"),h(2),C(3,"translate"),d(),D(4,"input",11),C(5,"translate"),l(6,"mat-autocomplete",null,12),p(8,x_e,2,4,"mat-option",13),C(9,"async"),d()()),2&t){const e=X(7),n=b(3);c(2),O(w(3,5,"general_add_player_out")),c(2),N("placeholder",w(5,7,"general_player")),f("formControl",n.PlayerOut)("matAutocomplete",e),c(4),f("ngForOf",w(9,9,n.filteredPlayersOut))}}function I_e(t,i){if(1&t){const e=F();l(0,"div")(1,"div",7),p(2,M_e,10,11,"mat-form-field",8),l(3,"div")(4,"button",9),M("click",function(){return E(e),I(b(2).openPlayerAddDialog("IN"))}),h(5," Create Player "),d()()(),l(6,"div",7),p(7,E_e,10,11,"mat-form-field",8),l(8,"div")(9,"button",9),M("click",function(){return E(e),I(b(2).openPlayerAddDialog("OUT"))}),h(10," Create Player "),d()()()()}if(2&t){const e=b(2);c(2),f("ngIf",e.showPlayer),c(5),f("ngIf",e.showPlayer)}}function O_e(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),p(3,T_e,5,1,"div",4),p(4,I_e,11,2,"div",0),D(5,"mat-divider"),l(6,"p")(7,"button",5),M("click",function(){return E(e),I(b().onSave())}),h(8),C(9,"translate"),d(),h(10," \xa0"),l(11,"button",6),M("click",function(){return E(e),I(b().onNoClick())}),h(12),C(13,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(1),f("ngIf","Substitution"!=e.entity.name),c(1),f("ngIf","Substitution"==e.entity.name),c(3),f("disabled",e.options.invalid),c(1),O(w(9,6,"general_save")),c(4),O(w(13,8,"general_close"))}}function R_e(t,i){1&t&&(l(0,"div",15),D(1,"mat-spinner",16),d())}function k_e(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",17),h(2,"done"),d()())}function A_e(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",18),h(2,"clear"),d()())}let P_e=(()=>{class t{constructor(e,n,o,s){this.http=e,this.updateDialog=n,this.translateService=o,this.fb=s,this.onProgress=0,this.players=[],this.PlayerOne=new ji(""),this.PlayerIn=new ji(""),this.PlayerOut=new ji("")}_filter(e){let n;return n=e.toLowerCase(),this.players.filter(o=>(o.shirtNumber+" - "+o.name+" - "+o.position?.name).toLowerCase().includes(n))}openPlayerAddDialog(e){const n=new Wg,o=this.updateDialog.open(Gw,{width:"50%",data:n});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{if(s){let a;a="H"==this.entity.team?{player:s,team:this.match.homeTeam}:{player:s,team:this.match.awayTeam},this.savePlayerTeam(a,e)}})}savePlayerTeam(e,n){var o=this;return Za(function*(){let s;s=new Q(v.apiURLs.rootURL+"playerteams",o.http);let a=!1;yield s.create([e]).subscribe({next:u=>{a=!0,o.snackBar.open("New Players Saved","",{duration:v.snackBarDuration})},error:u=>{o.snackBar.open("FAILED TO SAVE PLAYERS","",{duration:v.snackBarDuration})},complete:()=>{a&&o.fetchPlayerTeam(e,n)}})})()}fetchPlayerTeam(e,n){let o;o=new Q(v.apiURLs.rootURL+"playerteams/"+("H"==this.entity.team?this.match?.homeTeam?.id:this.match?.awayTeam?.id),this.http),o.getAll(v.token,v.userId).subscribe(s=>{this.onProgress=0;const a=[],r=[];s.forEach(m=>{m.player.shirtNumber?a.push(m.player):r.push(m.player)}),a.sort((m,g)=>m.shirtNumber-g.shirtNumber);let u=[...a,...r];this.players=u}),e&&("NO"==n?this.PlayerOne.setValue((e.player?.shirtNumber?e.player.shirtNumber:"N")+" - "+e.player?.name+(e.player?.position?.name?" - "+e.player.position.name:"")):"IN"==n?this.PlayerIn.setValue((e.player?.shirtNumber?e.player.shirtNumber:"N")+" - "+e.player?.name+(e.player?.position?.name?" - "+e.player.position.name:"")):this.PlayerOut.setValue((e.player?.shirtNumber?e.player.shirtNumber:"N")+" - "+e.player?.name+(e.player?.position?.name?" - "+e.player.position.name:"")))}ngOnChanges(){if(this.onProgress=0,this.fetchPlayerTeam(),"Substitution"!=this.entity.name){if(this.entity.player){const e=this.entity.player;this.PlayerOne.setValue((e.shirtNumber?e.shirtNumber:"N")+" - "+e.name+(e.position?.name?" - "+e.position.name:""))}}else if(this.entity.value){const e=this.entity.value;null!=e[0].id&&this.PlayerIn.setValue((e[0].shirtNumber?e[0].shirtNumber:"N")+" - "+e[0].name+(e[0].position?.name?" - "+e[0].position.name:"")),null!=e[1].id&&this.PlayerOut.setValue((e[1].shirtNumber?e[1].shirtNumber:"N")+" - "+e[1].name+(e[1].position?.name?" - "+e[1].position.name:""))}this.service=new Q(v.apiURLs.rootURL+"matches/"+this.match.id+"/matchEvents",this.http),this.options=this.fb.group({player:[this.PlayerOne.value],playerIn:[this.PlayerIn.value],playerOut:[this.PlayerOut.value]}),"Substitution"!=this.entity.name?this.filteredPlayers=this.PlayerOne.valueChanges.pipe(jt(""),Le(e=>this._filter(e||""))):(this.filteredPlayersIn=this.PlayerIn.valueChanges.pipe(jt(""),Le(e=>this._filter(e||""))),this.filteredPlayersOut=this.PlayerOut.valueChanges.pipe(jt(""),Le(e=>this._filter(e||""))))}get showPlayer(){return!0}onSave(){if(this.onProgress=1,this.entity.speed=0,"Substitution"==this.entity.name){const o=this.entity.value||[];if(null!=this.PlayerIn){const s=this.PlayerIn.value?.split(" - ");let a=null;if(s&&s[1]){if(a=this.players.find(r=>r.name===s[1])??null,!a)return void(this.onProgress=3)}else a=null;o[0]={id:a?.id||null,name:a?.name||"",foreignName:a?.foreignName||"",shirtNumber:a?.shirtNumber||null}}if(null!=this.PlayerOut){const s=this.PlayerOut.value?.split(" - ");let a=null;if(s&&s[1]){if(a=this.players.find(r=>r.name===s[1])??null,!a)return void(this.onProgress=3)}else a=null;o[1]={id:a?.id||null,name:a?.name||"",foreignName:a?.foreignName||"",shirtNumber:a?.shirtNumber||null}}this.entity.value=JSON.stringify(o)}else if(null!=this.PlayerOne){const o=this.PlayerOne.value?.split(" - ");let s=null;s=o&&o[1]?this.players.find(a=>a.name===o[1])??null:null,this.entity.player=s&&s.id&&"number"==typeof s.id?{id:+s.id}:{id:null}}this.entity.reporter={id:v.userId},this.entity.timeReporter=new Date,this.entity.match={id:this.match.id},this.entity.timeMatch=Ep(this.match);const e=Object.assign({},this.entity);delete e.originalMatchEvent,delete e.parentMatchEvent,this.entity.parentMatchEvent=e,this.entity.originalMatchEvent=this.entity.originalMatchEvent?this.entity.originalMatchEvent:this.entity.parentMatchEvent;const n=this;this.entity?.id?(delete this.entity.id,delete this.entity.timeServer,delete this.entity.__directChildren__,delete this.entity.directChildren,this.service.update(this.entity).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnSuccess(o)},v.delaySuccessMessage)},o=>{this.onProgress=3,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)})):this.service.create(this.entity).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnSuccess(o)},v.delaySuccessMessage)},o=>{this.onProgress=3,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-events-facts-player-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess",match:"match"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup"],["style","display: flex; align-items: center;",4,"ngIf"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","type","button",3,"click"],[2,"display","flex","align-items","center"],["style","width: 20em;padding-bottom: 3.5em;","class","example-full-width player-team-content-autoform",4,"ngIf"],["mat-button","","color","warn","matTooltip","Don't use unless authorized",3,"click"],[1,"example-full-width","player-team-content-autoform",2,"width","20em","padding-bottom","3.5em"],["type","text","aria-label","Number","matInput","",3,"placeholder","formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,O_e,14,10,"div",0),p(1,R_e,2,0,"div",1),p(2,k_e,3,0,"div",1),p(3,A_e,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,mr,xt,Vt,Lt,Mt,Bt,wr,vt,ut,gt,Tr,zt,wn,ql,Ad,Wl,Ft,Gt,Ne,Re,ki,mo,gn,xn,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{width:5em;padding:0%!important}"]})}return t})(),N_e=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-events-facts-player-dialog"]],standalone:!0,features:[Z],decls:2,vars:4,consts:[[3,"entity","match","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-events-facts-player-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data[0])("match",o.data[1])("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,P_e]})}return t})();function zw(t,i){switch(t.name){case et.Possession:return Ye(t.team,i)+" "+i.instant("Possession")+" "+(t.type?i.instant("event_type_b_"+t.type):"");case et.StartQuarter:if(t.type){if(t.type===Ut.Start1stQuarter.id)return i.instant("1st_Quarter_Started");if(t.type===Ut.Start2ndQuarter.id)return i.instant("2nd_Quarter_Started");if(t.type===Ut.Start3rdQuarter.id)return i.instant("3rd_Quarter_Started");if(t.type===Ut.Start4thQuarter.id)return i.instant("4th_Quarter_Started");if(t.type===Ut.Start1stOvertime.id)return i.instant("1st_Overtime_Quarter_Started");if(t.type===Ut.Start2ndOvertime.id)return i.instant("2nd_Overtime_Quarter_Started");if(t.type===Ut.Start3rdOvertime.id)return i.instant("3rd_Overtime_Quarter_Started");if(t.type===Ut.Start4thOvertime.id)return i.instant("4th_Overtime_Quarter_Started");if(t.type===Ut.Start5thOvertime.id)return i.instant("5th_Overtime_Quarter_Started")}break;case ge.StandBy:return(t.team?Ye(t.team,i)+" ":"")+i.instant("event_name_"+t.name);case ge.TimeAdjust:return i.instant("event_name_"+t.name)+" "+(t.value.includes("MS|")?t.value.split("|")[1].substr(0,2):t.value);case et.ConfirmScore:return i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_b_"+t.type):"")+(t.status?" - "+gi(t.status,i):"");case et.Foul:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_b_"+t.type):"")+(t.status?" - "+gi(t.status,i):"");case et.FreeThrow:case et.FreeThrowAward:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+"  "+(t.type?i.instant("event_type_b_"+t.type):"")+" - "+gi(t.status,i);case et.TwoPoint:case et.ThreePoint:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_b_"+t.type):"")+" - "+gi(t.status,i)+" "+zo(t,i);case et.TurnOver:case et.TimeStop:case et.TimeRun:case et.TimeOut:return Ye(t.team,i)+" "+i.instant(t.type?"event_type_b_"+t.type:"event_name_"+t.name);case et.TimeOutOver:return i.instant(t.type?"event_type_b_"+t.type:"event_name_"+t.name);case et.PlayerStatus:case et.TurnOver:return Ye(t.team,i)+" "+i.instant(t.type?"event_type_b_"+t.type:"event_name_"+t.name)+" - "+gi(t.status,i)+" "+zo(t,i);case et.EndQuarter:if(t.type){if(t.type===Ut.End1stQuarter.id)return i.instant("1st_Quarter_Finished");if(t.type===Ut.End2ndQuarter.id)return i.instant("2nd_Quarter_Finished");if(t.type===Ut.End3rdQuarter.id)return i.instant("3rd_Quarter_Finished");if(t.type===Ut.End4thQuarter.id)return i.instant("4th_Quarter_Finished");if(t.type===Ut.End1stOvertime.id)return i.instant("1st_Overtime_Quarter_Finished");if(t.type===Ut.End2ndOvertime.id)return i.instant("2nd_Overtime_Quarter_Finished");if(t.type===Ut.End3rdOvertime.id)return i.instant("3rd_Overtime_Quarter_Finished");if(t.type===Ut.End4thOvertime.id)return i.instant("4th_Overtime_Quarter_Finished");if(t.type===Ut.End5thOvertime.id)return i.instant("5th_Overtime_Quarter_Finished")}break;case ge.EndGame:return i.instant("event_name_"+t.name)+" - "+(t.type?i.instant("event_type_b_"+t.type):"");case ge.Substitution:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" - "+gi(t.status,i)+zo(t,i);case ge.Comment:return i.instant("event_name_"+t.name)+" "+i.instant(t.value)+" "+(t.type?i.instant("event_type_b_"+t.type):"");case ge.Attendance:return i.instant("event_name_"+t.name)+" "+i.instant(t.value)+"%";case et.PlayersOnCourt:return i.instant("event_type_"+t.type);case ge.VAR:return t.status===Un.STATUS_WAITING?(t.type?i.instant("event_type_b_"+t.type):"VAR")+" "+i.instant("general_started"):i.instant("event_name_"+t.name)+" "+i.instant("general_ended");case ge.TeamColor:return Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"");case ge.ReporterPosition:return(t.type?i.instant("event_type_"+t.type):"")+" "+(t.status?gi(t.status,i):"");case ge.OpenGame:return i.instant(40==t.type?"general_open_game_master":"general_open_game");case ge.CloseGame:return i.instant(40==t.type?"general_close_game_master":"general_close_game");case ge.LineupChange:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)}return i.instant("event_name_"+t.name)}function Ww(t,i){switch(t.name){case Te.BallPosition:return Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"");case Te.StartHalf:if(t.type){if(t.type===Ht.Start1stHalf.id)return i.instant("Match_Started")+" - "+Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"");if(t.type===Ht.Start2ndHalf.id)return i.instant("2nd_Half_Started")+" - "+Ye(t.team,i);if(t.type===Ht.Start1stExtraHalf.id)return i.instant("1st_Extra_Half_Started")+" - "+Ye(t.team,i);if(t.type===Ht.Start2ndExtraHalf.id)return i.instant("2nd_Extra_Half_Started")+" - "+Ye(t.team,i)}break;case ge.StandBy:return(t.team?Ye(t.team,i)+" ":"")+i.instant("event_name_"+t.name);case Te.FreeKick:return t.type&&t.type===Ht.Danger.id?Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_"+t.type):"")+(t.status?" - "+gi(t.status,i):""):Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_"+t.type):"")+(t.status==Un.STATUS_DELETED?" - "+gi(t.status,i):"");case Te.ThrowIn:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_"+t.type):"")+(t.status?" - "+gi(t.status,i):"");case Te.Shot:return Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"")+(t.status?" - "+gi(t.status,i):"");case Te.Corner:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" - "+gi(t.status,i);case Te.Goal:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" - "+gi(t.status,i)+" "+zo(t,i)+" "+(t.type?i.instant("event_type_"+t.type):"");case Te.KickOff:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name);case Te.Card:return Ye(t.team,i)+" "+i.instant(t.type?"event_type_"+t.type:"event_name_"+t.name)+" - "+gi(t.status,i)+" "+zo(t,i);case Te.Penalty:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" - "+gi(t.status,i)+" "+zo(t,i);case Te.PenaltyResult:return"W"==t.status?Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"")+" "+zo(t,i)+" - "+i.instant("general_waiting"):"D"==t.status?Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"")+" "+zo(t,i)+" - "+i.instant("general_deleted"):"C"==t.status?Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"")+" "+zo(t,i)+" - "+i.instant("general_cancelled"):Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"")+" "+zo(t,i)+" - "+i.instant("general_confirmed");case Te.GoalKick:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_"+t.type):"");case Te.EndHalf:if(t.type){if(t.type===Ht.End1stHalf.id)return i.instant("1st_Half_Finished");if(t.type===Ht.End2ndHalf.id)return i.instant("2nd_Half_Finished");if(t.type===Ht.End1stExtraHalf.id)return i.instant("1st_Extra_Half_Finished");if(t.type===Ht.End2ndExtraHalf.id)return i.instant("2nd_Extra_Half_Finished")}break;case ge.EndGame:if(t.type){if(t.type===Ht.GameEnded.id)return i.instant("event_name_"+t.name);if(t.type===Ht.GameGoingExtra.id)return i.instant("event_name_"+t.name)+" - "+i.instant("event_type_"+t.type);if(t.type===Ht.GameGoingPenalties.id)return i.instant("event_name_"+t.name)+" - "+i.instant("event_type_"+t.type)}break;case ge.Substitution:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+" - "+gi(t.status,i)+zo(t,i);case ge.Comment:return i.instant("event_name_"+t.name)+" "+i.instant(t.value)+" "+(t.type?i.instant("event_type_"+t.type):"");case ge.Attendance:return i.instant("event_name_"+t.name)+" "+i.instant(t.value)+"%";case Te.PlayersOnField:return i.instant("event_type_"+t.type);case Te.PlayersCount:return Ye(t.team,i)+" "+i.instant("event_type_"+t.type)+(t.status?" - "+gi(t.status,i):"");case ge.VAR:return t.status===Un.STATUS_WAITING?(t.type?i.instant("event_type_"+t.type):"VAR Unsure")+" "+i.instant("general_started"):i.instant("event_name_"+t.name)+" "+i.instant("general_ended");case Te.PenaltyShootout:return"W"==t.status?Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+", "+(t.type?i.instant("event_type_"+t.type):"")+" - "+i.instant("general_waiting"):"D"==t.status?Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+", "+(t.type?i.instant("event_type_"+t.type):"")+" - "+i.instant("general_deleted"):"C"==t.status?Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+", "+(t.type?i.instant("event_type_"+t.type):"")+" - "+i.instant("general_cancelled"):Ye(t.team,i)+" "+i.instant("event_name_"+t.name)+", "+(t.type?i.instant("event_type_"+t.type):"")+" - "+i.instant("general_confirmed");case Te.PitchCondition:case Te.WeatherCondition:return i.instant("event_name_"+t.name)+" "+(t.type?i.instant("event_type_"+t.type):"");case ge.TeamColor:return Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"");case ge.ReporterPosition:return(t.type?i.instant("event_type_"+t.type):"")+" "+(t.status?gi(t.status,i):"");case ge.OpenGame:return i.instant(40==t.type?"general_open_game_master":"general_open_game");case ge.CloseGame:return i.instant(40==t.type?"general_close_game_master":"general_close_game");case ge.LineupChange:return Ye(t.team,i)+" "+i.instant("event_name_"+t.name)}return i.instant("event_name_"+t.name)}function B_e(t,i){1&t&&(l(0,"th",11),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_event")," "))}function V_e(t,i){if(1&t&&(l(0,"div",15),h(1),d()),2&t){const e=b().$implicit,n=b();c(1),T(" ",n.getEvent(e).includes("|")?"":n.getEvent(e),"")}}function H_e(t,i){if(1&t&&(l(0,"div")(1,"div",25),h(2),d(),l(3,"div"),h(4),d()()),2&t){const e=b(2).$implicit,n=b();c(2),T(" ",e.value&&n.getEvent(e).split("|")[1].split(", ")[0].slice(4)," "),c(2),T(" ",e.value&&n.getEvent(e).split("|")[1].split(", ")[1].slice(3,-1)," ")}}function U_e(t,i){if(1&t&&(l(0,"div",25),h(1),d()),2&t){const e=b(2).$implicit,n=b();c(1),T(" ",n.getEvent(e).split("|")[1]," ")}}function $_e(t,i){if(1&t){const e=F();l(0,"div",16)(1,"div",17)(2,"div",18),h(3),d(),p(4,H_e,5,2,"div",19),p(5,U_e,2,1,"div",20),l(6,"div",21),h(7),d()(),l(8,"div",22),M("click",function(){E(e);const o=b().$implicit;return I(b().openEditDialog(o))}),D(9,"img",23),d(),D(10,"div",24),d()}if(2&t){const e=b().$implicit,n=b();c(3),T(" ",n.getformatedDate(null!=e.originalMatchEvent&&e.originalMatchEvent.timeMatch?e.originalMatchEvent.timeMatch:e.timeMatch)," "),c(1),f("ngIf","Substitution"==e.name),c(1),f("ngIf","Substitution"!=e.name),c(2),T(" ",n.translateService.instant(e.type&&"Goal"!=e.name&&"Score"!=e.name?"event_type_b_"+e.type:"event_name_"+e.name)," "),c(2),f("src",n.getAssetPath(n.getEvent(e).split("|")[0]),kt)("height",n.ImgHeight)("width",n.ImgWidth)}}function j_e(t,i){if(1&t&&(l(0,"div")(1,"div",25),h(2),d(),l(3,"div"),h(4),d()()),2&t){const e=b(2).$implicit,n=b();c(2),T(" ",e.value&&n.getEvent(e).split("|")[1].split(", ")[0].slice(4)," "),c(2),T(" ",e.value&&n.getEvent(e).split("|")[1].split(", ")[1].slice(3,-1)," ")}}function G_e(t,i){if(1&t&&(l(0,"div",25),h(1),d()),2&t){const e=b(2).$implicit,n=b();c(1),T(" ",n.getEvent(e).split("|")[1]," ")}}function z_e(t,i){if(1&t){const e=F();l(0,"div",16),D(1,"div",24),l(2,"div",26),M("click",function(){E(e);const o=b().$implicit;return I(b().openEditDialog(o))}),D(3,"img",23),d(),l(4,"div",27)(5,"div",18),h(6),d(),p(7,j_e,5,2,"div",19),p(8,G_e,2,1,"div",20),l(9,"div",21),h(10),d()()()}if(2&t){const e=b().$implicit,n=b();c(3),f("src",n.getAssetPath(n.getEvent(e).split("|")[0]),kt)("height",n.ImgHeight)("width",n.ImgWidth),c(3),T(" ",n.getformatedDate(null!=e.originalMatchEvent&&e.originalMatchEvent.timeMatch?e.originalMatchEvent.timeMatch:e.timeMatch)," "),c(1),f("ngIf","Substitution"==e.name),c(1),f("ngIf","Substitution"!=e.name),c(2),T(" ",n.translateService.instant(e.type&&"Goal"!=e.name&&"Score"!=e.name?"event_type_b_"+e.type:"event_name_"+e.name)," ")}}function W_e(t,i){if(1&t&&(l(0,"td",12),p(1,V_e,2,1,"div",13),p(2,$_e,11,7,"div",14),p(3,z_e,11,7,"div",14),d()),2&t){const e=i.$implicit;it("text-align","center"),c(1),f("ngIf",!e.team),c(1),f("ngIf","H"==e.team),c(1),f("ngIf","A"==e.team)}}function q_e(t,i){1&t&&D(0,"tr",28)}function Y_e(t,i){1&t&&D(0,"tr",29)}let Q_e=(()=>{class t{constructor(e,n){this.translateService=e,this.updateDialog=n,this.afterFactsUpdateCallback=new W,this.effectiveEvents=[],this.columnsToDisplay=["event"],this.ImgWidth=16,this.ImgHeight=16}isAllowed(e){return(v.userType==Be.ACCOUNT_TYPE_ADMIN||v.userType==Be.ACCOUNT_TYPE_MODERATOR)&&"Corner"!=e.name}getformatedDate(e){return parseInt(e.split(":")[0])+1+"'"}openEditDialog(e){if(null==e&&((e=new Un).id=null,e.name=""),!this.isAllowed(e))return;const n=this.updateDialog.open(N_e,{width:"50%",data:[e,this.match],disableClose:!0});n.componentInstance.dialogRef=n,n.backdropClick().subscribe(o=>{n.close()}),n.afterClosed().subscribe(o=>{o&&this.afterFactsUpdateCallback.emit()})}ngOnChanges(e){if(e&&e.matchEvents.currentValue.length&&e.matchEvents.currentValue.length!=e.matchEvents.previousValue?.length){let n=[];for(const o of this.matchEvents){let s=o;(s.name==ge.Substitution||s.name==Te.Goal||s.name==Te.PenaltyResult||s.name==Te.PenaltyShootout||s.name==Te.EndHalf||s.name==Te.Card||s.name==Te.Corner||s.name==et.Foul||s.name==et.FreeThrow||s.name==et.FreeThrowAward||s.name==et.TwoPoint||s.name==et.ThreePoint||s.name==et.EndQuarter)&&("F"==s.status&&Array.isArray(s.__directChildren__)&&0==s.__directChildren__.length||!s.team)&&n.push(s)}n.sort((o,s)=>o.timeServer&&s.timeServer?new Date(o.originalMatchEvent?.timeServer?o.originalMatchEvent.timeServer:o.timeServer).getTime()-new Date(s.originalMatchEvent?.timeServer?s.originalMatchEvent.timeServer:s.timeServer).getTime():0),this.effectiveEvents=[...n].reverse()}}getEvent(e){return"football"==this.match.sport?.name.toLowerCase()?function L_e(t,i){switch(t.name){case Te.StartHalf:if(t.type){if(t.type===Ht.Start1stHalf.id)return i.instant("Match_Started")+" - "+Ye(t.team,i)+" "+(t.type?i.instant("event_type_"+t.type):"");if(t.type===Ht.Start2ndHalf.id)return i.instant("2nd_Half_Started")+" - "+Ye(t.team,i);if(t.type===Ht.Start1stExtraHalf.id)return i.instant("1st_Extra_Half_Started")+" - "+Ye(t.team,i);if(t.type===Ht.Start2ndExtraHalf.id)return i.instant("2nd_Extra_Half_Started")+" - "+Ye(t.team,i)}break;case Te.Corner:return"assets/images/corner_flag.webp|";case Te.Goal:return"assets/images/ball.png|"+Wi(t,i);case Te.Card:return t.type==Ht.YellowCard.id?"assets/images/card_yellow.svg|"+Wi(t,i):t.type==Ht.RedCard.id?"assets/images/card_red.svg|"+Wi(t,i):"assets/images/card_yellow_red.svg|"+Wi(t,i);case Te.PenaltyResult:return"W"==t.status?"assets/images/penalty.png|"+Wi(t,i):"D"==t.status?"assets/images/penalty_blocked.png|"+Wi(t,i):10==t.type?"assets/images/penalty.png|"+Wi(t,i):"assets/images/penalty_blocked.png|"+Wi(t,i);case Te.EndHalf:if(t.type){if(t.type===Ht.End1stHalf.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("general_half_time")+" \xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad";if(t.type===Ht.End2ndHalf.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad "+i.instant("2nd_Half_Finished")+" \xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad";if(t.type===Ht.End1stExtraHalf.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014 "+i.instant("1st_Extra_Half_Finished")+" \xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014";if(t.type===Ht.End2ndExtraHalf.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014 "+i.instant("2nd_Extra_Half_Finished")+" \xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014"}break;case ge.Substitution:return"assets/images/substitution.png|"+Wi(t,i);case Te.PenaltyShootout:if(t.type)return 10==t.type?"assets/images/penalty.png|"+Wi(t,i):"assets/images/penalty_blocked.png|"+Wi(t,i)}return i.instant("event_name_"+t.name)}(e,this.translateService):"basketball"==this.match.sport?.name.toLowerCase()?function F_e(t,i){switch(t.name){case et.StartQuarter:if(t.type){if(t.type===Ut.Start1stQuarter.id)return i.instant("1st_Quarter_Started")+" - "+Ye(t.team,i)+" "+(t.type?i.instant("event_type_b_"+t.type):"");if(t.type===Ut.Start2ndQuarter.id)return i.instant("2nd_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start3rdQuarter.id)return i.instant("3rd_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start4thQuarter.id)return i.instant("4th_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start1stOvertime.id)return i.instant("1st_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start2ndOvertime.id)return i.instant("2nd_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start3rdOvertime.id)return i.instant("3rd_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start4thOvertime.id)return i.instant("4th_Overtime_Quarter_Started")+" - "+Ye(t.team,i);if(t.type===Ut.Start5thOvertime.id)return i.instant("5th_Overtime_Quarter_Started")+" - "+Ye(t.team,i)}break;case et.TwoPoint:case et.ThreePoint:return"assets/images/ball.png|"+Wi(t,i);case et.FreeThrow:return"assets/images/penalty.png|"+Wi(t,i);case et.FreeThrowAward:return"assets/images/penalty_blocked.png|"+Wi(t,i);case et.Foul:return"assets/images/card_red.svg|"+Wi(t,i);case et.EndQuarter:if(t.type){if(t.type===Ut.End1stQuarter.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("1st_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End2ndQuarter.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("2nd_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End3rdQuarter.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("3rd_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End4thQuarter.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("4th_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End1stOvertime.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("1st_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End2ndOvertime.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("2nd_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End3rdOvertime.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("3rd_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End4thOvertime.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("4th_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad";if(t.type===Ut.End5thOvertime.id)return"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"+i.instant("5th_Overtime_Quarter_Finished")+"\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014\xad\xad\xad\xad\u2014\u2014 \xad\xad\xad\xad"}break;case ge.Substitution:return"assets/images/substitution.png|"+Wi(t,i)}return i.instant("event_name_"+t.name)}(e,this.translateService):void 0}getAssetPath(e){return zg.assetBaseUrl.replace("assets/","")+e}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ze),_(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-events-facts"]],inputs:{matchEvents:"matchEvents",match:"match"},outputs:{afterFactsUpdateCallback:"afterFactsUpdateCallback"},standalone:!0,features:[fe,Z],decls:12,vars:3,consts:[[1,"Fact"],[1,"Fact-content"],[1,"table-container-fact","starting"],[1,"facts-adjuster"],[1,"blue-title",2,"width","11vw"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","event"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","style","font-family: montserrat, Arial, Helvetica, sans-serif !important;border: none;",3,"text-align",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",2,"font-family","montserrat, Arial, Helvetica, sans-serif !important","border","none"],["style","font-weight: 600;",4,"ngIf"],["style","display: flex;margin: 5px;",4,"ngIf"],[2,"font-weight","600"],[2,"display","flex","margin","5px"],[2,"width","40%","text-align","right","margin-right","2%"],[1,"formatedDate",2,"font-weight","500"],[4,"ngIf"],["style","font-weight: 500;",4,"ngIf"],[2,"font-size","x-small"],[1,"img-div",2,"border-left","1.5px solid black","flex-direction","column","cursor","pointer",3,"click"],[2,"margin","0px 4px","object-fit","contain",3,"src","height","width"],[2,"width","42%"],[2,"font-weight","500"],[1,"img-div",2,"border-right","1.5px solid black","flex-direction","column","cursor","pointer",3,"click"],[2,"width","40%","text-align","left","margin-left","2%"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),D(4,"label",4)(5,"br"),l(6,"table",5),A(7,6),p(8,B_e,3,3,"th",7),p(9,W_e,4,5,"td",8),P(),p(10,q_e,1,0,"tr",9),p(11,Y_e,1,0,"tr",10),d()()()()()),2&n&&(c(6),f("dataSource",o.effectiveEvents),c(4),f("matHeaderRowDef",o.columnsToDisplay),c(1),f("matRowDefColumns",o.columnsToDisplay))},dependencies:[Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,le,_e,we],styles:[".mat-cell[_ngcontent-%COMP%], td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:0!important}.Fact[_ngcontent-%COMP%], .factTable[_ngcontent-%COMP%]{box-shadow:none!important}.Fact[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}.blue-title[_ngcontent-%COMP%]{background-color:#ee5418;font-weight:700}.mat-table[_ngcontent-%COMP%]{background:0 0}.mat-cell[_ngcontent-%COMP%]{margin:0!important;font-size:small!important}tr.mat-header-row[_ngcontent-%COMP%]{visibility:collapse}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:40px}.Fact[_ngcontent-%COMP%]{height:100%;direction:ltr;text-align:center}.Fact-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;background-color:#ee5418;color:#fff;height:10%;font-size:1.5em;border-radius:15px 0 0}.Fact-content[_ngcontent-%COMP%]{height:100%;padding-bottom:1em}.facts-adjuster[_ngcontent-%COMP%]{height:100%;overflow-y:scroll;padding:0 10px}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#5aa1c7}.table-container-fact[_ngcontent-%COMP%]{padding:8px 1em;height:100%}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}.formatedDate[_ngcontent-%COMP%]{display:inline-block}.img-div[_ngcontent-%COMP%]{width:15%;display:flex;justify-content:center;align-items:center}"]})}return t})(),Z_e=(()=>{class t{constructor(){this.Title="",this.Item1=0,this.Item2=0}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-event-stat-spinner"]],inputs:{Title:"Title",Item1:"Item1",Item2:"Item2"},standalone:!0,features:[Z],decls:14,vars:7,consts:[[1,"event-stat-spinner"],[1,"flex","fit",2,"position","relative"],["diameter","50","color","primary","mode","determinate",1,"spinner","spinner-left",2,"position","absolute",3,"value"],["diameter","50","strokeWidth","3","color","primary","mode","determinate","value","100",1,"spinner","spinner-background-left",2,"opacity","30%"],[1,"ItemText",2,"position","absolute","left","32.5%"],["diameter","50","color","primary","mode","determinate",1,"spinner","spinner-right",2,"position","absolute",3,"value"],["diameter","50","strokeWidth","3","color","primary","mode","determinate","value","100",1,"spinner","spinner-background-right",2,"opacity","30%"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),D(2,"mat-progress-spinner",2)(3,"mat-progress-spinner",3),l(4,"div",4),h(5),d()(),l(6,"div"),h(7),C(8,"translate"),d(),l(9,"div",1),D(10,"mat-progress-spinner",5)(11,"mat-progress-spinner",6),l(12,"div",4),h(13),d()()()),2&n&&(c(2),f("value",o.Item1),c(3),O(o.Item1?o.Item1:0),c(2),O(w(8,5,o.Title)),c(3),f("value",o.Item2),c(3),O(o.Item2?o.Item2:0))},dependencies:[je,Fe,_e,we],styles:[".event-stat-spinner[_ngcontent-%COMP%]{display:flex;margin-top:.2rem;margin-bottom:.2rem;flex-direction:row;text-align:center;align-items:center;justify-content:space-between}.flex[_ngcontent-%COMP%]{display:flex;margin-top:.2rem;margin-bottom:.2rem}.fit[_ngcontent-%COMP%]{text-align:center;align-items:center;justify-content:space-between}.progressMargin[_ngcontent-%COMP%]{margin:0 10px}.ItemText[_ngcontent-%COMP%]{width:25px}.spinner[_ngcontent-%COMP%]{margin:0 10px}"]})}return t})(),K_e=(()=>{class t{constructor(){this.Title="",this.Item1=0,this.Item2=0}calculateValue(e,n){return e&&n?100*e/(100*e+100*n)*100:0}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-event-stat-bar"]],inputs:{Title:"Title",Item1:"Item1",Item2:"Item2"},standalone:!0,features:[Z],decls:11,vars:7,consts:[[1,"fit"],[2,"margin","0px"],[1,"event-stat-bar",2,"position","relative"],[2,"width","7%"],["mode","determinate",1,"progressMargin","progress-bar-straight",3,"value"],["color","200","mode","determinate",1,"progressMargin","progress-bar-reverse",3,"value"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"p",1),h(2),C(3,"translate"),d(),l(4,"div",2)(5,"span",3),h(6),d(),D(7,"mat-progress-bar",4)(8,"mat-progress-bar",5),l(9,"span",3),h(10),d()()()),2&n&&(c(2),O(w(3,5,o.Title)),c(4),O(o.Item1?o.Item1:0),c(1),N("value",o.calculateValue(o.Item1,o.Item2)),c(1),N("value",o.calculateValue(o.Item2,o.Item1)),c(2),O(o.Item2?o.Item2:0))},dependencies:[AN,wie,_e,we],styles:[".flex[_ngcontent-%COMP%]{display:flex;margin-top:.2rem;margin-bottom:.2rem}.event-stat-bar[_ngcontent-%COMP%]{display:flex;margin-top:.2rem;margin-bottom:.2rem;flex-direction:row;width:100%;justify-content:space-between;text-align:center;align-items:center}.fit[_ngcontent-%COMP%]{width:100%;justify-content:space-between;text-align:center;align-items:center}.progressMargin[_ngcontent-%COMP%]{margin:0 10px}.progress-bar-reverse[_ngcontent-%COMP%]{position:absolute;transform:rotate(180deg);left:18.4px;width:82.2%}"]})}return t})(),X_e=(()=>{class t{constructor(e){this.translateService=e,this.ImgSrc="",this.Item1=0,this.Item2=0,this.ToolTip="",this.ImgWidth=12}getTranslation(){return this.translateService.instant(this.ToolTip)}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-statistics-scored-icon"]],inputs:{ImgSrc:"ImgSrc",Item1:"Item1",Item2:"Item2",ToolTip:"ToolTip",ImgWidth:"ImgWidth"},standalone:!0,features:[Z],decls:6,vars:5,consts:[[2,"margin","0px 4px",3,"src","width","matTooltip"]],template:function(n,o){1&n&&(l(0,"div")(1,"span"),h(2),d(),D(3,"img",0),l(4,"span"),h(5),d()()),2&n&&(c(2),O(o.Item1?o.Item1:0),c(1),f("src",o.ImgSrc,kt)("width",o.ImgWidth)("matTooltip",o.getTranslation()),c(2),O(o.Item2?o.Item2:0))},dependencies:[ki,mo]})}return t})();function J_e(t,i){if(1&t&&(l(0,"div",16)(1,"div",17),h(2),C(3,"translate"),d(),l(4,"div"),h(5),C(6,"translate"),d()()),2&t){const e=b(2);c(2),Ma("",w(3,6,"general_total_penalty_shootout")," : ",e.match&&e.match.matchInfo&&e.match.matchInfo.homeTotalShootout?e.match.matchInfo.homeTotalShootout:"0"," - ",e.match&&e.match.matchInfo&&e.match.matchInfo.awayTotalShootout?e.match.matchInfo.awayTotalShootout:"0"," "),c(3),Ma("",w(6,8,"general_goal_penalty_shootout")," : ",e.match&&e.match.matchInfo&&e.match.matchInfo.homeShootoutGoals?e.match.matchInfo.homeShootoutGoals:"0"," - ",e.match&&e.match.matchInfo&&e.match.matchInfo.awayShootoutGoals?e.match.matchInfo.awayShootoutGoals:"0"," ")}}function ege(t,i){if(1&t&&(l(0,"div"),p(1,J_e,7,10,"div",4),l(2,"div",5),D(3,"app-match-event-statistics-scored-icon",6)(4,"app-match-event-statistics-scored-icon",7)(5,"app-match-event-statistics-scored-icon",8),d(),l(6,"div",9),D(7,"app-match-event-statistics-scored-icon",10)(8,"app-match-event-statistics-scored-icon",11),l(9,"div",12)(10,"div",13),h(11),D(12,"img",14),C(13,"translate"),h(14),d()(),l(15,"div",12),D(16,"app-match-event-statistics-scored-icon",15),d()()()),2&t){const e=b();c(1),f("ngIf",e.match&&e.match.matchInfo&&e.match.matchInfo.goingToPenaltyShootout),c(2),f("Item1",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.homeYellowCards)("Item2",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.awayYellowCards)("ImgSrc",e.getAssetPath("card_yellow.svg")),c(1),f("Item1",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.homeSecondYellowCards)("Item2",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.awaySecondYellowCards)("ImgSrc",e.getAssetPath("card_yellow_red.svg")),c(1),f("Item1",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.homeRedCards)("Item2",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.awayRedCards)("ImgSrc",e.getAssetPath("card_red.svg")),c(2),f("Item1",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.homeCorners)("Item2",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.awayCorners)("ImgSrc",e.getAssetPath("corner_flag.webp")),c(1),f("Item1",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.homePenalties)("Item2",null==e.match||null==e.match.matchInfo?null:e.match.matchInfo.awayPenalties)("ImgSrc",e.getAssetPath("penalty.svg")),c(3),T(" ",null!=e.match.footballStat&&e.match.footballStat.homeSubsCount?+(null==e.match.footballStat?null:e.match.footballStat.homeSubsCount):"0"," "),c(1),N("matTooltip",w(13,23,"general_substitutions")),f("src",e.getAssetPath("substitution.png"),kt),c(2),T(" ",null!=e.match.footballStat&&e.match.footballStat.awaySubsCount?+(null==e.match.footballStat?null:e.match.footballStat.awaySubsCount):"0"," "),c(2),f("Item1",null==e.match.footballStat?null:e.match.footballStat.homePlayersCount)("Item2",null==e.match.footballStat?null:e.match.footballStat.awayPlayersCount)("ImgSrc",e.getAssetPath("players.svg"))}}function tge(t,i){if(1&t&&(l(0,"div")(1,"div",18),D(2,"app-event-stat-bar",19)(3,"app-event-stat-bar",20),d(),l(4,"div",18),D(5,"app-event-stat-bar",21)(6,"app-event-stat-bar",22),d(),l(7,"div",18),D(8,"app-event-stat-bar",23)(9,"app-event-stat-bar",24),d(),l(10,"div",18),D(11,"app-event-stat-bar",25)(12,"app-event-stat-bar",26),d(),l(13,"div",18),D(14,"app-event-stat-bar",27)(15,"app-event-stat-bar",28),d(),l(16,"div",18),D(17,"app-event-stat-bar",29)(18,"app-event-stat-bar",30),d(),l(19,"div",18),D(20,"app-event-stat-bar",31)(21,"app-event-stat-bar",32),d(),l(22,"div",18),D(23,"app-event-stat-bar",33)(24,"app-event-stat-bar",34),d(),l(25,"div",18),D(26,"app-event-stat-bar",35)(27,"app-event-stat-bar",36),d()()),2&t){const e=b();c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.firstQuarterHomeScore?null:e.match.matchInfo.firstQuarterHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.firstQuarterAwayScore?null:e.match.matchInfo.firstQuarterAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.firstQuarterHomeFouls?null:e.match.matchInfo.firstQuarterHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.firstQuarterAwayFouls?null:e.match.matchInfo.firstQuarterAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.secondQuarterHomeScore?null:e.match.matchInfo.secondQuarterHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.secondQuarterAwayScore?null:e.match.matchInfo.secondQuarterAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.secondQuarterHomeFouls?null:e.match.matchInfo.secondQuarterHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.secondQuarterAwayFouls?null:e.match.matchInfo.secondQuarterAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.thirdQuarterHomeScore?null:e.match.matchInfo.thirdQuarterHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.thirdQuarterAwayScore?null:e.match.matchInfo.thirdQuarterAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.thirdQuarterHomeFouls?null:e.match.matchInfo.thirdQuarterHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.thirdQuarterAwayFouls?null:e.match.matchInfo.thirdQuarterAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fourthQuarterHomeScore?null:e.match.matchInfo.fourthQuarterHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fourthQuarterAwayScore?null:e.match.matchInfo.fourthQuarterAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fourthQuarterHomeFouls?null:e.match.matchInfo.fourthQuarterHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fourthQuarterAwayFouls?null:e.match.matchInfo.fourthQuarterAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.firstOvertimeHomeScore?null:e.match.matchInfo.firstOvertimeHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.firstOvertimeAwayScore?null:e.match.matchInfo.firstOvertimeAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.firstOvertimeHomeFouls?null:e.match.matchInfo.firstOvertimeHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.firstOvertimeAwayFouls?null:e.match.matchInfo.firstOvertimeAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.secondOvertimeHomeScore?null:e.match.matchInfo.secondOvertimeHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.secondOvertimeAwayScore?null:e.match.matchInfo.secondOvertimeAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.secondOvertimeHomeFouls?null:e.match.matchInfo.secondOvertimeHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.secondOvertimeAwayFouls?null:e.match.matchInfo.secondOvertimeAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.thirdOvertimeHomeScore?null:e.match.matchInfo.thirdOvertimeHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.thirdOvertimeAwayScore?null:e.match.matchInfo.thirdOvertimeAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.thirdOvertimeHomeFouls?null:e.match.matchInfo.thirdOvertimeHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.thirdOvertimeAwayFouls?null:e.match.matchInfo.thirdOvertimeAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fourthOvertimeHomeScore?null:e.match.matchInfo.fourthOvertimeHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fourthOvertimeAwayScore?null:e.match.matchInfo.fourthOvertimeAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fourthOvertimeHomeFouls?null:e.match.matchInfo.fourthOvertimeHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fourthOvertimeAwayFouls?null:e.match.matchInfo.fourthOvertimeAwayFouls.toFixed(0)),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fifthOvertimeHomeScore?null:e.match.matchInfo.fifthOvertimeHomeScore.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fifthOvertimeAwayScore?null:e.match.matchInfo.fifthOvertimeAwayScore.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.fifthOvertimeHomeFouls?null:e.match.matchInfo.fifthOvertimeHomeFouls.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.fifthOvertimeAwayFouls?null:e.match.matchInfo.fifthOvertimeAwayFouls.toFixed(0))}}function nge(t,i){if(1&t&&(l(0,"div")(1,"div",37)(2,"div"),h(3),d(),l(4,"div"),h(5),C(6,"translate"),d(),l(7,"div"),h(8),d()(),l(9,"div",18),D(10,"app-event-stat-bar",38)(11,"app-event-stat-bar",39)(12,"app-event-stat-bar",40)(13,"app-event-stat-bar",41)(14,"app-event-stat-bar",42)(15,"app-event-stat-bar",43)(16,"app-event-stat-bar",44)(17,"app-event-stat-bar",45)(18,"app-event-stat-bar",46),d(),l(19,"div",18),D(20,"app-event-stat-spinner",47)(21,"app-event-stat-spinner",48)(22,"app-event-stat-spinner",49),d()()),2&t){const e=b();c(3),T("",null!=e.match.matchInfo&&e.match.matchInfo.homeActualPlayingTime?e.addZero(e.match.matchInfo.homeActualPlayingTime):"00:00"," "),c(2),T("",w(6,27,"Actual_Playing_Time")," "),c(3),T("",null!=e.match.matchInfo&&e.match.matchInfo.awayActualPlayingTime?e.addZero(e.match.matchInfo.awayActualPlayingTime):"00:00"," "),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.homePossession?null:e.match.matchInfo.homePossession.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.awayPossession?null:e.match.matchInfo.awayPossession.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeTotalAttempts),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayTotalAttempts),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeShotsOnTarget),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayShotsOnTarget),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeShotsOff),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayShotsOff),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeShotsWoodwork),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayShotsWoodwork),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeSaves),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awaySaves),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeThrowInsTotal),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayThrowInsTotal),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.homeFreeKicksTotal),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.awayFreeKicksTotal),c(1),N("Item1",null==e.match.matchInfo?null:e.match.matchInfo.awayFreeKicksOffside),N("Item2",null==e.match.matchInfo?null:e.match.matchInfo.homeFreeKicksOffside),c(2),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.homeShotAccuracy?null:e.match.matchInfo.homeShotAccuracy.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.awayShotAccuracy?null:e.match.matchInfo.awayShotAccuracy.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.homeChancesConversionRate?null:e.match.matchInfo.homeChancesConversionRate.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.awayChancesConversionRate?null:e.match.matchInfo.awayChancesConversionRate.toFixed(0)),c(1),N("Item1",null==e.match.matchInfo||null==e.match.matchInfo.homeChancesCreationEfficiency?null:e.match.matchInfo.homeChancesCreationEfficiency.toFixed(0)),N("Item2",null==e.match.matchInfo||null==e.match.matchInfo.awayChancesCreationEfficiency?null:e.match.matchInfo.awayChancesCreationEfficiency.toFixed(0))}}let ige=(()=>{class t{constructor(){}ngOnInit(){}addZero(e){if(e.includes(":")){let n=e.split(":");return`${n[0].length<=1?"0"+n[0]:n[0]}:${n[1].length<=1?"0"+n[1]:n[1]}`}return e}getAssetPath(e){return zg.assetBaseUrl+"images/"+e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-statistics"]],inputs:{match:"match"},standalone:!0,features:[Z],decls:6,vars:3,consts:[[1,"statistics-content"],[1,"statistics-content-head"],[4,"ngIf"],[1,"statistics-content-body"],["style","text-align: center; margin: 0.5em;",4,"ngIf"],[1,"statistics-content-head-1"],["ToolTip","general_cards_yellow","ImgWidth","13",1,"scored-icon",3,"Item1","Item2","ImgSrc"],["ToolTip","general_cards_yellow_2nd","ImgWidth","13",1,"scored-icon",3,"Item1","Item2","ImgSrc"],["ToolTip","general_cards_red","ImgWidth","13",1,"scored-icon",3,"Item1","Item2","ImgSrc"],[1,"statistics-content-head-2"],["ToolTip","general_corners","ImgWidth","25",1,"scored-icon",3,"Item1","Item2","ImgSrc"],["ToolTip","general_penalties","ImgWidth","25",1,"scored-icon",3,"Item1","Item2","ImgSrc"],[1,"scored-icon"],[2,"margin-top","0","margin-bottom","0"],["width","25px",2,"margin","0px 4px","object-fit","contain",3,"matTooltip","src"],["ToolTip","general_players_count","ImgWidth","25",3,"Item1","Item2","ImgSrc"],[2,"text-align","center","margin","0.5em"],[2,"margin","0.5em"],[2,"margin-top","1em"],["Title","First Quarter Score",3,"Item1","Item2"],["Title","First Quarter Fouls",3,"Item1","Item2"],["Title","Second Quarter Score",3,"Item1","Item2"],["Title","Second Quarter Fouls",3,"Item1","Item2"],["Title","Third Quarter Score",3,"Item1","Item2"],["Title","Third Quarter Fouls",3,"Item1","Item2"],["Title","Fourth Quarter Score",3,"Item1","Item2"],["Title","Fourth Quarter Fouls",3,"Item1","Item2"],["Title","First Overtime Score",3,"Item1","Item2"],["Title","First Overtime Fouls",3,"Item1","Item2"],["Title","Second Overtime Score",3,"Item1","Item2"],["Title","Second Overtime Fouls",3,"Item1","Item2"],["Title","Third Overtime Score",3,"Item1","Item2"],["Title","Third Overtime Fouls",3,"Item1","Item2"],["Title","Fourth Overtime Score",3,"Item1","Item2"],["Title","Fourth Overtime Fouls",3,"Item1","Item2"],["Title","Fifth Overtime Score",3,"Item1","Item2"],["Title","Fifth Overtime Fouls",3,"Item1","Item2"],[1,"playing-time"],["Title","Possession",3,"Item1","Item2"],["Title","Total_Attempts",3,"Item1","Item2"],["Title","Shots_On_Target",3,"Item1","Item2"],["Title","Shots_Off",3,"Item1","Item2"],["Title","Shots_Woodwork",3,"Item1","Item2"],["Title","Saves",3,"Item1","Item2"],["Title","Throw_Ins",3,"Item1","Item2"],["Title","Free_Kicks",3,"Item1","Item2"],["Title","Offsides",3,"Item1","Item2"],["Title","Shot_Accuracy",3,"Item1","Item2"],["Title","Chances_Conversion_Rate",3,"Item1","Item2"],["Title","Chances_Creation_Efficiency",3,"Item1","Item2"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,ege,17,25,"div",2),d(),l(3,"div",3),p(4,tge,28,36,"div",2),p(5,nge,23,29,"div",2),d()()),2&n&&(c(2),f("ngIf","Football"==(null==o.match.sport?null:o.match.sport.name)),c(2),f("ngIf","Basketball"==(null==o.match.sport?null:o.match.sport.name)),c(1),f("ngIf","Football"==(null==o.match.sport?null:o.match.sport.name)))},dependencies:[ce,le,X_e,ki,mo,K_e,Z_e,_e,we],styles:[".playing-time[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%;justify-content:space-between;text-align:center;align-items:center}.progressMargin[_ngcontent-%COMP%]{margin:0 10px}.full-width[_ngcontent-%COMP%]{width:100%}.vertical-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:1em}.statistics-content-head-1[_ngcontent-%COMP%]{display:flex;flex:1;flex-direction:row;justify-content:space-around;align-items:center;width:100%;height:2.5em}.statistics-content-head-2[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;align-items:center;width:100%;height:2em}.scored-icon[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.statistics[_ngcontent-%COMP%]{box-shadow:none!important;background-color:#faf2ed;height:100%}.statistics-title[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;background-color:#ee5418;color:#fff;height:10%;font-size:1.5em;border-radius:0 15px 0 0}.statistics-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:15px}.statistics-content-head[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content;background-color:#fff;border-radius:15px 15px 0 0;padding-bottom:.5em;border-bottom:2px solid darkgrey}.statistics-content-body[_ngcontent-%COMP%]{padding:1em 1em 0;height:100%;overflow-y:scroll}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#5aa1c7}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}"]})}return t})();const oge=function(t,i){return{width:t,height:i}};function sge(t,i){if(1&t&&(l(0,"span"),D(1,"img",1)(2,"span"),d()),2&t){const e=b();c(1),f("ngStyle",al(3,oge,e.width,e.height))("src",e.imageSrc,kt)("alt",e.altText)}}let qw=(()=>{class t{constructor(e){this.http=e,this.imageUrl="",this.altText="",this.width="50px",this.height="50px",this.imageSrc=""}ngOnInit(){let e=null;this.imageUrl.includes(v.apiURLs.rootURL)&&(e={params:{userId:v.userId,token:v.token}}),this.http.get(this.imageUrl,{responseType:"blob",...e}).subscribe(n=>{if("text/html"!=n.type){const o=new FileReader;o.readAsDataURL(n),o.onloadend=()=>{this.imageSrc=o.result?.toString()??""}}},n=>{console.log(n)})}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-image-preview"]],inputs:{imageUrl:"imageUrl",altText:"altText",width:"width",height:"height"},standalone:!0,features:[Z],decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngStyle","src","alt"]],template:function(n,o){1&n&&p(0,sge,3,6,"span",0),2&n&&f("ngIf",o.imageSrc)},dependencies:[ce,le,pr],styles:["img[_ngcontent-%COMP%]{object-fit:contain}"]})}return t})();function age(t,i){if(1&t&&(l(0,"div"),D(1,"app-image-preview",4),d()),2&t){const e=b();c(1),N("imageUrl",e.Team.club.logo)}}function rge(t,i){if(1&t&&(l(0,"div"),D(1,"app-image-preview",4),d()),2&t){const e=b();c(1),N("imageUrl",e.Placeholder)}}let lge=(()=>{class t{constructor(e){this.nameTranslationHandlerService=e}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ql))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-event-team-logo"]],inputs:{Team:"Team",Placeholder:"Placeholder",teamNameColor:"teamNameColor"},standalone:!0,features:[Z],decls:6,vars:5,consts:[[1,"Team-Logo"],[2,"margin-bottom","5%"],[4,"ngIf"],[2,"justify-content","center","font-size","110%"],["width","6.5em","height","6.5em",3,"imageUrl"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,age,2,1,"div",2),p(3,rge,2,1,"div",2),d(),l(4,"div",3),h(5),d()()),2&n&&(c(2),f("ngIf",null==o.Team||null==o.Team.club?null:o.Team.club.logo),c(1),f("ngIf",!(null!=o.Team&&null!=o.Team.club&&o.Team.club.logo)),c(1),it("color",o.teamNameColor),c(1),T(" ",null!=o.Team&&o.Team.name?o.nameTranslationHandlerService.getTranslatedName(o.Team):"Team",""))},dependencies:[ce,le,qw],styles:[".Team-Logo[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:500}.Team-Logo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:100%;text-align:center}.Team-Logo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{padding-bottom:0rem}.Team-Logo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{height:100%}img[_ngcontent-%COMP%]{display:block;object-fit:contain;width:6.5em;height:6.5em}"]})}return t})();function qg(t,i,e){let n={};return t.basketballStat&&(n=Object.assign(n,t.basketballStat),n.PeriodLength=t.basketballStat.periodLength,t.basketballStat.firstQuarterStartTime&&(n.isMatchStarted=!0),t.basketballStat.firstQuarterEndTime&&(n.isFirstQuarterFinished=!0),t.basketballStat.secondQuarterStartTime&&(n.isSecondQuarterStarted=!0),t.basketballStat.secondQuarterEndTime&&(n.isSecondQuarterFinished=!0),t.basketballStat.thirdQuarterStartTime&&(n.isThirdQuarterStarted=!0),t.basketballStat.thirdQuarterEndTime&&(n.isThirdQuarterFinished=!0),t.basketballStat.fourthQuarterStartTime&&(n.isFourthQuarterStarted=!0),t.basketballStat.fourthQuarterEndTime&&(n.isFourthQuarterFinished=!0),t.basketballStat.firstOvertimeStartTime&&(n.isFirstOvertimeStarted=!0),t.basketballStat.firstOvertimeEndTime&&(n.isFirstOvertimeFinished=!0),t.basketballStat.secondOvertimeStartTime&&(n.isSecondOvertimeStarted=!0),t.basketballStat.secondOvertimeEndTime&&(n.isSecondOvertimeFinished=!0),t.basketballStat.thirdOvertimeStartTime&&(n.isThirdOvertimeStarted=!0),t.basketballStat.thirdOvertimeEndTime&&(n.isThirdOvertimeFinished=!0),t.basketballStat.fourthOvertimeStartTime&&(n.isFourthOvertimeStarted=!0),t.basketballStat.fourthOvertimeEndTime&&(n.isFourthOvertimeFinished=!0),t.basketballStat.fifthOvertimeStartTime&&(n.isFifthOvertimeStarted=!0),t.basketballStat.fifthOvertimeEndTime&&(n.isFifthOvertimeFinished=!0),(!t.basketballStat.firstQuarterStartTime||t.basketballStat.firstQuarterStartTime&&t.basketballStat.firstQuarterEndTime&&!t.basketballStat.secondQuarterStartTime||t.basketballStat.firstQuarterStartTime&&t.basketballStat.firstQuarterEndTime&&t.basketballStat.secondQuarterStartTime&&t.basketballStat.secondQuarterEndTime&&!t.basketballStat.thirdQuarterStartTime||t.basketballStat.firstQuarterStartTime&&t.basketballStat.firstQuarterEndTime&&t.basketballStat.secondQuarterStartTime&&t.basketballStat.secondQuarterEndTime&&t.basketballStat.thirdQuarterStartTime&&t.basketballStat.thirdQuarterEndTime&&!t.basketballStat.fourthQuarterStartTime)&&(n.allowChangingQuarterStatus=!0),n.homeSubsCount=t.basketballStat.homeSubsCount,n.awaySubsCount=t.basketballStat.awaySubsCount,n.playersOnCourt=t.basketballStat.playersOnCourt?Ns.PlayersInside.id:Ns.PlayersOutSide.id,n.homePlayersCount=5,n.awayPlayersCount=5,n.homePrimaryColor=t.homeColorPrimary,n.homeSecondaryColor=t.homeColorSecondary,n.awayPrimaryColor=t.awayColorPrimary,n.awaySecondaryColor=t.awayColorSecondary,n.homeTeamName=t.homeTeam?.name||"",n.awayTeamName=t.awayTeam?.name||"",n.homeTeamNameShort=t.homeTeam?.shortName||"",n.awayTeamNameShort=t.awayTeam?.shortName||"",n.reporterInsideVenue=t.reporterInsideVenue?Ns.ReporterInside.id:Ns.ReporterOutside.id,n.attendance=t.attendance),n.lastEvents=NF(i),n}function Yg(t,i,e){let n={};if(t.footballStat&&(n=Object.assign(n,t.footballStat),t.footballStat?.reporterStartTime&&(n.isMatchStarted=!0),t.footballStat?.reporterEnd1stTime&&(n.isFirstHalfFinished=!0),t.footballStat?.reporterStart2ndTime&&(n.isSecondHalfStarted=!0),t.footballStat?.reporterEnd2ndTime&&(n.isSecondHalfFinished=!0),t.footballStat?.reporterStart1stExtraTime&&(n.isFirstExtraHalfStarted=!0),t.footballStat?.reporterEnd1stExtraTime&&(n.isFirstExtraHalfFinished=!0),t.footballStat?.reporterStart2ndExtraTime&&(n.isSecondExtraHalfStarted=!0),t.footballStat?.reporterEnd2ndExtraTime&&(n.isSecondExtraHalfFinished=!0),(!t.footballStat?.reporterStartTime||t.footballStat?.reporterStartTime&&t.footballStat?.reporterEnd1stTime&&!t.footballStat?.reporterStart2ndTime||t.footballStat?.reporterStartTime&&t.footballStat?.reporterEnd1stTime&&t.footballStat?.reporterStart2ndTime&&t.footballStat?.reporterEnd2ndTime&&!t.footballStat?.reporterStart1stExtraTime||t.footballStat?.reporterStartTime&&t.footballStat?.reporterEnd1stTime&&t.footballStat?.reporterStart2ndTime&&t.footballStat?.reporterEnd2ndTime&&t.footballStat?.reporterStart1stExtraTime&&t.footballStat?.reporterEnd1stExtraTime&&!t.footballStat?.reporterStart2ndExtraTime)&&(n.allowChangingHalfStatus=!0),t.homeTeam?.club&&(n.homeTeamName=t.homeTeam.name,n.homeTeamNameShort=t.homeTeam.club.shortName),t.awayTeam?.club&&(n.awayTeamName=t.awayTeam.name,n.awayTeamNameShort=t.awayTeam.club.shortName),n.playersOnField=t.footballStat?.playersOnField?Ns.PlayersInside.id:Ns.PlayersOutSide.id,n.reporterInsideVenue=t.reporterInsideVenue?Ns.ReporterInside.id:Ns.ReporterOutside.id,t.weatherCondition===Ip.Sun?n.weatherCondition=Ht.WeatherSun.id:t.weatherCondition===Ip.Cloud?n.weatherCondition=Ht.WeatherCloud.id:t.weatherCondition===Ip.Rain?n.weatherCondition=Ht.WeatherRain.id:t.weatherCondition===Ip.Snow&&(n.weatherCondition=Ht.WeatherSnow.id),t.pitchCondition===jw.Good?n.pitchCondition=Ht.PitchGood.id:t.weatherCondition===jw.Bad&&(n.pitchCondition=Ht.PitchBad.id),n.homeThrowInsTotal=t.footballStat.homeThrowInsSafe+t.footballStat.homeThrowInsAttack+t.footballStat.homeThrowInsDanger,n.awayThrowInsTotal=t.footballStat.awayThrowInsSafe+t.footballStat.awayThrowInsAttack+t.footballStat.awayThrowInsDanger,n.homeShotsOnTarget=t.footballStat.homeShotsOn+t.footballStat.homeGoals,n.awayShotsOnTarget=t.footballStat.awayShotsOn+t.footballStat.awayGoals,n.homeFreeKicksTotal=t.footballStat.homeFreeKicksAttack+t.footballStat.homeFreeKicksDanger+t.footballStat.homeFreeKicksSafe,n.awayFreeKicksTotal=t.footballStat.awayFreeKicksAttack+t.footballStat.awayFreeKicksDanger+t.footballStat.awayFreeKicksSafe,t.matchFinished&&(n.matchEnded=!0),t.footballStat?.goingToExtraTime&&(n.matchGoingExtra=!0),t.footballStat?.goingToPenaltyShootout&&(n.matchGoingPenalties=!0),n.homePlayersCount-=n.homeRedCards,n.homePlayersCount-=n.homeSecondYellowCards,n.awayPlayersCount-=n.awayRedCards,n.awayPlayersCount-=n.awaySecondYellowCards),e){let o=i.slice(i.length>=10?i.length-10:0,i.length);n.lastEvents=NF(o)}return n}class cge{constructor(){this.id=null,this.match=null,this.user=null,this.reportingMistake=null,this.comment="",this.createdBy=null,this.status="pending"}}function dge(t,i){if(1&t&&(l(0,"mat-option",14),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(null==e?null:e.name)}}function uge(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),p(9,dge,2,2,"mat-option",8),d()(),l(10,"mat-form-field",5),D(11,"input",9,10),C(13,"translate"),l(14,"mat-hint",11),h(15),d()(),D(16,"mat-divider"),l(17,"p")(18,"button",12),h(19),C(20,"translate"),d(),h(21," \xa0"),l(22,"button",13),M("click",function(){return E(e),I(b().onNoClick())}),h(23),C(24,"translate"),d()()()()()}if(2&t){const e=X(12),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,12,"general_reporting_mistake")),f("compareWith",n.compareFn),c(3),f("ngForOf",n.reportingMistakes),c(2),N("placeholder",w(13,14,"general_comment")),J("maxlength",255),c(4),We("",null==e||null==e.value?null:e.value.length," / ",255,""),c(3),f("disabled",n.options.invalid),c(1),O(w(20,16,"general_save")),c(4),O(w(24,18,"general_close"))}}function hge(t,i){1&t&&(l(0,"div",15),D(1,"mat-spinner",16),d())}function pge(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",17),h(2,"done"),d()())}function mge(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",18),h(2,"clear"),d()())}let fge=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.qualityIncident=null,this.reportingMistakes=[]}ngOnInit(){this.onProgress=0,this.qualityIncident=new cge,this.options=this.fb.group({reportingMistake:[this.qualityIncident.reportingMistake,ue.required],comment:[this.qualityIncident.comment]}),this.service=new Q(v.apiURLs.rootURL+"reporting-mistake",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{"football"==this.entity?.sport?.name.toLowerCase()?this.reportingMistakes=e.filter(n=>"football"==n.sport.name.toLowerCase()):"basketball"==this.entity?.sport?.name.toLowerCase()&&(this.reportingMistakes=e.filter(n=>"basketball"==n.sport.name.toLowerCase()))})}get title(){return this.translateService.instant(null==this.entity.id?"reporting_mistake_add_new":"reporting_mistake_edit")}get qualityincidentLimit(){return 255}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,this.service=new Q(v.apiURLs.rootURL+"quality-incident",this.http),this.qualityIncident.match={id:this.entity.id},this.qualityIncident.createdBy={id:v.userId},this.qualityIncident.user={id:this.entity.assignedReporter.id},this.qualityIncident.status="pending",this.qualityIncident.comment=this.options.value.comment,this.qualityIncident.reportingMistake={id:this.options.value.reportingMistake.id};const e=this;null!=this.qualityIncident?.id&&0!==this.qualityIncident.id?this.service.update(this.qualityIncident).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.qualityIncident).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-quality-incident-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","reportingMistake","name","reportingMistake",3,"compareWith","placeholder"],["reportingMistake",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","comment","comment","comment","matInput","",3,"placeholder"],["comment",""],["align","end"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,uge,25,20,"div",0),p(1,hge,2,0,"div",1),p(2,pge,3,0,"div",1),p(3,mge,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,vt,Cn,on,gt,Ni,Tn,Ft,ut,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),_ge=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-quality-incident-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-quality-incident-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,fge]})}return t})();function gge(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function bge(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function vge(t,i){1&t&&(l(0,"th",19),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_reporting_mistake"),""))}function yge(t,i){if(1&t&&(l(0,"td",20),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",null==e.reportingMistake?null:e.reportingMistake.name,"")}}function Cge(t,i){1&t&&(l(0,"th",19),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_comment")))}function wge(t,i){if(1&t&&(l(0,"td",20),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.comment,"")}}function Sge(t,i){1&t&&(l(0,"th",19),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Tge(t,i){if(1&t){const e=F();l(0,"td",20)(1,"span")(2,"button",21),M("click",function(){const s=E(e).$implicit;return I(b().openDeleteDialog(s))}),l(3,"mat-icon",22),h(4,"delete"),d()()()()}}function Dge(t,i){1&t&&(l(0,"th",19),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_status")))}function Mge(t,i){if(1&t){const e=F();l(0,"td",20)(1,"button",24),D(2,"img",25),d(),l(3,"mat-menu",null,26)(5,"button",27),M("click",function(){const s=E(e).$implicit;return I(b(2).changeIncidentStatus(s,"validated"))}),D(6,"img",28),l(7,"span"),h(8,"Validated"),d()(),l(9,"button",27),M("click",function(){const s=E(e).$implicit;return I(b(2).changeIncidentStatus(s,"dismissed"))}),D(10,"img",29),l(11,"span"),h(12,"Dismissed"),d()(),l(13,"button",27),M("click",function(){const s=E(e).$implicit;return I(b(2).changeIncidentStatus(s,"pending"))}),D(14,"img",30),l(15,"span"),h(16,"Pending"),d()()()()}if(2&t){const e=i.$implicit,n=X(4),o=b(2);c(1),f("matMenuTriggerFor",n),c(1),f("src","assets/images/qi/"+o.getStatusIcon(e.status)+".png",kt)}}function xge(t,i){1&t&&(A(0,23),p(1,Dge,3,3,"th",9),p(2,Mge,17,2,"td",10),P())}function Ege(t,i){1&t&&D(0,"tr",31)}function Ige(t,i){1&t&&D(0,"tr",32)}let Oge=(()=>{class t{constructor(e,n,o,s,a){this.usersService=e,this.nameTranslationHandlerService=n,this.snackBar=o,this.http=s,this.updateDialog=a,this.columnsToDisplay=[],this.qualityIncidents=[]}ngOnInit(){this.refreshQI(),this.columnsToDisplay=this.usersService.isModerator?["id","reportingMistake","comment","delete"]:["id","reportingMistake","comment","delete","status"]}openEditDialog(){const e=this.updateDialog.open(_ge,{width:"50%",data:this.match});e.componentInstance.dialogRef=e,e.afterClosed().subscribe(()=>this.ngOnInit())}getStatusIcon(e){return"pending"==e?"pending":"dismissed"==e?"dismissed":"validated"==e?"validated":"pending"}refreshQI(){this.service=new Q(v.apiURLs.rootURL+"quality-incident",this.http),this.service.get(this.match.id,v.userId,v.token).subscribe(e=>{this.qualityIncidents=this.usersService.isReporter||this.usersService.isCountryManager?e.filter(n=>"validated"===n.status):e})}changeIncidentStatus(e,n){if(this.service=new Q(v.apiURLs.rootURL+"quality-incident",this.http),null!=e){const o=this.updateDialog.open(en,{data:{title:"Are you sure you want to change the incident status?",content:e.reportingMistake?.name,refId:e.id}});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{!0===s&&this.service.put({...e,status:n,match:{id:this.match.id},createdBy:{id:v.userId},reportingMistake:{id:e.reportingMistake?.id},user:{id:e.user?.id}}).subscribe(a=>{a.Result===v.apiSuccessMsg&&this.snackBar.open("Entity Updated","",{duration:v.snackBarDuration}),this.ngOnInit()})})}}showStatus(){return!(!this.usersService.isAdmin&&!this.usersService.isQualityManager)}openDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"quality-incident",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.reportingMistake?.name,refId:e.id}});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(o=>{!0===o&&this.service.delete(e.id,{matchId:this.match?.id}).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())})})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(ds),_(Ql),_(Sn),_(Ee),_(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-quality-contents-quality-incidents"]],inputs:{match:"match"},standalone:!0,features:[Z],decls:24,vars:5,consts:[[2,"font-family","Montserrat, sans-serif"],[2,"height","20em","overflow-y","scroll"],[2,"display","flex","justify-content","center","align-content","center"],["mat-button","",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","id",2,"padding","1em !important"],["mat-header-cell","","style","padding: 1em !important; text-align: center;",4,"matHeaderCellDef"],["mat-cell","","style","padding: 1em !important; text-align: center;",4,"matCellDef"],["matColumnDef","reportingMistake"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","comment"],["matColumnDef","delete"],["matColumnDef","status",4,"ngIf"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-icon-button","",2,"font-size","x-large","border","none",3,"disabled","click"],["mat-header-cell","",2,"padding","1em !important","text-align","center"],["mat-cell","",2,"padding","1em !important","text-align","center"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],[1,"mat-24"],["matColumnDef","status"],["mat-icon-button","","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["height","24","alt","row.status",3,"src"],["menu","matMenu"],["mat-menu-item","",3,"click"],["src","assets/images/qi/validated.png","height","32","alt","pending",2,"margin-right","16px","vertical-align","middle"],["src","assets/images/qi/dismissed.png","height","32","alt","pending",2,"margin-right","16px","vertical-align","middle"],["src","assets/images/qi/pending.png","height","32","alt","pending",2,"margin-right","16px","vertical-align","middle"],["mat-header-row",""],["mat-row",""]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),M("click",function(){return o.refreshQI()}),h(4,"Refresh"),d()(),l(5,"table",4),A(6,5),p(7,gge,3,3,"th",6),p(8,bge,2,1,"td",7),P(),A(9,8),p(10,vge,3,3,"th",9),p(11,yge,2,1,"td",10),P(),A(12,11),p(13,Cge,3,3,"th",9),p(14,wge,2,1,"td",10),P(),A(15,12),p(16,Sge,3,3,"th",9),p(17,Tge,5,0,"td",10),P(),p(18,xge,3,0,"ng-container",13),p(19,Ege,1,0,"tr",14),p(20,Ige,1,0,"tr",15),d()(),l(21,"div",2)(22,"button",16),M("click",function(){return o.openEditDialog()}),h(23,"+ "),d()()()),2&n&&(c(5),f("dataSource",o.qualityIncidents),c(13),f("ngIf",o.showStatus()),c(1),f("matHeaderRowDef",o.columnsToDisplay),c(1),f("matRowDefColumns",o.columnsToDisplay),c(2),f("disabled",!o.match.assignedReporter))},dependencies:[Ne,Re,Rl,F_,Ol,Qh,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,ki,Me,Oe,ce,le,_e,we],styles:[".mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}"]})}return t})();function Rge(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2),d(),h(3),d()),2&t){const e=i.$implicit;c(2),T("",null==e?null:e.name,":"),c(1),T(" ",null==e?null:e.value," ")}}function kge(t,i){if(1&t&&(l(0,"div"),p(1,Rge,4,2,"div",4),d()),2&t){const e=b(2);c(1),f("ngForOf",null==e.match||null==e.match.assignedReporter?null:e.match.assignedReporter.contactDetails)}}function Age(t,i){if(1&t&&(l(0,"div")(1,"h5"),h(2,"Assigned Reporter"),d(),l(3,"div"),h(4),d(),p(5,kge,2,1,"div",2),d()),2&t){const e=b();c(4),We(" ",null==e.match||null==e.match.assignedReporter?null:e.match.assignedReporter.firstName," ",null==e.match||null==e.match.assignedReporter?null:e.match.assignedReporter.lastName," "),c(1),f("ngIf",(null==e.match||null==e.match.assignedReporter||null==e.match.assignedReporter.contactDetails?null:e.match.assignedReporter.contactDetails.length)>0)}}function Pge(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2),d(),h(3),d()),2&t){const e=i.$implicit;c(2),T("",null==e?null:e.name,":"),c(1),T(" ",null==e?null:e.value," ")}}function Nge(t,i){if(1&t&&(l(0,"div"),p(1,Pge,4,2,"div",4),d()),2&t){const e=b().$implicit;c(1),f("ngForOf",null==e?null:e.contactDetails)}}function Fge(t,i){if(1&t&&(l(0,"div")(1,"div"),h(2),d(),p(3,Nge,2,1,"div",2),D(4,"br"),d()),2&t){const e=i.$implicit;c(2),We("",null==e?null:e.firstName," ",null==e?null:e.lastName,""),c(1),f("ngIf",(null==e||null==e.contactDetails?null:e.contactDetails.length)>0)}}function Lge(t,i){if(1&t&&(l(0,"div",5)(1,"h5"),h(2,"Assigned Moderators"),d(),p(3,Fge,5,3,"div",4),d()),2&t){const e=b();c(3),f("ngForOf",e.match.assignedModerators)}}let Bge=(()=>{class t{constructor(e,n){this.NameTranslationHandlerService=e,this.http=n}ngOnInit(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ql),_(Ee))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-quality-contents-reporter"]],inputs:{match:"match"},standalone:!0,features:[Z],decls:4,vars:2,consts:[[2,"padding","15px","font-size","medium"],[2,"font-family","Montserrat, sans-serif","height","16em","overflow-y","scroll"],[4,"ngIf"],["style","margin-top: 2em;",4,"ngIf"],[4,"ngFor","ngForOf"],[2,"margin-top","2em"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,Age,6,3,"div",2),p(3,Lge,4,1,"div",3),d()()),2&n&&(c(2),f("ngIf",null==o.match?null:o.match.assignedReporter),c(1),f("ngIf",(null==o.match||null==o.match.assignedModerators?null:o.match.assignedModerators.length)>0))},dependencies:[ki,Me,ce,qe,le,_e],styles:[".mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:#fff!important;justify-content:center;margin-right:0;font-size:1.4rem}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{position:absolute;margin-right:0;color:#fff!important;left:90%;top:25%}","div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n        margin: 0.5em 0em;\n    }"]})}return t})();function Vge(t,i){if(1&t&&(l(0,"div",8),D(1,"app-quality-contents-reporter",9),d()),2&t){const e=b(2);c(1),f("match",e.match)}}function Hge(t,i){if(1&t&&(l(0,"div",8),D(1,"app-quality-contents-quality-incidents",9),d()),2&t){const e=b(2);c(1),f("match",e.match)}}function Uge(t,i){if(1&t){const e=F();l(0,"span")(1,"div",1)(2,"mat-button-toggle-group",2,3),M("change",function(){E(e);const o=X(3);return I(b().onToggle(o.value))}),l(4,"mat-button-toggle",4)(5,"mat-icon"),h(6,"person"),d()(),l(7,"mat-button-toggle",5)(8,"mat-icon"),h(9,"article"),d()()(),l(10,"div",6),p(11,Vge,2,1,"div",7),p(12,Hge,2,1,"div",7),d()()()}if(2&t){const e=b();c(11),f("ngIf","reporter"==e.selectedVal),c(1),f("ngIf","quality_incident"==e.selectedVal)}}let $ge=(()=>{class t{constructor(){this.selectedVal="reporter"}ngOnChanges(){}onToggle(e){this.selectedVal=e}static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-events-quality"]],inputs:{match:"match"},standalone:!0,features:[fe,Z],decls:1,vars:1,consts:[[4,"ngIf"],[2,"display","inline"],["name","fontStyle","aria-label","Font Style",1,"toggle_grp",3,"change"],["group","matButtonToggleGroup"],["value","reporter",1,"toggle_btn"],["value","quality_incident",1,"toggle_btn"],[1,"toggle_container"],["class","toggle_container_item",4,"ngIf"],[1,"toggle_container_item"],[3,"match"]],template:function(n,o){1&n&&p(0,Uge,13,2,"span",0),2&n&&f("ngIf",o.match)},dependencies:[ce,le,Jt,Me,Oe,uw,cw,dw,_e,Bge,Oge],styles:[".toggle_btn[_ngcontent-%COMP%]{width:100%}.toggle_grp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:10%;align-items:center;border:none;border-radius:16px 16px 0 0/16px 16px 0px 0px;text-align:center!important}.toggle_container[_ngcontent-%COMP%]{width:100%;border-radius:20px}.toggle_container_item[_ngcontent-%COMP%]{display:block;height:100%}"]})}return t})();function jge(t,i){if(1&t&&(l(0,"div",10)(1,"span",11),h(2),d(),l(3,"span",12),h(4," | "),d(),l(5,"span",11),h(6),d()()),2&t){const e=b(2);c(2),T(" ",null!=e.match&&e.match.matchInfo?e.match.matchInfo.homeGoals:"0"," "),c(4),T(" ",null!=e.match&&e.match.matchInfo?e.match.matchInfo.awayGoals:"0"," ")}}function Gge(t,i){if(1&t&&(l(0,"div",10)(1,"span",11),h(2),d(),l(3,"span",12),h(4," | "),d(),l(5,"span",11),h(6),d()()),2&t){const e=b(2);c(2),T(" ",null!=e.match&&e.match.matchInfo?e.match.matchInfo.homeScore:"0"," "),c(4),T(" ",null!=e.match&&e.match.matchInfo?e.match.matchInfo.awayScore:"0"," ")}}function zge(t,i){if(1&t&&(l(0,"div",13),h(1," Starting In "),l(2,"span",14),h(3),d()()),2&t){const e=b(2);it("color","multi"==e.currentScreenRouter()?"black":"white"),c(3),T("",e.matchStartingInMinutes()," Mins")}}function Wge(t,i){1&t&&(l(0,"div",15),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_reporter_offline")," "))}function qge(t,i){if(1&t&&(l(0,"div",4),D(1,"app-match-event-team-logo",5),l(2,"div",6),p(3,jge,7,2,"div",7),p(4,Gge,7,2,"div",7),p(5,zge,4,3,"div",8),p(6,Wge,3,3,"div",9),d(),D(7,"app-match-event-team-logo",5),d()),2&t){const e=b();c(1),f("Team",null==e.match?null:e.match.homeTeam)("Placeholder",e.getAssetPath("Placeholder-Home.webp"))("teamNameColor",e.teamNameColor),c(2),f("ngIf","Football"==(null==e.match||null==e.match.sport?null:e.match.sport.name)),c(1),f("ngIf","Basketball"==(null==e.match||null==e.match.sport?null:e.match.sport.name)),c(1),f("ngIf",e.matchStartingInMinutes()>0),c(1),f("ngIf",e.match&&!e.match.matchFinished&&e.match.isReporterOffline),c(1),f("Team",null==e.match?null:e.match.awayTeam)("Placeholder",e.getAssetPath("Placeholder-Away.webp"))("teamNameColor",e.teamNameColor)}}function Yge(t,i){1&t&&(l(0,"th",32),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function Qge(t,i){if(1&t&&(l(0,"td",33),h(1),D(2,"br"),h(3),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),T(" ",e.id,""),c(2),O(n.rowClass(e,!0))}}function Zge(t,i){1&t&&(l(0,"th",32),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function Kge(t,i){if(1&t&&(l(0,"td",33),h(1),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),T(" ",n.getformatedDate(e.timeServer)," ")}}function Xge(t,i){1&t&&(l(0,"th",32),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time_match")," "))}function Jge(t,i){if(1&t&&(l(0,"td",34),h(1),d()),2&t){const e=i.$implicit;Ln(b(3).rowClassExtra(e)),c(1),T(" ",e.timeMatch," ")}}function e1e(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_event")," "))}function t1e(t,i){if(1&t&&(l(0,"td",33),h(1),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),it("text-align",e.team?"H"===e.team?"left":"right":"center"),c(1),T(" ",n.getEvent(e)," ")}}function n1e(t,i){1&t&&D(0,"tr",36)}function i1e(t,i){1&t&&D(0,"tr",37)}function o1e(t,i){if(1&t&&(l(0,"table",20),A(1,21),p(2,Yge,3,3,"th",22),p(3,Qge,4,4,"td",23),P(),A(4,24),p(5,Zge,3,3,"th",22),p(6,Kge,2,3,"td",23),P(),A(7,25),p(8,Xge,3,3,"th",22),p(9,Jge,2,3,"td",26),P(),A(10,27),p(11,e1e,3,3,"th",28),p(12,t1e,2,5,"td",29),P(),p(13,n1e,1,0,"tr",30),p(14,i1e,1,0,"tr",31),d()),2&t){const e=b(2);f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay)("matHeaderRowDefSticky",!0),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function s1e(t,i){if(1&t&&(l(0,"div",16)(1,"div",17)(2,"div",18),p(3,o1e,15,4,"table",19),d()()()),2&t){const e=b();it("height",e.eventsSectionResponsive),c(1),Ln(e.blinkingTable?"glowTable":""),c(2),f("ngIf",0==e.onProgress)}}function a1e(t,i){if(1&t&&(l(0,"div",16)(1,"div",38)(2,"div",39)(3,"div",14),h(4,"Match Not Started"),d(),l(5,"div"),h(6,"Planned Starting Time"),d(),l(7,"div",14),h(8),d()()()()),2&t){const e=b();it("height",e.eventsSectionResponsive),c(8),O(e.getHTMLDate(null==e.match?null:e.match.plannedStartingTime))}}function r1e(t,i){if(1&t&&(l(0,"mat-button-toggle",57),D(1,"img",46),d()),2&t){const e=b(3);c(1),f("src",e.getAssetPath("qi/matchqualityicon.webp"),kt)}}function l1e(t,i){1&t&&D(0,"app-match-event-statistics",58),2&t&&f("match",b(3).match)}function c1e(t,i){if(1&t){const e=F();l(0,"app-match-events-facts",59),M("afterFactsUpdateCallback",function(){return E(e),I(b(3).infoSectionUpdateCallback())}),d()}if(2&t){const e=b(3);f("matchEvents",e.events)("match",e.match)}}function d1e(t,i){if(1&t&&D(0,"app-match-events-lineups",60),2&t){const e=b(3);f("homeMatchLineup",e.homeMatchLineup)("awayMatchLineup",e.awayMatchLineup)}}function u1e(t,i){if(1&t&&(l(0,"div",61),D(1,"app-match-event-stadium",62),d()),2&t){const e=b(3);c(1),f("match",e.match)("stadium",null==e.match?null:e.match.stadium)}}function h1e(t,i){if(1&t&&(l(0,"div",61),D(1,"app-match-event-referees",63),d()),2&t){const e=b(3);c(1),f("refereeList",e.refereeList)}}function p1e(t,i){if(1&t&&(l(0,"div",61),D(1,"app-match-events-quality",64),d()),2&t){const e=b(3);c(1),f("match",e.match)}}function m1e(t,i){if(1&t){const e=F();l(0,"span")(1,"mat-button-toggle-group",43,44),M("change",function(){E(e);const o=X(2);return I(b(2).onToggle(o.value))}),l(3,"mat-button-toggle",45),D(4,"img",46),d(),l(5,"mat-button-toggle",47),D(6,"img",46),d(),l(7,"mat-button-toggle",48),D(8,"img",46),d(),l(9,"mat-button-toggle",49),D(10,"img",46),d(),l(11,"mat-button-toggle",50),D(12,"img",46),d(),p(13,r1e,2,1,"mat-button-toggle",51),d(),l(14,"div",52),p(15,l1e,1,1,"app-match-event-statistics",53),p(16,c1e,1,2,"app-match-events-facts",54),p(17,d1e,1,2,"app-match-events-lineups",55),p(18,u1e,2,2,"div",56),p(19,h1e,2,1,"div",56),p(20,p1e,2,1,"div",56),d()()}if(2&t){const e=b(2);c(4),f("src",e.getAssetPath("match_info_icons/stats.webp"),kt),c(2),f("src",e.getAssetPath("match_info_icons/cards.webp"),kt),c(2),f("src",e.getAssetPath("match_info_icons/field.webp"),kt),c(2),f("src",e.getAssetPath("match_info_icons/stadium.webp"),kt),c(2),f("src",e.getAssetPath("match_info_icons/whistle.webp"),kt),c(1),f("ngIf",e.showQuality()&&!e.isMulti),c(1),it("height",e.statsSectionReponsive),c(1),f("ngIf","statistics"==e.selectedVal),c(1),f("ngIf","facts"==e.selectedVal),c(1),f("ngIf","lineups"==e.selectedVal),c(1),f("ngIf","stadium"==e.selectedVal&&(null==e.match?null:e.match.stadium)),c(1),f("ngIf","referees"==e.selectedVal&&e.showReferees()),c(1),f("ngIf","quality"==e.selectedVal&&e.showQuality()&&!e.isMulti)}}function f1e(t,i){1&t&&(l(0,"div",65),h(1,"Match Not Ready"),d())}function _1e(t,i){if(1&t&&(l(0,"div",40),p(1,m1e,21,14,"span",41),p(2,f1e,2,0,"div",42),d()),2&t){const e=b();c(1),f("ngIf",e.match),c(1),f("ngIf",!e.match)}}let Yw=(()=>{class t{constructor(e,n,o,s,a,r,u){this.elementRef=e,this.usersService=n,this.breakpointObserver=o,this.router=s,this.translateService=a,this.iconRegistry=r,this.sanitizer=u,this.match=new da,this.showHeader=!0,this.showStats=!0,this.events=[],this.teamNameColor="white",this.blinkingTable=!1,this.callback=new W,this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.selectedVal="statistics",this.eventsSectionResponsive="20%",this.statsSectionReponsive="66%",this.statsSection={normal:"66%",s_768:"66%"},this.eventsSection={normal:"66%",s_768:"66%"},this.dataSource=null,this.emptyEnabled=!1,this.isMulti=!1,this.onProgress=0,this.columnsToDisplay=["timeMatch","event"]}currentScreenRouter(){return-1!==this.router.url.indexOf("multi")?"multi":null}getAttribute(e){return this.elementRef?.nativeElement.getAttribute(e)??""}infoSectionUpdateCallback(){this.callback.emit()}getHTMLDate(e){return function pue(t){const i=new Date(t);return`${("0"+i.getDate()).slice(-2)}.${("0"+(i.getMonth()+1)).slice(-2)}.${i.getFullYear()} ${("0"+i.getHours()).slice(-2)}:${("0"+i.getMinutes()).slice(-2)}`}(e)||0}matchStartingInMinutes(){const e=(new Date).getTime(),n=this.match?.plannedStartingTime?new Date(this.match.plannedStartingTime).getTime():0;return Math.max(0,Math.floor((n-e)/6e4))}ngOnInit(){this.eventsSectionResponsive=this.eventsSection.normal,this.statsSectionReponsive=this.statsSection.normal,this.breakpointObserver.observe(["(max-width: 768px)"]).subscribe(e=>{e.matches?(this.eventsSectionResponsive=this.eventsSection.s_768??this.eventsSection.normal,this.statsSectionReponsive=this.statsSection.s_768??this.statsSection.normal):(this.eventsSectionResponsive=this.eventsSection.normal,this.statsSectionReponsive=this.statsSection.normal)}),this.translateService.setDefaultLang("en"),this.translateService.use("en"),this.iconRegistry.addSvgIcon("shirt",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("shirt.svg"))),this.iconRegistry.addSvgIcon("short",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("short.svg"))),this.iconRegistry.addSvgIcon("pitch",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("pitch.svg"))),this.iconRegistry.addSvgIcon("pitch_color",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("pitch_color.svg"))),this.iconRegistry.addSvgIcon("rainy",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("rainy.svg"))),this.iconRegistry.addSvgIcon("snowy",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("snowy.svg"))),this.iconRegistry.addSvgIcon("cloudy",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("cloudy.svg"))),this.iconRegistry.addSvgIcon("sun",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("sun.svg"))),this.iconRegistry.addSvgIcon("card_yellow",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("card_yellow.svg"))),this.iconRegistry.addSvgIcon("card_yellow_red",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("card_yellow_red.svg"))),this.iconRegistry.addSvgIcon("card_red",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("card_red.svg"))),this.iconRegistry.addSvgIcon("corner_flag",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("corner_flag.webp"))),this.iconRegistry.addSvgIcon("players",this.sanitizer.bypassSecurityTrustResourceUrl(this.getAssetPath("players.svg")))}ngOnChanges(e){(e.match||e.events)&&this.handleMatchAndEvents()}handleMatchAndEvents(){if(!document.querySelector("app-root[ng-version]"))if(this.events?.length>0){const n=this.match?.matchInfo?{...this.match.matchInfo}:null;if(this.match.matchInfo=n,"string"==typeof this.match.refereeList)try{this.refereeList=JSON.parse(this.match.refereeList)}catch(o){console.error("Failed to parse refereeList:",o)}if(Array.isArray(this.events)&&this.events.length>0){if(1===this.events.length&&this.events[0].name===ge.LineupChange){const s=this.events[0].team.toLowerCase(),a=JSON.parse(this.events[0].value);"h"===s?this.homeMatchLineup=a:this.awayMatchLineup=a}else{const s={blinking:!1};this.events.forEach(a=>{if(a.name===ge.Substitution&&"string"==typeof a.value&&a.value.includes("["))try{a.value=JSON.parse(a.value)}catch(r){console.error("Failed to parse substitution event value:",r)}if(a.name===ge.LineupChange){const r=a.team.toLowerCase(),u=JSON.parse(a.value);"h"===r?this.homeMatchLineup=u:this.awayMatchLineup=u}this.isEventChildUnconfirmed(a)&&(s.blinking=!0)}),this.events.sort((a,r)=>r.id-a.id),this.blinkingTable=s.blinking}const o=this.match.sport?.name.toLowerCase();"football"===o?this.match.matchInfo=Yg(this.match,this.events):"basketball"===o&&(this.match.matchInfo=qg(this.match,this.events)),this.teamNameColor="black"}}else this.showHeader=!0,this.showStats=!0}setRowColorClass(e){return e.team?"H"===e.team?"bg-color-home color-home":"bg-color-away color-away":""}isEventChildUnconfirmed(e){let n=!1;return e&&Array.isArray(e.__directChildren__)&&0==e.__directChildren__?.length&&(e.status===Un.STATUS_WAITING&&e.name!==ge.VAR||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Penalty&&!e.type||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Card&&!e.type)&&(n=!0),n}rowClassExtra(e){let n="";const o=this.isEventChildUnconfirmed(e);return n+=this.setRowColorClass(e),o&&(n+=e.team?"H"===e.team?" glowRedHome":" glowRedAway":" glowRed"),n}rowClass(e,n){if(e?.parentMatchEvent){if(n){let o="";return o+=" "+e.parentMatchEvent.id,"Child of"+o}return"old_event"}return""}getEvent(e){return"football"==this.match.sport?.name.toLowerCase()?Ww(e,this.translateService):"basketball"==this.match.sport?.name.toLowerCase()?zw(e,this.translateService):void 0}getformatedDate(e){const n=new Date(e);return("0"+n.getHours()).slice(-2)+":"+("0"+n.getMinutes()).slice(-2)+":"+("0"+n.getSeconds()).slice(-2)}get dataSize(){return 0}showReferees(){let e=this.match?.refereeList;return!(!this.match?.refereeList||"object"==typeof this.match.refereeList||(e=JSON.parse(this.match.refereeList),!e?.refereeMain||"null"==e.refereeMain))}showQuality(){return!!(this.usersService.isAdmin||this.usersService.isModerator||this.usersService.isNetworkManager||this.usersService.isQualityManager)}onToggle(e){this.selectedVal=e}getAssetPath(e){return zg.assetBaseUrl+"images/"+e}static#e=this.\u0275fac=function(n){return new(n||t)(_(oe,8),_(ds),_(Ra),_(_i),_(Ze),_(sd),_(_h))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-info-section"]],inputs:{match:"match",showHeader:"showHeader",showStats:"showStats",events:"events",teamNameColor:"teamNameColor",blinkingTable:"blinkingTable",refereeList:"refereeList",homeMatchLineup:"homeMatchLineup",awayMatchLineup:"awayMatchLineup",statsSection:"statsSection",eventsSection:"eventsSection",dataSource:"dataSource",emptyEnabled:"emptyEnabled",isMulti:"isMulti"},outputs:{callback:"callback"},standalone:!0,features:[fe,Z],decls:5,vars:4,consts:[[1,"info-section"],["class","horizontal-center","class","info-section-header",4,"ngIf"],["class","menu-capture",3,"height",4,"ngIf"],["style","display: inline;",4,"ngIf"],[1,"info-section-header"],[2,"width","32%","height","100%","scale","0.85",3,"Team","Placeholder","teamNameColor"],[2,"display","flex","flex-direction","column","align-self","center"],["class","counter-container",4,"ngIf"],["style","margin-top: 1em; text-align: center;",3,"color",4,"ngIf"],["style","color: white; background-color: red; padding:2px; margin:2px; margin-top: 5px; text-align: center; border-radius: 15px;",4,"ngIf"],[1,"counter-container"],[1,"counter"],[1,"counter",2,"width","10px","font-weight","normal"],[2,"margin-top","1em","text-align","center"],[2,"font-weight","bold"],[2,"color","white","background-color","red","padding","2px","margin","2px","margin-top","5px","text-align","center","border-radius","15px"],[1,"menu-capture"],[1,"events-table-container"],[2,"overflow","scroll","overflow-x","auto","height","100%","background","white"],["mat-table","","matSort","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["matColumnDef","timeServer"],["matColumnDef","timeMatch"],["mat-cell","","style","text-align: center",3,"class",4,"matCellDef"],["matColumnDef","event"],["mat-header-cell","","style","text-align: center",4,"matHeaderCellDef"],["mat-cell","",3,"class","text-align",4,"matCellDef"],["mat-header-row","","style","background-color: white;",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",2,"text-align","center"],["mat-header-cell","",2,"text-align","center"],["mat-header-row","",2,"background-color","white"],["mat-row",""],[1,"events-table-container",2,"display","flex","justify-content","center","align-items","center","height","100%"],[2,"overflow","none","text-align","center"],[2,"display","inline"],[4,"ngIf"],["style","align-content: center;display: flex;justify-content: center;",4,"ngIf"],["name","fontStyle","aria-label","Font Style",1,"toggle_grp",3,"change"],["group","matButtonToggleGroup"],["value","statistics",1,"toggle_btn"],["height","16",3,"src"],["value","facts",1,"toggle_btn"],["value","lineups",1,"toggle_btn"],["value","stadium",1,"toggle_btn"],["value","referees",1,"toggle_btn"],["class","toggle_btn","value","quality",4,"ngIf"],[1,"toggle_container"],["class","toggle_container_item",3,"match",4,"ngIf"],["class","toggle_container_item",3,"matchEvents","match","afterFactsUpdateCallback",4,"ngIf"],["class","toggle_container_item",3,"homeMatchLineup","awayMatchLineup",4,"ngIf"],["class","toggle_container_item",4,"ngIf"],["value","quality",1,"toggle_btn"],[1,"toggle_container_item",3,"match"],[1,"toggle_container_item",3,"matchEvents","match","afterFactsUpdateCallback"],[1,"toggle_container_item",3,"homeMatchLineup","awayMatchLineup"],[1,"toggle_container_item"],[3,"match","stadium"],[3,"refereeList"],[3,"match"],[2,"align-content","center","display","flex","justify-content","center"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,qge,8,10,"div",1),p(2,s1e,4,5,"div",2),p(3,a1e,9,3,"div",2),p(4,_1e,3,2,"div",3),d()),2&n&&(c(1),f("ngIf",o.showHeader),c(1),f("ngIf",o.dataSource),c(1),f("ngIf",!o.dataSource&&o.emptyEnabled),c(1),f("ngIf",o.showStats))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,uw,cw,dw,Me,_e,we,$ge,lge,ige,Q_e,m_e,jfe,Hfe],styles:[".info-section[_ngcontent-%COMP%]{height:100%;width:360px;font-family:Montserrat;font-size:small}.info-section-header[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;flex-direction:row;width:100%;align-items:flex-start;height:22%;margin:.5em 0}.toggle_btn[_ngcontent-%COMP%]{width:100%}.toggle_grp[_ngcontent-%COMP%]{display:flex;justify-content:space-between;height:5%;align-items:center;border-radius:16px;border:none}.toggle_container[_ngcontent-%COMP%]{width:100%;background-color:#d3d3d3ee;border-radius:20px;margin-top:10px}.toggle_container_item[_ngcontent-%COMP%]{display:block;height:100%}.counter[_ngcontent-%COMP%]{width:4em;height:2.5em;display:flex;justify-content:center;align-items:center}.counter-container[_ngcontent-%COMP%]{display:flex;justify-content:center;border-radius:20px;background-color:#d3d3d3;font-weight:700}@media only screen and (max-width: 768px){.info-section[_ngcontent-%COMP%]{width:100%}.info-section-header[_ngcontent-%COMP%]{height:auto}.toggle_container[_ngcontent-%COMP%]{height:77%}}tr.mat-header-row[_ngcontent-%COMP%], tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{height:30px}"]})}return t})();class g1e{constructor(i,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){const i=this._textarea;let e=!1;try{if(i){const n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){const i=this._textarea;i&&(i.remove(),this._textarea=void 0)}}let Qg=(()=>{class t{constructor(e){this._document=e}copy(e){const n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new g1e(e,this._document)}static#e=this.\u0275fac=function(n){return new(n||t)(H(Ue))};static#t=this.\u0275prov=K({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function b1e(t,i){if(1&t){const e=F();l(0,"div",14)(1,"div",15)(2,"mat-icon",16),h(3,"smartphone"),d(),l(4,"strong"),h(5),d(),l(6,"div",17),h(7),d()(),l(8,"button",10),M("click",function(){const s=E(e).$implicit;return I(b(3).copyToClipboard(null==s?null:s.value))}),l(9,"mat-icon",11),h(10,"content_copy"),d()()()}if(2&t){const e=i.$implicit;c(5),T("",null==e?null:e.name,":"),c(2),O(null==e?null:e.value)}}function v1e(t,i){if(1&t&&(l(0,"div")(1,"div",12),p(2,b1e,11,2,"div",13),d()()),2&t){const e=b(2);c(2),f("ngForOf",null==e.data||null==e.data.reporter?null:e.data.reporter.contactDetails)}}function y1e(t,i){if(1&t){const e=F();l(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8)(4,"mat-icon",9),h(5,"smartphone"),d(),l(6,"div"),h(7),d()(),l(8,"button",10),M("click",function(){E(e);const o=b();return I(o.copyToClipboard((null==o.data||null==o.data.reporter?null:o.data.reporter.firstName)+" "+(null==o.data||null==o.data.reporter?null:o.data.reporter.lastName)))}),l(9,"mat-icon",11),h(10,"content_copy"),d()()(),p(11,v1e,3,1,"div",4),d()()}if(2&t){const e=b();c(7),We("",null==e.data||null==e.data.reporter?null:e.data.reporter.firstName," ",null==e.data||null==e.data.reporter?null:e.data.reporter.lastName,""),c(4),f("ngIf",(null==e.data||null==e.data.reporter||null==e.data.reporter.contactDetails?null:e.data.reporter.contactDetails.length)>0)}}function C1e(t,i){if(1&t){const e=F();l(0,"div",14)(1,"div",15)(2,"mat-icon",16),h(3,"smartphone"),d(),l(4,"strong"),h(5),d(),l(6,"div",17),h(7),d()(),l(8,"button",10),M("click",function(){const s=E(e).$implicit;return I(b(4).copyToClipboard(null==s?null:s.value))}),l(9,"mat-icon",11),h(10,"content_copy"),d()()()}if(2&t){const e=i.$implicit;c(5),T("",null==e?null:e.name,":"),c(2),O(null==e?null:e.value)}}function w1e(t,i){if(1&t&&(l(0,"div")(1,"div",12),p(2,C1e,11,2,"div",13),d()()),2&t){const e=b().$implicit;c(2),f("ngForOf",null==e?null:e.contactDetails)}}function S1e(t,i){if(1&t){const e=F();l(0,"div",6)(1,"div",7)(2,"div",8)(3,"mat-icon",9),h(4,"computer"),d(),l(5,"div"),h(6),d()(),l(7,"button",10),M("click",function(){const s=E(e).$implicit;return I(b(2).copyToClipboard((null==s?null:s.firstName)+" "+(null==s?null:s.lastName)))}),l(8,"mat-icon",11),h(9,"content_copy"),d()()(),p(10,w1e,3,1,"div",4),d()}if(2&t){const e=i.$implicit;c(6),We("",null==e?null:e.firstName," ",null==e?null:e.lastName,""),c(4),f("ngIf",(null==e||null==e.contactDetails?null:e.contactDetails.length)>0)}}function T1e(t,i){if(1&t&&(l(0,"div")(1,"div",18),p(2,S1e,11,3,"div",19),d()()),2&t){const e=b();c(2),f("ngForOf",null==e.data?null:e.data.moderators)}}let GF=(()=>{class t{constructor(e,n,o,s){this.data=e,this.dialogRef=n,this.clipboard=o,this.snackBar=s}copyToClipboard(e){this.clipboard.copy(e),this.openSnackbar("Copied to clipboard")}openSnackbar(e){this.snackBar.open(e,"Close",{duration:2e3})}closeDialog(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Pt),_(It),_(Qg),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["match-reporter-info-dialog"]],standalone:!0,features:[Z],decls:9,vars:2,consts:[[1,"staff-information"],[1,"close-dialog-button",3,"click"],[1,"title"],["class","section reporter",4,"ngIf"],[4,"ngIf"],[1,"section","reporter"],[1,"item",2,"flex-direction","column","align-items","normal","justify-content","space-between"],[1,"item"],[1,"name",2,"display","flex","justify-content","space-around","align-items","center"],[1,"icon",2,"margin","0.35em"],["mat-icon-button","",3,"click"],[1,"icon"],[1,"contacts"],["class","contact-item",4,"ngFor","ngForOf"],[1,"contact-item"],[2,"display","flex","justify-content","left","align-items","center"],[1,"icon",2,"margin","0.35em","opacity","0"],[1,"contact-value"],[1,"section","moderators"],["class","item","style","flex-direction: column; align-items: normal; justify-content: space-between;",4,"ngFor","ngForOf"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"button",1),M("click",function(){return o.closeDialog()}),l(2,"mat-icon"),h(3,"close"),d()(),l(4,"h5",2),h(5,"Staff Information"),d(),p(6,y1e,12,3,"div",3),D(7,"hr"),p(8,T1e,3,1,"div",4),d()),2&n&&(c(6),f("ngIf",null==o.data?null:o.data.reporter),c(2),f("ngIf",(null==o.data||null==o.data.moderators?null:o.data.moderators.length)>0))},dependencies:[Ot,ce,qe,le,Me,Oe,Ne,Re],styles:[".staff-information[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;background-color:#61b1dc;color:#000;position:relative}.mat-dialog-container[_ngcontent-%COMP%]{background-color:#61b1dc!important}.title[_ngcontent-%COMP%]{margin-bottom:0;text-align:center;font-weight:700;text-transform:uppercase}.section[_ngcontent-%COMP%]{border-radius:10px;margin-top:10px}.item[_ngcontent-%COMP%], .contact-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.name[_ngcontent-%COMP%]{text-align:center}.contact-value[_ngcontent-%COMP%]{margin:0 .5em}.close-dialog-button[_ngcontent-%COMP%]{border:none;display:flex;position:absolute;top:-.4em;left:.2em;background-color:red;cursor:pointer;border-radius:50%;padding:5px}.close-dialog-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#fff}"]})}return t})();function D1e(t,i){if(1&t){const e=F();l(0,"div",7)(1,"button",6),M("click",function(){const s=E(e).$implicit;return I(b().copyToClipboard(s.value.value))}),l(2,"mat-icon"),h(3,"content_copy"),d()(),D(4,"textarea",8),l(5,"button",9),M("click",function(){const s=E(e).index;return I(b().deleteNote(s))}),l(6,"mat-icon"),h(7,"delete"),d()()()}2&t&&f("formGroupName",i.index)}let M1e=(()=>{class t{constructor(e,n,o,s){this.http=e,this.fb=n,this.translateService=o,this.clipboard=s,this.loading=!1,this.initializeForm()}copyToClipboard(e){this.clipboard.copy(e)}ngOnChanges(e){e.data&&this.data.matchId&&this.fetchMatchNote()}initializeForm(){this.form=this.fb.group({notes:this.fb.array([])})}fetchMatchNote(){this.loading=!0,this.matchNoteService=new Q(v.apiURLs.rootURL+"matches/"+this.data.matchId+"/note",this.http),this.matchNoteService.getAllObservable(v.token,v.userId).subscribe(e=>{this.currentMatchNote=e;const o=this.fb.array((e.value||[]).map(s=>this.fb.group({value:[s,ue.required]})));this.form.setControl("notes",o),this.loading=!1},()=>this.loading=!1)}onSave(){if(this.form.invalid)return;const e=this.notesFormArray.getRawValue().map(a=>a.value),n={id:this.currentMatchNote?.id||null,value:e,match:{id:this.data.matchId}};this.loading=!0;let o=new Q(v.apiURLs.rootURL+"matches/note",this.http);(n.id?o.update(n):o.create(n)).subscribe(a=>{this.currentMatchNote=a,this.inputOnSuccess(a),this.loading=!1},()=>this.loading=!1)}get notesFormArray(){return this.form.get("notes")}addNote(){this.notesFormArray.push(this.fb.group({value:["",ue.required]}))}logValue(e,n){console.log(`Note ${e} value:`,n)}deleteNote(e){this.notesFormArray.removeAt(e)}onCancel(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(mn),_(Ze),_(Qg))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-note-dialog-content"]],inputs:{data:"data",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:11,vars:3,consts:[[3,"formGroup","ngSubmit"],["formArrayName","notes"],["class","note-group",3,"formGroupName",4,"ngFor","ngForOf"],[1,"actions"],["mat-raised-button","","color","white","type","submit",2,"background-color","#1e5720","color","#fff",3,"disabled"],["mat-raised-button","","color","secondary","type","button",3,"click"],["mat-icon-button","","color","white",3,"click"],[1,"note-group",3,"formGroupName"],["matInput","","formControlName","value","placeholder","Start Typing......"],["mat-icon-button","","color","warn",3,"click"]],template:function(n,o){1&n&&(l(0,"form",0),M("ngSubmit",function(){return o.onSave()}),l(1,"div",1),p(2,D1e,8,1,"div",2),d(),l(3,"div",3)(4,"button",4),h(5," Save "),d(),l(6,"button",5),M("click",function(){return o.onCancel()}),h(7," Close "),d(),l(8,"button",6),M("click",function(){return o.addNote()}),l(9,"mat-icon"),h(10,"add"),d()()()()),2&n&&(f("formGroup",o.form),c(2),f("ngForOf",o.notesFormArray.controls),c(2),f("disabled",o.form.invalid))},dependencies:[ce,qe,xt,Vt,Lt,Mt,Bt,vt,Cn,Dh,a_,ut,on,Gt,gn,Ne,Re,je,Me,Oe,zt,wn,_e],styles:[".note-group[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:1em}.note-group[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{flex-grow:1;border:none;border-radius:5px;padding:10px;margin-right:1em}.note-group[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:5px}.actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.text-area-like[_ngcontent-%COMP%]{border:1px solid #ccc;padding:10px;border-radius:4px;min-height:20px;background-color:#fff;width:22em;overflow:auto;resize:vertical;margin-bottom:10px}"]})}return t})(),x1e=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-note-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"data","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-note-dialog-content",0),d()),2&n&&(c(1),f("data",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,M1e]})}return t})();var wt=function(t){return t.NONE="NONE",t.GOAL="GOAL",t.GOALKICK="GOALKICK",t.PENALTY="PENALTY",t.SHOT="SHOT",t.SUBSTITUTION="SUBSTITUTION",t.TI="TI",t.FK="FK",t.CARD="CARD",t.CORNER="CORNER",t}(wt||{}),tt=function(t){return t.QUARTER="QUARTER",t.HALF="HALF",t.THREEQUARTERS="THREEQUARTERS",t.FULL="FULL",t.FULL_QH="FULL_QH",t}(tt||{}),En=function(t){return t.LEFT="LEFT",t.RIGHT="RIGHT",t.CENTER="CENTER",t.NONE="",t}(En||{}),at=function(t){return t.GREEN="GREEN",t.ORANGE="ORANGE",t.RED="RED",t.GREY="GREY",t.BLACK="BLACK",t.GREEN_PITCH="GREEN_PITCH",t.GREEN_PITCH_NO_BORDER="GREEN_PITCH_NO_BORDER",t}(at||{});let zF=(()=>{class t{constructor(e){this.translateService=e,this.VEvent=null,this.Sport="Football",this.Rec_Side=En.NONE,this.Rec_Color=at.GREY,this.Rec_Size=tt.FULL,this.Rec_Image=wt.NONE,this.Rec_Image_Flip=!1,this.REC_TEXT_EVENT_TYPE="",this.REC_TEXT_EVENT_NAME=""}ngOnInit(){}ngOnChanges(e){e.VEvent&&function E1e(t,i,e,n){(function O1e(t,i,e){switch(i.name){case ge.Substitution:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.status&&(t.Rec_Image=wt.SUBSTITUTION,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e));break;case ge.Comment:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME=e.instant(i.value)||" ",t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_"+i.type):"";break;case ge.Attendance:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=i.value+"%";break;case ge.StandBy:i.team?t.togglePitchSide(t.mapTeamToSide(i.team)):t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE="";break;case ge.VAR:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=i.status===Un.STATUS_WAITING?(i.type?e.instant("event_type_"+i.type):"VAR")+" "+e.instant("general_started"):e.instant("event_name_"+i.name)+" "+e.instant("general_ended");break;case ge.TeamColor:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_"+i.type):"";break;case ge.ReporterPosition:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_"+i.type):"";break;case ge.OpenGame:i.status&&(t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.Rec_Image=wt.NONE,40==i.type?t.REC_TEXT_EVENT_NAME=e.instant("general_open_game_master"):t.REC_TEXT_EVENT_TYPE="",40!=i.type?t.REC_TEXT_EVENT_NAME=e.instant("general_open_game"):t.REC_TEXT_EVENT_TYPE="");break;case ge.CloseGame:i.status&&(t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.Rec_Image=wt.NONE,40==i.type?t.REC_TEXT_EVENT_NAME=e.instant("general_close_game_master"):t.REC_TEXT_EVENT_TYPE="",40!=i.type?t.REC_TEXT_EVENT_NAME=e.instant("general_close_game"):t.REC_TEXT_EVENT_TYPE="");break;case ge.LineupChange:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.name&&(t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.Rec_Image=wt.NONE,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE="")}})(t,i,e),"football"==n.toLowerCase()&&function R1e(t,i,e){switch(i.name){case Te.BallPosition:t.togglePitchSide(t.mapTeamToSide(i.team)),t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_NAME="",t.Rec_Image=wt.NONE,t.toggleByPosition(i.type);break;case Te.StartHalf:i.type&&(t.Rec_Image=wt.NONE,i.team?t.togglePitchSide(t.mapTeamToSide(i.team)):t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_NAME="");break;case Te.FreeKick:t.Rec_Image=wt.FK,i.team&&t.togglePitchSide(t.mapTeamToSide(i.team),!0),i.type&&(t.toggleByPosition(i.type),i.type===Ht.Danger.id?(t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type)+" - "+t.statusToString(i.status,e)):(t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type)+" "+(i.status!=Un.STATUS_CONFIRMED?t.statusToString(i.status,e):"")));break;case Te.ThrowIn:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.type&&(t.Rec_Image=wt.TI,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type)+" "+(i.status?t.statusToString(i.status,e):""));break;case Te.Shot:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.type&&(t.Rec_Image=wt.SHOT,t.Rec_Color=at.RED,t.Rec_Size=tt.THREEQUARTERS,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type)+" "+(i.status?t.statusToString(i.status,e):""));break;case Te.Corner:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.status&&(t.Rec_Image=wt.CORNER,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e));break;case Te.Goal:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.GOAL,t.Rec_Color=at.RED,t.Rec_Size=tt.THREEQUARTERS,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),i.status?(t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e),"F"==i.status&&(t.Rec_Size=tt.FULL)):t.REC_TEXT_EVENT_TYPE="";break;case Te.KickOff:i.team?t.togglePitchSide(t.mapTeamToSide(i.team)):t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE="";break;case Te.Card:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.CARD,t.REC_TEXT_EVENT_NAME=e.instant(i.type?"event_type_"+i.type:"event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=i.status?t.statusToString(i.status,e):"";break;case Te.Penalty:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.status&&(t.Rec_Image=wt.PENALTY,t.Rec_Color=at.RED,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e));break;case Te.PenaltyResult:t.Rec_Color=at.RED,"W"==i.status?(t.REC_TEXT_EVENT_NAME=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_TYPE=e.instant("general_waiting")):"D"==i.status?(t.REC_TEXT_EVENT_NAME=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_TYPE=e.instant("general_deleted")):"C"==i.status?(t.REC_TEXT_EVENT_NAME=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_TYPE=e.instant("general_cancelled")):(t.REC_TEXT_EVENT_NAME=e.instant("event_type_"+i.type),t.REC_TEXT_EVENT_TYPE=e.instant("general_confirmed"),11!=i.type&&(t.Rec_Size=tt.FULL));break;case Te.GoalKick:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),i.type&&(t.Rec_Image=wt.GOALKICK,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type));break;case Te.EndHalf:i.type&&(t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.Rec_Image=wt.NONE,t.REC_TEXT_EVENT_NAME="",i.type===Ht.End1stHalf.id?t.REC_TEXT_EVENT_TYPE=e.instant("1st_Half_Finished"):i.type===Ht.End2ndHalf.id?t.REC_TEXT_EVENT_TYPE=e.instant("2nd_Half_Finished"):i.type===Ht.End1stExtraHalf.id?t.REC_TEXT_EVENT_TYPE=e.instant("1st_Extra_Half_Finished"):i.type===Ht.End2ndExtraHalf.id&&(t.REC_TEXT_EVENT_TYPE=e.instant("2nd_Extra_Half_Finished")));break;case Te.PlayersOnField:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type);break;case Te.PlayersCount:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME="",t.REC_TEXT_EVENT_TYPE=e.instant("event_type_"+i.type)+" "+t.statusToString(i.status,e);break;case Te.PenaltyShootout:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.PENALTY,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE="W"==i.status?(i.type?e.instant("event_type_"+i.type):"")+" - "+e.instant("general_waiting"):"D"==i.status?(i.type?e.instant("event_type_"+i.type):"")+" - "+e.instant("general_deleted"):"C"==i.status?(i.type?e.instant("event_type_"+i.type):"")+" - "+e.instant("general_cancelled"):(i.type?e.instant("event_type_"+i.type):"")+" - "+e.instant("general_confirmed");break;case Te.PitchCondition:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_"+i.type):"";break;case Te.WeatherCondition:t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_"+i.type):"";break;case ge.EndGame:t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL,t.Rec_Color=at.BLACK,t.Rec_Image=wt.NONE,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=41!=i.type?e.instant("event_type_"+i.type):""}}(t,i,e),"basketball"==n.toLowerCase()&&function I1e(t,i,e){switch(i.name){case et.ConfirmScore:t.REC_TEXT_EVENT_NAME="Confirm Score",t.Rec_Side=En.CENTER,t.Rec_Image=wt.NONE,t.Rec_Size=tt.FULL_QH,t.Rec_Color=at.GREEN_PITCH,t.REC_TEXT_EVENT_TYPE=i.type?e.instant("event_type_b_"+i.type):"";break;case et.TwoPoint:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.GOAL,t.Rec_Color=at.RED,t.Rec_Size=tt.THREEQUARTERS,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),i.status?(t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e),"F"==i.status&&(t.Rec_Size=tt.FULL)):t.REC_TEXT_EVENT_TYPE="";break;case et.FreeThrow:case et.FreeThrowAward:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.TI,t.Rec_Color=at.GREEN,t.Rec_Size=tt.THREEQUARTERS,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),i.status?(t.REC_TEXT_EVENT_TYPE=(i.type?e.instant("event_type_b_"+i.type):"")+" "+t.statusToString(i.status,e),"F"==i.status&&(t.Rec_Size=tt.FULL)):t.REC_TEXT_EVENT_TYPE="";break;case et.Foul:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.CARD,t.Rec_Color=at.RED,t.Rec_Size=tt.THREEQUARTERS,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),i.status?(t.REC_TEXT_EVENT_TYPE=(i.type?e.instant("event_type_b_"+i.type):"")+" "+t.statusToString(i.status,e),"F"==i.status&&(t.Rec_Size=tt.FULL)):t.REC_TEXT_EVENT_TYPE="";break;case et.ThreePoint:i.team&&t.togglePitchSide(t.mapTeamToSide(i.team)),t.Rec_Image=wt.GOAL,t.Rec_Color=at.RED,t.Rec_Size=tt.THREEQUARTERS,t.toggleByPosition(i.type),t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),i.status?(t.REC_TEXT_EVENT_TYPE=t.statusToString(i.status,e),"F"==i.status&&(t.Rec_Size=tt.FULL)):t.REC_TEXT_EVENT_TYPE="";break;case et.Possession:t.togglePitchSide(t.mapTeamToSide(i.team)),t.REC_TEXT_EVENT_NAME="Possession",t.Rec_Image=wt.NONE,t.Rec_Size=tt.THREEQUARTERS,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_TYPE="",t.toggleByPosition(i.type);break;case et.TurnOver:t.togglePitchSide(t.mapTeamToSide(i.team)),t.REC_TEXT_EVENT_NAME="Turn Over",t.Rec_Image=wt.NONE,t.Rec_Size=tt.THREEQUARTERS,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_TYPE="",t.toggleByPosition(i.type);break;case et.TimeOut:t.togglePitchSide(t.mapTeamToSide(i.team)),t.REC_TEXT_EVENT_NAME="Time Out",t.Rec_Image=wt.NONE,t.Rec_Size=tt.THREEQUARTERS,t.Rec_Color=at.GREY,t.REC_TEXT_EVENT_TYPE="",t.toggleByPosition(i.type);break;case et.StartQuarter:i.type&&(t.Rec_Image=wt.NONE,i.team?t.togglePitchSide(t.mapTeamToSide(i.team)):t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL,t.Rec_Color=at.GREEN_PITCH_NO_BORDER,t.REC_TEXT_EVENT_TYPE=e.instant("event_type_b_"+i.type),t.REC_TEXT_EVENT_NAME="");break;case et.TimeOutOver:t.togglePitchSide(t.mapTeamToSide(i.team)),t.REC_TEXT_EVENT_NAME="Time Out Over",t.Rec_Image=wt.NONE,t.Rec_Size=tt.THREEQUARTERS,t.Rec_Color=at.GREEN,t.REC_TEXT_EVENT_TYPE="",t.toggleByPosition(i.type);break;case ge.EndGame:t.Rec_Side=En.CENTER,t.Rec_Size=tt.FULL,t.Rec_Color=at.BLACK,t.Rec_Image=wt.NONE,t.REC_TEXT_EVENT_NAME=e.instant("event_name_"+i.name),t.REC_TEXT_EVENT_TYPE=41!=i.type?e.instant("event_type_b_"+i.type):""}}(t,i,e)}(this,this.VEvent,this.translateService,this.Sport)}toggleSAFE(){this.Rec_Color=at.GREEN,this.Rec_Size=tt.QUARTER}toggleDANGER(){this.Rec_Color=at.RED,this.Rec_Size=tt.THREEQUARTERS}toggleATTACK(){this.Rec_Color=at.ORANGE,this.Rec_Size=tt.HALF}togglePitchSide(e,n){this.Rec_Side!=e&&(this.Rec_Side=e,this.Rec_Image_Flip=n?this.Rec_Side==En.RIGHT:this.Rec_Side!=En.RIGHT)}getTeamName(){return this.Rec_Side==En.LEFT?this.translateService.instant("general_home"):this.Rec_Side==En.RIGHT?this.translateService.instant("general_away"):""}getPostitionName(){return this.Rec_Color==at.GREEN&&this.Rec_Size==tt.QUARTER?this.translateService.instant("event_type_1"):this.Rec_Color==at.ORANGE&&this.Rec_Size==tt.HALF?this.translateService.instant("event_type_2"):this.Rec_Color==at.RED&&this.Rec_Size==tt.THREEQUARTERS?this.translateService.instant("event_type_3"):""}mapTeamToSide(e){return"H"==e?En.LEFT:"A"==e?En.RIGHT:En.NONE}toggleByPosition(e){1==e?this.toggleSAFE():2==e?this.toggleATTACK():3==e&&this.toggleDANGER()}statusToString(e,n){switch(e){case"W":return n.instant("general_waiting");case"F":return n.instant("general_confirmed");case"C":return n.instant("general_cancelled");case"S":return n.instant("general_scored");case"M":return n.instant("general_missed");case"O":return n.instant("general_open");case"E":return n.instant("general_close");case"D":return n.instant("general_deleted")}return""}teamToString(e){return"A"===e?"Away":"Home"}printPlayers(e){let n="";return e.player&&(n=e.player.shirtNumber?"("+e.player.shirtNumber+", ":"(",n+=e.player.name+")"),e.value&&this.checkArray(e.value)&&(n=" (In "+e.value[0].name+", Out "+e.value[1].name+")"),n}checkArray(e){return 1==Array.isArray(e)}getAssetPath(e){return"/assets/svg/"+e}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-visual-pitch"]],inputs:{VEvent:"VEvent",Sport:"Sport"},standalone:!0,features:[fe,Z],decls:9,vars:21,consts:[[1,"statLogic"]],template:function(n,o){1&n&&(l(0,"div")(1,"div"),D(2,"div"),l(3,"div",0),h(4),d(),l(5,"div",0),h(6),d(),l(7,"div",0),h(8),d()()()),2&n&&(_v("pitch_",o.Sport," ",o.Rec_Side,""),it("background-image","url("+o.getAssetPath("PITCH_"+o.Sport.toUpperCase()+".svg")+")"),c(1),fv("StateBackground ","FULL_QH"==o.Rec_Size?"OP100":"",""),f("@Rec_Color",o.Rec_Color)("@Rec_Size",o.Rec_Size),c(1),_v("IM ",o.Rec_Image," ",o.Rec_Image_Flip?"IMG_Flip":"",""),it("background-image","url("+o.getAssetPath(o.Rec_Image+".svg")+")"),c(1),f("@Rec_Side",o.Rec_Side),c(1),O(o.getTeamName()),c(2),O(o.REC_TEXT_EVENT_NAME?o.REC_TEXT_EVENT_NAME:""),c(2),O(o.REC_TEXT_EVENT_TYPE?o.REC_TEXT_EVENT_TYPE:""))},styles:['@import"https://fonts.googleapis.com/css2?family=Montserrat:wght@800&display=swap";[_ngcontent-%COMP%]:root{--asset-path: "/assets"}[_nghost-%COMP%]{display:block}.StateBackground[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:0px;height:calc(675px / 3.5);opacity:80%}.OP100[_ngcontent-%COMP%]{opacity:80%}.pitch_Football[_ngcontent-%COMP%], .pitch_Basketball[_ngcontent-%COMP%]{width:calc(1052px / 3.5);height:calc(675px / 3.5);display:flex}.statLogic[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:18px;text-align:center;color:#fff}.IMG_Flip[_ngcontent-%COMP%]{transform:scaleX(-1)}.RIGHT[_ngcontent-%COMP%]{justify-content:right}.LEFT[_ngcontent-%COMP%]{justify-content:left}.GOAL[_ngcontent-%COMP%]{background-repeat:no-repeat;width:6em;height:6em}.GOALKICK[_ngcontent-%COMP%]{background-repeat:no-repeat;width:5em;height:3em}.PENALTY[_ngcontent-%COMP%]{background-repeat:no-repeat;width:calc(362px / 3);height:calc(272px / 3)}.SHOT[_ngcontent-%COMP%]{background-repeat:no-repeat;width:6em;height:6em}.NONE[_ngcontent-%COMP%]{background-image:none;width:0px;height:0px}.SUBSTITUTION[_ngcontent-%COMP%]{background-repeat:no-repeat;width:4em;height:4em}.TI[_ngcontent-%COMP%]{background-repeat:no-repeat;width:4em;height:5em}.FK[_ngcontent-%COMP%]{background-repeat:no-repeat;width:6em;height:6em}.CARD[_ngcontent-%COMP%]{background-repeat:no-repeat;width:3em;height:6em}.CORNER[_ngcontent-%COMP%]{background-repeat:no-repeat;width:6em;height:6em}'],data:{animation:[ei("Rec_Side",[ot(En.LEFT,xe({})),ot(En.RIGHT,xe({})),ot(En.CENTER,xe({})),Et("* => *",[At("4s")])]),ei("Rec_Color",[ot(at.GREEN,xe({backgroundColor:"green"})),ot(at.GREEN_PITCH,xe({backgroundColor:"#003300",border:"6px solid white",borderLeft:"none",borderRight:"none"})),ot(at.GREEN_PITCH_NO_BORDER,xe({backgroundColor:"#003300"})),ot(at.ORANGE,xe({backgroundColor:"orange"})),ot(at.RED,xe({backgroundColor:"red"})),ot(at.GREY,xe({backgroundColor:"grey"})),ot(at.BLACK,xe({backgroundColor:"black"})),Et("* => *",[At("0.5s")])]),ei("Rec_Size",[ot(tt.QUARTER,xe({width:"30%"})),ot(tt.HALF,xe({width:"50%"})),ot(tt.THREEQUARTERS,xe({width:"75%"})),ot(tt.FULL,xe({width:"100%"})),ot(tt.FULL_QH,xe({width:"100%",height:"75%",placeSelf:"center"})),Et("void => *",[At("0s")]),Et("FULL_QH <=> *",[At("0s ease-out")]),Et("* => *",[At("0.5s")])])]}})}return t})();const A1e=["confirmDialog"];function P1e(t,i){if(1&t){const e=F();l(0,"mat-card",37)(1,"div",38),h(2),C(3,"translate"),D(4,"br"),h(5),D(6,"br"),l(7,"button",39),M("click",function(){return E(e),I(b(2).dismissCallMe())}),h(8),C(9,"translate"),d()()()}if(2&t){const e=b(2);c(2),T(" ",w(3,3,"general_call_me_activated")," "),c(3),T(" ",e.getActiveTime(e.match.reporterCommunication.lastCallMeRequestTime)," "),c(3),O(w(9,5,"general_dismiss"))}}function N1e(t,i){if(1&t){const e=F();l(0,"button",40),M("click",function(){return E(e),I(b(2).fetchData(!0))}),l(1,"mat-icon"),h(2,"refresh"),d(),h(3),C(4,"translate"),d()}2&t&&(c(3),T(" ",w(4,1,"general_refresh")," "))}function F1e(t,i){if(1&t){const e=F();l(0,"button",41),M("click",function(){return E(e),I(b(2).matchOpenClose(!1,!1))}),h(1),C(2,"translate"),d()}2&t&&(c(1),O(w(2,1,"general_open_game")))}function L1e(t,i){if(1&t){const e=F();l(0,"button",42),M("click",function(){return E(e),I(b(2).matchOpenClose(!0,!1))}),h(1),C(2,"translate"),d()}2&t&&(c(1),O(w(2,1,"general_close_game")))}function B1e(t,i){if(1&t){const e=F();l(0,"button",43),M("click",function(){return E(e),I(b(2).matchOpenClose(!1,!0))}),h(1),C(2,"translate"),d()}2&t&&(c(1),O(w(2,1,"general_open_game_master")))}function V1e(t,i){if(1&t){const e=F();l(0,"button",44),M("click",function(){return E(e),I(b(2).matchOpenClose(!0,!0))}),h(1),C(2,"translate"),d()}2&t&&(c(1),O(w(2,1,"general_close_game_master")))}function H1e(t,i){if(1&t){const e=F();l(0,"button",45),M("click",function(){return E(e),I(b(2).clearMatch())}),h(1),C(2,"translate"),d()}2&t&&(c(1),O(w(2,1,"general_clear_match")))}function U1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"comment"),d())}function $1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"cancel_presentation"),d())}function j1e(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2,"RE:"),d(),h(3),d()),2&t){const e=b(4);c(3),We(" ",null==e.matchStaff.assignedReporter?null:e.matchStaff.assignedReporter.firstName," ",null==e.matchStaff.assignedReporter?null:e.matchStaff.assignedReporter.lastName," ")}}function G1e(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2,"MOD:"),d(),h(3),D(4,"br"),d()),2&t){const e=i.$implicit;c(3),We(" ",null==e?null:e.firstName," ",null==e?null:e.lastName," ")}}function z1e(t,i){if(1&t&&(l(0,"div"),p(1,G1e,5,2,"div",51),d()),2&t){const e=b(4);c(1),f("ngForOf",e.matchStaff.assignedModerators)}}function W1e(t,i){if(1&t&&(l(0,"div",50),p(1,j1e,4,2,"div",17),p(2,z1e,2,1,"div",17),d()),2&t){const e=b(3);c(1),f("ngIf",null==e.matchStaff?null:e.matchStaff.assignedReporter),c(1),f("ngIf",(null==e.matchStaff||null==e.matchStaff.assignedModerators?null:e.matchStaff.assignedModerators.length)>0)}}function q1e(t,i){1&t&&h(0,"Reporters/Moderators")}function Y1e(t,i){if(1&t){const e=F();l(0,"span")(1,"button",46)(2,"mat-icon",47),M("click",function(){return E(e),I(b(2).openDialog())}),h(3,"info"),d(),p(4,W1e,3,2,"ng-template",null,48,Nt),p(6,q1e,1,0,"ng-template",null,49,Nt),d()()}if(2&t){const e=X(5),n=X(7);c(2),f("ngbPopover",e)("popoverTitle",n)}}function Q1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"timer"),d())}function Z1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"timer_off"),d())}function K1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"fast_rewind"),d())}function X1e(t,i){1&t&&(l(0,"mat-icon"),h(1,"remove_circle"),d())}function J1e(t,i){if(1&t){const e=F();l(0,"span")(1,"button",18),M("click",function(){E(e);const o=b(2);return o.showTimeForm=!o.showTimeForm,I(o.showResetHalfForm=!1)}),p(2,Q1e,2,0,"mat-icon",17),p(3,Z1e,2,0,"mat-icon",17),d(),l(4,"button",18),M("click",function(){E(e);const o=b(2);return o.showResetHalfForm=!o.showResetHalfForm,I(o.showTimeForm=!1)}),p(5,K1e,2,0,"mat-icon",17),p(6,X1e,2,0,"mat-icon",17),d()()}if(2&t){const e=b(2);c(2),f("ngIf",!e.showTimeForm),c(1),f("ngIf",e.showTimeForm),c(2),f("ngIf",!e.showResetHalfForm),c(1),f("ngIf",e.showResetHalfForm)}}function ebe(t,i){if(1&t){const e=F();l(0,"p",52)(1,"mat-form-field",53)(2,"mat-label",19),h(3),C(4,"translate"),d(),l(5,"input",54),M("ngModelChange",function(o){return E(e),I(b(2).newMatchClock=o)}),d(),l(6,"button",55),M("click",function(){return E(e),I(b(2).saveNewMatchClock())}),l(7,"mat-icon"),h(8,"save"),d()(),l(9,"mat-hint",19),h(10),C(11,"translate"),d()()()}if(2&t){const e=b(2);c(3),O(w(4,4,"general_reset_match_time")),c(2),f("placeholder","football"==(null==e.match.sport?null:e.match.sport.name)?"000:00":"00:00")("ngModel",e.newMatchClock),c(5),O(w(11,6,"general_reset_match_time_hint"))}}function tbe(t,i){if(1&t&&(l(0,"mat-option",64),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T(" ",e.name," ")}}function nbe(t,i){if(1&t){const e=F();l(0,"mat-form-field",61)(1,"mat-select",62),M("valueChange",function(o){return E(e),I(b(3).selectedComment=o)}),p(2,tbe,2,2,"mat-option",63),d()()}if(2&t){const e=b(3);c(1),f("value",e.selectedComment),c(1),f("ngForOf",e.comments)}}function ibe(t,i){if(1&t){const e=F();l(0,"mat-form-field",65)(1,"input",66),M("ngModelChange",function(o){return E(e),I(b(3).commentValue=o)}),d()()}if(2&t){const e=b(3);c(1),f("ngModel",e.commentValue)}}function obe(t,i){if(1&t){const e=F();l(0,"div",67),h(1,"Confirmation"),d(),l(2,"div",68),h(3,"Are you sure you want to send the comment?"),d(),l(4,"div",69)(5,"button",70),M("click",function(){return E(e),I(b(3).dialogRef.close())}),h(6,"Cancel"),d(),l(7,"button",40),M("click",function(){E(e);const o=b(3);return I(o.sendCommentClick(o.commentValue))}),h(8,"Confirm"),d()()}}function sbe(t,i){if(1&t){const e=F();l(0,"p",56),p(1,nbe,3,2,"mat-form-field",57),p(2,ibe,2,1,"mat-form-field",58),l(3,"button",59),M("click",function(){return E(e),I(b(2).confirmSendComment())}),h(4,"Send Comment Event"),d(),p(5,obe,9,0,"ng-template",null,60,Nt),d()}if(2&t){const e=b(2);c(1),f("ngIf",e.showSendCommentForm),c(1),f("ngIf",0==e.selectedComment.id)}}function abe(t,i){if(1&t){const e=F();l(0,"div",67),h(1,"Confirmation"),d(),l(2,"div",68),h(3,"Are you sure you want to reset the half to before kick off? "),d(),l(4,"div",69)(5,"button",70),M("click",function(){return E(e),I(b(3).dialogRef.close())}),h(6,"Cancel"),d(),l(7,"button",40),M("click",function(){return E(e),I(b(3).resetHalfClick())}),h(8,"Confirm"),d()()}}function rbe(t,i){if(1&t){const e=F();l(0,"p")(1,"button",59),M("click",function(){return E(e),I(b(2).confirmResetHalf())}),h(2,"Reset Half To Before Kick Off"),d(),p(3,abe,9,0,"ng-template",null,60,Nt),d()}}function lbe(t,i){if(1&t&&(ai(),vo(),D(0,"app-visual-pitch",71)),2&t){const e=b(2);f("VEvent",e.visualEvent)("Sport",e.match.sport.name)}}function cbe(t,i){1&t&&(l(0,"th",91),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function dbe(t,i){if(1&t&&(l(0,"td",92),h(1),D(2,"br"),h(3),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClass(e)+" "+n.rowClassExtra(e)),c(1),T(" ",e.id,""),c(2),O(n.rowClass(e,!0))}}function ube(t,i){1&t&&(l(0,"th",93),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function hbe(t,i){if(1&t&&(l(0,"td",94),h(1),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),T(" ",e.timeServer?n.getformatedDate(e.timeServer):""," ")}}function pbe(t,i){1&t&&(l(0,"th",95),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time_match")," "))}function mbe(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit;Ln(b(3).rowClassExtra(e)),c(1),T(" ",e.timeMatch," ")}}function fbe(t,i){1&t&&(l(0,"th",96),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_event")," "))}function _be(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),T(" ",n.getEvent(e)," ")}}function gbe(t,i){1&t&&(l(0,"th",97),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"Value")," "))}function bbe(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit;Ln(b(3).rowClassExtra(e)),c(1),T(" ",e.value?e.value:""," ")}}function vbe(t,i){1&t&&(l(0,"th",97),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_reporter")," "))}function ybe(t,i){if(1&t&&(l(0,"td",92),h(1),d()),2&t){const e=i.$implicit;Ln(b(3).rowClassExtra(e)),c(1),T(" ",e.reporter?e.reporter.firstName:""," ")}}function Cbe(t,i){1&t&&(l(0,"th",98),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function wbe(t,i){if(1&t){const e=F();l(0,"span")(1,"button",18),M("click",function(){E(e);const o=b().$implicit;return I(b(3).openEditDialog(o))}),l(2,"mat-icon",10),h(3,"create"),d()()()}}function Sbe(t,i){if(1&t&&(l(0,"td",92),p(1,wbe,4,0,"span",17),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),f("ngIf",1==n.isEditableEvent(e))}}function Tbe(t,i){1&t&&(l(0,"th",98),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Dbe(t,i){if(1&t){const e=F();l(0,"span")(1,"button",18),M("click",function(){E(e);const o=b().$implicit;return I(b(3).openDeleteDialog(o))}),l(2,"mat-icon",10),h(3,"delete"),d()()()}}function Mbe(t,i){if(1&t&&(l(0,"td",92),p(1,Dbe,4,0,"span",17),d()),2&t){const e=i.$implicit,n=b(3);Ln(n.rowClassExtra(e)),c(1),f("ngIf",1==n.isDeleteableEvent(e))}}function xbe(t,i){1&t&&D(0,"tr",99)}function Ebe(t,i){1&t&&D(0,"tr",100)}function Ibe(t,i){if(1&t&&(l(0,"table",72),A(1,73),p(2,cbe,3,3,"th",74),p(3,dbe,4,4,"td",75),P(),A(4,76),p(5,ube,3,3,"th",77),p(6,hbe,2,3,"td",78),P(),A(7,79),p(8,pbe,3,3,"th",80),p(9,mbe,2,3,"td",75),P(),A(10,81),p(11,fbe,3,3,"th",82),p(12,_be,2,3,"td",75),P(),A(13,83),p(14,gbe,3,3,"th",84),p(15,bbe,2,3,"td",75),P(),A(16,85),p(17,vbe,3,3,"th",84),p(18,ybe,2,3,"td",75),P(),A(19,86),p(20,Cbe,3,3,"th",87),p(21,Sbe,2,3,"td",75),P(),A(22,88),p(23,Tbe,3,3,"th",87),p(24,Mbe,2,3,"td",75),P(),p(25,xbe,1,0,"tr",89),p(26,Ebe,1,0,"tr",90),d()),2&t){const e=b(2);f("dataSource",e.dataSource),c(25),f("matHeaderRowDef",e.columnsToDisplay)("matHeaderRowDefSticky",!0),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function Obe(t,i){1&t&&(l(0,"div",101),D(1,"mat-spinner",102),d())}function Rbe(t,i){1&t&&(l(0,"div",101)(1,"mat-icon",103),h(2,"done"),d()())}function kbe(t,i){1&t&&(l(0,"div",101)(1,"mat-icon",104),h(2,"clear"),d()())}function Abe(t,i){if(1&t){const e=F();l(0,"div",3),p(1,P1e,10,7,"mat-card",4),l(2,"div",5),D(3,"app-info-section",6),l(4,"div",7),p(5,N1e,5,3,"button",8),l(6,"a",9)(7,"mat-icon",10),h(8,"mobile_screen_share"),d(),h(9),C(10,"translate"),d(),p(11,F1e,3,3,"button",11),p(12,L1e,3,3,"button",12),p(13,B1e,3,3,"button",13),p(14,V1e,3,3,"button",14),p(15,H1e,3,3,"button",15),l(16,"button",16),M("click",function(){E(e);const o=b();return o.showSendCommentForm=!o.showSendCommentForm,o.showResetHalfForm=!1,I(o.showTimeForm=!1)}),p(17,U1e,2,0,"mat-icon",17),p(18,$1e,2,0,"mat-icon",17),d(),p(19,Y1e,8,2,"span",17),l(20,"button",18),M("click",function(){E(e);const o=b();return I(o.copyToClipboard(o.match))}),l(21,"mat-icon",19),h(22,"content_copy"),d()(),l(23,"button",18),M("click",function(){return E(e),I(b().openMatchNoteDialog())}),l(24,"mat-icon",19),h(25,"notes"),d()()(),l(26,"p",20),p(27,J1e,7,4,"span",17),d(),p(28,ebe,12,8,"p",21),p(29,sbe,7,2,"p",22),p(30,rbe,5,0,"p",17),l(31,"div",23)(32,"span",24)(33,"div",25),ai(),l(34,"svg",26),D(35,"use",27),d(),l(36,"svg",28),D(37,"use",29),d()(),p(38,lbe,1,2,"app-visual-pitch",30),vo(),l(39,"div",25),ai(),l(40,"svg",26),D(41,"use",27),d(),l(42,"svg",28),D(43,"use",29),d()()()(),vo(),l(44,"div",31)(45,"div",32)(46,"div",33),p(47,Ibe,27,4,"table",34),d()()()(),D(48,"app-info-section",35),p(49,Obe,2,0,"div",36),p(50,Rbe,3,0,"div",36),p(51,kbe,3,0,"div",36),d()}if(2&t){const e=b();c(1),f("ngIf",e.showCallMeNotification()),c(2),f("match",e.match)("matchForStats",e.match)("refereeList",e.refereeList)("homeMatchLineup",e.homeMatchLineup)("awayMatchLineup",e.awayMatchLineup)("events",e.events)("showHeader",!e.showContainer)("showStats",!1),c(2),f("ngIf",e.showContainer),c(1),f("href",e.getMobileCoverageURL(e.matchId),kt),c(3),T(" ",w(10,47,"general_cover")," "),c(2),f("ngIf",e.match&&!0===e.match.closedGame),c(1),f("ngIf",e.match&&!e.match.closedGame),c(1),f("ngIf",e.match&&!0===e.match.masterClosedGame),c(1),f("ngIf",e.match&&!e.match.masterClosedGame),c(1),f("ngIf",e.match&&e.match.trainingMatch),c(2),f("ngIf",!e.showSendCommentForm),c(1),f("ngIf",e.showSendCommentForm),c(1),f("ngIf",e.IsAllowedUserType()),c(8),f("ngIf",1==e.match.masterClosedGame),c(1),f("ngIf",e.showTimeForm&&e.match.masterClosedGame),c(1),f("ngIf",e.showSendCommentForm&&!e.showResetHalfForm&&!e.showTimeForm),c(1),f("ngIf",e.showResetHalfForm&&e.match.masterClosedGame),c(5),it("fill",e.match.homeColorPrimary?e.match.homeColorPrimary:"white"),c(2),it("fill",e.match.homeColorSecondary?e.match.homeColorSecondary:"white"),c(1),f("ngIf",e.showVisualPitch),c(3),it("fill",e.match.awayColorPrimary?e.match.awayColorPrimary:"white"),c(2),it("fill",e.match.awayColorSecondary?e.match.awayColorSecondary:"white"),c(2),Ln(e.blinkingTable?"glowTable":""),c(2),f("ngIf",0==e.onProgress),c(1),f("match",e.match)("matchForStats",e.match)("refereeList",e.refereeList)("homeMatchLineup",e.homeMatchLineup)("awayMatchLineup",e.awayMatchLineup)("events",e.events)("showHeader",e.showContainer)("showStats",!0),c(1),f("ngIf",1==e.onProgress),c(1),f("ngIf",2==e.onProgress),c(1),f("ngIf",3==e.onProgress)}}const Pbe=function(t){return{"background-image-container-basketball":t}};let Nbe=(()=>{class t{constructor(e,n,o,s,a,r,u,m,g,y){this.clipboard=e,this.dialog=n,this.breakpointObserver=o,this.matchesService=s,this.cookieService=a,this.http=r,this.updateDialog=u,this.snackBar=m,this.route=g,this.translateService=y,this.matchStaff={assignedReporter:null,assignedModerators:[]},this.dialogRef=null,this.onProgress=0,this.matchClock="00:00",this.matchId=null,this.match=new da,this.columnsToDisplay=["id","timeServer","timeMatch","event","reporter"],this.lastRefresh=null,this.keepFetchingData=!0,this.dismissCallMeDate=null,this.audio=new Audio,this.showTimeForm=!1,this.newMatchClock="",this.visualEvent=null,this.showVisualPitch=!0,this.msDiff=0,this.events=[],this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.showContainer=!1,this.showSendCommentForm=!1,this.commentValue="",this.comments=[{id:0,name:"Custom"},{id:100,name:"Delayed"},{id:101,name:"Cancelled"},{id:102,name:"Postponed"},{id:103,name:"Abandoned"},{id:104,name:"Interrupted"},{id:105,name:"Resumed"},{id:106,name:"Technical Problems"}],this.selectedComment=this.comments[0],this.showResetHalfForm=!1,this.blinkingTable=!1,this.audio.src="../../../assets/audio/got-it-done.ogg",this.audio.load()}ngAfterViewInit(){this.IsAllowedUserType()&&(this.matchStaffService=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/staff",this.http),this.matchStaffService.getAllObservable(v.token,v.userId).subscribe(e=>{this.matchStaff=e}))}openDialog(){this.dialog.open(GF,{data:{reporter:this.matchStaff?.assignedReporter||null,moderators:this.matchStaff?.assignedModerators||[]},panelClass:"reporter-info-dialog"})}openMatchNoteDialog(){this.dialog.open(x1e,{data:{matchId:this.match?.id||null},panelClass:"match-note-info-dialog"})}set content(e){this.dataSource&&(this.dataSource.sort=e)}confirmResetHalf(){this.dialogRef=this.dialog.open(this.confirmDialog)}confirmSendComment(){this.dialogRef=this.dialog.open(this.confirmDialog)}getMinsAndSecFromClock(){let e=this.matchClock.split(":");return{Minutes:+e[0],Seconds:+e[1]}}copyToClipboard(e){this.openSnackbar("Copied to clipboard");const n=this.matchesService.formatMatchDetails(e);this.clipboard.copy(n)}openSnackbar(e){this.snackBar.open(e,"",{duration:v.snackBarDuration})}sendCommentClick(e){let n=0;0!=this.selectedComment.id&&(e=this.selectedComment.name,n=this.selectedComment.id),this.matchEventsUpdateService.create(this.getSendCommentEvent(e,n)).subscribe({next:o=>{this.showSendCommentForm=!1,this.snackBar.open("Comment Sent","",{duration:v.snackBarDuration})},error:o=>{console.log(o),this.snackBar.open("Comment Failed To Send","",{duration:v.snackBarDuration})}}),this.dialogRef&&this.dialogRef.close()}resetHalfClick(){const e=JSON.parse(JSON.stringify(this.match));e.footballStat&&(this.match.matchInfo.matchGoingPenalties||(this.match.matchInfo.isSecondExtraHalfStarted&&!this.match.matchInfo.isSecondExtraHalfFinished?(e.footballStat.reporterStart2ndExtraTime=null,e.footballStat.reporterEnd2ndExtraTime=null,e.footballStat.serverStart2ndExtraTime=null,e.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isFirstExtraHalfFinished&&!this.match.matchInfo.isSecondExtraHalfStarted||(this.match.matchInfo.isFirstExtraHalfStarted&&!this.match.matchInfo.isFirstExtraHalfFinished?(e.footballStat.reporterStart1stExtraTime=null,e.footballStat.reporterEnd1stExtraTime=null,e.footballStat.reporterStart2ndExtraTime=null,e.footballStat.reporterEnd2ndExtraTime=null,e.footballStat.serverStart1stExtraTime=null,e.footballStat.serverEnd1stExtraTime=null,e.footballStat.serverStart2ndExtraTime=null,e.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isSecondHalfFinished&&!this.match.matchInfo.isFirstExtraHalfStarted||(this.match.matchInfo.isSecondHalfStarted&&!this.match.matchInfo.isSecondHalfFinished?(e.footballStat.reporterStart2ndTime=null,e.footballStat.reporterEnd2ndTime=null,e.footballStat.reporterStart1stExtraTime=null,e.footballStat.reporterEnd1stExtraTime=null,e.footballStat.reporterStart2ndExtraTime=null,e.footballStat.reporterEnd2ndExtraTime=null,e.footballStat.serverStart2ndTime=null,e.footballStat.serverEnd2ndTime=null,e.footballStat.serverStart1stExtraTime=null,e.footballStat.serverEnd1stExtraTime=null,e.footballStat.serverStart2ndExtraTime=null,e.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isFirstHalfFinished&&!this.match.matchInfo.isSecondHalfStarted||this.match.matchInfo.isMatchStarted&&!this.match.matchInfo.isFirstHalfFinished&&(e.footballStat.reporterStartTime=null,e.footballStat.reporterEnd1stTime=null,e.footballStat.reporterStart2ndTime=null,e.footballStat.reporterEnd2ndTime=null,e.footballStat.reporterStart1stExtraTime=null,e.footballStat.reporterEnd1stExtraTime=null,e.footballStat.reporterStart2ndExtraTime=null,e.footballStat.reporterEnd2ndExtraTime=null,e.footballStat.serverStartTime=null,e.footballStat.serverEnd1stTime=null,e.footballStat.serverStart2ndTime=null,e.footballStat.serverEnd2ndTime=null,e.footballStat.serverStart1stExtraTime=null,e.footballStat.serverEnd1stExtraTime=null,e.footballStat.serverStart2ndExtraTime=null,e.footballStat.serverEnd2ndExtraTime=null)))),this.serviceTime.put(e).subscribe({next:n=>{this.match=n,this.matchEventsUpdateService.create(this.getSendCommentEvent("Match Half Reset To Before Kick Off",0)).subscribe({next:o=>{this.match=o},error:o=>{console.log(o)}}),this.openSnackbar("Half Reset")},error:n=>{console.log(n),this.openSnackbar("failed")}})),this.dialogRef&&this.dialogRef.close()}getSendCommentEvent(e,n=0){let{Minutes:o,Seconds:s}=this.getMinsAndSecFromClock(),a=new Un;return a.name=ge.Comment,a.timeMatch=o.toString().padStart(2,"0")+":"+s.toString().padStart(2,"0"),a.value=e,a.type=n,a.sport=this.match.sport?.name?.toLowerCase(),a.reporter={id:v.userId},a.timeReporter=new Date,a.match={id:this.matchId},a}IsAllowedUserType(){switch(v.userType){case 0:case 1:case 3:return!0;default:return!1}}getMobileCoverageURL(e){return"football"==this.match.sport?.name.toLowerCase()?v.mobileCoverageURL+"?matchId="+e+"&userId="+v.userId+"&token="+v.token:"basketball"==this.match.sport?.name.toLowerCase()?v.mobileCoverageURL_B+"?matchId="+e+"&userId="+v.userId+"&token="+v.token:""}ngOnInit(){this.onProgress=0,this.clearIntervals(),this.route.paramMap.subscribe(e=>{if(e.get("matchId")){this.matchId=+e.get("matchId"),this.serviceClear=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/clear",this.http),this.matchEventsSyncService=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/matchEvents",this.http),this.matchEventsUpdateService=new Q(v.apiURLs.adapterCoverageURL+"matches/"+this.matchId+"/matchEvents",this.http),this.serviceTime=new Q(v.apiURLs.rootURL+"matches/time",this.http),this.matchEventsSyncService.getAllObservable(v.token,v.userId).subscribe({next:o=>{this.match=o.match},error:o=>{console.log(o)}});const n=+function fue(t,i,e){return i.get(t.cookies.callme+e)}(v,this.cookieService,this.matchId);n&&(this.dismissCallMeDate=new Date(n)),this.clockRefreshId=setInterval(()=>this.updateMatchClock(),v.matchClockRefreshDelay),this.startAutoRefresh()}}),this.breakpointObserver.observe(["(min-width: 768px)"]).subscribe(e=>{this.showContainer=!!e.matches})}startAutoRefresh(){this.keepFetchingData=!0,this.refreshId=setInterval(()=>this.fetchData(),v.eventsRefreshDelay)}ngOnDestroy(){this.keepFetchingData=!1,this.resetMatchParams()}resetMatchParams(){this.msDiff=0,this.matchId=0,this.match=new da,this.matchClock="00:00",this.events=[],this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.dataSource=new ke(this.events),this.lastRefresh=null,this.keepFetchingData=!0,this.clearIntervals()}clearIntervals(){clearInterval(this.refreshId),clearInterval(this.clockRefreshId)}setRowColorClass(e){return e.team?"H"===e.team?"bg-color-home color-home":"bg-color-away color-away":""}isEventChildUnconfirmed(e){let n=!1;return e&&Array.isArray(e.__directChildren__)&&0==e.__directChildren__?.length&&(e.status===Un.STATUS_WAITING&&e.name!==ge.VAR||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Penalty&&!e.type||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Card&&!e.type)&&(n=!0),n}rowClassExtra(e){let n="";const o=this.isEventChildUnconfirmed(e);return n+=this.setRowColorClass(e),o&&(n+=e.team?"H"===e.team?" glowRedHome":" glowRedAway":" glowRed"),n}rowClass(e,n){if(e?.parentMatchEvent){if(n){let o="";return o+=" "+e.parentMatchEvent.id,"Child of"+o}return"old_event"}return""}matchOpenClose(e,n){this.onProgress=1;let o=new Un;e?(o.status=Un.STATUS_CLOSE,o.name=ge.CloseGame):(o.status=Un.STATUS_OPEN,o.name=ge.OpenGame),n?o.type=Ns.CloseOpenGameMaster.id:"football"==this.match.sport?.name.toLowerCase()?o.type=Ht.PossibleUnsure.id:"basketball"==this.match.sport?.name.toLowerCase()&&(o.type=0),o.timeMatch=this.matchClock,o.sport=this.match.sport?.name?.toLowerCase(),o.reporter={id:v.userId},o.timeReporter=new Date,o.match={id:this.matchId},this.matchEventsUpdateService.create(o).subscribe({next:s=>{this.onProgress=2,this.ngOnInit()},error:s=>{this.onProgress=3,this.ngOnInit()}}),setTimeout(()=>this.onProgress=0,v.delaySuccessMessage)}getActiveTime(e){return new Date(e).toString()}dismissCallMe(){this.audio.pause(),this.dismissCallMeDate=new Date,this.matchId&&function mue(t,i,e,n){i.set(t.cookies.callme+e,""+n,.3,"/","",!0,"Strict")}(v,this.cookieService,this.matchId,this.dismissCallMeDate.getTime())}shouldShowCallMe(){return!(!this.match?.reporterCommunication||!this.match.reporterCommunication.lastCallMeRequestTime||this.dismissCallMeDate&&!(new Date(this.match.reporterCommunication.lastCallMeRequestTime).getTime()+this.msDiff>this.dismissCallMeDate.getTime()))}showCallMeNotification(){return!!this.shouldShowCallMe()&&(this.audio.play(),!0)}get pauseButtonColor(){return this.keepFetchingData?"":"primary"}get playButtonColor(){return this.keepFetchingData?"primary":""}fetchData(e){this.keepFetchingData||e?(this.lastRefresh=new Date,this.matchEventsSyncService.getAllObservable(v.token,v.userId,"&size="+this.events.length).subscribe({next:n=>{let o=n;if(o?.events?.length>0){const s={...this.match.matchInfo};if(o.match.matchInfo=s,"string"==typeof o.match.refereeList&&(this.refereeList=JSON.parse(o.match.refereeList)),Array.isArray(o.events)&&o.events[0]&&o.events.length!==this.events.length){if(1==o.events.length)o.events[0].name==ge.LineupChange&&(o.events[0].team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest)):(this.awayMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest)));else{const a={blinking:!1};o.events.sort((r,u)=>{if(r.name==ge.Substitution&&u.name==ge.Substitution){if(-1!=r.value?.indexOf("[")){let m=JSON.parse(r.value);r.value=m}if(-1!=u.value?.indexOf("[")){let m=JSON.parse(u.value);u.value=m}}return u.name==ge.LineupChange&&(u.team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(u.value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(u.value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(u.value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(u.value).rest)):(this.awayMatchLineup.formation=JSON.parse(u.value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(u.value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(u.value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(u.value).rest))),(this.isEventChildUnconfirmed(r)||this.isEventChildUnconfirmed(u))&&(a.blinking=!0),u.id-r.id}),this.blinkingTable=a.blinking}this.events=o.events,this.visualEvent=o.events[0],(null==this.msDiff||0==this.msDiff)&&o.now&&(this.msDiff=(new Date).getTime()-new Date(o.now).getTime()),"football"==o.match.sport?.name.toLowerCase()?o.match.matchInfo=Yg(o.match,o.events):"basketball"==o.match.sport?.name.toLowerCase()&&(o.match.matchInfo=qg(o.match,o.events)),this.match=o.match,this.dataSource=new ke(this.events)}}if(this.match){const s={...this.match};this.matchStaff?.assignedReporter&&(s.assignedReporter=this.matchStaff.assignedReporter),this.matchStaff?.assignedModerators?.length&&this.matchStaff.assignedModerators.length>0&&(s.assignedModerators=this.matchStaff.assignedModerators),this.match=s}},error:n=>{console.log(n)}})):clearInterval(this.refreshId)}getformatedDate(e){const n=new Date(e);return`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`}get dataSize(){return 0}getEvent(e){return"football"==this.match.sport?.name.toLowerCase()?Ww(e,this.translateService):"basketball"==this.match.sport?.name.toLowerCase()?zw(e,this.translateService):void 0}getTranslatedName(e){return"en"==this.translateService.currentLang?e?.name.toUpperCase():e?.foreignName?e.foreignName.toUpperCase():e.name.toUpperCase()}updateMatchClock(){this.match&&(this.matchClock=Ep(this.match,this.msDiff))}getBasketballQuarterNumber(){if(this.match?.basketballStat){if(this.match.basketballStat.firstQuarterStartTime&&!this.match.basketballStat.firstQuarterEndTime)return 1;if(this.match.basketballStat.secondQuarterStartTime&&!this.match.basketballStat.secondQuarterEndTime)return 2;if(this.match.basketballStat.thirdQuarterStartTime&&!this.match.basketballStat.thirdQuarterEndTime)return 3;if(this.match.basketballStat.fourthQuarterStartTime&&!this.match.basketballStat.fourthQuarterEndTime)return 4;if(this.match.basketballStat.firstOvertimeStartTime&&!this.match.basketballStat.firstOvertimeEndTime)return 5;if(this.match.basketballStat.secondOvertimeStartTime&&!this.match.basketballStat.secondOvertimeEndTime)return 6;if(this.match.basketballStat.thirdOvertimeStartTime&&!this.match.basketballStat.thirdOvertimeEndTime)return 7;if(this.match.basketballStat.fourthOvertimeStartTime&&!this.match.basketballStat.fourthOvertimeEndTime)return 8;if(this.match.basketballStat.fifthOvertimeStartTime&&!this.match.basketballStat.fifthOvertimeEndTime)return 9}return 1}getTimeAdjustMatchEvent(e,n){let o=new Un;o.name=ge.TimeAdjust,o.status=this.match.basketballStat?.timerRunning?1:0,o.type=null,o.team=null,o.quarter=this.getBasketballQuarterNumber();const s=1e3*(60*e+n),r=this.match.basketballStat?.periodLength??10,u=60*r*1e3;if(s<0)throw new Error("Time cannot be negative");if(s>u)throw new Error(`Time cannot exceed period length of ${r} minutes`);return o.value=`TA|MS|${s}`,o.timeMatch=`${e.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`,o.reporter={id:v.userId},o.timeReporter=new Date,o.match={id:this.matchId},o}saveNewMatchClock(){let e=this.newMatchClock.split(":");if(2===e.length&&!isNaN(+e[0])&&!isNaN(+e[1])&&+e[1]<60){let n=+e[0],o=+e[1],{Minutes:s,Seconds:a}=this.getMinsAndSecFromClock(),r=1e3*(60*n-60*s+(o-a));const u=JSON.parse(JSON.stringify(this.match));u.footballStat?(this.match.matchInfo.matchGoingPenalties||(this.match.matchInfo.isSecondExtraHalfStarted&&!this.match.matchInfo.isSecondExtraHalfFinished?(u.footballStat.reporterStart2ndExtraTime=this.match.footballStat?.reporterStart2ndExtraTime?new Date(new Date(this.match.footballStat?.reporterStart2ndExtraTime).getTime()-r):null,u.footballStat.reporterEnd2ndExtraTime=null,u.footballStat.serverStart2ndExtraTime=this.match.footballStat?.serverStart2ndExtraTime?new Date(new Date(this.match.footballStat?.serverStart2ndExtraTime).getTime()-r):null,u.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isFirstExtraHalfFinished&&!this.match.matchInfo.isSecondExtraHalfStarted||(this.match.matchInfo.isFirstExtraHalfStarted&&!this.match.matchInfo.isFirstExtraHalfFinished?(u.footballStat.reporterStart1stExtraTime=this.match.footballStat?.reporterStart1stExtraTime?new Date(new Date(this.match.footballStat?.reporterStart1stExtraTime).getTime()-r):null,u.footballStat.reporterEnd1stExtraTime=null,u.footballStat.reporterStart2ndExtraTime=null,u.footballStat.reporterEnd2ndExtraTime=null,u.footballStat.serverStart1stExtraTime=this.match.footballStat?.serverStart1stExtraTime?new Date(new Date(this.match.footballStat?.serverStart1stExtraTime).getTime()-r):null,u.footballStat.serverEnd1stExtraTime=null,u.footballStat.serverStart2ndExtraTime=null,u.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isSecondHalfFinished&&!this.match.matchInfo.isFirstExtraHalfStarted||(this.match.matchInfo.isSecondHalfStarted&&!this.match.matchInfo.isSecondHalfFinished?(u.footballStat.reporterStart2ndTime=this.match.footballStat?.reporterStart2ndTime?new Date(new Date(this.match.footballStat?.reporterStart2ndTime).getTime()-r):null,u.footballStat.reporterEnd2ndTime=null,u.footballStat.reporterStart1stExtraTime=null,u.footballStat.reporterEnd1stExtraTime=null,u.footballStat.reporterStart2ndExtraTime=null,u.footballStat.reporterEnd2ndExtraTime=null,u.footballStat.serverStart2ndTime=this.match.footballStat?.serverStart2ndTime?new Date(new Date(this.match.footballStat?.serverStart2ndTime).getTime()-r):null,u.footballStat.serverEnd2ndTime=null,u.footballStat.serverStart1stExtraTime=null,u.footballStat.serverEnd1stExtraTime=null,u.footballStat.serverStart2ndExtraTime=null,u.footballStat.serverEnd2ndExtraTime=null):this.match.matchInfo.isFirstHalfFinished&&!this.match.matchInfo.isSecondHalfStarted||(this.match.matchInfo.isMatchStarted&&!this.match.matchInfo.isFirstHalfFinished?(u.footballStat.reporterStartTime=this.match.footballStat?.reporterStartTime?new Date(new Date(this.match.footballStat?.reporterStartTime).getTime()-r):null,u.footballStat.reporterEnd1stTime=null,u.footballStat.reporterStart2ndTime=null,u.footballStat.reporterEnd2ndTime=null,u.footballStat.reporterStart1stExtraTime=null,u.footballStat.reporterEnd1stExtraTime=null,u.footballStat.reporterStart2ndExtraTime=null,u.footballStat.reporterEnd2ndExtraTime=null,u.footballStat.serverStartTime=this.match.footballStat?.serverStartTime?new Date(new Date(this.match.footballStat?.serverStartTime).getTime()-r):null,u.footballStat.serverEnd1stTime=null,u.footballStat.serverStart2ndTime=null,u.footballStat.serverEnd2ndTime=null,u.footballStat.serverStart1stExtraTime=null,u.footballStat.serverEnd1stExtraTime=null,u.footballStat.serverStart2ndExtraTime=null,u.footballStat.serverEnd2ndExtraTime=null):(u.footballStat.reporterStartTime=null,u.footballStat.reporterEnd1stTime=null,u.footballStat.reporterStart2ndTime=null,u.footballStat.reporterEnd2ndTime=null,u.footballStat.reporterStart1stExtraTime=null,u.footballStat.reporterEnd1stExtraTime=null,u.footballStat.reporterStart2ndExtraTime=null,u.footballStat.reporterEnd2ndExtraTime=null,u.footballStat.serverStartTime=null,u.footballStat.serverEnd1stTime=null,u.footballStat.serverStart2ndTime=null,u.footballStat.serverEnd2ndTime=null,u.footballStat.serverStart1stExtraTime=null,u.footballStat.serverEnd1stExtraTime=null,u.footballStat.serverStart2ndExtraTime=null,u.footballStat.serverEnd2ndExtraTime=null))))),this.serviceTime.put(u).subscribe({next:m=>{this.match=m,this.matchEventsSyncService.put(this.getTimeMatchEvent(n,o,r)).subscribe({next:g=>{this.match=g,this.showTimeForm=!1,this.newMatchClock=""},error:g=>{console.log(g)}}),this.openSnackbar(this.newMatchClock)},error:m=>{console.log(m),this.openSnackbar("failed")}})):u.basketballStat?this.matchEventsUpdateService.create(this.getTimeAdjustMatchEvent(n,o)).subscribe({next:m=>{},error:m=>{console.log(m)}}):this.openSnackbar(this.translateService.instant("message_error_wrong_clock"))}else this.openSnackbar(this.translateService.instant("message_error_wrong_clock"))}getTimeMatchEvent(e,n,o){let s=new Un;return s.name=ge.TimeAdjust,s.timeMatch=e.toString().padStart(2,"0")+":"+n.toString().padStart(2,"0"),s.type=o<0?Ht.TimeAdjustDecrease.id:Ht.TimeAdjustIncrease.id,s.reporter={id:v.userId},s.timeReporter=new Date,s.match={id:this.matchId},s}isEditableEvent(e){return!(!e?.__directChildren__||0!=e.__directChildren__.length||e.name!=Te.Goal&&e.name!=ge.LineupChange&&e.name!=Te.Penalty&&e.name!=Te.PenaltyResult&&e.name!=Te.PenaltyShootout&&e.name!=ge.Substitution&&e.name!=Te.Corner&&e.name!=Te.Card&&e.name!=Te.FreeKick&&e.name!=Te.ThrowIn&&e.name!=Te.Shot)}isDeleteableEvent(e){return!(!e?.__directChildren__||0!=e.__directChildren__.length)}clearMatch(){if(null!=this.matchId){const e=this.updateDialog.open(en,{data:{title:null,content:this.translateService.instant("message_confirm_resetting_match"),refId:this.matchId}});e.componentInstance.dialogRef=e,this.onProgress=1,e.afterClosed().subscribe(n=>{if(!0===n){try{this.serviceClear.create({id:this.matchId}).subscribe(),this.resetMatchParams(),this.ngOnInit()}catch(o){console.log(o)}this.onProgress=0}else this.onProgress=0})}}openEditDialog(e){null==e&&((e=new Un).id=null,e.name=""),this.keepFetchingData=!1;const n=this.updateDialog.open(Vfe,{width:"50%",data:[e,this.matchId]});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:this.translateService.instant("message_confirm_delete_event"),refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{if(!0===o){let s={...e};s.id=null,s.parentMatchEvent=e,s.originalMatchEvent=e.originalMatchEvent?e.originalMatchEvent:e,s.status=Un.STATUS_DELETED,s.reporter={id:v.userId},s.match={id:this.match.id},s.player=e.player,s.timeMatch=this.matchClock,s.speed=0,s.index=0,delete s.timeServer,s.value="",this.matchEventsUpdateService.create(s).subscribe({next:a=>{this.onProgress=2,setTimeout(()=>this.onProgress=0,v.delaySuccessMessage)},error:a=>{this.onProgress=3,setTimeout(()=>this.onProgress=0,v.delaySuccessMessage)}})}else this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Qg),_(Wt),_(Ra),_(ua),_(Zh),_(Ee),_(Wt),_(Sn),_(cs),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-matchevents-screen"]],viewQuery:function(n,o){if(1&n&&(ne(A1e,5),ne(Nn,5)),2&n){let s;G(s=z())&&(o.confirmDialog=s.first),G(s=z())&&(o.content=s.first)}},standalone:!0,features:[Z],decls:3,vars:6,consts:[[2,"width","100%","height","100%",3,"ngClass"],[2,"width","100%",3,"matchClock","match"],["class","screen-container",4,"ngIf"],[1,"screen-container"],["class","quadrat","style","margin: 20px;",4,"ngIf"],[1,"middle-container"],[1,"Info",3,"match","matchForStats","refereeList","homeMatchLineup","awayMatchLineup","events","showHeader","showStats"],[2,"display","flex","flex-direction","row","justify-content","center","flex-wrap","wrap","margin-top","0.25em","transform","scale(0.8)"],["mat-raised-button","","color","primary",3,"click",4,"ngIf"],["mat-raised-button","","color","primary","target","_blank",3,"href"],[1,"mat-24"],["mat-raised-button","","class","glowbutton",3,"click",4,"ngIf"],["mat-raised-button","","color","blue",3,"click",4,"ngIf"],["mat-raised-button","","color","warn","class","glowbutton",3,"click",4,"ngIf"],["mat-raised-button","","color","darkblue",3,"click",4,"ngIf"],["mat-raised-button","","color","warn",3,"click",4,"ngIf"],["mat-icon-button","",2,"color","white",3,"click"],[4,"ngIf"],["mat-icon-button","",3,"click"],[2,"color","white"],[2,"display","flex","flex-direction","row","justify-content","space-around","flex-wrap","wrap","margin","0px","color","white"],["style","display: flex; color:white; flex-direction: row; justify-content: center; flex-wrap: wrap; font-size: larger;",4,"ngIf"],["class","me-comment-form",4,"ngIf"],[1,"horizontal-center","MCD"],[1,"horizontal-center"],[1,"vertical-column","cloth-Container"],["width","80","height","80"],["href","/assets/images/shirt.svg#shirt","x","0","y","0",1,"cloth"],["width","48","height","48",2,"margin-top","-0.5em"],["href","/assets/images/short.svg#short","x","0","y","0",1,"cloth"],[3,"VEvent","Sport",4,"ngIf"],[1,"menu-capture"],[1,"events-table-container","main-events"],[2,"overflow","scroll","height","100%","background","white"],["mat-table","","matSort","","class","event-table",3,"dataSource",4,"ngIf"],[1,"Info2",3,"match","matchForStats","refereeList","homeMatchLineup","awayMatchLineup","events","showHeader","showStats"],["class","screen-centered",4,"ngIf"],[1,"quadrat",2,"margin","20px"],[2,"display","flex","flex-direction","row","font-weight","bold","justify-content","space-around","flex-wrap","wrap"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",1,"glowbutton",3,"click"],["mat-raised-button","","color","blue",3,"click"],["mat-raised-button","","color","warn",1,"glowbutton",3,"click"],["mat-raised-button","","color","darkblue",3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-icon-button",""],["width","32px","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",2,"cursor","pointer","color","white",3,"ngbPopover","popoverTitle","click"],["COU_POP",""],["COU_POP_T",""],[2,"width","max-content"],[4,"ngFor","ngForOf"],[2,"display","flex","color","white","flex-direction","row","justify-content","center","flex-wrap","wrap","font-size","larger"],["appearance","outline",2,"color","white"],["matInput","",2,"color","white",3,"placeholder","ngModel","ngModelChange"],["mat-icon-button","","matSuffix","",2,"color","white",3,"click"],[1,"me-comment-form"],["style","margin-right: 1em;","class","me-comment-select",4,"ngIf"],["class","me-comment-input",4,"ngIf"],["mat-raised-button","","color","primary",2,"margin","1em",3,"click"],["confirmDialog",""],[1,"me-comment-select",2,"margin-right","1em"],["placeholder","Select a comment",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"me-comment-input"],["matInput","","placeholder","Enter your comment",3,"ngModel","ngModelChange"],["mat-dialog-title","",2,"margin","1em 0em"],["mat-dialog-content","",2,"margin","1em  0em"],["mat-dialog-actions",""],["mat-button","",3,"click"],[3,"VEvent","Sport"],["mat-table","","matSort","",1,"event-table",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","id",4,"matHeaderCellDef"],["mat-cell","",3,"class",4,"matCellDef"],["matColumnDef","timeServer"],["mat-header-cell","","style","width: 9em;",4,"matHeaderCellDef"],["mat-cell","","style","width: 9em;",3,"class",4,"matCellDef"],["matColumnDef","timeMatch"],["mat-header-cell","","style","width: 6em;",4,"matHeaderCellDef"],["matColumnDef","event"],["mat-header-cell","","style","width: 100em;",4,"matHeaderCellDef"],["matColumnDef","value"],["mat-header-cell","","style","width: 7.5em;",4,"matHeaderCellDef"],["matColumnDef","reporter"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","delete"],["mat-header-row","","style","background-color: white;",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header","id"],["mat-cell",""],["mat-header-cell","",2,"width","9em"],["mat-cell","",2,"width","9em"],["mat-header-cell","",2,"width","6em"],["mat-header-cell","",2,"width","100em"],["mat-header-cell","",2,"width","7.5em"],["mat-header-cell",""],["mat-header-row","",2,"background-color","white"],["mat-row",""],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),D(1,"app-match-event-header",1),p(2,Abe,52,49,"div",2),d()),2&n&&(f("ngClass",zn(4,Pbe,"basketball"==(null==o.match.sport?null:o.match.sport.name.toLowerCase()))),c(1),f("matchClock",o.matchClock)("match",o.match),c(1),f("ngIf",o.IsAllowedUserType()))},dependencies:[HF,Ul,Yw,ce,Qs,qe,le,ta,Fa,Gt,Ft,Ne,Re,Sl,Me,Oe,ut,gt,Ni,Tr,cd,on,Tn,zt,wn,xt,Lt,Mt,wl,rd,zF,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,kd,je,Fe,_e,we],styles:["table[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif}.mat-column-delete[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-errors[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-unitsCount[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], .menu-capture[_ngcontent-%COMP%], .td[_ngcontent-%COMP%], .th[_ngcontent-%COMP%]{text-align:center}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}.Away[_ngcontent-%COMP%], .Home[_ngcontent-%COMP%]{width:40%;flex:0}.example-container[_ngcontent-%COMP%]{display:flex;height:100%;flex:1}.example-sidenav-content[_ngcontent-%COMP%]{display:flex;min-height:100%;min-width:100%;flex:1;flex-direction:column}.middle-container[_ngcontent-%COMP%], .vertical-column[_ngcontent-%COMP%]{flex-direction:column;display:flex}.example-sidenav[_ngcontent-%COMP%]{padding:20px}.vertical-column[_ngcontent-%COMP%]{align-items:center;margin:.3em}mat-drawer-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:row}.mat-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}tr[_ngcontent-%COMP%]{height:30px!important}thead[_ngcontent-%COMP%]{border-radius:15px;background-color:#fff}th[_ngcontent-%COMP%]{font-weight:800}table[_ngcontent-%COMP%]{width:100%;background:0 0;font-weight:500}.screen-container[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;width:100%;height:94%}.events-table-container[_ngcontent-%COMP%]{height:100%;background-color:#d3d3d3;border-radius:15px}.middle-container[_ngcontent-%COMP%]{height:100%;box-shadow:none!important;align-items:center;background:0 0}.table-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.menu-capture[_ngcontent-%COMP%]{display:block;position:relative;height:52%;width:37em}.MCD[_ngcontent-%COMP%]{justify-content:space-evenly;flex-direction:row;width:100%;align-items:center;height:38%;transform:scale(.9)}.Info[_ngcontent-%COMP%]{margin-top:1em}.old_event[_ngcontent-%COMP%]{filter:brightness(.9)}@media only screen and (max-width: 768px){.menu-capture[_ngcontent-%COMP%]{width:auto;height:22em}.MCD[_ngcontent-%COMP%]{transform:scale(.6);height:9.5em}.screen-container[_ngcontent-%COMP%]{flex-direction:column;height:auto}.middle-container[_ngcontent-%COMP%]{height:auto;margin-bottom:1em}.Info[_ngcontent-%COMP%]{margin:0;height:7.5em;transform:scale(.8)}}@media only screen and (min-width: 768px){.menu-capture[_ngcontent-%COMP%]{width:auto;height:22em}.middle-container[_ngcontent-%COMP%]{zoom:.8}.MCD[_ngcontent-%COMP%]{transform:scale(.6);height:9.5em}.screen-container[_ngcontent-%COMP%]{height:90%}.Info2[_ngcontent-%COMP%]{height:auto;transform:scale(1);zoom:.65}.Info[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 992px){.table-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.menu-capture[_ngcontent-%COMP%]{height:52%;width:37em}.MCD[_ngcontent-%COMP%]{height:38%;transform:scale(.9)}.events-table-container[_ngcontent-%COMP%]{height:100%;background-color:#d3d3d3;border-radius:15px}.middle-container[_ngcontent-%COMP%]{height:100%;transform:scale(1);zoom:1}.screen-container[_ngcontent-%COMP%]{height:94%}.Info2[_ngcontent-%COMP%]{height:auto;transform:scale(1);zoom:1}.Info[_ngcontent-%COMP%]{display:none}}"]})}return t})();class WF{constructor(){this.id=null,this.name="",this.isoCode=""}}function Fbe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"br"),l(12,"mat-form-field",5),D(13,"input",9,10),C(15,"translate"),l(16,"mat-hint",8),h(17),d()(),D(18,"mat-divider"),l(19,"p")(20,"button",11),h(21),C(22,"translate"),d(),h(23," \xa0"),l(24,"button",12),M("click",function(){return E(e),I(b().onNoClick())}),h(25),C(26,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(14),o=b();c(2),f("formGroup",o.options),c(2),O(o.title),c(2),N("placeholder",w(8,13,"general_name")),J("maxlength",o.countryNameLimit),c(4),We("",e.value.length," / ",o.countryNameLimit,""),c(3),N("placeholder",w(15,15,"general_isocode")),J("maxlength",o.countryIsoLimit),c(4),We("",n.value.length," / ",o.countryIsoLimit,""),c(3),f("disabled",o.options.invalid),c(1),O(w(22,17,"general_save")),c(4),O(w(26,19,"general_close"))}}function Lbe(t,i){1&t&&(l(0,"div",13),D(1,"mat-spinner",14),d())}function Bbe(t,i){1&t&&(l(0,"div",13)(1,"mat-icon",15),h(2,"done"),d()())}function Vbe(t,i){1&t&&(l(0,"div",13)(1,"mat-icon",16),h(2,"clear"),d()())}let Hbe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new WF),this.service=new Q(v.apiURLs.rootURL+"countries",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],isoCode:[this.entity.isoCode,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"country_add_new":"country_edit")}get countryNameLimit(){return v.stringLimits.countryNameLimit}get countryIsoLimit(){return v.stringLimits.countryIsoCodeLimit}addCountryToConfig(e){if(Array.isArray(v.countries)||(v.countries=[]),e){const n=v.countries.findIndex(o=>e.id===o.id);-1!==n?v.countries[n]=e:v.countries.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.isoCode=this.options.value.isoCode;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addCountryToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addCountryToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-country-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","isoCode","name","isoCode","matInput","","required","",3,"placeholder"],["isoCode",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Fbe,27,21,"div",0),p(1,Lbe,2,0,"div",1),p(2,Bbe,3,0,"div",1),p(3,Vbe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Ube=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-country-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-country-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Hbe]})}return t})();function $be(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function jbe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Gbe(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function zbe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function Wbe(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_isocode")," "))}function qbe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.isoCode," ")}}function Ybe(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function Qbe(t,i){if(1&t){const e=F();l(0,"td",19)(1,"span")(2,"button",20),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function Zbe(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Kbe(t,i){if(1&t){const e=F();l(0,"td",19)(1,"span")(2,"button",20),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function Xbe(t,i){1&t&&D(0,"tr",21)}function Jbe(t,i){1&t&&D(0,"tr",22)}function eve(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,$be,3,3,"th",10),p(3,jbe,2,1,"td",11),P(),A(4,12),p(5,Gbe,3,3,"th",10),p(6,zbe,2,1,"td",11),P(),A(7,13),p(8,Wbe,3,3,"th",10),p(9,qbe,2,1,"td",11),P(),A(10,14),p(11,Ybe,3,3,"th",10),p(12,Qbe,5,0,"td",11),P(),A(13,15),p(14,Zbe,3,3,"th",10),p(15,Kbe,5,0,"td",11),P(),p(16,Xbe,1,0,"tr",16),p(17,Jbe,1,0,"tr",17),d()),2&t){const e=b();f("dataSource",e.dataSource),c(16),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function tve(t,i){1&t&&(l(0,"div",23),D(1,"mat-spinner",24),d())}function nve(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",25),h(2,"done"),d()())}function ive(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",26),h(2,"clear"),d()())}const ove=function(){return[5,10,25,100]};let sve=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","isoCode","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"countries",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"countries"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openEditDialog(e){null==e&&(e=new WF);const n=this.updateDialog.open(Ube,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-countries-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","isoCode"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,eve,18,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,tve,2,0,"div",7),p(9,nve,3,0,"div",7),p(10,ive,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,ove)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class qF{constructor(){this.id=null,this.name="",this.language=null}}function ave(t,i){if(1&t&&(l(0,"mat-option",14),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.languageCode)}}function rve(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"br"),l(12,"mat-form-field",5)(13,"mat-select",9,10),C(15,"translate"),p(16,ave,2,2,"mat-option",11),d()(),D(17,"mat-divider"),l(18,"p")(19,"button",12),h(20),C(21,"translate"),d(),h(22," \xa0"),l(23,"button",13),M("click",function(){return E(e),I(b().onNoClick())}),h(24),C(25,"translate"),d()()()()()}if(2&t){const e=X(7),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,12,"general_name")),J("maxlength",n.regionNameLimit),c(4),We("",e.value.length," / ",n.regionNameLimit,""),c(3),N("placeholder",w(15,14,"general_language")),f("compareWith",n.compareFn),c(3),f("ngForOf",n.languages),c(3),f("disabled",n.options.invalid),c(1),O(w(21,16,"general_save")),c(4),O(w(25,18,"general_close"))}}function lve(t,i){1&t&&(l(0,"div",15),D(1,"mat-spinner",16),d())}function cve(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",17),h(2,"done"),d()())}function dve(t,i){1&t&&(l(0,"div",15)(1,"mat-icon",18),h(2,"clear"),d()())}let uve=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new qF),this.service=new Q(v.apiURLs.rootURL+"regions",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],language:[this.entity.language,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"region_add_new":"region_edit")}get languages(){return v.languages}get regionNameLimit(){return v.stringLimits.regionNameLimit}addRegionToConfig(e){if(Array.isArray(v.regions)||(v.regions=[]),e){const n=v.regions.findIndex(o=>e.id===o.id);-1!==n?v.regions[n]=e:v.regions.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.language=this.options.value.language;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addRegionToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addRegionToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-region-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","language","name","language",3,"compareWith","placeholder"],["language",""],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,rve,26,20,"div",0),p(1,lve,2,0,"div",1),p(2,cve,3,0,"div",1),p(3,dve,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),hve=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-region-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-region-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,uve]})}return t})();function pve(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function mve(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function fve(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function _ve(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function gve(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_language")," "))}function bve(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.language?e.language.languageCode:""," ")}}function vve(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function yve(t,i){if(1&t){const e=F();l(0,"td",19)(1,"span")(2,"button",20),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function Cve(t,i){1&t&&(l(0,"th",18),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function wve(t,i){if(1&t){const e=F();l(0,"td",19)(1,"span")(2,"button",20),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function Sve(t,i){1&t&&D(0,"tr",21)}function Tve(t,i){1&t&&D(0,"tr",22)}function Dve(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,pve,3,3,"th",10),p(3,mve,2,1,"td",11),P(),A(4,12),p(5,fve,3,3,"th",10),p(6,_ve,2,1,"td",11),P(),A(7,13),p(8,gve,3,3,"th",10),p(9,bve,2,1,"td",11),P(),A(10,14),p(11,vve,3,3,"th",10),p(12,yve,5,0,"td",11),P(),A(13,15),p(14,Cve,3,3,"th",10),p(15,wve,5,0,"td",11),P(),p(16,Sve,1,0,"tr",16),p(17,Tve,1,0,"tr",17),d()),2&t){const e=b();f("dataSource",e.dataSource),c(16),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function Mve(t,i){1&t&&(l(0,"div",23),D(1,"mat-spinner",24),d())}function xve(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",25),h(2,"done"),d()())}function Eve(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",26),h(2,"clear"),d()())}const Ive=function(){return[5,10,25,100]};let Ove=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","language","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"regions",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openEditDialog(e){null==e&&(e=new qF);const n=this.updateDialog.open(hve,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"regions"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-regions-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","language"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,Dve,18,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,Mve,2,0,"div",7),p(9,xve,3,0,"div",7),p(10,Eve,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,Ive)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();const Rve=["regionsSelect"];function kve(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_invalid")," "))}function Ave(t,i){1&t&&(l(0,"mat-error"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"login_email_required")," "))}function Pve(t,i){1&t&&(l(0,"mat-form-field",5)(1,"mat-select",23,24),C(3,"translate"),l(4,"mat-option",25),h(5),C(6,"translate"),d(),l(7,"mat-option",26),h(8),C(9,"translate"),d(),l(10,"mat-option",27),h(11),C(12,"translate"),d(),l(13,"mat-option",28),h(14),C(15,"translate"),d(),l(16,"mat-option",29),h(17),C(18,"translate"),d(),l(19,"mat-option",30),h(20),C(21,"translate"),d(),l(22,"mat-option",31),h(23),C(24,"translate"),d(),l(25,"mat-option",32),h(26),C(27,"translate"),d(),l(28,"mat-option",33),h(29),C(30,"translate"),d()()()),2&t&&(c(1),N("placeholder",w(3,10,"general_type")),c(4),O(w(6,12,"general_reporter")),c(3),O(w(9,14,"general_admin")),c(3),O(w(12,16,"general_customer")),c(3),O(w(15,18,"general_moderator")),c(3),O(w(18,20,"general_country_manager")),c(3),O(w(21,22,"general_trial")),c(3),O(w(24,24,"general_network_manager")),c(3),O(w(27,26,"general_quality_manager")),c(3),O(w(30,28,"general_coverage_manager")))}function Nve(t,i){if(1&t&&(l(0,"mat-option",34),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Fve(t,i){if(1&t&&(l(0,"mat-option",34),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Lve(t,i){if(1&t&&(l(0,"mat-option",34),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Bve(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"br"),l(12,"mat-form-field",5),D(13,"input",9,10),C(15,"translate"),l(16,"mat-hint",8),h(17),d()(),D(18,"br"),l(19,"mat-form-field",5),D(20,"input",11),C(21,"translate"),p(22,kve,3,3,"mat-error",0),p(23,Ave,3,3,"mat-error",0),d(),D(24,"br"),p(25,Pve,31,30,"mat-form-field",12),D(26,"br"),l(27,"mat-form-field",13),D(28,"input",14),C(29,"translate"),d(),h(30," \xa0"),l(31,"button",15),M("click",function(){return E(e),I(b().onClickRandom())}),h(32),C(33,"translate"),d(),D(34,"br"),l(35,"mat-form-field",5)(36,"mat-select",16),C(37,"translate"),p(38,Nve,2,2,"mat-option",17),d()(),D(39,"br"),l(40,"mat-form-field",5)(41,"mat-select",18),C(42,"translate"),l(43,"mat-option"),h(44,"--"),d(),p(45,Fve,2,2,"mat-option",17),d()(),D(46,"br"),l(47,"mat-form-field",5)(48,"mat-select",19,20),C(50,"translate"),p(51,Lve,2,2,"mat-option",17),d()(),l(52,"p")(53,"mat-checkbox",21),h(54),C(55,"translate"),d()(),D(56,"mat-divider"),l(57,"p")(58,"button",22),h(59),C(60,"translate"),d(),h(61," \xa0 "),l(62,"button",15),M("click",function(){return E(e),I(b().onNoClick())}),h(63),C(64,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(14),o=b();c(2),f("formGroup",o.options),c(2),O(o.title),c(2),N("placeholder",w(8,29,"general_first_name")),J("maxlength",o.firstNameLimit),c(4),We("",e.value.length," / ",o.firstNameLimit,""),c(3),N("placeholder",w(15,31,"general_last_name")),J("maxlength",o.lastNameLimit),c(4),We("",n.value.length," / ",o.lastNameLimit,""),c(3),N("placeholder",w(21,33,"general_email")),c(2),f("ngIf",o.email.hasError("pattern")),c(1),f("ngIf",o.email.hasError("required")),c(2),f("ngIf",!(o.usersService.isNetworkManager||o.usersService.isQualityManager)),c(3),N("placeholder",w(29,35,"settings_password_new")),c(4),O(w(33,37,"general_random")),c(4),N("placeholder",w(37,39,"general_sports")),f("compareWith",o.compareFn),c(2),f("ngForOf",o.sports),c(3),N("placeholder",w(42,41,"general_country")),f("compareWith",o.compareFn),c(4),f("ngForOf",o.countries),c(3),N("placeholder",w(50,43,"general_regions")),f("compareWith",o.compareFn),c(3),f("ngForOf",o.regions),c(3),O(w(55,45,"general_active_account")),c(4),f("disabled",o.options.invalid),c(1),O(w(60,47,"general_save")),c(4),O(w(64,49,"general_close"))}}function Vve(t,i){1&t&&(l(0,"div",35),D(1,"mat-spinner",36),d())}function Hve(t,i){1&t&&(l(0,"div",35)(1,"mat-icon",37),h(2,"done"),d()())}function Uve(t,i){1&t&&(l(0,"div",35)(1,"mat-icon",38),h(2,"clear"),d()())}const $ve=/^[a-zA-Z0-9.!#$%&\u2019*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;let jve=(()=>{class t{constructor(e,n,o,s){this.http=e,this.translateService=n,this.fb=o,this.usersService=s,this.onProgress=0}get email(){return this.options.get("email")}randomPassword(e){let o="";for(let s=0;s<e;s++){let a=Math.floor(66*Math.random());o+="abcdefghijklmnopqrstuvwxyz!@#$%^&*()-+<>ABCDEFGHIJKLMNOP1234567890".charAt(a)}return o}onClickRandom(){const e=this.randomPassword(16);this.options.controls.password.setValue(e),this.entity.password=e}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Be),this.service=new Q(v.apiURLs.rootURL+"users",this.http),this.options=this.fb.group({firstName:[this.entity.firstName,ue.required],lastName:[this.entity.lastName,ue.required],userType:[this.entity.userType.toString()],email:[this.entity.email,[ue.required,ue.pattern($ve)]],password:[""],country:[this.entity.country,ue.required],sports:[this.entity.sports],isActive:[this.entity.isActive],allowedRegions:[this.entity.allowedRegions&&JSON.parse(this.entity.allowedRegions)]})}get title(){return this.translateService.instant(null==this.entity.id?"user_add_new":"user_edit")}get countries(){return v.countries}get firstNameLimit(){return v.stringLimits.firstNameLimit}get lastNameLimit(){return v.stringLimits.lastNameLimit}get paymentDetailsLimit(){return v.stringLimits.paymentDetailsLimit}get paymentMethods(){return v.paymentMethods}get sports(){return v.sports}get regions(){return v.regions}onSave(){this.onProgress=1,this.entity.firstName=this.options.value.firstName,this.entity.lastName=this.options.value.lastName,this.entity.userType=this.usersService.isNetworkManager||this.usersService.isQualityManager?Be.ACCOUNT_TYPE_REPORTER:+this.options.value.userType,this.entity.email=this.options.value.email,""!==this.options.value.password&&(this.entity.password=this.options.value.password),this.entity.sports=this.options.value.sports,this.entity.country=this.options.value.country,this.entity.isActive=this.options.value.isActive,this.entity.allowedRegions=JSON.stringify(this.options.value.allowedRegions);const e=this;null!=this.entity?.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onNoClick(){this.inputOnClose()}get languageCodeLimit(){return v.stringLimits.languageCodeLimit}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-user-dialog-content"]],viewQuery:function(n,o){if(1&n&&ne(Rve,5),2&n){let s;G(s=z())&&(o.regionsSelect=s.first)}},inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],["autocomplete","off",1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","firstName","name","firstName","matInput","","required","",3,"placeholder"],["firstName",""],["align","end"],["formControlName","lastName","name","lastName","matInput","","required","",3,"placeholder"],["lastName",""],["formControlName","email","type","email","name","email","matInput","","required","",3,"placeholder"],["class","full-width",4,"ngIf"],[2,"width","80%"],["type","text","name","password","matInput","","formControlName","password",3,"placeholder"],["mat-raised-button","","type","button",3,"click"],["formControlName","sports","multiple","",3,"compareWith","placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","country","required","",3,"compareWith","placeholder"],["multiple","","formControlName","allowedRegions",3,"compareWith","placeholder"],["regionsSelect",""],["formControlName","isActive"],["mat-raised-button","","type","submit",3,"disabled"],["formControlName","userType","name","userType",3,"placeholder"],["userType",""],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Bve,65,51,"div",0),p(1,Vve,2,0,"div",1),p(2,Hve,3,0,"div",1),p(3,Uve,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,Ni,zt,wn,on,Tn,Ft,Gt,Ne,Re,Nd,Pd,gn,xn,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Gve=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-user-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-user-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,jve]})}return t})(),zve=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-api-users-dialog"]],standalone:!0,features:[Z],decls:2,vars:1,consts:[[3,"inputUser"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-api-users-list",0),d()),2&n&&(c(1),f("inputUser",o.data))},dependencies:[Ot,qt,gF]})}return t})();const Wve=["userTypesSelect"],qve=["countriesSelect"];function Yve(t,i){if(1&t){const e=F();l(0,"mat-chip",6),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"U"))}),h(1),l(2,"mat-icon",7),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit,n=b();N("matTooltip",n.getUserType(e)),c(1),T(" ",n.getUserType(e)," ")}}function Qve(t,i){if(1&t){const e=F();l(0,"mat-chip",8),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"C"))}),h(1),l(2,"mat-icon",7),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",e.name),c(1),T(" ",e.name," ")}}function Zve(t,i){if(1&t){const e=F();l(0,"mat-chip",9),M("click",function(){return E(e),I(b().onResetClick())}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_reset")," "))}function Kve(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit,n=b(2);f("value",e),c(1),O(n.getUserType(e))}}function Xve(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(null==e?null:e.name)}}function Jve(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-form-field",10)(2,"mat-select",11,12),M("valueChange",function(o){return E(e),I(b().selectedUserTypes=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(4,"translate"),p(5,Kve,2,2,"mat-option",13),d()(),l(6,"mat-form-field",10)(7,"mat-select",11,14),M("valueChange",function(o){return E(e),I(b().selectedCountries=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(9,"translate"),p(10,Xve,2,2,"mat-option",13),d()()()}if(2&t){const e=b();c(2),N("placeholder",w(4,8,"general_userType")),f("value",e.selectedUserTypes)("compareWith",e.compareFn),c(3),f("ngForOf",e.userTypes),c(2),N("placeholder",w(9,10,"general_country")),f("value",e.selectedCountries)("compareWith",e.compareFn),c(3),f("ngForOf",e.countries)}}let eye=(()=>{class t{constructor(e){this.filterService=e,this.onResetFilters=new W,this.onFilterdUsers=new W,this.userTypes=[0,1,2,3,4,5,6,7,8],this.selectedUserTypes=[],this.countries=[],this.selectedCountries=[],this.panelOpenState=!1}ngOnInit(){}get showResetButton(){return!!(Array.isArray(this.selectedUserTypes)&&this.selectedUserTypes.length>0||Array.isArray(this.selectedCountries)&&this.selectedCountries.length>0)}ngOnChanges(e){e.users&&e.users.currentValue&&e.users.previousValue&&!Object.is(e.users.currentValue,e.users.previousValue)&&this.onFilter()}ngAfterContentInit(){this.getSessionStorage(),this.onFilter()}onFilter(){let e=[];for(let n of this.users)this.filterService.shouldAcceptTargetBy(n,this.selectedCountries,"country")&&this.filterService.shouldAcceptTargetBy(n,this.selectedUserTypes,"userType",this.shouldAcceptUserByuserType)&&e.push(n);this.initFilterOptions(this.users),this.setSessionStorage(),this.onFilterdUsers.emit(e)}shouldAcceptUserByuserType(e,n){return e?.userType===n}initFilterOptions(e){this.countries=[];let n=[];e&&e.length>0&&e.forEach(o=>{o.country&&-1===n.findIndex(s=>+o.country?.id==s)&&(this.countries.push(o.country),o.country.id&&n.push(o.country.id))}),this.countries.sort(xi("name"))}getUserType(e){switch(e){case 0:return"Reporter";case 1:return"Admin";case 2:return"Customer";case 3:return"Moderator";case 4:return"Country Manager";case 5:return"Trial";case 6:return"Network Manager";case 7:return"Quality Manager";case 8:return"Coverage Manager";default:return""}}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStorageUser")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,this.selectedCountries=e.selectedCountries,this.selectedUserTypes=e.selectedUserTypes)}setSessionStorage(){sessionStorage.setItem("filterStorageUser",JSON.stringify({panelOpenState:this.panelOpenState||!1,selectedCountries:this.selectedCountries||[],selectedUserTypes:this.selectedUserTypes||[]}))}removeSingleFilter(e,n){"U"===n?(this.filterService.removeElementFromArray(e,this.selectedUserTypes),this.userTypesSelect.writeValue(this.selectedUserTypes)):"C"===n&&(this.filterService.removeElementFromArray(e,this.selectedCountries),this.countriesSelect.writeValue(this.selectedCountries)),this.onFilter()}onResetClick(){this.selectedUserTypes=[],this.selectedCountries=[],this.panelOpenState=!1,this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){return null!=e&&null!=n&&e===n}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-users-filter"]],viewQuery:function(n,o){if(1&n&&(ne(Wve,5),ne(qve,5)),2&n){let s;G(s=z())&&(o.userTypesSelect=s.first),G(s=z())&&(o.countriesSelect=s.first)}},inputs:{users:"users"},outputs:{onResetFilters:"onResetFilters",onFilterdUsers:"onFilterdUsers"},standalone:!0,features:[fe,Z],decls:11,vars:7,consts:[[2,"margin","10px",3,"expanded","opened","closed"],[2,"align-items","center"],["color","accent","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","primary","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","grey","selected","","matTooltip","reset","class","reset",3,"click",4,"ngIf"],["matExpansionPanelContent",""],["color","accent","selected","",3,"matTooltip","removed"],["matChipRemove",""],["color","primary","selected","",3,"matTooltip","removed"],["color","grey","selected","","matTooltip","reset",1,"reset",3,"click"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["userTypesSelect",""],[3,"value",4,"ngFor","ngForOf"],["countriesSelect",""],[3,"value"]],template:function(n,o){1&n&&(l(0,"mat-expansion-panel",0),M("opened",function(){return o.panelExpanded(!0)})("closed",function(){return o.panelExpanded(!1)}),l(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),h(3),C(4,"translate"),l(5,"mat-chip-list"),p(6,Yve,4,2,"mat-chip",2),p(7,Qve,4,2,"mat-chip",3),d()(),l(8,"mat-panel-description"),p(9,Zve,3,3,"mat-chip",4),d()(),p(10,Jve,11,12,"ng-template",5),d()),2&n&&(f("expanded",o.panelOpenState),c(3),T(" ",w(4,5,"general_filtering"),"\xa0\xa0 "),c(3),f("ngForOf",o.selectedUserTypes),c(1),f("ngForOf",o.selectedCountries),c(2),f("ngIf",o.showResetButton))},dependencies:[sa,oa,Ua,$a,Rr,Ha,Bd,Ld,Br,Fd,ce,qe,le,ki,mo,Me,Oe,ut,gt,on,Tn,Ft,Gt,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();class tye{constructor(){this.id=null,this.name="",this.value=""}}function nye(t,i){1&t&&D(0,"tr",13)}function iye(t,i){1&t&&D(0,"tr",14)}function oye(t,i){1&t&&(l(0,"th",15),h(1," ID "),d())}function sye(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.id," ")}}function aye(t,i){1&t&&(l(0,"th",15),h(1," Name "),d())}function rye(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function lye(t,i){1&t&&(l(0,"th",15),h(1," Value "),d())}function cye(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.value," ")}}function dye(t,i){1&t&&(l(0,"th",15),h(1," Delete "),d())}function uye(t,i){if(1&t){const e=F();l(0,"td",16)(1,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(2).onDelete(s.id))}),h(2,"Delete"),d()()}}function hye(t,i){if(1&t){const e=F();l(0,"form",18),M("ngSubmit",function(){return E(e),I(b(2).onSave())}),l(1,"p",19),h(2),d(),l(3,"mat-form-field",20),D(4,"input",21,22),C(6,"translate"),l(7,"mat-hint",23),h(8),d()(),l(9,"mat-form-field",20),D(10,"input",24,25),C(12,"translate"),l(13,"mat-hint",23),h(14),d()(),D(15,"mat-divider"),l(16,"p")(17,"button",26),h(18),C(19,"translate"),d(),h(20," \xa0"),l(21,"button",27),M("click",function(){return E(e),I(b(2).onNoClick())}),h(22),C(23,"translate"),d()()()}if(2&t){const e=X(5),n=X(11),o=b(2);f("formGroup",o.options),c(2),O(o.title),c(2),N("placeholder",w(6,13,"general_name")),J("maxlength",150),c(4),We("",e.value.length," / ",150,""),c(2),N("placeholder",w(12,15,"general_value")),J("maxlength",250),c(4),We("",n.value.length," / ",250,""),c(3),f("disabled",o.options.invalid),c(1),O(w(19,17,"general_save")),c(4),O(w(23,19,"general_close"))}}function pye(t,i){if(1&t&&(l(0,"div")(1,"div",2)(2,"table",3),p(3,nye,1,0,"tr",4),p(4,iye,1,0,"tr",5),A(5,6),p(6,oye,2,0,"th",7),p(7,sye,2,1,"td",8),P(),A(8,9),p(9,aye,2,0,"th",7),p(10,rye,2,1,"td",8),P(),A(11,10),p(12,lye,2,0,"th",7),p(13,cye,2,1,"td",8),P(),A(14,11),p(15,dye,2,0,"th",7),p(16,uye,3,0,"td",8),P(),d(),p(17,hye,24,21,"form",12),d()()),2&t){const e=b();c(2),f("dataSource",e.contactDetailTableEntity),c(1),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay),c(13),f("ngIf",e.allowEdit())}}function mye(t,i){1&t&&(l(0,"div",28),D(1,"mat-spinner",29),d())}function fye(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",30),h(2,"done"),d()())}function _ye(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",31),h(2,"clear"),d()())}let gye=(()=>{class t{constructor(e,n,o,s){this.http=e,this.translateService=n,this.fb=o,this.usersService=s,this.onProgress=0,this.contactDetailEntity=null,this.contactDetailTableEntity=null,this.columnsToDisplay=["id","name","value","delete"]}allowEdit(){return!(!this.usersService.isAdmin&&!this.usersService.isNetworkManager)}ngOnChanges(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"contact-details",this.http),this.service.get(this.entity.id,v.userId,v.token).subscribe(e=>{this.contactDetailEntity=e,this.contactDetailTableEntity=e}),null===this.contactDetailEntity&&(this.contactDetailEntity=new tye,this.contactDetailEntity.user=this.entity.id),this.options=this.fb.group({name:[this.contactDetailEntity.name,ue.required],value:[this.contactDetailEntity.value,ue.required]})}get title(){return this.translateService.instant(null==this.contactDetailEntity?.id?"contact_details_add_new":"contact_details_edit")}onDelete(e){const n=this;this.service.delete(e).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)},o=>{})}onSave(){if(this.onProgress=1,this.contactDetailEntity){this.contactDetailEntity.id=null,this.contactDetailEntity.name=this.options.value.name,this.contactDetailEntity.value=this.options.value.value,this.contactDetailEntity.user=this.entity.id;const e=this;null!=this.contactDetailEntity.id&&0!==this.contactDetailEntity.id?this.service.update({id:this.contactDetailEntity.id,name:this.contactDetailEntity.name,value:this.contactDetailEntity.value,user:this.contactDetailEntity.user}).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create({name:this.contactDetailEntity.name,value:this.contactDetailEntity.value,user:this.contactDetailEntity.user}).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-contact-detail-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","value"],["matColumnDef","delete"],["class","example-container",3,"formGroup","ngSubmit",4,"ngIf"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],["mat-button","",3,"click"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","value","name","value","matInput","","required","",3,"placeholder"],["value",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,pye,18,4,"div",0),p(1,mye,2,0,"div",1),p(2,fye,3,0,"div",1),p(3,_ye,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ut,gt,Ni,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),bye=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-contact-detail-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-contact-detail-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,gye]})}return t})();class vye{constructor(){this.id=null,this.user=null,this.sport=null,this.method="voice"}}function yye(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Cye(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),p(9,yye,2,2,"mat-option",8),d()(),l(10,"mat-form-field",5)(11,"mat-select",9,10),C(13,"translate"),l(14,"mat-option",11),h(15,"App"),d(),l(16,"mat-option",12),h(17,"Voice"),d()()(),D(18,"mat-divider"),l(19,"p")(20,"button",13),h(21),C(22,"translate"),d(),h(23," \xa0"),l(24,"button",14),M("click",function(){return E(e),I(b().onNoClick())}),h(25),C(26,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),O(e.title),c(2),N("placeholder",w(8,9,"general_sport")),f("compareWith",e.compareFn),c(3),f("ngForOf",e.sports),c(2),N("placeholder",w(13,11,"general_method")),c(9),f("disabled",e.options.invalid),c(1),O(w(22,13,"general_save")),c(4),O(w(26,15,"general_close"))}}function wye(t,i){1&t&&(l(0,"div",16),D(1,"mat-spinner",17),d())}function Sye(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",18),h(2,"done"),d()())}function Tye(t,i){1&t&&(l(0,"div",16)(1,"mat-icon",19),h(2,"clear"),d()())}let Dye=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.capability=null}ngOnChanges(){this.onProgress=0,null===this.capability&&(this.capability=new vye),this.service=new Q(v.apiURLs.rootURL+"capability",this.http),this.options=this.fb.group({sport:[this.capability.sport,ue.required],method:[this.capability.method,ue.required]})}get title(){return this.translateService.instant(null==this.capability?.id?"capability_add_new":"capability_edit")}get sports(){return v.sports}onSave(){this.onProgress=1,this.capability.user=this.entity,this.capability.sport=this.options.value.sport,this.capability.method=this.options.value.method;const e=this;null!=this.capability&&null!=this.capability.id&&0!==this.capability.id?this.service.update(this.capability).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.capability).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-capability-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","sport","name","sport",3,"compareWith","placeholder"],["sport",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","method","name","method",3,"placeholder"],["method",""],["value","app"],["value","voice"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Cye,27,17,"div",0),p(1,wye,2,0,"div",1),p(2,Sye,3,0,"div",1),p(3,Tye,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Mt,Bt,vt,Cn,on,gt,Tn,Ft,ut,zt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Mye=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-capability-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-capability-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Dye]})}return t})();class xye{constructor(){this.id=null,this.user=null,this.paymentMethod=null,this.information=null}}function Eye(t,i){1&t&&D(0,"tr",13)}function Iye(t,i){1&t&&D(0,"tr",14)}function Oye(t,i){1&t&&(l(0,"th",15),h(1," ID "),d())}function Rye(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.id," ")}}function kye(t,i){1&t&&(l(0,"th",15),h(1," Payment Method "),d())}function Aye(t,i){if(1&t&&(l(0,"td",16),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.paymentMethod.name," ")}}function Pye(t,i){1&t&&(l(0,"th",15),h(1," Information "),d())}function Nye(t,i){if(1&t&&(l(0,"div"),h(1),d()),2&t){const e=i.$implicit;c(1),We(" ",e.key,": ",e.value||"N/A"," ")}}function Fye(t,i){if(1&t&&(l(0,"td",16),p(1,Nye,2,2,"div",17),C(2,"keyvalue"),d()),2&t){const e=i.$implicit;c(1),f("ngForOf",w(2,1,e.information))}}function Lye(t,i){1&t&&(l(0,"th",15),h(1," Delete "),d())}function Bye(t,i){if(1&t){const e=F();l(0,"td",16)(1,"button",18),M("click",function(){const s=E(e).$implicit;return I(b(2).onDelete(s.id))}),h(2,"Delete"),d()()}}function Vye(t,i){if(1&t&&(l(0,"mat-option",29),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function Hye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"input",31),d(),P())}function Uye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"input",32),d(),l(3,"mat-form-field"),D(4,"input",33),d(),l(5,"mat-form-field"),D(6,"input",34),d(),l(7,"mat-form-field"),D(8,"input",35),d(),l(9,"mat-form-field"),D(10,"input",36),d(),l(11,"mat-form-field"),D(12,"input",37),d(),l(13,"mat-form-field"),D(14,"input",38),d(),P())}function $ye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"input",39),d(),l(3,"mat-form-field"),D(4,"input",40),d(),l(5,"mat-form-field"),D(6,"input",41),d(),l(7,"mat-form-field"),D(8,"input",42),d(),P())}function jye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"input",31),d(),P())}function Gye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"input",32),d(),l(3,"mat-form-field"),D(4,"input",43),d(),P())}function zye(t,i){1&t&&(A(0,30),l(1,"mat-form-field"),D(2,"textarea",44),d(),P())}function Wye(t,i){if(1&t){const e=F();l(0,"form",19),M("ngSubmit",function(){return E(e),I(b(2).onSave())}),l(1,"p",20),h(2),d(),l(3,"mat-form-field",21)(4,"mat-select",22,23),C(6,"translate"),p(7,Vye,2,2,"mat-option",24),d()(),l(8,"div",25),A(9),p(10,Hye,3,0,"ng-container",26),p(11,Uye,15,0,"ng-container",26),p(12,$ye,9,0,"ng-container",26),p(13,jye,3,0,"ng-container",26),p(14,Gye,5,0,"ng-container",26),p(15,zye,3,0,"ng-container",26),P(),d(),D(16,"mat-divider"),l(17,"p")(18,"button",27),h(19),C(20,"translate"),d(),h(21," \xa0"),l(22,"button",28),M("click",function(){return E(e),I(b(2).onNoClick())}),h(23),C(24,"translate"),d()()()}if(2&t){const e=b(2);f("formGroup",e.options),c(2),O(e.title),c(2),N("placeholder",w(6,14,"general_payment_method")),f("compareWith",e.compareFn),c(3),f("ngForOf",e.paymentMethods),c(3),f("ngIf","paypal"===e.paymentMethodStore),c(1),f("ngIf","bank"===e.paymentMethodStore),c(1),f("ngIf","wu"===e.paymentMethodStore),c(1),f("ngIf","skrill"===e.paymentMethodStore),c(1),f("ngIf","cm"===e.paymentMethodStore),c(1),f("ngIf",!e.predefinedFP.includes(e.paymentMethodStore)),c(3),f("disabled",e.options.invalid),c(1),O(w(20,16,"general_save")),c(4),O(w(24,18,"general_close"))}}function qye(t,i){if(1&t&&(l(0,"div")(1,"div",2)(2,"table",3),p(3,Eye,1,0,"tr",4),p(4,Iye,1,0,"tr",5),A(5,6),p(6,Oye,2,0,"th",7),p(7,Rye,2,1,"td",8),P(),A(8,9),p(9,kye,2,0,"th",7),p(10,Aye,2,1,"td",8),P(),A(11,10),p(12,Pye,2,0,"th",7),p(13,Fye,3,3,"td",8),P(),A(14,11),p(15,Lye,2,0,"th",7),p(16,Bye,3,0,"td",8),P(),d(),p(17,Wye,25,20,"form",12),d()()),2&t){const e=b();c(2),f("dataSource",e.financialPaymentTableEntity),c(1),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay),c(13),f("ngIf",e.allowEdit())}}function Yye(t,i){1&t&&(l(0,"div",45),D(1,"mat-spinner",46),d())}function Qye(t,i){1&t&&(l(0,"div",45)(1,"mat-icon",47),h(2,"done"),d()())}function Zye(t,i){1&t&&(l(0,"div",45)(1,"mat-icon",48),h(2,"clear"),d()())}let Kye=(()=>{class t{constructor(e,n,o,s,a){this.http=e,this.translateService=n,this.fb=o,this.usersService=s,this.changeDetectorRef=a,this.onProgress=0,this.financialPaymentEntity=null,this.financialPaymentTableEntity=null,this.columnsToDisplay=["id","paymentMethod","information","delete"],this.paymentMethodChangeSubscription=null,this.predefinedFP=["paypal","bank","wu","skrill","cm"],this.paymentMethodStore=""}allowEdit(){return!(!this.usersService.isAdmin&&!this.usersService.isNetworkManager)}ngOnChanges(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"financial-payment",this.http),this.service.get(this.entity.id,v.userId,v.token).subscribe(e=>{this.financialPaymentEntity=e,this.financialPaymentTableEntity=e}),null===this.financialPaymentEntity&&(this.financialPaymentEntity=new xye,this.financialPaymentEntity.user=this.entity),this.initializeForm(),this.setupPaymentMethodSubscription()}ngOnDestroy(){this.paymentMethodChangeSubscription&&this.paymentMethodChangeSubscription.unsubscribe()}setupPaymentMethodSubscription(){this.paymentMethodChangeSubscription=this.options.get("paymentMethod").valueChanges.subscribe(e=>{this.updateInformationForm(e),this.changeDetectorRef.detectChanges()})}initializeForm(){this.options=this.fb.group({paymentMethod:[this.financialPaymentEntity?.paymentMethod?.name,ue.required],information:this.fb.group({})}),this.financialPaymentEntity?.paymentMethod&&this.updateInformationForm(this.financialPaymentEntity.paymentMethod)}get title(){return this.translateService.instant(null==this.financialPaymentEntity?.id?"financial_payment_add_new":"financial_payment_edit")}get paymentMethods(){return v.paymentMethods}onDelete(e){const n=this;this.service.delete(e).subscribe(o=>{this.onProgress=2,setTimeout(function(){n.inputOnClose()},v.delaySuccessMessage)},o=>{})}updateInformationForm(e){const n={paypal:this.fb.group({email:["",ue.required]}),bank:this.fb.group({fullName:["",ue.required],accountNumber:["",ue.required],bankName:["",ue.required],routingNumber:[""],swiftCode:[""],iban:[""],bic:[""]}),wu:this.fb.group({fullName:["",ue.required],destinationCountry:["",ue.required],address:[""],phoneNumber:["",ue.required]}),skrill:this.fb.group({email:["",ue.required]}),cm:this.fb.group({fullName:["",ue.required],agreementId:[""]}),other:this.fb.group({longText:["",ue.required]})},o=e.name.toLowerCase().split(" ")[0];this.paymentMethodStore=o;const s=n[o]||this.fb.group({});this.options.setControl("information",s)}onSave(){if(this.onProgress=1,this.financialPaymentEntity){this.financialPaymentEntity.id=null,this.financialPaymentEntity.paymentMethod=this.options.value.paymentMethod,this.financialPaymentEntity.information=this.options.get("information")?.value,this.financialPaymentEntity.user=this.entity;const e=this;null!=this.financialPaymentEntity.id&&0!==this.financialPaymentEntity.id?this.service.update({id:this.financialPaymentEntity.id,paymentMethod:this.financialPaymentEntity.paymentMethod,information:this.financialPaymentEntity.information,user:this.financialPaymentEntity.user}).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create({paymentMethod:this.financialPaymentEntity.paymentMethod,information:this.financialPaymentEntity.information,user:this.financialPaymentEntity.user}).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn),_(ds),_(He))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-financial-payment-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","paymentMethod"],["matColumnDef","information"],["matColumnDef","delete"],["class","example-container",3,"formGroup","ngSubmit",4,"ngIf"],["mat-header-row",""],["mat-row",""],["mat-header-cell",""],["mat-cell",""],[4,"ngFor","ngForOf"],["mat-button","",3,"click"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","paymentMethod","name","paymentMethod",3,"compareWith","placeholder"],["paymentMethod",""],[3,"value",4,"ngFor","ngForOf"],[2,"display","flex","flex-wrap","wrap","column-gap","1.5em"],["formGroupName","information",4,"ngIf"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],["formGroupName","information"],["formControlName","email","matInput","","placeholder","Email Address"],["formControlName","fullName","matInput","","placeholder","Recipient's Full Name"],["formControlName","accountNumber","matInput","","placeholder","Account Number"],["formControlName","bankName","matInput","","placeholder","Bank Name"],["formControlName","routingNumber","matInput","","placeholder","Routing Number"],["formControlName","swiftCode","matInput","","placeholder","SWIFT Code"],["formControlName","iban","matInput","","placeholder","IBAN"],["formControlName","bic","matInput","","placeholder","BIC"],["formControlName","fullName","matInput","","placeholder","Full Name (as it appears on their ID)"],["formControlName","destinationCountry","matInput","","placeholder","Destination Country"],["formControlName","address","matInput","","placeholder","Address"],["formControlName","phoneNumber","matInput","","placeholder","Phone Number"],["formControlName","agreementId","matInput","","placeholder","Agreement ID"],["formControlName","longText","matInput","","placeholder","Details"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,qye,18,4,"div",0),p(1,Yye,2,0,"div",1),p(2,Qye,3,0,"div",1),p(3,Zye,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,NI,xt,Vt,Lt,Mt,Bt,vt,Cn,Dh,on,gt,Tn,Ft,Gt,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ut,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Xye=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-financial-payment-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-financial-payment-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Kye]})}return t})();function Jye(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"p"),h(6),C(7,"translate"),d(),l(8,"p"),h(9),C(10,"translate"),d(),l(11,"p"),h(12),C(13,"translate"),d(),D(14,"mat-divider"),l(15,"p"),h(16," \xa0"),l(17,"button",5),M("click",function(){return E(e),I(b().onNoClick())}),h(18),C(19,"translate"),d()()()()()}if(2&t){const e=b();let n,o,s;c(2),f("formGroup",e.options),c(2),O(e.title),c(2),We("",w(7,9,"total_matches_count"),": ",null!==(n=null==e.QReport?null:e.QReport.totalMatchesCount)&&void 0!==n?n:"N/A",""),c(3),We("",w(10,11,"total_average"),": ",null!==(o=null==e.QReport?null:e.QReport.totalAverage)&&void 0!==o?o:"N/A",""),c(3),We("",w(13,13,"last_10_average"),": ",null!==(s=null==e.QReport?null:e.QReport.last10Average)&&void 0!==s?s:"N/A",""),c(6),O(w(19,15,"general_close"))}}function eCe(t,i){1&t&&(l(0,"div",6),D(1,"mat-spinner",7),d())}function tCe(t,i){1&t&&(l(0,"div",6)(1,"mat-icon",8),h(2,"done"),d()())}function nCe(t,i){1&t&&(l(0,"div",6)(1,"mat-icon",9),h(2,"clear"),d()())}let iCe=(()=>{class t{constructor(e,n){this.http=e,this.translateService=n,this.onProgress=0,this.QReport={}}ngOnChanges(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"calculate-qr",this.http),this.fetchReport()}fetchReport(){this.service.get(this.entity.id,v.userId,v.token).subscribe(e=>{this.QReport=e})}get title(){return this.translateService.instant("general_calculate_qr")}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-calculate-qr-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Jye,20,17,"div",0),p(1,eCe,2,0,"div",1),p(2,tCe,3,0,"div",1),p(3,nCe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Bt,vt,on,ut,zt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),oCe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-calculate-qr-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-calculate-qr-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,iCe]})}return t})();function sCe(t,i){if(1&t){const e=F();l(0,"app-users-filter",9),M("onResetFilters",function(){return E(e),I(b(2).onResetFilters())})("onFilterdUsers",function(o){return E(e),I(b(2).onFilterdUsers(o))}),d()}2&t&&f("users",b(2).users)}function aCe(t,i){if(1&t&&(l(0,"span"),p(1,sCe,1,1,"app-users-filter",8),d()),2&t){const e=b();c(1),f("ngIf",e.dataSource)}}function rCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function lCe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function cCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_first_name")," "))}function dCe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.firstName," ")}}function uCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_last_name")," "))}function hCe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.lastName," ")}}function pCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_country")," "))}function mCe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",null==e.country?null:e.country.name," ")}}function fCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function _Ce(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_reporter")))}function gCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_admin")))}function bCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_customer")))}function vCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_moderator")))}function yCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_country_manager")))}function CCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_trial")))}function wCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_network_manager")))}function SCe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_quality_manager")))}function TCe(t,i){if(1&t&&(l(0,"td",35),p(1,_Ce,3,3,"span",1),p(2,gCe,3,3,"span",1),p(3,bCe,3,3,"span",1),p(4,vCe,3,3,"span",1),p(5,yCe,3,3,"span",1),p(6,CCe,3,3,"span",1),p(7,wCe,3,3,"span",1),p(8,SCe,3,3,"span",1),d()),2&t){const e=i.$implicit;c(1),f("ngIf",0===e.userType),c(1),f("ngIf",1===e.userType),c(1),f("ngIf",2===e.userType),c(1),f("ngIf",3===e.userType),c(1),f("ngIf",4===e.userType),c(1),f("ngIf",5===e.userType),c(1),f("ngIf",6===e.userType),c(1),f("ngIf",7===e.userType)}}function DCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_registeration")," "))}function MCe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",n.getformatedDate(e.registeredAt.toString())," ")}}function xCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_last_login")," "))}function ECe(t,i){if(1&t&&(l(0,"td",35),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",e&&e.lastLoginTime?n.getLastLoginTime(e.lastLoginTime.toString()):"Never"," ")}}function ICe(t,i){1&t&&(l(0,"th",36),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_regions")," "))}function OCe(t,i){if(1&t&&(l(0,"td",37),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",n.getAllowedRegions(e)," ")}}function RCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_capabilities_edit")," "))}function kCe(t,i){1&t&&(l(0,"div",45),h(1,"V"),d())}function ACe(t,i){1&t&&(l(0,"div",45),h(1,"A"),d())}function PCe(t,i){1&t&&(l(0,"div",46),h(1,"X "),d())}function NCe(t,i){if(1&t){const e=F();A(0),l(1,"div",41),M("click",function(){const s=E(e).$implicit,a=b(3);return I(a.allowEdit()&&a.deleteCapability(s))}),D(2,"img",42),p(3,kCe,2,0,"div",43),p(4,ACe,2,0,"div",43),p(5,PCe,2,0,"div",44),d(),P()}if(2&t){const e=i.$implicit,n=b(3);c(2),f("src",n.getSportIcon(null==e||null==e.sport?null:e.sport.name),kt),c(1),f("ngIf","voice"===(null==e||null==e.method?null:e.method.toLowerCase())),c(1),f("ngIf","app"===(null==e||null==e.method?null:e.method.toLowerCase())),c(1),f("ngIf",n.usersService.isQualityManager||n.usersService.isAdmin)}}function FCe(t,i){if(1&t){const e=F();l(0,"button",47),M("click",function(){E(e);const o=b().$implicit;return I(b(2).openEditCapabilitiesDialog(o))}),l(1,"mat-icon",48),h(2,"add"),d()()}}function LCe(t,i){if(1&t&&(l(0,"td",35)(1,"div",38),p(2,NCe,6,4,"ng-container",39),p(3,FCe,3,0,"button",40),d()()),2&t){const e=i.$implicit,n=b(2);c(2),f("ngForOf",n.getAdjustedCapabilities(e.capabilities)),c(1),f("ngIf",n.usersService.isQualityManager||n.usersService.isAdmin)}}function BCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_calculate_qr")," "))}function VCe(t,i){if(1&t){const e=F();l(0,"td",35)(1,"span")(2,"button",47),M("click",function(){const s=E(e).$implicit;return I(b(2).openCalculateQRDialog(s))}),l(3,"mat-icon",48),h(4,"assessment"),d()()()()}}function HCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_fincancial_payments_edit")," "))}function UCe(t,i){if(1&t){const e=F();l(0,"td",35)(1,"span")(2,"button",47),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditFinancialPaymentsDialog(s))}),l(3,"mat-icon",48),h(4,"payment"),d()()()()}}function $Ce(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_contact_details_edit")," "))}function jCe(t,i){if(1&t){const e=F();l(0,"td",35)(1,"span")(2,"button",47),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditContactDetailsDialog(s))}),l(3,"mat-icon",48),h(4,"contacts"),d()()()()}}function GCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function zCe(t,i){if(1&t){const e=F();l(0,"td",35)(1,"span")(2,"button",47),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",48),h(4,"create"),d()()()()}}function WCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function qCe(t,i){if(1&t){const e=F();l(0,"td",35)(1,"span")(2,"button",47),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",48),h(4,"delete"),d()()()()}}function YCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_logs")," "))}function QCe(t,i){if(1&t&&(l(0,"td",35)(1,"span")(2,"button",49)(3,"mat-icon",48),h(4," list_alt"),d()()()()),2&t){const e=i.$implicit;c(2),Da("routerLink","/admin/users/",e.id,"/logs")}}function ZCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_matches")," "))}function KCe(t,i){1&t&&(l(0,"button",49)(1,"mat-icon",48),h(2," sports_soccer"),d()()),2&t&&Da("routerLink","/admin/users/",b().$implicit.id,"/customermatches")}function XCe(t,i){if(1&t&&(l(0,"td",35)(1,"span"),p(2,KCe,3,1,"button",50),d()()),2&t){const e=i.$implicit;c(2),f("ngIf",2===e.userType)}}function JCe(t,i){1&t&&(l(0,"th",34),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_api_users")," "))}function e0e(t,i){if(1&t){const e=F();l(0,"button",52),M("click",function(){E(e);const o=b().$implicit;return I(b(2).openAPIUsersDialog(o))}),l(1,"mat-icon",48),h(2," person_pin_circle"),d()()}}function t0e(t,i){if(1&t&&(l(0,"td",35)(1,"span"),p(2,e0e,3,0,"button",51),d()()),2&t){const e=i.$implicit;c(2),f("ngIf",2===e.userType)}}function n0e(t,i){1&t&&D(0,"tr",53)}function i0e(t,i){1&t&&D(0,"tr",54)}function o0e(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,rCe,3,3,"th",12),p(3,lCe,2,1,"td",13),P(),A(4,14),p(5,cCe,3,3,"th",12),p(6,dCe,2,1,"td",13),P(),A(7,15),p(8,uCe,3,3,"th",12),p(9,hCe,2,1,"td",13),P(),A(10,16),p(11,pCe,3,3,"th",12),p(12,mCe,2,1,"td",13),P(),A(13,17),p(14,fCe,3,3,"th",12),p(15,TCe,9,8,"td",13),P(),A(16,18),p(17,DCe,3,3,"th",12),p(18,MCe,2,1,"td",13),P(),A(19,19),p(20,xCe,3,3,"th",12),p(21,ECe,2,1,"td",13),P(),A(22,20),p(23,ICe,3,3,"th",21),p(24,OCe,2,1,"td",22),P(),A(25,23),p(26,RCe,3,3,"th",12),p(27,LCe,4,2,"td",13),P(),A(28,24),p(29,BCe,3,3,"th",12),p(30,VCe,5,0,"td",13),P(),A(31,25),p(32,HCe,3,3,"th",12),p(33,UCe,5,0,"td",13),P(),A(34,26),p(35,$Ce,3,3,"th",12),p(36,jCe,5,0,"td",13),P(),A(37,27),p(38,GCe,3,3,"th",12),p(39,zCe,5,0,"td",13),P(),A(40,28),p(41,WCe,3,3,"th",12),p(42,qCe,5,0,"td",13),P(),A(43,29),p(44,YCe,3,3,"th",12),p(45,QCe,5,1,"td",13),P(),A(46,30),p(47,ZCe,3,3,"th",12),p(48,XCe,3,1,"td",13),P(),A(49,31),p(50,JCe,3,3,"th",12),p(51,t0e,3,1,"td",13),P(),p(52,n0e,1,0,"tr",32),p(53,i0e,1,0,"tr",33),d()),2&t){const e=b();f("dataSource",e.dataSource),c(52),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function s0e(t,i){if(1&t){const e=F();l(0,"button",55),M("click",function(){return E(e),I(b().openEditDialog())}),l(1,"mat-icon",48),h(2,"add"),d()()}}function a0e(t,i){1&t&&(l(0,"div",56),D(1,"mat-spinner",57),d())}function r0e(t,i){1&t&&(l(0,"div",56)(1,"mat-icon",58),h(2,"done"),d()())}function l0e(t,i){1&t&&(l(0,"div",56)(1,"mat-icon",59),h(2,"clear"),d()())}const c0e=function(){return[5,10,25,100]};let Zg=(()=>{class t{constructor(e,n,o,s){this.http=e,this.updateDialog=n,this.snackBar=o,this.usersService=s,this.onProgress=0,this.columnsToDisplay=["id","firstName","lastName"]}allowEdit(){return!(!this.usersService.isAdmin&&!this.usersService.isNetworkManager)}ngOnInit(){this.usersService.isNetworkManager?(this.columnsToDisplay=["id","firstName","lastName","country","allowedRegions","calculateQR","editCapabilities","editFinancialPayments","editContactDetails","edit","delete"],this.service=new Q(v.apiURLs.rootURL+"users/reporters",this.http)):this.usersService.isQualityManager?(this.columnsToDisplay=["id","firstName","lastName","country","allowedRegions","calculateQR","editCapabilities","editContactDetails"],this.service=new Q(v.apiURLs.rootURL+"users/reporters",this.http)):this.usersService.isCountryManager?(this.columnsToDisplay=["id","firstName","lastName","country","allowedRegions","calculateQR","editCapabilities","editFinancialPayments","editContactDetails"],this.service=new Q(v.apiURLs.rootURL+"users/reporters",this.http)):(this.columnsToDisplay=["id","firstName","lastName","userType","country","registeredAt","lastLoginTime","allowedRegions","calculateQR","editCapabilities","editFinancialPayments","editContactDetails","edit","delete","logs","matches","apiusers"],this.service=new Q(v.apiURLs.rootURL+"users",this.http)),this.onProgress=0,this.service.getAllObservable(v.token,v.userId,this.usersService.isCountryManager?"&manager=true":void 0).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.users=e,this.updateUsersView(this.users)})}get dataSize(){return 0}getAdjustedCapabilities(e){const n=e.reduce((s,a)=>{const r=a.sport?.name||"unknown";return s[r]||(s[r]=[]),s[r].push(a),s},{}),o=Object.values(n).map(s=>{if(s?.length>1){const a=s.find(r=>"app"===r.method);return a?[a]:s}return s}).flat();return o.sort((s,a)=>"football"===s.sport?.name.toLowerCase()?-1:"football"===a.sport?.name.toLowerCase()?1:0),o}getAllowedRegions(e){if(-1!=e.allowedRegions?.indexOf("[")){let n=JSON.parse(e.allowedRegions);return n?(n=n.map(o=>o.name),n=n.join(", "),n):""}return""}getformatedDate(e){const n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}updateUsersView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdUsers(e){this.updateUsersView(e)}onResetFilters(){this.updateUsersView(this.users)}openEditCapabilitiesDialog(e){const n=this.updateDialog.open(Mye,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openCalculateQRDialog(e){const n=this.updateDialog.open(oCe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}deleteCapability(e){this.service=new Q(v.apiURLs.rootURL+"capability",this.http);const n=this.updateDialog.open(en,{data:{title:null,content:e.sport?.name+" "+e.method,refId:e.id}});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(o=>{!0===o&&this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Capability Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())})})}getSportIcon(e){return"football"===e.toLowerCase()?"https://cdn-icons-png.flaticon.com/128/33/33736.png":"basketball"===e.toLowerCase()?"https://cdn-icons-png.flaticon.com/128/10466/10466111.png":""}getLastLoginTime(e){const n=new Date,o=new Date(e),s=Math.abs(n.getTime()-o.getTime());let a="";const r=Math.floor(s/36e5),u=Math.floor(r/24);return a=u>3?u+" days ago":u>0?u+" days "+r%24+" hours ago":r+" hours ago",a}openEditFinancialPaymentsDialog(e){const n=this.updateDialog.open(Xye,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openEditContactDetailsDialog(e){null==e&&(e=new Be);const n=this.updateDialog.open(bye,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openEditDialog(e){null==e&&(e=new Be);const n=this.updateDialog.open(Gve,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.firstName+" "+e.lastName,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openAPIUsersDialog(e){if(e){const n=this.updateDialog.open(zve,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn),_(ds))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-users-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:10,vars:11,consts:[[1,"menu-capture"],[4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"users","onResetFilters","onFilterdUsers",4,"ngIf"],[3,"users","onResetFilters","onFilterdUsers"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","firstName"],["matColumnDef","lastName"],["matColumnDef","country"],["matColumnDef","userType"],["matColumnDef","registeredAt"],["matColumnDef","lastLoginTime"],["matColumnDef","allowedRegions"],["mat-header-cell","","style","text-align: center;",4,"matHeaderCellDef"],["mat-cell","","style","text-align: center;",4,"matCellDef"],["matColumnDef","editCapabilities"],["matColumnDef","calculateQR"],["matColumnDef","editFinancialPayments"],["matColumnDef","editContactDetails"],["matColumnDef","edit"],["matColumnDef","delete"],["matColumnDef","logs"],["matColumnDef","matches"],["matColumnDef","apiusers"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",2,"text-align","center"],["mat-cell","",2,"text-align","center"],[2,"display","flex","align-items","center"],[4,"ngFor","ngForOf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"icon-container","hoverable-icon",2,"margin","0 0.1em",3,"click"],["height","24","alt","sport icon",3,"src"],["class","icon-text",4,"ngIf"],["class","hover-x",4,"ngIf"],[1,"icon-text"],[1,"hover-x"],["mat-icon-button","",3,"click"],[1,"mat-24"],["mat-icon-button","","color","primary",3,"routerLink"],["mat-icon-button","","color","primary",3,"routerLink",4,"ngIf"],["mat-icon-button","","color","primary",3,"click",4,"ngIf"],["mat-icon-button","","color","primary",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,aCe,2,1,"span",1),l(2,"div",2),p(3,o0e,54,3,"table",3),p(4,s0e,3,0,"button",4),d(),D(5,"mat-paginator",5,6),d(),p(7,a0e,2,0,"div",7),p(8,r0e,3,0,"div",7),p(9,l0e,3,0,"div",7)),2&n&&(c(1),f("ngIf",o.allowEdit()),c(2),f("ngIf",0==o.onProgress),c(1),f("ngIf",o.allowEdit()),c(1),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(10,c0e)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,eye,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Ba,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-logs[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}th.mat-header-cell[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%]{padding:3px;border-bottom-width:1px;border-bottom-style:solid}table[_ngcontent-%COMP%]{width:100%}.icon-container[_ngcontent-%COMP%]{position:relative}.icon-text[_ngcontent-%COMP%]{position:absolute;bottom:-.5em;right:-.25em;color:#fff;font-weight:700;width:16px;height:15px;border-radius:100%;background-color:#000;text-align:center;-webkit-user-select:none;user-select:none}.hoverable-icon[_ngcontent-%COMP%]:hover   .hover-x[_ngcontent-%COMP%]{display:block}.hover-x[_ngcontent-%COMP%]{display:none;position:absolute;top:0;left:.25em;cursor:pointer;color:red;font-size:x-large}"]})}return t})();class YF{constructor(){this.id=null,this.languageCode="",this.regions=[]}}function d0e(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"mat-divider"),l(12,"p")(13,"button",9),h(14),C(15,"translate"),d(),h(16," \xa0"),l(17,"button",10),M("click",function(){return E(e),I(b().onNoClick())}),h(18),C(19,"translate"),d()()()()()}if(2&t){const e=X(7),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,9,"general_isocode")),J("maxlength",n.languageCodeLimit),c(4),We("",e.value.length," / ",n.languageCodeLimit,""),c(3),f("disabled",n.options.invalid),c(1),O(w(15,11,"general_save")),c(4),O(w(19,13,"general_close"))}}function u0e(t,i){1&t&&(l(0,"div",11),D(1,"mat-spinner",12),d())}function h0e(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",13),h(2,"done"),d()())}function p0e(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",14),h(2,"clear"),d()())}let m0e=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new YF),this.service=new Q(v.apiURLs.rootURL+"languages",this.http),this.options=this.fb.group({languageCode:[this.entity.languageCode,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"language_add_new":"language_edit")}get languageCodeLimit(){return v.stringLimits.languageCodeLimit}addLanguageToConfig(e){if(Array.isArray(v.languages)||(v.languages=[]),e){const n=v.languages.findIndex(o=>e.id===o.id);-1!==n?v.languages[n]=e:v.languages.push(e)}}onSave(){this.onProgress=1,this.entity.languageCode=this.options.value.languageCode;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addLanguageToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addLanguageToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-language-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","languageCode","name","languageCode","matInput","","required","",3,"placeholder"],["languageCode",""],["align","end"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,d0e,20,15,"div",0),p(1,u0e,2,0,"div",1),p(2,h0e,3,0,"div",1),p(3,p0e,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),f0e=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-language-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-language-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,m0e]})}return t})();function _0e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function g0e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function b0e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_isocode")," "))}function v0e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.languageCode," ")}}function y0e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function C0e(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function w0e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function S0e(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function T0e(t,i){1&t&&D(0,"tr",20)}function D0e(t,i){1&t&&D(0,"tr",21)}function M0e(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,_0e,3,3,"th",10),p(3,g0e,2,1,"td",11),P(),A(4,12),p(5,b0e,3,3,"th",10),p(6,v0e,2,1,"td",11),P(),A(7,13),p(8,y0e,3,3,"th",10),p(9,C0e,5,0,"td",11),P(),A(10,14),p(11,w0e,3,3,"th",10),p(12,S0e,5,0,"td",11),P(),p(13,T0e,1,0,"tr",15),p(14,D0e,1,0,"tr",16),d()),2&t){const e=b();f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function x0e(t,i){1&t&&(l(0,"div",22),D(1,"mat-spinner",23),d())}function E0e(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",24),h(2,"done"),d()())}function I0e(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",25),h(2,"clear"),d()())}const O0e=function(){return[5,10,25,100]};let R0e=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","languageCode","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"languages",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.languageCode,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"languages"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openEditDialog(e){null==e&&(e=new YF);const n=this.updateDialog.open(f0e,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-languages-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","languageCode"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,M0e,15,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,x0e,2,0,"div",7),p(9,E0e,3,0,"div",7),p(10,I0e,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,O0e)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class Qw{constructor(){this.id=null,this.name="",this.foreignName="",this.sport=null,this.language=null,this.region=null,this.logo=""}}function k0e(t,i){if(1&t&&(l(0,"mat-option",22),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.languageCode)}}function A0e(t,i){if(1&t&&(l(0,"mat-option",22),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function P0e(t,i){if(1&t&&(l(0,"mat-option",22),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function N0e(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),l(11,"mat-form-field",5),D(12,"input",9,10),C(14,"translate"),l(15,"mat-hint",8),h(16),d()(),l(17,"mat-form-field",5)(18,"mat-select",11,12),C(20,"translate"),p(21,k0e,2,2,"mat-option",13),d()(),l(22,"mat-form-field",5)(23,"mat-select",14,15),C(25,"translate"),p(26,A0e,2,2,"mat-option",13),d()(),l(27,"mat-form-field",5)(28,"mat-select",16,17),C(30,"translate"),p(31,P0e,2,2,"mat-option",13),d()(),l(32,"mat-form-field",5),D(33,"input",18,19),C(35,"translate"),l(36,"mat-hint",8),h(37),d()(),D(38,"mat-divider"),l(39,"p")(40,"button",20),h(41),C(42,"translate"),d(),h(43," \xa0"),l(44,"button",21),M("click",function(){return E(e),I(b().onNoClick())}),h(45),C(46,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(13),o=X(34),s=b();c(2),f("formGroup",s.options),c(2),O(s.title),c(2),N("placeholder",w(8,26,"general_name")),J("maxlength",s.competitionNameLimit),c(4),We("",e.value.length," / ",s.competitionNameLimit,""),c(2),N("placeholder",w(14,28,"general_foreign_name")),J("maxlength",s.refereeNameLimit),c(4),We("",n.value.length," / ",s.refereeNameLimit,""),c(2),N("placeholder",w(20,30,"general_language")),f("compareWith",s.compareFn),c(3),f("ngForOf",s.languages),c(2),N("placeholder",w(25,32,"general_sport")),f("compareWith",s.compareFn),c(3),f("ngForOf",s.sports),c(2),N("placeholder",w(30,34,"general_region")),f("compareWith",s.compareFn),c(3),f("ngForOf",s.regions),c(2),N("placeholder",w(35,36,"general_logo")),J("maxlength",250),c(4),We("",o.value.length," / ",250,""),c(3),f("disabled",s.options.invalid),c(1),O(w(42,38,"general_save")),c(4),O(w(46,40,"general_close"))}}function F0e(t,i){1&t&&(l(0,"div",23),D(1,"mat-spinner",24),d())}function L0e(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",25),h(2,"done"),d()())}function B0e(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",26),h(2,"clear"),d()())}let V0e=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Qw),this.service=new Q(v.apiURLs.rootURL+"competitions",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],foreignName:[this.entity.foreignName],language:[this.entity.language,ue.required],sport:[this.entity.sport,ue.required],region:[this.entity.region,ue.required],logo:[this.entity.logo]})}get title(){return this.translateService.instant(null==this.entity.id?"competition_add_new":"competition_edit")}get languages(){return v.languages}get sports(){return v.sports}get regions(){return v.regions}get competitionNameLimit(){return v.stringLimits.competitionNameLimit}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}addCompetitionToConfig(e){if(Array.isArray(v.competitions)||(v.competitions=[]),e){const n=v.competitions.findIndex(o=>e.id===o.id);-1!==n?v.competitions[n]=e:v.competitions.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.language=this.options.value.language,this.entity.foreignName=this.options.value.foreignName,this.entity.sport=this.options.value.sport,this.entity.region=this.options.value.region,this.entity.logo=this.options.value.logo;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addCompetitionToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addCompetitionToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-competition-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","foreignName","name","foreignName","matInput","",3,"placeholder"],["foreignName",""],["formControlName","language","name","language",3,"compareWith","placeholder"],["language",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","sport","name","sport",3,"compareWith","placeholder"],["sport",""],["formControlName","region","name","region",3,"compareWith","placeholder"],["region",""],["formControlName","logo","name","logo","matInput","",3,"placeholder"],["logo",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,N0e,47,42,"div",0),p(1,F0e,2,0,"div",1),p(2,L0e,3,0,"div",1),p(3,B0e,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),QF=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-competition-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-competition-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,V0e]})}return t})();const H0e=["regionsSelect"];function U0e(t,i){if(1&t){const e=F();l(0,"mat-chip",5),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"RG"))}),h(1),l(2,"mat-icon",6),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",e.name),c(1),T(" ",e.name," ")}}function $0e(t,i){if(1&t){const e=F();l(0,"mat-chip",7),M("click",function(){return E(e),I(b().onResetClick())}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_reset")," "))}function j0e(t,i){if(1&t&&(l(0,"mat-option",12),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function G0e(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-form-field",8)(2,"mat-select",9,10),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(4,"translate"),p(5,j0e,2,2,"mat-option",11),d()()()}if(2&t){const e=b();c(2),N("placeholder",w(4,4,"general_regions")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(3),f("ngForOf",e.regions)}}let z0e=(()=>{class t{constructor(e){this.filterService=e,this.onResetFilters=new W,this.onFilterdCompetitions=new W,this.regions=[],this.selectedRegions=[],this.panelOpenState=!1}ngOnInit(){}get showResetButton(){return!!(Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0)}ngOnChanges(e){e.competitions&&e.competitions.currentValue&&e.competitions.previousValue&&!Object.is(e.competitions.currentValue,e.competitions.previousValue)&&this.onFilter()}ngAfterContentInit(){this.getSessionStorage(),this.onFilter()}onFilter(){let e=[];for(let n of this.competitions)this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region",this.shouldAcceptCompetitionByRegion)&&e.push(n);this.initFilterOptions(this.competitions),this.setSessionStorage(),this.onFilterdCompetitions.emit(e)}shouldAcceptCompetitionByRegion(e,n){return!(!e?.region||n.id!==e.region.id)}initFilterOptions(e){this.regions=[];let n=[];e&&e.length>0&&e.forEach(o=>{o.region?.id&&-1===n.findIndex(s=>+o.region.id==s)&&(this.regions.push(o.region),this.regions.sort(xi("name")),n.push(o.region.id))})}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStorageCompetitions")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,this.selectedRegions=e.selectedRegions)}setSessionStorage(){sessionStorage.setItem("filterStorageCompetitions",JSON.stringify({panelOpenState:this.panelOpenState||!1,selectedRegions:this.selectedRegions||[]}))}removeSingleFilter(e,n){"RG"===n&&(this.filterService.removeElementFromArray(e,this.selectedRegions),this.regionsSelect.writeValue(this.selectedRegions)),this.onFilter()}onResetClick(){this.selectedRegions=[],this.panelOpenState=!1,this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-competitions-filter"]],viewQuery:function(n,o){if(1&n&&ne(H0e,5),2&n){let s;G(s=z())&&(o.regionsSelect=s.first)}},inputs:{competitions:"competitions"},outputs:{onResetFilters:"onResetFilters",onFilterdCompetitions:"onFilterdCompetitions"},standalone:!0,features:[fe,Z],decls:10,vars:6,consts:[[2,"margin","10px",3,"expanded","opened","closed"],[2,"align-items","center"],["color","accent","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","grey","selected","","matTooltip","reset","class","reset",3,"click",4,"ngIf"],["matExpansionPanelContent",""],["color","accent","selected","",3,"matTooltip","removed"],["matChipRemove",""],["color","grey","selected","","matTooltip","reset",1,"reset",3,"click"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["regionsSelect",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){1&n&&(l(0,"mat-expansion-panel",0),M("opened",function(){return o.panelExpanded(!0)})("closed",function(){return o.panelExpanded(!1)}),l(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),h(3),C(4,"translate"),l(5,"mat-chip-list"),p(6,U0e,4,2,"mat-chip",2),d()(),l(7,"mat-panel-description"),p(8,$0e,3,3,"mat-chip",3),d()(),p(9,G0e,6,6,"ng-template",4),d()),2&n&&(f("expanded",o.panelOpenState),c(3),T(" ",w(4,4,"general_filtering"),"\xa0\xa0 "),c(3),f("ngForOf",o.selectedRegions),c(2),f("ngIf",o.showResetButton))},dependencies:[sa,oa,Ua,$a,Rr,Ha,Bd,Ld,Br,Fd,ce,qe,le,ki,mo,Me,Oe,ut,gt,on,Tn,Ft,Gt,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();function W0e(t,i){if(1&t){const e=F();l(0,"app-competitions-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdCompetitions",function(o){return E(e),I(b().onFilterdCompetitions(o))}),d()}2&t&&f("competitions",b().competitions)}function q0e(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function Y0e(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Q0e(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function Z0e(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function K0e(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function X0e(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function J0e(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function ewe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.region?e.region.name:""," ")}}function twe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_sport")," "))}function nwe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.sport?e.sport.name:""," ")}}function iwe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_language")," "))}function owe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.language?e.language.languageCode:""," ")}}function swe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_logo")," "))}function awe(t,i){1&t&&(l(0,"mat-icon",28),h(1," picture_in_picture "),d())}function rwe(t,i){1&t&&(l(0,"mat-icon",29),h(1," picture_in_picture "),d())}function lwe(t,i){if(1&t&&(l(0,"td",25)(1,"span"),p(2,awe,2,0,"mat-icon",26),p(3,rwe,2,0,"mat-icon",27),d()()),2&t){const e=i.$implicit;c(2),f("ngIf",e.logo),c(1),f("ngIf",!e.logo)}}function cwe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function dwe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"span")(2,"button",30),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function uwe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function hwe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"span")(2,"button",30),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function pwe(t,i){1&t&&D(0,"tr",31)}function mwe(t,i){1&t&&D(0,"tr",32)}function fwe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,q0e,3,3,"th",12),p(3,Y0e,2,1,"td",13),P(),A(4,14),p(5,Q0e,3,3,"th",12),p(6,Z0e,2,1,"td",13),P(),A(7,15),p(8,K0e,3,3,"th",12),p(9,X0e,2,1,"td",13),P(),A(10,16),p(11,J0e,3,3,"th",12),p(12,ewe,2,1,"td",13),P(),A(13,17),p(14,twe,3,3,"th",12),p(15,nwe,2,1,"td",13),P(),A(16,18),p(17,iwe,3,3,"th",12),p(18,owe,2,1,"td",13),P(),A(19,19),p(20,swe,3,3,"th",12),p(21,lwe,4,2,"td",13),P(),A(22,20),p(23,cwe,3,3,"th",12),p(24,dwe,5,0,"td",13),P(),A(25,21),p(26,uwe,3,3,"th",12),p(27,hwe,5,0,"td",13),P(),p(28,pwe,1,0,"tr",22),p(29,mwe,1,0,"tr",23),d()),2&t){const e=b();f("dataSource",e.dataSource),c(28),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function _we(t,i){1&t&&(l(0,"div",33),D(1,"mat-spinner",34),d())}function gwe(t,i){1&t&&(l(0,"div",33)(1,"mat-icon",35),h(2,"done"),d()())}function bwe(t,i){1&t&&(l(0,"div",33)(1,"mat-icon",36),h(2,"clear"),d()())}const vwe=function(){return[5,10,25,100]};let ywe=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","foreignName","sport","language","region","logo","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"competitions",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.competitions=e,this.updateCompetitionsView(this.competitions)})}get dataSize(){return 0}updateCompetitionsView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdCompetitions(e){this.updateCompetitionsView(e)}onResetFilters(){this.updateCompetitionsView(this.competitions)}openEditDialog(e){null==e&&(e=new Qw);const n=this.updateDialog.open(QF,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"competitions"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-competition-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"competitions","onResetFilters","onFilterdCompetitions",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"competitions","onResetFilters","onFilterdCompetitions"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","sport"],["matColumnDef","language"],["matColumnDef","logo"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","mat-24","color","primary",4,"ngIf"],["class","mat-24","color","warn",4,"ngIf"],["color","primary",1,"mat-24"],["color","warn",1,"mat-24"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,W0e,1,1,"app-competitions-filter",1),l(2,"div",2),p(3,fwe,30,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,_we,2,0,"div",8),p(10,gwe,3,0,"div",8),p(11,bwe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,vwe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,z0e,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Me,Oe,Ne,Re,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class ZF{constructor(){this.id=null,this.name="",this.logo="",this.match=null,this.teams=null,this.players=null,this.users=null,this.matchFormats=null,this.competitions=null}}function Cwe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"mat-divider"),l(12,"p")(13,"button",9),h(14),C(15,"translate"),d(),h(16," \xa0"),l(17,"button",10),M("click",function(){return E(e),I(b().onNoClick())}),h(18),C(19,"translate"),d()()()()()}if(2&t){const e=X(7),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,9,"general_name")),J("maxlength",n.sportNameLimit),c(4),We("",e.value.length," / ",n.sportNameLimit,""),c(3),f("disabled",n.options.invalid),c(1),O(w(15,11,"general_save")),c(4),O(w(19,13,"general_close"))}}function wwe(t,i){1&t&&(l(0,"div",11),D(1,"mat-spinner",12),d())}function Swe(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",13),h(2,"done"),d()())}function Twe(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",14),h(2,"clear"),d()())}let Dwe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new ZF),this.service=new Q(v.apiURLs.rootURL+"sports",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"sport_add_new":"sport_edit")}get sportNameLimit(){return v.stringLimits.sportNameLimit}addSportToConfig(e){if(Array.isArray(v.sports)||(v.sports=[]),e){const n=v.sports.findIndex(o=>e.id===o.id);-1!==n?v.sports[n]=e:v.sports.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addSportToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addSportToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-sport-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,Cwe,20,15,"div",0),p(1,wwe,2,0,"div",1),p(2,Swe,3,0,"div",1),p(3,Twe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Mwe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-sport-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-sport-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,Dwe]})}return t})();function xwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function Ewe(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Iwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function Owe(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function Rwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function kwe(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function Awe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Pwe(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function Nwe(t,i){1&t&&D(0,"tr",20)}function Fwe(t,i){1&t&&D(0,"tr",21)}function Lwe(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,xwe,3,3,"th",10),p(3,Ewe,2,1,"td",11),P(),A(4,12),p(5,Iwe,3,3,"th",10),p(6,Owe,2,1,"td",11),P(),A(7,13),p(8,Rwe,3,3,"th",10),p(9,kwe,5,0,"td",11),P(),A(10,14),p(11,Awe,3,3,"th",10),p(12,Pwe,5,0,"td",11),P(),p(13,Nwe,1,0,"tr",15),p(14,Fwe,1,0,"tr",16),d()),2&t){const e=b();f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function Bwe(t,i){1&t&&(l(0,"div",22),D(1,"mat-spinner",23),d())}function Vwe(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",24),h(2,"done"),d()())}function Hwe(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",25),h(2,"clear"),d()())}const Uwe=function(){return[5,10,25,100]};let $we=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"sports",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openEditDialog(e){null==e&&(e=new ZF);const n=this.updateDialog.open(Mwe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"sports"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-sports-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,Lwe,15,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,Bwe,2,0,"div",7),p(9,Vwe,3,0,"div",7),p(10,Hwe,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,Uwe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class KF{constructor(){this.id=null,this.name="",this.users=[]}}function jwe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),D(11,"mat-divider"),l(12,"p")(13,"button",9),h(14),C(15,"translate"),d(),h(16," \xa0"),l(17,"button",10),M("click",function(){return E(e),I(b().onNoClick())}),h(18),C(19,"translate"),d()()()()()}if(2&t){const e=X(7),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,9,"general_name")),J("maxlength",n.paymentmethodNameLimit),c(4),We("",e.value.length," / ",n.paymentmethodNameLimit,""),c(3),f("disabled",n.options.invalid),c(1),O(w(15,11,"general_save")),c(4),O(w(19,13,"general_close"))}}function Gwe(t,i){1&t&&(l(0,"div",11),D(1,"mat-spinner",12),d())}function zwe(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",13),h(2,"done"),d()())}function Wwe(t,i){1&t&&(l(0,"div",11)(1,"mat-icon",14),h(2,"clear"),d()())}let qwe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new KF),this.service=new Q(v.apiURLs.rootURL+"paymentMethods",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"paymentmethod_add_new":"paymentmethod_edit")}get paymentmethodNameLimit(){return v.stringLimits.paymentmethodNameLimit}addPaymentMethodToConfig(e){if(Array.isArray(v.paymentMethods)||(v.paymentMethods=[]),e){const n=v.paymentMethods.findIndex(o=>e.id===o.id);-1!==n?v.paymentMethods[n]=e:v.paymentMethods.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addPaymentMethodToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addPaymentMethodToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-paymentmethod-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,jwe,20,15,"div",0),p(1,Gwe,2,0,"div",1),p(2,zwe,3,0,"div",1),p(3,Wwe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Ywe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-paymentmethod-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-paymentmethod-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,qwe]})}return t})();function Qwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function Zwe(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Kwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function Xwe(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function Jwe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function eSe(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function tSe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function nSe(t,i){if(1&t){const e=F();l(0,"td",18)(1,"span")(2,"button",19),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function iSe(t,i){1&t&&D(0,"tr",20)}function oSe(t,i){1&t&&D(0,"tr",21)}function sSe(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,Qwe,3,3,"th",10),p(3,Zwe,2,1,"td",11),P(),A(4,12),p(5,Kwe,3,3,"th",10),p(6,Xwe,2,1,"td",11),P(),A(7,13),p(8,Jwe,3,3,"th",10),p(9,eSe,5,0,"td",11),P(),A(10,14),p(11,tSe,3,3,"th",10),p(12,nSe,5,0,"td",11),P(),p(13,iSe,1,0,"tr",15),p(14,oSe,1,0,"tr",16),d()),2&t){const e=b();f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function aSe(t,i){1&t&&(l(0,"div",22),D(1,"mat-spinner",23),d())}function rSe(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",24),h(2,"done"),d()())}function lSe(t,i){1&t&&(l(0,"div",22)(1,"mat-icon",25),h(2,"clear"),d()())}const cSe=function(){return[5,10,25,100]};let dSe=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"paymentMethods",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"paymentMethods"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openEditDialog(e){null==e&&(e=new KF);const n=this.updateDialog.open(Ywe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-paymentmethods-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,sSe,15,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,aSe,2,0,"div",7),p(9,rSe,3,0,"div",7),p(10,lSe,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,cSe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class Zl{constructor(){this.id=null,this.name="",this.gender="male",this.age="open",this.club=null,this.sport=null,this.region=null,this.shortName="",this.foreignName="",this.type="clubs",this.homeMatches=null,this.awayMatches=null,this.playerTeam=null}}function uSe(t,i){if(1&t&&(l(0,"mat-option",30),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function hSe(t,i){if(1&t&&(l(0,"mat-option",30),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function pSe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),l(11,"mat-form-field",5)(12,"mat-select",9,10),C(14,"translate"),l(15,"mat-option",11),h(16,"male"),d(),l(17,"mat-option",12),h(18,"female"),d()()(),l(19,"mat-form-field",5)(20,"mat-select",13,14),C(22,"translate"),l(23,"mat-option",15),h(24,"open"),d(),l(25,"mat-option",16),h(26,"u23"),d(),l(27,"mat-option",17),h(28,"u22"),d(),l(29,"mat-option",18),h(30,"u21"),d(),l(31,"mat-option",19),h(32,"u20"),d(),l(33,"mat-option",20),h(34,"u19"),d(),l(35,"mat-option",21),h(36,"u18"),d(),l(37,"mat-option",22),h(38,"u17"),d()()(),l(39,"mat-form-field",5)(40,"mat-select",23,24),C(42,"translate"),l(43,"mat-option"),h(44,"--"),d(),p(45,uSe,2,2,"mat-option",25),d()(),l(46,"mat-form-field",5)(47,"mat-select",26,27),C(49,"translate"),l(50,"mat-option"),h(51,"--"),d(),p(52,hSe,2,2,"mat-option",25),d()(),D(53,"mat-divider"),l(54,"p")(55,"button",28),h(56),C(57,"translate"),d(),h(58," \xa0 "),l(59,"button",29),M("click",function(){return E(e),I(b().onNoClick())}),h(60),C(61,"translate"),d()()()()()}if(2&t){const e=X(7),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,19,"general_name")),J("maxlength",n.teamNameLimit),c(4),We("",e.value.length," / ",n.teamNameLimit,""),c(2),N("placeholder",w(14,21,"general_gender")),f("compareWith",n.compareFn),c(8),N("placeholder",w(22,23,"general_age")),f("compareWith",n.compareFn),c(20),N("placeholder",w(42,25,"general_club")),f("compareWith",n.compareFn),c(5),f("ngForOf",n.clubs),c(2),N("placeholder",w(49,27,"general_sport")),f("compareWith",n.compareFn),c(5),f("ngForOf",n.sports),c(3),f("disabled",n.options.invalid),c(1),O(w(57,29,"general_save")),c(4),O(w(61,31,"general_close"))}}function mSe(t,i){1&t&&(l(0,"div",31),D(1,"mat-spinner",32),d())}function fSe(t,i){1&t&&(l(0,"div",31)(1,"mat-icon",33),h(2,"done"),d()())}function _Se(t,i){1&t&&(l(0,"div",31)(1,"mat-icon",34),h(2,"clear"),d()())}let gSe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.clubs=[]}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Zl),this.service=new Q(v.apiURLs.rootURL+"teams",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],gender:[this.entity.gender,ue.required],age:[this.entity.age,ue.required],club:[this.entity.club,ue.required],sport:[this.entity.sport,ue.required]}),this.clubService=new Q(v.apiURLs.rootURL+"clubs",this.http),this.clubService.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.clubs=e})}get regions(){return v.regions}get sports(){return v.sports}get title(){return this.translateService.instant(null==this.entity.id?"team_add_new":"team_edit")}get teamNameLimit(){return v.stringLimits.teamNameLimit}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.gender=this.options.value.gender,this.entity.age=this.options.value.age,this.entity.club=this.options.value.club,this.entity.sport=this.options.value.sport,this.entity.shortName=this.options.value.club.shortName,this.entity.foreignName=this.options.value.club.foreignName,this.entity.region=this.options.value.club.region,this.entity.type=this.options.value.club.type;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-team-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","gender","name","gender",1,"capitalize",3,"compareWith","placeholder"],["gender",""],["value","male",1,"capitalize"],["value","female",1,"capitalize"],["formControlName","age","name","age",1,"capitalize",3,"compareWith","placeholder"],["age",""],["value","open",1,"capitalize"],["value","u23",1,"capitalize"],["value","u22",1,"capitalize"],["value","u21",1,"capitalize"],["value","u20",1,"capitalize"],["value","u19",1,"capitalize"],["value","u18",1,"capitalize"],["value","u17",1,"capitalize"],["formControlName","club","name","club","required","",3,"compareWith","placeholder"],["club",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","sport","name","sport","required","",3,"compareWith","placeholder"],["sport",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,pSe,62,33,"div",0),p(1,mSe,2,0,"div",1),p(2,fSe,3,0,"div",1),p(3,_Se,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),Zw=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-team-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-team-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,gSe]})}return t})();class XF{constructor(){this.player=null,this.team=null}}function bSe(t,i){1&t&&(l(0,"th",11),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function vSe(t,i){if(1&t&&(l(0,"td",12),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.player.name," ")}}function ySe(t,i){1&t&&(l(0,"th",11),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function CSe(t,i){if(1&t){const e=F();l(0,"td",12)(1,"span")(2,"button",13),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",14),h(4,"delete"),d()()()()}}function wSe(t,i){1&t&&D(0,"tr",15)}function SSe(t,i){1&t&&D(0,"tr",16)}function TSe(t,i){if(1&t&&(l(0,"table",4),A(1,5),p(2,bSe,3,3,"th",6),p(3,vSe,2,1,"td",7),P(),A(4,8),p(5,ySe,3,3,"th",6),p(6,CSe,5,0,"td",7),P(),p(7,wSe,1,0,"tr",9),p(8,SSe,1,0,"tr",10),d()),2&t){const e=b();f("dataSource",e.dataSource),c(7),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function DSe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e.name),c(1),T("",e.name," ")}}function MSe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",17)(2,"form",18)(3,"p",19),h(4),d(),l(5,"mat-form-field",20)(6,"mat-label"),h(7),C(8,"translate"),d(),D(9,"input",21),C(10,"translate"),l(11,"mat-autocomplete",null,22),p(13,DSe,2,2,"mat-option",23),C(14,"async"),d()(),D(15,"mat-divider"),l(16,"p")(17,"button",24),M("click",function(){return E(e),I(b().addPlayerTeam())}),l(18,"mat-icon",14),h(19,"add"),d()(),l(20,"button",25),M("click",function(){return E(e),I(b().savePlayerTeam())}),l(21,"mat-icon",14),h(22,"save"),d()(),h(23," \xa0"),l(24,"button",26),M("click",function(){return E(e),I(b().onNoClick())}),h(25),C(26,"translate"),d()()()()()}if(2&t){const e=X(12),n=b();c(4),O(n.title),c(3),O(w(8,7,"general_player")),c(2),N("placeholder",w(10,9,"general_player")),f("formControl",n.myControl)("matAutocomplete",e),c(4),f("ngForOf",w(14,11,n.filteredPlayers)),c(12),O(w(26,13,"general_close"))}}function xSe(t,i){1&t&&(l(0,"div",28),D(1,"mat-spinner",29),d())}function ESe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",30),h(2,"done"),d()())}function ISe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",31),h(2,"clear"),d()())}let OSe=(()=>{class t{_filter(e){let n;return n=e.name?e.name.toLowerCase():e.toLowerCase(),this.players.filter(o=>o.name?.toLowerCase().includes(n))}constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.newEntity=null,this.players=[],this.playersTeams=[],this.playerTempAddDelArr=[],this.columnsToDisplay=["name","delete"],this.myControl=new ji("")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}ngOnChanges(){this.onProgress=0,null===this.newEntity&&(this.newEntity=new XF,this.newEntity.team=this.entity),this.playerService=new Q(v.apiURLs.rootURL+"players",this.http),this.playerService.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.players=e}),this.service=new Q(v.apiURLs.rootURL+"playerteams/"+this.entity.id,this.http),this.service.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.playersTeams=e,this.updatePlayersView(e)}),this.filteredPlayers=this.myControl.valueChanges.pipe(jt(""),Le(e=>this._filter(e||"")))}updatePlayersView(e){this.dataSource=new ke(e),this.dataSource.sortingDataAccessor=Sp,this.dataSource.sort=this.sort}get title(){return this.translateService.instant(null==this.entity.id?"playerteam_add_new":"playerteam_edit")}openDeleteDialog(e){const n=this.playerTempAddDelArr.findIndex(o=>o.player?.name==e.player?.name);-1!=n?(this.playerTempAddDelArr.splice(n,1),this.updatePlayersView([...this.playersTeams,...this.playerTempAddDelArr])):(this.service=new Q(v.apiURLs.rootURL+"playerteams",this.http),null!=e?this.service.delete(e.player?.id).subscribe(o=>{if(o.Result===v.apiSuccessMsg){const s=this.playersTeams.findIndex(a=>a.player?.id==e.player?.id);this.playersTeams.splice(s,1),this.updatePlayersView([...this.playersTeams,...this.playerTempAddDelArr])}}):this.onProgress=0)}addPlayerTeam(){let e={player:this.players.find(n=>n.name===this.myControl.value),team:this.entity};null!=e.player&&(this.playerTempAddDelArr.push(e),this.updatePlayersView([...this.playersTeams,...this.playerTempAddDelArr]))}savePlayerTeam(){this.service=new Q(v.apiURLs.rootURL+"playerteams",this.http);const e=this;this.service.create(this.playerTempAddDelArr).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-player-team-dialog-content"]],viewQuery:function(n,o){if(1&n&&ne(Nn,7),2&n){let s;G(s=z())&&(o.sort=s.first)}},inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:6,vars:5,consts:[[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],[4,"ngIf"],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],[1,"mat-24"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[2,"margin","40px"],[1,"example-container"],[1,"mat-title"],["appearance","fill",1,"example-full-width"],["type","text","aria-label","Number","matInput","",3,"placeholder","formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",1,"",3,"click"],["mat-raised-button","","color","primary",1,"",3,"click"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,TSe,9,3,"table",1),d(),p(2,MSe,27,15,"div",2),p(3,xSe,2,0,"div",3),p(4,ESe,3,0,"div",3),p(5,ISe,3,0,"div",3)),2&n&&(c(1),f("ngIf",0==o.onProgress),c(1),f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,mr,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,xt,Vt,Lt,Mt,Bt,wr,wl,Ds,ut,gt,Tr,zt,wn,ql,Ad,Wl,Ft,Gt,gn,xn,je,Fe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),RSe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-player-team-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-player-team-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,OSe]})}return t})();const kSe=["regionsSelect"];function ASe(t,i){if(1&t){const e=F();l(0,"mat-chip",5),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"RG"))}),h(1),l(2,"mat-icon",6),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",e.name),c(1),T(" ",e.name," ")}}function PSe(t,i){if(1&t){const e=F();l(0,"mat-chip",7),M("click",function(){return E(e),I(b().onResetClick())}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_reset")," "))}function NSe(t,i){if(1&t&&(l(0,"mat-option",12),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function FSe(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-form-field",8)(2,"mat-select",9,10),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(4,"translate"),p(5,NSe,2,2,"mat-option",11),d()()()}if(2&t){const e=b();c(2),N("placeholder",w(4,4,"general_regions")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(3),f("ngForOf",e.regions)}}let JF=(()=>{class t{constructor(e){this.filterService=e,this.onResetFilters=new W,this.onFilterdTeams=new W,this.regions=[],this.selectedRegions=[],this.panelOpenState=!1}ngOnInit(){}get showResetButton(){return!!(Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0)}ngOnChanges(e){e.teams&&e.teams.currentValue&&e.teams.previousValue&&!Object.is(e.teams.currentValue,e.teams.previousValue)&&this.onFilter()}ngAfterContentInit(){this.getSessionStorage(),this.onFilter()}onFilter(){let e=[];for(let n of this.teams)this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region",this.shouldAcceptTeamByRegion)&&e.push(n);this.initFilterOptions(this.teams),this.setSessionStorage(),this.onFilterdTeams.emit(e)}shouldAcceptTeamByRegion(e,n){return!(!e?.region||n.id!==e.region.id)}initFilterOptions(e){this.regions=[];let n=[];e&&e.length>0&&e.forEach(o=>{o.region?.id&&-1===n.findIndex(s=>+o.region.id==s)&&(this.regions.push(o.region),this.regions.sort(xi("name")),n.push(o.region.id))})}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStorageTeams")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,this.selectedRegions=e.selectedRegions)}setSessionStorage(){sessionStorage.setItem("filterStorageTeams",JSON.stringify({panelOpenState:this.panelOpenState||!1,selectedRegions:this.selectedRegions||[]}))}removeSingleFilter(e,n){"RG"===n&&(this.filterService.removeElementFromArray(e,this.selectedRegions),this.regionsSelect.writeValue(this.selectedRegions)),this.onFilter()}onResetClick(){this.selectedRegions=[],this.panelOpenState=!1,this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-teams-filter"]],viewQuery:function(n,o){if(1&n&&ne(kSe,5),2&n){let s;G(s=z())&&(o.regionsSelect=s.first)}},inputs:{teams:"teams"},outputs:{onResetFilters:"onResetFilters",onFilterdTeams:"onFilterdTeams"},standalone:!0,features:[fe,Z],decls:10,vars:6,consts:[[2,"margin","10px",3,"expanded","opened","closed"],[2,"align-items","center"],["color","accent","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","grey","selected","","matTooltip","reset","class","reset",3,"click",4,"ngIf"],["matExpansionPanelContent",""],["color","accent","selected","",3,"matTooltip","removed"],["matChipRemove",""],["color","grey","selected","","matTooltip","reset",1,"reset",3,"click"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["regionsSelect",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){1&n&&(l(0,"mat-expansion-panel",0),M("opened",function(){return o.panelExpanded(!0)})("closed",function(){return o.panelExpanded(!1)}),l(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),h(3),C(4,"translate"),l(5,"mat-chip-list"),p(6,ASe,4,2,"mat-chip",2),d()(),l(7,"mat-panel-description"),p(8,PSe,3,3,"mat-chip",3),d()(),p(9,FSe,6,6,"ng-template",4),d()),2&n&&(f("expanded",o.panelOpenState),c(3),T(" ",w(4,4,"general_filtering"),"\xa0\xa0 "),c(3),f("ngForOf",o.selectedRegions),c(2),f("ngIf",o.showResetButton))},dependencies:[sa,oa,Ua,$a,Rr,Ha,Bd,Ld,Br,Fd,ce,qe,le,ki,mo,Me,Oe,ut,gt,on,Tn,Ft,Gt,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();function LSe(t,i){if(1&t){const e=F();l(0,"app-teams-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdTeams",function(o){return E(e),I(b().onFilterdTeams(o))}),d()}2&t&&f("teams",b().teams)}function BSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function VSe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function HSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function USe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function $Se(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_gender")," "))}function jSe(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.gender," ")}}function GSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_age")," "))}function zSe(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.age," ")}}function WSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_club")," "))}function qSe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.club?e.club.name:""," ")}}function YSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_sport")," "))}function QSe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",null==e.sport?null:e.sport.name," ")}}function ZSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_short_name")," "))}function KSe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.shortName," ")}}function XSe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function JSe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function eTe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function tTe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",null==e.region?null:e.region.name," ")}}function nTe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function iTe(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.type," ")}}function oTe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_player")," "))}function sTe(t,i){1&t&&(l(0,"mat-icon",35),h(1," perm_identity "),d())}function aTe(t,i){1&t&&(l(0,"mat-icon",36),h(1," perm_identity "),d())}function rTe(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openPlayersEditDialog(s))}),p(3,sTe,2,0,"mat-icon",33),p(4,aTe,2,0,"mat-icon",34),d()()()}if(2&t){const e=i.$implicit;c(3),f("ngIf",e.playerTeam.length>0),c(1),f("ngIf",!e.playerTeam.length>0)}}function lTe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function cTe(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function dTe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function uTe(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function hTe(t,i){1&t&&D(0,"tr",37)}function pTe(t,i){1&t&&D(0,"tr",38)}function mTe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,BSe,3,3,"th",12),p(3,VSe,2,1,"td",13),P(),A(4,14),p(5,HSe,3,3,"th",12),p(6,USe,2,1,"td",13),P(),A(7,15),p(8,$Se,3,3,"th",12),p(9,jSe,2,1,"td",16),P(),A(10,17),p(11,GSe,3,3,"th",12),p(12,zSe,2,1,"td",16),P(),A(13,18),p(14,WSe,3,3,"th",12),p(15,qSe,2,1,"td",13),P(),A(16,19),p(17,YSe,3,3,"th",12),p(18,QSe,2,1,"td",13),P(),A(19,20),p(20,ZSe,3,3,"th",12),p(21,KSe,2,1,"td",13),P(),A(22,21),p(23,XSe,3,3,"th",12),p(24,JSe,2,1,"td",13),P(),A(25,22),p(26,eTe,3,3,"th",12),p(27,tTe,2,1,"td",13),P(),A(28,23),p(29,nTe,3,3,"th",12),p(30,iTe,2,1,"td",16),P(),A(31,24),p(32,oTe,3,3,"th",12),p(33,rTe,5,2,"td",13),P(),A(34,25),p(35,lTe,3,3,"th",12),p(36,cTe,5,0,"td",13),P(),A(37,26),p(38,dTe,3,3,"th",12),p(39,uTe,5,0,"td",13),P(),p(40,hTe,1,0,"tr",27),p(41,pTe,1,0,"tr",28),d()),2&t){const e=b();f("dataSource",e.dataSource),c(40),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function fTe(t,i){1&t&&(l(0,"div",39),D(1,"mat-spinner",40),d())}function _Te(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",41),h(2,"done"),d()())}function gTe(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",42),h(2,"clear"),d()())}const bTe=function(){return[5,10,25,100]};let vTe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","name","gender","age","club","sport","shortName","foreignName","region","type","player","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"teams",this.http),this.service.getAllObservable(v.token,v.userId,"&playerTeam=true").subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.teams=e,this.updateTeamsView(this.teams)})}get dataSize(){return 0}updateTeamsView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdTeams(e){this.updateTeamsView(e)}onResetFilters(){this.updateTeamsView(this.teams)}openPlayersEditDialog(e){null==e&&(e=new Zl);const n=this.updateDialog.open(RSe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openEditDialog(e){null==e&&(e=new Zl);const n=this.updateDialog.open(Zw,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-teams-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"teams","onResetFilters","onFilterdTeams",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"teams","onResetFilters","onFilterdTeams"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","gender"],["mat-cell","","class","capitalize",4,"matCellDef"],["matColumnDef","age"],["matColumnDef","club"],["matColumnDef","sport"],["matColumnDef","shortName"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","type"],["matColumnDef","player"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"capitalize"],["mat-icon-button","",3,"click"],["class","mat-24","color","primary",4,"ngIf"],["class","mat-24","color","warn",4,"ngIf"],["color","primary",1,"mat-24"],["color","warn",1,"mat-24"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,LSe,1,1,"app-teams-filter",1),l(2,"div",2),p(3,mTe,42,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,fTe,2,0,"div",8),p(10,_Te,3,0,"div",8),p(11,gTe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,bTe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,JF,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();function yTe(t,i){if(1&t&&(ai(),vo(),D(0,"app-visual-pitch",21)),2&t){const e=b();f("VEvent",e.visualEvent)("Sport",e.match.sport.name)}}function CTe(t,i){1&t&&(l(0,"span",22),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_closed_game")))}function wTe(t,i){1&t&&(l(0,"span",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T("\xa0",w(2,1,"general_var"),""))}function STe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function TTe(t,i){if(1&t&&(l(0,"td",36),h(1),D(2,"br"),h(3),d()),2&t){const e=i.$implicit,n=b(2);Ln(n.rowClass(e)),it("background-color",e.team?"H"===e.team?"var(--event-color-home)":"var(--event-color-away)":"")("color",e.team?"white":""),c(1),T(" ",e.id,""),c(2),O(n.rowClass(e,!0))}}function DTe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function MTe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit,n=b(2);it("background-color",e.team?"H"===e.team?"var(--event-color-home)":"var(--event-color-away)":"")("color",e.team?"white":""),c(1),T(" ",n.getformatedDate(e.timeServer)," ")}}function xTe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time_match")," "))}function ETe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;it("background-color",e.team?"H"===e.team?"var(--event-color-home)":"var(--event-color-away)":"")("color",e.team?"white":""),c(1),T(" ",e.timeMatch," ")}}function ITe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_event")," "))}function OTe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit,n=b(2);it("text-align",e.team?"H"===e.team?"left":"right":"center")("background-color",e.team?"H"===e.team?"var(--event-color-home)":"var(--event-color-away)":"")("color",e.team?"white":""),c(1),T(" ",n.getEvent(e)," ")}}function RTe(t,i){1&t&&D(0,"tr",37)}function kTe(t,i){1&t&&D(0,"tr",38)}function ATe(t,i){if(1&t&&(l(0,"table",24),A(1,25),p(2,STe,3,3,"th",26),p(3,TTe,4,8,"td",27),P(),A(4,28),p(5,DTe,3,3,"th",26),p(6,MTe,2,5,"td",29),P(),A(7,30),p(8,xTe,3,3,"th",26),p(9,ETe,2,5,"td",29),P(),A(10,31),p(11,ITe,3,3,"th",26),p(12,OTe,2,7,"td",32),P(),p(13,RTe,1,0,"tr",33),p(14,kTe,1,0,"tr",34),d()),2&t){const e=b();f("dataSource",e.dataSource),c(13),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function PTe(t,i){1&t&&(l(0,"div",39),D(1,"mat-spinner",40),d())}function NTe(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",41),h(2,"done"),d()())}function FTe(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",42),h(2,"clear"),d()())}let eL=(()=>{class t{set content(e){this.dataSource&&(this.dataSource.sort=e)}constructor(e,n,o,s,a,r){this.breakpointObserver=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.route=a,this.translateService=r,this.onProgress=0,this.matchClock="00:00",this.inputmatchId=0,this.matchId=null,this.match=new da,this.columnsToDisplay=["id","timeServer","timeMatch","event"],this.lastRefresh=null,this.keepFetchingData=!0,this.openedDrawer=!1,this.visualEvent=null,this.showVisualPitch=!0,this.msDiff=0,this.events=[],this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.showContainer=!1}resetMatchParams(){this.msDiff=0,this.matchId=0,this.match=new da,this.matchClock="00:00",this.events=[],this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.dataSource=new ke(this.events),this.dataSource.paginator=this.paginator,this.lastRefresh=null,this.keepFetchingData=!0,clearInterval(this.refreshId),clearInterval(this.clockRefreshId)}ngOnInit(){this.resetMatchParams(),this.onProgress=0,this.route.paramMap.subscribe(e=>{this.inputmatchId>0?this.matchId=this.inputmatchId:-1!=this.inputmatchId&&(this.matchId=+e.get("matchId")),this.service=new Q(v.apiURLs.rootURL+(v.userType==Be.ACCOUNT_TYPE_CUSTOMER||v.userType==Be.ACCOUNT_TYPE_TRIAL?"customer/":"")+"matches/"+this.matchId+"/matchEvents",this.http),this.service.getAllObservable(v.token,v.userId).subscribe({next:o=>{this.match=o.match},error:o=>{console.log(o)}}),this.clockRefreshId=setInterval(()=>this.updateMatchClock(),v.matchClockRefreshDelay),this.startAutoRefresh()}),this.breakpointObserver.observe(["(min-width: 768px)"]).subscribe(e=>{this.showContainer=!!e.matches})}ngOnChanges(){this.resetMatchParams(),this.onProgress=0,this.route.paramMap.subscribe(e=>{this.inputmatchId>0?this.matchId=this.inputmatchId:-1!=this.inputmatchId&&(this.matchId=+e.get("matchId")),this.service=new Q(v.apiURLs.rootURL+(v.userType===Be.ACCOUNT_TYPE_CUSTOMER?"customer/":"")+"matches/"+this.matchId+"/matchEvents",this.http),this.clockRefreshId=setInterval(()=>this.updateMatchClock(),v.matchClockRefreshDelay),this.startAutoRefresh()})}startAutoRefresh(){this.matchId&&this.matchId>0&&(this.keepFetchingData=!0,this.refreshId=setInterval(()=>this.fetchData(),v.eventsRefreshDelay))}updateMatchClock(){this.match&&(this.matchClock=Ep(this.match,this.msDiff))}getdisplayType(e){return e.name===ge.Comment?""+e.value:e.name===ge.Attendance?e.value+"%":e.type?this.translateService.instant("event_type_"+e.type):""}ngOnDestroy(){this.resetMatchParams()}get pauseButtonColor(){return this.keepFetchingData?"":"primary"}get playButtonColor(){return this.keepFetchingData?"primary":""}showReferees(){let e=this.match.refereeList;return!(!this.match?.refereeList||"object"==typeof this.match.refereeList||(e=JSON.parse(this.match.refereeList),!e?.refereeMain||"null"==e.refereeMain))}fetchData(e){this.keepFetchingData||e?(this.lastRefresh=new Date,this.service.getAllObservable(v.token,v.userId,"&size="+this.events.length+"&frontend=true").subscribe({next:n=>{let o=n;if(o?.events?.length>0){const s={...this.match.matchInfo};o.match.matchInfo=s,"string"==typeof o.match.refereeList&&(this.refereeList=JSON.parse(o.match.refereeList)),Array.isArray(o.events)&&o.events[0]&&o.events.length!==this.events.length&&(1==o.events.length?o.events[0].name==ge.LineupChange&&(o.events[0].team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest)):(this.awayMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest))):o.events.sort((a,r)=>{if(a.name==ge.Substitution&&r.name==ge.Substitution){if(-1!=a.value?.indexOf("[")){let u=JSON.parse(a.value);a.value=u}if(-1!=r.value?.indexOf("[")){let u=JSON.parse(r.value);r.value=u}}return r.name==ge.LineupChange&&(r.team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(r.value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(r.value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(r.value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(r.value).rest)):(this.awayMatchLineup.formation=JSON.parse(r.value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(r.value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(r.value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(r.value).rest))),r.id-a.id}),this.events=o.events,this.visualEvent=o.events[0],(null==this.msDiff||0==this.msDiff)&&o.now&&(this.msDiff=(new Date).getTime()-new Date(o.now).getTime()),"football"==o.match.sport?.name.toLowerCase()?o.match.matchInfo=Yg(o.match,o.events):"basketball"==o.match.sport?.name.toLowerCase()&&(o.match.matchInfo=qg(o.match,o.events)),this.match=o.match,this.dataSource=new ke(this.events))}},error:n=>{console.log(n)}})):clearInterval(this.refreshId)}rowClass(e,n){if(e?.parentMatchEvent){if(n){let o="";return o+=" "+e.parentMatchEvent.id,"Child of"+o}return"old_event"}return""}getEvent(e){return"football"==this.match.sport?.name.toLowerCase()?Ww(e,this.translateService):"basketball"==this.match.sport?.name.toLowerCase()?zw(e,this.translateService):void 0}getformatedDate(e){const n=new Date(e);return`${n.getHours().toString().padStart(2,"0")}:${n.getMinutes().toString().padStart(2,"0")}:${n.getSeconds().toString().padStart(2,"0")}`}get dataSize(){return 0}get weatherIconName(){if(this.match?.weatherCondition){if("Rainy"===this.match.weatherCondition)return"rainy";if("Snowy"===this.match.weatherCondition)return"snowy";if("Cloudy"===this.match.weatherCondition)return"cloudy"}return"sun"}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ra),_(Ee),_(Wt),_(Sn),_(cs),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-customer-matchevents-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,5)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.content=s.first)}},inputs:{inputmatchId:"inputmatchId"},standalone:!0,features:[fe,Z],decls:28,vars:31,consts:[[2,"width","100%",3,"matchClock","match"],[1,"screen-container"],[1,"middle-container"],[1,"Info",3,"match","refereeList","homeMatchLineup","awayMatchLineup","events","showHeader","showStats"],[1,"horizontal-center","MCD"],[1,"horizontal-center"],[1,"vertical-column","cloth-Container"],["width","80","height","80"],["href","/assets/images/shirt.svg#shirt","x","0","y","0",1,"cloth"],["width","48","height","48",2,"margin-top","-0.5em"],["href","/assets/images/short.svg#short","x","0","y","0",1,"cloth"],[3,"VEvent","Sport",4,"ngIf"],[2,"display","flex"],["class","quadrat",4,"ngIf"],["class","horizontal-center var_on",4,"ngIf"],[1,"menu-capture"],[1,"events-table-container"],[2,"overflow","scroll","height","100%"],["mat-table","","matSort","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],[3,"match","refereeList","homeMatchLineup","awayMatchLineup","events","showHeader","showStats"],["class","screen-centered",4,"ngIf"],[3,"VEvent","Sport"],[1,"quadrat"],[1,"horizontal-center","var_on"],["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"class","background-color","color",4,"matCellDef"],["matColumnDef","timeServer"],["mat-cell","",3,"background-color","color",4,"matCellDef"],["matColumnDef","timeMatch"],["matColumnDef","event"],["mat-cell","",3,"text-align","background-color","color",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(D(0,"app-match-event-header",0),l(1,"div",1)(2,"mat-card",2),D(3,"app-info-section",3),l(4,"div",4)(5,"span",5)(6,"div",6),ai(),l(7,"svg",7),D(8,"use",8),d(),l(9,"svg",9),D(10,"use",10),d()(),p(11,yTe,1,2,"app-visual-pitch",11),vo(),l(12,"div",6),ai(),l(13,"svg",7),D(14,"use",8),d(),l(15,"svg",9),D(16,"use",10),d()()()(),vo(),l(17,"div",12),p(18,CTe,3,3,"span",13),p(19,wTe,3,3,"span",14),d(),l(20,"div",15)(21,"div",16)(22,"div",17),p(23,ATe,15,3,"table",18),d()()()(),D(24,"app-info-section",19),p(25,PTe,2,0,"div",20),p(26,NTe,3,0,"div",20),p(27,FTe,3,0,"div",20),d()),2&n&&(f("matchClock",o.matchClock)("match",o.match),c(3),f("match",o.match)("refereeList",o.refereeList)("homeMatchLineup",o.homeMatchLineup)("awayMatchLineup",o.awayMatchLineup)("events",o.events)("showHeader",!o.showContainer)("showStats",!1),c(5),it("fill",o.match.homeColorPrimary?o.match.homeColorPrimary:"white"),c(2),it("fill",o.match.homeColorSecondary?o.match.homeColorSecondary:"white"),c(1),f("ngIf",o.showVisualPitch),c(3),it("fill",o.match.awayColorPrimary?o.match.awayColorPrimary:"white"),c(2),it("fill",o.match.awayColorSecondary?o.match.awayColorSecondary:"white"),c(2),f("ngIf",o.match&&!0===o.match.closedGame),c(1),f("ngIf",o.match&&(null==o.match.footballStat?null:o.match.footballStat.varUsage)),c(4),f("ngIf",0==o.onProgress),c(1),f("match",o.match)("refereeList",o.refereeList)("homeMatchLineup",o.homeMatchLineup)("awayMatchLineup",o.awayMatchLineup)("events",o.events)("showHeader",o.showContainer)("showStats",!0),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[HF,Yw,ta,Fa,ce,le,zF,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,je,Fe,Me,Oe,_e,we],styles:[".mat-header-cell[_ngcontent-%COMP%], .menu-capture[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif}.mat-column-id[_ngcontent-%COMP%], .mat-column-timeMatch[_ngcontent-%COMP%], .mat-column-timeServer[_ngcontent-%COMP%]{width:70px;max-width:70px}.full-width[_ngcontent-%COMP%], table[_ngcontent-%COMP%]{width:100%}.Away[_ngcontent-%COMP%], .Home[_ngcontent-%COMP%]{margin:0 40%;flex:0}.example-container[_ngcontent-%COMP%]{display:flex;height:100%;flex:1}.example-sidenav-content[_ngcontent-%COMP%]{display:flex;min-height:100%;min-width:100%;flex:1;flex-direction:column}.example-sidenav[_ngcontent-%COMP%]{padding:20px}.vertical-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;margin:1em}tr[_ngcontent-%COMP%]{height:32px!important}td.mat-cell[_ngcontent-%COMP%]:first-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:first-of-type, th.mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}p[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin:0 1em}.screen-container[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;width:100%;height:94%}.menu-capture[_ngcontent-%COMP%]{display:block;position:relative;height:60%;width:95%}.MCD[_ngcontent-%COMP%]{justify-content:space-evenly;flex-direction:row;width:100%;align-items:center;height:38%;transform:scale(.9)}.events-table-container[_ngcontent-%COMP%]{height:100%;background-color:#d3d3d3;border-radius:15px}.old_event[_ngcontent-%COMP%]{filter:brightness(.9)}.middle-container[_ngcontent-%COMP%]{height:100%;box-shadow:none!important;display:flex;flex-direction:column;align-items:center;background:0 0}th[_ngcontent-%COMP%]{font-weight:800}table[_ngcontent-%COMP%]{background:0 0;font-weight:500}.Info[_ngcontent-%COMP%]{margin-top:1em}@media only screen and (max-width: 768px){.menu-capture[_ngcontent-%COMP%]{width:auto;height:22em}.MCD[_ngcontent-%COMP%]{transform:scale(.6);height:9.5em}.screen-container[_ngcontent-%COMP%]{flex-direction:column;height:auto}.middle-container[_ngcontent-%COMP%]{height:auto;margin-bottom:1em}.Info[_ngcontent-%COMP%]{margin:0;height:7.5em;transform:scale(.8)}}@media only screen and (min-width: 768px){.menu-capture[_ngcontent-%COMP%]{width:auto;height:22em}.middle-container[_ngcontent-%COMP%]{zoom:.8}.MCD[_ngcontent-%COMP%]{transform:scale(.6);height:9.5em}.screen-container[_ngcontent-%COMP%]{height:90%}.Info2[_ngcontent-%COMP%]{height:auto;transform:scale(1);zoom:.65}.Info[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 992px){.table-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.menu-capture[_ngcontent-%COMP%]{height:52%;width:37em}.MCD[_ngcontent-%COMP%]{height:38%;transform:scale(.9)}.events-table-container[_ngcontent-%COMP%]{height:100%;background-color:#d3d3d3;border-radius:15px}.middle-container[_ngcontent-%COMP%]{height:100%;transform:scale(1);zoom:1}.screen-container[_ngcontent-%COMP%]{height:94%}.Info2[_ngcontent-%COMP%]{height:auto;transform:scale(1);zoom:1}.Info[_ngcontent-%COMP%]{display:none}}"]})}return t})();function LTe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_match_status")))}const BTe=function(t){return{color:t}};function VTe(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit,n=b();f("ngStyle",zn(2,BTe,n.matchesService.getMatchStatus(e,n.translateService).color)),c(1),T(" ",n.matchesService.getMatchStatus(e,n.translateService).status," ")}}function HTe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function UTe(t,i){if(1&t&&(l(0,"td",19),h(1),C(2,"date"),d()),2&t){const e=i.$implicit;c(1),T(" ",Zm(2,1,e.plannedStartingTime,"HH:mm")," ")}}function $Te(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_competition")," "))}function jTe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.competition.name," ")}}function GTe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_home")," "))}function zTe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.homeTeam.name," ")}}function WTe(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_away")," "))}function qTe(t,i){if(1&t&&(l(0,"td",19),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.awayTeam.name," ")}}function YTe(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_staff")," "))}function QTe(t,i){1&t&&(l(0,"mat-icon",27),h(1," perm_identity "),d())}function ZTe(t,i){1&t&&(l(0,"mat-icon",28),h(1," perm_identity "),d())}function KTe(t,i){if(1&t&&(l(0,"div")(1,"b"),h(2,"Reporter:"),d(),h(3),d()),2&t){const e=b(2).$implicit;c(3),T(" ",e.assignedReporter.firstName+" "+e.assignedReporter.lastName," ")}}function XTe(t,i){if(1&t&&(l(0,"div")(1,"b"),h(2,"Moderator:"),d(),h(3),d()),2&t){const e=i.$implicit;c(3),T(" ",e?e.firstName+" "+e.lastName:""," ")}}function JTe(t,i){if(1&t&&(l(0,"div"),p(1,KTe,4,1,"div",9),l(2,"span"),p(3,XTe,4,1,"div",29),d()()),2&t){const e=b().$implicit;c(1),f("ngIf",e.assignedReporter),c(2),f("ngForOf",e.assignedModerators)}}function e2e(t,i){1&t&&h(0,"Staff")}function t2e(t,i){if(1&t&&(l(0,"td",19)(1,"span")(2,"button",22),p(3,QTe,2,0,"mat-icon",23),p(4,ZTe,2,0,"mat-icon",24),d()(),p(5,JTe,4,2,"ng-template",null,25,Nt),p(7,e2e,1,0,"ng-template",null,26,Nt),d()),2&t){const e=i.$implicit,n=X(6),o=X(8);c(2),f("ngbPopover",n)("popoverTitle",o),c(1),f("ngIf",e.assignedReporter||e.assignedModerators.length>0),c(1),f("ngIf",!e.assignedReporter&&0==e.assignedModerators.length)}}function n2e(t,i){1&t&&(l(0,"span"),A(1,20),p(2,YTe,3,3,"th",11),p(3,t2e,9,4,"td",5),P(),d())}function i2e(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_add")," "))}function o2e(t,i){if(1&t){const e=F();l(0,"td",19)(1,"a",30),M("click",function(){const s=E(e).$implicit;return I(b().addMatch(s))}),l(2,"mat-icon",27),h(3,"add"),d()()()}}function s2e(t,i){1&t&&D(0,"tr",31)}function a2e(t,i){1&t&&D(0,"tr",32)}function r2e(t,i){1&t&&(l(0,"div",33),D(1,"mat-spinner",34),d())}function l2e(t,i){1&t&&(l(0,"div",33)(1,"mat-icon",35),h(2,"done"),d()())}function c2e(t,i){1&t&&(l(0,"div",33)(1,"mat-icon",36),h(2,"clear"),d()())}const d2e=function(){return[5,10,25,100]};let u2e=(()=>{class t{constructor(e,n,o,s,a){this.http=e,this.snackBar=n,this.matchesService=o,this.usersService=s,this.translateService=a,this.onProgress=0,this.columnsToDisplay=["matchStatus","plannedStartingTime","competition","homeTeam","awayTeam","staff","add"],this.matchIds=[],this.onMatchSelected=new W,v.userType===Be.ACCOUNT_TYPE_ADMIN?this.service=new Q(v.apiURLs.rootURL+"matches",this.http):v.userType===Be.ACCOUNT_TYPE_MODERATOR?this.service=new Q(v.apiURLs.rootURL+"moderator/matches",this.http):v.userType===Be.ACCOUNT_TYPE_CUSTOMER&&(this.service=new Q(v.apiURLs.rootURL+"mypurchases",this.http))}ngOnChanges(){this.onProgress=0;let e="&today=true";e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,"&today=true&sportSpecificStats=true").subscribe(n=>{let o=[],s=n;Array.isArray(s)&&s.length>0&&(s[0].plannedStartingTime||(s=function bue(t){let i=[];return t.forEach(e=>{e.match&&i.push(e.match)}),i}(s)),o=s.filter(a=>{for(const r of this.matchIds)if(r==a.id)return!1;return!0})),this.dataSource=new ke(o),this.dataSource.sortingDataAccessor=Sp,this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator})}getformatedDate(e){const n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}get dataSize(){return 0}addMatch(e){this.onMatchSelected.emit(""+e.id)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Sn),_(ua),_(ds),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-simple-matches-list-dialog-content"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},inputs:{matchIds:"matchIds"},outputs:{onMatchSelected:"onMatchSelected"},standalone:!0,features:[fe,Z],decls:28,vars:12,consts:[["mat-table","","matSort","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","matchStatus"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","plannedStartingTime"],["mat-cell","",4,"matCellDef"],["matColumnDef","competition"],["matColumnDef","homeTeam"],["matColumnDef","awayTeam"],[4,"ngIf"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"ngStyle"],["mat-cell",""],["matColumnDef","staff"],["mat-header-cell",""],["mat-icon-button","","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","left",3,"ngbPopover","popoverTitle"],["class","mat-24","color","primary",4,"ngIf"],["class","mat-24","color","warn",4,"ngIf"],["R_POP",""],["R_POP_T",""],["color","primary",1,"mat-24"],["color","warn",1,"mat-24"],[4,"ngFor","ngForOf"],["mat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div")(1,"table",0),A(2,1),p(3,LTe,3,3,"th",2),p(4,VTe,2,4,"td",3),P(),A(5,4),p(6,HTe,3,3,"th",2),p(7,UTe,3,4,"td",5),P(),A(8,6),p(9,$Te,3,3,"th",2),p(10,jTe,2,1,"td",5),P(),A(11,7),p(12,GTe,3,3,"th",2),p(13,zTe,2,1,"td",5),P(),A(14,8),p(15,WTe,3,3,"th",2),p(16,qTe,2,1,"td",5),P(),p(17,n2e,4,0,"span",9),A(18,10),p(19,i2e,3,3,"th",11),p(20,o2e,4,0,"td",5),P(),p(21,s2e,1,0,"tr",12),p(22,a2e,1,0,"tr",13),d(),D(23,"mat-paginator",14,15),d(),p(25,r2e,2,0,"div",16),p(26,l2e,3,0,"div",16),p(27,c2e,3,0,"div",16)),2&n&&(c(1),f("dataSource",o.dataSource),c(16),f("ngIf",!o.usersService.isCustomer),c(4),f("matHeaderRowDef",o.columnsToDisplay),c(1),f("matRowDefColumns",o.columnsToDisplay),c(1),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(11,d2e)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[H0,Ul,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,kd,Ne,Re,Sl,Me,Oe,Mi,Ct,ce,qe,le,pr,wf,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-add[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})(),h2e=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}onMatchSelected(e){this.dialogRef.close(+e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-simple-matches-list-dialog"]],standalone:!0,features:[Z],decls:2,vars:1,consts:[[3,"matchIds","onMatchSelected"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content")(1,"app-simple-matches-list-dialog-content",0),M("onMatchSelected",function(a){return o.onMatchSelected(a)}),d()()),2&n&&(c(1),f("matchIds",o.data))},dependencies:[Ot,qt,u2e]})}return t})();function p2e(t,i){if(1&t&&(l(0,"span",29),D(1,"img",30)(2,"br"),h(3),d()),2&t){const e=b(2);c(1),Da("src","assets/images/",e.iconNotification,"",kt),c(2),T(" ",e.textNotification," ")}}function m2e(t,i){1&t&&(l(0,"span",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" \xa0",w(2,1,"general_reporter_offline"),"\xa0 "))}function f2e(t,i){1&t&&(l(0,"span",32),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" \xa0",w(2,1,"general_closed_game"),"\xa0 "))}function _2e(t,i){if(1&t&&(l(0,"span")(1,"a",33)(2,"mat-icon",34),h(3,"mobile_screen_share"),d()()()),2&t){const e=b(2);c(1),f("href",e.getMobileCoverageURL(e.match),kt)}}function g2e(t,i){1&t&&(l(0,"span")(1,"a",35)(2,"mat-icon",36),h(3,"mobile_screen_share"),d()()())}function b2e(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2,"RE:"),d(),h(3),d()),2&t){const e=b(4);c(3),We(" ",null==e.matchStaff.assignedReporter?null:e.matchStaff.assignedReporter.firstName," ",null==e.matchStaff.assignedReporter?null:e.matchStaff.assignedReporter.lastName," ")}}function v2e(t,i){if(1&t&&(l(0,"div")(1,"strong"),h(2,"MOD:"),d(),h(3),D(4,"br"),d()),2&t){const e=i.$implicit;c(3),We(" ",null==e?null:e.firstName," ",null==e?null:e.lastName," ")}}function y2e(t,i){if(1&t&&(l(0,"div"),p(1,v2e,5,2,"div",42),d()),2&t){const e=b(4);c(1),f("ngForOf",e.matchStaff.assignedModerators)}}function C2e(t,i){if(1&t&&(l(0,"div",41),p(1,b2e,4,2,"div",20),p(2,y2e,2,1,"div",20),d()),2&t){const e=b(3);c(1),f("ngIf",null==e.matchStaff?null:e.matchStaff.assignedReporter),c(1),f("ngIf",(null==e.matchStaff||null==e.matchStaff.assignedModerators?null:e.matchStaff.assignedModerators.length)>0)}}function w2e(t,i){1&t&&h(0,"Reporters/Moderators")}function S2e(t,i){if(1&t){const e=F();l(0,"div",37)(1,"mat-icon",38),M("click",function(){return E(e),I(b(2).openDialog())}),h(2,"info"),d(),p(3,C2e,3,2,"ng-template",null,39,Nt),p(5,w2e,1,0,"ng-template",null,40,Nt),d()}if(2&t){const e=X(4),n=X(6);c(1),f("ngbPopover",e)("popoverTitle",n)}}function T2e(t,i){1&t&&(l(0,"mat-icon"),h(1,"volume_up"),d())}function D2e(t,i){1&t&&(l(0,"mat-icon"),h(1,"volume_off"),d())}function M2e(t,i){if(1&t){const e=F();l(0,"button",49),M("click",function(){return E(e),I(b(3).matchOpenClose(!1,!1))}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_open_game")," "))}function x2e(t,i){if(1&t){const e=F();l(0,"button",50),M("click",function(){return E(e),I(b(3).matchOpenClose(!0,!1))}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_close_game")," "))}function E2e(t,i){if(1&t){const e=F();l(0,"button",51),M("click",function(){return E(e),I(b(3).matchOpenClose(!1,!0))}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_open_game_master")," "))}function I2e(t,i){if(1&t){const e=F();l(0,"button",52),M("click",function(){return E(e),I(b(3).matchOpenClose(!0,!0))}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_close_game_master")," "))}function O2e(t,i){if(1&t&&(l(0,"div",43)(1,"span"),p(2,M2e,3,3,"button",44),p(3,x2e,3,3,"button",45),d(),l(4,"span",46),p(5,E2e,3,3,"button",47),p(6,I2e,3,3,"button",48),d()()),2&t){const e=b(2);c(2),f("ngIf",e.match&&!0===e.match.closedGame),c(1),f("ngIf",e.match&&!e.match.closedGame),c(2),f("ngIf",e.match&&!0===e.match.masterClosedGame),c(1),f("ngIf",e.match&&!e.match.masterClosedGame)}}const R2e=function(){return{normal:"12em",s_768:"12em"}},k2e=function(){return{normal:"15em",s_768:"15em"}};function A2e(t,i){if(1&t){const e=F();l(0,"div",2),p(1,p2e,4,2,"span",3),p(2,m2e,3,3,"span",4),p(3,f2e,3,3,"span",5),l(4,"div",6)(5,"div",7),h(6),d(),l(7,"div",8)(8,"div",9),ai(),l(9,"svg",10)(10,"g",11),D(11,"rect",12)(12,"rect",13),d()()(),vo(),l(13,"div",14)(14,"span",15),h(15),l(16,"span",16),h(17),d()()(),l(18,"div",9),ai(),l(19,"svg",10)(20,"g",11),D(21,"rect",12)(22,"rect",13),d()()(),vo(),l(23,"div",17)(24,"div",18)(25,"div",19),p(26,_2e,4,1,"span",20),p(27,g2e,4,0,"span",20),d(),l(28,"button",21),M("click",function(){E(e);const o=b();return I(o.copyToClipboard(o.match))}),l(29,"mat-icon",22),h(30,"content_copy"),d()()(),l(31,"div",23),p(32,S2e,7,2,"div",24),l(33,"button",25),M("click",function(){return E(e),I(b().changeAudioState())}),p(34,T2e,2,0,"mat-icon",20),p(35,D2e,2,0,"mat-icon",20),d()()()()(),p(36,O2e,7,4,"div",26),l(37,"div",27),D(38,"app-info-section",28),d()()}if(2&t){const e=b();c(1),f("ngIf",e.showNotification),c(1),f("ngIf",e.match&&!e.match.matchFinished&&e.match.isReporterOffline),c(1),f("ngIf",e.match&&e.match.closedGame||e.match&&e.match.masterClosedGame),c(3),We(" ",null==e.match?null:e.match.id," | ",null==e.match||null==e.match.competition?null:e.match.competition.name," "),c(5),it("fill",null==e.match?null:e.match.homeColorPrimary),c(1),it("fill",null==e.match?null:e.match.homeColorSecondary),c(3),T("",e.matchClock," "),c(2),O(e.currentPeriod?"("+e.currentPeriod+")":""),c(4),it("fill",null==e.match?null:e.match.awayColorPrimary),c(1),it("fill",null==e.match?null:e.match.awayColorSecondary),c(4),f("ngIf",e.match&&e.showCoverIcon(e.match)),c(1),f("ngIf",!e.match&&!e.showCoverIcon(e.match)),c(5),f("ngIf",e.IsAllowedUserType()),c(2),f("ngIf",e.audioOn),c(1),f("ngIf",!e.audioOn),c(1),f("ngIf",e.IsAllowedUserType()),c(2),f("match",e.match)("matchForStats",e.match)("refereeList",e.refereeList)("homeMatchLineup",e.homeMatchLineup)("awayMatchLineup",e.awayMatchLineup)("events",e.events)("showHeader",!0)("showStats",!0)("teamNameColor",e.black)("dataSource",e.dataSource)("emptyEnabled",!0)("eventsSection",hn(36,R2e))("isMulti",!0)("statsSection",hn(37,k2e))("blinkingTable",e.blinkingTable)}}function P2e(t,i){1&t&&(l(0,"div",53),D(1,"mat-spinner",54),d())}let N2e=(()=>{class t{openDialog(){this.dialog.open(GF,{data:{reporter:this.matchStaff?.assignedReporter||null,moderators:this.matchStaff?.assignedModerators||[]},panelClass:"reporter-info-dialog"})}changeAudioState(){this.audioOn=!this.audioOn}constructor(e,n,o,s,a,r){this.snackBar=e,this.matchesService=n,this.clipboard=o,this.http=s,this.translateService=a,this.dialog=r,this.matchId=0,this.shortList=[],this.audioOn=!0,this.onProgress=0,this.matchClock="00:00",this.match=null,this.keepFetchingData=!0,this.msDiff=0,this.showNotification=!1,this.textNotification="Players on Field",this.iconNotification="players.svg",this.lastRefresh=null,this.events=[],this.refereeList={refereeMain:null,refereeLine1st:null,refereeLine2nd:null,referee4th:null,refereeVar1st:null,refereeVar2nd:null,refereeVar3rd:null,refereeVar4th:null},this.homeMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.awayMatchLineup={formation:{id:null,name:""},starting:[],bench:[],rest:[]},this.audio_whistle=new Audio,this.audio_cheer=new Audio,this.matchStaff={assignedReporter:null,assignedModerators:[]},this.blinkingTable=!1,this.audio_whistle.src="../../../assets/audio/football_1.ogg",this.audio_whistle.load(),this.audio_cheer.src="../../../assets/audio/short-cheer.ogg",this.audio_cheer.load()}IsAllowedUserType(){switch(v.userType){case Be.ACCOUNT_TYPE_REPORTER:case Be.ACCOUNT_TYPE_ADMIN:case Be.ACCOUNT_TYPE_MODERATOR:return!0;default:return!1}}ngOnDestroy(){clearInterval(this.refreshId)}ngAfterViewInit(){this.IsAllowedUserType()&&(this.matchStaffService=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/staff",this.http),this.matchStaffService.getAllObservable(v.token,v.userId).subscribe(e=>{this.matchStaff=e}))}ngOnInit(){this.onProgress=0,this.clearIntervals(),this.matchEventsSyncService=new Q(v.apiURLs.rootURL+(v.userType===Be.ACCOUNT_TYPE_CUSTOMER?"customer/":"")+"matches/"+this.matchId+"/matchEvents",this.http),this.matchEventsUpdateService=new Q(v.apiURLs.adapterCoverageURL+"matches/"+this.matchId+"/matchEvents",this.http),this.clockRefreshId=setInterval(()=>this.updateMatchClock(),1e3),this.fetchData(!0),this.startAutoRefresh()}startAutoRefresh(){this.keepFetchingData=!0,this.refreshId=setInterval(()=>this.fetchData(),2e3)}copyToClipboard(e){this.openSnackbar("Copied to clipboard");const n=this.matchesService.formatMatchDetails(e);this.clipboard.copy(n)}openSnackbar(e){this.snackBar.open(e,"",{duration:v.snackBarDuration})}clearIntervals(){clearInterval(this.refreshId),clearInterval(this.clockRefreshId)}showCoverIcon(e){return 0==v.userType&&"M"==e.coverageMethod||0!=v.userType}getMobileCoverageURL(e){return"football"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:"basketball"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL_B+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:""}setRowColorClass(e){return e.team?"H"===e.team?"bg-color-home color-home":"bg-color-away color-away":""}isEventChildUnconfirmed(e){let n=!1;return e&&Array.isArray(e.__directChildren__)&&0==e.__directChildren__?.length&&(e.status===Un.STATUS_WAITING&&e.name!==ge.VAR||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Penalty&&!e.type||e.status===Un.STATUS_CONFIRMED&&e.name===Te.Card&&!e.type)&&(n=!0),n}rowClassExtra(e){let n="";const o=this.isEventChildUnconfirmed(e);return n+=this.setRowColorClass(e),o&&(n+=e.team?"H"===e.team?" glowRedHome":" glowRedAway":" glowRed"),n}fetchData(e){this.keepFetchingData||e?(this.lastRefresh=new Date,this.matchEventsSyncService.getAllObservable(v.token,v.userId,"&size="+this.events?.length+"&frontend=true").subscribe({next:n=>{let o=n;if(e&&(this.match=o.match),o&&o.events?.length>0){this.match&&this.checkForDifference(this.match,o.match);const s=this.match?.matchInfo&&{...this.match.matchInfo};if(o.match&&(o.match.matchInfo=s,(null==this.msDiff||0==this.msDiff)&&o.now&&(this.msDiff=(new Date).getTime()-new Date(o.now).getTime()),"string"==typeof o.match.refereeList&&(this.refereeList=JSON.parse(o.match.refereeList)),Array.isArray(o.events)&&o.events[0])){if(1==o.events.length)o.events[0].name==ge.LineupChange&&(o.events[0].team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest)):(this.awayMatchLineup.formation=JSON.parse(o.events[0].value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(o.events[0].value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(o.events[0].value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(o.events[0].value).rest)));else{const a={blinking:!1};o.events.sort((r,u)=>{if(r.name==ge.Substitution&&u.name==ge.Substitution){if(-1!=r.value?.indexOf("[")){let m=JSON.parse(r.value);r.value=m}if(-1!=u.value?.indexOf("[")){let m=JSON.parse(u.value);u.value=m}}return u.name==ge.LineupChange&&(u.team.toLowerCase()=="H".toLowerCase()?(this.homeMatchLineup.formation=JSON.parse(u.value).formation,this.homeMatchLineup.starting=new ke(JSON.parse(u.value).starting),this.homeMatchLineup.bench=new ke(JSON.parse(u.value).bench),this.homeMatchLineup.rest=new ke(JSON.parse(u.value).rest)):(this.awayMatchLineup.formation=JSON.parse(u.value).formation,this.awayMatchLineup.starting=new ke(JSON.parse(u.value).starting),this.awayMatchLineup.bench=new ke(JSON.parse(u.value).bench),this.awayMatchLineup.rest=new ke(JSON.parse(u.value).rest))),(this.isEventChildUnconfirmed(r)||this.isEventChildUnconfirmed(u))&&(a.blinking=!0),u.id-r.id}),this.blinkingTable=a.blinking}"football"==o.match.sport?.name.toLowerCase()?o.match.matchInfo=Yg(o.match,this.events):"basketball"==o.match.sport?.name.toLowerCase()&&(o.match.matchInfo=qg(o.match,this.events)),this.events=o.events,this.match=o.match,this.dataSource=new ke(this.events),1===this.onProgress&&(this.onProgress=0)}}},error:n=>{console.log(n)}})):clearInterval(this.refreshId)}checkForDifference(e,n){this.checkForFootballDifference(e,n,6e3),this.checkForBasketballDifference(e,n,6e3),e.footballStat&&n.footballStat&&(e.footballStat?.homeGoals-n.footballStat?.homeGoals<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Goal",this.iconNotification="goal.svg"):e.footballStat?.awayGoals-n.footballStat?.awayGoals<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Goal",this.iconNotification="goal.svg"):e.footballStat?.homeCorners-n.footballStat?.homeCorners<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Corner",this.iconNotification="corner.svg"):e.footballStat?.awayCorners-n.footballStat?.awayCorners<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Corner",this.iconNotification="corner.svg"):e.footballStat?.homePenalties-n.footballStat?.homePenalties<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Penalty",this.iconNotification="penalty.svg"):e.footballStat?.awayPenalties-n.footballStat?.awayPenalties<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Penalty",this.iconNotification="penalty.svg"):e.footballStat?.homeSecondYellowCards-n.footballStat?.homeSecondYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Second Yellow",this.iconNotification="card_yellow_red.svg"):e.footballStat?.awaySecondYellowCards-n.footballStat?.awaySecondYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Second Yellow",this.iconNotification="card_yellow_red.svg"):e.footballStat?.homeRedCards-n.footballStat?.homeRedCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Red Card",this.iconNotification="card_red.svg"):e.footballStat?.awayRedCards-n.footballStat?.awayRedCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Red Card",this.iconNotification="card_red.svg"):e.footballStat?.homeYellowCards-n.footballStat?.homeYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Home Yellow Card",this.iconNotification="card_yellow.svg"):e.footballStat?.awayYellowCards-n.footballStat?.awayYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},6e3),this.textNotification="Away Yellow Card",this.iconNotification="card_yellow.svg"):e.footballStat?.homeSubsCount-n.footballStat?.homeSubsCount<0?(this.showNotification=!0,setTimeout(()=>this.showNotification=!1,6e3),this.textNotification="Home Substitution",this.iconNotification="players.svg"):e.footballStat?.awaySubsCount-n.footballStat?.awaySubsCount<0&&(this.showNotification=!0,setTimeout(()=>this.showNotification=!1,6e3),this.textNotification="Away Substitution",this.iconNotification="players.svg"))}checkForBasketballDifference(e,n,o){e.basketballStat&&n.basketballStat&&(e.basketballStat.homeScore-n.basketballStat.homeScore<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Score",this.iconNotification="goal.svg"):e.basketballStat.awayScore-n.basketballStat.awayScore<0&&(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Score",this.iconNotification="goal.svg"))}checkForFootballDifference(e,n,o){e.footballStat&&n.footballStat&&(e.footballStat.homeGoals-n.footballStat.homeGoals<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Goal",this.iconNotification="goal.svg"):e.footballStat.awayGoals-n.footballStat.awayGoals<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Goal",this.iconNotification="goal.svg"):e.footballStat.homeCorners-n.footballStat.homeCorners<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Corner",this.iconNotification="corner.svg"):e.footballStat.awayCorners-n.footballStat.awayCorners<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Corner",this.iconNotification="corner.svg"):e.footballStat.homePenalties-n.footballStat.homePenalties<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Penalty",this.iconNotification="penalty.svg"):e.footballStat.awayPenalties-n.footballStat.awayPenalties<0?(this.showNotification=!0,this.audioOn&&this.audio_cheer.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Penalty",this.iconNotification="penalty.svg"):e.footballStat.homeSecondYellowCards-n.footballStat.homeSecondYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Second Yellow",this.iconNotification="card_yellow_red.svg"):e.footballStat.awaySecondYellowCards-n.footballStat.awaySecondYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Second Yellow",this.iconNotification="card_yellow_red.svg"):e.footballStat.homeRedCards-n.footballStat.homeRedCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Red Card",this.iconNotification="card_red.svg"):e.footballStat.awayRedCards-n.footballStat.awayRedCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Red Card",this.iconNotification="card_red.svg"):e.footballStat.homeYellowCards-n.footballStat.homeYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Home Yellow Card",this.iconNotification="card_yellow.svg"):e.footballStat.awayYellowCards-n.footballStat.awayYellowCards<0?(this.showNotification=!0,this.audioOn&&this.audio_whistle.play(),setTimeout(()=>{this.showNotification=!1},o),this.textNotification="Away Yellow Card",this.iconNotification="card_yellow.svg"):e.footballStat.homeSubsCount-n.footballStat.homeSubsCount<0?(this.showNotification=!0,setTimeout(()=>this.showNotification=!1,o),this.textNotification="Home Substitution",this.iconNotification="players.svg"):e.footballStat.awaySubsCount-n.footballStat.awaySubsCount<0&&(this.showNotification=!0,setTimeout(()=>this.showNotification=!1,o),this.textNotification="Away Substitution",this.iconNotification="players.svg"))}updateMatchClock(){this.match&&(this.matchClock=Ep(this.match,this.msDiff))}get currentPeriod(){if(this.match&&this.match.footballStat){if(this.match.footballStat.serverStartTime&&!this.match.footballStat.serverEnd1stTime)return this.translateService.instant("general_period_1st");if(this.match.footballStat.serverEnd1stTime&&!this.match.footballStat.serverStart2ndTime)return this.translateService.instant("general_period_half_time");if(this.match.footballStat.serverStart2ndTime&&!this.match.footballStat.serverEnd2ndTime)return this.translateService.instant("general_period_2st");if(this.match.footballStat.serverStart1stExtraTime&&!this.match.footballStat.serverEnd1stExtraTime)return this.translateService.instant("general_period_1st_ex");if(this.match.footballStat.serverStart2ndExtraTime&&!this.match.footballStat.serverEnd2ndExtraTime)return this.translateService.instant("general_period_2nd_ex");if(this.match.matchFinished)return this.translateService.instant("general_finished")}return""}matchOpenClose(e,n){this.onProgress=1;let o=new Un;e?(o.status=Un.STATUS_CLOSE,o.name=ge.CloseGame):(o.status=Un.STATUS_OPEN,o.name=ge.OpenGame),o.type=n?Ns.CloseOpenGameMaster.id:Ns.CloseGameReporter.id,o.timeMatch=this.matchClock,o.reporter={id:v.userId},o.timeReporter=new Date,o.match={id:this.matchId},this.matchEventsUpdateService.create(o).subscribe({next:s=>{this.onProgress=2,this.ngOnInit()},error:s=>{this.onProgress=3,this.ngOnInit()}}),setTimeout(()=>this.onProgress=0,v.delaySuccessMessage)}static#e=this.\u0275fac=function(n){return new(n||t)(_(Sn),_(ua),_(Qg),_(Ee),_(Ze),_(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-simple-match-card"]],inputs:{matchId:"matchId"},standalone:!0,features:[Z],decls:2,vars:2,consts:[["class","container locked-size",4,"ngIf"],["class","screen-centered",4,"ngIf"],[1,"container","locked-size"],["class","icon_notification",4,"ngIf"],["class","notification glowbutton",4,"ngIf"],["class","notification-medium glowbutton",4,"ngIf"],[1,"font-size",2,"width","100%","display","flex","align-items","center","flex-direction","column"],[2,"text-align","center","padding-bottom","0.5em","font-weight","bold","white-space","nowrap","overflow","hidden","text-overflow","ellipsis","width","70%"],[1,"match-container"],[1,"match-team-container"],["width","10","viewBox","0 0 100 197.5"],["fill","none"],["x","5","y","5","width","90","height","90","stroke","#000",1,"rect"],["x","5","y","101.5","width","90","height","90","stroke","#000",1,"rect"],[1,"match-score-container"],[1,"match-clock"],[1,"current-period"],[1,"right-button-container"],[1,"cover-button-container"],[1,"cover-button"],[4,"ngIf"],["mat-icon-button","",1,"copy-button",3,"click"],[2,"color","black"],[1,"audio-button-container"],["class","audio-button","style","right: 2em",4,"ngIf"],[1,"audio-button",3,"click"],["class","button-container",4,"ngIf"],[1,"screen-container"],[1,"Info",3,"match","matchForStats","refereeList","homeMatchLineup","awayMatchLineup","events","showHeader","showStats","teamNameColor","dataSource","emptyEnabled","eventsSection","isMulti","statsSection","blinkingTable"],[1,"icon_notification"],["height","100","alt","Notification Icon",3,"src"],[1,"notification","glowbutton"],[1,"notification-medium","glowbutton"],["target","_blank",3,"href"],[1,"mat-24",2,"color","black"],["mat-button","","target","_blank",3,"href"],[1,"mat-24",2,"color","red"],[1,"audio-button",2,"right","2em"],["width","32px","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","bottom",2,"cursor","pointer","width","1.8em","padding","0px 0.4em","height","1em",3,"ngbPopover","popoverTitle","click"],["COU_POP",""],["COU_POP_T",""],[2,"width","max-content"],[4,"ngFor","ngForOf"],[1,"button-container"],["mat-raised-button","","class","glowbutton",3,"click",4,"ngIf"],["mat-raised-button","","color","blue",3,"click",4,"ngIf"],[1,"button-margin"],["mat-raised-button","","color","warn","class","glowbutton",3,"click",4,"ngIf"],["mat-raised-button","","color","darkblue",3,"click",4,"ngIf"],["mat-raised-button","",1,"glowbutton",3,"click"],["mat-raised-button","","color","blue",3,"click"],["mat-raised-button","","color","warn",1,"glowbutton",3,"click"],["mat-raised-button","","color","darkblue",3,"click"],[1,"screen-centered"],[1,"spinner"]],template:function(n,o){1&n&&(p(0,A2e,39,38,"div",0),p(1,P2e,2,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress))},dependencies:[Ot,ce,qe,le,Ul,N3,ki,Me,Oe,je,Fe,_e,we,Yw,Ne,Re,Sl],styles:[".font-size[_ngcontent-%COMP%]{font-size:16px}.match-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center;width:100%;align-items:center}.match-team-container[_ngcontent-%COMP%], .match-score-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.match-team-name[_ngcontent-%COMP%]{font-weight:700;margin:5px 0}.match-score[_ngcontent-%COMP%]{font-size:24px;font-weight:700;margin:10px 0}.match-clock[_ngcontent-%COMP%]{font-weight:700}.current-period[_ngcontent-%COMP%]{font-size:14px;font-weight:400;margin-left:5px}rect[_ngcontent-%COMP%]{stroke:#000;stroke-width:4}table[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif}.mat-column-delete[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-errors[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-unitsCount[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%], .menu-capture[_ngcontent-%COMP%], .td[_ngcontent-%COMP%], .th[_ngcontent-%COMP%]{text-align:center}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}.Away[_ngcontent-%COMP%], .Home[_ngcontent-%COMP%]{width:40%;flex:0}.example-container[_ngcontent-%COMP%]{display:flex;height:100%;flex:1}.example-sidenav-content[_ngcontent-%COMP%]{display:flex;min-height:100%;min-width:100%;flex:1;flex-direction:column}.middle-container[_ngcontent-%COMP%], .vertical-column[_ngcontent-%COMP%]{flex-direction:column;display:flex}.example-sidenav[_ngcontent-%COMP%]{padding:20px}.vertical-column[_ngcontent-%COMP%]{align-items:center;margin:.3em}mat-drawer-content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:row}.mat-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}tr[_ngcontent-%COMP%]{height:30px!important}thead[_ngcontent-%COMP%]{border-radius:15px;background-color:#fff}th[_ngcontent-%COMP%]{font-weight:800}table[_ngcontent-%COMP%]{width:100%;background:0 0;font-weight:500}.screen-container[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;width:100%;height:32em;margin-top:.5em}.menu-capture[_ngcontent-%COMP%]{display:block;position:relative;height:8em;width:auto}.events-table-container[_ngcontent-%COMP%]{height:100%;background-color:#d3d3d3;border-radius:15px}.container[_ngcontent-%COMP%]{padding:10px;display:flex;justify-content:center;flex:1;position:relative;flex-direction:column}.icon_notification[_ngcontent-%COMP%]{position:absolute;align-self:center;z-index:1;text-align:center;padding:12px;bottom:0;border-radius:10px;border:3px solid darkred;background-color:#fff}.notification[_ngcontent-%COMP%]{position:absolute;align-self:center;z-index:1;text-align:center;background-color:orange;color:#fff;font-size:small}.notification-medium[_ngcontent-%COMP%]{position:absolute;align-self:center;z-index:2;text-align:center;background-color:red;color:#fff;font-size:medium}.rect[_ngcontent-%COMP%]{stroke:#000;stroke-width:4}.audio-button-container[_ngcontent-%COMP%]{position:absolute;top:.4em;right:0;display:flex}.cover-button-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:flex}.cover-button[_ngcontent-ng-c3338690466][_ngcontent-%COMP%]{border:none;background:none;position:absolute;left:2px;top:8px}.audio-button[_ngcontent-%COMP%]{border:none;background:none}.copy-button[_ngcontent-%COMP%]{border:none;background:none;position:absolute;top:0;left:1.7em}.cover-button[_ngcontent-%COMP%]{border:none;background:none;position:absolute;left:2px;top:8px}.button-container[_ngcontent-%COMP%]{display:flex;align-self:center;margin-top:.7em;margin-bottom:.3em}.button-margin[_ngcontent-%COMP%]{margin:0 .2em}.spinner[_ngcontent-%COMP%]{display:inline-block}"]})}return t})();function F2e(t,i){if(1&t){const e=F();l(0,"span",4)(1,"button",5),M("click",function(){return E(e),I(b().minMatch())}),l(2,"mat-icon"),h(3,"close_fullscreen"),d()(),D(4,"app-customer-matchevents-screen",6),d()}if(2&t){const e=b();c(4),f("inputmatchId",e.matchIdMax)}}function L2e(t,i){if(1&t){const e=F();l(0,"div",7)(1,"mat-card"),D(2,"app-simple-match-card",8),l(3,"span",9)(4,"a",10)(5,"mat-icon",11),h(6,"list"),d(),h(7),C(8,"translate"),d(),l(9,"button",12),M("click",function(){const s=E(e).$implicit;return I(b().deleteMatch(s))}),l(10,"mat-icon",13),h(11,"delete"),d(),h(12),C(13,"translate"),d()()()()}if(2&t){const e=i.$implicit,n=b();c(2),f("matchId",e),c(2),_s("routerLink","/",n.routerPrefix,"/matches/",e,"/events"),c(3),T(" ",w(8,5,"general_events")," "),c(5),T(" ",w(13,7,"general_remove")," ")}}function B2e(t,i){if(1&t){const e=F();l(0,"span")(1,"button",14),M("click",function(){return E(e),I(b().addMatch())}),l(2,"mat-icon",15),h(3,"add"),d()()()}}let V2e=(()=>{class t{get routerPrefix(){return v.userType===Be.ACCOUNT_TYPE_ADMIN?"admin":"customer"}constructor(e,n,o){this.cookieService=e,this.route=n,this.updateDialog=o,this.matchIds=[],this.matchIdMax=-1,this.mainMatchId=0,this.route.paramMap.subscribe(s=>{let a=s.get("matchId");if(a){this.matchIds.push(+a),this.mainMatchId=+a;const r=this.cookieService.get(v.cookies.multimatches+a);r&&(this.matchIds=JSON.parse(r).filter((m,g,y)=>y.indexOf(m)===g));const u=this.cookieService.get(v.cookies.multimatchesmax+a);u&&+u>0&&(this.matchIdMax=+u)}})}ngOnInit(){}logIds(){this.mainMatchId&&(function _ue(t,i,e,n){i.set(t.cookies.multimatches+e,JSON.stringify(n),.3,"/","",!0,"Strict")}(v,this.cookieService,this.mainMatchId,this.matchIds),function gue(t,i,e,n){i.set(t.cookies.multimatchesmax+e,""+n,.3,"/","",!0,"Strict")}(v,this.cookieService,this.mainMatchId,this.matchIdMax))}addMatch(){const e=this.updateDialog.open(h2e,{width:"80%",data:[...this.matchIds,this.matchIdMax]});e.componentInstance.dialogRef=e,e.afterClosed().subscribe(n=>{n&&-1===this.matchIds.indexOf(+n)&&(this.matchIds.push(+n),this.logIds())})}deleteMatch(e){const n=this.matchIds.indexOf(+e);-1!=n&&this.matchIds.splice(n,1),this.logIds()}maxMatch(e){if(this.matchIdMax>0){-1===this.matchIds.indexOf(this.matchIdMax)&&this.matchIds.push(this.matchIdMax);const n=this.matchIds.indexOf(+e);this.matchIds.splice(n,1),this.matchIdMax=+e}else{this.matchIdMax=+e;const n=this.matchIds.indexOf(+e);this.matchIds.splice(n,1)}this.logIds()}minMatch(){-1===this.matchIds.indexOf(this.matchIdMax)&&this.matchIds.push(this.matchIdMax),this.matchIdMax=0,this.logIds()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Zh),_(cs),_(Wt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-multi-screen"]],standalone:!0,features:[Z],decls:4,vars:3,consts:[["class","multimatch-sidenav-inner",4,"ngIf"],[1,"multimatch-sidenav-content"],["class","multimatch-card",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"multimatch-sidenav-inner"],["mat-mini-fab","","color","accent",2,"position","absolute","z-index","10","margin","5px",3,"click"],[2,"flex","1",3,"inputmatchId"],[1,"multimatch-card"],[3,"matchId"],[2,"display","flex","flex-direction","row","justify-content","space-around"],["mat-button","","target","_blank",3,"routerLink"],["color","primary",1,"mat-24"],["mat-button","",3,"click"],["color","warn"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"]],template:function(n,o){1&n&&(p(0,F2e,5,1,"span",0),l(1,"div",1),p(2,L2e,14,9,"div",2),d(),p(3,B2e,4,0,"span",3)),2&n&&(f("ngIf",o.matchIdMax>0),c(2),f("ngForOf",o.matchIds),c(1),f("ngIf",o.matchIds.length<9))},dependencies:[Ba,ce,qe,le,Ne,Re,Sl,Me,Oe,eL,ta,Fa,N2e,_e,we],styles:[".multimatch-sidenav-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;flex-wrap:wrap;overflow-y:scroll}.multimatch-sidenav-inner[_ngcontent-%COMP%]{display:flex;height:100%;justify-content:flex-end;flex-direction:row;overflow-x:auto}.multimatch-sidenav[_ngcontent-%COMP%]{max-width:50%;min-width:30%}.multimatch-card[_ngcontent-%COMP%]{margin:10px;display:flex;flex-direction:column;width:380px;height:680px;zoom:.7;transition:transform .3s ease}@media (max-width: 1368px) and (max-height: 1080px){.multimatch-card[_ngcontent-%COMP%]{zoom:1.2!important}}@media (min-width: 1200px) and (max-width: 1368px) and (max-height: 1020px){.multimatch-card[_ngcontent-%COMP%]{zoom:.7!important}}@media (min-width: 1200px) and (max-width: 1368px) and (max-height: 620px){.multimatch-card[_ngcontent-%COMP%]{zoom:.7!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 1600px){.multimatch-card[_ngcontent-%COMP%]{zoom:1.2!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 1368px){.multimatch-card[_ngcontent-%COMP%]{zoom:1.2!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 1080px){.multimatch-card[_ngcontent-%COMP%]{zoom:.85!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 860px){.multimatch-card[_ngcontent-%COMP%]{zoom:1!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 720px){.multimatch-card[_ngcontent-%COMP%]{zoom:.88!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 650px){.multimatch-card[_ngcontent-%COMP%]{zoom:.62!important}}@media (min-width: 992px) and (max-width: 1200px) and (max-height: 480px){.multimatch-card[_ngcontent-%COMP%]{zoom:.5!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 1600px){.multimatch-card[_ngcontent-%COMP%]{zoom:.9!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 1280px){.multimatch-card[_ngcontent-%COMP%]{zoom:1!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 1024px){.multimatch-card[_ngcontent-%COMP%]{zoom:.9!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 720px){.multimatch-card[_ngcontent-%COMP%]{zoom:.85!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 620px){.multimatch-card[_ngcontent-%COMP%]{zoom:.75!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 560px){.multimatch-card[_ngcontent-%COMP%]{zoom:.62!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 460px){.multimatch-card[_ngcontent-%COMP%]{zoom:.5!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 420px){.multimatch-card[_ngcontent-%COMP%]{zoom:.48!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 380px){.multimatch-card[_ngcontent-%COMP%]{zoom:.46!important}}@media (min-width: 768px) and (max-width: 992px) and (max-height: 360px){.multimatch-card[_ngcontent-%COMP%]{zoom:.42!important}}@media (min-width: 576px) and (max-width: 768px) and (max-height: 812px){.multimatch-card[_ngcontent-%COMP%]{zoom:.45!important}}@media (min-width: 576px) and (max-width: 768px) and (max-height: 720px){.multimatch-card[_ngcontent-%COMP%]{zoom:.55!important}}@media (min-width: 576px) and (max-width: 768px) and (max-height: 520px){.multimatch-card[_ngcontent-%COMP%]{zoom:.45!important}}@media (min-width: 576px) and (max-width: 768px) and (max-height: 420px){.multimatch-card[_ngcontent-%COMP%]{zoom:.35!important}}@media (max-width: 576px) and (max-height: 960px){.multimatch-card[_ngcontent-%COMP%]{zoom:1!important}}@media (max-width: 576px) and (max-height: 760px){.multimatch-card[_ngcontent-%COMP%]{zoom:.96!important}}@media (max-width: 576px) and (max-height: 667px){.multimatch-card[_ngcontent-%COMP%]{zoom:.85!important}}@media (max-width: 400px) and (max-height: 760px){.multimatch-card[_ngcontent-%COMP%]{zoom:.86!important}}@media (max-width: 400px) and (max-height: 568px){.multimatch-card[_ngcontent-%COMP%]{zoom:1!important}}"]})}return t})();function H2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function U2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function $2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_date")," "))}function j2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",e.login_time?n.getDate(e.login_time):""," ")}}function G2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function z2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",e.login_time?n.getTime(e.login_time):""," ")}}function W2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_ip")," "))}function q2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.ip?e.ip:""," ")}}function Y2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_country")," "))}function Q2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.country?e.country:"","")}}function Z2e(t,i){1&t&&(l(0,"th",17),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_last_login")," "))}function K2e(t,i){if(1&t&&(l(0,"td",18),h(1),d()),2&t){const e=i.$implicit,n=b(2);c(1),T(" ",e.login_time?n.getLastLoginTime(e.login_time):""," ")}}function X2e(t,i){1&t&&D(0,"tr",19)}function J2e(t,i){1&t&&D(0,"tr",20)}function eDe(t,i){if(1&t&&(l(0,"table",6),A(1,7),p(2,H2e,3,3,"th",8),p(3,U2e,2,1,"td",9),P(),A(4,10),p(5,$2e,3,3,"th",8),p(6,j2e,2,1,"td",9),P(),A(7,11),p(8,G2e,3,3,"th",8),p(9,z2e,2,1,"td",9),P(),A(10,12),p(11,W2e,3,3,"th",8),p(12,q2e,2,1,"td",9),P(),A(13,13),p(14,Y2e,3,3,"th",8),p(15,Q2e,2,1,"td",9),P(),A(16,14),p(17,Z2e,3,3,"th",8),p(18,K2e,2,1,"td",9),P(),p(19,X2e,1,0,"tr",15),p(20,J2e,1,0,"tr",16),d()),2&t){const e=b();f("dataSource",e.dataSource),c(19),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function tDe(t,i){1&t&&(l(0,"div",21),D(1,"mat-spinner",22),d())}function nDe(t,i){1&t&&(l(0,"div",21)(1,"mat-icon",23),h(2,"done"),d()())}function iDe(t,i){1&t&&(l(0,"div",21)(1,"mat-icon",24),h(2,"clear"),d()())}const oDe=function(){return[5,10,25,100]};let tL=(()=>{class t{set content(e){this.dataSource&&(this.dataSource.sort=e)}constructor(e,n){this.http=e,this.route=n,this.onProgress=0,this.columnsToDisplay=["id","date","time","ip","country","lastLogin"],this.userId=0}ngOnInit(){this.onProgress=0,this.route.paramMap.subscribe(e=>{this.userId=+e.get("userId"),this.userId?(this.service=new Q(v.apiURLs.rootURL+"users/"+this.userId+"/logs",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(n=>{let o=n;Array.isArray(o)&&(this.dataSource=new ke(o.reverse()),this.dataSource.paginator=this.paginator)})):(this.service=new Q(v.apiURLs.rootURL+"mylogs",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(n=>{let o=n;Array.isArray(o)&&(this.dataSource=new ke(o.reverse()),this.dataSource.paginator=this.paginator)}))})}getTime(e){return Hw(e)}getDate(e){return PF(e)}getLastLoginTime(e){const n=new Date,o=new Date(e),s=Math.abs(n.getTime()-o.getTime());let a="";const r=Math.floor(s/36e5),u=Math.floor(r/24);return a=u>3?u+" days ago":u>0?u+" days "+r%24+" hours ago":r+" hours ago",a}get dataSize(){return 0}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(cs))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-access-logs-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,5)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.content=s.first)}},standalone:!0,features:[Z],decls:8,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","date"],["matColumnDef","time"],["matColumnDef","ip"],["matColumnDef","country"],["matColumnDef","lastLogin"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,eDe,21,3,"table",2),d(),D(3,"mat-paginator",3,4),d(),p(5,tDe,2,0,"div",5),p(6,nDe,3,0,"div",5),p(7,iDe,3,0,"div",5)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(1),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,oDe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Mi,Ct,je,Fe,Me,Oe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();function sDe(t,i){if(1&t&&(l(0,"mat-option",13),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function aDe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),D(5,"br"),l(6,"mat-form-field",5)(7,"mat-select",6,7),C(9,"translate"),l(10,"mat-option",8),h(11,"--"),d(),p(12,sDe,2,2,"mat-option",9),d()(),D(13,"br"),l(14,"mat-form-field",5),D(15,"input",10),C(16,"translate"),d(),D(17,"mat-divider"),l(18,"p")(19,"button",11),h(20),C(21,"translate"),d(),h(22," \xa0"),l(23,"button",12),M("click",function(){return E(e),I(b().onNoClick())}),h(24),C(25,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),O(e.title),c(3),N("placeholder",w(9,9,"general_customer")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.customers),c(3),N("placeholder",w(16,11,"general_price")),c(4),f("disabled",e.options.invalid),c(1),O(w(21,13,"general_save")),c(4),O(w(25,15,"general_close"))}}function rDe(t,i){1&t&&(l(0,"div",14),D(1,"mat-spinner",15),d())}function lDe(t,i){1&t&&(l(0,"div",14)(1,"mat-icon",16),h(2,"done"),d()())}function cDe(t,i){1&t&&(l(0,"div",14)(1,"mat-icon",17),h(2,"clear"),d()())}let dDe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.customers=[]}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Hr),this.service=new Q(v.apiURLs.rootURL+"matches/purchases",this.http),this.options=this.fb.group({customer:[this.entity.customer,ue.required],price:[this.entity.price,ue.required]}),this.customerService=new Q(v.apiURLs.rootURL+"users/customers",this.http),this.customerService.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.customers=e,this.customers.sort(xi("firstName"))})}get title(){return this.translateService.instant(null==this.entity.id?"match_purchase_add_new":"match_purchase_edit")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}onNoClick(){this.inputOnClose()}onSave(){this.onProgress=1,this.entity.customer=this.options.value.customer,this.entity.price=this.options.value.price;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-purchase-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","customer","name","customer","required","",3,"compareWith","placeholder"],["customer",""],["value","null"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","price","type","number",3,"placeholder"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,aDe,26,17,"div",0),p(1,rDe,2,0,"div",1),p(2,lDe,3,0,"div",1),p(3,cDe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Th,Mt,Bt,Vn,vt,Cn,ut,gt,on,Tn,Ft,Gt,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we]})}return t})(),uDe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-purchase-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-match-purchase-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,dDe]})}return t})();const hDe=["competitionsSelect"],pDe=["regionsSelect"],mDe=["reportersSelect"],fDe=["teamsSelect"],_De=["moderatorsSelect"];function gDe(t,i){if(1&t){const e=F();l(0,"mat-checkbox",22),M("ngModelChange",function(o){return E(e),I(b().hideDeletedEntries=o)})("change",function(o){return E(e),I(b().changeBoolean("D",o))}),h(1),C(2,"translate"),d()}2&t&&(f("ngModel",b().hideDeletedEntries),c(1),T(" ",w(2,2,"general_deleted_hide")," "))}function bDe(t,i){if(1&t&&(l(0,"mat-option",25),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function vDe(t,i){if(1&t){const e=F();l(0,"mat-form-field",23)(1,"mat-select",16,24),M("valueChange",function(o){return E(e),I(b().selectedCompetitions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(3,"translate"),p(4,bDe,2,2,"mat-option",18),d()()}if(2&t){const e=b();c(1),N("placeholder",w(3,4,"general_competitions")),f("value",e.selectedCompetitions)("compareWith",e.compareFn),c(3),f("ngForOf",e.competitions)}}function yDe(t,i){if(1&t&&(l(0,"mat-option",25),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function CDe(t,i){if(1&t){const e=F();l(0,"mat-form-field",26)(1,"mat-select",16,27),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(3,"translate"),p(4,yDe,2,2,"mat-option",18),d()()}if(2&t){const e=b();c(1),N("placeholder",w(3,4,"general_regions")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(3),f("ngForOf",e.regions)}}function wDe(t,i){if(1&t&&(l(0,"mat-option",25),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function SDe(t,i){if(1&t){const e=F();l(0,"mat-form-field",28)(1,"mat-select",16,29),M("valueChange",function(o){return E(e),I(b().selectedReporters=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(3,"translate"),p(4,wDe,2,2,"mat-option",18),d()()}if(2&t){const e=b();c(1),N("placeholder",w(3,4,"general_reporters")),f("value",e.selectedReporters)("compareWith",e.compareFn),c(3),f("ngForOf",e.reporters)}}function TDe(t,i){if(1&t&&(l(0,"mat-option",25),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function DDe(t,i){if(1&t&&(l(0,"mat-option",25),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.firstName+" "+e.lastName)}}function MDe(t,i){if(1&t){const e=F();l(0,"mat-form-field",30)(1,"mat-select",16,31),M("valueChange",function(o){return E(e),I(b().selectedModerators=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(3,"translate"),p(4,DDe,2,2,"mat-option",18),d()()}if(2&t){const e=b();c(1),N("placeholder",w(3,4,"general_moderators")),f("value",e.selectedModerators)("compareWith",e.compareFn),c(3),f("ngForOf",e.moderators)}}function xDe(t,i){if(1&t){const e=F();l(0,"mat-icon",32),M("click",function(){return E(e),I(b().onResetClick())}),h(1," replay "),d()}}const EDe=function(t){return{color:t}},Kw=function(t){return{"background-color":t}};let IDe=(()=>{class t{constructor(e,n,o){this.http=e,this.filterService=n,this.matchesService=o,this.showReporters=!1,this.showModerators=!1,this.showPurchaseDates=!1,this.showCompetitions=!1,this.showRegions=!1,this.showDeleted=!1,this.onResetFilters=new W,this.onFilterdPurchases=new W,this.competitions=[],this.selectedCompetitions=[],this.regions=[],this.selectedRegions=[],this.reporters=[],this.selectedReporters=[],this.teams=[],this.selectedTeams=[],this.moderators=[],this.selectedModerators=[],this.hideDeletedEntries=!1,this.panelOpenState=!1}ngOnInit(){this.showModerators&&(this.moderatorService=new Q(v.apiURLs.rootURL+"users/moderators",this.http),this.moderatorService.getAll(v.token,v.userId).subscribe(e=>{this.moderators=e,this.moderators.sort(xi("lastName"))}))}ngOnChanges(e){e.purchases&&e.purchases.currentValue&&e.purchases.previousValue&&!Object.is(e.purchases.currentValue,e.purchases.previousValue)&&this.onFilter()}ngAfterContentInit(){this.initDateAsToday(),this.getSessionStorage(),this.onFilter()}initFilterOptions(e,n,o){this.competitions=[],this.regions=[],this.teams=[],this.reporters=[];let s=[],a=[],r=[],u=[];e&&e.length>0&&e.forEach(m=>{m.match&&m.match.plannedStartingTime&&(!n||new Date(m.match.plannedStartingTime).getTime()>new Date(n).getTime())&&(!o||new Date(m.match.plannedStartingTime).getTime()<new Date(o).getTime())&&(m.match.competition&&(-1===s.findIndex(g=>+m.match?.competition?.id==g)&&(this.competitions.push(m.match.competition),s.push(m.match.competition.id)),m.match.region&&-1===r.findIndex(g=>+m.match?.region?.id==g)?(this.regions.push(m.match.region),r.push(m.match.region.id)):m.match.competition.region&&-1===r.findIndex(g=>+m.match?.competition?.region?.id==g)&&(this.regions.push(m.match.competition.region),r.push(m.match.competition.region.id))),m.match.awayTeam&&-1===a.findIndex(g=>+m.match?.awayTeam?.id==g)&&(this.teams.push(m.match.awayTeam),a.push(m.match.awayTeam.id)),m.match.homeTeam&&-1===a.findIndex(g=>+m.match?.homeTeam?.id==g)&&(this.teams.push(m.match.homeTeam),a.push(m.match.homeTeam.id)),m.match.assignedReporter&&-1===u.findIndex(g=>+m.match?.assignedReporter?.id==g)&&(this.reporters.push(m.match.assignedReporter),u.push(m.match.assignedReporter.id)))})}initDateAsToday(){const e=JSON.parse(sessionStorage.getItem("filterStoragePurchases")??"{}");if(0===Object.keys(e).length){const n=new Date,o=new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0),s=new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59);this.selectedStartDate=o,this.selectedEndDate=s}}compareDates(){if(this.selectedStartDate){const e=new Date;if(e.setHours(0,0,0,0),e.getTime()==this.selectedStartDate?.getTime())return"TODAY";if(e.getTime()<this.selectedStartDate?.getTime()){const n=e.setDate(e.getDate()+1);return this.selectedStartDate?.getTime()<=n?"TOMORROW":null}if(e.getTime()>this.selectedStartDate?.getTime()){const n=e.setDate(e.getDate()-1);return this.selectedStartDate?.getTime()>=n?"YESTERDAY":null}return null}return null}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStoragePurchases")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,e&&this.showPurchaseDates&&(e.purchaseStartDate&&(this.purchaseStartDate=new Date(parseInt(e.purchaseStartDate))),e.purchaseEndDate&&(this.purchaseEndDate=new Date(parseInt(e.purchaseEndDate)))),this.selectedCompetitions=e.selectedCompetitions,this.selectedModerators=e.selectedModerators,this.selectedRegions=e.selectedRegions,this.selectedReporters=e.selectedReporters,e&&e.selectedEndDate&&(this.selectedEndDate=new Date(parseInt(e.selectedEndDate))),e&&e.selectedStartDate&&(this.selectedStartDate=new Date(parseInt(e.selectedStartDate))),this.selectedTeams=e.selectedTeams)}setSessionStorage(){sessionStorage.setItem("filterStoragePurchases",JSON.stringify({purchaseStartDate:+this.purchaseStartDate||null,purchaseEndDate:+this.purchaseEndDate||null,panelOpenState:this.panelOpenState||!1,selectedCompetitions:this.selectedCompetitions||[],selectedRegions:this.selectedRegions||[],selectedTeams:this.selectedTeams||[],selectedModerators:this.selectedModerators||[],selectedReporters:this.selectedReporters||[],selectedEndDate:+this.selectedEndDate||null,selectedStartDate:+this.selectedStartDate||null}))}get showResetButton(){return!!(this.selectedStartDate||this.selectedEndDate||this.purchaseStartDate||this.purchaseEndDate||this.hideDeletedEntries||Array.isArray(this.selectedCompetitions)&&this.selectedCompetitions.length>0||Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0||Array.isArray(this.selectedModerators)&&this.selectedModerators.length>0||Array.isArray(this.selectedReporters)&&this.selectedReporters.length>0||Array.isArray(this.selectedTeams)&&this.selectedTeams.length>0)}onFilter(){let e=[];for(let n=0;n<this.purchases.length;n++){let o=this.purchases[n];this.shouldAcceptMatchByDates(o)&&this.shouldAcceptPurchaseByDates(o)&&this.shouldAcceptPurchaseByDeleted(o)&&this.filterService.shouldAcceptTargetBy(o,this.selectedRegions,"region",this.shouldAcceptMatchByRegion)&&this.filterService.shouldAcceptTargetBy(o,this.selectedTeams,"team",this.shouldAcceptMatchByTeam)&&this.filterService.shouldAcceptTargetBy(o,this.selectedReporters,"reporter",this.shouldAcceptMatchByReporter)&&this.filterService.shouldAcceptTargetBy(o,this.selectedCompetitions,"competition",this.shouldAcceptMatchByCompetition)&&this.filterService.shouldAcceptTargetBy(o,this.selectedModerators,"moderator",this.shouldAcceptMatchByModerator)&&e.push(o)}this.initFilterOptions(this.purchases,this.selectedStartDate,this.selectedEndDate),this.setSessionStorage(),this.onFilterdPurchases.emit(e)}shouldAcceptPurchaseByDeleted(e){return!(this.hideDeletedEntries&&e.status===Hr.STATUS_DELETED)}shouldAcceptPurchaseByDates(e){return!(this.purchaseStartDate&&new Date(e.time).getTime()<this.purchaseStartDate.getTime()||this.purchaseEndDate&&new Date(e.time).getTime()>this.purchaseEndDate.getTime())}shouldAcceptMatchByDates(e){return!(this.selectedStartDate&&e.match?.plannedStartingTime&&new Date(e.match.plannedStartingTime).getTime()<this.selectedStartDate.getTime()||this.selectedEndDate&&e.match?.plannedStartingTime&&new Date(e.match.plannedStartingTime).getTime()>this.selectedEndDate.getTime())}shouldAcceptMatchByModerator(e,n){if(e.match?.assignedModerators&&Array.isArray(e.match.assignedModerators))for(let o=0;o<e.match.assignedModerators.length;o++)if(e.match.assignedModerators[o].id===n.id)return!0;return!1}shouldAcceptMatchByCompetition(e,n){return!(!e.match?.competition||n.id!==e.match.competition.id)}shouldAcceptMatchByTeam(e,n){return e.match?.homeTeam?.id===n.id||e?.match?.awayTeam?.id===n.id}shouldAcceptMatchByRegion(e,n){let o=e.match;if(o){let s=this.matchesService.getRegionFromMatchOrCompetition(o);if(s&&n.id===s.id)return!0}return!1}shouldAcceptMatchByReporter(e,n){return!(!e.match?.assignedReporter||n.id!==e.match.assignedReporter.id)}addFilterDate(e,n){const o=n.value;null!=o&&("S"===e?(o.setHours(0,0,0),this.selectedStartDate=o,this.onFilter()):"E"===e?(o.setHours(23,59,59),this.selectedEndDate=o,this.onFilter()):"PS"===e?(o.setHours(0,0,0),this.purchaseStartDate=o,this.onFilter()):"PE"===e&&(o.setHours(23,59,59),this.purchaseEndDate=o,this.onFilter()))}initDateAs(e){const n=JSON.parse(sessionStorage.getItem("filterStorage")??"{}");if(0===Object.keys(n).length||e){let s=new Date(new Date);switch(e){case"Today":s.setDate(s.getDate()+0);break;case"Tomorrow":s.setDate(s.getDate()+1);break;case"Yesterday":s.setDate(s.getDate()-1)}s.setHours(0,0,0,0);const a=new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0),r=new Date(s.getFullYear(),s.getMonth(),s.getDate(),23,59,59);this.selectedStartDate=a,this.selectedEndDate=r}}changeBoolean(e,n){"D"===e?(this.hideDeletedEntries=n.checked,this.onFilter()):"TM"===e?(this.initDateAs("Today"),this.onFilter()):"TOM"===e?(this.initDateAs("Tomorrow"),this.onFilter()):"YES"===e&&(this.initDateAs("Yesterday"),this.onFilter())}removeSingleFilter(e,n){"M"===n?(this.filterService.removeElementFromArray(e,this.selectedModerators),this.moderatorsSelect.writeValue(this.selectedModerators)):"R"===n?(this.filterService.removeElementFromArray(e,this.selectedReporters),this.reportersSelect.writeValue(this.selectedReporters)):"RG"===n?(this.filterService.removeElementFromArray(e,this.selectedRegions),this.regionsSelect.writeValue(this.selectedRegions)):"T"===n?(this.filterService.removeElementFromArray(e,this.selectedTeams),this.teamsSelect.writeValue(this.selectedTeams)):"C"===n?(this.filterService.removeElementFromArray(e,this.selectedCompetitions),this.competitionsSelect.writeValue(this.selectedCompetitions)):"S"===n?this.selectedStartDate=null:"E"===n?this.selectedEndDate=null:"PS"===n?this.purchaseStartDate=null:"PE"===n?this.purchaseEndDate=null:"D"===n&&(this.hideDeletedEntries=!1),this.onFilter()}onResetClick(){this.selectedStartDate=null,this.selectedEndDate=null,this.selectedCompetitions=[],this.selectedReporters=[],this.selectedModerators=[],this.selectedTeams=[],this.selectedRegions=[],this.purchaseStartDate=null,this.purchaseEndDate=null,this.panelOpenState=!1,this.initFilterOptions(this.purchases,this.selectedStartDate,this.selectedEndDate),this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ur),_(ua))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-purchases-filter"]],viewQuery:function(n,o){if(1&n&&(ne(hDe,5),ne(pDe,5),ne(mDe,5),ne(fDe,5),ne(_De,5)),2&n){let s;G(s=z())&&(o.competitionsSelect=s.first),G(s=z())&&(o.regionsSelect=s.first),G(s=z())&&(o.reportersSelect=s.first),G(s=z())&&(o.teamsSelect=s.first),G(s=z())&&(o.moderatorsSelect=s.first)}},inputs:{purchases:"purchases",showReporters:"showReporters",showModerators:"showModerators",showPurchaseDates:"showPurchaseDates",showCompetitions:"showCompetitions",showRegions:"showRegions",showDeleted:"showDeleted"},outputs:{onResetFilters:"onResetFilters",onFilterdPurchases:"onFilterdPurchases"},standalone:!0,features:[fe,Z],decls:32,vars:43,consts:[[2,"background-color","white"],["appearance","fill",1,"filter",2,"visibility","hidden","width","0px","height","0px"],[3,"rangePicker"],["matStartDate","",3,"ngModel","placeholder","dateInput","ngModelChange"],["matEndDate","",3,"ngModel","placeholder","dateInput","ngModelChange"],["picker",""],["matSuffix","",3,"ngStyle","for"],["role","group","aria-label","Basic example",1,"btn-group"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white","border-radius","15px 0px 0px 15px",3,"ngStyle","click"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white",3,"ngStyle","click"],["mat-raised-button","",1,"btn","btn-primary","dateButton",2,"color","white","border-radius","0px 15px 15px 0px",3,"ngStyle","click"],["class","filter",3,"ngModel","ngModelChange","change",4,"ngIf"],["class","filter filter_com",4,"ngIf"],["class","filter filter_reg",4,"ngIf"],["class","filter filter_rep",4,"ngIf"],[1,"filter","filter_tem"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["teamsSelect",""],[3,"value",4,"ngFor","ngForOf"],["class","filter filter_mod",4,"ngIf"],["mat-icon-button",""],["color","grey","selected","","matTooltip","Reset","class","reset",3,"click",4,"ngIf"],[1,"filter",3,"ngModel","ngModelChange","change"],[1,"filter","filter_com"],["competitionsSelect",""],[3,"value"],[1,"filter","filter_reg"],["regionsSelect",""],[1,"filter","filter_rep"],["reportersSelect",""],[1,"filter","filter_mod"],["moderatorsSelect",""],["color","grey","selected","","matTooltip","Reset",1,"reset",3,"click"]],template:function(n,o){if(1&n&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-date-range-input",2)(3,"input",3),M("dateInput",function(a){return o.addFilterDate("S",a)})("ngModelChange",function(a){return o.selectedStartDate=a}),C(4,"translate"),d(),l(5,"input",4),M("dateInput",function(a){return o.addFilterDate("E",a)})("ngModelChange",function(a){return o.selectedEndDate=a}),C(6,"translate"),d()(),D(7,"mat-date-range-picker",null,5),d(),D(9,"mat-datepicker-toggle",6),l(10,"div",7)(11,"button",8),M("click",function(a){return o.changeBoolean("YES",a)}),h(12),C(13,"translate"),d(),l(14,"button",9),M("click",function(a){return o.changeBoolean("TM",a)}),h(15),C(16,"translate"),d(),l(17,"button",10),M("click",function(a){return o.changeBoolean("TOM",a)}),h(18),C(19,"translate"),d()(),p(20,gDe,3,4,"mat-checkbox",11),p(21,vDe,5,6,"mat-form-field",12),p(22,CDe,5,6,"mat-form-field",13),p(23,SDe,5,6,"mat-form-field",14),l(24,"mat-form-field",15)(25,"mat-select",16,17),M("valueChange",function(a){return o.selectedTeams=a})("selectionChange",function(){return o.onFilter()}),C(27,"translate"),p(28,TDe,2,2,"mat-option",18),d()(),p(29,MDe,5,6,"mat-form-field",19),l(30,"button",20),p(31,xDe,2,0,"mat-icon",21),d()()),2&n){const s=X(8);c(2),f("rangePicker",s),c(1),N("placeholder",w(4,23,"general_date_start")),f("ngModel",o.selectedStartDate),c(2),N("placeholder",w(6,25,"general_date_end")),f("ngModel",o.selectedEndDate),c(4),f("ngStyle",zn(35,EDe,o.selectedStartDate?"red":"black"))("for",s),c(2),f("ngStyle",zn(37,Kw,"YESTERDAY"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(13,27,"general_yesterday")," "),c(2),f("ngStyle",zn(39,Kw,"TODAY"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(16,29,"general_today")," "),c(2),f("ngStyle",zn(41,Kw,"TOMORROW"==o.compareDates()?"red":"#5aa1c7")),c(1),T(" ",w(19,31,"general_tomorrow")," "),c(2),f("ngIf",o.showDeleted),c(1),f("ngIf",o.showCompetitions),c(1),f("ngIf",o.showRegions),c(1),f("ngIf",o.showReporters),c(2),N("placeholder",w(27,33,"general_teams")),f("value",o.selectedTeams)("compareWith",o.compareFn),c(3),f("ngForOf",o.teams),c(1),f("ngIf",o.showModerators),c(2),f("ngIf",o.showResetButton)}},dependencies:[ut,gt,cd,Yl,wp,RF,Bw,Vw,kF,xt,Lt,Mt,wl,rd,ce,qe,le,pr,Ne,Re,Nd,Pd,on,Tn,Ft,Gt,Me,Oe,ki,mo,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();function ODe(t,i){if(1&t){const e=F();l(0,"app-purchases-filter",34),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdPurchases",function(o){return E(e),I(b().onFilterdPurchases(o))}),d()}if(2&t){const e=b();f("purchases",e.purchases)("showModerators",e.showModeratorsFilter)("showReporters",e.showReportersFilter)("showPurchaseDates",e.showPurchaseDatesFilter)("showCompetitions",e.showCompetitionsFilter)("showDeleted",e.showDeletedFilter)("showRegions",e.showRegionsFilter)}}function RDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id_purchase")," "))}function kDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function ADe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_match_status")," "))}const PDe=function(t){return{color:t}};function NDe(t,i){if(1&t&&(l(0,"td",37),h(1),d()),2&t){const e=i.$implicit,n=b();f("ngStyle",zn(2,PDe,n.matchesService.getMatchStatus(e.match,n.translateService).color)),c(1),T(" ",n.matchesService.getMatchStatus(e.match,n.translateService).status," ")}}function FDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),C(3,"translate"),d()),2&t&&(c(1),We(" ",w(2,2,"general_purchase")," ",w(3,4,"general_date")," "))}function LDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",e.time?n.getDate(e.time):""," ")}}function BDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time_purchase")," "))}function VDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",e.time?n.getTime(e.time):""," ")}}function HDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_customer")," "))}function UDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.customer?e.customer.firstName+" "+e.customer.lastName:""," ")}}function $De(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_match")," "))}function jDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.match?e.match.homeTeam.name+"-"+e.match.awayTeam.name:""," ")}}function GDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_price")," "))}function zDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.price," ")}}function WDe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function qDe(t,i){if(1&t){const e=F();l(0,"button",41),M("click",function(){E(e);const o=b().$implicit;return I(b().openDeleteDialog(o))}),l(1,"mat-icon",42),h(2,"delete"),d()()}}function YDe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_deleted")," "))}function QDe(t,i){if(1&t&&(l(0,"td",36),p(1,qDe,3,0,"button",39),p(2,YDe,3,3,"span",40),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",n.showDelete(e)),c(1),f("ngIf","D"===e.status)}}function ZDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id_match")," "))}function KDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.match?e.match.id:"")}}function XDe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time_match")," "))}function JDe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.getformatedDate(e.match.plannedStartingTime)," ")}}function eMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_sport")))}function tMe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.match.sport&&e.match.sport.name?e.match.sport.name:"")}}function nMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_home")," "))}function iMe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.match.homeTeam.name," ")}}function oMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_away")," "))}function sMe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.match.awayTeam.name," ")}}function aMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_country")))}function rMe(t,i){if(1&t&&(l(0,"div")(1,"div"),h(2),d()()),2&t){const e=b().$implicit,n=b();let o;c(2),T(" ",null!==(o=null==(o=n.matchesService.getRegionFromMatchOrCompetition(e.match))?null:o.name)&&void 0!==o?o:""," ")}}function lMe(t,i){1&t&&h(0,"Region")}function cMe(t,i){if(1&t&&(l(0,"td",36),D(1,"img",43),p(2,rMe,3,1,"ng-template",null,44,Nt),p(4,lMe,1,0,"ng-template",null,45,Nt),d()),2&t){const e=i.$implicit,n=X(3),o=X(5);c(1),N("src",e.match.flag,kt),f("ngbPopover",n)("popoverTitle",o)}}function dMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_competition")," "))}function uMe(t,i){if(1&t&&(l(0,"td",36),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.match.competition?e.match.competition.name:""," ")}}function hMe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_events")," "))}function pMe(t,i){if(1&t&&(l(0,"a",47)(1,"mat-icon",48),h(2,"list"),d()()),2&t){const e=b().$implicit;_s("routerLink","/",b().routerPrefix,"/matches/",e.match.id,"/events")}}function mMe(t,i){if(1&t&&(l(0,"td",36),p(1,pMe,3,2,"a",46),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",n.showEventsButton(e))}}function fMe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_api")," "))}function _Me(t,i){if(1&t&&(l(0,"td",36)(1,"a",49)(2,"mat-icon",48),h(3,"input"),d()()()),2&t){const e=i.$implicit,n=b();c(1),f("href",n.getApiURL(e.match),kt)}}function gMe(t,i){1&t&&(l(0,"th",35),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_coverage_method")," "))}function bMe(t,i){1&t&&(l(0,"span",51),C(1,"translate"),h(2),C(3,"translate"),d()),2&t&&(N("matTooltip",w(1,2,"general_coverage_venue_by")),c(2),O(w(3,4,"general_venue")))}function vMe(t,i){1&t&&(l(0,"span",51),C(1,"translate"),h(2),C(3,"translate"),d()),2&t&&(N("matTooltip",w(1,2,"general_coverage_voice_by")),c(2),O(w(3,4,"general_voice")))}function yMe(t,i){if(1&t&&(l(0,"td",36),p(1,bMe,4,6,"span",50),p(2,vMe,4,6,"span",50),d()),2&t){const e=i.$implicit;c(1),f("ngIf","M"===e.match.coverageMethod),c(1),f("ngIf","V"===e.match.coverageMethod)}}function CMe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_coverage_status")))}function wMe(t,i){if(1&t&&(l(0,"td",36)(1,"button",52),C(2,"capitalizeFirst"),l(3,"mat-icon",53),h(4),d()()()),2&t){const e=i.$implicit,n=b();let o,s;c(1),Da("matTooltip"," ",w(2,6,null==e.match?null:e.match.coverageStatus),""),f("matMenuTriggerFor",n.menu)("disabled",!0),c(2),es("color:"+(null==(o=n.getCoverageUIStatusIcon(null==e.match?null:e.match.coverageStatus))?null:o.color)),c(1),T(" ",(null==(s=n.getCoverageUIStatusIcon(null==e.match?null:e.match.coverageStatus))?null:s.icon)+".png","")}}function SMe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_multi")," "))}function TMe(t,i){if(1&t&&(l(0,"a",47)(1,"mat-icon",48),h(2,"developer_board"),d()()),2&t){const e=b().$implicit;_s("routerLink","/",b().routerPrefix,"/multi/",e.match.id,"")}}function DMe(t,i){if(1&t&&(l(0,"td",36),p(1,TMe,3,2,"a",46),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",n.showEventsButton(e))}}function MMe(t,i){1&t&&(l(0,"th",38),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_logs")," "))}function xMe(t,i){if(1&t&&(l(0,"td",36)(1,"span")(2,"button",54)(3,"mat-icon",42),h(4," list_alt"),d()()()()),2&t){const e=i.$implicit,n=b();c(2),_s("routerLink","/",n.routerPrefix,"/users/",e.id,"/logs")}}function EMe(t,i){1&t&&D(0,"tr",55)}function IMe(t,i){1&t&&D(0,"tr",56)}function OMe(t,i){if(1&t){const e=F();l(0,"button",57),M("click",function(){return E(e),I(b().openEditDialog())}),l(1,"mat-icon",42),h(2,"add"),d()()}}function RMe(t,i){1&t&&(l(0,"div",58),D(1,"mat-spinner",59),d())}function kMe(t,i){1&t&&(l(0,"div",58)(1,"mat-icon",60),h(2,"done"),d()())}function AMe(t,i){1&t&&(l(0,"div",58)(1,"mat-icon",61),h(2,"clear"),d()())}let Kg=(()=>{class t{constructor(e,n,o,s,a,r,u){this.matchesService=e,this.http=n,this.route=o,this.updateDialog=s,this.snackBar=a,this.router=r,this.translateService=u,this.onProgress=0,this.columnsToDisplay=["id","date","time","customer","price","delete"],this.matchId=0,this.userId=0,this.purchases=[],this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showPurchaseDatesFilter=!0,this.showCompetitionsFilter=!1,this.showDeletedFilter=!1,this.showRegionsFilter=!1,this.showFilter=!1,this.filteredPurchases=[],this.findTimedMatchesInterval=0,this.fetchTimedMatchesInterval=0,this.TimedMatchesIdAndIndex=[],this.MatchesToUpdate=[]}showEventsButton(e){return v.userType===Be.ACCOUNT_TYPE_ADMIN||v.userType===Be.ACCOUNT_TYPE_CUSTOMER&&e.status!==Hr.STATUS_DELETED&&new Date(e.match?.plannedStartingTime).getTime()-(new Date).getTime()<72e5}displayCustomerPurchaseLog(){this.service=new Q(v.apiURLs.rootURL+"mypurchases",this.http),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showPurchaseDatesFilter=!0,this.showCompetitionsFilter=!1,this.showDeletedFilter=!0,this.showFilter=!0,this.columnsToDisplay=["id","date","time","plannedStartingTime","sport","matchId","match","price","delete","events"],this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.purchases=e,this.updateMatchesView(this.purchases)}),this.deleteService=new Q(v.apiURLs.rootURL+"customer/purchases",this.http)}displayCustomerPurchases(){this.service=new Q(v.apiURLs.rootURL+"mypurchases",this.http),this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showPurchaseDatesFilter=!1,this.showCompetitionsFilter=!0,this.showDeletedFilter=!1,this.showRegionsFilter=!0,this.showFilter=!0,this.columnsToDisplay=["matchId","matchStatus","plannedStartingTime","sport","flag","competition","homeTeam","awayTeam","coverageMethod","coverageUIStatus","events","api","multi"];let e="";e+="&sportSpecificStats=true",this.service.getAllObservable(v.token,v.userId,"&sportSpecificStats=true").subscribe(n=>{let o=n;o.length>0&&o.forEach(s=>{s.match=this.matchesService.injectOneFlag(s.match)}),this.purchases=o,this.updateMatchesView(this.purchases),this.onResetFilters(),this.TimedMatchesTimerStart(6e4,5e3)})}displayAdminCheckMatchPurchases(){this.service=new Q(v.apiURLs.rootURL+"matches/"+this.matchId+"/purchases",this.http),this.showModeratorsFilter=!0,this.showReportersFilter=!0,this.showPurchaseDatesFilter=!0,this.showCompetitionsFilter=!1,this.showDeletedFilter=!0,this.showFilter=!1,this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.purchases=e,this.updateMatchesView(this.purchases)}),this.deleteService=new Q(v.apiURLs.rootURL+"matches/purchases",this.http)}displayAdminCheckUserPurchases(){this.columnsToDisplay=["id","date","time","match","price","delete"],this.service=new Q(v.apiURLs.rootURL+"users/"+this.userId+"/purchases",this.http),this.showModeratorsFilter=!0,this.showReportersFilter=!0,this.showPurchaseDatesFilter=!0,this.showCompetitionsFilter=!1,this.showDeletedFilter=!0,this.showFilter=!1,this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.purchases=e,this.updateMatchesView(this.purchases)}),this.deleteService=new Q(v.apiURLs.rootURL+"matches/purchases",this.http)}displayAdmin(){this.route.paramMap.subscribe(e=>{this.matchId=+e.get("matchId"),this.userId=+e.get("userId"),this.matchId&&!this.userId?this.displayAdminCheckMatchPurchases():!this.matchId&&this.userId&&this.displayAdminCheckUserPurchases()})}ngOnInit(){this.onProgress=0,-1!==this.router.url.indexOf("customer/purchase_log")?this.displayCustomerPurchaseLog():-1!==this.router.url.indexOf("customer/purchases")?this.displayCustomerPurchases():this.displayAdmin()}updateMatchesView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=this.sortingFunction,this.dataSource.sort=this.sort}onFilterdPurchases(e){this.filteredPurchases=e,this.updateMatchesView(e)}onResetFilters(){this.filteredPurchases=this.purchases,this.updateMatchesView(this.purchases)}sortingFunction(e,n){if(e){if("date"===n||"time"===n)return new Date(e.time).getTime();if(e.match)return"homeTeam"===n?e.match.homeTeam?.name:"awayTeam"===n?e.match.awayTeam?.name:"competition"===n?e.match.competition?.name:"assignedReporter"===n?e.match.assignedReporter?e.match.assignedReporter.firstName:null:"plannedStartingTime"===n?new Date(e.match.plannedStartingTime).getTime():"matchId"===n?e.match.id:"coverageMethod"===n?e.match.coverageMethod:e.match.id;if("customer"===n)return e.customer.firstName}return""}get routerPrefix(){return v.userType===Be.ACCOUNT_TYPE_ADMIN?"admin":"customer"}getCoverageUIStatusIcon(e){return"pending"==e?{icon:"hourglass_top",color:"black"}:"canceled"==e?{icon:"block",color:"red"}:"declined"==e?{icon:"clear",color:"red"}:"approved"==e?{icon:"check",color:"green"}:{icon:"hourglass_top",color:"black"}}showDelete(e){if(e.status!==Hr.STATUS_DELETED){if(v.userType===Be.ACCOUNT_TYPE_ADMIN)return!0;if(v.userType===Be.ACCOUNT_TYPE_CUSTOMER)return new Date(e.match.plannedStartingTime).getTime()>(new Date).getTime()+1728e5}return!1}getformatedDate(e){const n=new Date(e);return n.toLocaleDateString()+" "+("0"+n.getHours()).slice(-2)+":"+("0"+n.getMinutes()).slice(-2)}get dataSize(){return 0}getApiURL(e){return v.apiCoverageURL+"customer/matches/"+e.id+"/matchEvents?userId="+v.userId+"&token="+v.token}getTime(e){return Hw(e)}getDate(e){return PF(e)}get isAdmin(){return v.userType===Be.ACCOUNT_TYPE_ADMIN}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:"Match Purchase: "+e.id+(e.match?" "+e.match.homeTeam?.name+" "+e.match.awayTeam?.name:"")+(e.customer?", Customer: "+e.customer.firstName:""),refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.deleteService.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.TimedMatchesTimerClear(),this.ngOnInit())}):this.onProgress=0})}}openEditDialog(e){null==e&&((e=new Hr).id=null,this.matchId&&(e.match={id:this.matchId}));const n=this.updateDialog.open(uDe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>{this.TimedMatchesTimerClear(),this.ngOnInit()})}TimedMatchesTimerStart(e,n){const o=new Q(v.apiURLs.rootURL+"matches/check",this.http);this.findTimedMatches(this.filteredPurchases),this.findTimedMatchesInterval=window.setInterval(()=>{this.findTimedMatches(this.filteredPurchases)},e),this.fetchTimedMatchesInterval=window.setInterval(()=>{this.MatchesToUpdate.length>0&&o.create({MatchesToUpdate:this.MatchesToUpdate,token:v.token,userId:v.userId},!1,{sender:this.routerPrefix}).subscribe({next:s=>this.replaceMatchesInArray(s,this.filteredPurchases,"purchases"),error:s=>console.error(s),complete:()=>{}})},n)}TimedMatchesTimerClear(){clearInterval(this.findTimedMatchesInterval),clearInterval(this.fetchTimedMatchesInterval)}ngOnDestroy(){this.TimedMatchesTimerClear()}findTimedMatches(e){if(e.length>0){const n=[],o=[],r=new Date;for(let u=0;u<e.length;u++){const m=e[u],g=new Date(m.match?.plannedStartingTime);!m.match.matchFinished&&r.getTime()>g.getTime()-6e5&&r.getTime()<g.getTime()+72e5&&(n.push(m.match.id),o.push({matchId:m.match.id,matchIndex:u}))}this.TimedMatchesIdAndIndex=o,this.MatchesToUpdate=n}}replaceMatchesInArray(e,n,o){if(e&&0!==e.length&&0!==this.TimedMatchesIdAndIndex.length)for(const s of this.TimedMatchesIdAndIndex){const a=n.find(u=>u.match?.id==s.matchId),r=n.findIndex(u=>u.match?.id==s.matchId);if(a){const u=e.find(m=>m.id==a.match.id);if(u){let m=!1;a.match&&((a.match.matchFinished!=u.matchFinished||a.match.footballStat?.serverStartTime!=u.footballStat?.serverStartTime||a.match.footballStat?.serverEnd1stTime!=u.footballStat?.serverEnd1stTime||a.match.footballStat?.serverStart2ndTime!=u.footballStat?.serverStart2ndTime||a.match.footballStat?.serverEnd2ndTime!=u.footballStat?.serverEnd2ndTime||a.match.footballStat?.serverStart1stExtraTime!=u.footballStat?.serverStart1stExtraTime||a.match.footballStat?.serverEnd1stExtraTime!=u.footballStat?.serverEnd1stExtraTime||a.match.footballStat?.serverStart2ndExtraTime!=u.footballStat?.serverStart2ndExtraTime||a.match.footballStat?.serverEnd2ndExtraTime!=u.footballStat?.serverEnd2ndExtraTime||a.match.footballStat?.goingToPenaltyShootout!=u.footballStat?.goingToPenaltyShootout||a.match.closedGame!=u.closedGame||a.match.masterClosedGame!=u.masterClosedGame)&&(m=!0),(a.match.matchFinished!=u.matchFinished||a.match.basketballStat?.firstQuarterStartTime!=u.basketballStat?.firstQuarterStartTime||a.match.basketballStat?.firstQuarterEndTime!=u.basketballStat?.firstQuarterEndTime||a.match.basketballStat?.secondQuarterStartTime!=u.basketballStat?.secondQuarterStartTime||a.match.basketballStat?.secondQuarterEndTime!=u.basketballStat?.secondQuarterEndTime||a.match.basketballStat?.thirdQuarterStartTime!=u.basketballStat?.thirdQuarterStartTime||a.match.basketballStat?.thirdQuarterEndTime!=u.basketballStat?.thirdQuarterEndTime||a.match.basketballStat?.fourthQuarterStartTime!=u.basketballStat?.fourthQuarterStartTime||a.match.basketballStat?.fourthQuarterEndTime!=u.basketballStat?.fourthQuarterEndTime||a.match.basketballStat?.firstOvertimeStartTime!=u.basketballStat?.firstOvertimeStartTime||a.match.basketballStat?.firstOvertimeEndTime!=u.basketballStat?.firstOvertimeEndTime||a.match.basketballStat?.secondOvertimeStartTime!=u.basketballStat?.secondOvertimeStartTime||a.match.basketballStat?.secondOvertimeEndTime!=u.basketballStat?.secondOvertimeEndTime||a.match.basketballStat?.thirdOvertimeStartTime!=u.basketballStat?.thirdOvertimeStartTime||a.match.basketballStat?.thirdOvertimeEndTime!=u.basketballStat?.thirdOvertimeEndTime||a.match.basketballStat?.fourthOvertimeStartTime!=u.basketballStat?.fourthOvertimeStartTime||a.match.basketballStat?.fourthOvertimeEndTime!=u.basketballStat?.fourthOvertimeEndTime||a.match.basketballStat?.fifthOvertimeStartTime!=u.basketballStat?.fifthOvertimeStartTime||a.match.basketballStat?.fifthOvertimeEndTime!=u.basketballStat?.fifthOvertimeEndTime||a.match.closedGame!=u.closedGame||a.match.masterClosedGame!=u.masterClosedGame)&&(m=!0)),m&&(n[r].match.closedGame=u.closedGame,n[r].match.masterClosedGame=u.masterClosedGame,n[r].match.matchFinished=u.matchFinished,u.footballStat?n[r].match.footballStat=u.footballStat:u.basketballStat&&(n[r].match.basketballStat=u.basketballStat),this.updateMatchesView(n))}}}}static#e=this.\u0275fac=function(n){return new(n||t)(_(ua),_(Ee),_(cs),_(Wt),_(Sn),_(_i),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-match-purchases-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:74,vars:8,consts:[[1,"menu-capture"],[1,"matches-table-container"],[3,"purchases","showModerators","showReporters","showPurchaseDates","showCompetitions","showDeleted","showRegions","onResetFilters","onFilterdPurchases",4,"ngIf"],[2,"overflow-y","scroll","height","80%"],["mat-table","","matSort","","matSortActive","plannedStartingTime","matSortDirection","asc",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","matchStatus"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","date"],["matColumnDef","time"],["matColumnDef","customer"],["matColumnDef","match"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","price"],["matColumnDef","delete"],["matColumnDef","matchId"],["matColumnDef","plannedStartingTime"],["matColumnDef","sport"],["matColumnDef","homeTeam"],["matColumnDef","awayTeam"],["matColumnDef","flag"],["matColumnDef","competition"],["matColumnDef","events"],["matColumnDef","api"],["matColumnDef","coverageMethod"],["matColumnDef","coverageUIStatus"],["matColumnDef","multi"],["matColumnDef","logs"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],[3,"purchases","showModerators","showReporters","showPurchaseDates","showCompetitions","showDeleted","showRegions","onResetFilters","onFilterdPurchases"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",3,"ngStyle"],["mat-header-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-icon-button","",3,"click"],[1,"mat-24"],["width","32px","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right","alt","flag",2,"margin","0px 0.6em",3,"src","ngbPopover","popoverTitle"],["COU_POP",""],["COU_POP_T",""],["mat-button","",3,"routerLink",4,"ngIf"],["mat-button","",3,"routerLink"],["color","primary",1,"mat-24"],["mat-button","","target","_blank",3,"href"],[3,"matTooltip",4,"ngIf"],[3,"matTooltip"],["mat-icon-button","","aria-label","Coverage UI Status",3,"matMenuTriggerFor","disabled","matTooltip"],["height","32"],["mat-icon-button","","color","primary",3,"routerLink"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,ODe,1,7,"app-purchases-filter",2),l(3,"div",3)(4,"table",4),A(5,5),p(6,RDe,3,3,"th",6),p(7,kDe,2,1,"td",7),P(),A(8,8),p(9,ADe,3,3,"th",6),p(10,NDe,2,4,"td",9),P(),A(11,10),p(12,FDe,4,6,"th",6),p(13,LDe,2,1,"td",7),P(),A(14,11),p(15,BDe,3,3,"th",6),p(16,VDe,2,1,"td",7),P(),A(17,12),p(18,HDe,3,3,"th",6),p(19,UDe,2,1,"td",7),P(),A(20,13),p(21,$De,3,3,"th",14),p(22,jDe,2,1,"td",7),P(),A(23,15),p(24,GDe,3,3,"th",6),p(25,zDe,2,1,"td",7),P(),A(26,16),p(27,WDe,3,3,"th",14),p(28,QDe,3,2,"td",7),P(),A(29,17),p(30,ZDe,3,3,"th",6),p(31,KDe,2,1,"td",7),P(),A(32,18),p(33,XDe,3,3,"th",6),p(34,JDe,2,1,"td",7),P(),A(35,19),p(36,eMe,3,3,"th",6),p(37,tMe,2,1,"td",7),P(),A(38,20),p(39,nMe,3,3,"th",6),p(40,iMe,2,1,"td",7),P(),A(41,21),p(42,oMe,3,3,"th",6),p(43,sMe,2,1,"td",7),P(),A(44,22),p(45,aMe,3,3,"th",6),p(46,cMe,6,3,"td",7),P(),A(47,23),p(48,dMe,3,3,"th",6),p(49,uMe,2,1,"td",7),P(),A(50,24),p(51,hMe,3,3,"th",14),p(52,mMe,2,1,"td",7),P(),A(53,25),p(54,fMe,3,3,"th",14),p(55,_Me,4,1,"td",7),P(),A(56,26),p(57,gMe,3,3,"th",6),p(58,yMe,3,2,"td",7),P(),A(59,27),p(60,CMe,3,3,"th",14),p(61,wMe,5,8,"td",7),P(),A(62,28),p(63,SMe,3,3,"th",14),p(64,DMe,2,1,"td",7),P(),A(65,29),p(66,MMe,3,3,"th",14),p(67,xMe,5,2,"td",7),P(),p(68,EMe,1,0,"tr",30),p(69,IMe,1,0,"tr",31),d(),p(70,OMe,3,0,"button",32),d()()(),p(71,RMe,2,0,"div",33),p(72,kMe,3,0,"div",33),p(73,AMe,3,0,"div",33)),2&n&&(c(2),f("ngIf",o.dataSource&&o.showFilter),c(2),f("dataSource",o.dataSource),c(64),f("matHeaderRowDef",o.columnsToDisplay),c(1),f("matRowDefColumns",o.columnsToDisplay),c(1),f("ngIf",o.isAdmin),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,pr,VF,Rl,Qh,IDe,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ul,ks,Nn,kd,Ne,Re,Sl,Me,Oe,Ba,ki,mo,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-logs[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}.table-container[_ngcontent-%COMP%]{background-color:#fff}.menu-capture[_ngcontent-%COMP%]{overflow:none!important;height:100%;width:100%;justify-content:center;align-items:center}"]})}return t})();const PMe=["positionsSelect"],NMe=["regionsSelect"];function FMe(t,i){if(1&t){const e=F();l(0,"mat-chip",6),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"R"))}),h(1),l(2,"mat-icon",7),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",null==e?null:e.name),c(1),T(" ",null==e?null:e.name," ")}}function LMe(t,i){if(1&t){const e=F();l(0,"mat-chip",8),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"P"))}),h(1),l(2,"mat-icon",7),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",null==e?null:e.name),c(1),T(" ",null==e?null:e.name," ")}}function BMe(t,i){if(1&t){const e=F();l(0,"mat-chip",9),M("click",function(){return E(e),I(b().onResetClick())}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_reset")," "))}function VMe(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(null==e?null:e.name)}}function HMe(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(null==e?null:e.name)}}function UMe(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-form-field",10)(2,"mat-select",11,12),M("valueChange",function(o){return E(e),I(b().selectedPositions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(4,"translate"),p(5,VMe,2,2,"mat-option",13),d()(),l(6,"mat-form-field",10)(7,"mat-select",11,14),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(9,"translate"),p(10,HMe,2,2,"mat-option",13),d()()()}if(2&t){const e=b();c(2),N("placeholder",w(4,8,"general_position")),f("value",e.selectedPositions)("compareWith",e.compareFn),c(3),f("ngForOf",e.positions),c(2),N("placeholder",w(9,10,"general_region")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(3),f("ngForOf",e.regions)}}let $Me=(()=>{class t{constructor(e){this.filterService=e,this.onResetFilters=new W,this.onFilterdPlayers=new W,this.positions=[],this.selectedPositions=[],this.regions=[],this.selectedRegions=[],this.panelOpenState=!1}ngOnInit(){}get showResetButton(){return!!(Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0||Array.isArray(this.selectedPositions)&&this.selectedPositions.length>0)}ngOnChanges(e){e.players&&e.players.currentValue&&e.players.previousValue&&!Object.is(e.players.currentValue,e.players.previousValue)&&this.onFilter()}ngAfterContentInit(){this.getSessionStorage(),this.onFilter()}onFilter(){let e=[];for(let n of this.players)this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region")&&this.filterService.shouldAcceptTargetBy(n,this.selectedPositions,"position")&&e.push(n);this.initFilterOptions(this.players),this.setSessionStorage(),this.onFilterdPlayers.emit(e)}initFilterOptions(e){this.regions=[],this.positions=[];let n=[],o=[];e&&e.length>0&&e.forEach(s=>{s.region?.id&&!n.includes(s.region?.id)&&(this.regions.push(s.region),n.push(s.region.id)),s.position?.id&&!o.includes(s.position?.id)&&(this.positions.push(s.position),o.push(s.position.id))})}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStoragePlayers")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,this.selectedRegions=e.selectedRegions,this.selectedPositions=e.selectedPositions)}setSessionStorage(){sessionStorage.setItem("filterStoragePlayers",JSON.stringify({panelOpenState:this.panelOpenState||!1,selectedRegions:this.selectedRegions||[],selectedPositions:this.selectedPositions||[]}))}removeSingleFilter(e,n){"R"===n?(this.filterService.removeElementFromArray(e,this.selectedRegions),this.regionsSelect.writeValue(this.selectedRegions??[])):"P"===n&&(this.filterService.removeElementFromArray(e,this.selectedPositions),this.positionsSelect.writeValue(this.selectedPositions??[])),this.onFilter()}onResetClick(){this.selectedRegions=[],this.selectedPositions=[],this.panelOpenState=!1,this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-players-filter"]],viewQuery:function(n,o){if(1&n&&(ne(PMe,5),ne(NMe,5)),2&n){let s;G(s=z())&&(o.positionsSelect=s.first),G(s=z())&&(o.regionsSelect=s.first)}},inputs:{players:"players"},outputs:{onResetFilters:"onResetFilters",onFilterdPlayers:"onFilterdPlayers"},standalone:!0,features:[fe,Z],decls:11,vars:7,consts:[[2,"margin","10px",3,"expanded","opened","closed"],[2,"align-items","center"],["color","primary","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","accent","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","grey","selected","","matTooltip","reset","class","reset",3,"click",4,"ngIf"],["matExpansionPanelContent",""],["color","primary","selected","",3,"matTooltip","removed"],["matChipRemove",""],["color","accent","selected","",3,"matTooltip","removed"],["color","grey","selected","","matTooltip","reset",1,"reset",3,"click"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["positionsSelect",""],[3,"value",4,"ngFor","ngForOf"],["regionsSelect",""],[3,"value"]],template:function(n,o){1&n&&(l(0,"mat-expansion-panel",0),M("opened",function(){return o.panelExpanded(!0)})("closed",function(){return o.panelExpanded(!1)}),l(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),h(3),C(4,"translate"),l(5,"mat-chip-list"),p(6,FMe,4,2,"mat-chip",2),p(7,LMe,4,2,"mat-chip",3),d()(),l(8,"mat-panel-description"),p(9,BMe,3,3,"mat-chip",4),d()(),p(10,UMe,11,12,"ng-template",5),d()),2&n&&(f("expanded",o.panelOpenState),c(3),T(" ",w(4,5,"general_filtering"),"\xa0\xa0 "),c(3),f("ngForOf",o.selectedRegions),c(1),f("ngForOf",o.selectedPositions),c(2),f("ngIf",o.showResetButton))},dependencies:[sa,oa,Ua,$a,Rr,Ha,Bd,Ld,Br,Fd,ce,qe,le,ki,mo,Me,Oe,ut,gt,on,Tn,Ft,Gt,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();function jMe(t,i){if(1&t){const e=F();l(0,"app-players-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdPlayers",function(o){return E(e),I(b().onFilterdPlayers(o))}),d()}2&t&&f("players",b().players)}function GMe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function zMe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function WMe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function qMe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function YMe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_arabic_name")," "))}function QMe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function ZMe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_shirt_number")," "))}function KMe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.shirtNumber," ")}}function XMe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_height")," "))}function JMe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.height," (cm)")}}function exe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_date_of_birth")," "))}function txe(t,i){if(1&t&&(l(0,"td",27),h(1),C(2,"date"),d()),2&t){const e=i.$implicit,n=b(2);c(1),We(" ",Zm(2,2,e.dateOfBirth,"yyyy-MM-dd")," ",e.dateOfBirth&&"(Age: "+n.getAge(e.dateOfBirth)+")","")}}function nxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function ixe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",(null==e.region?null:e.region.name)||""," ")}}function oxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_position")," "))}function sxe(t,i){if(1&t&&(l(0,"td",27),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",(null==e.position?null:e.position.name)||"","")}}function axe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_avatar")," "))}function rxe(t,i){if(1&t&&(l(0,"mat-icon",32),h(1," picture_in_picture "),d()),2&t){b();const e=X(5),n=X(7);f("ngbPopover",e)("popoverTitle",n)}}function lxe(t,i){if(1&t&&(l(0,"mat-icon",33),h(1," picture_in_picture "),d()),2&t){b();const e=X(5),n=X(7);f("ngbPopover",e)("popoverTitle",n)}}function cxe(t,i){if(1&t&&(l(0,"div")(1,"div"),D(2,"app-image-preview",34),d()()),2&t){const e=b().$implicit;c(2),N("imageUrl",e.avatar)}}function dxe(t,i){1&t&&h(0,"avatar")}function uxe(t,i){if(1&t&&(l(0,"td",27)(1,"span"),p(2,rxe,2,2,"mat-icon",28),p(3,lxe,2,2,"mat-icon",29),d(),p(4,cxe,3,1,"ng-template",null,30,Nt),p(6,dxe,1,0,"ng-template",null,31,Nt),d()),2&t){const e=i.$implicit;c(2),f("ngIf",e.avatar),c(1),f("ngIf",!e.avatar)}}function hxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function pxe(t,i){if(1&t){const e=F();l(0,"td",27)(1,"span")(2,"button",35),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function mxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function fxe(t,i){if(1&t){const e=F();l(0,"td",27)(1,"span")(2,"button",35),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function _xe(t,i){1&t&&D(0,"tr",36)}function gxe(t,i){1&t&&D(0,"tr",37)}function bxe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,GMe,3,3,"th",12),p(3,zMe,2,1,"td",13),P(),A(4,14),p(5,WMe,3,3,"th",12),p(6,qMe,2,1,"td",13),P(),A(7,15),p(8,YMe,3,3,"th",12),p(9,QMe,2,1,"td",13),P(),A(10,16),p(11,ZMe,3,3,"th",12),p(12,KMe,2,1,"td",13),P(),A(13,17),p(14,XMe,3,3,"th",12),p(15,JMe,2,1,"td",13),P(),A(16,18),p(17,exe,3,3,"th",12),p(18,txe,3,5,"td",13),P(),A(19,19),p(20,nxe,3,3,"th",12),p(21,ixe,2,1,"td",13),P(),A(22,20),p(23,oxe,3,3,"th",12),p(24,sxe,2,1,"td",13),P(),A(25,21),p(26,axe,3,3,"th",12),p(27,uxe,8,2,"td",13),P(),A(28,22),p(29,hxe,3,3,"th",12),p(30,pxe,5,0,"td",13),P(),A(31,23),p(32,mxe,3,3,"th",12),p(33,fxe,5,0,"td",13),P(),p(34,_xe,1,0,"tr",24),p(35,gxe,1,0,"tr",25),d()),2&t){const e=b();f("dataSource",e.dataSource),c(34),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function vxe(t,i){1&t&&(l(0,"div",38),D(1,"mat-spinner",39),d())}function yxe(t,i){1&t&&(l(0,"div",38)(1,"mat-icon",40),h(2,"done"),d()())}function Cxe(t,i){1&t&&(l(0,"div",38)(1,"mat-icon",41),h(2,"clear"),d()())}const wxe=function(){return[5,10,25,100]};let Sxe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","name","foreignName","shirtNumber","height","dateOfBirth","region","position","avatar","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"players",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.players=e,this.updatePlayersView(this.players)})}get dataSize(){return 0}getAge(e){let n=new Date,o=new Date(Date.parse(e));return this.dateDiffInYears(o,n)}dateDiffInYears(e,n){var o=n.getFullYear(),s=n.getMonth(),a=n.getDate(),r=e.getFullYear(),u=e.getMonth(),m=e.getDate(),g=o-r;return(u>s||u==s&&m>a)&&g--,g}updatePlayersView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdPlayers(e){this.updatePlayersView(e)}onResetFilters(){this.updatePlayersView(this.players)}openEditDialog(e){null==e&&(e=new Wg);const n=this.updateDialog.open(Gw,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-players-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"players","onResetFilters","onFilterdPlayers",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"players","onResetFilters","onFilterdPlayers"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","foreignName"],["matColumnDef","shirtNumber"],["matColumnDef","height"],["matColumnDef","dateOfBirth"],["matColumnDef","region"],["matColumnDef","position"],["matColumnDef","avatar"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","mat-24","color","primary","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","popoverTitle",4,"ngIf"],["class","mat-24","color","warn","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","popoverTitle",4,"ngIf"],["S_POP",""],["S_POP_T",""],["color","primary","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",1,"mat-24",3,"ngbPopover","popoverTitle"],["color","warn","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",1,"mat-24",3,"ngbPopover","popoverTitle"],["width","150px","height","150px",3,"imageUrl"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,jMe,1,1,"app-players-filter",1),l(2,"div",2),p(3,bxe,36,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,vxe,2,0,"div",8),p(10,yxe,3,0,"div",8),p(11,Cxe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,wxe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,wf,$Me,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Me,Oe,Ul,qw,Ne,Re,Mi,Ct,je,Fe,_e,we]})}return t})();function Txe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function Dxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function Mxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_time")," "))}function xxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit,n=b();c(1),T(" ",n.getformatedDate(e.plannedStartingTime)," ")}}function Exe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_flag")," "))}function Ixe(t,i){if(1&t&&(l(0,"td",24),D(1,"img",25),d()),2&t){const e=i.$implicit;c(1),N("src",e.flag,kt)}}function Oxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function Rxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit,n=b();let o;c(1),T(" ",null!==(o=null==(o=n.matchesService.getRegionFromMatchOrCompetition(e))?null:o.name)&&void 0!==o?o:""," ")}}function kxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_competition")," "))}function Axe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.competition?e.competition.name:""," ")}}function Pxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_home")," "))}function Nxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.homeTeam.name," ")}}function Fxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_away")," "))}function Lxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.awayTeam.name," ")}}function Bxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_coverage_method")," "))}function Vxe(t,i){1&t&&(l(0,"span",29),C(1,"translate"),h(2),C(3,"translate"),d()),2&t&&(N("matTooltip",w(1,2,"general_coverage_venue_by")),c(2),O(w(3,4,"general_venue")))}function Hxe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_voice")))}function Uxe(t,i){1&t&&(l(0,"span"),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_mobile")))}function $xe(t,i){if(1&t&&(l(0,"td",24),p(1,Vxe,4,6,"span",27),p(2,Hxe,3,3,"span",28),p(3,Uxe,3,3,"span",28),d()),2&t){const e=i.$implicit,n=b();c(1),f("ngIf",2===n.userType&&("V"===e.coverageMethod||"M"===e.coverageMethod)),c(1),f("ngIf",2!==n.userType&&"V"===e.coverageMethod),c(1),f("ngIf",2!==n.userType&&"M"===e.coverageMethod)}}function jxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_reporter")," "))}function Gxe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.assignedReporter?e.assignedReporter.firstName+" "+e.assignedReporter.lastName:""," ")}}function zxe(t,i){1&t&&(l(0,"th",23),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_training")," "))}function Wxe(t,i){if(1&t){const e=F();l(0,"mat-icon",31),M("click",function(){E(e);const o=b().$implicit;return I(b().clearMatch(o.id))}),h(1," replay "),d()}}function qxe(t,i){if(1&t&&(l(0,"td",24),p(1,Wxe,2,0,"mat-icon",30),d()),2&t){const e=i.$implicit;c(1),f("ngIf",e.trainingMatch)}}function Yxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_moderator")," "))}function Qxe(t,i){if(1&t&&(l(0,"span"),h(1),d()),2&t){const e=i.$implicit;c(1),O(e?e.firstName+" "+e.lastName:"")}}function Zxe(t,i){if(1&t&&(l(0,"td",24),p(1,Qxe,2,1,"span",32),d()),2&t){const e=i.$implicit;c(1),f("ngForOf",e.assignedModerators)}}function Kxe(t,i){1&t&&(l(0,"th",26),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_cover")," "))}function Xxe(t,i){if(1&t&&(l(0,"td",24)(1,"a",33)(2,"mat-icon",34),h(3,"mobile_screen_share"),d()()()),2&t){const e=i.$implicit,n=b();c(1),f("href",n.getMobileCoverageURL(e),kt)}}function Jxe(t,i){1&t&&D(0,"tr",35)}function eEe(t,i){1&t&&D(0,"tr",36)}function tEe(t,i){if(1&t){const e=F();l(0,"button",37),M("click",function(){return E(e),I(b().openEditDialog())}),l(1,"mat-icon",38),h(2,"add"),d()()}}function nEe(t,i){1&t&&(l(0,"div",39),D(1,"mat-spinner",40),d())}function iEe(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",41),h(2,"done"),d()())}function oEe(t,i){1&t&&(l(0,"div",39)(1,"mat-icon",42),h(2,"clear"),d()())}let sEe=(()=>{class t{constructor(e,n,o,s,a,r){this.matchesService=e,this.router=n,this.http=o,this.updateDialog=s,this.snackBar=a,this.translateService=r,this.onProgress=0,this.columnsToDisplay=["id","plannedStartingTime","flag","region","competition","homeTeam","awayTeam"],this.showModeratorsFilter=!1,this.showReportersFilter=!1,this.showTrainingMatchesFilter=!1}ngOnInit(){this.onProgress=0,-1!==this.router.url.indexOf("/reporter/trainingCenter")&&v.userType===Be.ACCOUNT_TYPE_REPORTER&&(this.columnsToDisplay=["id","plannedStartingTime","flag","region","homeTeam","awayTeam","coverageMethod","trainingMatch","cover"],this.service=new Q(v.apiURLs.rootURL+"reporter/matches",this.http),this.service.getAllObservable(v.token,v.userId,"&training=true").subscribe(e=>{this.matches=this.matchesService.injectFlags(e),this.matches=this.matches.filter(n=>1==n.trainingMatch),this.updateMatchesView(this.matches)}))}get dataSize(){return 0}get userType(){return v.userType}clearMatch(e){if(null!=e){this.serviceClear=new Q(v.apiURLs.rootURL+"matches/"+e+"/clear",this.http);const n=this.updateDialog.open(en,{data:{title:null,content:this.translateService.instant("message_confirm_resetting_match"),refId:e}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{if(!0===o){try{this.serviceClear.create({id:e}).subscribe(),this.ngOnInit()}catch(s){console.log(s)}this.onProgress=0}else this.onProgress=0})}}updateMatchesView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=Sp,this.dataSource.sort=this.sort}getApiURL(e){return v.apiCoverageURL+"matches/"+e.id+"/matchEvents?userId="+v.userId+"&token="+v.token}getformatedDate(e){const n=new Date(e);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}getMobileCoverageURL(e){return"football"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:"basketball"==e.sport?.name.toLowerCase()?v?.mobileCoverageURL_B+"?matchId="+e?.id+"&userId="+v?.userId+"&token="+v?.token:""}static#e=this.\u0275fac=function(n){return new(n||t)(_(ua),_(_i),_(Ee),_(Wt),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-training-center-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:46,vars:7,consts:[[1,"menu-capture"],[1,"matches-table-container"],[1,"matches-table-container-main"],["mat-table","","matSort","","matSortActive","plannedStartingTime","matSortDirection","desc",1,"mat-elevation-z8",2,"flex","1",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","plannedStartingTime"],["matColumnDef","flag"],["matColumnDef","region"],["matColumnDef","competition"],["matColumnDef","homeTeam"],["matColumnDef","awayTeam"],["matColumnDef","coverageMethod"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","assignedReporter"],["matColumnDef","trainingMatch"],["matColumnDef","assignedModerators"],["matColumnDef","cover"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["width","32px",3,"src"],["mat-header-cell",""],[3,"matTooltip",4,"ngIf"],[4,"ngIf"],[3,"matTooltip"],["class","resetT","color","white",3,"click",4,"ngIf"],["color","white",1,"resetT",3,"click"],[4,"ngFor","ngForOf"],["mat-button","","target","_blank",3,"href"],["color","primary",1,"mat-24"],["mat-header-row",""],["mat-row","",1,"example-element-row"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"table",3),A(4,4),p(5,Txe,3,3,"th",5),p(6,Dxe,2,1,"td",6),P(),A(7,7),p(8,Mxe,3,3,"th",5),p(9,xxe,2,1,"td",6),P(),A(10,8),p(11,Exe,3,3,"th",5),p(12,Ixe,2,1,"td",6),P(),A(13,9),p(14,Oxe,3,3,"th",5),p(15,Rxe,2,1,"td",6),P(),A(16,10),p(17,kxe,3,3,"th",5),p(18,Axe,2,1,"td",6),P(),A(19,11),p(20,Pxe,3,3,"th",5),p(21,Nxe,2,1,"td",6),P(),A(22,12),p(23,Fxe,3,3,"th",5),p(24,Lxe,2,1,"td",6),P(),A(25,13),p(26,Bxe,3,3,"th",14),p(27,$xe,4,3,"td",6),P(),A(28,15),p(29,jxe,3,3,"th",5),p(30,Gxe,2,1,"td",6),P(),A(31,16),p(32,zxe,3,3,"th",5),p(33,qxe,2,1,"td",6),P(),A(34,17),p(35,Yxe,3,3,"th",14),p(36,Zxe,2,1,"td",6),P(),A(37,18),p(38,Kxe,3,3,"th",14),p(39,Xxe,4,1,"td",6),P(),p(40,Jxe,1,0,"tr",19),p(41,eEe,1,0,"tr",20),d()()()(),p(42,tEe,3,0,"button",21),p(43,nEe,2,0,"div",22),p(44,iEe,3,0,"div",22),p(45,oEe,3,0,"div",22)),2&n&&(c(3),f("dataSource",o.dataSource),c(37),f("matHeaderRowDef",o.columnsToDisplay),c(1),f("matRowDefColumns",o.columnsToDisplay),c(1),f("ngIf",1===o.userType),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ks,Nn,kd,ce,qe,le,ki,mo,Me,Oe,Ne,Re,Sl,je,Fe,_e,we],styles:[".resetT[_ngcontent-%COMP%]{cursor:pointer}.menu-capture[_ngcontent-%COMP%]{overflow:none!important;height:100%;width:100%;justify-content:center;align-items:center}"]})}return t})();class nL{constructor(){this.id=null,this.name="",this.foreignName="",this.region=null,this.city="",this.googleMapslink="",this.capacity=""}}function aEe(t,i){if(1&t&&(l(0,"mat-option",22),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function rEe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),l(11,"mat-form-field",5),D(12,"input",9,10),C(14,"translate"),l(15,"mat-hint",8),h(16),d()(),l(17,"mat-form-field",5)(18,"mat-select",11,12),C(20,"translate"),p(21,aEe,2,2,"mat-option",13),d()(),l(22,"mat-form-field",5),D(23,"input",14,15),C(25,"translate"),l(26,"mat-hint",8),h(27),d()(),l(28,"mat-form-field",5),D(29,"input",16,17),C(31,"translate"),l(32,"mat-hint",8),h(33),d()(),l(34,"mat-form-field",5),D(35,"input",18,19),C(37,"translate"),l(38,"mat-hint",8),h(39),d()(),D(40,"mat-divider"),l(41,"p")(42,"button",20),h(43),C(44,"translate"),d(),h(45," \xa0"),l(46,"button",21),M("click",function(){return E(e),I(b().onNoClick())}),h(47),C(48,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(13),o=X(24),s=X(30),a=X(36),r=b();c(2),f("formGroup",r.options),c(2),O(r.title),c(2),N("placeholder",w(8,27,"general_name")),J("maxlength",r.stadiumNameLimit),c(4),We("",e.value.length," / ",r.stadiumNameLimit,""),c(2),N("placeholder",w(14,29,"general_foreign_name")),J("maxlength",r.stadiumNameLimit),c(4),We("",n.value.length," / ",r.stadiumNameLimit,""),c(2),N("placeholder",w(20,31,"general_region")),f("compareWith",r.compareFn),c(3),f("ngForOf",r.regions),c(2),N("placeholder",w(25,33,"general_city")),J("maxlength",r.stadiumNameLimit),c(4),We("",o.value.length," / ",r.stadiumNameLimit,""),c(2),N("placeholder",w(31,35,"general_googleMapslink")),J("maxlength",r.stadiumNameLimit),c(4),We("",s.value.length," / ",r.stadiumNameLimit,""),c(2),N("placeholder",w(37,37,"general_capacity")),J("maxlength",10),c(4),T("",a.value.length," / 10"),c(3),f("disabled",r.options.invalid),c(1),O(w(44,39,"general_save")),c(4),O(w(48,41,"general_close"))}}function lEe(t,i){1&t&&(l(0,"div",23),D(1,"mat-spinner",24),d())}function cEe(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",25),h(2,"done"),d()())}function dEe(t,i){1&t&&(l(0,"div",23)(1,"mat-icon",26),h(2,"clear"),d()())}let uEe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new nL),this.service=new Q(v.apiURLs.rootURL+"stadiums",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],foreignName:[this.entity.foreignName],region:[this.entity.region,ue.required],city:[this.entity.city,ue.required],googleMapslink:[this.entity.googleMapslink],capacity:[this.entity.capacity]})}get regions(){return v.regions}get title(){return this.translateService.instant(null==this.entity.id?"stadium_add_new":"stadium_edit")}get stadiumNameLimit(){return v.stringLimits.stadiumNameLimit}addStadiumToConfig(e){if(Array.isArray(v.stadiums)||(v.stadiums=[]),e){const n=v.stadiums.findIndex(o=>e.id===o.id);-1!==n?v.stadiums[n]=e:v.stadiums.push(e)}}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.foreignName=this.options.value.foreignName,this.entity.region=this.options.value.region,this.entity.city=this.options.value.city,this.entity.googleMapslink=this.options.value.googleMapslink,this.entity.capacity=this.options.value.capacity;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,this.addStadiumToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,this.addStadiumToConfig(n),setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stadium-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","foreignName","name","foreignName","matInput","",3,"placeholder"],["foreignName",""],["formControlName","region","name","region",3,"compareWith","placeholder"],["region",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","city","name","city","matInput","","required","",3,"placeholder"],["city",""],["formControlName","googleMapslink","name","googleMapslink","matInput","",3,"placeholder"],["googleMapslink",""],["formControlName","capacity","name","capacity","matInput","",3,"placeholder"],["capacity",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,rEe,49,43,"div",0),p(1,lEe,2,0,"div",1),p(2,cEe,3,0,"div",1),p(3,dEe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),hEe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stadium-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-stadium-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,uEe]})}return t})();function pEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function mEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function fEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function _Ee(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function gEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function bEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function vEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function yEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.region?e.region.name:""," ")}}function CEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_city")," "))}function wEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.city," ")}}function SEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_googleMapslink")," "))}function TEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.googleMapslink," ")}}function DEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_capacity")," "))}function MEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.capacity," ")}}function xEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function EEe(t,i){if(1&t){const e=F();l(0,"td",23)(1,"span")(2,"button",24),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function IEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function OEe(t,i){if(1&t){const e=F();l(0,"td",23)(1,"span")(2,"button",24),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function REe(t,i){1&t&&D(0,"tr",25)}function kEe(t,i){1&t&&D(0,"tr",26)}function AEe(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,pEe,3,3,"th",10),p(3,mEe,2,1,"td",11),P(),A(4,12),p(5,fEe,3,3,"th",10),p(6,_Ee,2,1,"td",11),P(),A(7,13),p(8,gEe,3,3,"th",10),p(9,bEe,2,1,"td",11),P(),A(10,14),p(11,vEe,3,3,"th",10),p(12,yEe,2,1,"td",11),P(),A(13,15),p(14,CEe,3,3,"th",10),p(15,wEe,2,1,"td",11),P(),A(16,16),p(17,SEe,3,3,"th",10),p(18,TEe,2,1,"td",11),P(),A(19,17),p(20,DEe,3,3,"th",10),p(21,MEe,2,1,"td",11),P(),A(22,18),p(23,xEe,3,3,"th",10),p(24,EEe,5,0,"td",11),P(),A(25,19),p(26,IEe,3,3,"th",10),p(27,OEe,5,0,"td",11),P(),p(28,REe,1,0,"tr",20),p(29,kEe,1,0,"tr",21),d()),2&t){const e=b();f("dataSource",e.dataSource),c(28),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function PEe(t,i){1&t&&(l(0,"div",27),D(1,"mat-spinner",28),d())}function NEe(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",29),h(2,"done"),d()())}function FEe(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",30),h(2,"clear"),d()())}const LEe=function(){return[5,10,25,100]};let BEe=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","name","foreignName","region","city","googleMapslink","capacity","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"stadiums",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openEditDialog(e){null==e&&(e=new nL);const n=this.updateDialog.open(hEe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"stadiums"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stadiums-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","city"],["matColumnDef","googleMapslink"],["matColumnDef","capacity"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,AEe,30,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,PEe,2,0,"div",7),p(9,NEe,3,0,"div",7),p(10,FEe,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,LEe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class iL{constructor(){this.id=null,this.name="",this.foreignName="",this.region=null,this.avatar=""}}function VEe(t,i){if(1&t&&(l(0,"mat-option",23),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function HEe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),l(11,"mat-form-field",5),D(12,"input",9,10),C(14,"translate"),l(15,"mat-hint",8),h(16),d()(),l(17,"mat-form-field",5)(18,"mat-select",11,12),C(20,"translate"),p(21,VEe,2,2,"mat-option",13),d()(),l(22,"mat-form-field",5),D(23,"input",14,15),C(25,"translate"),l(26,"mat-hint",8),h(27),d()(),l(28,"mat-form-field",5)(29,"mat-select",16,17),C(31,"translate"),l(32,"mat-option",18),h(33,"Main"),d(),l(34,"mat-option",19),h(35,"Line"),d(),l(36,"mat-option",20),h(37,"VAR"),d()()(),D(38,"mat-divider"),l(39,"p")(40,"button",21),h(41),C(42,"translate"),d(),h(43," \xa0"),l(44,"button",22),M("click",function(){return E(e),I(b().onNoClick())}),h(45),C(46,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(13),o=X(24),s=b();c(2),f("formGroup",s.options),c(2),O(s.title),c(2),N("placeholder",w(8,22,"general_name")),J("maxlength",s.refereeNameLimit),c(4),We("",e.value.length," / ",s.refereeNameLimit,""),c(2),N("placeholder",w(14,24,"general_foreign_name")),J("maxlength",s.refereeNameLimit),c(4),We("",n.value.length," / ",s.refereeNameLimit,""),c(2),N("placeholder",w(20,26,"general_region")),f("compareWith",s.compareFn),c(3),f("ngForOf",s.regions),c(2),N("placeholder",w(25,28,"general_avatar")),J("maxlength",s.refereeNameLimit),c(4),We("",o.value.length," / ",s.refereeNameLimit,""),c(2),N("placeholder",w(31,30,"general_type")),f("compareWith",s.compareFn),c(11),f("disabled",s.options.invalid),c(1),O(w(42,32,"general_save")),c(4),O(w(46,34,"general_close"))}}function UEe(t,i){1&t&&(l(0,"div",24),D(1,"mat-spinner",25),d())}function $Ee(t,i){1&t&&(l(0,"div",24)(1,"mat-icon",26),h(2,"done"),d()())}function jEe(t,i){1&t&&(l(0,"div",24)(1,"mat-icon",27),h(2,"clear"),d()())}let GEe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new iL),this.service=new Q(v.apiURLs.rootURL+"referees",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],foreignName:[this.entity.foreignName],region:[this.entity.region,ue.required],avatar:[this.entity.avatar],type:[this.entity.type,ue.required]})}get regions(){return v.regions}get title(){return this.translateService.instant(null==this.entity.id?"referee_add_new":"referee_edit")}get refereeNameLimit(){return v.stringLimits.refereeNameLimit}onSave(){this.onProgress=1,this.entity.name=this.options.value.name,this.entity.foreignName=this.options.value.foreignName,this.entity.region=this.options.value.region,this.entity.type=this.options.value.type,this.entity.avatar=this.options.value.avatar,"null"===this.options.value.avatar&&(this.entity.avatar=null);const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-referee-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","foreignName","name","foreignName","matInput","",3,"placeholder"],["foreignName",""],["formControlName","region","name","region","required","",3,"compareWith","placeholder"],["region",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","avatar","name","avatar","matInput","",3,"placeholder"],["avatar",""],["formControlName","type","name","type","required","",3,"compareWith","placeholder"],["type",""],["value","Main"],["value","Line"],["value","VAR"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,HEe,47,36,"div",0),p(1,UEe,2,0,"div",1),p(2,$Ee,3,0,"div",1),p(3,jEe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),zEe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-referee-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-referee-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,GEe]})}return t})();function WEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function qEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function YEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function QEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function ZEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function KEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function XEe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function JEe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.region?e.region.name:""," ")}}function eIe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_avatar")," "))}function tIe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.avatar," ")}}function nIe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function iIe(t,i){if(1&t&&(l(0,"td",24),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.type," ")}}function oIe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function sIe(t,i){if(1&t){const e=F();l(0,"td",23)(1,"span")(2,"button",25),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function aIe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function rIe(t,i){if(1&t){const e=F();l(0,"td",23)(1,"span")(2,"button",25),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function lIe(t,i){1&t&&D(0,"tr",26)}function cIe(t,i){1&t&&D(0,"tr",27)}function dIe(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,WEe,3,3,"th",10),p(3,qEe,2,1,"td",11),P(),A(4,12),p(5,YEe,3,3,"th",10),p(6,QEe,2,1,"td",11),P(),A(7,13),p(8,ZEe,3,3,"th",10),p(9,KEe,2,1,"td",11),P(),A(10,14),p(11,XEe,3,3,"th",10),p(12,JEe,2,1,"td",11),P(),A(13,15),p(14,eIe,3,3,"th",10),p(15,tIe,2,1,"td",11),P(),A(16,16),p(17,nIe,3,3,"th",10),p(18,iIe,2,1,"td",17),P(),A(19,18),p(20,oIe,3,3,"th",10),p(21,sIe,5,0,"td",11),P(),A(22,19),p(23,aIe,3,3,"th",10),p(24,rIe,5,0,"td",11),P(),p(25,lIe,1,0,"tr",20),p(26,cIe,1,0,"tr",21),d()),2&t){const e=b();f("dataSource",e.dataSource),c(25),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function uIe(t,i){1&t&&(l(0,"div",28),D(1,"mat-spinner",29),d())}function hIe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",30),h(2,"done"),d()())}function pIe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",31),h(2,"clear"),d()())}const mIe=function(){return[5,10,25,100]};let fIe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","name","foreignName","region","avatar","type","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"referees",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openEditDialog(e){null==e&&(e=new iL);const n=this.updateDialog.open(zEe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-referees-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","avatar"],["matColumnDef","type"],["mat-cell","","class","capitalize",4,"matCellDef"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"capitalize"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,dIe,27,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,uIe,2,0,"div",7),p(9,hIe,3,0,"div",7),p(10,pIe,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,mIe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class Xw{constructor(){this.id=null,this.seasonYear="",this.startDate=null,this.endDate=null,this.competition=null,this.seasonTeams=null}}function _Ie(t,i){1&t&&(l(0,"mat-error"),h(1," Season year is required. "),d())}function gIe(t,i){1&t&&(l(0,"mat-error"),h(1," Enter a valid format (YYYY or YYYY-YYYY). "),d())}function bIe(t,i){1&t&&(l(0,"mat-error"),h(1," Year must be a number. "),d())}function vIe(t,i){if(1&t&&(l(0,"mat-option",19),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function yIe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10,"YYYY or YYYY-YYYY"),d(),p(11,_Ie,2,0,"mat-error",0),p(12,gIe,2,0,"mat-error",0),p(13,bIe,2,0,"mat-error",0),d(),l(14,"mat-form-field",5),D(15,"input",9),C(16,"translate"),D(17,"mat-datepicker-toggle",10)(18,"mat-datepicker",null,11),d(),l(20,"mat-form-field",5),D(21,"input",12),C(22,"translate"),D(23,"mat-datepicker-toggle",10)(24,"mat-datepicker",null,13),d(),l(26,"mat-form-field",5)(27,"mat-select",14,15),C(29,"translate"),l(30,"mat-option"),h(31,"--"),d(),p(32,vIe,2,2,"mat-option",16),d()(),D(33,"mat-divider"),l(34,"p")(35,"button",17),h(36),C(37,"translate"),d(),h(38," \xa0"),l(39,"button",18),M("click",function(){return E(e),I(b().onNoClick())}),h(40),C(41,"translate"),d()()()()()}if(2&t){const e=X(19),n=X(25),o=b();c(2),f("formGroup",o.options),c(2),O(o.title),c(1),de("mb-large",o.options.controls.seasonYear.invalid),c(1),N("placeholder",w(8,20,"general_season_year")),c(5),f("ngIf",o.options.controls.seasonYear.hasError("required")),c(1),f("ngIf",o.options.controls.seasonYear.hasError("pattern")),c(1),f("ngIf",o.options.controls.seasonYear.hasError("numberInvalid")),c(2),N("placeholder",w(16,22,"match_planned_date_start")),f("matDatepicker",e),c(2),f("for",e),c(4),N("placeholder",w(22,24,"match_planned_date_end")),f("matDatepicker",n),c(2),f("for",n),c(4),N("placeholder",w(29,26,"general_competition")),f("compareWith",o.compareFn),c(5),f("ngForOf",o.competitions),c(3),f("disabled",o.options.invalid),c(1),O(w(37,28,"general_save")),c(4),O(w(41,30,"general_close"))}}function CIe(t,i){1&t&&(l(0,"div",20),D(1,"mat-spinner",21),d())}function wIe(t,i){1&t&&(l(0,"div",20)(1,"mat-icon",22),h(2,"done"),d()())}function SIe(t,i){1&t&&(l(0,"div",20)(1,"mat-icon",23),h(2,"clear"),d()())}let TIe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}numberValidator(e){const n=e.value;return n?n.split("-").every(s=>!isNaN(s))?null:{numberInvalid:!0}:null}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Xw),this.service=new Q(v.apiURLs.rootURL+"seasons",this.http),this.options=this.fb.group({seasonYear:[this.entity.seasonYear,[ue.required,ue.minLength(4),ue.maxLength(9),ue.pattern(/^\d{4}(-\d{4})?$/),this.numberValidator]],startDate:[this.entity.startDate?new Date(this.entity.startDate):new Date,ue.required],endDate:[this.entity.endDate?new Date(this.entity.endDate):new Date,ue.required],competition:[this.entity.competition,ue.required]})}get competitions(){return v.competitions}get title(){return this.translateService.instant(null==this.entity.id?"season_add_new":"season_edit")}get seasonNameLimit(){return v.stringLimits.seasonNameLimit}onSave(){this.onProgress=1,this.entity.seasonYear=this.options.value.seasonYear,this.entity.startDate=this.options.value.startDate,this.entity.endDate=this.options.value.endDate,this.entity.competition=this.options.value.competition;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-season-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["matInput","","formControlName","seasonYear","required","",3,"placeholder"],["seasonYear",""],["align","end"],["matInput","","formControlName","startDate","name","startDate","required","",3,"matDatepicker","placeholder"],["matSuffix","",3,"for"],["picker",""],["matInput","","formControlName","endDate","name","endDate","required","",3,"matDatepicker","placeholder"],["picker1",""],["formControlName","competition","name","competition","required","",3,"compareWith","placeholder"],["competition",""],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,yIe,42,32,"div",0),p(1,CIe,2,0,"div",1),p(2,wIe,3,0,"div",1),p(3,SIe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,Sr,gt,Ni,cd,zt,wn,Yl,Lw,Cp,wp,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}.mb-large[_ngcontent-%COMP%]{margin-bottom:1em}"]})}return t})(),oL=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-season-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-season-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,TIe]})}return t})();function DIe(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function MIe(t,i){1&t&&(l(0,"th",24),h(1," Team Name "),d())}function xIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function EIe(t,i){1&t&&(l(0,"th",26),h(1," Remove "),d())}function IIe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"button",27),M("click",function(){const s=E(e).$implicit;return I(b(3).removeTeam(s))}),l(2,"mat-icon"),h(3,"delete"),d()()()}}function OIe(t,i){1&t&&D(0,"tr",28)}function RIe(t,i){1&t&&D(0,"tr",29)}const sL=function(){return["name","remove"]};function kIe(t,i){1&t&&(l(0,"table",16),A(1,17),p(2,MIe,2,0,"th",18),p(3,xIe,2,1,"td",19),P(),A(4,20),p(5,EIe,2,0,"th",21),p(6,IIe,4,0,"td",19),P(),p(7,OIe,1,0,"tr",22),p(8,RIe,1,0,"tr",23),d()),2&t&&(f("dataSource",b(2).selectedTeams),c(7),f("matHeaderRowDef",hn(3,sL)),c(1),f("matRowDefColumns",hn(4,sL)))}function AIe(t,i){if(1&t&&(l(0,"mat-option",15),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),T(" ",e.name," ")}}function PIe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6),p(7,DIe,2,2,"mat-option",7),d()(),p(8,kIe,9,5,"table",8),l(9,"mat-form-field",5),D(10,"input",9),l(11,"mat-autocomplete",10,11),M("optionSelected",function(o){return E(e),I(b().toggleTeamSelection(o.option.value))}),p(13,AIe,2,2,"mat-option",7),C(14,"async"),d()(),D(15,"mat-divider"),l(16,"div",12)(17,"div")(18,"button",13),h(19),C(20,"translate"),d(),h(21," \xa0 "),l(22,"button",14),M("click",function(){return E(e),I(b().onNoClick())}),h(23),C(24,"translate"),d()(),l(25,"div"),h(26),d()()()()()}if(2&t){const e=X(12),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),f("formControl",n.sportControl),c(1),f("ngForOf",n.sports),c(1),f("ngIf",n.selectedTeams.length>0),c(2),f("formControl",n.teamSearchControl)("matAutocomplete",e),c(3),f("ngForOf",w(14,12,n.filteredTeams)),c(5),f("disabled",n.options.invalid),c(1),T(" ",w(20,14,"general_save")," "),c(4),T(" ",w(24,16,"general_close")," "),c(3),T("",n.selectedTeamIds.size," teams selected")}}function NIe(t,i){1&t&&D(0,"mat-spinner",34)}function FIe(t,i){1&t&&(l(0,"mat-icon",35),h(1,"done"),d())}function LIe(t,i){1&t&&(l(0,"mat-icon",36),h(1,"clear"),d())}function BIe(t,i){if(1&t&&(l(0,"div",30),p(1,NIe,1,0,"mat-spinner",31),p(2,FIe,2,0,"mat-icon",32),p(3,LIe,2,0,"mat-icon",33),d()),2&t){const e=b();c(1),f("ngIf",1===e.onProgress),c(1),f("ngIf",2===e.onProgress),c(1),f("ngIf",3===e.onProgress)}}let VIe=(()=>{class t{constructor(e,n,o,s){this.http=e,this.fb=n,this.translateService=o,this.cdr=s,this.onProgress=0,this.teams=[],this.selectedTeamIds=new Set,this.teamSearchControl=new ji,this.sportControl=new ji(null),this.selectedTeams=[],this.sports=[],this.options=this.fb.group({seasonTeams:[[]]})}ngOnChanges(e){e.entity&&this.setupComponent()}setupComponent(){var e=this;return Za(function*(){e.initializeService(),yield e.fetchSports(),yield e.initializeForm(),e.setupFilteredTeams()})()}initializeService(){this.service=new Q(v.apiURLs.rootURL+"teams",this.http)}initializeForm(){var e=this;return Za(function*(){e.selectedTeamIds=new Set(e.entity?.seasonTeams?JSON.parse(e.entity.seasonTeams):[]),yield e.fetchTeams()})()}setupFilteredTeams(){this.filteredTeams=this.teamSearchControl.valueChanges.pipe(jt(""),Le(e=>"string"==typeof e?e:e.name),Le(e=>e?this.filterTeamsByName(e):this.teams.slice()),Le(e=>e.filter(n=>n.id&&!this.selectedTeamIds.has(n.id))),Le(e=>{const n=this.sportControl.value;return e.filter(o=>!n||o.sport?.id===n.id)})),this.cdr.detectChanges()}fetchTeams(){var e=this;return Za(function*(){return new Promise((n,o)=>{e.service?.getAllObservable(v.token,v.userId).subscribe(s=>{e.teams=s,e.updateSelectedTeams(),e.onProgress=0,n()},s=>{console.error("Error fetching teams:",s),o(s)})})})()}fetchSports(){var e=this;return Za(function*(){const n=new Q(v.apiURLs.rootURL+"sports",e.http);try{const o=yield n.getAllObservable(v.token,v.userId).toPromise();if(e.sports=o,e.entity?.competition?.sport){const s=e.sports.find(a=>a.id===e.entity.competition.sport.id);e.sportControl.setValue(s??null)}}catch(o){console.error("Error fetching sports:",o)}})()}filterTeamsByName(e){const n=e.toLowerCase();return this.teams.filter(o=>o.name.toLowerCase().includes(n))}toggleTeamSelection(e){e.id&&(this.selectedTeamIds.has(e.id)?this.selectedTeamIds.delete(e.id):this.selectedTeamIds.add(e.id),this.updateSelectedTeams(),this.resetAutocomplete())}resetAutocomplete(){this.teamSearchControl.setValue(""),this.teamSearchControl.markAsPristine(),this.teamSearchControl.markAsUntouched()}removeTeam(e){e.id&&this.selectedTeamIds.delete(e.id)&&this.updateSelectedTeams()}updateSelectedTeams(){this.selectedTeams=this.teams.filter(e=>e.id&&this.selectedTeamIds.has(e.id)),this.options.get("seasonTeams")?.setValue(Array.from(this.selectedTeamIds))}onSave(){if(this.service=new Q(v.apiURLs.rootURL+"seasons",this.http),!this.entity)return void console.error("Entity is not defined");let e;if(this.entity.competition){const{competition:s,...a}=this.entity;e=a}else e=this.entity;this.onProgress=1;const n={...e,seasonTeams:JSON.stringify(this.options.value.seasonTeams)};(e.id?this.service.update(n):this.service.create(n)).subscribe(s=>this.handleResponse(s,2),s=>this.handleResponse(null,3))}handleResponse(e,n){this.onProgress=n,setTimeout(2===n?()=>this.inputOnSuccess(e):()=>this.inputOnClose(),v.delaySuccessMessage)}get title(){return this.translateService.instant(null==this.entity.id?"season_team_add_new":"season_team_edit")}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(mn),_(Ze),_(He))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-season-teams-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:2,vars:2,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[3,"formGroup","ngSubmit"],[1,"mat-title"],["appearance","fill",1,"full-width"],["placeholder","Select Sport",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-table","","class","mat-elevation-z8 scrollable-table full-width",3,"dataSource",4,"ngIf"],["type","text","placeholder","Search team","matInput","",3,"formControl","matAutocomplete"],[3,"optionSelected"],["auto","matAutocomplete"],[2,"display","flex","align-items","center","justify-content","space-between"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],["mat-table","",1,"mat-elevation-z8","scrollable-table","full-width",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","class","full-width",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remove"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"full-width"],["mat-cell",""],["mat-header-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"screen-centered"],["style","display: inline-block;",4,"ngIf"],["color","primary","class","mat-172","style","display: inline-block;",4,"ngIf"],["color","warn","class","mat-172","style","display: inline-block;",4,"ngIf"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,PIe,27,18,"div",0),p(1,BIe,4,3,"div",1)),2&n&&(f("ngIf",0===o.onProgress),c(1),f("ngIf",o.onProgress>0))},dependencies:[ce,qe,le,mr,xt,Vt,Lt,Mt,Bt,wr,vt,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,ut,gt,zt,wn,Yl,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we,ql,Ad,Wl],styles:[".full-width[_ngcontent-%COMP%]{width:100%}.mb-large[_ngcontent-%COMP%]{margin-bottom:1em}.scrollable-table[_ngcontent-%COMP%]{max-height:10em;overflow-y:auto;display:block}.align-center[_ngcontent-%COMP%]{margin:auto}"],changeDetection:0})}return t})(),aL=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-season-teams-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-season-teams-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,VIe]})}return t})();function HIe(t,i){if(1&t){const e=F();l(0,"app-seasons-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdSeasons",function(o){return E(e),I(b().onFilterdSeasons(o))}),d()}2&t&&f("seasons",b().seasons)}function UIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function $Ie(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function jIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_season_year")," "))}function GIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.seasonYear," ")}}function zIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_start_date")," "))}function WIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.startDate?e.startDate:""," ")}}function qIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_end_date")," "))}function YIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.endDate?e.endDate:""," ")}}function QIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_last_update")," "))}function ZIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.lastUpdate?e.lastUpdate:""," ")}}function KIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_competition")," "))}function XIe(t,i){if(1&t&&(l(0,"td",25),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.competition?e.competition.name:""," ")}}function JIe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_season_team_edit")," "))}function eOe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"span")(2,"button",26),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditSeasonTeamsDialog(s,s.competition))}),l(3,"mat-icon",5),h(4,"contacts"),d()()()()}}function tOe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function nOe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"span")(2,"button",26),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function iOe(t,i){1&t&&(l(0,"th",24),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function oOe(t,i){if(1&t){const e=F();l(0,"td",25)(1,"span")(2,"button",26),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function sOe(t,i){1&t&&D(0,"tr",27)}function aOe(t,i){1&t&&D(0,"tr",28)}function rOe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,UIe,3,3,"th",12),p(3,$Ie,2,1,"td",13),P(),A(4,14),p(5,jIe,3,3,"th",12),p(6,GIe,2,1,"td",13),P(),A(7,15),p(8,zIe,3,3,"th",12),p(9,WIe,2,1,"td",13),P(),A(10,16),p(11,qIe,3,3,"th",12),p(12,YIe,2,1,"td",13),P(),A(13,17),p(14,QIe,3,3,"th",12),p(15,ZIe,2,1,"td",13),P(),A(16,18),p(17,KIe,3,3,"th",12),p(18,XIe,2,1,"td",13),P(),A(19,19),p(20,JIe,3,3,"th",12),p(21,eOe,5,0,"td",13),P(),A(22,20),p(23,tOe,3,3,"th",12),p(24,nOe,5,0,"td",13),P(),A(25,21),p(26,iOe,3,3,"th",12),p(27,oOe,5,0,"td",13),P(),p(28,sOe,1,0,"tr",22),p(29,aOe,1,0,"tr",23),d()),2&t){const e=b();f("dataSource",e.dataSource),c(28),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function lOe(t,i){1&t&&(l(0,"div",29),D(1,"mat-spinner",30),d())}function cOe(t,i){1&t&&(l(0,"div",29)(1,"mat-icon",31),h(2,"done"),d()())}function dOe(t,i){1&t&&(l(0,"div",29)(1,"mat-icon",32),h(2,"clear"),d()())}const uOe=function(){return[5,10,25,100]};let hOe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","seasonYear","startDate","endDate","lastUpdate","competition","editSeasonTeam","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"seasons",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.seasons=e,this.updateSeasonsView(this.seasons)})}get dataSize(){return 0}updateSeasonsView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdSeasons(e){this.updateSeasonsView(e)}onResetFilters(){this.updateSeasonsView(this.seasons)}openEditSeasonTeamsDialog(e,n){if(null!=e){e.competition=n??null;const o=this.updateDialog.open(aL,{width:"50%",data:e});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(()=>this.ngOnInit())}}openEditDialog(e){null==e&&(e=new Xw);const n=this.updateDialog.open(oL,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.seasonYear,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-seasons-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"seasons","onResetFilters","onFilterdSeasons",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"seasons","onResetFilters","onFilterdSeasons"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","seasonYear"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","lastUpdate"],["matColumnDef","competition"],["matColumnDef","editSeasonTeam"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,HIe,1,1,"app-seasons-filter",1),l(2,"div",2),p(3,rOe,30,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,lOe,2,0,"div",8),p(10,cOe,3,0,"div",8),p(11,dOe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,uOe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class Jw{constructor(){this.id=null,this.name="",this.shortName="",this.foreignName="",this.region=null,this.logo="",this.type="clubs",this.teams=null}}function pOe(t,i){if(1&t&&(l(0,"mat-option",44),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function mOe(t,i){if(1&t&&(l(0,"mat-option",44),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function fOe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5),D(6,"input",6,7),C(8,"translate"),l(9,"mat-hint",8),h(10),d()(),l(11,"mat-form-field",5),D(12,"input",9,10),C(14,"translate"),l(15,"mat-hint",8),h(16),d()(),l(17,"mat-form-field",5),D(18,"input",11,12),C(20,"translate"),l(21,"mat-hint",8),h(22),d()(),l(23,"mat-form-field",5)(24,"mat-select",13,14),C(26,"translate"),l(27,"mat-option"),h(28,"--"),d(),p(29,pOe,2,2,"mat-option",15),d()(),l(30,"mat-form-field",5)(31,"mat-select",16,17),C(33,"translate"),l(34,"mat-option",18),h(35,"clubs"),d(),l(36,"mat-option",19),h(37,"nations"),d()()(),l(38,"mat-form-field",5)(39,"span",20),D(40,"input",21,22),C(42,"translate"),l(43,"app-image-uploader",23),M("imageResponse",function(o){return E(e),I(b().handleImageResponse(o))}),d()(),l(44,"mat-hint",8),h(45),d()(),l(46,"mat-checkbox",24),h(47," Create Matching Team "),d(),l(48,"div",25)(49,"mat-form-field",5)(50,"mat-select",26,27),C(52,"translate"),l(53,"mat-option",28),h(54,"male"),d(),l(55,"mat-option",29),h(56,"female"),d()()(),l(57,"mat-form-field",5)(58,"mat-select",30,31),C(60,"translate"),l(61,"mat-option",32),h(62,"open"),d(),l(63,"mat-option",33),h(64,"u23"),d(),l(65,"mat-option",34),h(66,"u22"),d(),l(67,"mat-option",35),h(68,"u21"),d(),l(69,"mat-option",36),h(70,"u20"),d(),l(71,"mat-option",37),h(72,"u19"),d(),l(73,"mat-option",38),h(74,"u18"),d(),l(75,"mat-option",39),h(76,"u17"),d()()(),l(77,"mat-form-field",5)(78,"mat-select",40,41),C(80,"translate"),l(81,"mat-option"),h(82,"--"),d(),p(83,mOe,2,2,"mat-option",15),d()()(),D(84,"mat-divider"),l(85,"p")(86,"button",42),h(87),C(88,"translate"),d(),h(89," \xa0 "),l(90,"button",43),M("click",function(){return E(e),I(b().onNoClick())}),h(91),C(92,"translate"),d()()()()()}if(2&t){const e=X(7),n=X(13),o=X(19),s=X(41),a=b();c(2),f("formGroup",a.options),c(2),O(a.title),c(2),N("placeholder",w(8,33,"general_name")),J("maxlength",a.clubNameLimit),c(4),We("",e.value.length," / ",a.clubNameLimit,""),c(2),N("placeholder",w(14,35,"general_short_name")),J("maxlength",a.clubNameShortLimit),c(4),We("",n.value.length," / ",a.clubNameShortLimit,""),c(2),N("placeholder",w(20,37,"general_foreign_name")),J("maxlength",a.refereeNameLimit),c(4),We("",o.value.length," / ",a.refereeNameLimit,""),c(2),N("placeholder",w(26,39,"general_region")),f("compareWith",a.compareFn),c(5),f("ngForOf",a.regions),c(2),N("placeholder",w(33,41,"general_type")),c(9),N("placeholder",w(42,43,"general_logo")),J("maxlength",250),c(5),We("",s.value.length," / ",250,""),c(3),f("hidden",!a.options.value.createMatchingTeam),c(2),N("placeholder",w(52,45,"general_gender")),f("compareWith",a.compareFn),c(8),N("placeholder",w(60,47,"general_age")),f("compareWith",a.compareFn),c(20),N("placeholder",w(80,49,"general_sport")),f("compareWith",a.compareFn),c(5),f("ngForOf",a.sports),c(3),f("disabled",a.options.invalid),c(1),O(w(88,51,"general_save")),c(4),O(w(92,53,"general_close"))}}function _Oe(t,i){1&t&&(l(0,"div",45),D(1,"mat-spinner",46),d())}function gOe(t,i){1&t&&(l(0,"div",45)(1,"mat-icon",47),h(2,"done"),d()())}function bOe(t,i){1&t&&(l(0,"div",45)(1,"mat-icon",48),h(2,"clear"),d()())}let vOe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.selectedFile=null}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new Jw),this.service=new Q(v.apiURLs.rootURL+"clubs",this.http),this.options=this.fb.group({name:[this.entity.name,ue.required],shortName:[this.entity.shortName,ue.required],foreignName:[this.entity.foreignName],region:[this.entity.region,ue.required],logo:[this.entity.logo],type:[this.entity.type],gender:"male",age:"open",sport:v.sports[0],createMatchingTeam:!1})}get regions(){return v.regions}get sports(){return v.sports}get title(){return this.translateService.instant(null==this.entity.id?"club_add_new":"club_edit")}get clubNameLimit(){return v.stringLimits.clubNameLimit}get clubNameShortLimit(){return v.stringLimits.clubNameShortLimit}compareFn(e,n){return!(!e||!n)&&(e.id&&n.id?e.id===n.id:e===n)}handleImageResponse(e){e&&(this.selectedFile=e,this.options.controls.logo.setValue(this.selectedFile.name))}handleImageUpload(){var e=this;return Za(function*(){if(!e.selectedFile)return;const n=new FormData;n.append("image",e.selectedFile,e.selectedFile.name),e.uploadService=new Q(v.apiURLs.rootURL+"images",e.http);try{const o=yield $F(e.uploadService.fileUpload(n));e.options.controls.logo.setValue(v.apiURLs.rootURL+"images/"+o.location.split("/")[1])}catch(o){console.log(o)}})()}onSave(){var e=this;return Za(function*(){e.onProgress=1,yield e.handleImageUpload(),e.entity.name=e.options.value.name,e.entity.shortName=e.options.value.shortName,e.entity.foreignName=e.options.value.foreignName,e.entity.region=e.options.value.region,e.entity.logo=e.options.value.logo,e.entity.type=e.options.value.type;const n=e,o={...e.entity,...e.options.value};(o.id?e.service.update(o):e.service.create(o)).subscribe(a=>{if(e.onProgress=2,e.options.value.createMatchingTeam){const r=new Q(v.apiURLs.rootURL+"teams",e.http),u=e.options.value.name,m=e.options.value.gender?.toLowerCase()||"Male",g=e.options.value.age?.toLowerCase()||"Open";let y=u;"male"===m&&"open"===g||("female"===m&&"open"===g?y=`${u} Women`:"male"===m&&"open"!==g?y=`${u} ${g.toUpperCase()}`:"female"===m&&"open"!==g&&(y=`${u} Women ${g.toUpperCase()}`));const S=new Zl;S.name=y,S.gender=e.options.value.gender,S.age=e.options.value.age,S.club=a,S.type=e.options.value.type,S.region=e.options.value.region,S.sport=e.options.value.sport,r.create(S).subscribe(x=>{e.onProgress=2},x=>{e.onProgress=3})}setTimeout(()=>n.inputOnSuccess(a),v.delaySuccessMessage)},a=>{e.onProgress=3,setTimeout(()=>n.inputOnClose(),v.delaySuccessMessage)})})()}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-club-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","shortName","name","shortName","matInput","","required","",3,"placeholder"],["shortName",""],["formControlName","foreignName","name","foreignName","matInput","",3,"placeholder"],["foreignName",""],["formControlName","region","name","region","required","",3,"compareWith","placeholder"],["region",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","type","name","type","required","",1,"capitalize",3,"placeholder"],["type",""],["value","clubs",1,"capitalize"],["value","nations",1,"capitalize"],[2,"display","flex","justify-content","space-between"],["formControlName","logo","name","logo","matInput","",3,"placeholder"],["logo",""],[3,"imageResponse"],["formControlName","createMatchingTeam","name","createMatchingTeam"],[3,"hidden"],["formControlName","gender","name","gender",1,"capitalize",3,"compareWith","placeholder"],["gender",""],["value","male",1,"capitalize"],["value","female",1,"capitalize"],["formControlName","age","name","age",1,"capitalize",3,"compareWith","placeholder"],["age",""],["value","open",1,"capitalize"],["value","u23",1,"capitalize"],["value","u22",1,"capitalize"],["value","u21",1,"capitalize"],["value","u20",1,"capitalize"],["value","u19",1,"capitalize"],["value","u18",1,"capitalize"],["value","u17",1,"capitalize"],["formControlName","sport","name","sport","required","",3,"compareWith","placeholder"],["sport",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,fOe,93,55,"div",0),p(1,_Oe,2,0,"div",1),p(2,gOe,3,0,"div",1),p(3,bOe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,Nd,Pd,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,ut,gt,Ni,zt,wn,on,Tn,Ft,Gt,jF,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),rL=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-club-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-club-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,vOe]})}return t})();const yOe=["regionsSelect"];function COe(t,i){if(1&t){const e=F();l(0,"mat-chip",5),M("removed",function(){const s=E(e).$implicit;return I(b().removeSingleFilter(s,"RG"))}),h(1),l(2,"mat-icon",6),h(3,"cancel"),d()()}if(2&t){const e=i.$implicit;N("matTooltip",e.name),c(1),T(" ",e.name," ")}}function wOe(t,i){if(1&t){const e=F();l(0,"mat-chip",7),M("click",function(){return E(e),I(b().onResetClick())}),h(1),C(2,"translate"),d()}2&t&&(c(1),T(" ",w(2,1,"general_reset")," "))}function SOe(t,i){if(1&t&&(l(0,"mat-option",12),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function TOe(t,i){if(1&t){const e=F();l(0,"div")(1,"mat-form-field",8)(2,"mat-select",9,10),M("valueChange",function(o){return E(e),I(b().selectedRegions=o)})("selectionChange",function(){return E(e),I(b().onFilter())}),C(4,"translate"),p(5,SOe,2,2,"mat-option",11),d()()()}if(2&t){const e=b();c(2),N("placeholder",w(4,4,"general_regions")),f("value",e.selectedRegions)("compareWith",e.compareFn),c(3),f("ngForOf",e.regions)}}let DOe=(()=>{class t{constructor(e){this.filterService=e,this.onResetFilters=new W,this.onFilterdClubs=new W,this.regions=[],this.selectedRegions=[],this.panelOpenState=!1}ngOnInit(){}get showResetButton(){return!!(Array.isArray(this.selectedRegions)&&this.selectedRegions.length>0)}ngOnChanges(e){e.clubs&&e.clubs.currentValue&&e.clubs.previousValue&&!Object.is(e.clubs.currentValue,e.clubs.previousValue)&&this.onFilter()}ngAfterContentInit(){this.getSessionStorage(),this.onFilter()}onFilter(){let e=[];for(let n of this.clubs)this.filterService.shouldAcceptTargetBy(n,this.selectedRegions,"region",this.shouldAcceptClubByRegion)&&e.push(n);this.initFilterOptions(this.clubs),this.setSessionStorage(),this.onFilterdClubs.emit(e)}shouldAcceptClubByRegion(e,n){return!(!e?.region||n.id!==e.region.id)}initFilterOptions(e){this.regions=[];let n=[];e&&e.length>0&&e.forEach(o=>{o.region?.id&&-1===n.findIndex(s=>+o.region.id==s)&&(this.regions.push(o.region),this.regions.sort(xi("name")),n.push(o.region.id))})}panelExpanded(e){this.panelOpenState=!!e,sessionStorage.setItem("isFilterExpanded",JSON.stringify(this.panelOpenState)),this.setSessionStorage()}getSessionStorage(){let e=JSON.parse(sessionStorage.getItem("filterStorageClubs")??"{}");0!==Object.keys(e).length&&(this.panelOpenState=e.panelOpenState,this.selectedRegions=e.selectedRegions)}setSessionStorage(){sessionStorage.setItem("filterStorageClubs",JSON.stringify({panelOpenState:this.panelOpenState||!1,selectedRegions:this.selectedRegions||[]}))}removeSingleFilter(e,n){"RG"===n&&(this.filterService.removeElementFromArray(e,this.selectedRegions),this.regionsSelect.writeValue(this.selectedRegions)),this.onFilter()}onResetClick(){this.selectedRegions=[],this.panelOpenState=!1,this.setSessionStorage(),this.onResetFilters.emit()}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ur))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-clubs-filter"]],viewQuery:function(n,o){if(1&n&&ne(yOe,5),2&n){let s;G(s=z())&&(o.regionsSelect=s.first)}},inputs:{clubs:"clubs"},outputs:{onResetFilters:"onResetFilters",onFilterdClubs:"onFilterdClubs"},standalone:!0,features:[fe,Z],decls:10,vars:6,consts:[[2,"margin","10px",3,"expanded","opened","closed"],[2,"align-items","center"],["color","accent","selected","",3,"matTooltip","removed",4,"ngFor","ngForOf"],["color","grey","selected","","matTooltip","reset","class","reset",3,"click",4,"ngIf"],["matExpansionPanelContent",""],["color","accent","selected","",3,"matTooltip","removed"],["matChipRemove",""],["color","grey","selected","","matTooltip","reset",1,"reset",3,"click"],[1,"filter"],["multiple","",3,"value","compareWith","placeholder","valueChange","selectionChange"],["regionsSelect",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,o){1&n&&(l(0,"mat-expansion-panel",0),M("opened",function(){return o.panelExpanded(!0)})("closed",function(){return o.panelExpanded(!1)}),l(1,"mat-expansion-panel-header")(2,"mat-panel-title",1),h(3),C(4,"translate"),l(5,"mat-chip-list"),p(6,COe,4,2,"mat-chip",2),d()(),l(7,"mat-panel-description"),p(8,wOe,3,3,"mat-chip",3),d()(),p(9,TOe,6,6,"ng-template",4),d()),2&n&&(f("expanded",o.panelOpenState),c(3),T(" ",w(4,4,"general_filtering"),"\xa0\xa0 "),c(3),f("ngForOf",o.selectedRegions),c(2),f("ngIf",o.showResetButton))},dependencies:[sa,oa,Ua,$a,Rr,Ha,Bd,Ld,Br,Fd,ce,qe,le,ki,mo,Me,Oe,ut,gt,on,Tn,Ft,Gt,_e,we],styles:[".filter[_ngcontent-%COMP%]{margin:10px}.reset[_ngcontent-%COMP%]{cursor:pointer}.mat-expansion-panel-header-description[_ngcontent-%COMP%]{justify-content:right}"]})}return t})();function MOe(t,i){if(1&t){const e=F();l(0,"app-clubs-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdClubs",function(o){return E(e),I(b().onFilterdClubs(o))}),d()}2&t&&f("clubs",b().clubs)}function xOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function EOe(t,i){if(1&t&&(l(0,"td",26),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function IOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function OOe(t,i){if(1&t&&(l(0,"td",26),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function ROe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_short_name")," "))}function kOe(t,i){if(1&t&&(l(0,"td",26),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.shortName," ")}}function AOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function POe(t,i){if(1&t&&(l(0,"td",26),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function NOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function FOe(t,i){if(1&t&&(l(0,"td",26),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.region?e.region.name:""," ")}}function LOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_logo")," "))}function BOe(t,i){if(1&t&&(l(0,"mat-icon",31),h(1," picture_in_picture "),d()),2&t){b();const e=X(5),n=X(7);f("ngbPopover",e)("popoverTitle",n)}}function VOe(t,i){if(1&t&&(l(0,"mat-icon",32),h(1," picture_in_picture "),d()),2&t){b();const e=X(5),n=X(7);f("ngbPopover",e)("popoverTitle",n)}}function HOe(t,i){if(1&t&&(l(0,"div")(1,"div"),D(2,"app-image-preview",33),d()()),2&t){const e=b().$implicit;c(2),N("imageUrl",e.logo)}}function UOe(t,i){1&t&&h(0,"Logo")}function $Oe(t,i){if(1&t&&(l(0,"td",26)(1,"span"),p(2,BOe,2,2,"mat-icon",27),p(3,VOe,2,2,"mat-icon",28),d(),p(4,HOe,3,1,"ng-template",null,29,Nt),p(6,UOe,1,0,"ng-template",null,30,Nt),d()),2&t){const e=i.$implicit;c(2),f("ngIf",e.logo),c(1),f("ngIf",!e.logo)}}function jOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function GOe(t,i){if(1&t&&(l(0,"td",34),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.type," ")}}function zOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function WOe(t,i){if(1&t){const e=F();l(0,"td",26)(1,"span")(2,"button",35),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function qOe(t,i){1&t&&(l(0,"th",25),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function YOe(t,i){if(1&t){const e=F();l(0,"td",26)(1,"span")(2,"button",35),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function QOe(t,i){1&t&&D(0,"tr",36)}function ZOe(t,i){1&t&&D(0,"tr",37)}function KOe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,xOe,3,3,"th",12),p(3,EOe,2,1,"td",13),P(),A(4,14),p(5,IOe,3,3,"th",12),p(6,OOe,2,1,"td",13),P(),A(7,15),p(8,ROe,3,3,"th",12),p(9,kOe,2,1,"td",13),P(),A(10,16),p(11,AOe,3,3,"th",12),p(12,POe,2,1,"td",13),P(),A(13,17),p(14,NOe,3,3,"th",12),p(15,FOe,2,1,"td",13),P(),A(16,18),p(17,LOe,3,3,"th",12),p(18,$Oe,8,2,"td",13),P(),A(19,19),p(20,jOe,3,3,"th",12),p(21,GOe,2,1,"td",20),P(),A(22,21),p(23,zOe,3,3,"th",12),p(24,WOe,5,0,"td",13),P(),A(25,22),p(26,qOe,3,3,"th",12),p(27,YOe,5,0,"td",13),P(),p(28,QOe,1,0,"tr",23),p(29,ZOe,1,0,"tr",24),d()),2&t){const e=b();f("dataSource",e.dataSource),c(28),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function XOe(t,i){1&t&&(l(0,"div",38),D(1,"mat-spinner",39),d())}function JOe(t,i){1&t&&(l(0,"div",38)(1,"mat-icon",40),h(2,"done"),d()())}function eRe(t,i){1&t&&(l(0,"div",38)(1,"mat-icon",41),h(2,"clear"),d()())}const tRe=function(){return[5,10,25,100]};let nRe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","name","shortName","foreignName","region","logo","type","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"clubs",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.clubs=e,this.updateClubsView(this.clubs)})}get dataSize(){return 0}updateClubsView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdClubs(e){this.updateClubsView(e)}onResetFilters(){this.updateClubsView(this.clubs)}openEditDialog(e){null==e&&(e=new Jw);const n=this.updateDialog.open(rL,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-clubs-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"clubs","onResetFilters","onFilterdClubs",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"clubs","onResetFilters","onFilterdClubs"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","shortName"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","logo"],["matColumnDef","type"],["mat-cell","","class","capitalize",4,"matCellDef"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","mat-24","color","primary","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","popoverTitle",4,"ngIf"],["class","mat-24","color","warn","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",3,"ngbPopover","popoverTitle",4,"ngIf"],["S_POP",""],["S_POP_T",""],["color","primary","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",1,"mat-24",3,"ngbPopover","popoverTitle"],["color","warn","popoverClass","POP_C","triggers","mouseenter:mouseleave","animation","true","placement","right",1,"mat-24",3,"ngbPopover","popoverTitle"],["width","150px","height","150px",3,"imageUrl"],["mat-cell","",1,"capitalize"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,MOe,1,1,"app-clubs-filter",1),l(2,"div",2),p(3,KOe,30,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,XOe,2,0,"div",8),p(10,JOe,3,0,"div",8),p(11,eRe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,tRe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,DOe,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Me,Oe,Ul,qw,Ne,Re,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();class eS{constructor(){this.id=null,this.type="regular season",this.season=null}}function iRe(t,i){if(1&t&&(l(0,"mat-option",27),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.seasonYear+" | "+e.competition.name)}}function oRe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),l(9,"mat-option",8),h(10,"regular season"),d(),l(11,"mat-option",9),h(12,"relegation"),d(),l(13,"mat-option",10),h(14,"promotion"),d(),l(15,"mat-option",11),h(16,"group stage"),d(),l(17,"mat-option",12),h(18,"knock out"),d(),l(19,"mat-option",13),h(20,"1/256"),d(),l(21,"mat-option",14),h(22,"1/128"),d(),l(23,"mat-option",15),h(24,"1/64"),d(),l(25,"mat-option",16),h(26,"1/32"),d(),l(27,"mat-option",17),h(28,"1/16"),d(),l(29,"mat-option",18),h(30,"1/8"),d(),l(31,"mat-option",19),h(32,"1/4"),d(),l(33,"mat-option",20),h(34,"1/2"),d(),l(35,"mat-option",21),h(36,"final"),d()()(),l(37,"mat-form-field",5)(38,"mat-select",22,23),C(40,"translate"),l(41,"mat-option"),h(42,"--"),d(),p(43,iRe,2,2,"mat-option",24),d()(),D(44,"mat-divider"),l(45,"p")(46,"button",25),h(47),C(48,"translate"),d(),h(49," \xa0"),l(50,"button",26),M("click",function(){return E(e),I(b().onNoClick())}),h(51),C(52,"translate"),d()()()()()}if(2&t){const e=b();c(2),f("formGroup",e.options),c(2),O(e.title),c(2),N("placeholder",w(8,10,"general_type")),f("compareWith",e.compareFn),c(32),N("placeholder",w(40,12,"general_season")),f("compareWith",e.compareFn),c(5),f("ngForOf",e.seasons),c(3),f("disabled",e.options.invalid),c(1),T(" ",w(48,14,"general_save")," "),c(4),T(" ",w(52,16,"general_close")," ")}}function sRe(t,i){1&t&&(l(0,"div",28),D(1,"mat-spinner",29),d())}function aRe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",30),h(2,"done"),d()())}function rRe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",31),h(2,"clear"),d()())}let lRe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0,this.seasons=[]}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new eS),this.service=new Q(v.apiURLs.rootURL+"stages",this.http),this.options=this.fb.group({type:[this.entity.type,ue.required],season:[this.entity.season,ue.required]}),this.seasonService=new Q(v.apiURLs.rootURL+"seasons",this.http),this.seasonService.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.seasons=e})}get title(){return this.translateService.instant(null==this.entity.id?"stage_add_new":"stage_edit")}get stageNameLimit(){return v.stringLimits.stageNameLimit}onSave(){this.onProgress=1,this.entity.type=this.options.value.type,this.entity.season=this.options.value.season;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stage-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","type","name","type",1,"capitalize",3,"compareWith","placeholder"],["type",""],["value","regular season",1,"capitalize"],["value","relegation",1,"capitalize"],["value","promotion",1,"capitalize"],["value","group stage",1,"capitalize"],["value","knock out",1,"capitalize"],["value","1/256"],["value","1/128"],["value","1/64"],["value","1/32"],["value","1/16"],["value","1/8"],["value","1/4"],["value","1/2"],["value","final",1,"capitalize"],["formControlName","season","name","season","required","",3,"compareWith","placeholder"],["season",""],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,oRe,53,18,"div",0),p(1,sRe,2,0,"div",1),p(2,aRe,3,0,"div",1),p(3,rRe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Mt,Bt,Vn,vt,Cn,ut,gt,on,Tn,Ft,Gt,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),lL=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(e){this.dialogRef.close(e)}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stage-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-stage-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,lRe]})}return t})();function cRe(t,i){if(1&t){const e=F();l(0,"app-stages-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdStages",function(o){return E(e),I(b().onFilterdStages(o))}),d()}2&t&&f("stages",b().stages)}function dRe(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function uRe(t,i){if(1&t&&(l(0,"td",22),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function hRe(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function pRe(t,i){if(1&t&&(l(0,"td",23),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.type," ")}}function mRe(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_season")," "))}function fRe(t,i){if(1&t&&(l(0,"td",22),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.season?e.season.seasonYear+" | "+e.season.competition.name:""," ")}}function _Re(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function gRe(t,i){if(1&t){const e=F();l(0,"td",22)(1,"span")(2,"button",24),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",5),h(4,"create"),d()()()()}}function bRe(t,i){1&t&&(l(0,"th",21),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function vRe(t,i){if(1&t){const e=F();l(0,"td",22)(1,"span")(2,"button",24),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",5),h(4,"delete"),d()()()()}}function yRe(t,i){1&t&&D(0,"tr",25)}function CRe(t,i){1&t&&D(0,"tr",26)}function wRe(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,dRe,3,3,"th",12),p(3,uRe,2,1,"td",13),P(),A(4,14),p(5,hRe,3,3,"th",12),p(6,pRe,2,1,"td",15),P(),A(7,16),p(8,mRe,3,3,"th",12),p(9,fRe,2,1,"td",13),P(),A(10,17),p(11,_Re,3,3,"th",12),p(12,gRe,5,0,"td",13),P(),A(13,18),p(14,bRe,3,3,"th",12),p(15,vRe,5,0,"td",13),P(),p(16,yRe,1,0,"tr",19),p(17,CRe,1,0,"tr",20),d()),2&t){const e=b();f("dataSource",e.dataSource),c(16),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function SRe(t,i){1&t&&(l(0,"div",27),D(1,"mat-spinner",28),d())}function TRe(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",29),h(2,"done"),d()())}function DRe(t,i){1&t&&(l(0,"div",27)(1,"mat-icon",30),h(2,"clear"),d()())}const MRe=function(){return[5,10,25,100]};let xRe=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","type","season","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"stages",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.stages=e,this.updateStagesView(this.stages)})}get dataSize(){return 0}updateStagesView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdStages(e){this.updateStagesView(e)}onResetFilters(){this.updateStagesView(this.stages)}openEditDialog(e){null==e&&(e=new eS);const n=this.updateDialog.open(lL,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.type,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-stages-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:12,vars:10,consts:[[1,"menu-capture"],[3,"stages","onResetFilters","onFilterdStages",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],[3,"stages","onResetFilters","onFilterdStages"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","","class","capitalize",4,"matCellDef"],["matColumnDef","season"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"capitalize"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0),p(1,cRe,1,1,"app-stages-filter",1),l(2,"div",2),p(3,wRe,18,3,"table",3),l(4,"button",4),M("click",function(){return o.openEditDialog()}),l(5,"mat-icon",5),h(6,"add"),d()()(),D(7,"mat-paginator",6,7),d(),p(9,SRe,2,0,"div",8),p(10,TRe,3,0,"div",8),p(11,DRe,3,0,"div",8)),2&n&&(c(1),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(9,MRe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();function ERe(t,i){if(1&t&&(l(0,"mat-option",18),h(1),d()),2&t){const e=i.$implicit;f("value",e.id+" - "+((null==e.position?null:e.position.name)||"")+" - "+e.name),c(1),Ma(" ",e.id," - ",(null==e.position?null:e.position.name)||""," - ",e.name," ")}}function IRe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",6)(2,"form",7)(3,"p",8)(4,"mat-form-field",9)(5,"mat-label"),h(6),C(7,"translate"),d(),D(8,"input",10),C(9,"translate"),l(10,"mat-autocomplete",null,11),p(12,ERe,2,4,"mat-option",12),C(13,"async"),d()(),l(14,"button",13),M("click",function(){return E(e),I(b().addPlayerTeam())}),l(15,"mat-icon",4),h(16,"add"),d()(),l(17,"button",14),M("click",function(){return E(e),I(b().savePlayerTeam())}),l(18,"mat-icon",4),h(19,"save"),d()()()(),l(20,"div",15)(21,"div",16),h(22),d(),l(23,"div",17),h(24),d()()()()}if(2&t){const e=X(11),n=b();c(6),O(w(7,7,"general_add_player")),c(2),N("placeholder",w(9,9,"general_player")),f("formControl",n.myControl)("matAutocomplete",e),c(4),f("ngForOf",w(13,11,n.filteredPlayers)),c(10),T(" ",n.entity.name," "),c(2),T(" Total Players:",n.getTeamInfo()," ")}}function ORe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function RRe(t,i){if(1&t&&(l(0,"td",32),h(1),d()),2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":""),c(1),T(" ",(null==e.player?null:e.player.id)||""," ")}}function kRe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_shirt_number")," "))}function ARe(t,i){if(1&t&&(l(0,"td",32),h(1),d()),2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":""),c(1),T(" ",(null==e.player?null:e.player.shirtNumber)||""," ")}}function PRe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function NRe(t,i){if(1&t&&(l(0,"td",32),h(1),d()),2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":""),c(1),T(" ",(null==e.player||null==e.player.region?null:e.player.region.name)||""," ")}}function FRe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_position")," "))}function LRe(t,i){if(1&t&&(l(0,"td",32),h(1),d()),2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":""),c(1),T(" ",(null==e.player||null==e.player.position?null:e.player.position.name)||"","")}}function BRe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function VRe(t,i){if(1&t&&(l(0,"td",32),h(1),d()),2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":""),c(1),T(" ",(null==e.player?null:e.player.name)||""," ")}}function HRe(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function URe(t,i){if(1&t){const e=F();l(0,"td",32)(1,"span")(2,"button",33),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s.player))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}if(2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":"")}}function $Re(t,i){1&t&&(l(0,"th",31),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_release")," "))}function jRe(t,i){if(1&t){const e=F();l(0,"td",32)(1,"span")(2,"button",33),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"cancel"),d()()()()}if(2&t){const e=i.$implicit;it("background-color",null!=e.team&&e.team.name?"#c0c0c0":"")}}function GRe(t,i){1&t&&D(0,"tr",34)}function zRe(t,i){1&t&&D(0,"tr",35)}function WRe(t,i){if(1&t&&(l(0,"table",19),A(1,20),p(2,ORe,3,3,"th",21),p(3,RRe,2,3,"td",22),P(),A(4,23),p(5,kRe,3,3,"th",21),p(6,ARe,2,3,"td",22),P(),A(7,24),p(8,PRe,3,3,"th",21),p(9,NRe,2,3,"td",22),P(),A(10,25),p(11,FRe,3,3,"th",21),p(12,LRe,2,3,"td",22),P(),A(13,26),p(14,BRe,3,3,"th",21),p(15,VRe,2,3,"td",22),P(),A(16,27),p(17,HRe,3,3,"th",21),p(18,URe,5,2,"td",22),P(),A(19,28),p(20,$Re,3,3,"th",21),p(21,jRe,5,2,"td",22),P(),p(22,GRe,1,0,"tr",29),p(23,zRe,1,0,"tr",30),d()),2&t){const e=b();f("dataSource",e.dataSource),c(22),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function qRe(t,i){1&t&&(l(0,"div",36),D(1,"mat-spinner",37),d())}function YRe(t,i){1&t&&(l(0,"div",36)(1,"mat-icon",38),h(2,"done"),d()())}function QRe(t,i){1&t&&(l(0,"div",36)(1,"mat-icon",39),h(2,"clear"),d()())}let ZRe=(()=>{class t{_filter(e){let n;return n=e.toLowerCase(),this.players.filter(o=>(o.id+" - "+o.position?.name+" - "+o.name).toLowerCase().includes(n))}constructor(e,n,o,s){this.http=e,this.updateDialog=n,this.snackBar=o,this.translateService=s,this.onProgress=0,this.newEntity=null,this.players=[],this.playersTeams=[],this.playerTempAddDelArr=[],this.columnsToDisplay=["id","position","name","shirtNumber","region","edit","delete"],this.myControl=new ji("")}compareFn(e,n){if(e&&n){if(e.id&&n.id&&e.id===n.id)return!0;if(e===n)return!0}return!1}fetchPlayers(){this.playerService=new Q(v.apiURLs.rootURL+"players",this.http),this.playerService.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0,this.players=e}),this.service=new Q(v.apiURLs.rootURL+"playerteams/"+this.entity.id,this.http),this.service.getAll(v.token,v.userId).subscribe(e=>{this.onProgress=0;const o={ATK:e.filter(a=>"ATK"===a.player.position?.name),DEF:e.filter(a=>"DEF"===a.player.position?.name),MID:e.filter(a=>"MID"===a.player.position?.name),GK:e.filter(a=>"GK"===a.player.position?.name),R:e.filter(a=>"ATK"!==a.player.position?.name&&"DEF"!==a.player.position?.name&&"MID"!==a.player.position?.name&&"GK"!==a.player.position?.name)},s=[...o.GK,...o.DEF,...o.MID,...o.ATK,...o.R];this.playersTeams=s,this.updatePlayersView(s)}),this.filteredPlayers=this.myControl.valueChanges.pipe(jt(""),Le(e=>this._filter(e||"")))}ngOnChanges(){this.onProgress=0,this.playerTempAddDelArr=[],null===this.newEntity&&(this.newEntity=new XF,this.newEntity.team=this.entity),this.fetchPlayers()}updatePlayersView(e){this.dataSource=new ke(e),this.dataSource.sortingDataAccessor=Sp,this.dataSource.sort=this.sort}get title(){return this.translateService.instant(null==this.entity.id?"playerteam_add_new":"playerteam_edit")}openEditDialog(e){let n=!1;null==e&&(e=new Wg,n=!0);const o=this.updateDialog.open(Gw,{width:"50%",data:e});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{s&&(n?(this.playerTempAddDelArr.push({player:s,team:this.entity}),this.savePlayerTeam()):this.ngOnChanges())})}openDeleteDialog(e){const n=this.playerTempAddDelArr.findIndex(o=>o.player?.name==e.player?.name);if(-1!=n)this.playerTempAddDelArr.splice(n,1),this.updatePlayersView([...this.playersTeams,...this.playerTempAddDelArr]);else if(this.service=new Q(v.apiURLs.rootURL+"playerteams",this.http),null!=e){const o=this.updateDialog.open(en,{data:{title:"Are you sure you want to release?",content:e.player?.name,refId:e.player?.id}});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{!0===s?this.service.delete(e.player?.id,{teamId:e.teamId||null}).subscribe(a=>{if(a.Result===v.apiSuccessMsg){const r=this.playersTeams.findIndex(u=>u.player?.id==e.player?.id);this.playersTeams.splice(r,1),this.updatePlayersView([...this.playerTempAddDelArr,...this.playersTeams]),this.snackBar.open(e.player?.name+" Released","",{duration:v.snackBarDuration})}}):this.onProgress=0})}}getTeamInfo(){return this.playersTeams.length+this.playerTempAddDelArr.length}addPlayerTeam(){const e=this.myControl.value?.split(" - ")??[];let n={player:this.players.find(a=>a.id===+e[0]),team:this.entity},o=this.playerTempAddDelArr.find(a=>a.player.id===+e[0]),s=this.playersTeams.find(a=>a.player?.id===+e[0]);null!=n.player&&!o&&!s&&(this.playerTempAddDelArr.push(n),this.updatePlayersView([...this.playerTempAddDelArr,...this.playersTeams]),this.myControl.setValue(""))}savePlayerTeam(){this.service=new Q(v.apiURLs.rootURL+"playerteams",this.http);const e=this;this.playerTempAddDelArr.length>0&&this.service.create(this.playerTempAddDelArr).subscribe(n=>{setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage),this.snackBar.open("New Players Saved","",{duration:v.snackBarDuration}),this.playerTempAddDelArr=[],this.ngOnChanges()},n=>{this.snackBar.open("FAILED TO SAVE PLAYERS","",{duration:v.snackBarDuration})})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-player-team-content"]],viewQuery:function(n,o){if(1&n&&ne(Nn,7),2&n){let s;G(s=z())&&(o.sort=s.first)}},inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:9,vars:5,consts:[[4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],["class","screen-centered",4,"ngIf"],[2,"margin","5px"],[1,"example-container"],[2,"margin-top","1em"],[1,"example-full-width","player-team-content-autoform",2,"width","20em"],["type","text","aria-label","Number","matInput","",3,"placeholder","formControl","matAutocomplete"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent",2,"margin-left","1em",3,"click"],["mat-raised-button","","color","primary",1,"",3,"click"],[2,"display","flex","justify-content","space-between"],[2,"text-align","start"],[2,"text-align","end"],[3,"value"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"background-color",4,"matCellDef"],["matColumnDef","shirtNumber"],["matColumnDef","region"],["matColumnDef","position"],["matColumnDef","name"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,IRe,25,13,"div",0),l(1,"div",1),p(2,WRe,24,3,"table",2),d(),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()(),p(6,qRe,2,0,"div",5),p(7,YRe,3,0,"div",5),p(8,QRe,3,0,"div",5)),2&n&&(f("ngIf",0==o.onProgress),c(2),f("ngIf",0==o.onProgress),c(4),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,mr,xt,Vt,Lt,Mt,Bt,wr,wl,Ds,ut,gt,Tr,zt,wn,ql,Ad,Wl,Ft,Gt,Ne,Re,Me,Oe,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,je,Fe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}th.mat-header-cell[_ngcontent-%COMP%]:last-of-type, td.mat-cell[_ngcontent-%COMP%]:last-of-type, td.mat-footer-cell[_ngcontent-%COMP%]:last-of-type{width:5em;padding:0%!important}"]})}return t})();function KRe(t,i){if(1&t){const e=F();l(0,"app-teams-filter",9),M("onResetFilters",function(){return E(e),I(b().onResetFilters())})("onFilterdTeams",function(o){return E(e),I(b().onFilterdTeams(o))}),d()}2&t&&f("teams",b().teams)}function XRe(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function JRe(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function eke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function tke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function nke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_gender")," "))}function ike(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.gender," ")}}function oke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_age")," "))}function ske(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.age," ")}}function ake(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_club")," "))}function rke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",(null==e.club?null:e.club.name)||""," ")}}function lke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_sport")," "))}function cke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",(null==e.sport?null:e.sport.name)||""," ")}}function dke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_short_name")," "))}function uke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.shortName," ")}}function hke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_foreign_name")," "))}function pke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.foreignName," ")}}function mke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_region")," "))}function fke(t,i){if(1&t&&(l(0,"td",30),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",(null==e.region?null:e.region.name)||""," ")}}function _ke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_type")," "))}function gke(t,i){if(1&t&&(l(0,"td",31),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.type," ")}}function bke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_player")," "))}function vke(t,i){1&t&&(l(0,"mat-icon",35),h(1," perm_identity "),d())}function yke(t,i){1&t&&(l(0,"mat-icon",36),h(1," perm_identity "),d())}function Cke(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openPlayersEditDialog(s))}),p(3,vke,2,0,"mat-icon",33),p(4,yke,2,0,"mat-icon",34),d()()()}if(2&t){const e=i.$implicit;c(3),f("ngIf",e.playerTeam.length>0),c(1),f("ngIf",!e.playerTeam.length>0)}}function wke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function Ske(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",37),h(4,"create"),d()()()()}}function Tke(t,i){1&t&&(l(0,"th",29),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function Dke(t,i){if(1&t){const e=F();l(0,"td",30)(1,"span")(2,"button",32),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",37),h(4,"delete"),d()()()()}}function Mke(t,i){1&t&&D(0,"tr",38)}function xke(t,i){1&t&&D(0,"tr",39)}function Eke(t,i){if(1&t&&(l(0,"table",10),A(1,11),p(2,XRe,3,3,"th",12),p(3,JRe,2,1,"td",13),P(),A(4,14),p(5,eke,3,3,"th",12),p(6,tke,2,1,"td",13),P(),A(7,15),p(8,nke,3,3,"th",12),p(9,ike,2,1,"td",16),P(),A(10,17),p(11,oke,3,3,"th",12),p(12,ske,2,1,"td",16),P(),A(13,18),p(14,ake,3,3,"th",12),p(15,rke,2,1,"td",13),P(),A(16,19),p(17,lke,3,3,"th",12),p(18,cke,2,1,"td",13),P(),A(19,20),p(20,dke,3,3,"th",12),p(21,uke,2,1,"td",13),P(),A(22,21),p(23,hke,3,3,"th",12),p(24,pke,2,1,"td",13),P(),A(25,22),p(26,mke,3,3,"th",12),p(27,fke,2,1,"td",13),P(),A(28,23),p(29,_ke,3,3,"th",12),p(30,gke,2,1,"td",16),P(),A(31,24),p(32,bke,3,3,"th",12),p(33,Cke,5,2,"td",13),P(),A(34,25),p(35,wke,3,3,"th",12),p(36,Ske,5,0,"td",13),P(),A(37,26),p(38,Tke,3,3,"th",12),p(39,Dke,5,0,"td",13),P(),p(40,Mke,1,0,"tr",27),p(41,xke,1,0,"tr",28),d()),2&t){const e=b();f("dataSource",e.dataSource),c(40),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function Ike(t,i){1&t&&(l(0,"div",40),D(1,"mat-spinner",41),d())}function Oke(t,i){1&t&&(l(0,"div",40)(1,"mat-icon",42),h(2,"done"),d()())}function Rke(t,i){1&t&&(l(0,"div",40)(1,"mat-icon",43),h(2,"clear"),d()())}function kke(t,i){1&t&&D(0,"app-player-team-content",44),2&t&&f("entity",b().data)}const Ake=function(){return[5,10,25,100]};let Pke=(()=>{class t{constructor(e,n,o){this.http=e,this.updateDialog=n,this.snackBar=o,this.onProgress=0,this.columnsToDisplay=["id","name","gender","age","club","sport","region","type","player"]}get dataSize(){return 0}updateTeamsView(e){this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}onFilterdTeams(e){this.updateTeamsView(e)}onResetFilters(){this.updateTeamsView(this.teams)}displayAdmin(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"teams",this.http),this.service.getAllObservable(v.token,v.userId,"&playerTeam=true").subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator,this.teams=e,this.updateTeamsView(this.teams)})}ngOnInit(){this.onProgress=0,v.userType===Be.ACCOUNT_TYPE_ADMIN&&this.displayAdmin()}get userType(){return v.userType}openEditDialog(e){null==e&&(e=new Zl);const n=this.updateDialog.open(Zw,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}openPlayersEditDialog(e){null==e&&(e=new Zl),this.data=e}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openGenericEditDialog(e,n,o){const s=this.updateDialog.open(o,{width:"50%",data:e});s.componentInstance.dialogRef=s,s.afterClosed().subscribe({next:a=>{a&&(this.ngOnInit(),this.onProgress=0)},error:()=>{}})}ngOnDestroy(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-scheduling-players-screen"]],viewQuery:function(n,o){if(1&n&&(ne(Ct,7),ne(Nn,7)),2&n){let s;G(s=z())&&(o.paginator=s.first),G(s=z())&&(o.sort=s.first)}},standalone:!0,features:[Z],decls:11,vars:11,consts:[[2,"display","flex","height","100%","justify-content","space-around","align-items","center"],[1,"menu-capture"],["style","width: 100%;",3,"teams","onResetFilters","onFilterdTeams",4,"ngIf"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["style","background-color: white; height: 92%;","class","menu-capture",3,"entity","inputOnClose","inputOnSuccess",4,"ngIf"],[2,"width","100%",3,"teams","onResetFilters","onFilterdTeams"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","gender"],["mat-cell","","class","capitalize",4,"matCellDef"],["matColumnDef","age"],["matColumnDef","club"],["matColumnDef","sport"],["matColumnDef","shortName"],["matColumnDef","foreignName"],["matColumnDef","region"],["matColumnDef","type"],["matColumnDef","player"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"capitalize"],["mat-icon-button","",3,"click"],["class","mat-24","color","primary",4,"ngIf"],["class","mat-24","color","warn",4,"ngIf"],["color","primary",1,"mat-24"],["color","warn",1,"mat-24"],[1,"mat-24"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"],[1,"menu-capture",2,"background-color","white","height","92%",3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,KRe,1,1,"app-teams-filter",2),l(3,"div",3),p(4,Eke,42,3,"table",4),d(),D(5,"mat-paginator",5,6),d(),p(7,Ike,2,0,"div",7),p(8,Oke,3,0,"div",7),p(9,Rke,3,0,"div",7),p(10,kke,1,1,"app-player-team-content",8),d()),2&n&&(c(2),f("ngIf",o.dataSource),c(2),f("ngIf",0==o.onProgress),c(1),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(10,Ake)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress),c(1),f("ngIf",o.data))},dependencies:[ce,le,JF,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,ZRe,_e,we],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff;height:70%}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow-y:none!important;height:100%;justify-content:center;align-items:center;width:45%}"]})}return t})();function Nke(t,i){if(1&t){const e=F();l(0,"mat-card",20),D(1,"mat-card-header",21),l(2,"mat-card-content",22)(3,"div"),h(4),d(),l(5,"div",16)(6,"button",17),M("click",function(){const s=E(e).$implicit,a=b(2).$implicit;return I(b(3).openTeamEditDialog({club:a,team:s}))}),l(7,"mat-icon"),h(8,"edit"),d()(),l(9,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(5).openTeamDeleteDialog(s))}),l(10,"mat-icon",18),h(11,"delete"),d()()()()()}if(2&t){const e=i.$implicit;c(4),mv("",e.name," ",e.gender," ",e.age," ",e.sport.name,"")}}function Fke(t,i){if(1&t){const e=F();p(0,Nke,12,4,"mat-card",19),l(1,"button",12),M("click",function(){E(e);const o=b().$implicit;return I(b(3).addItemTeams({club:o}))}),h(2," Add Team "),d()}2&t&&f("ngForOf",b().$implicit.teams)}function Lke(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",13)(1,"mat-expansion-panel-header")(2,"mat-panel-title",14),h(3),d(),l(4,"mat-panel-description",15)(5,"div",16)(6,"button",17),M("click",function(){const s=E(e).$implicit,a=b(2).$implicit;return I(b().openClubEditDialog({club:s,region:a}))}),l(7,"mat-icon"),h(8,"edit"),d()(),l(9,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(3).openClubDeleteDialog(s))}),l(10,"mat-icon",18),h(11,"delete"),d()()()()(),p(12,Fke,3,1,"ng-template",10),d()}if(2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),T(" ",e.name," ")}}function Bke(t,i){if(1&t){const e=F();p(0,Lke,13,2,"mat-expansion-panel",11),l(1,"button",12),M("click",function(){E(e);const o=b().$implicit;return I(b().addItemClubs({region:o}))}),h(2," Add Club "),d()}2&t&&f("ngForOf",b().$implicit.clubs)}function Vke(t,i){if(1&t&&(l(0,"mat-expansion-panel",6)(1,"mat-expansion-panel-header",7)(2,"mat-panel-title"),D(3,"img",8),l(4,"span",9),h(5),d()()(),p(6,Bke,3,1,"ng-template",10),d()),2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),N("src",e.flag,kt),c(2),O(e.name)}}function Hke(t,i){if(1&t){const e=F();l(0,"button",23),M("click",function(){return E(e),I(b().addItemClubs())}),l(1,"mat-icon",18),h(2,"add"),d()()}}function Uke(t,i){1&t&&(l(0,"div",24),D(1,"mat-spinner",25),d())}function $ke(t,i){1&t&&(l(0,"div",24)(1,"mat-icon",26),h(2,"done"),d()())}function jke(t,i){1&t&&(l(0,"div",24)(1,"mat-icon",27),h(2,"clear"),d()())}let Gke=(()=>{class t{injectFlags(e){let n=[];return e.forEach(o=>{let s="";o?.name&&(s=xp.findFlagUrlByCountryName(o.name)),""==s&&(s="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Flag_of_FIFA.svg/640px-Flag_of_FIFA.svg.png"),o=Object.assign({flag:s},o),n.push(o)}),n}addItemClubs(e){const n=new Jw;e?.region?.id&&(n.region={id:e.region.id,name:e.region.name}),this.openClubEditDialog(n)}addItemTeams(e){const n=new Zl;e.club?.id&&(n.club=e.club),this.openTeamEditDialog(n)}openClubEditDialog(e){e.club&&e?.region?.id&&(e.club.region={id:e.region.id,name:e.region.name},e=e.club),this.service=new Q(v.apiURLs.rootURL+"clubs",this.http),this.openGenericEditDialog(e,"club",rL)}openClubDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"clubs",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"clubs"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openTeamEditDialog(e){e.team&&(e.team.club={id:e.club.id,name:e.club.name},e=e.team),this.service=new Q(v.apiURLs.rootURL+"teams",this.http),this.openGenericEditDialog(e,"team",Zw)}openTeamDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"teams",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}constructor(e,n,o,s,a,r){this.generalService=e,this.router=n,this.http=o,this.updateDialog=s,this.snackBar=a,this.translateService=r,this.onProgress=0,this.Regions=[]}displayAdmin(){this.service=new Q(v.apiURLs.rootURL+"scheduling/clubs",this.http),this.service.getAllObservable(v.token,v.userId,void 0).subscribe({next:n=>{n?this.Regions=this.injectFlags(n.filter(o=>o.clubs.length>0)):this.onProgress=3},error:n=>{console.log(n)}})}ngOnInit(){this.onProgress=0,v.userType===Be.ACCOUNT_TYPE_ADMIN&&this.displayAdmin()}get userType(){return v.userType}openGenericEditDialog(e,n,o){const s=this.updateDialog.open(o,{width:"50%",data:e});s.componentInstance.dialogRef=s,s.afterClosed().subscribe({next:a=>{a&&(this.ngOnInit(),this.onProgress=0)},error:()=>{}})}ngOnDestroy(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(_i),_(Ee),_(Wt),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-scheduling-clubs-screen"]],standalone:!0,features:[Z],decls:8,vars:5,consts:[[1,"menu-capture"],[1,"",2,"height","100%","width","45%"],[2,"backdrop-filter","blur(15px)"],["hideToggle","true","style","margin: 1em",3,"expanded",4,"ngFor","ngForOf"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],["hideToggle","true",2,"margin","1em",3,"expanded"],[2,"justify-content","space-between"],["width","32px","triggers","mouseenter:mouseleave","animation","true","placement","right",2,"margin","0px 0.6em",3,"src"],[2,"font-weight","500","text-transform","uppercase"],["matExpansionPanelContent",""],["hideToggle","true",3,"expanded",4,"ngFor","ngForOf"],["mat-button","",2,"display","block","margin","auto",3,"click"],["hideToggle","true",3,"expanded"],[2,"color","blue"],[2,"flex-grow","0 !important","margin-right","0px"],[2,"display","flex"],["mat-icon-button","",3,"click"],[1,"mat-24"],["style","margin: 1em;text-transform: capitalize;",4,"ngFor","ngForOf"],[2,"margin","1em","text-transform","capitalize"],[2,"display","flex","justify-content","space-between"],[2,"display","flex","justify-content","space-between","align-items","center","padding","0px 5px"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2),p(3,Vke,7,3,"mat-expansion-panel",3),d()()(),p(4,Hke,3,0,"button",4),p(5,Uke,2,0,"div",5),p(6,$ke,3,0,"div",5),p(7,jke,3,0,"div",5)),2&n&&(c(3),f("ngForOf",o.Regions),c(1),f("ngIf",1===o.userType),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,sa,oa,Ua,$a,Rr,Ha,Ne,Re,Me,Oe,ta,Fa,hd,ud,je,Fe],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow-y:scroll!important;height:100%;width:100%;justify-content:center;align-items:center}"]})}return t})();function zke(t,i){if(1&t&&D(0,"img",20),2&t){const e=b().$implicit,n=b(2);N("matTooltip",e.sport.name),f("src",n.matchesService.getSportIcon(e.sport.name),kt)}}function Wke(t,i){if(1&t){const e=F();l(0,"mat-card",24),D(1,"mat-card-header",25),l(2,"mat-card-content",26)(3,"div"),h(4),d(),l(5,"div",16)(6,"button",17),M("click",function(){const s=E(e).$implicit,a=b(2).$implicit;return I(b(4).openStageEditDialog({stage:s,season:a}))}),l(7,"mat-icon"),h(8,"edit"),d()(),l(9,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(6).openStageDeleteDialog(s))}),l(10,"mat-icon",18),h(11,"delete"),d()()()()()}if(2&t){const e=i.$implicit;c(4),O(e.type)}}function qke(t,i){if(1&t){const e=F();p(0,Wke,12,1,"mat-card",23),l(1,"button",11),M("click",function(){E(e);const o=b().$implicit;return I(b(4).addItemStages({season:o}))}),h(2," Add Stage "),d()}2&t&&f("ngForOf",b().$implicit.stages)}function Yke(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",12)(1,"mat-expansion-panel-header")(2,"mat-panel-title",21),h(3),d(),l(4,"mat-panel-description",22)(5,"div",16)(6,"button",17),M("click",function(){const s=E(e).$implicit,a=b(2).$implicit;return I(b(2).openEditSeasonTeamsDialog(s,a))}),l(7,"mat-icon",18),h(8,"contacts"),d()(),l(9,"button",17),M("click",function(){const s=E(e).$implicit,a=b(2).$implicit;return I(b(2).openSeasonEditDialog({competition:a,season:s}))}),l(10,"mat-icon"),h(11,"edit"),d()(),l(12,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(4).openSeasonDeleteDialog(s))}),l(13,"mat-icon",18),h(14,"delete"),d()()()()(),p(15,qke,3,1,"ng-template",19),d()}if(2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),T(" ",e.seasonYear," ")}}function Qke(t,i){if(1&t){const e=F();p(0,Yke,16,2,"mat-expansion-panel",10),l(1,"button",11),M("click",function(){E(e);const o=b().$implicit;return I(b(2).addItemSeasons({competition:o}))}),h(2," Add Season "),d()}2&t&&f("ngForOf",b().$implicit.seasons)}function Zke(t,i){if(1&t){const e=F();l(0,"mat-expansion-panel",12)(1,"mat-expansion-panel-header")(2,"mat-panel-title",13),p(3,zke,1,2,"img",14),l(4,"span"),h(5),d()(),l(6,"mat-panel-description",15)(7,"div",16)(8,"button",17),M("click",function(){const s=E(e).$implicit,a=b().$implicit;return I(b().openCompetitionEditDialog({competition:s,region:a}))}),l(9,"mat-icon"),h(10,"edit"),d()(),l(11,"button",17),M("click",function(){const s=E(e).$implicit;return I(b(2).openCompetitionDeleteDialog(s))}),l(12,"mat-icon",18),h(13,"delete"),d()()()()(),p(14,Qke,3,1,"ng-template",19),d()}if(2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),f("ngIf",null==e.sport?null:e.sport.name),c(2),O(e.name)}}function Kke(t,i){if(1&t){const e=F();l(0,"mat-card",6)(1,"mat-card-header")(2,"mat-card-title",7),D(3,"img",8),l(4,"span",9),h(5),d()()(),l(6,"mat-card-content"),p(7,Zke,15,3,"mat-expansion-panel",10),l(8,"button",11),M("click",function(){const s=E(e).$implicit;return I(b().addItemCompetions({region:s}))}),h(9," Add Competition "),d()(),D(10,"mat-card-actions"),d()}if(2&t){const e=i.$implicit;c(3),N("src",e.flag,kt),c(2),O(e.name),c(2),f("ngForOf",e.competitions)}}function Xke(t,i){if(1&t){const e=F();l(0,"button",27),M("click",function(){return E(e),I(b().addItemCompetions())}),l(1,"mat-icon",18),h(2,"add"),d()()}}function Jke(t,i){1&t&&(l(0,"div",28),D(1,"mat-spinner",29),d())}function eAe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",30),h(2,"done"),d()())}function tAe(t,i){1&t&&(l(0,"div",28)(1,"mat-icon",31),h(2,"clear"),d()())}let nAe=(()=>{class t{injectFlags(e){let n=[];return e.forEach(o=>{let s="";o?.name&&(s=xp.findFlagUrlByCountryName(o.name)),""==s&&(s="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Flag_of_FIFA.svg/640px-Flag_of_FIFA.svg.png"),o=Object.assign({flag:s},o),n.push(o)}),n}addItemStages(e){const n=new eS;e.season?.id&&(n.season=e.season),this.openStageEditDialog(n)}addItemCompetions(e){const n=new Qw;e?.region?.id&&(n.region={id:e.region.id,name:e.region.name}),this.openCompetitionEditDialog(n)}addItemSeasons(e){const n=new Xw;e.competition?.id&&(n.competition=e.competition),this.openSeasonEditDialog(n)}openEditSeasonTeamsDialog(e,n){if(null!=e){e.competition=n??null;const o=this.updateDialog.open(aL,{width:"50%",data:e});o.componentInstance.dialogRef=o,o.afterClosed().subscribe(s=>{s&&(this.onProgress=1,this.ngOnInit())})}}openCompetitionEditDialog(e){e.competition&&e?.region?.id&&(e.competition.region={id:e.region.id,name:e.region.name},e=e.competition),this.service=new Q(v.apiURLs.rootURL+"competitions",this.http),this.openGenericEditDialog(e,"competition",QF)}openCompetitionDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"competitions",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.name,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.generalService.removeFromConfig(e,"competitions"),this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openSeasonEditDialog(e){e.season&&(e.season.competition={id:e.competition.id,name:e.competition.name},e=e.season),this.service=new Q(v.apiURLs.rootURL+"seasons",this.http),this.openGenericEditDialog(e,"season",oL)}openSeasonDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"seasons",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.seasonYear,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openStageEditDialog(e){e.stage&&(e.stage.season={id:e.season.id,name:e.season.seasonYear},e=e.stage),this.service=new Q(v.apiURLs.rootURL+"stages",this.http),this.openGenericEditDialog(e,"stage",lL)}openStageDeleteDialog(e){if(this.service=new Q(v.apiURLs.rootURL+"stages",this.http),null!=e){const n=this.updateDialog.open(en,{data:{title:null,content:e.type,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}constructor(e,n,o,s,a,r,u){this.generalService=e,this.matchesService=n,this.router=o,this.http=s,this.updateDialog=a,this.snackBar=r,this.translateService=u,this.onProgress=0,this.Regions=[],this.onProgress=1}displayAdmin(){this.service=new Q(v.apiURLs.rootURL+"scheduling",this.http),this.service.getAllObservable(v.token,v.userId,void 0).subscribe({next:n=>{n?this.Regions=this.injectFlags(n.filter(o=>o.competitions.length>0)):this.onProgress=3},error:n=>{console.log(n)}})}ngOnInit(){v.userType===Be.ACCOUNT_TYPE_ADMIN&&this.displayAdmin(),this.onProgress=0}get userType(){return v.userType}openGenericEditDialog(e,n,o){const s=this.updateDialog.open(o,{width:"50%",data:e});s.componentInstance.dialogRef=s,s.afterClosed().subscribe({next:a=>{a&&(this.ngOnInit(),this.onProgress=0)},error:()=>{}})}ngOnDestroy(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(ua),_(_i),_(Ee),_(Wt),_(Sn),_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-scheduling-competitions-screen"]],standalone:!0,features:[Z],decls:8,vars:5,consts:[[1,"menu-capture"],[1,"",2,"height","100%"],[2,"backdrop-filter","blur(15px)"],["style","margin: 1em;",4,"ngFor","ngForOf"],["mat-fab","","color","accent","class","md-fab-bottom-right",3,"click",4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","1em"],[2,"padding-top","10px","display","flex","justify-content","space-between"],["width","32px","triggers","mouseenter:mouseleave","animation","true","placement","right",2,"margin","0px 0.6em",3,"src"],[2,"font-weight","500","text-transform","uppercase","font-size","medium"],["hideToggle","true",3,"expanded",4,"ngFor","ngForOf"],["mat-button","",2,"display","block","margin","auto",3,"click"],["hideToggle","true",3,"expanded"],[2,"color","blue"],["height","32px","alt","sport",3,"src","matTooltip",4,"ngIf"],[2,"flex-grow","0 !important","margin-right","0px"],[2,"display","flex"],["mat-icon-button","",3,"click"],[1,"mat-24"],["matExpansionPanelContent",""],["height","32px","alt","sport",3,"src","matTooltip"],[2,"color","green"],[2,"flex-grow","0 !important"],["style","margin: 1em;text-transform: capitalize;",4,"ngFor","ngForOf"],[2,"margin","1em","text-transform","capitalize"],[2,"display","flex","justify-content","space-between"],[2,"display","flex","justify-content","space-between","align-items","center","padding","0px 5px"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1)(2,"div",2),p(3,Kke,11,3,"mat-card",3),d()()(),p(4,Xke,3,0,"button",4),p(5,Jke,2,0,"div",5),p(6,eAe,3,0,"div",5),p(7,tAe,3,0,"div",5)),2&n&&(c(3),f("ngForOf",o.Regions),c(1),f("ngIf",1===o.userType),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,ta,Fa,hd,ud,Oh,p_,sa,oa,Ua,$a,Rr,Ha,Ne,Re,Me,Oe,je,Fe],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow-y:scroll!important;height:100%;width:100%;justify-content:center;align-items:center}"]})}return t})(),iAe=(()=>{class t{constructor(e){this.translateService=e}displayAdmin(){}ngOnInit(){v.userType===Be.ACCOUNT_TYPE_ADMIN&&this.displayAdmin()}get userType(){return v.userType}ngOnDestroy(){}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ze))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-scheduling-screen"]],standalone:!0,features:[Z],decls:7,vars:0,consts:[["animationDuration","0ms","mat-stretch-tabs","false","mat-align-tabs","center",2,"height","100%"],["label","Competitions"],["label","Clubs"],["label","Players"]],template:function(n,o){1&n&&(l(0,"mat-tab-group",0)(1,"mat-tab",1),D(2,"app-scheduling-competitions-screen"),d(),l(3,"mat-tab",2),D(4,"app-scheduling-clubs-screen"),d(),l(5,"mat-tab",3),D(6,"app-scheduling-players-screen"),d()())},dependencies:[Tg,_w,Sg,nAe,Gke,Pke],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow-y:scroll!important;height:100%;width:100%;justify-content:center;align-items:center}"]})}return t})();class cL{constructor(){this.id=null,this.sport=null,this.name="",this.deductionPercentage=0}}function oAe(t,i){if(1&t&&(l(0,"mat-option",16),h(1),d()),2&t){const e=i.$implicit;f("value",e),c(1),O(e.name)}}function sAe(t,i){if(1&t){const e=F();l(0,"div")(1,"div",2)(2,"form",3),M("ngSubmit",function(){return E(e),I(b().onSave())}),l(3,"p",4),h(4),d(),l(5,"mat-form-field",5)(6,"mat-select",6,7),C(8,"translate"),p(9,oAe,2,2,"mat-option",8),d()(),l(10,"mat-form-field",5),D(11,"input",9,10),C(13,"translate"),l(14,"mat-hint",11),h(15),d()(),l(16,"mat-form-field",5),D(17,"input",12,13),C(19,"translate"),d(),D(20,"mat-divider"),l(21,"p")(22,"button",14),h(23),C(24,"translate"),d(),h(25," \xa0"),l(26,"button",15),M("click",function(){return E(e),I(b().onNoClick())}),h(27),C(28,"translate"),d()()()()()}if(2&t){const e=X(12),n=b();c(2),f("formGroup",n.options),c(2),O(n.title),c(2),N("placeholder",w(8,13,"general_sport")),f("compareWith",n.compareFn),c(3),f("ngForOf",n.sports),c(2),N("placeholder",w(13,15,"general_name")),J("maxlength",255),c(4),We("",e.value.length," / ",255,""),c(2),N("placeholder",w(19,17,"general_deduction_percentage")),c(5),f("disabled",n.options.invalid),c(1),O(w(24,19,"general_save")),c(4),O(w(28,21,"general_close"))}}function aAe(t,i){1&t&&(l(0,"div",17),D(1,"mat-spinner",18),d())}function rAe(t,i){1&t&&(l(0,"div",17)(1,"mat-icon",19),h(2,"done"),d()())}function lAe(t,i){1&t&&(l(0,"div",17)(1,"mat-icon",20),h(2,"clear"),d()())}let cAe=(()=>{class t{constructor(e,n,o){this.http=e,this.translateService=n,this.fb=o,this.onProgress=0}ngOnChanges(){this.onProgress=0,null===this.entity&&(this.entity=new cL),this.service=new Q(v.apiURLs.rootURL+"reporting-mistake",this.http),this.options=this.fb.group({sport:[this.entity.sport,ue.required],name:[this.entity.name,ue.required],deductionPercentage:[this.entity.deductionPercentage,ue.required]})}get title(){return this.translateService.instant(null==this.entity.id?"reporting_mistake_add_new":"reporting_mistake_edit")}get sports(){return v.sports}get reportingmistakeLimit(){return 255}onSave(){this.onProgress=1,this.entity.sport=this.options.value.sport,this.entity.name=this.options.value.name,this.entity.deductionPercentage=this.options.value.deductionPercentage;const e=this;null!=this.entity&&null!=this.entity.id&&0!==this.entity.id?this.service.update(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)}):this.service.create(this.entity).subscribe(n=>{this.onProgress=2,setTimeout(function(){e.inputOnSuccess(n)},v.delaySuccessMessage)},n=>{this.onProgress=3,setTimeout(function(){e.inputOnClose()},v.delaySuccessMessage)})}onNoClick(){this.inputOnClose()}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(Ze),_(mn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-reporting-mistake-dialog-content"]],inputs:{entity:"entity",inputOnClose:"inputOnClose",inputOnSuccess:"inputOnSuccess"},standalone:!0,features:[fe,Z],decls:4,vars:4,consts:[[4,"ngIf"],["class","screen-centered",4,"ngIf"],[2,"margin","40px"],[1,"example-container",3,"formGroup","ngSubmit"],[1,"mat-title"],[1,"full-width"],["formControlName","sport","name","sport",3,"compareWith","placeholder"],["sport",""],[3,"value",4,"ngFor","ngForOf"],["formControlName","name","name","name","matInput","","required","",3,"placeholder"],["name",""],["align","end"],["formControlName","deductionPercentage","name","deductionPercentage","matInput","","required","",3,"placeholder"],["deductionPercentage",""],["mat-raised-button","","type","submit",3,"disabled"],["mat-raised-button","","type","button",3,"click"],[3,"value"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(p(0,sAe,29,23,"div",0),p(1,aAe,2,0,"div",1),p(2,rAe,3,0,"div",1),p(3,lAe,3,0,"div",1)),2&n&&(f("ngIf",0==o.onProgress),c(1),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,qe,le,xt,Vt,Lt,Mt,Bt,Vn,vt,Cn,on,gt,Ni,Tn,Ft,ut,zt,wn,gn,xn,Ne,Re,je,Fe,Me,Oe,_e,we],styles:[".full-width[_ngcontent-%COMP%]{width:95%}"]})}return t})(),dAe=(()=>{class t{constructor(e,n){this.dialogRef=e,this.data=n,this.theBoundCallback=this.onNoClick.bind(this)}onNoClick(){this.dialogRef.close()}static#e=this.\u0275fac=function(n){return new(n||t)(_(It),_(Pt))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-reporting-mistake-dialog"]],standalone:!0,features:[Z],decls:2,vars:3,consts:[[3,"entity","inputOnClose","inputOnSuccess"]],template:function(n,o){1&n&&(l(0,"mat-dialog-content"),D(1,"app-reporting-mistake-dialog-content",0),d()),2&n&&(c(1),f("entity",o.data)("inputOnClose",o.theBoundCallback)("inputOnSuccess",o.theBoundCallback))},dependencies:[Ot,qt,cAe]})}return t})();function uAe(t,i){1&t&&(l(0,"th",20),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_id")," "))}function hAe(t,i){if(1&t&&(l(0,"td",21),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.id)}}function pAe(t,i){1&t&&(l(0,"th",22),h(1),C(2,"translate"),d()),2&t&&(c(1),O(w(2,1,"general_sport")))}function mAe(t,i){if(1&t&&(l(0,"td",21),h(1),d()),2&t){const e=i.$implicit;c(1),O(e.sport&&e.sport.name?e.sport.name:"")}}function fAe(t,i){1&t&&(l(0,"th",20),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_name")," "))}function _Ae(t,i){if(1&t&&(l(0,"td",21),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.name," ")}}function gAe(t,i){1&t&&(l(0,"th",20),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_deduction_percentage")," "))}function bAe(t,i){if(1&t&&(l(0,"td",21),h(1),d()),2&t){const e=i.$implicit;c(1),T(" ",e.deductionPercentage," ")}}function vAe(t,i){1&t&&(l(0,"th",20),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_edit")," "))}function yAe(t,i){if(1&t){const e=F();l(0,"td",21)(1,"span")(2,"button",23),M("click",function(){const s=E(e).$implicit;return I(b(2).openEditDialog(s))}),l(3,"mat-icon",4),h(4,"create"),d()()()()}}function CAe(t,i){1&t&&(l(0,"th",20),h(1),C(2,"translate"),d()),2&t&&(c(1),T(" ",w(2,1,"general_delete")," "))}function wAe(t,i){if(1&t){const e=F();l(0,"td",21)(1,"span")(2,"button",23),M("click",function(){const s=E(e).$implicit;return I(b(2).openDeleteDialog(s))}),l(3,"mat-icon",4),h(4,"delete"),d()()()()}}function SAe(t,i){1&t&&D(0,"tr",24)}function TAe(t,i){1&t&&D(0,"tr",25)}function DAe(t,i){if(1&t&&(l(0,"table",8),A(1,9),p(2,uAe,3,3,"th",10),p(3,hAe,2,1,"td",11),P(),A(4,12),p(5,pAe,3,3,"th",13),p(6,mAe,2,1,"td",11),P(),A(7,14),p(8,fAe,3,3,"th",10),p(9,_Ae,2,1,"td",11),P(),A(10,15),p(11,gAe,3,3,"th",10),p(12,bAe,2,1,"td",11),P(),A(13,16),p(14,vAe,3,3,"th",10),p(15,yAe,5,0,"td",11),P(),A(16,17),p(17,CAe,3,3,"th",10),p(18,wAe,5,0,"td",11),P(),p(19,SAe,1,0,"tr",18),p(20,TAe,1,0,"tr",19),d()),2&t){const e=b();f("dataSource",e.dataSource),c(19),f("matHeaderRowDef",e.columnsToDisplay),c(1),f("matRowDefColumns",e.columnsToDisplay)}}function MAe(t,i){1&t&&(l(0,"div",26),D(1,"mat-spinner",27),d())}function xAe(t,i){1&t&&(l(0,"div",26)(1,"mat-icon",28),h(2,"done"),d()())}function EAe(t,i){1&t&&(l(0,"div",26)(1,"mat-icon",29),h(2,"clear"),d()())}const IAe=function(){return[5,10,25,100]};let OAe=(()=>{class t{constructor(e,n,o,s){this.generalService=e,this.http=n,this.updateDialog=o,this.snackBar=s,this.onProgress=0,this.columnsToDisplay=["id","sport","name","deductionPercentage","edit","delete"]}ngOnInit(){this.onProgress=0,this.service=new Q(v.apiURLs.rootURL+"reporting-mistake",this.http),this.service.getAllObservable(v.token,v.userId).subscribe(e=>{this.dataSource=new ke(e),this.dataSource.paginator=this.paginator})}get dataSize(){return 0}openDeleteDialog(e){if(null!=e){const n=this.updateDialog.open(en,{data:{title:null,refId:e.id}});n.componentInstance.dialogRef=n,this.onProgress=1,n.afterClosed().subscribe(o=>{!0===o?this.service.delete(e.id).subscribe(s=>{s.Result===v.apiSuccessMsg&&(this.snackBar.open("Entity Deleted","",{duration:v.snackBarDuration}),this.ngOnInit())}):this.onProgress=0})}}openEditDialog(e){null==e&&(e=new cL);const n=this.updateDialog.open(dAe,{width:"50%",data:e});n.componentInstance.dialogRef=n,n.afterClosed().subscribe(()=>this.ngOnInit())}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ps),_(Ee),_(Wt),_(Sn))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-qrmistakes-screen"]],viewQuery:function(n,o){if(1&n&&ne(Ct,7),2&n){let s;G(s=z())&&(o.paginator=s.first)}},standalone:!0,features:[Z],decls:11,vars:9,consts:[[1,"menu-capture"],[1,"table-container"],["mat-table","","multiTemplateDataRows","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-fab","","color","accent",1,"md-fab-bottom-right",3,"click"],[1,"mat-24"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["class","screen-centered",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","sport"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["matColumnDef","deductionPercentage"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"example-element-row"],[1,"screen-centered"],[2,"display","inline-block"],["color","primary",1,"mat-172",2,"display","inline-block"],["color","warn",1,"mat-172",2,"display","inline-block"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"div",1),p(2,DAe,21,3,"table",2),l(3,"button",3),M("click",function(){return o.openEditDialog()}),l(4,"mat-icon",4),h(5,"add"),d()()(),D(6,"mat-paginator",5,6),d(),p(8,MAe,2,0,"div",7),p(9,xAe,3,0,"div",7),p(10,EAe,3,0,"div",7)),2&n&&(c(2),f("ngIf",0==o.onProgress),c(4),f("length",o.dataSize)("pageIndex",0)("pageSize",25)("pageSizeOptions",hn(8,IAe)),c(2),f("ngIf",1==o.onProgress),c(1),f("ngIf",2==o.onProgress),c(1),f("ngIf",3==o.onProgress))},dependencies:[ce,le,Jt,sn,Qt,an,Zt,Yt,rn,Kt,Xt,ln,cn,Ne,Re,Me,Oe,Mi,Ct,je,Fe,_e,we],styles:[".mat-column-id[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-delete[_ngcontent-%COMP%]{max-width:64px}table[_ngcontent-%COMP%]{width:100%}"]})}return t})();function RAe(t,i){if(1&t&&D(0,"img",15),2&t){const e=b().$implicit,n=b(2);N("matTooltip",e.sport.name),f("src",n.matchesService.getSportIcon(e.sport.name),kt)}}function kAe(t,i){if(1&t&&(l(0,"mat-card",21),D(1,"mat-card-header",22),l(2,"mat-card-content",23)(3,"div"),h(4),d()()()),2&t){const e=i.$implicit;c(4),O(e.type)}}function AAe(t,i){1&t&&p(0,kAe,5,1,"mat-card",20),2&t&&f("ngForOf",b().$implicit.stages)}function PAe(t,i){if(1&t&&(l(0,"mat-expansion-panel",17)(1,"mat-expansion-panel-header")(2,"mat-panel-title",18),h(3),d(),D(4,"mat-panel-description",19),d(),p(5,AAe,1,1,"ng-template",14),d()),2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),T(" ",e.seasonYear," ")}}function NAe(t,i){1&t&&p(0,PAe,6,2,"mat-expansion-panel",16),2&t&&f("ngForOf",b().$implicit.seasons)}function FAe(t,i){if(1&t&&(l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title",11),p(3,RAe,1,2,"img",12),l(4,"span"),h(5),d()(),D(6,"mat-panel-description",13),d(),p(7,NAe,1,1,"ng-template",14),d()),2&t){const e=i.$implicit;f("expanded",e.expanded),c(3),f("ngIf",null==e.sport?null:e.sport.name),c(2),O(e.name)}}function LAe(t,i){if(1&t&&D(0,"img",15),2&t){const e=b().$implicit,n=b(4);N("matTooltip",e.sport.name),f("src",n.matchesService.getSportIcon(e.sport.name),kt)}}function BAe(t,i){if(1&t&&(l(0,"div",25)(1,"div",18),p(2,LAe,1,2,"img",12),h(3),d()()),2&t){const e=i.$implicit;f("expanded",e.expanded),c(2),f("ngIf",null==e.sport?null:e.sport.name),c(1),Ma(" ",e.name," ",e.gender&&"| "+e.gender," ",e.age&&"| "+e.age," ")}}function VAe(t,i){1&t&&p(0,BAe,4,5,"div",24),2&t&&f("ngForOf",b().$implicit.teams)}function HAe(t,i){if(1&t&&(l(0,"mat-expansion-panel",10)(1,"mat-expansion-panel-header")(2,"mat-panel-title",11)(3,"span"),h(4),d()(),D(5,"mat-panel-description",13),d(),p(6,VAe,1,1,"ng-template",14),d()),2&t){const e=i.$implicit;f("expanded",e.expanded),c(4),O(e.name)}}function UAe(t,i){if(1&t&&(l(0,"mat-tab",3)(1,"div",4)(2,"mat-card",5)(3,"mat-card-header",6)(4,"mat-card-title",7),h(5,"Competitions"),d()(),l(6,"mat-card-content",8),p(7,FAe,8,3,"mat-expansion-panel",9),d()(),l(8,"mat-card",5)(9,"mat-card-header",6)(10,"mat-card-title",7),h(11,"Clubs"),d()(),l(12,"mat-card-content",8),p(13,HAe,7,2,"mat-expansion-panel",9),d()()()()),2&t){const e=i.$implicit;N("label",e.name),c(7),f("ngForOf",e.competitions),c(6),f("ngForOf",e.clubs)}}const $Ae=[{path:"",component:ZZ},{path:"myprofile",component:xde},{path:"reporter/matches",component:Qa},{path:"mylogs",component:tL},{path:"admin/matches",component:Qa},{path:"admin/trainingCenter",component:Qa},{path:"admin/matches/:matchId/events",component:Nbe},{path:"admin/matches/:matchId/customers",component:Kg},{path:"admin/countries",component:sve},{path:"admin/regions",component:Ove},{path:"admin/users",component:Zg},{path:"admin/users/:userId/logs",component:tL},{path:"admin/users/:userId/customermatches",component:Kg},{path:"admin/languages",component:R0e},{path:"admin/competitions",component:ywe},{path:"admin/sports",component:$we},{path:"admin/payment_methods",component:dSe},{path:"admin/teams",component:vTe},{path:"admin/players",component:Sxe},{path:"admin/referees",component:fIe},{path:"admin/stadiums",component:BEe},{path:"admin/seasons",component:hOe},{path:"admin/clubs",component:nRe},{path:"admin/stages",component:xRe},{path:"admin/scheduling",component:iAe},{path:"reporter/trainingCenter",component:sEe},{path:"customer/purchases",component:Kg},{path:"customer/available_matches",component:Qa},{path:"customer/purchase_log",component:Kg},{path:"customer/matches/:matchId/events",component:eL},{path:"moderator/matches",component:Qa},{path:"trial/matches",component:Qa},{path:":viewId/multi/:matchId",component:V2e},{path:"countrymanager/network",component:Zg},{path:"countrymanager/matches",component:Qa},{path:"countrymanager/scheduling",component:(()=>{class t{constructor(e,n,o){this.http=e,this.matchesService=n,this.router=o,this.regions=[],this.onProgress=0}injectFlags(e){let n=[];return e.forEach(o=>{let s="";o?.name&&(s=xp.findFlagUrlByCountryName(o.name)),""===s&&(s="https://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Flag_of_FIFA.svg/640px-Flag_of_FIFA.svg.png");const a={...o,flag:s};n.push(a)}),n}displayHandler(){this.service=new Q(v.apiURLs.rootURL+"scheduling/clubs-and-competitions",this.http),this.service.getAllObservable(v.token,v.userId,void 0).subscribe({next:n=>{n?this.regions=this.injectFlags(n.filter(o=>o.competitions.length>0)):this.onProgress=3},error:n=>{console.log(n)}})}ngOnInit(){this.onProgress=0,v.userType===Be.ACCOUNT_TYPE_ADMIN||v.userType===Be.ACCOUNT_TYPE_COUNTRY_MANAGER?this.displayHandler():this.router.navigate(["/404"])}static#e=this.\u0275fac=function(n){return new(n||t)(_(Ee),_(ua),_(_i))};static#t=this.\u0275cmp=U({type:t,selectors:[["app-scheduling-cm-screen"]],standalone:!0,features:[Z],decls:3,vars:1,consts:[[1,"country-manager-container"],["mat-align-tabs","center"],["class","mat-tab-labels",3,"label",4,"ngFor","ngForOf"],[1,"mat-tab-labels",3,"label"],[1,"d-flex","flex-row","justify-content-around","mt-3"],[1,"card-style"],[1,"card-header"],[1,"card-title"],[1,"card-content","clubs-content"],["hideToggle","true","class","scheduling-item",3,"expanded",4,"ngFor","ngForOf"],["hideToggle","true",1,"scheduling-item",3,"expanded"],[2,"color","black"],["height","32px","alt","sport",3,"src","matTooltip",4,"ngIf"],[2,"flex-grow","0 !important","margin-right","0px"],["matExpansionPanelContent",""],["height","32px","alt","sport",3,"src","matTooltip"],["hideToggle","true","style","margin: 0.2em;",3,"expanded",4,"ngFor","ngForOf"],["hideToggle","true",2,"margin","0.2em",3,"expanded"],[2,"color","green"],[2,"flex-grow","0 !important"],["style","margin: 1em;text-transform: capitalize;",4,"ngFor","ngForOf"],[2,"margin","1em","text-transform","capitalize"],[2,"display","flex","justify-content","space-between"],[2,"display","flex","justify-content","space-between","align-items","center","padding","5px 10px"],["hideToggle","true",3,"expanded",4,"ngFor","ngForOf"],["hideToggle","true",3,"expanded"]],template:function(n,o){1&n&&(l(0,"div",0)(1,"mat-tab-group",1),p(2,UAe,14,3,"mat-tab",2),d()()),2&n&&(c(2),f("ngForOf",o.regions))},dependencies:[Tg,_w,Sg,ce,qe,le,ta,Fa,hd,ud,Oh,sa,oa,Ua,$a,Rr,Ha],styles:[".mat-column-cover[_ngcontent-%COMP%], .mat-column-customers[_ngcontent-%COMP%], .mat-column-edit[_ngcontent-%COMP%], .mat-column-events[_ngcontent-%COMP%], .mat-column-id[_ngcontent-%COMP%], .mat-column-multi[_ngcontent-%COMP%], .mat-column-price[_ngcontent-%COMP%], .mat-column-trainingMatch[_ngcontent-%COMP%]{max-width:64px;text-align:left}.mat-column-userName[_ngcontent-%COMP%]{max-width:100px}.mat-column-position[_ngcontent-%COMP%]{max-width:180px}.mat-column-courseName[_ngcontent-%COMP%]{max-width:200px}table[_ngcontent-%COMP%]{width:100%}.table-container[_ngcontent-%COMP%]{background-color:#fff}td.mat-cell[_ngcontent-%COMP%], td.mat-footer-cell[_ngcontent-%COMP%], th.mat-header-cell[_ngcontent-%COMP%]{padding:5px;border-bottom-width:1px;border-bottom-style:solid;border-color:gray}.resetT[_ngcontent-%COMP%]{cursor:pointer}.matches-screen[_ngcontent-%COMP%]{height:100%}.menu-capture[_ngcontent-%COMP%]{overflow-y:scroll!important;height:100%;width:100%;justify-content:center;align-items:center}.scheduling-item[_ngcontent-%COMP%]{box-shadow:0 2px 1px #00000032;border-radius:5px;padding:.15em;margin:.15em 0}.card-style[_ngcontent-%COMP%]{width:30%}.card-header[_ngcontent-%COMP%]{justify-content:center;text-transform:uppercase}.card-title[_ngcontent-%COMP%]{font-size:1.2em;padding:.25em}.card-content[_ngcontent-%COMP%]{overflow-y:auto}.clubs-content[_ngcontent-%COMP%]{height:68vh}"]})}return t})()},{path:"networkmanager/network",component:Zg},{path:"qualitymanager/network",component:Zg},{path:"qualitymanager/matches",component:Qa},{path:"qualitymanager/qrmistakes",component:OAe},{path:"coveragemanager/matches",component:Qa}];(function iW(t,i){return D$({rootComponent:t,...ZO(i)})})(MX,{providers:[Z2(cW,(()=>{class t{static#e=this.\u0275fac=function(n){return new(n||t)};static#t=this.\u0275mod=Ce({type:t});static#n=this.\u0275inj=ye({imports:[EA.forRoot($Ae),EA]})}return t})(),YA,Rl,Me,hP,Ne,sa,Jt,Mi,Ot,zt,on,je,ta,Z3,ki,Bd,Fre,Nd,N3,A3,Tg,ql,Yse,zse,Yl,oz,ks,uw,xt,wl,AN,H0,_e.forRoot({defaultLanguage:"en",loader:{provide:Zu,useFactory:function Pce(t){return new Ace(t,"assets/i18n/",".json")},deps:[Ee]}})),{provide:ij,useValue:v},{provide:Po,useClass:cR},function yse(){return[...bse]}(),function vse(){return[...gse]}(),function Az(...t){const i=[Ee,LO,NO,{provide:$f,useExisting:NO},{provide:jf,useExisting:LO},{provide:mh,useValue:kz,multi:!0},{provide:Jy,useValue:!0},{provide:HO,useClass:Rz}];for(const e of t)i.push(...e.\u0275providers);return wb(i)}(function Pz(){return function gl(t,i){return{\u0275kind:t,\u0275providers:i}}(br.LegacyInterceptors,[{provide:UO,useFactory:Sz},{provide:mh,useExisting:UO,multi:!0}])}())]}).catch(t=>console.error(t))}},$t=>{$t($t.s=27)}]);